sqllogictest
Artifact Content
Not logged in

Artifact 645fbb3c666fb156d46605c979aa42a13ae08a9d:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 28 * + - 42
----
-1176

query II rowsort
SELECT + + 74 AS col0, 50 col1
----
74
50

query I rowsort
SELECT - 14 + - + 34 * + - 54 AS col2
----
1822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3
SELECT - CASE + 3 WHEN + 24 + COUNT( * ) + + NULLIF ( + 33, + 34 + + 30 ) THEN + SUM( ALL + 73 ) * - CAST( + 3 AS SIGNED ) + - COUNT( * ) WHEN - COUNT( * ) * - 47 + + ( - - 33 ) + - 40 + + ( + 69 ) * COUNT( * ) / + 66 THEN NULL ELSE NULL END * 98 - - COUNT( 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3
SELECT - CASE + 3 WHEN + 24 + COUNT ( * ) + + NULLIF ( + 33, + 34 + + 30 ) THEN + SUM ( ALL + 73 ) * - CAST ( + 3 AS INTEGER ) + - COUNT ( * ) WHEN - COUNT ( * ) * - 47 + + ( - - 33 ) + - 40 + + ( + 69 ) * COUNT ( * ) / + 66 THEN NULL ELSE NULL END * 98 - - COUNT ( 22 ) AS col0
----
NULL

query II rowsort
SELECT - 97 * + 62 AS col1, + 69 + + 72 - 27 * - 30
----
-6014
951

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT - - 84 * + 61 + - MIN( 36 ) + - COUNT( * ) + + + 52
----
5139

skipif mysql # not compatible
query I rowsort label-5
SELECT - - 84 * + 61 + - MIN ( 36 ) + - COUNT ( * ) + + + 52
----
5139

query I rowsort
SELECT DISTINCT 15 + + + 48
----
63

query I rowsort
SELECT 94 * - 51 + + 40 - - + 85 AS col1
----
-4669

query I rowsort
SELECT ALL 56 * + - 81
----
-4536

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT 30 + + - 55 + + 88 + - - 5 + + + 87 * - 80 * + - COUNT( DISTINCT - 22 ) - + MIN( DISTINCT 1 ) + + + COUNT( * ) AS col1
----
7028

skipif mysql # not compatible
query I rowsort label-9
SELECT 30 + + - 55 + + 88 + - - 5 + + + 87 * - 80 * + - COUNT ( DISTINCT - 22 ) - + MIN ( DISTINCT 1 ) + + + COUNT ( * ) AS col1
----
7028

onlyif mysql # DIV for integer division: 
query I rowsort label-10
SELECT DISTINCT - 4 DIV - 44 * - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-10
SELECT DISTINCT - 4 / - 44 * - 32 AS col1
----
0

query I rowsort
SELECT 40 + - - 19
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-12
SELECT 11 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-12
SELECT 11 / 76
----
0

query I rowsort
SELECT 65 + 4 AS col0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-14
SELECT 36 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-14
SELECT 36 / + 81
----
0

query I rowsort
SELECT 72 * - - 7 AS col2
----
504

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-16
SELECT DISTINCT COUNT( * ) DIV + 9 AS col1, 15 + - SUM( 17 ) + - NULLIF ( + 53, 68 * 24 * - 39 )
----
0
-55

skipif mysql # not compatible
query II rowsort label-16
SELECT DISTINCT COUNT ( * ) / + 9 AS col1, 15 + - SUM ( 17 ) + - NULLIF ( + 53, 68 * 24 * - 39 )
----
0
-55

query II rowsort
SELECT DISTINCT + 14 * + 78 AS col1, ( + 34 ) AS col0
----
1092
34

query I rowsort
SELECT 71 * 96 AS col2
----
6816

query I rowsort
SELECT ALL - 23 * 86 * - 12
----
23736

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT 45 - MIN( + 25 )
----
20

skipif mysql # not compatible
query I rowsort label-20
SELECT 45 - MIN ( + 25 )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-21
SELECT 52 + - - COUNT( * ) AS col0, + 72 + + 1 - 51 * - + 82 * - 84 AS col1
----
53
-351215

skipif mysql # not compatible
query II rowsort label-21
SELECT 52 + - - COUNT ( * ) AS col0, + 72 + + 1 - 51 * - + 82 * - 84 AS col1
----
53
-351215

query I rowsort
SELECT 87 - + 64
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-23
SELECT + CAST( COALESCE ( - 1, + - 37, - 27 + - COUNT( * ) ) AS SIGNED ) * - 41 * - 88 AS col1, 0 * + - CAST( NULL AS DECIMAL ) * 43
----
-3608
NULL

skipif mysql # not compatible
query II rowsort label-23
SELECT + CAST ( COALESCE ( - 1, + - 37, - 27 + - COUNT ( * ) ) AS INTEGER ) * - 41 * - 88 AS col1, 0 * + - CAST ( NULL AS REAL ) * 43
----
-3608
NULL

query I rowsort
SELECT ALL + - 29 + 81
----
52

query I rowsort
SELECT - NULLIF ( 32, - 21 ) + 57 AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-26
SELECT 4 + + 55 AS col2, SUM( ALL - 8 )
----
59
-8

skipif mysql # not compatible
query II rowsort label-26
SELECT 4 + + 55 AS col2, SUM ( ALL - 8 )
----
59
-8

query II rowsort
SELECT DISTINCT - + 0 + - - 63, - 45 AS col2
----
63
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT ALL 76 * + COUNT( ALL 54 ) col2
----
76

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL 76 * + COUNT ( ALL 54 ) col2
----
76

query I rowsort
SELECT DISTINCT + - 48 * + 32 + - 36
----
-1572

query I rowsort
SELECT 84 * + 74 * + 26
----
161616

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT + MAX( DISTINCT - + COALESCE ( - 50, + 87 ) )
----
50

skipif mysql # not compatible
query I rowsort label-31
SELECT + MAX ( DISTINCT - + COALESCE ( - 50, + 87 ) )
----
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-32
SELECT 73 + - CAST( NULL AS DECIMAL ) * - COUNT( * ) * + CASE + 61 WHEN COUNT( * ) THEN - 50 * + - 4 * + + ( 3 ) + - COALESCE ( 19, 29 ) * - + ( 94 ) END * - + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT 73 + - CAST ( NULL AS REAL ) * - COUNT ( * ) * + CASE + 61 WHEN COUNT ( * ) THEN - 50 * + - 4 * + + ( 3 ) + - COALESCE ( 19, 29 ) * - + ( 94 ) END * - + 4 AS col2
----
NULL

query I rowsort
SELECT ALL - 88 * 83 * + - 41
----
299464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-34
SELECT ALL - 29 * + - 60 - - 74 + - - COALESCE ( + COUNT( * ), CASE + 28 WHEN 27 THEN NULL WHEN - COALESCE ( - 48, + 32, + + 29 * 92 ) + - ( ( 87 ) ) THEN + 26 - 97 + 10 + ( + ( - - ( ( - 35 ) ) ) ) + 96 DIV 28 * CAST( NULL AS SIGNED ) END ) + COUNT( * )
----
1816

skipif mysql # not compatible
query I rowsort label-34
SELECT ALL - 29 * + - 60 - - 74 + - - COALESCE ( + COUNT ( * ), CASE + 28 WHEN 27 THEN NULL WHEN - COALESCE ( - 48, + 32, + + 29 * 92 ) + - ( ( 87 ) ) THEN + 26 - 97 + 10 + ( + ( - - ( ( - 35 ) ) ) ) + 96 / 28 * CAST ( NULL AS INTEGER ) END ) + COUNT ( * )
----
1816

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-35
SELECT - CAST( NULL AS SIGNED ) / + + 67 AS col0, 24 + + CAST( 35 AS SIGNED )
----
NULL
59

skipif mysql # not compatible
query II rowsort label-35
SELECT - CAST ( NULL AS INTEGER ) / + + 67 AS col0, 24 + + CAST ( 35 AS INTEGER )
----
NULL
59

query I rowsort
SELECT 37 * + 17 * + ( - + 43 ) AS col0
----
-27047

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT SUM( - 73 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-37
SELECT SUM ( - 73 ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT COUNT( * ) - - 72
----
73

skipif mysql # not compatible
query I rowsort label-38
SELECT COUNT ( * ) - - 72
----
73

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

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

query II rowsort
SELECT + 20, 57 col2
----
20
57

query I rowsort
SELECT ALL 2 * 13
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT + MAX( ALL - 50 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-42
SELECT + MAX ( ALL - 50 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-43
SELECT DISTINCT - COUNT( * ) AS col1, + 92 * - ( - + 86 ) AS col2
----
-1
7912

skipif mysql # not compatible
query II rowsort label-43
SELECT DISTINCT - COUNT ( * ) AS col1, + 92 * - ( - + 86 ) AS col2
----
-1
7912

query I rowsort
SELECT ALL 55 * + 54 AS col1
----
2970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-45
SELECT + 60 - - CAST( 32 AS SIGNED ) + + CASE - 31 WHEN 14 THEN - - 44 ELSE - 26 END
----
66

skipif mysql # not compatible
query I rowsort label-45
SELECT + 60 - - CAST ( 32 AS INTEGER ) + + CASE - 31 WHEN 14 THEN - - 44 ELSE - 26 END
----
66

query I rowsort
SELECT ALL 66 * + ( 46 )
----
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT + NULLIF ( - - 37, 53 / 40 ) - - COUNT( ALL - 58 ) - 35 + - 20 + - + 92 * + 27 + + 16 AS col2
----
-2485

skipif mysql # not compatible
query I rowsort label-47
SELECT + NULLIF ( - - 37, 53 / 40 ) - - COUNT ( ALL - 58 ) - 35 + - 20 + - + 92 * + 27 + + 16 AS col2
----
-2485

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-48
SELECT 92 AS col2, 35 + - 17 DIV COUNT( * )
----
92
18

skipif mysql # not compatible
query II rowsort label-48
SELECT 92 AS col2, 35 + - 17 / COUNT ( * )
----
92
18

query II rowsort
SELECT DISTINCT 90 AS col1, 27 + - - ( + 78 )
----
90
105

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

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

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

query I rowsort
SELECT + NULLIF ( 82, 37 ) + - 23
----
59

query II rowsort
SELECT 8 AS col1, 3
----
8
3

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT ALL + 65 DIV - + 94
----
0

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL + 65 / - + 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-55
SELECT + MAX( ALL + 95 ) DIV 55 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-55
SELECT + MAX ( ALL + 95 ) / 55 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT - 50 * 7 + + + 40 * + NULLIF ( + CASE + 10 WHEN - - 40 + + COUNT( * ) * - + COUNT( * ) THEN + - NULLIF ( 10, + 32 ) * - COALESCE ( - MAX( DISTINCT + 70 ), 52, - + 71, + 66 * CASE + ( + + 57 ) WHEN + - 67 THEN - 38 ELSE NULL END + - 74 ) + - 30 END, 29 * ( + 65 * 24 ) + - COUNT( * ) * + 5 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-56
SELECT - 50 * 7 + + + 40 * + NULLIF ( + CASE + 10 WHEN - - 40 + + COUNT ( * ) * - + COUNT ( * ) THEN + - NULLIF ( 10, + 32 ) * - COALESCE ( - MAX ( DISTINCT + 70 ), 52, - + 71, + 66 * CASE + ( + + 57 ) WHEN + - 67 THEN - 38 ELSE NULL END + - 74 ) + - 30 END, 29 * ( + 65 * 24 ) + - COUNT ( * ) * + 5 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-57
SELECT ALL + 85 + - + ( + ( 29 ) ) + + + ( + - 78 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL + 85 + - + ( + ( 29 ) ) + + + ( + - 78 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT + - COUNT( * ) - - NULLIF ( + - 51, + + ( + 46 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-58
SELECT + - COUNT ( * ) - - NULLIF ( + - 51, + + ( + 46 ) )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-59
SELECT - + CAST( NULL AS SIGNED ) + + 35 + + - COUNT( * ) + - CAST( NULL AS SIGNED ) * + 23 * 48 * - 6 + + 75 + + + 35 * + 19 * 28 + - MAX( - 89 ) / 47 + + + COALESCE ( - - 65, + 5 - - + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-59
SELECT - + CAST ( NULL AS INTEGER ) + + 35 + + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + 23 * 48 * - 6 + + 75 + + + 35 * + 19 * 28 + - MAX ( - 89 ) / 47 + + + COALESCE ( - - 65, + 5 - - + 7 )
----
NULL

query II rowsort
SELECT 67 AS col1, + 78 AS col2
----
67
78

query II rowsort
SELECT 4, 24 AS col0
----
4
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-62
SELECT + - CASE - 77 WHEN + NULLIF ( + 90, - + 37 ) THEN + ( - - 8 ) WHEN + CAST( - + 99 AS DECIMAL ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-62
SELECT + - CASE - 77 WHEN + NULLIF ( + 90, - + 37 ) THEN + ( - - 8 ) WHEN + CAST ( - + 99 AS REAL ) THEN NULL END
----
NULL

query I rowsort
SELECT - 32 - + 51
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ALL + + SUM( 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL + + SUM ( 96 ) AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-65
SELECT ALL + 7 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-65
SELECT ALL + 7 / - 84
----
0

query I rowsort
SELECT - - 96 * - 42 AS col0
----
-4032

query II rowsort
SELECT + 40 AS col1, 67
----
40
67

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT - 34 DIV + + 84 + + 59 + + - 47 + + ( + + 13 ) + + + 13 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-68
SELECT - 34 / + + 84 + + 59 + + - 47 + + ( + + 13 ) + + + 13 AS col2
----
38

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

skipif mysql # not compatible
query I rowsort label-69
SELECT + MIN ( DISTINCT + - 54 ) * - - 48 AS col2
----
-2592

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT - 91 + - 40 * 5 + - 33 * - - 48 + - 14 DIV + 16
----
-1875

skipif mysql # not compatible
query I rowsort label-70
SELECT - 91 + - 40 * 5 + - 33 * - - 48 + - 14 / + 16
----
-1875

query I rowsort
SELECT - 8 * - 92
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT 4 * + - 99 * + COUNT( + 50 ) + + 58
----
-338

skipif mysql # not compatible
query I rowsort label-72
SELECT 4 * + - 99 * + COUNT ( + 50 ) + + 58
----
-338

query I rowsort
SELECT + 73 - + - 10 - + 84
----
-1

query I rowsort
SELECT - 85 * - 96
----
8160

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-75
SELECT CASE + 97 WHEN + 68 + + + 54 THEN + - 58 * - 21 WHEN - - 95 THEN - CAST( - 88 AS SIGNED ) END AS col0, + 56 + + CAST( NULL AS DECIMAL ) + - - 87 / - 26 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-75
SELECT CASE + 97 WHEN + 68 + + + 54 THEN + - 58 * - 21 WHEN - - 95 THEN - CAST ( - 88 AS INTEGER ) END AS col0, + 56 + + CAST ( NULL AS REAL ) + - - 87 / - 26 AS col2
----
NULL
NULL

query I rowsort
SELECT - 34 * 61 * + 59 + 14 * 70 * - 97 AS col1
----
-217426

onlyif mysql # DIV for integer division: 
query II rowsort label-77
SELECT ALL + ( - - 57 ), 39 DIV - 87 AS col1
----
57
0

skipif mysql # not compatible
query II rowsort label-77
SELECT ALL + ( - - 57 ), 39 / - 87 AS col1
----
57
0

query I rowsort
SELECT + 37 + + 37
----
74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-80
SELECT ALL + 69 DIV + 9 col0
----
7

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL + 69 / + 9 col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-81
SELECT ( + 76 ) * - 63 * COALESCE ( + 62, - 94 * - CAST( - 25 AS DECIMAL ) ) * COUNT( ALL + 92 ) * CAST( NULL AS SIGNED ) + + 68 + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-81
SELECT ( + 76 ) * - 63 * COALESCE ( + 62, - 94 * - CAST ( - 25 AS REAL ) ) * COUNT ( ALL + 92 ) * CAST ( NULL AS INTEGER ) + + 68 + - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT 60 * NULLIF ( - - 57, - - 19 + - COUNT( * ) + - COUNT( * ) + - 61 ) + 65
----
3485

skipif mysql # not compatible
query I rowsort label-82
SELECT 60 * NULLIF ( - - 57, - - 19 + - COUNT ( * ) + - COUNT ( * ) + - 61 ) + 65
----
3485

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-84
SELECT + ( + 31 ) * - 6 + - NULLIF ( - CASE 19 WHEN + - 23 * CASE - - 36 WHEN - COUNT( + - 8 ) * - 10 + - + 36 THEN - + 20 END THEN NULL ELSE 93 * - 30 DIV + 2 + - 65 END, - 33 DIV - 55 + + 9 + + 64 + - ( - 6 ) + - 30 DIV - 11 * - 4 ) + 28 AS col1
----
-1618

skipif mysql # not compatible
query I rowsort label-84
SELECT + ( + 31 ) * - 6 + - NULLIF ( - CASE 19 WHEN + - 23 * CASE - - 36 WHEN - COUNT ( + - 8 ) * - 10 + - + 36 THEN - + 20 END THEN NULL ELSE 93 * - 30 / + 2 + - 65 END, - 33 / - 55 + + 9 + + 64 + - ( - 6 ) + - 30 / - 11 * - 4 ) + 28 AS col1
----
-1618

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT COUNT( DISTINCT + + CASE - - 77 WHEN 53 THEN + + 38 WHEN + 9 THEN NULL ELSE NULL END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-85
SELECT COUNT ( DISTINCT + + CASE - - 77 WHEN 53 THEN + + 38 WHEN + 9 THEN NULL ELSE NULL END ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-86
SELECT + MIN( ALL + ( - 3 ) ) * COUNT( * ), 19 col2
----
-3
19

skipif mysql # not compatible
query II rowsort label-86
SELECT + MIN ( ALL + ( - 3 ) ) * COUNT ( * ), 19 col2
----
-3
19

query I rowsort
SELECT + 59 + - 49
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT MIN( DISTINCT + - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-88
SELECT MIN ( DISTINCT + - 70 )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-89
SELECT MIN( 99 ) col0, - 32 + - - 46 + + 82 + - 93
----
99
3

skipif mysql # not compatible
query II rowsort label-89
SELECT MIN ( 99 ) col0, - 32 + - - 46 + + 82 + - 93
----
99
3

query I rowsort
SELECT ALL 41 + + + 51 AS col0
----
92

query I rowsort
SELECT - ( CASE 13 WHEN + + 12 THEN NULL WHEN + 98 * - - 31 - - 10 THEN - - 83 * - COALESCE ( + 15, + 64 * - 46 + 82 + - + 7 ) END )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT ALL - COUNT( DISTINCT - 99 ) + 49 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL - COUNT ( DISTINCT - 99 ) + 49 AS col2
----
48

query I rowsort
SELECT + + 73 - - 67 + - + 3 AS col0
----
137

query I rowsort
SELECT - + 68 * + 32 + 2 col0
----
-2174

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT - 37 + - + 34 * - - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-96
SELECT - 37 + - + 34 * - - COUNT ( * )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-97
SELECT DISTINCT + 29 DIV COUNT( * ) + - 7 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT + 29 / COUNT ( * ) + - 7 AS col0
----
22

query I rowsort
SELECT ALL - - 70 - + 38 AS col1
----
32

query I rowsort
SELECT + 94 * ( - 31 ) AS col0
----
-2914

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT DISTINCT + + MAX( DISTINCT ( - 3 ) ) * + 7
----
-21

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT + + MAX ( DISTINCT ( - 3 ) ) * + 7
----
-21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-101
SELECT DISTINCT ( + 66 ) DIV CASE + - 11 WHEN + - 29 THEN NULL WHEN - + CAST( - - 58 AS SIGNED ) + - 43 + + + 72 * 48 * - 70 * 89 THEN NULL ELSE - + 85 END
----
0

skipif mysql # not compatible
query I rowsort label-101
SELECT DISTINCT ( + 66 ) / CASE + - 11 WHEN + - 29 THEN NULL WHEN - + CAST ( - - 58 AS INTEGER ) + - 43 + + + 72 * 48 * - 70 * 89 THEN NULL ELSE - + 85 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT DISTINCT + 77 * SUM( ALL + - 3 )
----
-231

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT + 77 * SUM ( ALL + - 3 )
----
-231

query I rowsort
SELECT - 53 + - 18 * 13
----
-287

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-105
SELECT - 67 * - CAST( ( + 47 ) AS SIGNED ) AS col0
----
3149

skipif mysql # not compatible
query I rowsort label-105
SELECT - 67 * - CAST ( ( + 47 ) AS INTEGER ) AS col0
----
3149

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT + 30 * MAX( - + ( - 38 ) ) + - 41
----
1099

skipif mysql # not compatible
query I rowsort label-106
SELECT + 30 * MAX ( - + ( - 38 ) ) + - 41
----
1099

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT ALL + COALESCE ( - 59, + 91, - COALESCE ( - 79, - 4 ) + 57 + + + 90 * MAX( DISTINCT - - 73 ) * - 60 * MIN( + - 95 ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL + COALESCE ( - 59, + 91, - COALESCE ( - 79, - 4 ) + 57 + + + 90 * MAX ( DISTINCT - - 73 ) * - 60 * MIN ( + - 95 ) ) AS col2
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-108
SELECT + 64, - 30 DIV - 44 AS col1
----
64
0

skipif mysql # not compatible
query II rowsort label-108
SELECT + 64, - 30 / - 44 AS col1
----
64
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-110
SELECT DISTINCT - 17 AS col0, - COUNT( ALL + 2 )
----
-17
-1

skipif mysql # not compatible
query II rowsort label-110
SELECT DISTINCT - 17 AS col0, - COUNT ( ALL + 2 )
----
-17
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-111
SELECT DISTINCT - CAST( + + 65 AS SIGNED ) + + 81
----
16

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT - CAST ( + + 65 AS INTEGER ) + + 81
----
16

query I rowsort
SELECT ALL - 9 + - - 9 + - 28 * + + 29 col2
----
-812

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

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT 66 + 4 + ( + COUNT ( * ) ) AS col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-114
SELECT DISTINCT + 82 DIV - MIN( 13 ) AS col0, 86 - - - COUNT( * ) AS col0
----
-6
85

skipif mysql # not compatible
query II rowsort label-114
SELECT DISTINCT + 82 / - MIN ( 13 ) AS col0, 86 - - - COUNT ( * ) AS col0
----
-6
85

query I rowsort
SELECT 45 - 24
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-116
SELECT ALL + 64 * COALESCE ( - + 6, 27 ) * CAST( - - 44 AS SIGNED ) AS col0
----
-16896

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL + 64 * COALESCE ( - + 6, 27 ) * CAST ( - - 44 AS INTEGER ) AS col0
----
-16896

query I rowsort
SELECT CASE - 92 WHEN + ( - 33 ) + - 60 THEN 5 END * 55 - - + ( + ( - - 0 ) ) + - + 26
----
NULL

query II rowsort
SELECT + 42 col1, - 81 col2
----
42
-81

query I rowsort
SELECT ALL + 38 + 87 * - 52
----
-4486

query I rowsort
SELECT ALL + 65 * - 6 AS col2
----
-390

query I rowsort
SELECT ALL - 10 + - 54
----
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-122
SELECT ALL 53 AS col2, - CAST( NULL AS DECIMAL ) * 2 * 1
----
53
NULL

skipif mysql # not compatible
query II rowsort label-122
SELECT ALL 53 AS col2, - CAST ( NULL AS REAL ) * 2 * 1
----
53
NULL

query II rowsort
SELECT 47 col0, 59
----
47
59

query I rowsort
SELECT DISTINCT + 93 + - 20 AS col2
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT 51 + - 16 - - - COUNT( * ) col2
----
34

skipif mysql # not compatible
query I rowsort label-126
SELECT 51 + - 16 - - - COUNT ( * ) col2
----
34

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-127
SELECT DISTINCT 95 AS col2, CAST( NULL AS DECIMAL ) AS col1
----
95
NULL

skipif mysql # not compatible
query II rowsort label-127
SELECT DISTINCT 95 AS col2, CAST ( NULL AS REAL ) AS col1
----
95
NULL

query I rowsort
SELECT + 92 * + 32 col0
----
2944

query I rowsort
SELECT ALL - 51 * - - 37
----
-1887

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

skipif mysql # not compatible
query I rowsort label-130
SELECT MIN ( + 46 )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-131
SELECT ALL MIN( + - NULLIF ( - - 71, 21 - + 60 ) ) * 76 DIV + + 8 + - 90 + - - 26 * - 92 DIV 46 + + COUNT( - - 14 )
----
-815

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL MIN ( + - NULLIF ( - - 71, 21 - + 60 ) ) * 76 / + + 8 + - 90 + - - 26 * - 92 / 46 + + COUNT ( - - 14 )
----
-815

query I rowsort
SELECT ALL - 7 * + 89 * 33 * - 77 + - 38 AS col0
----
1583005

query II rowsort
SELECT DISTINCT + 25 AS col1, 77
----
25
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-134
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + 31
----
NULL
31

skipif mysql # not compatible
query II rowsort label-134
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + 31
----
NULL
31

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT COALESCE ( - 75, + - COALESCE ( - COUNT( * ), - - COUNT( * ) ) * 60 * 64 ) * 37 + + 78
----
-2697

skipif mysql # not compatible
query I rowsort label-135
SELECT COALESCE ( - 75, + - COALESCE ( - COUNT ( * ), - - COUNT ( * ) ) * 60 * 64 ) * 37 + + 78
----
-2697

onlyif mysql # DIV for integer division: 
query I rowsort label-136
SELECT ALL + 24 DIV - - 19 * + 1 - 37 * + + COALESCE ( + 54, - + 72 DIV - + ( - 34 ) )
----
-1997

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL + 24 / - - 19 * + 1 - 37 * + + COALESCE ( + 54, - + 72 / - + ( - 34 ) )
----
-1997

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

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

query II rowsort
SELECT DISTINCT - 72 col0, 27 AS col1
----
-72
27

query I rowsort
SELECT DISTINCT 8 + + 86 - 90 AS col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-140
SELECT ALL - 41 + + 55 DIV + - ( - - 49 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL - 41 + + 55 / + - ( - - 49 ) AS col0
----
-42

query I rowsort
SELECT 55 + - + COALESCE ( 68, + - 74 + 1 )
----
-13

query II rowsort
SELECT ALL + 69 + ( 91 ) - + + 48 col2, - 7 - - 72 AS col1
----
112
65

query II rowsort
SELECT DISTINCT 37 * + - 80 col0, 29 AS col0
----
-2960
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-144
SELECT 5 DIV - 5 + + + ( - 53 ) col1, COUNT( * ) DIV - 29
----
-54
0

skipif mysql # not compatible
query II rowsort label-144
SELECT 5 / - 5 + + + ( - 53 ) col1, COUNT ( * ) / - 29
----
-54
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-145
SELECT 69 * + COUNT( * ) - 43 + - + CASE - 70 WHEN + COUNT( * ) + - - 96 + + CAST( + - 57 AS SIGNED ) + - 40 + 4 * - + 98 THEN 97 + MIN( ALL - 31 ) * CAST( NULL AS SIGNED ) / - 49 WHEN + 44 THEN NULL END + + CASE - 82 WHEN - + COUNT( * ) THEN + 89 ELSE NULL END * - + 39 * - + 56 AS col0, + 26 + - + COUNT( * ) col2
----
NULL
25

skipif mysql # not compatible
query II rowsort label-145
SELECT 69 * + COUNT ( * ) - 43 + - + CASE - 70 WHEN + COUNT ( * ) + - - 96 + + CAST ( + - 57 AS INTEGER ) + - 40 + 4 * - + 98 THEN 97 + MIN ( ALL - 31 ) * CAST ( NULL AS INTEGER ) / - 49 WHEN + 44 THEN NULL END + + CASE - 82 WHEN - + COUNT ( * ) THEN + 89 ELSE NULL END * - + 39 * - + 56 AS col0, + 26 + - + COUNT ( * ) col2
----
NULL
25

query I rowsort
SELECT ALL + 78 * COALESCE ( + - 43, + + 55 + - - 83 )
----
-3354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-147
SELECT + 50 / + 61 * - COALESCE ( 64, + ( - COUNT( * ) ) + CASE + - 9 WHEN - + 82 * - 14 * CAST( 51 AS SIGNED ) THEN NULL ELSE 17 END * - 84 ) * + - NULLIF ( 24, - + 95 / + + CAST( NULL AS SIGNED ) * 31 ) / CASE - 28 WHEN + NULLIF ( + + 54, + - 89 ) THEN 72 / 16 ELSE 0 - + 20 * - 39 END * - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-147
SELECT + 50 / + 61 * - COALESCE ( 64, + ( - COUNT ( * ) ) + CASE + - 9 WHEN - + 82 * - 14 * CAST ( 51 AS INTEGER ) THEN NULL ELSE 17 END * - 84 ) * + - NULLIF ( 24, - + 95 / + + CAST ( NULL AS INTEGER ) * 31 ) / CASE - 28 WHEN + NULLIF ( + + 54, + - 89 ) THEN 72 / 16 ELSE 0 - + 20 * - 39 END * - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 0 + - - 55
----
55

query I rowsort
SELECT ALL - 6 + 45 * - 59 col2
----
-2661

query II rowsort
SELECT 2, - 66 AS col2
----
2
-66

query I rowsort
SELECT ALL 36 * + 82 AS col2
----
2952

query I rowsort
SELECT DISTINCT 95 + ( - 28 ) col2
----
67

query I rowsort
SELECT 99 + - 22
----
77

query I rowsort
SELECT ALL - 6 * 59 AS col2
----
-354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-155
SELECT 6 * + 12 * + 71 DIV COUNT( * )
----
5112

skipif mysql # not compatible
query I rowsort label-155
SELECT 6 * + 12 * + 71 / COUNT ( * )
----
5112

query I rowsort
SELECT + 95 * 15 + - 16 + + 0
----
1409

query I rowsort
SELECT + 24 * - 58 + + 47 * + 23 + 99 AS col1
----
-212

query I rowsort
SELECT + 23 + 13 + 28 + - 83 + 51 col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT DISTINCT - + 49 * 22 * + + 82 * - NULLIF ( + 43, - 14 ) + - 50 - + CASE COALESCE ( - ( 1 ), + COUNT( * ) ) WHEN - 87 THEN + 63 / - 63 + - 47 END / + + 47 * - 33 * + + 49 * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT - + 49 * 22 * + + 82 * - NULLIF ( + 43, - 14 ) + - 50 - + CASE COALESCE ( - ( 1 ), + COUNT ( * ) ) WHEN - 87 THEN + 63 / - 63 + - 47 END / + + 47 * - 33 * + + 49 * - 79
----
NULL

query I rowsort
SELECT DISTINCT + + 86 * - + COALESCE ( + + 15, - 63 ) * - - 19
----
-24510

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT 73 + - 5 * + SUM( + + 71 ) col0
----
-282

skipif mysql # not compatible
query I rowsort label-161
SELECT 73 + - 5 * + SUM ( + + 71 ) col0
----
-282

query I rowsort
SELECT - 99 + 11 + + 75 col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-163
SELECT 65 DIV + 4 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-163
SELECT 65 / + 4 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-164
SELECT ALL - 19 DIV 1
----
-19

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL - 19 / 1
----
-19

query II rowsort
SELECT 53 + 19 AS col1, ( - 49 ) - + + 70
----
72
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT - MIN( DISTINCT ( - + 6 ) ) - + SUM( DISTINCT - 11 ) * 31 + + 64
----
411

skipif mysql # not compatible
query I rowsort label-166
SELECT - MIN ( DISTINCT ( - + 6 ) ) - + SUM ( DISTINCT - 11 ) * 31 + + 64
----
411

query II rowsort
SELECT 72, ( 79 ) AS col2
----
72
79

query II rowsort
SELECT 78 col2, 83 - - - 5
----
78
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-169
SELECT DISTINCT + COUNT( * ) + 94 DIV + + 89 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-169
SELECT DISTINCT + COUNT ( * ) + 94 / + + 89 AS col2
----
2

query I rowsort
SELECT DISTINCT - CASE + ( 58 ) WHEN + 14 THEN NULL ELSE + + 80 END + - 71 AS col1
----
-151

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-171
SELECT ALL 32 + - 45 AS col1, 1 / - CASE 69 WHEN + - 24 THEN - 78 / - 0 WHEN + - CAST( NULL AS DECIMAL ) * - 95 THEN + - 77 - + - ( - - 46 ) END AS col1
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-171
SELECT ALL 32 + - 45 AS col1, 1 / - CASE 69 WHEN + - 24 THEN - 78 / - 0 WHEN + - CAST ( NULL AS REAL ) * - 95 THEN + - 77 - + - ( - - 46 ) END AS col1
----
-13
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-173
SELECT ALL + COUNT( * ) + - CAST( NULL AS SIGNED ) - + 88 * + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER ) - + 88 * + 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-174
SELECT + 14 * CASE - 34 WHEN + COUNT( * ) + - 4 THEN + COUNT( * ) * - 27 WHEN - - AVG ( - - 4 ) * + - 6 - - - ( + + COUNT( * ) ) + 56 * - 22 / 91 * - SUM( ALL - ( - - 85 ) ) / + + COUNT( * ) THEN NULL ELSE ( - - 82 ) + + COUNT( * ) END AS col1, - 62
----
1162
-62

skipif mysql # not compatible
query II rowsort label-174
SELECT + 14 * CASE - 34 WHEN + COUNT ( * ) + - 4 THEN + COUNT ( * ) * - 27 WHEN - - AVG ( - - 4 ) * + - 6 - - - ( + + COUNT ( * ) ) + 56 * - 22 / 91 * - SUM ( ALL - ( - - 85 ) ) / + + COUNT ( * ) THEN NULL ELSE ( - - 82 ) + + COUNT ( * ) END AS col1, - 62
----
1162
-62

query II rowsort
SELECT ALL 53 * + 0 + - 11 AS col2, - 97 + + - 54
----
-11
-151

query I rowsort
SELECT + COALESCE ( 84, ( + ( - 10 ) ) ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-177
SELECT DISTINCT 37 * + COUNT( * ) AS col0, 48
----
37
48

skipif mysql # not compatible
query II rowsort label-177
SELECT DISTINCT 37 * + COUNT ( * ) AS col0, 48
----
37
48

onlyif mysql # aggregate syntax: 
query II rowsort label-178
SELECT ALL 46 * - - COUNT( * ) + - + 3, COUNT( * ) AS col1
----
43
1

skipif mysql # not compatible
query II rowsort label-178
SELECT ALL 46 * - - COUNT ( * ) + - + 3, COUNT ( * ) AS col1
----
43
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-179
SELECT + COALESCE ( + 45, - 29 DIV - CAST( 9 AS SIGNED ) * + - 37 + - - 63 + + 70 + - COALESCE ( 84, 30 ) )
----
45

skipif mysql # not compatible
query I rowsort label-179
SELECT + COALESCE ( + 45, - 29 / - CAST ( 9 AS INTEGER ) * + - 37 + - - 63 + + 70 + - COALESCE ( 84, 30 ) )
----
45

query I rowsort
SELECT CASE + 14 WHEN - 43 + + NULLIF ( + + 16, 94 ) THEN 77 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-181
SELECT ALL 54 DIV + 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-181
SELECT ALL 54 / + 63 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT ALL + CASE - 76 WHEN - COUNT( * ) * + COUNT( * ) THEN NULL WHEN CASE + 76 WHEN + 0 * - 51 THEN + 92 END * - 66 / + 7 * - 66 * - 33 THEN NULL WHEN + 63 THEN - - ( - - COUNT( * ) ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL + CASE - 76 WHEN - COUNT ( * ) * + COUNT ( * ) THEN NULL WHEN CASE + 76 WHEN + 0 * - 51 THEN + 92 END * - 66 / + 7 * - 66 * - 33 THEN NULL WHEN + 63 THEN - - ( - - COUNT ( * ) ) ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-183
SELECT ALL 33 * 57 - - - 71, - COUNT( * ) + - - 59 AS col1
----
1810
58

skipif mysql # not compatible
query II rowsort label-183
SELECT ALL 33 * 57 - - - 71, - COUNT ( * ) + - - 59 AS col1
----
1810
58

query I rowsort
SELECT DISTINCT 89 * - ( 72 ) AS col0
----
-6408

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT + COUNT( * ) - - + 51 + - 77 * + - 62 * + 71
----
339006

skipif mysql # not compatible
query I rowsort label-185
SELECT + COUNT ( * ) - - + 51 + - 77 * + - 62 * + 71
----
339006

query I rowsort
SELECT - 18 * ( - 12 )
----
216

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

query I rowsort
SELECT - 94 * + 71 * ( + 64 )
----
-427136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-189
SELECT + - CAST( NULL AS SIGNED ) * + 24 * - COUNT( * ) * 3 + + 46 * - + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT + - CAST ( NULL AS INTEGER ) * + 24 * - COUNT ( * ) * 3 + + 46 * - + 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT - 3 + 12 * - COUNT( * ) col0
----
-15

skipif mysql # not compatible
query I rowsort label-190
SELECT - 3 + 12 * - COUNT ( * ) col0
----
-15

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

skipif mysql # not compatible
query I rowsort label-191
SELECT + SUM ( + - ( 84 ) )
----
-84

query I rowsort
SELECT - 60 - - + 68 AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-193
SELECT - - CAST( NULL AS DECIMAL ) * + - ( - 80 ) + + 63 - + - 82 AS col0, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-193
SELECT - - CAST ( NULL AS REAL ) * + - ( - 80 ) + + 63 - + - 82 AS col0, + COUNT ( * )
----
NULL
1

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

query I rowsort
SELECT + - 84 + - + 52
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-196
SELECT - 19 + - CAST( NULL AS SIGNED ) + ( + CAST( NULL AS DECIMAL ) ) + 90 + 86 - - - 76 / 24 * - COUNT( * ) / + 84 * 72 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-196
SELECT - 19 + - CAST ( NULL AS INTEGER ) + ( + CAST ( NULL AS REAL ) ) + 90 + 86 - - - 76 / 24 * - COUNT ( * ) / + 84 * 72 col1
----
NULL

query II rowsort
SELECT ALL - ( - + 55 ) AS col2, 65
----
55
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-198
SELECT ALL - - 96 + ( + COALESCE ( + - COUNT( * ), - + 94 * + 91 - + 24 + + 11, - 19 * - COUNT( * ) ) ) + + - 49 + + 93 * + CAST( + 81 AS SIGNED ) + + 68 + 44 AS col1
----
7691

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL - - 96 + ( + COALESCE ( + - COUNT ( * ), - + 94 * + 91 - + 24 + + 11, - 19 * - COUNT ( * ) ) ) + + - 49 + + 93 * + CAST ( + 81 AS INTEGER ) + + 68 + 44 AS col1
----
7691

query II rowsort
SELECT - ( + 75 ) * + + 58 AS col2, 76 * + 69 + - - 61 AS col2
----
-4350
5305

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-201
SELECT - SUM( - NULLIF ( 84, - 80 ) ) AS col2, 6
----
84
6

skipif mysql # not compatible
query II rowsort label-201
SELECT - SUM ( - NULLIF ( 84, - 80 ) ) AS col2, 6
----
84
6

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-203
SELECT - 2 + + + COALESCE ( + CASE + + CAST( NULL AS SIGNED ) WHEN - MAX( ALL 8 ) THEN NULL WHEN COUNT( * ) * 32 THEN NULL ELSE - + SUM( - 46 ) END, - 35 ) * 89 + 9 AS col2
----
4101

skipif mysql # not compatible
query I rowsort label-203
SELECT - 2 + + + COALESCE ( + CASE + + CAST ( NULL AS INTEGER ) WHEN - MAX ( ALL 8 ) THEN NULL WHEN COUNT ( * ) * 32 THEN NULL ELSE - + SUM ( - 46 ) END, - 35 ) * 89 + 9 AS col2
----
4101

query II rowsort
SELECT + 8 * - ( - + 47 ) col2, - 30 + + - 82 AS col2
----
376
-112

query II rowsort
SELECT 57 col1, 14
----
57
14

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT - SUM( DISTINCT - 95 ) + 37 + 82
----
214

skipif mysql # not compatible
query I rowsort label-206
SELECT - SUM ( DISTINCT - 95 ) + 37 + 82
----
214

query I rowsort
SELECT ALL + 5 + + 57
----
62

query I rowsort
SELECT DISTINCT 84 * + 5
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT + COUNT( * ) + - 5 * 43
----
-214

skipif mysql # not compatible
query I rowsort label-209
SELECT + COUNT ( * ) + - 5 * 43
----
-214

query I rowsort
SELECT DISTINCT - 34 * - - 69 AS col0
----
-2346

query II rowsort
SELECT ALL + 35, - 77 AS col0
----
35
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT - SUM( ALL - 12 ) + - - 28
----
40

skipif mysql # not compatible
query I rowsort label-212
SELECT - SUM ( ALL - 12 ) + - - 28
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT 43 * - SUM( DISTINCT + 78 ) - - 98 + 7
----
-3249

skipif mysql # not compatible
query I rowsort label-213
SELECT 43 * - SUM ( DISTINCT + 78 ) - - 98 + 7
----
-3249

query I rowsort
SELECT + 65 + + - 87
----
-22

query I rowsort
SELECT + 71 - - ( - 48 ) col0
----
23

query II rowsort
SELECT DISTINCT + 63, + ( + + 44 ) AS col2
----
63
44

query I rowsort
SELECT + 97 * + 78 + - 10 * + 79 * + 77 AS col0
----
-53264

query I rowsort
SELECT + 92 + 82 + + 71
----
245

onlyif mysql # DIV for integer division: 
query I rowsort label-219
SELECT DISTINCT + 13 DIV 60 * 26
----
0

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT + 13 / 60 * 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT + 53 * - 72 + + + NULLIF ( + + ( NULLIF ( 60, 39 ) ), - 13 + COUNT( * ) )
----
-3756

skipif mysql # not compatible
query I rowsort label-220
SELECT + 53 * - 72 + + + NULLIF ( + + ( NULLIF ( 60, 39 ) ), - 13 + COUNT ( * ) )
----
-3756

query I rowsort
SELECT ALL + NULLIF ( + 70, + 4 ) AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-222
SELECT DISTINCT 19 DIV + + 66 col1
----
0

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT 19 / + + 66 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT + 58 + - COUNT( * ) - + 86 * + 58 + - - 21 * + 32
----
-4259

skipif mysql # not compatible
query I rowsort label-223
SELECT + 58 + - COUNT ( * ) - + 86 * + 58 + - - 21 * + 32
----
-4259

query I rowsort
SELECT ALL + - ( - 44 ) * + 4 - - + 28
----
204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-225
SELECT + + MIN( + 22 ) DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-225
SELECT + + MIN ( + 22 ) / + 30
----
0

query II rowsort
SELECT + + 59, - 89 * 26 AS col2
----
59
-2314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-227
SELECT 72 * + COUNT( * ) - 71 + 90 * 24 / + - COUNT( * ) * + 2 * COUNT( * ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-227
SELECT 72 * + COUNT ( * ) - 71 + 90 * 24 / + - COUNT ( * ) * + 2 * COUNT ( * ) + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 14 * + + 90
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT - COUNT( * ) * + 3 * 95 + ( 66 ) * + 28 + COUNT( * ) AS col1
----
1564

skipif mysql # not compatible
query I rowsort label-229
SELECT - COUNT ( * ) * + 3 * 95 + ( 66 ) * + 28 + COUNT ( * ) AS col1
----
1564

query I rowsort
SELECT DISTINCT + 0 * ( - + 16 )
----
0

query I rowsort
SELECT ALL + 36 + 93 * - 54 AS col0
----
-4986

query I rowsort
SELECT + 70 + + ( + 33 ) + - 6 + - - 27
----
124

query I rowsort
SELECT DISTINCT - 25 + 10 + + ( - 77 ) - - NULLIF ( + - 48, - 32 )
----
-140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-234
SELECT ( + COUNT( ALL - 90 ) ) + - + CASE WHEN NOT - CAST( + - 22 AS SIGNED ) IS NOT NULL THEN 82 ELSE NULL END * 75 + + - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT ( + COUNT ( ALL - 90 ) ) + - + CASE WHEN NOT - CAST ( + - 22 AS INTEGER ) IS NOT NULL THEN 82 ELSE NULL END * 75 + + - 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-235
SELECT - 36 + + 92 * 48 DIV COUNT( * ) - - 64 + - - 60 * NULLIF ( - 8, - 7 ) + - 51 * 97
----
-983

skipif mysql # not compatible
query I rowsort label-235
SELECT - 36 + + 92 * 48 / COUNT ( * ) - - 64 + - - 60 * NULLIF ( - 8, - 7 ) + - 51 * 97
----
-983

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-236
SELECT NULLIF ( + - COUNT( + - 34 ), + 61 * + 64 ) DIV 71 col0
----
0

skipif mysql # not compatible
query I rowsort label-236
SELECT NULLIF ( + - COUNT ( + - 34 ), + 61 * + 64 ) / 71 col0
----
0

query I rowsort
SELECT 81 + - 6 col2
----
75

query I rowsort
SELECT 91 + 11 + + + 44 + 11
----
157

query I rowsort
SELECT ALL + 19 * 79
----
1501

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

query II rowsort
SELECT DISTINCT 78 * 81, 89 * 47 * + 62 col0
----
6318
259346

query I rowsort
SELECT 80 + + - 3 + - - 50 + - 83
----
44

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

query I rowsort
SELECT DISTINCT - 65 * 22
----
-1430

onlyif mysql # DIV for integer division: 
query I rowsort label-245
SELECT ALL + 74 DIV + NULLIF ( - 97, 94 ) * + - 50 - - - 77 * 69 * + 77 AS col0
----
-409101

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL + 74 / + NULLIF ( - 97, 94 ) * + - 50 - - - 77 * 69 * + 77 AS col0
----
-409101

query I rowsort
SELECT DISTINCT + 93 - 74
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT COALESCE ( + 72, - 92, 18 * - + 50 + 37 ) + - + COUNT( * ) + NULLIF ( + - CASE 7 WHEN - 77 THEN SUM( ALL + 77 ) ELSE + + 60 * - - 46 END, - 18 ) AS col0
----
-2689

skipif mysql # not compatible
query I rowsort label-247
SELECT COALESCE ( + 72, - 92, 18 * - + 50 + 37 ) + - + COUNT ( * ) + NULLIF ( + - CASE 7 WHEN - 77 THEN SUM ( ALL + 77 ) ELSE + + 60 * - - 46 END, - 18 ) AS col0
----
-2689

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-248
SELECT ALL + 75 DIV - 98 col2, + MIN( + 74 ) * + - 48 + + 90
----
0
-3462

skipif mysql # not compatible
query II rowsort label-248
SELECT ALL + 75 / - 98 col2, + MIN ( + 74 ) * + - 48 + + 90
----
0
-3462

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT 48 * CASE COUNT( * ) WHEN + 24 THEN NULL ELSE 59 END + ( 40 ) + + 18 AS col0
----
2890

skipif mysql # not compatible
query I rowsort label-249
SELECT 48 * CASE COUNT ( * ) WHEN + 24 THEN NULL ELSE 59 END + ( 40 ) + + 18 AS col0
----
2890

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT DISTINCT - CASE - - 12 WHEN - COUNT( * ) * - - 87 * 21 + - 65 * 72 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-250
SELECT DISTINCT - CASE - - 12 WHEN - COUNT ( * ) * - - 87 * 21 + - 65 * 72 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-251
SELECT ALL COALESCE ( 37, - COALESCE ( - - 27, + + 86 + + ( - - 7 ) ) ) + + CAST( + 60 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL COALESCE ( 37, - COALESCE ( - - 27, + + 86 + + ( - - 7 ) ) ) + + CAST ( + 60 AS INTEGER )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-252
SELECT ALL - COUNT( ALL - 92 ) AS col1, MIN( - 64 ) AS col2
----
-1
-64

skipif mysql # not compatible
query II rowsort label-252
SELECT ALL - COUNT ( ALL - 92 ) AS col1, MIN ( - 64 ) AS col2
----
-1
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT DISTINCT + - 80 + - - COUNT( + + 34 ) col0
----
-79

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT + - 80 + - - COUNT ( + + 34 ) col0
----
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT 28 - MIN( + + 96 )
----
-68

skipif mysql # not compatible
query I rowsort label-255
SELECT 28 - MIN ( + + 96 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT 43 * - 35 - + 51 + - 15 + - + SUM( + - 24 ) + 73 * 89 * + 27 * 84 + - - 65 + 22
----
14733736

skipif mysql # not compatible
query I rowsort label-256
SELECT 43 * - 35 - + 51 + - 15 + - + SUM ( + - 24 ) + 73 * 89 * + 27 * 84 + - - 65 + 22
----
14733736

query I rowsort
SELECT + 1 + + + 4
----
5

query I rowsort
SELECT DISTINCT - 40 + - 61
----
-101

query I rowsort
SELECT DISTINCT + 58 * + + 56 * + - 70
----
-227360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-260
SELECT ALL - COALESCE ( CASE + CAST( - 37 AS SIGNED ) WHEN + ( CAST( - - COUNT( * ) AS SIGNED ) ) THEN NULL ELSE 27 END, - - 54 * + COUNT( ALL 56 ) ) - + 89
----
-116

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL - COALESCE ( CASE + CAST ( - 37 AS INTEGER ) WHEN + ( CAST ( - - COUNT ( * ) AS INTEGER ) ) THEN NULL ELSE 27 END, - - 54 * + COUNT ( ALL 56 ) ) - + 89
----
-116

query I rowsort
SELECT - 94 * + 49 * + 90
----
-414540

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

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL 73 * - + 2 * - COUNT ( * ) col2
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-263
SELECT ALL 37 * + COALESCE ( - 65, 81 ) * - 36 DIV + - 36 AS col1
----
-2405

skipif mysql # not compatible
query I rowsort label-263
SELECT ALL 37 * + COALESCE ( - 65, 81 ) * - 36 / + - 36 AS col1
----
-2405

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

skipif mysql # not compatible
query I rowsort label-264
SELECT - COUNT ( - ( 17 ) )
----
-1

query I rowsort
SELECT 0 * 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT ( + 66 ) + NULLIF ( - NULLIF ( COUNT( * ), + 13 / + + 3 * + - 55 + + 60 + + 12 ), + AVG ( DISTINCT + 30 ) ) + - ( - - COUNT( * ) )
----
64

skipif mysql # not compatible
query I rowsort label-266
SELECT ( + 66 ) + NULLIF ( - NULLIF ( COUNT ( * ), + 13 / + + 3 * + - 55 + + 60 + + 12 ), + AVG ( DISTINCT + 30 ) ) + - ( - - COUNT ( * ) )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-267
SELECT COUNT( + CAST( 78 AS SIGNED ) ) + - + 74 col0
----
-73

skipif mysql # not compatible
query I rowsort label-267
SELECT COUNT ( + CAST ( 78 AS INTEGER ) ) + - + 74 col0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-268
SELECT 19 DIV - + 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-268
SELECT 19 / - + 46 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL + MAX( DISTINCT 30 ) * - 38 + - COUNT( * ) AS col1
----
-1141

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL + MAX ( DISTINCT 30 ) * - 38 + - COUNT ( * ) AS col1
----
-1141

onlyif mysql # aggregate syntax: 
query II rowsort label-270
SELECT 96 col1, - COUNT( * )
----
96
-1

skipif mysql # not compatible
query II rowsort label-270
SELECT 96 col1, - COUNT ( * )
----
96
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-272
SELECT 9 DIV + 84 * - 96
----
0

skipif mysql # not compatible
query I rowsort label-272
SELECT 9 / + 84 * - 96
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-274
SELECT CAST( NULL AS SIGNED ) / COUNT( + - 67 ) + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT CAST ( NULL AS INTEGER ) / COUNT ( + - 67 ) + + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT - SUM( DISTINCT + 27 ) + + ( - 53 )
----
-80

skipif mysql # not compatible
query I rowsort label-275
SELECT - SUM ( DISTINCT + 27 ) + + ( - 53 )
----
-80

query I rowsort
SELECT + + ( + 78 ) * + + 15 - + + 45
----
1125

onlyif mysql # DIV for integer division: 
query I rowsort label-277
SELECT ALL - 3 DIV 58 * - + 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL - 3 / 58 * - + 91 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT 97 * 53 + + COUNT( * ) AS col1
----
5142

skipif mysql # not compatible
query I rowsort label-278
SELECT 97 * 53 + + COUNT ( * ) AS col1
----
5142

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

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT DISTINCT SUM( DISTINCT + + 2 ) * + 6 + + 0 + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT SUM ( DISTINCT + + 2 ) * + 6 + + 0 + COUNT ( * )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-281
SELECT - 6 * - + 91 * SUM( ALL - ( 39 ) ) + - - 19 * - 20 + - + 13 DIV + + 70
----
-21674

skipif mysql # not compatible
query I rowsort label-281
SELECT - 6 * - + 91 * SUM ( ALL - ( 39 ) ) + - - 19 * - 20 + - + 13 / + + 70
----
-21674

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-284
SELECT - ( - 48 ) * 91 + ( - 63 ) + - 2 * - CASE - 29 WHEN 20 + - 77 / - - 12 THEN - 23 WHEN NULLIF ( CAST( NULL AS SIGNED ), 85 ) THEN - - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-284
SELECT - ( - 48 ) * 91 + ( - 63 ) + - 2 * - CASE - 29 WHEN 20 + - 77 / - - 12 THEN - 23 WHEN NULLIF ( CAST ( NULL AS INTEGER ), 85 ) THEN - - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT ALL - - COUNT( * ) - - 99
----
100

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL - - COUNT ( * ) - - 99
----
100

query I rowsort
SELECT DISTINCT + + 60 * - + 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT 54 * + + 11 * COUNT( * ) + + 55 - + 66 + 77 + + 32
----
692

skipif mysql # not compatible
query I rowsort label-287
SELECT 54 * + + 11 * COUNT ( * ) + + 55 - + 66 + 77 + + 32
----
692

query I rowsort
SELECT - + 79 + + 98
----
19

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

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

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

query I rowsort
SELECT + 32 * + 7
----
224

query I rowsort
SELECT ALL NULLIF ( - 69, + + 96 ) AS col2
----
-69

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

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

query I rowsort
SELECT + ( - + 14 ) + - 13
----
-27

query I rowsort
SELECT + 2 + + - 96 + + + 80
----
-14

query I rowsort
SELECT + 78 * - 20 col2
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT - COUNT( DISTINCT - 89 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-297
SELECT - COUNT ( DISTINCT - 89 ) AS col0
----
-1

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

query I rowsort
SELECT ALL 60 * + 92 AS col2
----
5520

query I rowsort
SELECT ALL ( + ( - 9 ) ) + + + 37 + 2
----
30

onlyif mysql # aggregate syntax: 
query III rowsort label-301
SELECT DISTINCT COUNT( * ) AS col1, 49 AS col0, - 44 * - + 66 + 62 + + MAX( ALL - 57 ) + - 19 * SUM( + 42 ) col2
----
1
49
2111

skipif mysql # not compatible
query III rowsort label-301
SELECT DISTINCT COUNT ( * ) AS col1, 49 AS col0, - 44 * - + 66 + 62 + + MAX ( ALL - 57 ) + - 19 * SUM ( + 42 ) col2
----
1
49
2111

query I rowsort
SELECT + 12 * - 73 col1
----
-876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-303
SELECT ALL 18 + + + COUNT( * ) * + COALESCE ( + 99, - CAST( - ( + 75 ) AS SIGNED ) )
----
117

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL 18 + + + COUNT ( * ) * + COALESCE ( + 99, - CAST ( - ( + 75 ) AS INTEGER ) )
----
117

query II rowsort
SELECT DISTINCT 51 AS col0, - 46
----
51
-46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-306
SELECT + - 1 * + 39 DIV + + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-306
SELECT + - 1 * + 39 / + + 51 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT - - 95 + + SUM( ALL 4 )
----
99

skipif mysql # not compatible
query I rowsort label-307
SELECT - - 95 + + SUM ( ALL 4 )
----
99

query II rowsort
SELECT ALL + + 21, + 58 * + 55 * + - 39 AS col2
----
21
-124410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-309
SELECT ALL + 77 / + 59 + - + COUNT( * ) + + 53 + - 59 + - 4 + + 68 - - CAST( NULL AS SIGNED ) / + 37 + 10 / CAST( - 92 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL + 77 / + 59 + - + COUNT ( * ) + + 53 + - 59 + - 4 + + 68 - - CAST ( NULL AS INTEGER ) / + 37 + 10 / CAST ( - 92 AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-310
SELECT ALL - 70 DIV + 65 + - 0 * - 25 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL - 70 / + 65 + - 0 * - 25 AS col1
----
-1

query I rowsort
SELECT + 13 * 21
----
273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-312
SELECT DISTINCT + - 99 * + + NULLIF ( - COUNT( ALL - 23 ), 66 / - + 13 + ( + 8 ) + + 56 + + ( - COUNT( * ) ) * SUM( - 79 ) * + - 0 + + CAST( NULL AS SIGNED ) ) - - 77 * - + 46 AS col0, - 98 AS col2
----
-3443
-98

skipif mysql # not compatible
query II rowsort label-312
SELECT DISTINCT + - 99 * + + NULLIF ( - COUNT ( ALL - 23 ), 66 / - + 13 + ( + 8 ) + + 56 + + ( - COUNT ( * ) ) * SUM ( - 79 ) * + - 0 + + CAST ( NULL AS INTEGER ) ) - - 77 * - + 46 AS col0, - 98 AS col2
----
-3443
-98

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-314
SELECT ALL - NULLIF ( + 24, COUNT( * ) * + COUNT( ALL + 47 ) ) * - 10 - + 14 DIV + NULLIF ( 4, 19 * 36 + + 33 ) AS col0
----
237

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL - NULLIF ( + 24, COUNT ( * ) * + COUNT ( ALL + 47 ) ) * - 10 - + 14 / + NULLIF ( 4, 19 * 36 + + 33 ) AS col0
----
237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-315
SELECT - + MIN( + 39 ) * - COUNT( * ) + + COUNT( * ) DIV ( - 1 ) DIV 53 * + ( + 48 ) + 72 + - - 14 * 47
----
769

skipif mysql # not compatible
query I rowsort label-315
SELECT - + MIN ( + 39 ) * - COUNT ( * ) + + COUNT ( * ) / ( - 1 ) / 53 * + ( + 48 ) + 72 + - - 14 * 47
----
769

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

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

query I rowsort
SELECT ALL + + NULLIF ( 10, - 84 )
----
10

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

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

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

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

query I rowsort
SELECT - 16 * + 72 + + ( 1 ) AS col1
----
-1151

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-321
SELECT DISTINCT - 97 / CAST( NULL AS SIGNED ) + - - CAST( - 6 AS DECIMAL ) * 1 + + 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT - 97 / CAST ( NULL AS INTEGER ) + - - CAST ( - 6 AS REAL ) * 1 + + 92 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-322
SELECT - NULLIF ( + 9, - 35 + COUNT( DISTINCT + 45 ) ) * + COUNT( * ) * 41 * + NULLIF ( + 71, 78 + + 58 - + CAST( NULL AS SIGNED ) + + 19 * - CAST( + 28 AS SIGNED ) )
----
-26199

skipif mysql # not compatible
query I rowsort label-322
SELECT - NULLIF ( + 9, - 35 + COUNT ( DISTINCT + 45 ) ) * + COUNT ( * ) * 41 * + NULLIF ( + 71, 78 + + 58 - + CAST ( NULL AS INTEGER ) + + 19 * - CAST ( + 28 AS INTEGER ) )
----
-26199

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT COALESCE ( + + 76, NULLIF ( + COUNT( * ), 28 * + MIN( DISTINCT - 18 ) ), - 64 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-323
SELECT COALESCE ( + + 76, NULLIF ( + COUNT ( * ), 28 * + MIN ( DISTINCT - 18 ) ), - 64 ) AS col2
----
76

query I rowsort
SELECT ALL ( NULLIF ( + 49, 91 ) ) AS col2
----
49

query I rowsort
SELECT DISTINCT - 6 * 61 AS col1
----
-366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-326
SELECT DISTINCT CAST( NULLIF ( + + MIN( - + 6 ), 97 * + 22 ) AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT CAST ( NULLIF ( + + MIN ( - + 6 ), 97 * + 22 ) AS INTEGER )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-327
SELECT ALL - COUNT( + 93 ) * ( - - 95 ) + - 94 AS col1, 80 DIV - 64
----
-189
-1

skipif mysql # not compatible
query II rowsort label-327
SELECT ALL - COUNT ( + 93 ) * ( - - 95 ) + - 94 AS col1, 80 / - 64
----
-189
-1

query I rowsort
SELECT - 90 * + + 9 AS col1
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT - NULLIF ( COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-329
SELECT - NULLIF ( COUNT ( * ), COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 63, - 92 * + 48 ) + - 79
----
-142

query I rowsort
SELECT ALL - 89 + 90 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT ALL + 16 + + MAX( DISTINCT - 8 ) + - 23 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL + 16 + + MAX ( DISTINCT - 8 ) + - 23 AS col2
----
-15

query I rowsort
SELECT - 0 + + 26 * - 71
----
-1846

query I rowsort
SELECT - 59 * + 91 AS col0
----
-5369

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT COUNT( * ) + + 79 * + - 38 AS col0
----
-3001

skipif mysql # not compatible
query I rowsort label-336
SELECT COUNT ( * ) + + 79 * + - 38 AS col0
----
-3001

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-337
SELECT - COUNT( * ) * - - 36 - - + COALESCE ( + 91, + - COUNT( * ) DIV - 60 ) * COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-337
SELECT - COUNT ( * ) * - - 36 - - + COALESCE ( + 91, + - COUNT ( * ) / - 60 ) * COUNT ( * ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT - 98 + + + COUNT( - + 10 )
----
-97

skipif mysql # not compatible
query I rowsort label-338
SELECT - 98 + + + COUNT ( - + 10 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT DISTINCT - CASE + 0 WHEN - + COUNT( * ) THEN - - 43 + + - CASE + 23 WHEN + - 87 THEN COUNT( + 20 ) ELSE NULL END WHEN + 71 - COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT - CASE + 0 WHEN - + COUNT ( * ) THEN - - 43 + + - CASE + 23 WHEN + - 87 THEN COUNT ( + 20 ) ELSE NULL END WHEN + 71 - COUNT ( * ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT 95 + 17
----
112

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-342
SELECT - 34 DIV - 69 + + + 46 * ( - 28 ) + + 98 AS col1
----
-1190

skipif mysql # not compatible
query I rowsort label-342
SELECT - 34 / - 69 + + + 46 * ( - 28 ) + + 98 AS col1
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT COUNT( ALL + 48 ) + + 13
----
14

skipif mysql # not compatible
query I rowsort label-343
SELECT COUNT ( ALL + 48 ) + + 13
----
14

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-345
SELECT - 14 * - - 4 AS col2, - 49 * COUNT( * ) AS col1
----
-56
-49

skipif mysql # not compatible
query II rowsort label-345
SELECT - 14 * - - 4 AS col2, - 49 * COUNT ( * ) AS col1
----
-56
-49

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

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

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

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

query I rowsort
SELECT 43 + - - 55 AS col0
----
98

query I rowsort
SELECT 93 + + + 80 * + 39
----
3213

query II rowsort
SELECT + 8 col2, 29
----
8
29

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT ALL 8 + + COUNT( * ) col1
----
9

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL 8 + + COUNT ( * ) col1
----
9

query II rowsort
SELECT + 63, - 13 + + 5 col0
----
63
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-353
SELECT + 22 * + - 32 + - COUNT( * ) - 3 * - COUNT( DISTINCT - 22 ) AS col0, 27 AS col0
----
-702
27

skipif mysql # not compatible
query II rowsort label-353
SELECT + 22 * + - 32 + - COUNT ( * ) - 3 * - COUNT ( DISTINCT - 22 ) AS col0, 27 AS col0
----
-702
27

query I rowsort
SELECT ALL 48 + + + 42
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-355
SELECT DISTINCT 7 + CAST( + COUNT( * ) AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-355
SELECT DISTINCT 7 + CAST ( + COUNT ( * ) AS INTEGER )
----
8

query I rowsort
SELECT 15 + + 46
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-357
SELECT ALL 84 AS col1, - 61 * - + CAST( + 82 AS SIGNED ) / + CAST( NULL AS SIGNED )
----
84
NULL

skipif mysql # not compatible
query II rowsort label-357
SELECT ALL 84 AS col1, - 61 * - + CAST ( + 82 AS INTEGER ) / + CAST ( NULL AS INTEGER )
----
84
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-358
SELECT 25 + - COUNT( * ) + - CAST( - COUNT( * ) AS SIGNED ) * - 25 + - 67
----
-68

skipif mysql # not compatible
query I rowsort label-358
SELECT 25 + - COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER ) * - 25 + - 67
----
-68

query I rowsort
SELECT DISTINCT + 85 + - + 24 AS col2
----
61

query I rowsort
SELECT 5 * 98
----
490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-361
SELECT ALL + CAST( + 58 AS SIGNED ) + 19, + COUNT( * ) col0
----
77
1

skipif mysql # not compatible
query II rowsort label-361
SELECT ALL + CAST ( + 58 AS INTEGER ) + 19, + COUNT ( * ) col0
----
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT ALL + ( + + NULLIF ( - ( 15 ), + 67 * COUNT( * ) + - COALESCE ( - - 59, - COALESCE ( + + 11, - ( - 23 ) * - 28 + - 43 * - 54 ), + + 2 + + 61, + + 22 + 96 ) ) ) - + 88
----
-103

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL + ( + + NULLIF ( - ( 15 ), + 67 * COUNT ( * ) + - COALESCE ( - - 59, - COALESCE ( + + 11, - ( - 23 ) * - 28 + - 43 * - 54 ), + + 2 + + 61, + + 22 + 96 ) ) ) - + 88
----
-103

query I rowsort
SELECT + 68 * + - 67
----
-4556

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT DISTINCT + + 28 - + 72 + 0 * - 24 * ( + COUNT( ALL - + 18 ) ) + - 35 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT + + 28 - + 72 + 0 * - 24 * ( + COUNT ( ALL - + 18 ) ) + - 35 AS col0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-365
SELECT ALL - 24 / + CAST( NULL AS SIGNED ) * + - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL - 24 / + CAST ( NULL AS INTEGER ) * + - 26 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-366
SELECT - NULLIF ( - ( - 45 ), + CAST( + 21 AS DECIMAL ) )
----
-45

skipif mysql # not compatible
query I rowsort label-366
SELECT - NULLIF ( - ( - 45 ), + CAST ( + 21 AS REAL ) )
----
-45

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT ALL NULLIF ( 47, + + 9 * COUNT( * ) + 98 + + + 83 * - - 82 * - 51 - 36 ) - + 84 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL NULLIF ( 47, + + 9 * COUNT ( * ) + 98 + + + 83 * - - 82 * - 51 - 36 ) - + 84 AS col1
----
-37

query I rowsort
SELECT + 53 * - + 60
----
-3180

query II rowsort
SELECT NULLIF ( - - 86, + 11 ) AS col0, - 27
----
86
-27

query I rowsort
SELECT + ( + - 16 ) col2
----
-16

query I rowsort
SELECT DISTINCT - 30 * + + 27 * + - 63
----
51030

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT ALL 15 * + + COALESCE ( - - 82, + + 92 ) * 34 + - - 74 DIV + - 3
----
41796

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL 15 * + + COALESCE ( - - 82, + + 92 ) * 34 + - - 74 / + - 3
----
41796

query I rowsort
SELECT 89 * - 85
----
-7565

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-377
SELECT COALESCE ( + 14, - + 42 ) DIV - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-377
SELECT COALESCE ( + 14, - + 42 ) / - COUNT ( * )
----
-14

query I rowsort
SELECT ALL + + ( + + 49 ) * + ( 82 ) AS col0
----
4018

query II rowsort
SELECT DISTINCT - + 37 col0, - 12 * + 39
----
-37
-468

onlyif mysql # aggregate syntax: 
query II rowsort label-380
SELECT + 11 - - - 77 + - - COUNT( * ) AS col2, 49
----
-65
49

skipif mysql # not compatible
query II rowsort label-380
SELECT + 11 - - - 77 + - - COUNT ( * ) AS col2, 49
----
-65
49

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-382
SELECT + CAST( + COALESCE ( - COUNT( * ), - 2 * + + 61, MIN( DISTINCT + + 3 ) + - 92 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-382
SELECT + CAST ( + COALESCE ( - COUNT ( * ), - 2 * + + 61, MIN ( DISTINCT + + 3 ) + - 92 ) AS INTEGER ) AS col0
----
-1

query II rowsort
SELECT DISTINCT - ( - 21 ) * + 65 col1, + 1
----
1365
1

query I rowsort
SELECT DISTINCT 73 + + 15
----
88

query II rowsort
SELECT ALL 17 + 55 * + 93, + 77 - - - 70 * - - 83 AS col2
----
5132
-5733

onlyif mysql # DIV for integer division: 
query I rowsort label-386
SELECT 74 + + - 47 DIV + 3
----
59

skipif mysql # not compatible
query I rowsort label-386
SELECT 74 + + - 47 / + 3
----
59

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

skipif mysql # not compatible
query I rowsort label-387
SELECT + 18 * - CAST ( NULL AS INTEGER ) + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT SUM( - 31 ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-388
SELECT SUM ( - 31 ) col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-389
SELECT 25 + 4 - + COUNT( * ) + + 77 + - CAST( NULL AS SIGNED ) * - 55 * + - SUM( DISTINCT - 61 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-389
SELECT 25 + 4 - + COUNT ( * ) + + 77 + - CAST ( NULL AS INTEGER ) * - 55 * + - SUM ( DISTINCT - 61 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-390
SELECT DISTINCT CASE - CAST( + - COUNT( * ) AS SIGNED ) WHEN COUNT( ALL - 7 ) THEN + CAST( NULL AS SIGNED ) WHEN 45 + - 15 + + 22 THEN NULL END * + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT CASE - CAST ( + - COUNT ( * ) AS INTEGER ) WHEN COUNT ( ALL - 7 ) THEN + CAST ( NULL AS INTEGER ) WHEN 45 + - 15 + + 22 THEN NULL END * + - 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-391
SELECT ALL 54 + - ( - - COALESCE ( 15, CAST( NULL AS SIGNED ), + + COUNT( * ) ) ) DIV 63 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL 54 + - ( - - COALESCE ( 15, CAST ( NULL AS INTEGER ), + + COUNT ( * ) ) ) / 63 AS col2
----
54

query I rowsort
SELECT ALL + 25 * - 6
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-393
SELECT DISTINCT - CASE + 49 WHEN - + 81 THEN NULL WHEN + 52 THEN NULL ELSE + - 94 DIV - - COUNT( ALL 9 ) END AS col1, - 39 * + 0 * + - 80 DIV - 21 AS col2
----
94
0

skipif mysql # not compatible
query II rowsort label-393
SELECT DISTINCT - CASE + 49 WHEN - + 81 THEN NULL WHEN + 52 THEN NULL ELSE + - 94 / - - COUNT ( ALL 9 ) END AS col1, - 39 * + 0 * + - 80 / - 21 AS col2
----
94
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT ( - SUM( ALL ( + 92 ) ) ) * COALESCE ( - - 85, 6 + + - 73, - 72 * 6 + + 89 ) AS col0
----
-7820

skipif mysql # not compatible
query I rowsort label-395
SELECT ( - SUM ( ALL ( + 92 ) ) ) * COALESCE ( - - 85, 6 + + - 73, - 72 * 6 + + 89 ) AS col0
----
-7820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-396
SELECT ( - MIN( 41 ) ) DIV + - 4
----
10

skipif mysql # not compatible
query I rowsort label-396
SELECT ( - MIN ( 41 ) ) / + - 4
----
10

query I rowsort
SELECT - 83 * + 18 AS col0
----
-1494

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-399
SELECT - 47 - - 94 DIV - 93 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-399
SELECT - 47 - - 94 / - 93 AS col1
----
-48

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

skipif mysql # not compatible
query II rowsort label-400
SELECT ALL ( - CAST ( NULL AS INTEGER ) ), COUNT ( - 24 ) - - + COUNT ( * ) AS col1
----
NULL
2

query I rowsort
SELECT DISTINCT + + 93 * + - 32 + - 82 * - - 51 * - 38 AS col2
----
155940

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-402
SELECT DISTINCT COALESCE ( - 55, - 89 DIV - - 57 + - - ( - 41 ) + + COUNT( * ) ), - 88 + - 27 AS col0
----
-55
-115

skipif mysql # not compatible
query II rowsort label-402
SELECT DISTINCT COALESCE ( - 55, - 89 / - - 57 + - - ( - 41 ) + + COUNT ( * ) ), - 88 + - 27 AS col0
----
-55
-115

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

onlyif mysql # aggregate syntax: 
query II rowsort label-404
SELECT DISTINCT + - COUNT( * ) * - 27 AS col2, COUNT( * ) + 6
----
27
7

skipif mysql # not compatible
query II rowsort label-404
SELECT DISTINCT + - COUNT ( * ) * - 27 AS col2, COUNT ( * ) + 6
----
27
7

query I rowsort
SELECT + 46 + - 12 * 31
----
-326

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT - - 81 - + 39 + - COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-406
SELECT - - 81 - + 39 + - COUNT ( * ) AS col0
----
41

query I rowsort
SELECT - 20 * - 44 AS col2
----
880

query I rowsort
SELECT - + 6 - + - 8
----
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-410
SELECT ALL SUM( DISTINCT - 18 ) * + + CAST( + 37 AS SIGNED ) + + 62 AS col0
----
-604

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL SUM ( DISTINCT - 18 ) * + + CAST ( + 37 AS INTEGER ) + + 62 AS col0
----
-604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-411
SELECT - COUNT( * ) + CASE 88 WHEN - CAST( - 82 AS SIGNED ) * ( - 54 ) - 69 THEN + + 80 ELSE NULL END + 8 * - - 92 + ( - 86 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-411
SELECT - COUNT ( * ) + CASE 88 WHEN - CAST ( - 82 AS INTEGER ) * ( - 54 ) - 69 THEN + + 80 ELSE NULL END + 8 * - - 92 + ( - 86 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 84 * + 45 - - - ( - 25 ) + + 75
----
3880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-413
SELECT ALL 96 * - 67 * - + COALESCE ( + - 36, - - 90 ) * - ( - 16 ) + + COUNT( * ) * COUNT( * ) DIV MAX( + 50 ) * - + 17 + 16 AS col1
----
-3704816

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL 96 * - 67 * - + COALESCE ( + - 36, - - 90 ) * - ( - 16 ) + + COUNT ( * ) * COUNT ( * ) / MAX ( + 50 ) * - + 17 + 16 AS col1
----
-3704816

query I rowsort
SELECT - 49 * 45 AS col1
----
-2205

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

skipif mysql # not compatible
query I rowsort label-415
SELECT 66 / - 6 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-416
SELECT ALL 61 * NULLIF ( + 24, CASE - 12 WHEN - + 7 / 80 * - - ( - - CASE - - 73 WHEN + MIN( ALL + 89 ) * + - 53 THEN - + 23 / 42 WHEN + 30 * - - CASE - SUM( + 47 ) WHEN - 36 - ( - + 27 ) THEN NULL WHEN - 47 THEN NULL WHEN + 8 * - 76 * + CAST( CAST( 46 AS SIGNED ) AS SIGNED ) THEN NULL ELSE + 57 END + + CASE - 14 WHEN - 60 THEN + - 53 * + 14 END + + - 25 * + 85 THEN NULL END ) * 33 + 5 THEN ( - 86 ) - + 1 END ) AS col1
----
1464

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL 61 * NULLIF ( + 24, CASE - 12 WHEN - + 7 / 80 * - - ( - - CASE - - 73 WHEN + MIN ( ALL + 89 ) * + - 53 THEN - + 23 / 42 WHEN + 30 * - - CASE - SUM ( + 47 ) WHEN - 36 - ( - + 27 ) THEN NULL WHEN - 47 THEN NULL WHEN + 8 * - 76 * + CAST ( CAST ( 46 AS INTEGER ) AS INTEGER ) THEN NULL ELSE + 57 END + + CASE - 14 WHEN - 60 THEN + - 53 * + 14 END + + - 25 * + 85 THEN NULL END ) * 33 + 5 THEN ( - 86 ) - + 1 END ) AS col1
----
1464

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT NULLIF ( NULLIF ( - 32, - 72 ), - COALESCE ( - MAX( 55 ), - 61, - 75 ) ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-417
SELECT NULLIF ( NULLIF ( - 32, - 72 ), - COALESCE ( - MAX ( 55 ), - 61, - 75 ) ) AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-418
SELECT + 73 DIV + - 96
----
0

skipif mysql # not compatible
query I rowsort label-418
SELECT + 73 / + - 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT COALESCE ( - + 98, + - 90 + - + CASE + - SUM( ALL - + 12 ) WHEN - - 19 THEN + 58 * 38 + 91 WHEN + 71 THEN + 27 END ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-419
SELECT COALESCE ( - + 98, + - 90 + - + CASE + - SUM ( ALL - + 12 ) WHEN - - 19 THEN + 58 * 38 + 91 WHEN + 71 THEN + 27 END ) AS col2
----
-98

query I rowsort
SELECT + 19 * + 81
----
1539

onlyif mysql # aggregate syntax: 
query II rowsort label-421
SELECT ALL - 30 * MIN( ALL COALESCE ( - - 83, - + COALESCE ( - + 77, + 87 ), 60 + + 15 + + + ( 44 ) + - 60 ) ) * 94 AS col0, 1
----
-234060
1

skipif mysql # not compatible
query II rowsort label-421
SELECT ALL - 30 * MIN ( ALL COALESCE ( - - 83, - + COALESCE ( - + 77, + 87 ), 60 + + 15 + + + ( 44 ) + - 60 ) ) * 94 AS col0, 1
----
-234060
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-422
SELECT ALL + MAX( ALL - 68 ) * - - 26 + + - CAST( - COALESCE ( + + COUNT( * ), - 67, AVG ( ALL CAST( + - 42 AS SIGNED ) ) ) AS SIGNED ) AS col0, 56 - COUNT( * )
----
-1767
55

skipif mysql # not compatible
query II rowsort label-422
SELECT ALL + MAX ( ALL - 68 ) * - - 26 + + - CAST ( - COALESCE ( + + COUNT ( * ), - 67, AVG ( ALL CAST ( + - 42 AS INTEGER ) ) ) AS INTEGER ) AS col0, 56 - COUNT ( * )
----
-1767
55

query I rowsort
SELECT + 96 * - 84
----
-8064

query I rowsort
SELECT ALL + 66 * 52 AS col1
----
3432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-425
SELECT CASE - 77 WHEN + - NULLIF ( + - 80, - - 39 ) THEN NULL WHEN COUNT( * ) * CASE + 15 WHEN 62 - - 24 + - COUNT( * ) + - - 52 * - COALESCE ( 68, - 80, - 27 ) + - - ( - 36 ) THEN 99 * + 0 ELSE - - ( + 54 ) * + COALESCE ( 80, + 91 ) + - CAST( - - ( + - 38 ) AS SIGNED ) END THEN NULL WHEN 69 THEN + 80 ELSE + 33 END AS col1
----
33

skipif mysql # not compatible
query I rowsort label-425
SELECT CASE - 77 WHEN + - NULLIF ( + - 80, - - 39 ) THEN NULL WHEN COUNT ( * ) * CASE + 15 WHEN 62 - - 24 + - COUNT ( * ) + - - 52 * - COALESCE ( 68, - 80, - 27 ) + - - ( - 36 ) THEN 99 * + 0 ELSE - - ( + 54 ) * + COALESCE ( 80, + 91 ) + - CAST ( - - ( + - 38 ) AS INTEGER ) END THEN NULL WHEN 69 THEN + 80 ELSE + 33 END AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-426
SELECT CASE - + 6 WHEN - + 8 * - SUM( ALL - 98 ) + + + 76 / + COALESCE ( - 32, + COALESCE ( + ( + + 59 ), - 24 - + AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ), + + 53 ) * + - ( + COUNT( * ) ) * 29 - 98 + + 46 ) + MIN( ALL - 55 ) + + COUNT( ALL + - 51 ) THEN + + SUM( 62 ) WHEN 97 + - COUNT( * ) THEN - 77 ELSE - 74 + MIN( ALL 85 ) END AS col2
----
11

skipif mysql # not compatible
query I rowsort label-426
SELECT CASE - + 6 WHEN - + 8 * - SUM ( ALL - 98 ) + + + 76 / + COALESCE ( - 32, + COALESCE ( + ( + + 59 ), - 24 - + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ), + + 53 ) * + - ( + COUNT ( * ) ) * 29 - 98 + + 46 ) + MIN ( ALL - 55 ) + + COUNT ( ALL + - 51 ) THEN + + SUM ( 62 ) WHEN 97 + - COUNT ( * ) THEN - 77 ELSE - 74 + MIN ( ALL 85 ) END AS col2
----
11

query I rowsort
SELECT - 60 * 96
----
-5760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-428
SELECT - CAST( + - SUM( + - 94 ) AS SIGNED ) * - 28 + + 65 * COUNT( * ) - + 58 + 22 + COUNT( * ) AS col0
----
2662

skipif mysql # not compatible
query I rowsort label-428
SELECT - CAST ( + - SUM ( + - 94 ) AS INTEGER ) * - 28 + + 65 * COUNT ( * ) - + 58 + 22 + COUNT ( * ) AS col0
----
2662

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT MAX( 85 )
----
85

skipif mysql # not compatible
query I rowsort label-429
SELECT MAX ( 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT + COUNT( * ) * + NULLIF ( COUNT( * ), + 13 * + COUNT( * ) + - + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-430
SELECT + COUNT ( * ) * + NULLIF ( COUNT ( * ), + 13 * + COUNT ( * ) + - + 58 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT + COUNT( * ) + - 18
----
-17

skipif mysql # not compatible
query I rowsort label-431
SELECT + COUNT ( * ) + - 18
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT DISTINCT + 95 * - 4 - + 25 * - COUNT( * )
----
-355

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT + 95 * - 4 - + 25 * - COUNT ( * )
----
-355

onlyif mysql # aggregate syntax: 
query II rowsort label-433
SELECT DISTINCT CASE + - AVG ( DISTINCT + - 57 ) WHEN - MIN( ALL 46 ) * - 82 THEN NULL WHEN 42 THEN - 61 END, + 92 + - 25 AS col1
----
NULL
67

skipif mysql # not compatible
query II rowsort label-433
SELECT DISTINCT CASE + - AVG ( DISTINCT + - 57 ) WHEN - MIN ( ALL 46 ) * - 82 THEN NULL WHEN 42 THEN - 61 END, + 92 + - 25 AS col1
----
NULL
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-434
SELECT DISTINCT MAX( CAST( + + CAST( 68 AS SIGNED ) AS SIGNED ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT MAX ( CAST ( + + CAST ( 68 AS INTEGER ) AS INTEGER ) ) AS col1
----
68

query I rowsort
SELECT - + 10 + 60 AS col0
----
50

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

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

query I rowsort
SELECT - - 36 + - 56
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT ALL + COUNT( 30 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL + COUNT ( 30 ) col0
----
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-440
SELECT + - CASE + + ( 17 ) WHEN - 98 THEN - + 23 * + 14 WHEN + COUNT( * ) * + 56 + + + NULLIF ( - 39, + 53 ) THEN ( + 66 ) * - SUM( + 97 ) WHEN 44 THEN + - CASE + 19 WHEN + 39 THEN NULL WHEN COUNT( * ) * - 52 + + 84 * + + COALESCE ( + - COUNT( * ), 90 ) THEN + 91 END END DIV + + COUNT( * )
----
6402

skipif mysql # not compatible
query I rowsort label-440
SELECT + - CASE + + ( 17 ) WHEN - 98 THEN - + 23 * + 14 WHEN + COUNT ( * ) * + 56 + + + NULLIF ( - 39, + 53 ) THEN ( + 66 ) * - SUM ( + 97 ) WHEN 44 THEN + - CASE + 19 WHEN + 39 THEN NULL WHEN COUNT ( * ) * - 52 + + 84 * + + COALESCE ( + - COUNT ( * ), 90 ) THEN + 91 END END / + + COUNT ( * )
----
6402

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-442
SELECT ALL CASE + 32 WHEN CASE + 20 WHEN 89 THEN + - 26 * - 3 ELSE NULL END + 48 THEN - 94 + ( + 87 ) + - CAST( NULL AS SIGNED ) + - 10 END + + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL CASE + 32 WHEN CASE + 20 WHEN 89 THEN + - 26 * - 3 ELSE NULL END + 48 THEN - 94 + ( + 87 ) + - CAST ( NULL AS INTEGER ) + - 10 END + + - 71
----
NULL

query I rowsort
SELECT DISTINCT - - 86 + 68 AS col1
----
154

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

query I rowsort
SELECT ALL - 31 + - + 90 AS col2
----
-121

query I rowsort
SELECT ALL 77 + + 7 + - 94 AS col1
----
-10

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-448
SELECT - COUNT( * ) * + 25 + + SUM( DISTINCT + 44 ) + - - COALESCE ( + 30, 88 DIV - 72 ) + 11 + 22 + + + 60 * + 11 * 38 AS col2
----
25162

skipif mysql # not compatible
query I rowsort label-448
SELECT - COUNT ( * ) * + 25 + + SUM ( DISTINCT + 44 ) + - - COALESCE ( + 30, 88 / - 72 ) + 11 + 22 + + + 60 * + 11 * 38 AS col2
----
25162

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-449
SELECT + - 40 - - - 3 - + CAST( NULL AS SIGNED ) AS col0, 84 * + - 15 AS col1
----
NULL
-1260

skipif mysql # not compatible
query II rowsort label-449
SELECT + - 40 - - - 3 - + CAST ( NULL AS INTEGER ) AS col0, 84 * + - 15 AS col1
----
NULL
-1260

query I rowsort
SELECT ALL + 29 * 66 * - 42 AS col0
----
-80388

onlyif mysql # aggregate syntax: 
query II rowsort label-451
SELECT ALL + + COALESCE ( 72, + 45 + 70, 9 ) AS col1, 82 * - 68 + - COUNT( * ) AS col0
----
72
-5577

skipif mysql # not compatible
query II rowsort label-451
SELECT ALL + + COALESCE ( 72, + 45 + 70, 9 ) AS col1, 82 * - 68 + - COUNT ( * ) AS col0
----
72
-5577

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-452
SELECT - 15, - COUNT( * ) DIV - 53 + - 37 AS col0
----
-15
-37

skipif mysql # not compatible
query II rowsort label-452
SELECT - 15, - COUNT ( * ) / - 53 + - 37 AS col0
----
-15
-37

query II rowsort
SELECT DISTINCT + 32 AS col1, - 42 AS col0
----
32
-42

query II rowsort
SELECT DISTINCT + 77 AS col0, - 85 + + + ( 13 ) + 1 * - + 62 * + 52
----
77
-3296

query II rowsort
SELECT DISTINCT + 47 AS col0, 63
----
47
63

query I rowsort
SELECT - 96 * - - 12
----
-1152

onlyif mysql # DIV for integer division: 
query I rowsort label-457
SELECT ALL 7 DIV + - 72
----
0

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL 7 / + - 72
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-458
SELECT CAST( NULL AS DECIMAL ) AS col0, - 6
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-458
SELECT CAST ( NULL AS REAL ) AS col0, - 6
----
NULL
-6

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

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL - COUNT ( * ) / + 31 * + 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT 71 * + 92 * + 90 + - COUNT( * )
----
587879

skipif mysql # not compatible
query I rowsort label-460
SELECT 71 * + 92 * + 90 + - COUNT ( * )
----
587879

query I rowsort
SELECT 44 * - 73 * ( + ( 35 ) ) col0
----
-112420

onlyif mysql # aggregate syntax: 
query II rowsort label-462
SELECT ALL - ( + 37 ) * 15 + + + NULLIF ( - - 99, - 18 * + + 50 ) AS col2, MIN( + + 46 )
----
-456
46

skipif mysql # not compatible
query II rowsort label-462
SELECT ALL - ( + 37 ) * 15 + + + NULLIF ( - - 99, - 18 * + + 50 ) AS col2, MIN ( + + 46 )
----
-456
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-463
SELECT CASE - 96 WHEN + 52 THEN NULL WHEN - CAST( + - 46 AS SIGNED ) THEN 5 + ( - + AVG ( CAST( + 36 AS SIGNED ) ) ) END - + 87 + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-463
SELECT CASE - 96 WHEN + 52 THEN NULL WHEN - CAST ( + - 46 AS INTEGER ) THEN 5 + ( - + AVG ( CAST ( + 36 AS INTEGER ) ) ) END - + 87 + - 5
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-464
SELECT ALL - CAST( ( + ( + NULLIF ( + 42, 95 ) ) ) AS SIGNED ) col2
----
-42

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL - CAST ( ( + ( + NULLIF ( + 42, 95 ) ) ) AS INTEGER ) col2
----
-42

query II rowsort
SELECT + 82, 49 * - 0 col1
----
82
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-466
SELECT CASE + 83 WHEN 2 THEN NULL WHEN - 40 + - - 71 + 10 THEN - 98 * + 4 * + 83 + COUNT( * ) DIV + 22 * + + 61 ELSE - 43 END + 14 + - 26 DIV - 73
----
-29

skipif mysql # not compatible
query I rowsort label-466
SELECT CASE + 83 WHEN 2 THEN NULL WHEN - 40 + - - 71 + 10 THEN - 98 * + 4 * + 83 + COUNT ( * ) / + 22 * + + 61 ELSE - 43 END + 14 + - 26 / - 73
----
-29

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

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

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

query II rowsort
SELECT DISTINCT - 11 AS col1, 12 AS col0
----
-11
12

query I rowsort
SELECT DISTINCT - ( - 49 ) * 27
----
1323

query I rowsort
SELECT DISTINCT + NULLIF ( 18, - + ( + 5 ) ) * + 89
----
1602

query II rowsort
SELECT DISTINCT - 27 AS col1, + NULLIF ( - + 50, + 92 )
----
-27
-50

query I rowsort
SELECT ( - 13 ) * - 96 * - 21
----
-26208

query I rowsort
SELECT + COALESCE ( 19, - 5 * + 7 + + 93 ) col0
----
19

query II rowsort
SELECT 1 AS col2, 33 AS col0
----
1
33

query I rowsort
SELECT 95 * - 82 * - + 57 AS col2
----
444030

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL COUNT( DISTINCT - 50 ) + + + ( + ( + ( + 60 ) ) ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL COUNT ( DISTINCT - 50 ) + + + ( + ( + ( + 60 ) ) ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-478
SELECT ALL 95 + - - 60, + COUNT( * ) * - 69 AS col2
----
155
-69

skipif mysql # not compatible
query II rowsort label-478
SELECT ALL 95 + - - 60, + COUNT ( * ) * - 69 AS col2
----
155
-69

query I rowsort
SELECT + ( + - 86 ) - - 38 + 17
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-480
SELECT ALL 38 DIV + 8 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-480
SELECT ALL 38 / + 8 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT DISTINCT 43 + COUNT( * ) * + + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT 43 + COUNT ( * ) * + + COUNT ( * )
----
44

query I rowsort
SELECT ALL - 49 + + 87
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT ( - 50 ) + - - COUNT( ( + 0 ) ) col2
----
-49

skipif mysql # not compatible
query I rowsort label-483
SELECT ( - 50 ) + - - COUNT ( ( + 0 ) ) col2
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-484
SELECT - COUNT( * ) - + 36 - + - COUNT( * ) - - MAX( ALL + + ( - 25 ) ), - 29 * 81 AS col0
----
-61
-2349

skipif mysql # not compatible
query II rowsort label-484
SELECT - COUNT ( * ) - + 36 - + - COUNT ( * ) - - MAX ( ALL + + ( - 25 ) ), - 29 * 81 AS col0
----
-61
-2349

query I rowsort
SELECT 87 - - 59 AS col0
----
146

query II rowsort
SELECT + 54 col2, 83 * 63
----
54
5229

query I rowsort
SELECT - ( 63 ) + 43 + - 70 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT DISTINCT + 55 + + MAX( DISTINCT + 56 ) * - 50 * + + 61
----
-170745

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT + 55 + + MAX ( DISTINCT + 56 ) * - 50 * + + 61
----
-170745

query II rowsort
SELECT - 21, 91 col1
----
-21
91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-491
SELECT ALL 85 / - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL 85 / - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - ( + + ( + + 20 ) ) * - + 67 AS col0
----
1340

onlyif mysql # aggregate syntax: 
query II rowsort label-493
SELECT 99 * - - 80, 61 - COALESCE ( + 31, - 97 + COUNT( * ) + - + 31 - - NULLIF ( 77, 19 * - - 74 ) + + + 6 * + 71 + COUNT( DISTINCT 87 ) * 71 ) AS col1
----
7920
30

skipif mysql # not compatible
query II rowsort label-493
SELECT 99 * - - 80, 61 - COALESCE ( + 31, - 97 + COUNT ( * ) + - + 31 - - NULLIF ( 77, 19 * - - 74 ) + + + 6 * + 71 + COUNT ( DISTINCT 87 ) * 71 ) AS col1
----
7920
30

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-495
SELECT ALL - SUM( ALL + 22 ) AS col0, + 57 AS col2
----
-22
57

skipif mysql # not compatible
query II rowsort label-495
SELECT ALL - SUM ( ALL + 22 ) AS col0, + 57 AS col2
----
-22
57

query I rowsort
SELECT ALL - 12 * + + 67 AS col0
----
-804

query I rowsort
SELECT ALL - ( - 26 ) AS col2
----
26

query I rowsort
SELECT ALL - ( - + 12 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-499
SELECT ALL - SUM( DISTINCT - - 33 ) AS col2, 11 + - - 9 * - ( COUNT( 19 ) ) + + 81
----
-33
83

skipif mysql # not compatible
query II rowsort label-499
SELECT ALL - SUM ( DISTINCT - - 33 ) AS col2, 11 + - - 9 * - ( COUNT ( 19 ) ) + + 81
----
-33
83

query I rowsort
SELECT DISTINCT - ( COALESCE ( ( 16 ), + ( 48 ) ) )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-501
SELECT COUNT( * ) * - 16 / + CASE 97 WHEN COUNT( * ) THEN - 85 / + - 75 ELSE NULL END * + + 53 * 94 + + CASE - 53 WHEN + 23 THEN - 23 ELSE NULL END AS col0, + 79 AS col1
----
NULL
79

skipif mysql # not compatible
query II rowsort label-501
SELECT COUNT ( * ) * - 16 / + CASE 97 WHEN COUNT ( * ) THEN - 85 / + - 75 ELSE NULL END * + + 53 * 94 + + CASE - 53 WHEN + 23 THEN - 23 ELSE NULL END AS col0, + 79 AS col1
----
NULL
79

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT 99 * + 68 * - + 46 + ( + COUNT( * ) ) * - + ( 83 )
----
-309755

skipif mysql # not compatible
query I rowsort label-502
SELECT 99 * + 68 * - + 46 + ( + COUNT ( * ) ) * - + ( 83 )
----
-309755

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-503
SELECT 61 + - - 87 / + CAST( NULL AS SIGNED ) * - 23 + 43 * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-503
SELECT 61 + - - 87 / + CAST ( NULL AS INTEGER ) * - 23 + 43 * + 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-504
SELECT ALL + + 44 + - + 46 - - 41 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / - ( 92 ) + NULLIF ( + 13, COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL + + 44 + - + 46 - - 41 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / - ( 92 ) + NULLIF ( + 13, COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-505
SELECT ALL - 44 + - - 55 * + CASE 81 WHEN - - 50 + + COUNT( * ) THEN - 44 END * + 29 + ( + 37 ) col1, + 7 + ( 35 ) + 76 + 20 + - + 25 * + 8
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-505
SELECT ALL - 44 + - - 55 * + CASE 81 WHEN - - 50 + + COUNT ( * ) THEN - 44 END * + 29 + ( + 37 ) col1, + 7 + ( 35 ) + 76 + 20 + - + 25 * + 8
----
NULL
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT + 62 + - + SUM( + 90 ) - - + 51 - + 23 * + 79 AS col1
----
-1794

skipif mysql # not compatible
query I rowsort label-506
SELECT + 62 + - + SUM ( + 90 ) - - + 51 - + 23 * + 79 AS col1
----
-1794

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT ALL - COALESCE ( 13, - 52 + 21 ) - - - 74 + - + ( - COUNT( * ) ) * 27 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL - COALESCE ( 13, - 52 + 21 ) - - - 74 + - + ( - COUNT ( * ) ) * 27 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-508
SELECT DISTINCT SUM( 31 ) * 95 AS col0, - COUNT( * ) + + - 90 AS col2
----
2945
-91

skipif mysql # not compatible
query II rowsort label-508
SELECT DISTINCT SUM ( 31 ) * 95 AS col0, - COUNT ( * ) + + - 90 AS col2
----
2945
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-509
SELECT + 78 * + + 70 AS col1, - COUNT( * ) * + 46 * + - NULLIF ( - + 23, - ( 27 ) ) AS col1
----
5460
-1058

skipif mysql # not compatible
query II rowsort label-509
SELECT + 78 * + + 70 AS col1, - COUNT ( * ) * + 46 * + - NULLIF ( - + 23, - ( 27 ) ) AS col1
----
5460
-1058

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-510
SELECT DISTINCT 17 * + CAST( NULL AS SIGNED ) AS col0, 4
----
NULL
4

skipif mysql # not compatible
query II rowsort label-510
SELECT DISTINCT 17 * + CAST ( NULL AS INTEGER ) AS col0, 4
----
NULL
4

query I rowsort
SELECT 93 * + 96 AS col1
----
8928

query I rowsort
SELECT + 90 * + 26 AS col0
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT DISTINCT COUNT( - 74 ) * MAX( - - 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT COUNT ( - 74 ) * MAX ( - - 16 ) AS col0
----
16

query I rowsort
SELECT + 61 - + + 19 AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT + 54 DIV 33 col2
----
1

skipif mysql # not compatible
query I rowsort label-515
SELECT + 54 / 33 col2
----
1

query I rowsort
SELECT ALL + 36 * + 29 AS col0
----
1044

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-518
SELECT DISTINCT ( + + 38 ) DIV COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT ( + + 38 ) / COUNT ( * ) AS col2
----
38

query I rowsort
SELECT + 0 * - 82
----
0

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

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

query I rowsort
SELECT + NULLIF ( + 92, + 56 + + - 15 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-522
SELECT ALL NULLIF ( + 74, 6 + + 5 + - NULLIF ( - 13, + 50 ) * 52 ) * + 41 + + + 41 + + + 50 + - SUM( + 47 ) + + + COUNT( * ) + 28 DIV - NULLIF ( + 93, + 57 DIV + 97 ) * + CAST( 97 AS SIGNED ) + - 48 col0
----
3031

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL NULLIF ( + 74, 6 + + 5 + - NULLIF ( - 13, + 50 ) * 52 ) * + 41 + + + 41 + + + 50 + - SUM ( + 47 ) + + + COUNT ( * ) + 28 / - NULLIF ( + 93, + 57 / + 97 ) * + CAST ( 97 AS INTEGER ) + - 48 col0
----
3031

query II rowsort
SELECT - 76 AS col1, 79 AS col0
----
-76
79

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT ALL + 73 * SUM( 49 ) col0
----
3577

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL + 73 * SUM ( 49 ) col0
----
3577

onlyif mysql # aggregate syntax: 
query II rowsort label-525
SELECT - 59 AS col0, + 73 + - COUNT( * ) + + COUNT( * ) + ( - 55 ) AS col1
----
-59
18

skipif mysql # not compatible
query II rowsort label-525
SELECT - 59 AS col0, + 73 + - COUNT ( * ) + + COUNT ( * ) + ( - 55 ) AS col1
----
-59
18

query I rowsort
SELECT ALL - 40 * - 49 + + 99 AS col0
----
2059

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT + + 75 * - 69 + + + COUNT( * ) - - + 96 * 93 AS col0
----
3754

skipif mysql # not compatible
query I rowsort label-527
SELECT + + 75 * - 69 + + + COUNT ( * ) - - + 96 * 93 AS col0
----
3754

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

skipif mysql # not compatible
query I rowsort label-528
SELECT - COUNT ( * ) + - 81 + - + 96 AS col0
----
-178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-529
SELECT - 87 * + - 12 * - CASE 87 WHEN + COUNT( * ) * + 52 - + + COALESCE ( 62, 80 + + 92 ) - + 85 + + 13 * - 33 * NULLIF ( 72, + + COUNT( * ) + + + 42 ) THEN NULL WHEN - 97 THEN + + ( COALESCE ( - + 78, - ( - 14 ) ) ) - CAST( NULL AS SIGNED ) ELSE - + 51 DIV - 66 END + 59
----
59

skipif mysql # not compatible
query I rowsort label-529
SELECT - 87 * + - 12 * - CASE 87 WHEN + COUNT ( * ) * + 52 - + + COALESCE ( 62, 80 + + 92 ) - + 85 + + 13 * - 33 * NULLIF ( 72, + + COUNT ( * ) + + + 42 ) THEN NULL WHEN - 97 THEN + + ( COALESCE ( - + 78, - ( - 14 ) ) ) - CAST ( NULL AS INTEGER ) ELSE - + 51 / - 66 END + 59
----
59

query II rowsort
SELECT DISTINCT 38 col2, 23 * + 51 AS col2
----
38
1173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-531
SELECT ALL + + 24 - - ( + - 39 ) + - COUNT( * ) DIV COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL + + 24 - - ( + - 39 ) + - COUNT ( * ) / COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-532
SELECT DISTINCT NULLIF ( + - COALESCE ( - - 63, + ( + + AVG ( + + 3 ) ) * - ( + 69 ) - + - 99 * - NULLIF ( 69, 76 ), + COUNT( DISTINCT 28 ) + COUNT( * ) * + 64 + + 25 * + 44 ), - + 22 * 86 DIV - - ( - NULLIF ( - - 34, + - 82 DIV - + 22 ) ) * - 11 + COUNT( * ) ) DIV + 53
----
-1

skipif mysql # not compatible
query I rowsort label-532
SELECT DISTINCT NULLIF ( + - COALESCE ( - - 63, + ( + + AVG ( + + 3 ) ) * - ( + 69 ) - + - 99 * - NULLIF ( 69, 76 ), + COUNT ( DISTINCT 28 ) + COUNT ( * ) * + 64 + + 25 * + 44 ), - + 22 * 86 / - - ( - NULLIF ( - - 34, + - 82 / - + 22 ) ) * - 11 + COUNT ( * ) ) / + 53
----
-1

query I rowsort
SELECT ALL - 66 - 36
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-534
SELECT - - MAX( ALL 54 ) - + + 57 + - + 32 DIV - 4
----
5

skipif mysql # not compatible
query I rowsort label-534
SELECT - - MAX ( ALL 54 ) - + + 57 + - + 32 / - 4
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-535
SELECT - - COUNT( * ) * - + 42 + 68 - + NULLIF ( - 62, 1 ) DIV 26
----
28

skipif mysql # not compatible
query I rowsort label-535
SELECT - - COUNT ( * ) * - + 42 + 68 - + NULLIF ( - 62, 1 ) / 26
----
28

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

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

query I rowsort
SELECT - + 28 * - 44 + + 78 AS col2
----
1310

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

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

query I rowsort
SELECT - 85 + + - 8 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT DISTINCT ( CASE + + 71 WHEN - 50 / + 45 + - 11 THEN 67 / 51 + - + 3 + + - 97 * NULLIF ( + + 85, + - 8 * - + ( 97 ) / - 39 ) / - 69 + 50 WHEN - 12 THEN - 57 / COUNT( * ) + + 65 ELSE + COUNT( - + 27 ) * + 79 + MIN( + 66 ) END )
----
145

skipif mysql # not compatible
query I rowsort label-540
SELECT DISTINCT ( CASE + + 71 WHEN - 50 / + 45 + - 11 THEN 67 / 51 + - + 3 + + - 97 * NULLIF ( + + 85, + - 8 * - + ( 97 ) / - 39 ) / - 69 + 50 WHEN - 12 THEN - 57 / COUNT ( * ) + + 65 ELSE + COUNT ( - + 27 ) * + 79 + MIN ( + 66 ) END )
----
145

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

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

query I rowsort
SELECT - 61 + 83 * + 82 + 65 AS col0
----
6810

query I rowsort
SELECT + 67 - + - 44
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT + 43 - - 70 + MAX( DISTINCT - 44 ) * MIN( DISTINCT - 58 )
----
2665

skipif mysql # not compatible
query I rowsort label-544
SELECT + 43 - - 70 + MAX ( DISTINCT - 44 ) * MIN ( DISTINCT - 58 )
----
2665

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT - 13 + CASE - 94 WHEN + + 79 THEN NULL ELSE - MAX( - 0 ) END
----
-13

skipif mysql # not compatible
query I rowsort label-545
SELECT - 13 + CASE - 94 WHEN + + 79 THEN NULL ELSE - MAX ( - 0 ) END
----
-13

query I rowsort
SELECT ALL ( - 86 ) * + 45 + 47 * + 9 AS col0
----
-3447

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

skipif mysql # not compatible
query I rowsort label-547
SELECT - MAX ( + 13 )
----
-13

query I rowsort
SELECT DISTINCT 42 * - 86
----
-3612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-549
SELECT + 7 + + CAST( - CASE 86 WHEN - 25 * + - SUM( - ( + 55 ) ) - - 27 + + - COALESCE ( 58, + 2 ) + + + 34 * 25 THEN NULL WHEN 42 / 3 THEN + CASE 88 WHEN 27 THEN NULL WHEN + 59 THEN NULL WHEN 75 * + 55 THEN + 24 ELSE NULL END END AS SIGNED ) - - 75 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-549
SELECT + 7 + + CAST ( - CASE 86 WHEN - 25 * + - SUM ( - ( + 55 ) ) - - 27 + + - COALESCE ( 58, + 2 ) + + + 34 * 25 THEN NULL WHEN 42 / 3 THEN + CASE 88 WHEN 27 THEN NULL WHEN + 59 THEN NULL WHEN 75 * + 55 THEN + 24 ELSE NULL END END AS INTEGER ) - - 75 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-550
SELECT ALL 33 DIV + - 74 + - 60 * - 15 * ( + - NULLIF ( 41, + 70 ) ) col2
----
-36900

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL 33 / + - 74 + - 60 * - 15 * ( + - NULLIF ( 41, + 70 ) ) col2
----
-36900

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-552
SELECT - 83 / 18 * - - CAST( NULL AS SIGNED ) + - + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-552
SELECT - 83 / 18 * - - CAST ( NULL AS INTEGER ) + - + 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-553
SELECT + COUNT( * ) + - + ( - + CASE - 81 WHEN - 69 THEN + - 92 + + 16 END ) + + 84 * 48 / + COUNT( * ) - + + ( + 30 ) AS col0, SUM( ALL - ( + 61 ) ) AS col1, - 97 * + 84 + - 96
----
NULL
-61
-8244

skipif mysql # not compatible
query III rowsort label-553
SELECT + COUNT ( * ) + - + ( - + CASE - 81 WHEN - 69 THEN + - 92 + + 16 END ) + + 84 * 48 / + COUNT ( * ) - + + ( + 30 ) AS col0, SUM ( ALL - ( + 61 ) ) AS col1, - 97 * + 84 + - 96
----
NULL
-61
-8244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-554
SELECT ALL 83 / - 45 + - CASE WHEN NOT - 30 NOT BETWEEN + ( + - 21 ) / + 34 + 87 + + + 87 AND + + 75 / ( 37 ) + + - 59 + + + ( - COALESCE ( - CASE + + COUNT( * ) WHEN CASE WHEN - ( 56 ) IS NULL THEN + COUNT( * ) * + + NULLIF ( - 83, + CAST( NULL AS SIGNED ) / + 60 * + 45 + - + 82 ) * + - 4 * - CASE - 29 WHEN + 78 * - CAST( NULL AS SIGNED ) / - 64 THEN NULL WHEN 7 THEN + 65 - + - ( + 33 ) END * + 77 ELSE NULL END * + 65 + 99 THEN + MIN( ALL 17 ) WHEN + 29 * + ( 17 * - NULLIF ( ( - ( + 79 ) ) * + MAX( ALL 28 + ( + 77 ) ), COUNT( ( - 20 ) ) * - 35 ) ) THEN - 21 ELSE 3 END, - MIN( ALL 32 ) + - 79, AVG ( ALL + 38 ) * 88 ) ) THEN - 33 + ( AVG ( DISTINCT 19 ) + 12 ) * - 92 END - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL 83 / - 45 + - CASE WHEN NOT - 30 NOT BETWEEN + ( + - 21 ) / + 34 + 87 + + + 87 AND + + 75 / ( 37 ) + + - 59 + + + ( - COALESCE ( - CASE + + COUNT ( * ) WHEN CASE WHEN - ( 56 ) IS NULL THEN + COUNT ( * ) * + + NULLIF ( - 83, + CAST ( NULL AS INTEGER ) / + 60 * + 45 + - + 82 ) * + - 4 * - CASE - 29 WHEN + 78 * - CAST ( NULL AS INTEGER ) / - 64 THEN NULL WHEN 7 THEN + 65 - + - ( + 33 ) END * + 77 ELSE NULL END * + 65 + 99 THEN + MIN ( ALL 17 ) WHEN + 29 * + ( 17 * - NULLIF ( ( - ( + 79 ) ) * + MAX ( ALL 28 + ( + 77 ) ), COUNT ( ( - 20 ) ) * - 35 ) ) THEN - 21 ELSE 3 END, - MIN ( ALL 32 ) + - 79, AVG ( ALL + 38 ) * 88 ) ) THEN - 33 + ( AVG ( DISTINCT 19 ) + 12 ) * - 92 END - 61 AS col1
----
NULL

query I rowsort
SELECT + ( 67 ) * + 43
----
2881

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

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL 47 / + COUNT ( * ) * - COUNT ( * )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-557
SELECT DISTINCT CAST( - CASE + - 59 WHEN + 73 THEN NULL WHEN - + COUNT( * ) + + 19 THEN 43 END AS SIGNED ) * 69 * - COUNT( DISTINCT 26 ) + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT CAST ( - CASE + - 59 WHEN + 73 THEN NULL WHEN - + COUNT ( * ) + + 19 THEN 43 END AS INTEGER ) * 69 * - COUNT ( DISTINCT 26 ) + + 93
----
NULL

query I rowsort
SELECT + 81 * 4 + 48
----
372

query I rowsort
SELECT + 74 * 56 * + - 14 col0
----
-58016

query I rowsort
SELECT + 2 - + + 89 AS col0
----
-87

query I rowsort
SELECT DISTINCT 45 * - 30 AS col1
----
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT ALL + COUNT( * ) * + 9 + + ( 56 ) + + - 37 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL + COUNT ( * ) * + 9 + + ( 56 ) + + - 37 AS col2
----
28

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

query I rowsort
SELECT ALL 94 * 37
----
3478

query I rowsort
SELECT ALL + ( - - 60 ) AS col0
----
60

query I rowsort
SELECT DISTINCT + COALESCE ( - 55, + 87 ) AS col1
----
-55

query I rowsort
SELECT - 60 + - 22 col0
----
-82

query I rowsort
SELECT - 74 + + 4 AS col1
----
-70

query I rowsort
SELECT ALL + CASE - 35 WHEN + 59 THEN + 56 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-570
SELECT - - CAST( SUM( + 80 ) AS SIGNED ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-570
SELECT - - CAST ( SUM ( + 80 ) AS INTEGER ) AS col0
----
80

query I rowsort
SELECT ALL - 53 * + 45
----
-2385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-572
SELECT 28 * 27 DIV - COUNT( * ) AS col0
----
-756

skipif mysql # not compatible
query I rowsort label-572
SELECT 28 * 27 / - COUNT ( * ) AS col0
----
-756

onlyif mysql # DIV for integer division: 
query I rowsort label-573
SELECT ALL 19 + - 19 DIV ( 43 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL 19 + - 19 / ( 43 ) AS col2
----
19

query II rowsort
SELECT DISTINCT + 90 * - - 30 * + 95, - 45 col0
----
256500
-45

query I rowsort
SELECT 37 * + + 31 col1
----
1147

query I rowsort
SELECT ALL + 81 + + 92
----
173

query II rowsort
SELECT 53 * + - ( 41 ) AS col1, 71 AS col1
----
-2173
71

onlyif mysql # aggregate syntax: 
query II rowsort label-578
SELECT 27 * + + COUNT( ALL + 50 ), + 44 * - 25 AS col2
----
27
-1100

skipif mysql # not compatible
query II rowsort label-578
SELECT 27 * + + COUNT ( ALL + 50 ), + 44 * - 25 AS col2
----
27
-1100

query I rowsort
SELECT 33 - - + ( + 17 ) col1
----
50

query II rowsort
SELECT ALL 78, 41 AS col1
----
78
41

query I rowsort
SELECT ALL - 18 + - 37
----
-55

query I rowsort
SELECT 43 - + + AVG ( DISTINCT 95 ) * + 30 + NULLIF ( - 80, + ( + - 80 ) ) AS col2
----
NULL

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

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

query I rowsort
SELECT + 72 * 78
----
5616

query I rowsort
SELECT ALL + 91 * - + 25 + + - 7 - - 65 + + - 9
----
-2226

query I rowsort
SELECT 64 * 34 * - 42 AS col1
----
-91392

query I rowsort
SELECT ALL - 30 * + + 22 AS col1
----
-660

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-588
SELECT DISTINCT + NULLIF ( - 42, COUNT( * ) ) DIV - 33 + + - 31 col1, - 13 * + - 19
----
-30
247

skipif mysql # not compatible
query II rowsort label-588
SELECT DISTINCT + NULLIF ( - 42, COUNT ( * ) ) / - 33 + + - 31 col1, - 13 * + - 19
----
-30
247

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT ALL - SUM( DISTINCT 26 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL - SUM ( DISTINCT 26 ) AS col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-590
SELECT DISTINCT 66 DIV - + 56 - + - COUNT( DISTINCT - 92 ) * - 55
----
-56

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT 66 / - + 56 - + - COUNT ( DISTINCT - 92 ) * - 55
----
-56

query I rowsort
SELECT ALL - - 5 col2
----
5

query I rowsort
SELECT 87 * + 84 * 41 + 88
----
299716

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT + ( - + COUNT( * ) ) * - SUM( - - 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-593
SELECT + ( - + COUNT ( * ) ) * - SUM ( - - 80 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT + - COALESCE ( COUNT( ALL - - 16 ), - ( 96 ) * + 45 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-594
SELECT + - COALESCE ( COUNT ( ALL - - 16 ), - ( 96 ) * + 45 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-595
SELECT + CAST( 77 AS SIGNED ) * - - 84 + - CAST( NULL AS SIGNED ) + - 37 / - 38 * + 58 + - - 29 - 49 + + CASE 79 WHEN + - 69 + - + 20 THEN 23 * - + 52 END - - NULLIF ( + 60, + 74 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT + CAST ( 77 AS INTEGER ) * - - 84 + - CAST ( NULL AS INTEGER ) + - 37 / - 38 * + 58 + - - 29 - 49 + + CASE 79 WHEN + - 69 + - + 20 THEN 23 * - + 52 END - - NULLIF ( + 60, + 74 ) AS col0
----
NULL

query I rowsort
SELECT 66 + - 43 AS col1
----
23

query I rowsort
SELECT 13 + - + 75
----
-62

query I rowsort
SELECT ALL 64 * 41 AS col0
----
2624

query II rowsort
SELECT 87, 84 * 73 * + 92 * + 61 AS col1
----
87
34412784

query I rowsort
SELECT ALL - 49 + + 56 AS col0
----
7

query II rowsort
SELECT 43 - - 40 AS col1, 62
----
83
62

query II rowsort
SELECT ALL 62 AS col1, - ( + 82 )
----
62
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT 63 DIV + 5
----
12

skipif mysql # not compatible
query I rowsort label-603
SELECT 63 / + 5
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-604
SELECT 14, CASE - ( 31 ) WHEN + 0 * NULLIF ( + ( - - 89 ), COUNT( 12 ) * + 72 ) + - ( - - MAX( 35 ) ) - + 79 + - SUM( ALL - 46 ) THEN NULL WHEN + + COUNT( * ) THEN - 60 WHEN - 9 * 65 * - - 80 THEN NULL ELSE + - COUNT( * ) * + - 33 + + 89 + - CAST( + ( + 27 ) AS SIGNED ) + - 16 * + 26 + + 57 * + ( - 60 ) * + + 35 END * COUNT( 30 ) + SUM( DISTINCT 92 ) + COUNT( ALL - + 41 ) + + COUNT( * ) * - 69 AS col0
----
14
-119997

skipif mysql # not compatible
query II rowsort label-604
SELECT 14, CASE - ( 31 ) WHEN + 0 * NULLIF ( + ( - - 89 ), COUNT ( 12 ) * + 72 ) + - ( - - MAX ( 35 ) ) - + 79 + - SUM ( ALL - 46 ) THEN NULL WHEN + + COUNT ( * ) THEN - 60 WHEN - 9 * 65 * - - 80 THEN NULL ELSE + - COUNT ( * ) * + - 33 + + 89 + - CAST ( + ( + 27 ) AS INTEGER ) + - 16 * + 26 + + 57 * + ( - 60 ) * + + 35 END * COUNT ( 30 ) + SUM ( DISTINCT 92 ) + COUNT ( ALL - + 41 ) + + COUNT ( * ) * - 69 AS col0
----
14
-119997

query II rowsort
SELECT - 72 AS col2, - 5
----
-72
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT 78 - COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-607
SELECT 78 - COUNT ( * ) AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-608
SELECT 52 + CAST( + - 13 AS SIGNED ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-608
SELECT 52 + CAST ( + - 13 AS INTEGER ) AS col0
----
39

query I rowsort
SELECT 88 - - ( + - 17 ) + + 77
----
148

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

query I rowsort
SELECT 59 * 64 * 29 * + 19 col1
----
2080576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-612
SELECT 62 + CAST( AVG ( ALL - 46 ) AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-612
SELECT 62 + CAST ( AVG ( ALL - 46 ) AS INTEGER )
----
16

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

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

query I rowsort
SELECT DISTINCT 65 + - 1 AS col1
----
64

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

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT + 41 * + COUNT ( * ) * + - ( + 85 ) AS col0
----
-3485

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT ALL - MIN( DISTINCT 67 ) - - COALESCE ( + 64, 60 )
----
-3

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL - MIN ( DISTINCT 67 ) - - COALESCE ( + 64, 60 )
----
-3

query I rowsort
SELECT ALL - 14 * - 32
----
448

onlyif mysql # DIV for integer division: 
query II rowsort label-618
SELECT DISTINCT 93, 21 + 12 DIV 93 AS col1
----
93
21

skipif mysql # not compatible
query II rowsort label-618
SELECT DISTINCT 93, 21 + 12 / 93 AS col1
----
93
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-619
SELECT 87 + - + 27 * + 18 - + CAST( NULL AS DECIMAL ) + + 96 / + MIN( 24 ) * - ( - 87 ) * - CASE 81 WHEN + 14 THEN - + AVG ( DISTINCT 18 ) ELSE - + 13 + + - CAST( ( 91 ) AS SIGNED ) END * ( - ( + + CAST( NULL AS SIGNED ) ) ) + + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-619
SELECT 87 + - + 27 * + 18 - + CAST ( NULL AS REAL ) + + 96 / + MIN ( 24 ) * - ( - 87 ) * - CASE 81 WHEN + 14 THEN - + AVG ( DISTINCT 18 ) ELSE - + 13 + + - CAST ( ( 91 ) AS INTEGER ) END * ( - ( + + CAST ( NULL AS INTEGER ) ) ) + + 8 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT + MIN( ALL + COALESCE ( 96, - + 27 ) )
----
96

skipif mysql # not compatible
query I rowsort label-620
SELECT + MIN ( ALL + COALESCE ( 96, - + 27 ) )
----
96

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-623
SELECT + 56 DIV 35
----
1

skipif mysql # not compatible
query I rowsort label-623
SELECT + 56 / 35
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-624
SELECT 53 DIV + 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-624
SELECT 53 / + 60 AS col0
----
0

query I rowsort
SELECT + 10 * 6 + - 16 AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-626
SELECT - 79 + - + CAST( NULL AS SIGNED ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-626
SELECT - 79 + - + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * )
----
NULL
1

query II rowsort
SELECT - 17, + 17 AS col2
----
-17
17

onlyif mysql # aggregate syntax: 
query II rowsort label-628
SELECT ALL - - COUNT( * ) AS col0, - 97 * - + COALESCE ( - 9, + + ( - COUNT( * ) ) )
----
1
-873

skipif mysql # not compatible
query II rowsort label-628
SELECT ALL - - COUNT ( * ) AS col0, - 97 * - + COALESCE ( - 9, + + ( - COUNT ( * ) ) )
----
1
-873

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-629
SELECT ALL - NULLIF ( - 52, + + 17 + COUNT( * ) ) AS col2, 8 DIV NULLIF ( + 8, - 72 )
----
52
1

skipif mysql # not compatible
query II rowsort label-629
SELECT ALL - NULLIF ( - 52, + + 17 + COUNT ( * ) ) AS col2, 8 / NULLIF ( + 8, - 72 )
----
52
1

onlyif mysql # aggregate syntax: 
query III rowsort label-630
SELECT - 6 * - - COUNT( * ) AS col0, + 27 + 33, - 57 col1
----
-6
60
-57

skipif mysql # not compatible
query III rowsort label-630
SELECT - 6 * - - COUNT ( * ) AS col0, + 27 + 33, - 57 col1
----
-6
60
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT ALL - MAX( DISTINCT - NULLIF ( + 77, - + 57 ) ) * + - 45
----
-3465

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL - MAX ( DISTINCT - NULLIF ( + 77, - + 57 ) ) * + - 45
----
-3465

query I rowsort
SELECT 73 * - 35 + - 70 AS col1
----
-2625

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT DISTINCT CASE - + 59 WHEN + + ( + 93 ) THEN - - 17 - + + 3 * + SUM( ALL + - 15 ) WHEN 87 * - + 85 THEN + 76 END * - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT CASE - + 59 WHEN + + ( + 93 ) THEN - - 17 - + + 3 * + SUM ( ALL + - 15 ) WHEN 87 * - + 85 THEN + 76 END * - 46 AS col1
----
NULL

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

query I rowsort
SELECT ALL - 18 * - 25 AS col0
----
450

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

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

query II rowsort
SELECT 4 AS col1, + 7 col2
----
4
7

query I rowsort
SELECT + 65 + 63
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-639
SELECT + 36 col2, - MIN( 93 ) AS col0
----
36
-93

skipif mysql # not compatible
query II rowsort label-639
SELECT + 36 col2, - MIN ( 93 ) AS col0
----
36
-93

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-640
SELECT - NULLIF ( + CAST( - + 64 AS SIGNED ), 41 ) * + + CAST( NULL AS DECIMAL ) * + - 26 + 58 * - + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-640
SELECT - NULLIF ( + CAST ( - + 64 AS INTEGER ), 41 ) * + + CAST ( NULL AS REAL ) * + - 26 + 58 * - + 48
----
NULL

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

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

query I rowsort
SELECT ALL 2 + + 88
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-643
SELECT + 8 + + MAX( + CAST( - NULLIF ( + 8, - + 79 ) AS SIGNED ) ) + 73 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-643
SELECT + 8 + + MAX ( + CAST ( - NULLIF ( + 8, - + 79 ) AS INTEGER ) ) + 73 / 80
----
0

query I rowsort
SELECT DISTINCT NULLIF ( - 79, 78 ) + + + 29 col2
----
-50

query I rowsort
SELECT + CASE + 51 WHEN 2 THEN 70 END * - 81 AS col0
----
NULL

query I rowsort
SELECT + 48 * + 36
----
1728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-647
SELECT + 54 + + - CAST( SUM( ALL - - 90 ) AS SIGNED ) + + 52 * + MIN( + 60 ) * + + NULLIF ( + 37, 22 ) AS col2
----
115404

skipif mysql # not compatible
query I rowsort label-647
SELECT + 54 + + - CAST ( SUM ( ALL - - 90 ) AS INTEGER ) + + 52 * + MIN ( + 60 ) * + + NULLIF ( + 37, 22 ) AS col2
----
115404

query I rowsort
SELECT ALL 60 * + 71
----
4260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-649
SELECT ALL ( 61 ) + + CASE - COUNT( * ) WHEN COUNT( DISTINCT - + 53 ) THEN NULL WHEN + - 44 THEN NULL WHEN - 76 THEN + COUNT( * ) END + - CAST( NULL AS SIGNED ) / 24 + - - 67 + 29 * + 44 - + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL ( 61 ) + + CASE - COUNT ( * ) WHEN COUNT ( DISTINCT - + 53 ) THEN NULL WHEN + - 44 THEN NULL WHEN - 76 THEN + COUNT ( * ) END + - CAST ( NULL AS INTEGER ) / 24 + - - 67 + 29 * + 44 - + 37
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-650
SELECT ALL 12 - - + MIN( DISTINCT - 72 ) AS col1, - 48 * - 56 AS col2
----
-60
2688

skipif mysql # not compatible
query II rowsort label-650
SELECT ALL 12 - - + MIN ( DISTINCT - 72 ) AS col1, - 48 * - 56 AS col2
----
-60
2688

query I rowsort
SELECT ALL 24 * + 14
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT - ( CASE + + MAX( DISTINCT 88 ) WHEN - 60 THEN + ( - 4 ) WHEN + ( - 15 ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-652
SELECT - ( CASE + + MAX ( DISTINCT 88 ) WHEN - 60 THEN + ( - 4 ) WHEN + ( - 15 ) THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-653
SELECT + 82 * - - COALESCE ( + + CAST( NULL AS SIGNED ), 53, + NULLIF ( - + 60, + 37 + 34 * + 49 + ( 60 ) + ( - ( 33 ) ) ) )
----
4346

skipif mysql # not compatible
query I rowsort label-653
SELECT + 82 * - - COALESCE ( + + CAST ( NULL AS INTEGER ), 53, + NULLIF ( - + 60, + 37 + 34 * + 49 + ( 60 ) + ( - ( 33 ) ) ) )
----
4346

onlyif mysql # DIV for integer division: 
query I rowsort label-654
SELECT - 24 DIV + - ( ( + 73 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-654
SELECT - 24 / + - ( ( + 73 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT + + COUNT( - 9 ) * + 60
----
60

skipif mysql # not compatible
query I rowsort label-655
SELECT + + COUNT ( - 9 ) * + 60
----
60

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-657
SELECT ALL + 25 * 39 * + CAST( NULL AS SIGNED ) * 21 / 3 / - 44 + - 33 / + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL + 25 * 39 * + CAST ( NULL AS INTEGER ) * 21 / 3 / - 44 + - 33 / + 30 AS col1
----
NULL

query I rowsort
SELECT 44 * 61 - - - 63
----
2621

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT DISTINCT - MIN( 67 ) * + 81 AS col0
----
-5427

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT - MIN ( 67 ) * + 81 AS col0
----
-5427

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT - 32 DIV + 55 - + - 11
----
11

skipif mysql # not compatible
query I rowsort label-660
SELECT - 32 / + 55 - + - 11
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-661
SELECT - ( + 46 ) DIV - 76 - + - COUNT( * ) - + 12
----
-11

skipif mysql # not compatible
query I rowsort label-661
SELECT - ( + 46 ) / - 76 - + - COUNT ( * ) - + 12
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-662
SELECT + 70 + - 25 + + - MIN( 72 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-662
SELECT + 70 + - 25 + + - MIN ( 72 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT - + 67 * 63 * - NULLIF ( + + 21, - ( 46 ) * - MAX( DISTINCT 65 ) ) AS col1
----
88641

skipif mysql # not compatible
query I rowsort label-663
SELECT - + 67 * 63 * - NULLIF ( + + 21, - ( 46 ) * - MAX ( DISTINCT 65 ) ) AS col1
----
88641

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

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

query I rowsort
SELECT ALL - - 2 * 78 + - + 18
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-666
SELECT CASE - - 9 WHEN - + COUNT( DISTINCT + - ( + 23 ) ) * - + SUM( 20 ) + + - SUM( DISTINCT - 69 ) THEN NULL ELSE + - CAST( + + 94 AS SIGNED ) * + 78 + + - COUNT( * ) * - 9 END AS col1
----
-7323

skipif mysql # not compatible
query I rowsort label-666
SELECT CASE - - 9 WHEN - + COUNT ( DISTINCT + - ( + 23 ) ) * - + SUM ( 20 ) + + - SUM ( DISTINCT - 69 ) THEN NULL ELSE + - CAST ( + + 94 AS INTEGER ) * + 78 + + - COUNT ( * ) * - 9 END AS col1
----
-7323

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT DISTINCT CASE - 63 WHEN 30 * 58 THEN 48 + - + ( + 10 ) WHEN + + 32 THEN NULL END * 80 + 37 + 61 + + SUM( ALL + 83 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-667
SELECT DISTINCT CASE - 63 WHEN 30 * 58 THEN 48 + - + ( + 10 ) WHEN + + 32 THEN NULL END * 80 + 37 + 61 + + SUM ( ALL + 83 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT - + MIN( DISTINCT - 18 ) + + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-668
SELECT - + MIN ( DISTINCT - 18 ) + + COUNT ( * )
----
19

query I rowsort
SELECT - 84 * - 72
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT NULLIF ( - ( + 89 ), + COUNT( * ) ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-670
SELECT NULLIF ( - ( + 89 ), + COUNT ( * ) ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-671
SELECT + COALESCE ( + + CAST( NULL AS SIGNED ), + 99 DIV 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-671
SELECT + COALESCE ( + + CAST ( NULL AS INTEGER ), + 99 / 61 ) AS col2
----
1

query I rowsort
SELECT - 48 + 90 * 0 AS col2
----
-48

query I rowsort
SELECT - 25 + - 3 col1
----
-28

query I rowsort
SELECT ALL ( + NULLIF ( + 75, + ( 34 ) * - + 68 ) ) AS col0
----
75

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-676
SELECT ALL CAST( - - NULLIF ( + - 97, + COUNT( * ) ) AS SIGNED ) AS col1, - NULLIF ( COUNT( - 84 ), + 21 ) AS col2
----
-97
-1

skipif mysql # not compatible
query II rowsort label-676
SELECT ALL CAST ( - - NULLIF ( + - 97, + COUNT ( * ) ) AS INTEGER ) AS col1, - NULLIF ( COUNT ( - 84 ), + 21 ) AS col2
----
-97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT + COUNT( * ) + 45 + 94 AS col2
----
140

skipif mysql # not compatible
query I rowsort label-677
SELECT + COUNT ( * ) + 45 + 94 AS col2
----
140

query I rowsort
SELECT + 23 * - + 39 AS col1
----
-897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-679
SELECT + CAST( NULL AS SIGNED ) + + + 75 + + + 98 / 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT + CAST ( NULL AS INTEGER ) + + + 75 + + + 98 / 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT ALL 5 * - - 55 * + MIN( + - 6 )
----
-1650

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL 5 * - - 55 * + MIN ( + - 6 )
----
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT + - 40 + - - MIN( ALL + 81 ) * + 50 * - 54 * - 84
----
18370760

skipif mysql # not compatible
query I rowsort label-681
SELECT + - 40 + - - MIN ( ALL + 81 ) * + 50 * - 54 * - 84
----
18370760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-682
SELECT + + COALESCE ( - - 76, - 84 + - - 36 + 70 * - + 24 * - CAST( + 31 AS SIGNED ), + + 89 ) * - 76
----
-5776

skipif mysql # not compatible
query I rowsort label-682
SELECT + + COALESCE ( - - 76, - 84 + - - 36 + 70 * - + 24 * - CAST ( + 31 AS INTEGER ), + + 89 ) * - 76
----
-5776

query I rowsort
SELECT - + CASE + 21 WHEN 79 THEN + 19 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL - 72, + 53 AS col2
----
-72
53

query II rowsort
SELECT - 13, 10 + + - 51 AS col2
----
-13
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT 62 + + - 61 * - ( 38 ) * - COUNT( * ) AS col0
----
-2256

skipif mysql # not compatible
query I rowsort label-686
SELECT 62 + + - 61 * - ( 38 ) * - COUNT ( * ) AS col0
----
-2256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-687
SELECT MIN( - - ( NULLIF ( 65, 62 DIV - NULLIF ( - + 18, - 98 ) ) ) ) AS col0, - NULLIF ( + + 46, - + COUNT( * ) * - + COUNT( * ) - + ( - CAST( - + CASE - 56 WHEN - 41 THEN NULL WHEN + 26 * COUNT( * ) + + 51 * + + 77 * + ( - 57 ) THEN 41 * + CAST( NULL AS SIGNED ) WHEN + - NULLIF ( - 64, + 60 ) THEN - ( - 68 ) END AS SIGNED ) ) - + 69 ) * + COUNT( + + 95 ) DIV 69 * - COUNT( * ) + 82 AS col1
----
65
82

skipif mysql # not compatible
query II rowsort label-687
SELECT MIN ( - - ( NULLIF ( 65, 62 / - NULLIF ( - + 18, - 98 ) ) ) ) AS col0, - NULLIF ( + + 46, - + COUNT ( * ) * - + COUNT ( * ) - + ( - CAST ( - + CASE - 56 WHEN - 41 THEN NULL WHEN + 26 * COUNT ( * ) + + 51 * + + 77 * + ( - 57 ) THEN 41 * + CAST ( NULL AS INTEGER ) WHEN + - NULLIF ( - 64, + 60 ) THEN - ( - 68 ) END AS INTEGER ) ) - + 69 ) * + COUNT ( + + 95 ) / 69 * - COUNT ( * ) + 82 AS col1
----
65
82

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

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

query I rowsort
SELECT DISTINCT 17 + + 79 + - + 2 + + 33
----
127

query II rowsort
SELECT 96, 13 AS col1
----
96
13

query I rowsort
SELECT ALL + 36 + + 65 + 79 AS col0
----
180

query II rowsort
SELECT ALL - + 8 + + - 62 + - 29 AS col1, 43 AS col2
----
-99
43

query I rowsort
SELECT DISTINCT + + 46 * - 91 - - - 42
----
-4228

query I rowsort
SELECT DISTINCT + NULLIF ( + 55, - 44 ) + - - 1 * + 77 + + 83 AS col2
----
215

query I rowsort
SELECT - 18 * - 78
----
1404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-696
SELECT ALL - - 57 AS col2, - ( - COUNT( * ) ) DIV - 36 + + + CAST( + NULLIF ( - 75, 99 + ( 92 ) ) AS SIGNED )
----
57
-75

skipif mysql # not compatible
query II rowsort label-696
SELECT ALL - - 57 AS col2, - ( - COUNT ( * ) ) / - 36 + + + CAST ( + NULLIF ( - 75, 99 + ( 92 ) ) AS INTEGER )
----
57
-75

query I rowsort
SELECT 63 + + 57 * - 32
----
-1761

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT COALESCE ( + 52, - - 25, + 73 * + 52, - 81 + - - COUNT( * ) * + - 40 ) * + + 16 * - 52 * 71 AS col0
----
-3071744

skipif mysql # not compatible
query I rowsort label-698
SELECT COALESCE ( + 52, - - 25, + 73 * + 52, - 81 + - - COUNT ( * ) * + - 40 ) * + + 16 * - 52 * 71 AS col0
----
-3071744

query I rowsort
SELECT 37 * - 85 AS col2
----
-3145

query II rowsort
SELECT ALL + 18 - 7 col2, 65 * - 79 AS col0
----
11
-5135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-701
SELECT DISTINCT ( - 45 ) * - - MAX( DISTINCT - - ( + + CAST( 12 AS SIGNED ) ) )
----
-540

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT ( - 45 ) * - - MAX ( DISTINCT - - ( + + CAST ( 12 AS INTEGER ) ) )
----
-540

query II rowsort
SELECT 68 + + 88 col1, 69 * - - 33 + + ( + - 82 )
----
156
2195

query II rowsort
SELECT 72 * + - 5 AS col2, - 74 AS col2
----
-360
-74

query I rowsort
SELECT 78 + - 36 + - 31 * + + 52 + 94
----
-1476

query I rowsort
SELECT DISTINCT + 82 * + 82 * + 30
----
201720

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT 62 * COUNT( * ) * 90 AS col2
----
5580

skipif mysql # not compatible
query I rowsort label-706
SELECT 62 * COUNT ( * ) * 90 AS col2
----
5580

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT MIN( 1 ) * 83 + 7
----
90

skipif mysql # not compatible
query I rowsort label-707
SELECT MIN ( 1 ) * 83 + 7
----
90

query I rowsort
SELECT DISTINCT + 83 * - ( - - 96 ) col0
----
-7968

query I rowsort
SELECT 13 + - + 72 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT DISTINCT - ( NULLIF ( COUNT( * ), - 80 * + 53 + - 85 + - + 14 * - 67 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-710
SELECT DISTINCT - ( NULLIF ( COUNT ( * ), - 80 * + 53 + - 85 + - + 14 * - 67 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-711
SELECT DISTINCT + 55 + + 99 + - 28 DIV - 53 * + - 82 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT + 55 + + 99 + - 28 / - 53 * + - 82 AS col2
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-712
SELECT ALL - 91 DIV + 64 + + ( COUNT( * ) ) col0, + 30 AS col0
----
0
30

skipif mysql # not compatible
query II rowsort label-712
SELECT ALL - 91 / + 64 + + ( COUNT ( * ) ) col0, + 30 AS col0
----
0
30

query II rowsort
SELECT - 16 + + + 0 AS col1, - COALESCE ( + + 51, 69 + + 63 + - 75 * - - 89 * + 49 * 83, + 10 )
----
-16
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL + - 44 + 59 + 7 + + + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL + - 44 + 59 + 7 + + + COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT + SUM( + + CASE - COALESCE ( 69, - 55 + + 98 ) WHEN - NULLIF ( - 84, 29 ) THEN NULL WHEN 12 + 38 THEN NULL WHEN - 96 THEN NULL ELSE + - 98 END )
----
-98

skipif mysql # not compatible
query I rowsort label-715
SELECT + SUM ( + + CASE - COALESCE ( 69, - 55 + + 98 ) WHEN - NULLIF ( - 84, 29 ) THEN NULL WHEN 12 + 38 THEN NULL WHEN - 96 THEN NULL ELSE + - 98 END )
----
-98

query II rowsort
SELECT + 39 - + - 77 AS col1, 12
----
116
12

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT MIN( ALL - - 51 )
----
51

skipif mysql # not compatible
query I rowsort label-717
SELECT MIN ( ALL - - 51 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-718
SELECT ALL + CAST( NULL AS SIGNED ) / COALESCE ( - CASE - - MIN( CAST( NULL AS SIGNED ) ) WHEN - 57 THEN NULL ELSE + + 69 END, - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-718
SELECT ALL + CAST ( NULL AS INTEGER ) / COALESCE ( - CASE - - MIN ( CAST ( NULL AS INTEGER ) ) WHEN - 57 THEN NULL ELSE + + 69 END, - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-719
SELECT + 66 + + MIN( ALL 10 ) DIV - 64 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-719
SELECT + 66 + + MIN ( ALL 10 ) / - 64 AS col2
----
66

query I rowsort
SELECT ALL ( + 68 ) + + 89 + - 83
----
74

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-722
SELECT DISTINCT + MAX( DISTINCT + + 23 ) + - ( + 66 ), + 21 AS col2
----
-43
21

skipif mysql # not compatible
query II rowsort label-722
SELECT DISTINCT + MAX ( DISTINCT + + 23 ) + - ( + 66 ), + 21 AS col2
----
-43
21

query I rowsort
SELECT ALL - 46 - - 37
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT + + NULLIF ( - COUNT( - 83 ), - + 22 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-724
SELECT + + NULLIF ( - COUNT ( - 83 ), - + 22 ) col0
----
-1

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

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

query I rowsort
SELECT 66 * + 50 + 50 AS col2
----
3350

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-728
SELECT 68 * + - 31 / - - CAST( NULL AS SIGNED ) + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-728
SELECT 68 * + - 31 / - - CAST ( NULL AS INTEGER ) + + 92
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-729
SELECT 82 * + COUNT( * ) * + 9 AS col1, 65 + ( - 42 ) * + 66 + + + 74 AS col1
----
738
-2633

skipif mysql # not compatible
query II rowsort label-729
SELECT 82 * + COUNT ( * ) * + 9 AS col1, 65 + ( - 42 ) * + 66 + + + 74 AS col1
----
738
-2633

onlyif mysql # DIV for integer division: 
query I rowsort label-730
SELECT ALL 37 DIV - + 63
----
0

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL 37 / - + 63
----
0

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

skipif mysql # not compatible
query I rowsort label-731
SELECT + SUM ( + + 98 )
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-732
SELECT 72 DIV - ( 9 ), 31 AS col2
----
-8
31

skipif mysql # not compatible
query II rowsort label-732
SELECT 72 / - ( 9 ), 31 AS col2
----
-8
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-733
SELECT ALL - MIN( - 4 ) * 37 DIV 43 * + - 65 AS col1
----
-195

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL - MIN ( - 4 ) * 37 / 43 * + - 65 AS col1
----
-195

query I rowsort
SELECT ALL 1 * + - 94
----
-94

query I rowsort
SELECT + ( - 17 ) * - 81 + + 6
----
1383

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-736
SELECT + CAST( - 9 AS SIGNED ) * ( + SUM( + + ( 85 ) ) ) DIV + - 10 + - 95
----
-19

skipif mysql # not compatible
query I rowsort label-736
SELECT + CAST ( - 9 AS INTEGER ) * ( + SUM ( + + ( 85 ) ) ) / + - 10 + - 95
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-737
SELECT 62 DIV + 59
----
1

skipif mysql # not compatible
query I rowsort label-737
SELECT 62 / + 59
----
1

query I rowsort
SELECT 68 + 21 + + 56 * 62
----
3561

query I rowsort
SELECT 7 * + 49 AS col1
----
343

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-740
SELECT CAST( ( - + 47 ) AS SIGNED ) + - 75 + - 88 AS col1
----
-210

skipif mysql # not compatible
query I rowsort label-740
SELECT CAST ( ( - + 47 ) AS INTEGER ) + - 75 + - 88 AS col1
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT DISTINCT SUM( DISTINCT + 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT SUM ( DISTINCT + 97 ) AS col0
----
97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-743
SELECT ALL COUNT( - - 64 ) + - 33 AS col0, - 28 AS col2
----
-32
-28

skipif mysql # not compatible
query II rowsort label-743
SELECT ALL COUNT ( - - 64 ) + - 33 AS col0, - 28 AS col2
----
-32
-28

query I rowsort
SELECT - 5 + + 81
----
76

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-746
SELECT ALL - ( - 35 ) + 98 + - + 7 DIV + + 71 + + ( + COUNT( * ) ) - - - COUNT( * ) * + + 65
----
69

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL - ( - 35 ) + 98 + - + 7 / + + 71 + + ( + COUNT ( * ) ) - - - COUNT ( * ) * + + 65
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-747
SELECT + - 62 * 75 DIV ( - + 84 )
----
55

skipif mysql # not compatible
query I rowsort label-747
SELECT + - 62 * 75 / ( - + 84 )
----
55

query I rowsort
SELECT DISTINCT - - 79 * - 0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT ALL - NULLIF ( + - COUNT( * ), 29 ) + 71 - NULLIF ( - + 41, + + 1 ) - 59 * - 11 AS col0
----
762

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL - NULLIF ( + - COUNT ( * ), 29 ) + 71 - NULLIF ( - + 41, + + 1 ) - 59 * - 11 AS col0
----
762

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT - COUNT( * ) - + ( - - 87 ) + + + ( 37 )
----
-51

skipif mysql # not compatible
query I rowsort label-751
SELECT - COUNT ( * ) - + ( - - 87 ) + + + ( 37 )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-752
SELECT COUNT( * ) AS col2, + COALESCE ( 63, - - 10 ) AS col2
----
1
63

skipif mysql # not compatible
query II rowsort label-752
SELECT COUNT ( * ) AS col2, + COALESCE ( 63, - - 10 ) AS col2
----
1
63

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT ALL NULLIF ( - - 46, - COALESCE ( - COUNT( * ), + 41 ) / + + 1 * 51 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL NULLIF ( - - 46, - COALESCE ( - COUNT ( * ), + 41 ) / + + 1 * 51 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-754
SELECT ALL - + 37 * + - SUM( - 48 ), 99 AS col0
----
-1776
99

skipif mysql # not compatible
query II rowsort label-754
SELECT ALL - + 37 * + - SUM ( - 48 ), 99 AS col0
----
-1776
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT DISTINCT - 8 - - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT - 8 - - COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT - 45 * 2 + - 54 + MIN( DISTINCT 88 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-757
SELECT - 45 * 2 + - 54 + MIN ( DISTINCT 88 ) AS col1
----
-56

query I rowsort
SELECT - - 69 * 59 AS col2
----
4071

onlyif mysql # DIV for integer division: 
query I rowsort label-759
SELECT ALL - 58 DIV 21 DIV 12 col1
----
0

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL - 58 / 21 / 12 col1
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( + 7, - 36, - 15 - + 89, - - 67 ) AS col1
----
7

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

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

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

query I rowsort
SELECT - 66 * + - 1 * + 54
----
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT + SUM( DISTINCT 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-766
SELECT + SUM ( DISTINCT 0 ) AS col2
----
0

query I rowsort
SELECT + 65 + - 49 + - 60 + 65
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-768
SELECT + 24 DIV 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-768
SELECT + 24 / 72 AS col0
----
0

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

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

query II rowsort
SELECT ALL + 48, 78 AS col0
----
48
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-771
SELECT DISTINCT + 19 col2, + COUNT( ALL - - 27 ) DIV + + 29 + 20 AS col1
----
19
20

skipif mysql # not compatible
query II rowsort label-771
SELECT DISTINCT + 19 col2, + COUNT ( ALL - - 27 ) / + + 29 + 20 AS col1
----
19
20

query I rowsort
SELECT ALL 82 * + 50
----
4100

onlyif mysql # aggregate syntax: 
query II rowsort label-773
SELECT MAX( DISTINCT + + 17 ) AS col1, COUNT( * )
----
17
1

skipif mysql # not compatible
query II rowsort label-773
SELECT MAX ( DISTINCT + + 17 ) AS col1, COUNT ( * )
----
17
1

query I rowsort
SELECT DISTINCT 29 * + + 34 + 6 AS col2
----
992

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-776
SELECT ALL + NULLIF ( + - 84, + - CAST( NULL AS SIGNED ) ) * + + 20 + - + 98 + + 6
----
-1772

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL + NULLIF ( + - 84, + - CAST ( NULL AS INTEGER ) ) * + + 20 + - + 98 + + 6
----
-1772

onlyif mysql # aggregate syntax: 
query II rowsort label-777
SELECT DISTINCT - 36 * + ( + 21 ) + - - 88 AS col2, SUM( + + ( 59 ) )
----
-668
59

skipif mysql # not compatible
query II rowsort label-777
SELECT DISTINCT - 36 * + ( + 21 ) + - - 88 AS col2, SUM ( + + ( 59 ) )
----
-668
59

query I rowsort
SELECT + 94 * + 66 * + 49 * - 61
----
-18543756

query II rowsort
SELECT - + 45 AS col0, - ( - 35 ) * 45 - + - 16
----
-45
1591

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-780
SELECT + 21 / + ( COALESCE ( 68, - + 54 ) ) + - 32 - + CAST( NULL AS SIGNED ) * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-780
SELECT + 21 / + ( COALESCE ( 68, - + 54 ) ) + - 32 - + CAST ( NULL AS INTEGER ) * 86
----
NULL

query I rowsort
SELECT DISTINCT - 3 * - 0 AS col0
----
0

query II rowsort
SELECT 78 AS col1, - 61 * 84
----
78
-5124

query II rowsort
SELECT DISTINCT 10 AS col1, 45 AS col1
----
10
45

query I rowsort
SELECT DISTINCT 22 - - + 57 AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-785
SELECT ALL 40 - - 11 / CAST( NULL AS SIGNED ) - + 77 + + 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL 40 - - 11 / CAST ( NULL AS INTEGER ) - + 77 + + 48 AS col0
----
NULL

query I rowsort
SELECT + 10 * + - 71
----
-710

query II rowsort
SELECT - + 93 AS col0, 45 - 79 AS col1
----
-93
-34

query II rowsort
SELECT 21 AS col2, + COALESCE ( - - 81, + ( 90 ), - 49 ) AS col2
----
21
81

query II rowsort
SELECT - + 39 col2, - 68
----
-39
-68

query I rowsort
SELECT + 37 + + 69 AS col0
----
106

query I rowsort
SELECT - 7 * 61 - 44
----
-471

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT - CASE + ( + ( - 76 ) ) WHEN + 59 THEN + + 11 + - COUNT( * ) + + ( 69 ) / CASE + 89 WHEN + 43 THEN - 7 END END + 35 + - 38 + + - NULLIF ( - + 75, 63 ) + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-792
SELECT - CASE + ( + ( - 76 ) ) WHEN + 59 THEN + + 11 + - COUNT ( * ) + + ( 69 ) / CASE + 89 WHEN + 43 THEN - 7 END END + 35 + - 38 + + - NULLIF ( - + 75, 63 ) + 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT - MAX( 88 ) col0
----
-88

skipif mysql # not compatible
query I rowsort label-793
SELECT - MAX ( 88 ) col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-794
SELECT DISTINCT COALESCE ( + + CAST( + COUNT( * ) AS SIGNED ), - - 64 ) * + 4 * + - MAX( DISTINCT + - 1 )
----
4

skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT COALESCE ( + + CAST ( + COUNT ( * ) AS INTEGER ), - - 64 ) * + 4 * + - MAX ( DISTINCT + - 1 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT - - CASE + 88 WHEN + 91 THEN + 19 ELSE - 51 END * + + 36 * - COUNT( * ) * 66
----
121176

skipif mysql # not compatible
query I rowsort label-795
SELECT - - CASE + 88 WHEN + 91 THEN + 19 ELSE - 51 END * + + 36 * - COUNT ( * ) * 66
----
121176

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT DISTINCT + COALESCE ( - COUNT( * ), - 39 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT + COALESCE ( - COUNT ( * ), - 39 ) AS col0
----
-1

query II rowsort
SELECT DISTINCT - 87 * - 89 AS col1, 28 col1
----
7743
28

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT + 89 * 40 - + NULLIF ( - COUNT( * ), 22 * + - ( + 62 ) + NULLIF ( 27, + 78 ) )
----
3561

skipif mysql # not compatible
query I rowsort label-798
SELECT + 89 * 40 - + NULLIF ( - COUNT ( * ), 22 * + - ( + 62 ) + NULLIF ( 27, + 78 ) )
----
3561

onlyif mysql # DIV for integer division: 
query II rowsort label-799
SELECT - 48 * 94 AS col0, + 71 * - + 8 + - + 86 DIV - 98 AS col2
----
-4512
-568

skipif mysql # not compatible
query II rowsort label-799
SELECT - 48 * 94 AS col0, + 71 * - + 8 + - + 86 / - 98 AS col2
----
-4512
-568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-800
SELECT ALL NULLIF ( - COUNT( * ), - 2 * - 36 * + - 93 - - CAST( NULL AS SIGNED ) + - ( - 73 ) ) DIV COUNT( * ) + - COUNT( * ) * + + COUNT( ( - - 39 ) ) + - 57 + + 91 + - - COUNT( * ) * - NULLIF ( - - 89, - 69 ) + - - 94 DIV - 98 * 24 AS col1, - COUNT( - - 97 ) + - + COALESCE ( 31, 85 * + + 5 + 73 + + 10, + 76 + + SUM( + COALESCE ( 75, - 71 + + CAST( NULL AS SIGNED ) ) ) ) * + + COUNT( * )
----
-57
-32

skipif mysql # not compatible
query II rowsort label-800
SELECT ALL NULLIF ( - COUNT ( * ), - 2 * - 36 * + - 93 - - CAST ( NULL AS INTEGER ) + - ( - 73 ) ) / COUNT ( * ) + - COUNT ( * ) * + + COUNT ( ( - - 39 ) ) + - 57 + + 91 + - - COUNT ( * ) * - NULLIF ( - - 89, - 69 ) + - - 94 / - 98 * 24 AS col1, - COUNT ( - - 97 ) + - + COALESCE ( 31, 85 * + + 5 + 73 + + 10, + 76 + + SUM ( + COALESCE ( 75, - 71 + + CAST ( NULL AS INTEGER ) ) ) ) * + + COUNT ( * )
----
-57
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT DISTINCT 13 DIV + 77 + - 59 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-801
SELECT DISTINCT 13 / + 77 + - 59 AS col0
----
-59

query I rowsort
SELECT + 26 * - ( + 44 ) + + 71
----
-1073

onlyif mysql # DIV for integer division: 
query I rowsort label-803
SELECT DISTINCT 88 DIV 21 + + 87 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-803
SELECT DISTINCT 88 / 21 + + 87 AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-804
SELECT DISTINCT + 51 DIV - 81 AS col2, - NULLIF ( - - 91, + NULLIF ( 2, ( 66 ) ) * + COALESCE ( - + COUNT( * ), - + ( + 74 ) ) * ( 24 ) ) AS col1
----
0
-91

skipif mysql # not compatible
query II rowsort label-804
SELECT DISTINCT + 51 / - 81 AS col2, - NULLIF ( - - 91, + NULLIF ( 2, ( 66 ) ) * + COALESCE ( - + COUNT ( * ), - + ( + 74 ) ) * ( 24 ) ) AS col1
----
0
-91

query I rowsort
SELECT DISTINCT 41 * - + 96
----
-3936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-806
SELECT ALL COALESCE ( + 67, + 55 * - ( - 15 ) + 9 * 79 + 88 DIV COUNT( * ) * + ( + 74 ), - 49 ) + + - 50 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL COALESCE ( + 67, + 55 * - ( - 15 ) + 9 * 79 + 88 / COUNT ( * ) * + ( + 74 ), - 49 ) + + - 50 AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-807
SELECT DISTINCT - ( COUNT( DISTINCT - ( + CAST( - 85 AS SIGNED ) ) ) ), 8 * - + 61 AS col2
----
-1
-488

skipif mysql # not compatible
query II rowsort label-807
SELECT DISTINCT - ( COUNT ( DISTINCT - ( + CAST ( - 85 AS INTEGER ) ) ) ), 8 * - + 61 AS col2
----
-1
-488

query I rowsort
SELECT 13 * + - 3
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-809
SELECT ALL - CAST( - COALESCE ( - MAX( ALL - - 42 ), + 67 * 71 - + - 38, - ( + 33 ) * - - 89 ) AS SIGNED ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-809
SELECT ALL - CAST ( - COALESCE ( - MAX ( ALL - - 42 ), + 67 * 71 - + - 38, - ( + 33 ) * - - 89 ) AS INTEGER ) AS col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-810
SELECT + COALESCE ( 1, 40 * - 54, COUNT( * ) ) * + ( - - 67 ) * - + 66 + + + COALESCE ( + + 17, - COUNT( * ) ) + 16 DIV + 1 + + - 76 * - 44 + - 89 + + 20, + 1 AS col0
----
-1114
1

skipif mysql # not compatible
query II rowsort label-810
SELECT + COALESCE ( 1, 40 * - 54, COUNT ( * ) ) * + ( - - 67 ) * - + 66 + + + COALESCE ( + + 17, - COUNT ( * ) ) + 16 / + 1 + + - 76 * - 44 + - 89 + + 20, + 1 AS col0
----
-1114
1

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT COUNT( * ) * COUNT( * ) - NULLIF ( - 32, - - 73 )
----
33

skipif mysql # not compatible
query I rowsort label-811
SELECT COUNT ( * ) * COUNT ( * ) - NULLIF ( - 32, - - 73 )
----
33

query I rowsort
SELECT ALL + 43 + 60 - + 95 * - 17
----
1718

query I rowsort
SELECT - 28 * - - 64 + 16
----
-1776

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT DISTINCT 67 * - 74 * + - MIN( - NULLIF ( ( 13 ), + 84 * 93 ) )
----
-64454

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT 67 * - 74 * + - MIN ( - NULLIF ( ( 13 ), + 84 * 93 ) )
----
-64454

query II rowsort
SELECT DISTINCT + 41 - - 92 col2, + ( - + 78 )
----
133
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-816
SELECT - 94 * - 39 DIV - + COUNT( * ) AS col2
----
-3666

skipif mysql # not compatible
query I rowsort label-816
SELECT - 94 * - 39 / - + COUNT ( * ) AS col2
----
-3666

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-817
SELECT DISTINCT + 91 * 62 * + 34 / - 62 * + CASE 16 WHEN + + 56 / - 6 THEN 29 * - - 95 / + COUNT( * ) WHEN - 22 THEN NULL WHEN + 64 THEN NULL END + + 46 / ( - - CAST( NULLIF ( - - 1, ( CASE - 71 WHEN 61 + 84 + + + MAX( 69 ) THEN - - 68 + + 71 + - COUNT( * ) * - 75 END ) * + 35 * + + 34 ) AS DECIMAL ) ) - - COUNT( * ) + + - COUNT( * ) + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT + 91 * 62 * + 34 / - 62 * + CASE 16 WHEN + + 56 / - 6 THEN 29 * - - 95 / + COUNT ( * ) WHEN - 22 THEN NULL WHEN + 64 THEN NULL END + + 46 / ( - - CAST ( NULLIF ( - - 1, ( CASE - 71 WHEN 61 + 84 + + + MAX ( 69 ) THEN - - 68 + + 71 + - COUNT ( * ) * - 75 END ) * + 35 * + + 34 ) AS REAL ) ) - - COUNT ( * ) + + - COUNT ( * ) + + 43
----
NULL

query I rowsort
SELECT - 8 * 85
----
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT 23 + + + COUNT( * ) * + + ( - 62 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-819
SELECT 23 + + + COUNT ( * ) * + + ( - 62 ) AS col0
----
-39

query I rowsort
SELECT 0 + - 67 + + 23 AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-821
SELECT + COALESCE ( 4, CAST( - + COALESCE ( + 58, - MAX( - 54 ) ) AS SIGNED ) DIV - 22 + + 24 ) * 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-821
SELECT + COALESCE ( 4, CAST ( - + COALESCE ( + 58, - MAX ( - 54 ) ) AS INTEGER ) / - 22 + + 24 ) * 0 AS col0
----
0

query I rowsort
SELECT ALL 13 * - 58
----
-754

query I rowsort
SELECT 80 + + 52
----
132

query I rowsort
SELECT 78 * - - 21
----
1638

query I rowsort
SELECT 81 + 75 * + NULLIF ( - 55, - 63 ) + 27 col1
----
-4017

query II rowsort
SELECT 75, + 90 AS col0
----
75
90

query II rowsort
SELECT 10, - 20 AS col1
----
10
-20

query II rowsort
SELECT + 54 AS col1, 71 + - - 79 AS col2
----
54
150

query I rowsort
SELECT DISTINCT + 56 * ( - 48 ) AS col2
----
-2688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-830
SELECT COUNT( ALL + CAST( NULL AS SIGNED ) ) DIV - MIN( + 23 ) * - 78 + 56 + + + 93 * + 3 * + 45 + 31 col1
----
12642

skipif mysql # not compatible
query I rowsort label-830
SELECT COUNT ( ALL + CAST ( NULL AS INTEGER ) ) / - MIN ( + 23 ) * - 78 + 56 + + + 93 * + 3 * + 45 + 31 col1
----
12642

query I rowsort
SELECT ALL 77 + - 87 col1
----
-10

query I rowsort
SELECT DISTINCT 36 * - - 79 * + 9 AS col1
----
25596

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-834
SELECT DISTINCT - 93 + COALESCE ( - 94, + 2 - 84, + 27 DIV - 15 + ( - - 62 ) + - 58 ) + + - CAST( MAX( DISTINCT + + 32 ) AS SIGNED ), + NULLIF ( - ( + 16 ), CAST( NULL AS DECIMAL ) * - + 71 - + 54 ) AS col1
----
-219
-16

skipif mysql # not compatible
query II rowsort label-834
SELECT DISTINCT - 93 + COALESCE ( - 94, + 2 - 84, + 27 / - 15 + ( - - 62 ) + - 58 ) + + - CAST ( MAX ( DISTINCT + + 32 ) AS INTEGER ), + NULLIF ( - ( + 16 ), CAST ( NULL AS REAL ) * - + 71 - + 54 ) AS col1
----
-219
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT - NULLIF ( + CASE + 64 WHEN - 18 THEN + - 39 + - - COALESCE ( - 47, 60 + 89, 44 * + + MIN( DISTINCT 88 ), - ( - 69 ) ) ELSE 45 + + CASE - MIN( + 82 ) WHEN - - 26 THEN - 61 * - - 62 END END, 38 ) * 99 * - - 85 + + 21 + + MIN( ALL - 29 ) / + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT - NULLIF ( + CASE + 64 WHEN - 18 THEN + - 39 + - - COALESCE ( - 47, 60 + 89, 44 * + + MIN ( DISTINCT 88 ), - ( - 69 ) ) ELSE 45 + + CASE - MIN ( + 82 ) WHEN - - 26 THEN - 61 * - - 62 END END, 38 ) * 99 * - - 85 + + 21 + + MIN ( ALL - 29 ) / + + 62
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-836
SELECT 99, COUNT( * ) col2
----
99
1

skipif mysql # not compatible
query II rowsort label-836
SELECT 99, COUNT ( * ) col2
----
99
1

query II rowsort
SELECT 4, + 42 AS col1
----
4
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-838
SELECT 3 DIV + 28 * + 40 * + 67 DIV + COALESCE ( COUNT( * ), 69 DIV - 10 * + 60 + - 47 + - COUNT( * ) * 80 )
----
0

skipif mysql # not compatible
query I rowsort label-838
SELECT 3 / + 28 * + 40 * + 67 / + COALESCE ( COUNT ( * ), 69 / - 10 * + 60 + - 47 + - COUNT ( * ) * 80 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-839
SELECT DISTINCT - COUNT( + 4 ) DIV 30, - 98 * - ( + 98 ) - - COUNT( * ) - 4 AS col2
----
0
9601

skipif mysql # not compatible
query II rowsort label-839
SELECT DISTINCT - COUNT ( + 4 ) / 30, - 98 * - ( + 98 ) - - COUNT ( * ) - 4 AS col2
----
0
9601

query I rowsort
SELECT ALL 56 * 50
----
2800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-841
SELECT DISTINCT + CASE + CASE + ( + + MAX( ALL - + 31 ) ) WHEN ( + - 62 ) THEN - 35 * - 70 + + 6 * MAX( DISTINCT - 60 ) * - + COALESCE ( - - MAX( DISTINCT - CAST( NULL AS SIGNED ) ), + - CAST( NULL AS SIGNED ) ) + 85 + - + 31 ELSE NULL END WHEN - 30 THEN NULL WHEN + SUM( - 93 ) * - - 31 THEN - 18 / 92 + 72 + + 74 * - MIN( ALL ( - 15 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT + CASE + CASE + ( + + MAX ( ALL - + 31 ) ) WHEN ( + - 62 ) THEN - 35 * - 70 + + 6 * MAX ( DISTINCT - 60 ) * - + COALESCE ( - - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ), + - CAST ( NULL AS INTEGER ) ) + 85 + - + 31 ELSE NULL END WHEN - 30 THEN NULL WHEN + SUM ( - 93 ) * - - 31 THEN - 18 / 92 + 72 + + 74 * - MIN ( ALL ( - 15 ) ) END
----
NULL

query I rowsort
SELECT ALL + + 18 * - 72 AS col0
----
-1296

query I rowsort
SELECT - ( + 24 ) col2
----
-24

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

onlyif mysql # aggregate syntax: 
query II rowsort label-845
SELECT DISTINCT + COUNT( * ), - COUNT( * ) + + + ( - 39 ) + 75 AS col0
----
1
35

skipif mysql # not compatible
query II rowsort label-845
SELECT DISTINCT + COUNT ( * ), - COUNT ( * ) + + + ( - 39 ) + 75 AS col0
----
1
35

query I rowsort
SELECT ALL 85 + 14 AS col2
----
99

query I rowsort
SELECT - + CASE + 72 WHEN + 22 THEN + 49 + 92 END
----
NULL

query I rowsort
SELECT ALL 37 + - 0 + + - 3
----
34

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-850
SELECT 81 + - 16 DIV - 55 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-850
SELECT 81 + - 16 / - 55 AS col2
----
81

query I rowsort
SELECT ALL 1 + 77 * - + 30 AS col1
----
-2309

query I rowsort
SELECT DISTINCT 24 + - - 94 * + + 59 AS col1
----
5570

query I rowsort
SELECT ALL 95 * - 21
----
-1995

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-855
SELECT - COUNT( * ) * + 97 DIV 83 * - 63 + - ( + SUM( + 0 ) ) + + + 6 + - - 2 DIV 51 col2
----
69

skipif mysql # not compatible
query I rowsort label-855
SELECT - COUNT ( * ) * + 97 / 83 * - 63 + - ( + SUM ( + 0 ) ) + + + 6 + - - 2 / 51 col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-856
SELECT ALL + SUM( + CAST( - 68 AS SIGNED ) )
----
-68

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL + SUM ( + CAST ( - 68 AS INTEGER ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT CASE - 6 WHEN 89 * + SUM( + COALESCE ( + 99, - + 24 ) ) * + MAX( - 18 ) - - 17 THEN NULLIF ( + 2, - + 35 - - + 15 + - 15 - - 32 / 51 - - + ( - - 94 ) ) ELSE + 50 * - 32 * + 44 END col2
----
-70400

skipif mysql # not compatible
query I rowsort label-857
SELECT CASE - 6 WHEN 89 * + SUM ( + COALESCE ( + 99, - + 24 ) ) * + MAX ( - 18 ) - - 17 THEN NULLIF ( + 2, - + 35 - - + 15 + - 15 - - 32 / 51 - - + ( - - 94 ) ) ELSE + 50 * - 32 * + 44 END col2
----
-70400

query I rowsort
SELECT CASE + 79 WHEN - ( - CASE + 25 WHEN + - 52 THEN - 13 ELSE 91 END ) * - 86 THEN + 6 * + 57 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-859
SELECT ALL + CAST( NULL AS SIGNED ) * 81 / + 53 - - + 47 - + 67 + - + COUNT( * ) * 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL + CAST ( NULL AS INTEGER ) * 81 / + 53 - - + 47 - + 67 + - + COUNT ( * ) * 51 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ALL MIN( ALL - - 6 ) * - + ( - 11 ) * + 76 AS col1
----
5016

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL MIN ( ALL - - 6 ) * - + ( - 11 ) * + 76 AS col1
----
5016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT - 62 * 6 - + - CAST( - ( - 31 ) AS SIGNED ) - + + 31 * + + 46 AS col2
----
-1767

skipif mysql # not compatible
query I rowsort label-862
SELECT - 62 * 6 - + - CAST ( - ( - 31 ) AS INTEGER ) - + + 31 * + + 46 AS col2
----
-1767

query I rowsort
SELECT DISTINCT - + 28 * + ( 62 ) - NULLIF ( 80, + 28 )
----
-1816

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-865
SELECT 86 * + - 92 + 30 * + - 37 * + + CASE - + 82 WHEN COALESCE ( + MAX( DISTINCT 75 ), - 49 ) THEN - 93 ELSE NULL END * - CAST( NULL AS SIGNED ) + - 3 * 61 + - + 13 - COALESCE ( 92, - NULLIF ( 56, - COALESCE ( + - 56, - CAST( + ( - 82 ) AS SIGNED ) * + 24 ) * + + 8 + - 43 * + 20 ) ) + MIN( 0 ) - + 38 + + 48 / + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-865
SELECT 86 * + - 92 + 30 * + - 37 * + + CASE - + 82 WHEN COALESCE ( + MAX ( DISTINCT 75 ), - 49 ) THEN - 93 ELSE NULL END * - CAST ( NULL AS INTEGER ) + - 3 * 61 + - + 13 - COALESCE ( 92, - NULLIF ( 56, - COALESCE ( + - 56, - CAST ( + ( - 82 ) AS INTEGER ) * + 24 ) * + + 8 + - 43 * + 20 ) ) + MIN ( 0 ) - + 38 + + 48 / + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT + + 27 * + 29 - + MIN( DISTINCT - 90 ) col0
----
873

skipif mysql # not compatible
query I rowsort label-866
SELECT + + 27 * + 29 - + MIN ( DISTINCT - 90 ) col0
----
873

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-867
SELECT - 3 + + + NULLIF ( - 39, 29 ) * - - 22 AS col1, + COUNT( * ) DIV - + 49 AS col0
----
-861
0

skipif mysql # not compatible
query II rowsort label-867
SELECT - 3 + + + NULLIF ( - 39, 29 ) * - - 22 AS col1, + COUNT ( * ) / - + 49 AS col0
----
-861
0

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

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

query I rowsort
SELECT ALL - 81 + - 48
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT - 94 * + 78 + - - 83 - + COUNT( DISTINCT - 46 ) * + + COUNT( * ) - - - 34
----
-7284

skipif mysql # not compatible
query I rowsort label-870
SELECT - 94 * + 78 + - - 83 - + COUNT ( DISTINCT - 46 ) * + + COUNT ( * ) - - - 34
----
-7284

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT ALL + + 23 + + 7 + COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL + + 23 + + 7 + COUNT ( * ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-872
SELECT DISTINCT - 48 + - CAST( + - 68 AS SIGNED ) * ( - 94 ) * - 59 AS col0
----
377080

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT - 48 + - CAST ( + - 68 AS INTEGER ) * ( - 94 ) * - 59 AS col0
----
377080

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT - - COUNT( DISTINCT - + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-873
SELECT - - COUNT ( DISTINCT - + 19 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT + + 21 + + MAX( + + 14 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-874
SELECT + + 21 + + MAX ( + + 14 ) AS col2
----
35

query I rowsort
SELECT ALL - + 11 + - 40
----
-51

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

skipif mysql # not compatible
query I rowsort label-876
SELECT DISTINCT + + 48 * - COUNT ( * ) * 11 AS col0
----
-528

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

skipif mysql # not compatible
query I rowsort label-877
SELECT - ( COUNT ( * ) ) * + 11 / 18
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-878
SELECT ALL 90 + - - 15 + - - COUNT( * ) + - 5 DIV COALESCE ( + + 2, - - 3, + + 85, 72 - 37 + + - 42 ) + - + 94 - - + 29
----
39

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL 90 + - - 15 + - - COUNT ( * ) + - 5 / COALESCE ( + + 2, - - 3, + + 85, 72 - 37 + + - 42 ) + - + 94 - - + 29
----
39

query I rowsort
SELECT ALL + 10 + + 40
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT DISTINCT - 56 * - + COUNT( * ) * - - 76 AS col1
----
4256

skipif mysql # not compatible
query I rowsort label-880
SELECT DISTINCT - 56 * - + COUNT ( * ) * - - 76 AS col1
----
4256

query I rowsort
SELECT ALL 83 + - + 52 + - COALESCE ( 50, + 72 ) AS col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-882
SELECT - CASE - 53 WHEN - 93 THEN + - 92 WHEN - COUNT( * ) + + + NULLIF ( - - 6, + - 29 + + - 68 + - + 6 ) THEN NULL ELSE 50 DIV + 20 END
----
-2

skipif mysql # not compatible
query I rowsort label-882
SELECT - CASE - 53 WHEN - 93 THEN + - 92 WHEN - COUNT ( * ) + + + NULLIF ( - - 6, + - 29 + + - 68 + - + 6 ) THEN NULL ELSE 50 / + 20 END
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-883
SELECT - CASE - ( SUM( DISTINCT - 1 ) ) WHEN 58 + + AVG ( - - CAST( NULL AS DECIMAL ) ) + - 74 * - - 33 * COUNT( * ) THEN + 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-883
SELECT - CASE - ( SUM ( DISTINCT - 1 ) ) WHEN 58 + + AVG ( - - CAST ( NULL AS REAL ) ) + - 74 * - - 33 * COUNT ( * ) THEN + 98 END
----
NULL

query I rowsort
SELECT - 53 * + 74
----
-3922

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-885
SELECT ALL - COUNT( * ) / + 36 * - - CAST( - - 93 AS SIGNED ) - - COUNT( * ) - - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL - COUNT ( * ) / + 36 * - - CAST ( - - 93 AS INTEGER ) - - COUNT ( * ) - - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-886
SELECT - 38 DIV - + 65 + + 57 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-886
SELECT - 38 / - + 65 + + 57 AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-887
SELECT + 6 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-887
SELECT + 6 / - 82
----
0

query I rowsort
SELECT + 12 * - 49
----
-588

query I rowsort
SELECT ALL 17 * - 6 * + 98
----
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT + 23 + + 96 + - SUM( ALL 61 ) * - 60 - - 39
----
3818

skipif mysql # not compatible
query I rowsort label-890
SELECT + 23 + + 96 + - SUM ( ALL 61 ) * - 60 - - 39
----
3818

query I rowsort
SELECT ALL - 3 * - + 7
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-892
SELECT ALL + 56 DIV 58 - - 19 + - 90
----
-71

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL + 56 / 58 - - 19 + - 90
----
-71

query I rowsort
SELECT DISTINCT 46 * + - 14
----
-644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-894
SELECT ALL + 17 / 92 * 94 * - 4 - - 36 + - CAST( NULL AS SIGNED ) * + + COUNT( * ) * + 72 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL + 17 / 92 * 94 * - 4 - - 36 + - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * + 72 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-895
SELECT ALL + COALESCE ( 75, 76 * - MIN( - 81 * + 1 ), + CASE 86 WHEN AVG ( ALL - 77 ) THEN NULL ELSE 66 END * CASE - COUNT( * ) WHEN 14 THEN NULL ELSE ( COUNT( * ) ) * CAST( COUNT( * ) + 87 AS SIGNED ) + 76 DIV CAST( - 42 * 18 AS SIGNED ) END + 94, 44 + - 71 DIV 55 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL + COALESCE ( 75, 76 * - MIN ( - 81 * + 1 ), + CASE 86 WHEN AVG ( ALL - 77 ) THEN NULL ELSE 66 END * CASE - COUNT ( * ) WHEN 14 THEN NULL ELSE ( COUNT ( * ) ) * CAST ( COUNT ( * ) + 87 AS INTEGER ) + 76 / CAST ( - 42 * 18 AS INTEGER ) END + 94, 44 + - 71 / 55 ) AS col1
----
75

query I rowsort
SELECT - 99 * 1 + + 46
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT + COUNT( * ) + + 47 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-897
SELECT + COUNT ( * ) + + 47 AS col0
----
48

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

query I rowsort
SELECT + 16 * 86 AS col0
----
1376

query I rowsort
SELECT - 22 * 29
----
-638

query I rowsort
SELECT - 39 + 35
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT ALL - 97 * COUNT( * ) + 52
----
-45

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL - 97 * COUNT ( * ) + 52
----
-45

query I rowsort
SELECT + 86 * 9
----
774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-904
SELECT DISTINCT 9 * + ( NULLIF ( - CASE - 33 WHEN - 71 THEN 36 WHEN + 11 THEN + 10 ELSE NULLIF ( 85, 69 ) + - 39 * - 72 END, - 9 * CAST( NULL AS SIGNED ) + + 78 ) )
----
-26037

skipif mysql # not compatible
query I rowsort label-904
SELECT DISTINCT 9 * + ( NULLIF ( - CASE - 33 WHEN - 71 THEN 36 WHEN + 11 THEN + 10 ELSE NULLIF ( 85, 69 ) + - 39 * - 72 END, - 9 * CAST ( NULL AS INTEGER ) + + 78 ) )
----
-26037

query I rowsort
SELECT ALL 67 * + 71 + 1
----
4758

query I rowsort
SELECT - 56 * + 37
----
-2072

query I rowsort
SELECT ALL 10 * + 59 + 59 AS col2
----
649

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

query I rowsort
SELECT - 25 * 55 AS col1
----
-1375

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-910
SELECT ALL CAST( CASE 79 WHEN - 61 THEN + 36 END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL CAST ( CASE 79 WHEN - 61 THEN + 36 END AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - 24 * 75
----
-1800

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

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT ALL - ( ( 4 ) ) * COUNT( 10 ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL - ( ( 4 ) ) * COUNT ( 10 ) col0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-914
SELECT 80 + - CAST( - 69 + 42 AS SIGNED ) AS col1
----
107

skipif mysql # not compatible
query I rowsort label-914
SELECT 80 + - CAST ( - 69 + 42 AS INTEGER ) AS col1
----
107

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

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

query I rowsort
SELECT 96 + 20 col1
----
116

query I rowsort
SELECT 32 * 11
----
352

query I rowsort
SELECT ALL - 7 * - 51 AS col2
----
357

query I rowsort
SELECT 6 + 33 AS col1
----
39

query I rowsort
SELECT ALL - COALESCE ( 9, NULLIF ( + 37, - 59 ) + 66 ) * - ( - 22 )
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT 22 * COUNT( * ) col2
----
22

skipif mysql # not compatible
query I rowsort label-921
SELECT 22 * COUNT ( * ) col2
----
22

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-923
SELECT DISTINCT - CAST( CAST( + 65 AS SIGNED ) AS SIGNED ) col2
----
-65

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT - CAST ( CAST ( + 65 AS INTEGER ) AS INTEGER ) col2
----
-65

query I rowsort
SELECT 12 * - 62
----
-744

query I rowsort
SELECT 47 * - 6 AS col0
----
-282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-926
SELECT ALL - ( MIN( DISTINCT - 34 ) ) DIV - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL - ( MIN ( DISTINCT - 34 ) ) / - 76 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-927
SELECT - 90 DIV + 22 - 34
----
-38

skipif mysql # not compatible
query I rowsort label-927
SELECT - 90 / + 22 - 34
----
-38

query I rowsort
SELECT + 28 * + 86 AS col0
----
2408

query I rowsort
SELECT DISTINCT 7 + - 77 AS col1
----
-70

query I rowsort
SELECT ALL + 84 + 84 * 61
----
5208

query I rowsort
SELECT ALL + 14 + + CASE - 66 WHEN + 79 / - 57 THEN 35 * + 75 END
----
NULL

query I rowsort
SELECT + 2 * - 81 - 24
----
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-933
SELECT DISTINCT COALESCE ( - 95, - 5 ) DIV - ( - 36 * - 25 )
----
0

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT COALESCE ( - 95, - 5 ) / - ( - 36 * - 25 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-934
SELECT ALL CAST( 53 AS SIGNED ) + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL CAST ( 53 AS INTEGER ) + COUNT ( * )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-935
SELECT - + 32 * + COALESCE ( 15 DIV 93, 40, 64 ) + + 20
----
20

skipif mysql # not compatible
query I rowsort label-935
SELECT - + 32 * + COALESCE ( 15 / 93, 40, 64 ) + + 20
----
20

query I rowsort
SELECT ALL 91 + 22 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT DISTINCT - - COUNT( DISTINCT 43 )
----
1

skipif mysql # not compatible
query I rowsort label-937
SELECT DISTINCT - - COUNT ( DISTINCT 43 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-938
SELECT COUNT( ALL 17 ) + 47 * + CASE + 34 WHEN 51 * + 70 THEN ( CASE - 87 WHEN + 43 + ( - 97 ) THEN 77 DIV + 83 END ) WHEN 6 THEN NULL ELSE - 88 END
----
-4135

skipif mysql # not compatible
query I rowsort label-938
SELECT COUNT ( ALL 17 ) + 47 * + CASE + 34 WHEN 51 * + 70 THEN ( CASE - 87 WHEN + 43 + ( - 97 ) THEN 77 / + 83 END ) WHEN 6 THEN NULL ELSE - 88 END
----
-4135

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT - COALESCE ( - 21, + NULLIF ( 36, + 17 * 22 ), + 60 - 9 * COUNT( * ) ) * - NULLIF ( 99, 56 * COUNT( * ) ) - + 76
----
-2155

skipif mysql # not compatible
query I rowsort label-939
SELECT - COALESCE ( - 21, + NULLIF ( 36, + 17 * 22 ), + 60 - 9 * COUNT ( * ) ) * - NULLIF ( 99, 56 * COUNT ( * ) ) - + 76
----
-2155

query I rowsort
SELECT + 1 + 8
----
9

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

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL - 7 + - COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT - 10 * 88 AS col2
----
-880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-943
SELECT + - 31 * CAST( - 7 * 44 + - 55 * - ( 93 ) AS SIGNED ) + - 68 * 63 AS col2
----
-153301

skipif mysql # not compatible
query I rowsort label-943
SELECT + - 31 * CAST ( - 7 * 44 + - 55 * - ( 93 ) AS INTEGER ) + - 68 * 63 AS col2
----
-153301

query I rowsort
SELECT DISTINCT - 92 * + 95 * 29
----
-253460

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT DISTINCT COUNT( * ) - - 48 * 76
----
3649

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT COUNT ( * ) - - 48 * 76
----
3649

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT ALL 72 * SUM( DISTINCT 61 )
----
4392

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL 72 * SUM ( DISTINCT 61 )
----
4392

query I rowsort
SELECT 16 + + 97 + + 95 * 47 col2
----
4578

query I rowsort
SELECT ALL 48 - - + 74 AS col1
----
122

query I rowsort
SELECT 25 + - 39 AS col2
----
-14

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

skipif mysql # not compatible
query I rowsort label-950
SELECT 32 * COUNT ( * ) * COUNT ( * )
----
32

query I rowsort
SELECT 41 + - + 11
----
30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-952
SELECT ALL + CAST( NULL AS DECIMAL ) / NULLIF ( 68, + 15 * - COUNT( * ) + AVG ( DISTINCT 62 + 94 ) ) * 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL + CAST ( NULL AS REAL ) / NULLIF ( 68, + 15 * - COUNT ( * ) + AVG ( DISTINCT 62 + 94 ) ) * 70 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-953
SELECT 22 DIV - 60 * - 13
----
0

skipif mysql # not compatible
query I rowsort label-953
SELECT 22 / - 60 * - 13
----
0

query I rowsort
SELECT 31 * - 45 * 18 AS col1
----
-25110

query I rowsort
SELECT ALL + NULLIF ( - 75, 33 * - ( - 90 * + 44 ) ) * - 9 AS col0
----
675

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT 47 * + - 71 * + COUNT( * )
----
-3337

skipif mysql # not compatible
query I rowsort label-957
SELECT 47 * + - 71 * + COUNT ( * )
----
-3337

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT ALL - MAX( ALL NULLIF ( + ( + 36 ), - 27 ) ) * + 64 AS col2
----
-2304

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL - MAX ( ALL NULLIF ( + ( + 36 ), - 27 ) ) * + 64 AS col2
----
-2304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-959
SELECT ALL 71 * - + 53 * NULLIF ( + 97, - SUM( DISTINCT 90 ) * - 76 ) + + CAST( NULL AS SIGNED ) * 78 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL 71 * - + 53 * NULLIF ( + 97, - SUM ( DISTINCT 90 ) * - 76 ) + + CAST ( NULL AS INTEGER ) * 78 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-960
SELECT - - ( + 60 ) DIV + 53 + 36 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-960
SELECT - - ( + 60 ) / + 53 + 36 AS col2
----
37

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

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

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT + 0 * - - COUNT ( - 24 ) + - ( 41 ) AS col1
----
-41

query I rowsort
SELECT DISTINCT + 2 * - 9 + NULLIF ( 51, - 4 * 36 ) * - 51
----
-2619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-964
SELECT DISTINCT + 14 * + COUNT( * ) * 24 + CAST( NULL AS SIGNED ) / 75 + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-964
SELECT DISTINCT + 14 * + COUNT ( * ) * 24 + CAST ( NULL AS INTEGER ) / 75 + - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT ALL + MIN( ALL - + 84 ) * + 30 + ( - 75 - 66 ) * - 24
----
864

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL + MIN ( ALL - + 84 ) * + 30 + ( - 75 - 66 ) * - 24
----
864

onlyif mysql # DIV for integer division: 
query I rowsort label-966
SELECT + 88 DIV ( - 50 ) DIV 84 + - 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-966
SELECT + 88 / ( - 50 ) / 84 + - 3 AS col1
----
-3

query I rowsort
SELECT + 19 + 70
----
89

query I rowsort
SELECT ALL + 56 * + 73 * 74 + ( - 75 ) + 1 col1
----
302438

query I rowsort
SELECT + 59 * + + 92 + + 99 AS col0
----
5527

query I rowsort
SELECT ( + 49 ) * 40 col2
----
1960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-971
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN 22 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-971
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN 22 THEN CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT DISTINCT 7 - + COUNT( + 89 ) - ( + 12 + + 96 ) AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT 7 - + COUNT ( + 89 ) - ( + 12 + + 96 ) AS col1
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-973
SELECT + - 58 * 14 + ( - 17 ) DIV + ( 50 + + 21 * - 63 )
----
-812

skipif mysql # not compatible
query I rowsort label-973
SELECT + - 58 * 14 + ( - 17 ) / + ( 50 + + 21 * - 63 )
----
-812

query I rowsort
SELECT ALL ( + 18 ) - + 15 AS col0
----
3

query I rowsort
SELECT + 95 * + 81 AS col0
----
7695

query I rowsort
SELECT DISTINCT + + 75 * - + 33
----
-2475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-977
SELECT DISTINCT + 9 - CASE - 25 WHEN - 9 + - CAST( NULL AS SIGNED ) * + 17 THEN + 42 END + 31 * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-977
SELECT DISTINCT + 9 - CASE - 25 WHEN - 9 + - CAST ( NULL AS INTEGER ) * + 17 THEN + 42 END + 31 * 2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT ALL ( 31 ) DIV + 27
----
1

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL ( 31 ) / + 27
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-979
SELECT ALL + 42 AS col0, + ( - - CASE + 52 WHEN + 98 + + 88 THEN - 37 WHEN 18 * NULLIF ( - 56 * - 23, + ( - 11 ) / - 28 ) THEN NULL END ) * ( CAST( 55 AS SIGNED ) + - 48 * + 2 ) AS col1
----
42
NULL

skipif mysql # not compatible
query II rowsort label-979
SELECT ALL + 42 AS col0, + ( - - CASE + 52 WHEN + 98 + + 88 THEN - 37 WHEN 18 * NULLIF ( - 56 * - 23, + ( - 11 ) / - 28 ) THEN NULL END ) * ( CAST ( 55 AS INTEGER ) + - 48 * + 2 ) AS col1
----
42
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-980
SELECT - CAST( + - 95 AS SIGNED ) * + 57 AS col0
----
5415

skipif mysql # not compatible
query I rowsort label-980
SELECT - CAST ( + - 95 AS INTEGER ) * + 57 AS col0
----
5415

query I rowsort
SELECT + 60 * ( 76 ) * - 3
----
-13680

query I rowsort
SELECT + 95 * - 12 * 32 * 26
----
-948480

query II rowsort
SELECT ALL 57 AS col2, 72
----
57
72

query I rowsort
SELECT + 7 - 48 * - 88
----
4231

query I rowsort
SELECT + 24 * 62
----
1488

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT - NULLIF ( COUNT( * ), 85 * + 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-986
SELECT - NULLIF ( COUNT ( * ), 85 * + 14 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-987
SELECT ALL 17 AS col1, + COUNT( * ) * + + 29
----
17
29

skipif mysql # not compatible
query II rowsort label-987
SELECT ALL 17 AS col1, + COUNT ( * ) * + + 29
----
17
29

onlyif mysql # aggregate syntax: 
query II rowsort label-988
SELECT ALL 68 col0, - 72 + + 74 + 30 * + ( SUM( ALL + 7 ) ) * ( - 52 ) AS col0
----
68
-10918

skipif mysql # not compatible
query II rowsort label-988
SELECT ALL 68 col0, - 72 + + 74 + 30 * + ( SUM ( ALL + 7 ) ) * ( - 52 ) AS col0
----
68
-10918

onlyif mysql # aggregate syntax: 
query II rowsort label-989
SELECT DISTINCT 20 AS col2, 27 * + MIN( 30 ) + ( COALESCE ( 31, + COUNT( * ), 11 + 54 ) ) * 33 AS col2
----
20
1833

skipif mysql # not compatible
query II rowsort label-989
SELECT DISTINCT 20 AS col2, 27 * + MIN ( 30 ) + ( COALESCE ( 31, + COUNT ( * ), 11 + 54 ) ) * 33 AS col2
----
20
1833

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT ALL + 44 * - - ( + MAX( 76 ) )
----
3344

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL + 44 * - - ( + MAX ( 76 ) )
----
3344

query I rowsort
SELECT + 53 - + 72 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-992
SELECT - COUNT( * ), + CASE COALESCE ( 99, 55 / + 99 ) WHEN + 44 * + ( 68 ) THEN MIN( 75 ) WHEN + COALESCE ( - ( 74 ), 90, - 59 / 72 - - 19 ) - 23 THEN + 90 END - 66 / - MIN( DISTINCT + CAST( + NULLIF ( - 5, - 77 * 32 ) AS SIGNED ) ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-992
SELECT - COUNT ( * ), + CASE COALESCE ( 99, 55 / + 99 ) WHEN + 44 * + ( 68 ) THEN MIN ( 75 ) WHEN + COALESCE ( - ( 74 ), 90, - 59 / 72 - - 19 ) - 23 THEN + 90 END - 66 / - MIN ( DISTINCT + CAST ( + NULLIF ( - 5, - 77 * 32 ) AS INTEGER ) ) AS col1
----
-1
NULL

query II rowsort
SELECT 96, 74 + + 65 - - 73 AS col1
----
96
212

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT - COALESCE ( 69, - + COALESCE ( 41, + 18, 14 ) ) DIV + 64
----
-1

skipif mysql # not compatible
query I rowsort label-995
SELECT - COALESCE ( 69, - + COALESCE ( 41, + 18, 14 ) ) / + 64
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT ALL COUNT( * ) + 64 * - 80 + - 31 * 69
----
-7258

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL COUNT ( * ) + 64 * - 80 + - 31 * 69
----
-7258

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT + COUNT( ALL - 45 ) + 25 + - 15 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-997
SELECT + COUNT ( ALL - 45 ) + 25 + - 15 AS col0
----
11

query I rowsort
SELECT ALL 10 + ( - 29 ) AS col1
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-999
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / - 4 * - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT + CAST ( NULL AS REAL ) / - 4 * - 40 AS col2
----
NULL

query I rowsort
SELECT ALL - - 44 * - NULLIF ( + + 17, 33 + - 19 )
----
-748

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1001
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) * 11 * ( - 93 * COUNT( * ) ) + - 74 * ( + NULLIF ( - 90, + ( 75 ) * + 33 ) ) + - 37
----
5600

skipif mysql # not compatible
query I rowsort label-1001
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) * 11 * ( - 93 * COUNT ( * ) ) + - 74 * ( + NULLIF ( - 90, + ( 75 ) * + 33 ) ) + - 37
----
5600

onlyif mysql # aggregate syntax: 
query II rowsort label-1002
SELECT ALL + + 51, COUNT( * ) * - 19 * + 93 AS col1
----
51
-1767

skipif mysql # not compatible
query II rowsort label-1002
SELECT ALL + + 51, COUNT ( * ) * - 19 * + 93 AS col1
----
51
-1767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1003
SELECT COUNT( * ) DIV 92 - 44 col2
----
-44

skipif mysql # not compatible
query I rowsort label-1003
SELECT COUNT ( * ) / 92 - 44 col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT - - COUNT( - CASE 55 WHEN - 78 THEN 38 ELSE 41 END ) * - 42
----
-42

skipif mysql # not compatible
query I rowsort label-1004
SELECT - - COUNT ( - CASE 55 WHEN - 78 THEN 38 ELSE 41 END ) * - 42
----
-42

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

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

query I rowsort
SELECT - NULLIF ( - - 7, 73 ) * 31 AS col1
----
-217

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT DISTINCT - COUNT( * ) * 47
----
-47

skipif mysql # not compatible
query I rowsort label-1008
SELECT DISTINCT - COUNT ( * ) * 47
----
-47

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

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

query I rowsort
SELECT - - 10 - 39
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1012
SELECT ALL 60 * - + 80 - COALESCE ( + 53, COUNT( DISTINCT 71 ), - 1 + + 19 DIV - 46 ) AS col1
----
-4853

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL 60 * - + 80 - COALESCE ( + 53, COUNT ( DISTINCT 71 ), - 1 + + 19 / - 46 ) AS col1
----
-4853

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

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

query I rowsort
SELECT - + 36 + + 29
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1015
SELECT + 4 * 94 + COUNT( * ) + - - ( - 87 ) + 62 DIV - 84
----
290

skipif mysql # not compatible
query I rowsort label-1015
SELECT + 4 * 94 + COUNT ( * ) + - - ( - 87 ) + 62 / - 84
----
290

query I rowsort
SELECT + NULLIF ( - 45, - 44 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT ALL + MAX( + + 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL + MAX ( + + 89 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT + NULLIF ( - ( COUNT( DISTINCT + 42 ) ), 18 + + 65 * + 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-1018
SELECT + NULLIF ( - ( COUNT ( DISTINCT + 42 ) ), 18 + + 65 * + 75 )
----
-1

query I rowsort
SELECT + 95 * + 15 * - - 46 * ( - 76 ) AS col1
----
-4981800

onlyif mysql # DIV for integer division: 
query I rowsort label-1020
SELECT - 59 DIV - 3
----
19

skipif mysql # not compatible
query I rowsort label-1020
SELECT - 59 / - 3
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1021
SELECT DISTINCT + 3 * CASE + 15 WHEN MAX( ALL + CAST( NULL AS SIGNED ) ) - - 39 * + CASE NULLIF ( + CAST( NULL AS SIGNED ), + 52 + + 42 / - 85 ) * + 72 WHEN + 73 * - COUNT( * ) THEN 42 WHEN 5 * 13 + CASE ( CAST( COUNT( DISTINCT 32 ) AS SIGNED ) ) WHEN - ( - 35 ) THEN + ( + COUNT( * ) ) + + MAX( - 64 ) END THEN NULL ELSE NULL END THEN NULL WHEN - 86 * - CASE - COALESCE ( COALESCE ( 83, 11 ), - CASE 18 WHEN - 87 * + 74 THEN + COUNT( * ) / 29 ELSE CAST( 5 AS SIGNED ) + + ( 48 + 29 ) END ) WHEN + 22 THEN 91 ELSE NULL END THEN 46 * 91 WHEN COUNT( * ) / ( 44 * 72 ) THEN - COUNT( * ) END * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT + 3 * CASE + 15 WHEN MAX ( ALL + CAST ( NULL AS INTEGER ) ) - - 39 * + CASE NULLIF ( + CAST ( NULL AS INTEGER ), + 52 + + 42 / - 85 ) * + 72 WHEN + 73 * - COUNT ( * ) THEN 42 WHEN 5 * 13 + CASE ( CAST ( COUNT ( DISTINCT 32 ) AS INTEGER ) ) WHEN - ( - 35 ) THEN + ( + COUNT ( * ) ) + + MAX ( - 64 ) END THEN NULL ELSE NULL END THEN NULL WHEN - 86 * - CASE - COALESCE ( COALESCE ( 83, 11 ), - CASE 18 WHEN - 87 * + 74 THEN + COUNT ( * ) / 29 ELSE CAST ( 5 AS INTEGER ) + + ( 48 + 29 ) END ) WHEN + 22 THEN 91 ELSE NULL END THEN 46 * 91 WHEN COUNT ( * ) / ( 44 * 72 ) THEN - COUNT ( * ) END * + 91
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + + 97, + 80 * + 97 * 21 - + 26 ) * - 88
----
8536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1023
SELECT ALL 59 * - - ( + + 40 ) + - 41 - COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL 59 * - - ( + + 40 ) + - 41 - COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 53 + 11 AS col1, 90 * 98 AS col1
----
64
8820

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

skipif mysql # not compatible
query I rowsort label-1025
SELECT + AVG ( 43 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( - NULLIF ( - 52, 26 ) ) + + 97 AS col0
----
149

query I rowsort
SELECT ALL 52 + - 30
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1028
SELECT ALL CAST( NULL AS DECIMAL ) + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL CAST ( NULL AS REAL ) + - 51
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1029
SELECT + COUNT ( * ) + + 83 AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1030
SELECT DISTINCT 46 + + CAST( - CASE + - ( + 64 ) WHEN + ( NULLIF ( - 49, + CAST( NULL AS SIGNED ) * 72 ) ) * 89 + 69 THEN 20 WHEN - 8 THEN NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT 46 + + CAST ( - CASE + - ( + 64 ) WHEN + ( NULLIF ( - 49, + CAST ( NULL AS INTEGER ) * 72 ) ) * 89 + 69 THEN 20 WHEN - 8 THEN NULL END AS REAL )
----
NULL

query I rowsort
SELECT ALL - 13 + + 20 - 37
----
-30

query I rowsort
SELECT DISTINCT 17 + - NULLIF ( 91, + - 98 * 56 ) * - 12
----
1109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1033
SELECT + + CASE - - COUNT( + - 58 ) WHEN 3 + 93 THEN CASE NULLIF ( COUNT( * ), + MAX( DISTINCT - 80 ) ) WHEN 83 THEN 22 WHEN - COUNT( DISTINCT - 81 ) + + COALESCE ( COUNT( * ), - CASE - 8 WHEN COUNT( * ) THEN + 81 * 68 ELSE NULL END * - COUNT( * ) ) DIV - 8 THEN - ( + 61 ) + MIN( DISTINCT - 75 ) * + 31 END ELSE 56 DIV COUNT( * ) END * - 36
----
-2016

skipif mysql # not compatible
query I rowsort label-1033
SELECT + + CASE - - COUNT ( + - 58 ) WHEN 3 + 93 THEN CASE NULLIF ( COUNT ( * ), + MAX ( DISTINCT - 80 ) ) WHEN 83 THEN 22 WHEN - COUNT ( DISTINCT - 81 ) + + COALESCE ( COUNT ( * ), - CASE - 8 WHEN COUNT ( * ) THEN + 81 * 68 ELSE NULL END * - COUNT ( * ) ) / - 8 THEN - ( + 61 ) + MIN ( DISTINCT - 75 ) * + 31 END ELSE 56 / COUNT ( * ) END * - 36
----
-2016

query I rowsort
SELECT ALL + 52 * - 14 AS col1
----
-728

query II rowsort
SELECT + 74 + + 36, 37 + + 28 col0
----
110
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ALL 44 - + 85 + + - SUM( + 35 )
----
-76

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL 44 - + 85 + + - SUM ( + 35 )
----
-76

query I rowsort
SELECT + 27 + + - 61 AS col1
----
-34

query I rowsort
SELECT 75 * NULLIF ( - + ( - + 47 ), 6 / - 39 ) + + 5
----
3530

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT DISTINCT - ( - ( + ( + 72 ) ) ) - + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT - ( - ( + ( + 72 ) ) ) - + COUNT ( * )
----
71

query II rowsort
SELECT DISTINCT - ( 12 ) AS col1, - 59
----
-12
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT 78 * - - MIN( - 80 ) AS col2
----
-6240

skipif mysql # not compatible
query I rowsort label-1041
SELECT 78 * - - MIN ( - 80 ) AS col2
----
-6240

query I rowsort
SELECT ALL - 20 * - 94 + + 95 * + 49 AS col1
----
6535

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT COALESCE ( - + COUNT( * ), - - 47 ) + - 32 - 32
----
-65

skipif mysql # not compatible
query I rowsort label-1043
SELECT COALESCE ( - + COUNT ( * ), - - 47 ) + - 32 - 32
----
-65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT - + 90 * - 57 + + COUNT( * ) + + 25
----
5156

skipif mysql # not compatible
query I rowsort label-1045
SELECT - + 90 * - 57 + + COUNT ( * ) + + 25
----
5156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1046
SELECT - 41 DIV + 57 + + COUNT( * ) + 84 + COALESCE ( 36, + 43 + 29 ) * - COUNT( * ) * + 7
----
-167

skipif mysql # not compatible
query I rowsort label-1046
SELECT - 41 / + 57 + + COUNT ( * ) + 84 + COALESCE ( 36, + 43 + 29 ) * - COUNT ( * ) * + 7
----
-167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1047
SELECT ALL 73 * - - 20 * + 34 * - CAST( 63 AS SIGNED ) AS col1
----
-3127320

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL 73 * - - 20 * + 34 * - CAST ( 63 AS INTEGER ) AS col1
----
-3127320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1048
SELECT ALL + CAST( - 31 AS SIGNED ) * SUM( DISTINCT 76 ) AS col0
----
-2356

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL + CAST ( - 31 AS INTEGER ) * SUM ( DISTINCT 76 ) AS col0
----
-2356

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

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

query I rowsort
SELECT DISTINCT - 44 + - ( + - 63 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT ALL + ( - MAX( - 24 ) ) + - 35
----
-11

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL + ( - MAX ( - 24 ) ) + - 35
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT ALL - COUNT( 29 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL - COUNT ( 29 ) AS col1
----
-1

query I rowsort
SELECT 41 * + + 88
----
3608

query I rowsort
SELECT DISTINCT - CASE + AVG ( DISTINCT - + 53 ) WHEN 61 * - ( ( - 84 ) ) * - 90 THEN NULL WHEN - 80 / 42 THEN + 88 WHEN + 58 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1055
SELECT 3 AS col1, 58 - + 61 DIV 6 + + 46 - 34 * 8
----
3
-178

skipif mysql # not compatible
query II rowsort label-1055
SELECT 3 AS col1, 58 - + 61 / 6 + + 46 - 34 * 8
----
3
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT ALL + AVG ( CASE 37 WHEN 34 + + + 24 + + 76 THEN NULL WHEN 81 / + 87 + 6 * - 55 THEN - 85 END ) + COUNT( * ) * COUNT( ALL ( + 44 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL + AVG ( CASE 37 WHEN 34 + + + 24 + + 76 THEN NULL WHEN 81 / + 87 + 6 * - 55 THEN - 85 END ) + COUNT ( * ) * COUNT ( ALL ( + 44 ) )
----
NULL

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

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

query I rowsort
SELECT 31 - - 32 AS col2
----
63

query I rowsort
SELECT DISTINCT - 99 * 71 AS col0
----
-7029

onlyif mysql # DIV for integer division: 
query I rowsort label-1060
SELECT 50 DIV + + 38
----
1

skipif mysql # not compatible
query I rowsort label-1060
SELECT 50 / + + 38
----
1

query I rowsort
SELECT ALL + 54 * + 8
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT DISTINCT - + 10 * COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT - + 10 * COUNT ( * )
----
-10

query I rowsort
SELECT 44 - - 8 + 99 * + 76 - - 13 col0
----
7589

query I rowsort
SELECT - ( - + 71 ) - + - 72 + - - 47
----
190

query II rowsort
SELECT - 0, + 54 AS col0
----
0
54

query I rowsort
SELECT 23 + 81 AS col2
----
104

query I rowsort
SELECT - ( + - 82 ) + + + 75 + - + 96
----
61

onlyif mysql # aggregate syntax: 
query III rowsort label-1068
SELECT DISTINCT 67 AS col1, 91 * - 1 AS col1, - COUNT( * ) * - 22 * - NULLIF ( 3, - AVG ( ALL COALESCE ( 62, 40 ) ) + 81 )
----
67
-91
-66

skipif mysql # not compatible
query III rowsort label-1068
SELECT DISTINCT 67 AS col1, 91 * - 1 AS col1, - COUNT ( * ) * - 22 * - NULLIF ( 3, - AVG ( ALL COALESCE ( 62, 40 ) ) + 81 )
----
67
-91
-66

query I rowsort
SELECT 93 * + 68 AS col0
----
6324

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT DISTINCT - MIN( - 85 )
----
85

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT - MIN ( - 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT DISTINCT - COALESCE ( 42, + 16 ) * + + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT - COALESCE ( 42, + 16 ) * + + COUNT ( * )
----
-42

query II rowsort
SELECT ALL - 13 col2, + 61
----
-13
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT NULLIF ( + 72, - 18 ) + - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-1073
SELECT NULLIF ( + 72, - 18 ) + - COUNT ( * )
----
71

query I rowsort
SELECT ALL - 28 + - 81 AS col1
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1075
SELECT ALL - 80 AS col2, - 8 * CAST( NULL AS SIGNED ) + 19 - - ( 28 ) + 75 AS col1
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-1075
SELECT ALL - 80 AS col2, - 8 * CAST ( NULL AS INTEGER ) + 19 - - ( 28 ) + 75 AS col1
----
-80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT COUNT( * ) * + + 74 * 42 AS col1
----
3108

skipif mysql # not compatible
query I rowsort label-1076
SELECT COUNT ( * ) * + + 74 * 42 AS col1
----
3108

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT ALL 90 + CASE - 45 WHEN + + 43 * + 75 THEN NULL WHEN - + 37 * COUNT( * ) THEN NULL ELSE 61 END * COUNT( * ) AS col1
----
151

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL 90 + CASE - 45 WHEN + + 43 * + 75 THEN NULL WHEN - + 37 * COUNT ( * ) THEN NULL ELSE 61 END * COUNT ( * ) AS col1
----
151

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

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

query I rowsort
SELECT ALL - ( - 24 ) + - 36 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT 21 * 29 * + - COUNT( * ) - + - 81 col1
----
-528

skipif mysql # not compatible
query I rowsort label-1080
SELECT 21 * 29 * + - COUNT ( * ) - + - 81 col1
----
-528

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

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL COUNT ( * ) / 55
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1082
SELECT DISTINCT 1 + - 74 + - - 70 * - CASE - - ( + 93 ) WHEN - 67 THEN SUM( DISTINCT 9 ) WHEN 11 * NULLIF ( + ( COUNT( * ) ), CAST( NULL AS SIGNED ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1082
SELECT DISTINCT 1 + - 74 + - - 70 * - CASE - - ( + 93 ) WHEN - 67 THEN SUM ( DISTINCT 9 ) WHEN 11 * NULLIF ( + ( COUNT ( * ) ), CAST ( NULL AS INTEGER ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1083
SELECT ALL 36 + - 34 AS col1, - MIN( 13 )
----
2
-13

skipif mysql # not compatible
query II rowsort label-1083
SELECT ALL 36 + - 34 AS col1, - MIN ( 13 )
----
2
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT 21 * + - 35 + + 27 + + ( + COUNT( * ) ) * 80 AS col0
----
-628

skipif mysql # not compatible
query I rowsort label-1084
SELECT 21 * + - 35 + + 27 + + ( + COUNT ( * ) ) * 80 AS col0
----
-628

onlyif mysql # aggregate syntax: 
query II rowsort label-1085
SELECT 12, NULLIF ( - - MIN( DISTINCT + 24 ), - 74 ) - - 45 + - COALESCE ( - 58, COUNT( * ), COUNT( * ) ) col1
----
12
127

skipif mysql # not compatible
query II rowsort label-1085
SELECT 12, NULLIF ( - - MIN ( DISTINCT + 24 ), - 74 ) - - 45 + - COALESCE ( - 58, COUNT ( * ), COUNT ( * ) ) col1
----
12
127

query I rowsort
SELECT ( + 16 ) + + + 92
----
108

query I rowsort
SELECT ALL - 31 * + 77
----
-2387

query I rowsort
SELECT ALL 0 + + 76 * - 55
----
-4180

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT ALL - COALESCE ( + - ( 13 ), 6, MAX( - 27 ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL - COALESCE ( + - ( 13 ), 6, MAX ( - 27 ) ) AS col0
----
13

query I rowsort
SELECT ALL ( + 35 ) + 89
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1091
SELECT ALL + 59 - - + CAST( - 58 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL + 59 - - + CAST ( - 58 AS INTEGER )
----
1

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

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

query II rowsort
SELECT 93 AS col0, 47 * 19
----
93
893

query I rowsort
SELECT + NULLIF ( + 30, 42 * - + 46 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT 59 + + + NULLIF ( - 74, ( 34 ) / + + 18 - COUNT( * ) ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1095
SELECT 59 + + + NULLIF ( - 74, ( 34 ) / + + 18 - COUNT ( * ) ) AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1096
SELECT + 87 * - 4 * - ( 19 ) * + MIN( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1096
SELECT + 87 * - 4 * - ( 19 ) * + MIN ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT MIN( + 89 ) * + + 1 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-1097
SELECT MIN ( + 89 ) * + + 1 AS col0
----
89

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

query I rowsort
SELECT - NULLIF ( 22, + 20 ) AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1100
SELECT ALL + + ( - 2 ) - - CAST( NULL AS SIGNED ) + 24 + + - COUNT( * ) / - - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL + + ( - 2 ) - - CAST ( NULL AS INTEGER ) + 24 + + - COUNT ( * ) / - - 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT - COALESCE ( - 27, - COUNT( * ) ) + + 67
----
94

skipif mysql # not compatible
query I rowsort label-1101
SELECT - COALESCE ( - 27, - COUNT ( * ) ) + + 67
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1102
SELECT DISTINCT + 42 * + 62 * - - CAST( + 25 AS SIGNED ) + + 38
----
65138

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT + 42 * + 62 * - - CAST ( + 25 AS INTEGER ) + + 38
----
65138

query II rowsort
SELECT - + 61 AS col1, + 40
----
-61
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1104
SELECT ALL + - 66 * - - COUNT( * ) AS col0, 83 + - 82 AS col0
----
-66
1

skipif mysql # not compatible
query II rowsort label-1104
SELECT ALL + - 66 * - - COUNT ( * ) AS col0, 83 + - 82 AS col0
----
-66
1

query I rowsort
SELECT DISTINCT - 50 * 2 + + 59 AS col2
----
-41

query II rowsort
SELECT DISTINCT + 35, 30 AS col2
----
35
30

query I rowsort
SELECT ALL - + 53 + - 1 AS col2
----
-54

query I rowsort
SELECT - NULLIF ( 81, 73 ) AS col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1109
SELECT + - CAST( NULL AS DECIMAL ) / - COUNT( * ) - + - MIN( - - NULLIF ( 2, + - 12 * 44 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1109
SELECT + - CAST ( NULL AS REAL ) / - COUNT ( * ) - + - MIN ( - - NULLIF ( 2, + - 12 * 44 ) )
----
NULL

query I rowsort
SELECT - - 37 + - + 15 + - 43
----
-21

query II rowsort
SELECT - + 79 - + 88 AS col0, 27 + - - 22 - + + 98 + + - 70 * 93
----
-167
-6559

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT ALL - + 96 * - + 80 + + COUNT( * ) * 31 AS col0
----
7711

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL - + 96 * - + 80 + + COUNT ( * ) * 31 AS col0
----
7711

query I rowsort
SELECT - + 62 * - 2 AS col2
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-1114
SELECT ALL + 76, MIN( + 68 ) * + 72 * + + 57 * COUNT( * ) AS col1
----
76
279072

skipif mysql # not compatible
query II rowsort label-1114
SELECT ALL + 76, MIN ( + 68 ) * + 72 * + + 57 * COUNT ( * ) AS col1
----
76
279072

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT NULLIF ( - SUM( - + 46 ), + 22 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1115
SELECT NULLIF ( - SUM ( - + 46 ), + 22 ) AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1116
SELECT ALL + + 65 * + + 11 - + 25 + CAST( - - 49 AS SIGNED ) + + 97
----
836

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL + + 65 * + + 11 - + 25 + CAST ( - - 49 AS INTEGER ) + + 97
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL MAX( DISTINCT + 15 ) * + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL MAX ( DISTINCT + 15 ) * + COUNT ( * )
----
15

query I rowsort
SELECT DISTINCT 89 * + 76 AS col2
----
6764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1119
SELECT COALESCE ( - - 16, + COUNT( * ) + + + CAST( - - COALESCE ( COUNT( * ), + 43 ) AS SIGNED ) )
----
16

skipif mysql # not compatible
query I rowsort label-1119
SELECT COALESCE ( - - 16, + COUNT ( * ) + + + CAST ( - - COALESCE ( COUNT ( * ), + 43 ) AS INTEGER ) )
----
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT ALL - 32 * + MIN( + 60 ) * + CASE + - 78 WHEN 2 THEN - COUNT( * ) ELSE 65 END * 0 + - 23
----
-23

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL - 32 * + MIN ( + 60 ) * + CASE + - 78 WHEN 2 THEN - COUNT ( * ) ELSE 65 END * 0 + - 23
----
-23

query II rowsort
SELECT + 24 + - 91, 57 AS col2
----
-67
57

query I rowsort
SELECT + CASE - 39 WHEN ( - 63 ) THEN + 52 * - + 12 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1124
SELECT ALL - 54 * - - 33 - - 7 * + - 6 DIV + 61 col1
----
-1782

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL - 54 * - - 33 - - 7 * + - 6 / + 61 col1
----
-1782

query I rowsort
SELECT ALL 27 * - 96 - + + 6 AS col0
----
-2598

query I rowsort
SELECT CASE + + 76 WHEN - ( - 39 ) * + 11 * - 28 THEN 78 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT + CASE - COALESCE ( + 63, - CASE 21 WHEN - 98 THEN 76 END ) WHEN + 92 - 61 THEN + COUNT( * ) END / + ( + 11 * 53 + - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1127
SELECT + CASE - COALESCE ( + 63, - CASE 21 WHEN - 98 THEN 76 END ) WHEN + 92 - 61 THEN + COUNT ( * ) END / + ( + 11 * 53 + - 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1128
SELECT DISTINCT + 54 * - COUNT( * ) AS col2, + ( + 58 ) AS col0
----
-54
58

skipif mysql # not compatible
query II rowsort label-1128
SELECT DISTINCT + 54 * - COUNT ( * ) AS col2, + ( + 58 ) AS col0
----
-54
58

query I rowsort
SELECT + 34 + - 1
----
33

query I rowsort
SELECT + NULLIF ( - 11, + 14 * + 21 )
----
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1131
SELECT - CAST( NULL AS DECIMAL ) / 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1131
SELECT - CAST ( NULL AS REAL ) / 19 AS col2
----
NULL

query I rowsort
SELECT ALL 40 * - + COALESCE ( 7, + 51 ) AS col2
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT + + CASE 37 WHEN + COUNT( * ) THEN - 8 ELSE NULL END - AVG ( DISTINCT - 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT + + CASE 37 WHEN + COUNT ( * ) THEN - 8 ELSE NULL END - AVG ( DISTINCT - 70 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT - 54 * - CASE + 61 WHEN + 93 + + COUNT( * ) - + 46 * + 18 THEN NULL WHEN + 87 THEN 27 / CASE 84 WHEN - 1 / + 88 + 54 * - 49 THEN - 38 WHEN + 20 THEN - COUNT( * ) ELSE 93 + 66 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1134
SELECT - 54 * - CASE + 61 WHEN + 93 + + COUNT ( * ) - + 46 * + 18 THEN NULL WHEN + 87 THEN 27 / CASE 84 WHEN - 1 / + 88 + 54 * - 49 THEN - 38 WHEN + 20 THEN - COUNT ( * ) ELSE 93 + 66 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT ALL COUNT( * ) * - + COUNT( * ) + + NULLIF ( 99, - 76 / - 88 + - COALESCE ( 33, 46, COUNT( * ) ) ) col0
----
98

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL COUNT ( * ) * - + COUNT ( * ) + + NULLIF ( 99, - 76 / - 88 + - COALESCE ( 33, 46, COUNT ( * ) ) ) col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT + 11 + + - COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-1136
SELECT + 11 + + - COUNT ( * ) AS col2
----
10

query II rowsort
SELECT ALL + 13 * 81 AS col0, 8
----
1053
8

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1139
SELECT - + MIN( DISTINCT CAST( NULL AS DECIMAL ) ) - 30 + + 99 + 96 * - 84 - + 96 + - 54 * 69 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1139
SELECT - + MIN ( DISTINCT CAST ( NULL AS REAL ) ) - 30 + + 99 + 96 * - 84 - + 96 + - 54 * 69 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1140
SELECT + - CASE + 58 WHEN - 30 + - COUNT( * ) + COUNT( * ) + + 4 * + COALESCE ( CAST( 87 AS SIGNED ), - CAST( NULL AS SIGNED ) * + 3 + + 70 ) * - 11 THEN - 10 WHEN 43 THEN NULL WHEN 89 + - MIN( + 90 ) THEN NULL END * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1140
SELECT + - CASE + 58 WHEN - 30 + - COUNT ( * ) + COUNT ( * ) + + 4 * + COALESCE ( CAST ( 87 AS INTEGER ), - CAST ( NULL AS INTEGER ) * + 3 + + 70 ) * - 11 THEN - 10 WHEN 43 THEN NULL WHEN 89 + - MIN ( + 90 ) THEN NULL END * 20
----
NULL

query I rowsort
SELECT - - 52 * ( - 4 ) * - 83 * + NULLIF ( + 53, - + 13 ) * 57 + + 18
----
52154562

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT - - 94 - + - ( 62 ) * + COUNT( ALL 30 )
----
156

skipif mysql # not compatible
query I rowsort label-1142
SELECT - - 94 - + - ( 62 ) * + COUNT ( ALL 30 )
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT - CASE + - ( + SUM( DISTINCT + 98 ) ) WHEN + - CASE ( + COUNT( * ) ) WHEN 59 THEN + 23 END THEN NULL WHEN + 94 THEN + COUNT( * ) * - CASE - 15 WHEN MIN( 19 ) THEN NULL WHEN 58 THEN 17 * 64 ELSE NULL END + 25 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1143
SELECT - CASE + - ( + SUM ( DISTINCT + 98 ) ) WHEN + - CASE ( + COUNT ( * ) ) WHEN 59 THEN + 23 END THEN NULL WHEN + 94 THEN + COUNT ( * ) * - CASE - 15 WHEN MIN ( 19 ) THEN NULL WHEN 58 THEN 17 * 64 ELSE NULL END + 25 ELSE NULL END AS col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT ALL 93 + 50 - - NULLIF ( CASE - 49 WHEN + ( + + CASE ( 67 ) WHEN + ( 45 ) THEN 89 ELSE 98 + 93 END ) * 15 THEN COUNT( * ) * + COUNT( * ) WHEN COUNT( * ) + 64 THEN 34 + 53 ELSE 84 * 28 END, 67 )
----
2495

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL 93 + 50 - - NULLIF ( CASE - 49 WHEN + ( + + CASE ( 67 ) WHEN + ( 45 ) THEN 89 ELSE 98 + 93 END ) * 15 THEN COUNT ( * ) * + COUNT ( * ) WHEN COUNT ( * ) + 64 THEN 34 + 53 ELSE 84 * 28 END, 67 )
----
2495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1147
SELECT DISTINCT + + COALESCE ( CAST( NULL AS SIGNED ), - 8 ) + + + 10
----
2

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT + + COALESCE ( CAST ( NULL AS INTEGER ), - 8 ) + + + 10
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1148
SELECT DISTINCT + 69 DIV + - 42 + - - 34
----
33

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT + 69 / + - 42 + - - 34
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-1149
SELECT ALL + 47 * - + 78, + COUNT( * ) AS col1
----
-3666
1

skipif mysql # not compatible
query II rowsort label-1149
SELECT ALL + 47 * - + 78, + COUNT ( * ) AS col1
----
-3666
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT DISTINCT COALESCE ( + 37, + 91 + 32 + - + COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT COALESCE ( + 37, + 91 + 32 + - + COUNT ( * ) )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1151
SELECT DISTINCT + 2 col2, COUNT( - - 11 ) + - CAST( NULL AS SIGNED )
----
2
NULL

skipif mysql # not compatible
query II rowsort label-1151
SELECT DISTINCT + 2 col2, COUNT ( - - 11 ) + - CAST ( NULL AS INTEGER )
----
2
NULL

query I rowsort
SELECT 30 * - + 86 + + + 44 col1
----
-2536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1153
SELECT ALL + COALESCE ( - + 67, CAST( - - ( + - COUNT( * ) ) AS SIGNED ) ) DIV + - 8 + - 36 + - 32 DIV 78
----
-28

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL + COALESCE ( - + 67, CAST ( - - ( + - COUNT ( * ) ) AS INTEGER ) ) / + - 8 + - 36 + - 32 / 78
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-1154
SELECT - 12 DIV + + 70 + + - 59
----
-59

skipif mysql # not compatible
query I rowsort label-1154
SELECT - 12 / + + 70 + + - 59
----
-59

query I rowsort
SELECT - 18 + + 93
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT COUNT( * ) * + MIN( - + 49 ) + NULLIF ( + 12, - - 26 + 34 ) + + + NULLIF ( 33, - 81 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1156
SELECT COUNT ( * ) * + MIN ( - + 49 ) + NULLIF ( + 12, - - 26 + 34 ) + + + NULLIF ( 33, - 81 ) AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1157
SELECT ALL - COUNT( * ) DIV 46 - + 86 + + 96 DIV 38 * + - 77
----
-240

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL - COUNT ( * ) / 46 - + 86 + + 96 / 38 * + - 77
----
-240

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

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL 49 / 48 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 82, 48 AS col1
----
82
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT - MIN( DISTINCT 56 ) * + + 76 + 83
----
-4173

skipif mysql # not compatible
query I rowsort label-1160
SELECT - MIN ( DISTINCT 56 ) * + + 76 + 83
----
-4173

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT DISTINCT + CASE 26 WHEN - 50 - - 86 THEN - NULLIF ( + NULLIF ( - 71, 99 * 9 ), + NULLIF ( + 7, 52 - - 26 ) * COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT + CASE 26 WHEN - 50 - - 86 THEN - NULLIF ( + NULLIF ( - 71, 99 * 9 ), + NULLIF ( + 7, 52 - - 26 ) * COUNT ( * ) ) ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT - MIN( - - 20 ) * - - 4 - 9 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-1164
SELECT - MIN ( - - 20 ) * - - 4 - 9 AS col0
----
-89

query I rowsort
SELECT ALL 99 * - + 35
----
-3465

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT ALL - - NULLIF ( + + ( + + ( + + CASE + + CASE + + 83 WHEN - 35 THEN NULL WHEN + - MIN( DISTINCT 18 ) - 48 THEN 27 ELSE 5 * + 5 END WHEN - 18 * - ( 35 ) THEN + 92 * 75 END ) ), - 75 * 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL - - NULLIF ( + + ( + + ( + + CASE + + CASE + + 83 WHEN - 35 THEN NULL WHEN + - MIN ( DISTINCT 18 ) - 48 THEN 27 ELSE 5 * + 5 END WHEN - 18 * - ( 35 ) THEN + 92 * 75 END ) ), - 75 * 33 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT + ( 54 ) * - MAX( + 71 ) + - + ( + 86 ) + + MAX( + 0 ) * + 78
----
-3920

skipif mysql # not compatible
query I rowsort label-1167
SELECT + ( 54 ) * - MAX ( + 71 ) + - + ( + 86 ) + + MAX ( + 0 ) * + 78
----
-3920

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT - - ( COUNT( * ) ) * 30 + 7 + + 52 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-1169
SELECT - - ( COUNT ( * ) ) * 30 + 7 + + 52 AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1170
SELECT 1 * - COUNT( * ) DIV + 18 * 76 * - 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1170
SELECT 1 * - COUNT ( * ) / + 18 * 76 * - 25 AS col1
----
0

query I rowsort
SELECT + 32 + + 21 + - - 60 * - + 11 AS col2
----
-607

onlyif mysql # DIV for integer division: 
query I rowsort label-1172
SELECT ALL + 92 DIV + 7
----
13

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL + 92 / + 7
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1173
SELECT - COALESCE ( - 5, - 86, - 63, + + ( + - COALESCE ( + COUNT( * ), - 62 ) ) ) DIV - 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1173
SELECT - COALESCE ( - 5, - 86, - 63, + + ( + - COALESCE ( + COUNT ( * ), - 62 ) ) ) / - 74 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1174
SELECT CAST( 36 AS SIGNED ) + - SUM( DISTINCT + 70 ) + + CASE + - COUNT( * ) WHEN 40 * + + 27 * ( + 25 ) + 92 * + COUNT( * ) THEN - 56 * 45 WHEN - ( + ( + ( - 40 ) ) ) * - 58 THEN COUNT( * ) WHEN + SUM( + 81 ) THEN NULL END - + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-1174
SELECT CAST ( 36 AS INTEGER ) + - SUM ( DISTINCT + 70 ) + + CASE + - COUNT ( * ) WHEN 40 * + + 27 * ( + 25 ) + 92 * + COUNT ( * ) THEN - 56 * 45 WHEN - ( + ( + ( - 40 ) ) ) * - 58 THEN COUNT ( * ) WHEN + SUM ( + 81 ) THEN NULL END - + 41
----
NULL

query I rowsort
SELECT DISTINCT - 59 * 87 AS col2
----
-5133

query I rowsort
SELECT ALL 24 + + 65 AS col2
----
89

query I rowsort
SELECT 70 * - 30
----
-2100

query I rowsort
SELECT ALL 81 + + 46
----
127

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1180
SELECT ALL - - COALESCE ( COUNT( * ), + 97 * 50 DIV + - 42 ) + - + 34, - 24 * - CASE 72 WHEN COALESCE ( - CASE + 89 WHEN 6 THEN - COUNT( * ) WHEN + 13 + NULLIF ( COUNT( * ) + - 64 * 69, 24 ) * + 8 THEN - 62 * + CASE 81 * - ( - ( - 20 ) * - MIN( - 22 ) ) WHEN - COALESCE ( 14, 74 ) THEN NULL WHEN - 36 - 56 THEN - 23 ELSE NULL END ELSE 59 END, - 99 DIV 97 - + 81 DIV 11 ) THEN NULL WHEN + 12 THEN 9 END DIV + 33 AS col2
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-1180
SELECT ALL - - COALESCE ( COUNT ( * ), + 97 * 50 / + - 42 ) + - + 34, - 24 * - CASE 72 WHEN COALESCE ( - CASE + 89 WHEN 6 THEN - COUNT ( * ) WHEN + 13 + NULLIF ( COUNT ( * ) + - 64 * 69, 24 ) * + 8 THEN - 62 * + CASE 81 * - ( - ( - 20 ) * - MIN ( - 22 ) ) WHEN - COALESCE ( 14, 74 ) THEN NULL WHEN - 36 - 56 THEN - 23 ELSE NULL END ELSE 59 END, - 99 / 97 - + 81 / 11 ) THEN NULL WHEN + 12 THEN 9 END / + 33 AS col2
----
-33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT - - ( + NULLIF ( + - 99, + COUNT( * ) + + + 16 ) )
----
-99

skipif mysql # not compatible
query I rowsort label-1181
SELECT - - ( + NULLIF ( + - 99, + COUNT ( * ) + + + 16 ) )
----
-99

query I rowsort
SELECT ALL - 60 + 68 AS col2
----
8

query I rowsort
SELECT - 57 + 13
----
-44

query I rowsort
SELECT 51 + 6
----
57

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1186
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 96 * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 96 * - 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT COALESCE ( - NULLIF ( - + 67, - + COUNT( * ) - MAX( DISTINCT - - 53 ) ), + - ( 59 ) * + - 62 * - MAX( ALL 80 ) ) - 95
----
-28

skipif mysql # not compatible
query I rowsort label-1187
SELECT COALESCE ( - NULLIF ( - + 67, - + COUNT ( * ) - MAX ( DISTINCT - - 53 ) ), + - ( 59 ) * + - 62 * - MAX ( ALL 80 ) ) - 95
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT DISTINCT - 81 * AVG ( ALL + 74 ) * + COALESCE ( 54, - COALESCE ( + - SUM( + 21 ), + 10 ) * + 9 ) + CASE - 18 + - 88 WHEN CASE + 35 WHEN 1 THEN NULL WHEN COUNT( * ) THEN COUNT( * ) END * 67 THEN 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT - 81 * AVG ( ALL + 74 ) * + COALESCE ( 54, - COALESCE ( + - SUM ( + 21 ), + 10 ) * + 9 ) + CASE - 18 + - 88 WHEN CASE + 35 WHEN 1 THEN NULL WHEN COUNT ( * ) THEN COUNT ( * ) END * 67 THEN 0 END
----
NULL

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

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

query I rowsort
SELECT ALL - 72 * + 96 * + + 12 AS col1
----
-82944

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT 50 * - CASE - - 35 WHEN + 54 THEN 63 * - 7 WHEN + + 27 THEN NULL WHEN + 30 / + SUM( ALL 48 ) THEN + 47 ELSE + 88 + - ( + 19 ) END * - 4
----
13800

skipif mysql # not compatible
query I rowsort label-1191
SELECT 50 * - CASE - - 35 WHEN + 54 THEN 63 * - 7 WHEN + + 27 THEN NULL WHEN + 30 / + SUM ( ALL 48 ) THEN + 47 ELSE + 88 + - ( + 19 ) END * - 4
----
13800

onlyif mysql # DIV for integer division: 
query I rowsort label-1192
SELECT 56 DIV - - 55 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1192
SELECT 56 / - - 55 AS col1
----
1

query I rowsort
SELECT DISTINCT - 54 * 4 * - 16 AS col1
----
3456

query I rowsort
SELECT ALL - COALESCE ( - + 32, - + 3 - - 8, + + 89 ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT 69 / - CASE - 51 WHEN + + 92 THEN 16 * COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1195
SELECT 69 / - CASE - 51 WHEN + + 92 THEN 16 * COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT 40 * 71 col0
----
2840

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT COUNT( * ) * 62 + + + 90
----
152

skipif mysql # not compatible
query I rowsort label-1197
SELECT COUNT ( * ) * 62 + + + 90
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1198
SELECT 46 DIV - - COUNT( - ( - 62 ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1198
SELECT 46 / - - COUNT ( - ( - 62 ) ) AS col1
----
46

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

query I rowsort
SELECT 1 + + 85
----
86

query I rowsort
SELECT 81 * - 31 * - 84
----
210924

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT ALL - - CASE + COUNT( - 44 ) WHEN - ( + + COUNT( * ) ) THEN COUNT( DISTINCT - 43 ) WHEN + 20 THEN NULL END + 77 - - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL - - CASE + COUNT ( - 44 ) WHEN - ( + + COUNT ( * ) ) THEN COUNT ( DISTINCT - 43 ) WHEN + 20 THEN NULL END + 77 - - 33 AS col1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1204
SELECT 36 * - - 40 + + 96 + + CAST( NULL AS SIGNED ) * 63 * - + 87 * 46 * 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1204
SELECT 36 * - - 40 + + 96 + + CAST ( NULL AS INTEGER ) * 63 * - + 87 * 46 * 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT ALL + COALESCE ( 72, + 96 - + 0 + + COUNT( * ) * + 33, + - MIN( DISTINCT - + 1 ) ) + + 23 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL + COALESCE ( 72, + 96 - + 0 + + COUNT ( * ) * + 33, + - MIN ( DISTINCT - + 1 ) ) + + 23 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT ALL - 7 + - 38 + COUNT( * ) + - + 53 - - 81 + 70
----
54

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL - 7 + - 38 + COUNT ( * ) + - + 53 - - 81 + 70
----
54

query I rowsort
SELECT + ( + 39 ) + + + 54 AS col0
----
93

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

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

query I rowsort
SELECT 46 - + 84 + 44 AS col1
----
6

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

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL + 30 * COUNT ( * ) / + + COUNT ( * ) col2
----
30

query I rowsort
SELECT ALL 13 + + - 13 * - 38
----
507

query I rowsort
SELECT 93 - + + 38 * 41 - 59
----
-1524

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT DISTINCT - COUNT( * ) * + 11
----
-11

skipif mysql # not compatible
query I rowsort label-1213
SELECT DISTINCT - COUNT ( * ) * + 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT ALL - 69 * - MAX( - 78 ) AS col0
----
-5382

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL - 69 * - MAX ( - 78 ) AS col0
----
-5382

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT ALL + 11 + + 24 DIV 12 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL + 11 + + 24 / 12 AS col2
----
13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT - 46 - + + 35 + + 86 + + 22 - + CASE - - 74 WHEN - - 58 * + 55 THEN - + 55 * 87 - 40 WHEN + COUNT( ALL + 54 ) THEN NULL ELSE COUNT( * ) END AS col2
----
26

skipif mysql # not compatible
query I rowsort label-1217
SELECT - 46 - + + 35 + + 86 + + 22 - + CASE - - 74 WHEN - - 58 * + 55 THEN - + 55 * 87 - 40 WHEN + COUNT ( ALL + 54 ) THEN NULL ELSE COUNT ( * ) END AS col2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1218
SELECT DISTINCT + 87 DIV 81 * + COUNT( * ) * + - MAX( DISTINCT + - 16 ) + - - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT + 87 / 81 * + COUNT ( * ) * + - MAX ( DISTINCT + - 16 ) + - - COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT 41 * + + CASE - 13 WHEN + + 36 - + 82 + + COUNT( * ) - - - 61 * 9 THEN + - 26 - MAX( ALL - 9 ) ELSE 70 - COUNT( * ) * 97 END AS col0
----
-1107

skipif mysql # not compatible
query I rowsort label-1219
SELECT 41 * + + CASE - 13 WHEN + + 36 - + 82 + + COUNT ( * ) - - - 61 * 9 THEN + - 26 - MAX ( ALL - 9 ) ELSE 70 - COUNT ( * ) * 97 END AS col0
----
-1107

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

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

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

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT COUNT ( * ) / - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT DISTINCT 7 - COALESCE ( - 23, + - 14 * + - ( - 45 ) + + 54 + - COUNT( * ) + - 49 )
----
30

skipif mysql # not compatible
query I rowsort label-1222
SELECT DISTINCT 7 - COALESCE ( - 23, + - 14 * + - ( - 45 ) + + 54 + - COUNT ( * ) + - 49 )
----
30

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

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

query I rowsort
SELECT DISTINCT 36 * 29 AS col2
----
1044

query I rowsort
SELECT DISTINCT 71 * - - 60 AS col2
----
4260

onlyif mysql # DIV for integer division: 
query I rowsort label-1226
SELECT - 21 DIV - + 91 + 80
----
80

skipif mysql # not compatible
query I rowsort label-1226
SELECT - 21 / - + 91 + 80
----
80

query I rowsort
SELECT 50 * 9 col1
----
450

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT + COALESCE ( 35, + COUNT( * ) ) + + ( + - 52 ) + + 94
----
77

skipif mysql # not compatible
query I rowsort label-1229
SELECT + COALESCE ( 35, + COUNT ( * ) ) + + ( + - 52 ) + + 94
----
77

query II rowsort
SELECT DISTINCT + NULLIF ( + 72, - 74 ) AS col2, 57
----
72
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT DISTINCT 21 * - COUNT( * ) + COUNT( * ) + - 96 + COUNT( * ) * 42 * - - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT 21 * - COUNT ( * ) + COUNT ( * ) + - 96 + COUNT ( * ) * 42 * - - COUNT ( * )
----
-74

query I rowsort
SELECT ALL + COALESCE ( - 82, + 5 * 67, + 85 )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1233
SELECT + 83 * NULLIF ( - 75, + 34 - - 27 ) + 40 / ( 9 ) + - CAST( NULL AS SIGNED ) * 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1233
SELECT + 83 * NULLIF ( - 75, + 34 - - 27 ) + 40 / ( 9 ) + - CAST ( NULL AS INTEGER ) * 58 AS col0
----
NULL

query I rowsort
SELECT ALL 96 * - 22 + 18 AS col2
----
-2094

query I rowsort
SELECT DISTINCT 64 * - 34 * 60 + - - 87 AS col2
----
-130473

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1236
SELECT DISTINCT + 75 * - 77 + 12 * - - CASE 19 WHEN + 24 * + 93 * - 21 + 23 + + CAST( NULL AS DECIMAL ) + 42 * 22 * - 93 THEN 96 WHEN - 20 * + 59 THEN 96 + 63 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT + 75 * - 77 + 12 * - - CASE 19 WHEN + 24 * + 93 * - 21 + 23 + + CAST ( NULL AS REAL ) + 42 * 22 * - 93 THEN 96 WHEN - 20 * + 59 THEN 96 + 63 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 94 * - 74 * - 0 * + 52 + 44 AS col0, ( + 90 ) AS col1
----
44
90

query I rowsort
SELECT - 87 + 80
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT ALL + - SUM( + - 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL + - SUM ( + - 69 ) AS col1
----
69

query I rowsort
SELECT DISTINCT - - ( + - 72 ) * - - 58 * - 24 * - + 29 + + 74 AS col0
----
-2906422

onlyif mysql # DIV for integer division: 
query I rowsort label-1241
SELECT DISTINCT + - 85 * + + 97 + 91 + - ( - 5 ) DIV ( + 61 ) * 16 * - - 56 AS col1
----
-8154

skipif mysql # not compatible
query I rowsort label-1241
SELECT DISTINCT + - 85 * + + 97 + 91 + - ( - 5 ) / ( + 61 ) * 16 * - - 56 AS col1
----
-8154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1242
SELECT ALL - + 19 * + + CASE + + 88 WHEN - AVG ( ALL CAST( NULL AS SIGNED ) ) * + 65 + - + 78 - - 77 * COUNT( * ) * - COUNT( * ) / 96 THEN - ( + 96 ) WHEN 47 + - 14 THEN + 86 * + 94 END + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL - + 19 * + + CASE + + 88 WHEN - AVG ( ALL CAST ( NULL AS INTEGER ) ) * + 65 + - + 78 - - 77 * COUNT ( * ) * - COUNT ( * ) / 96 THEN - ( + 96 ) WHEN 47 + - 14 THEN + 86 * + 94 END + + 5
----
NULL

query II rowsort
SELECT 7, + 96 * - + 76 AS col0
----
7
-7296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1244
SELECT - - 21 + + 4 * 98 * + 80 * CAST( + 48 AS SIGNED ) + + + MIN( + - 11 ) * - 45 AS col2
----
1505796

skipif mysql # not compatible
query I rowsort label-1244
SELECT - - 21 + + 4 * 98 * + 80 * CAST ( + 48 AS INTEGER ) + + + MIN ( + - 11 ) * - 45 AS col2
----
1505796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1245
SELECT ALL + 10 DIV 67 * + + 15 * - + 58 - + - MAX( ALL CAST( 99 AS SIGNED ) ) + + 78
----
177

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL + 10 / 67 * + + 15 * - + 58 - + - MAX ( ALL CAST ( 99 AS INTEGER ) ) + + 78
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT DISTINCT + NULLIF ( 30, + 74 * ( + - 87 ) + COUNT( * ) * ( + - 75 ) * + COUNT( * ) + - 98 / + 90 )
----
30

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT + NULLIF ( 30, + 74 * ( + - 87 ) + COUNT ( * ) * ( + - 75 ) * + COUNT ( * ) + - 98 / + 90 )
----
30

query I rowsort
SELECT ALL - + 52 + ( ( + + 47 ) ) AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1248
SELECT DISTINCT + 82 + 21 - - 81 DIV - 27
----
100

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT + 82 + 21 - - 81 / - 27
----
100

query I rowsort
SELECT ALL 42 * 86 * - 19 AS col2
----
-68628

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT ALL COALESCE ( - - 77, + 27 ) - - 76 - - CASE WHEN NOT - 45 IS NOT NULL THEN NULL WHEN NOT 97 BETWEEN + 10 AND NULL THEN NULL ELSE - COUNT( * ) END
----
152

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL COALESCE ( - - 77, + 27 ) - - 76 - - CASE WHEN NOT - 45 IS NOT NULL THEN NULL WHEN NOT 97 BETWEEN + 10 AND NULL THEN NULL ELSE - COUNT ( * ) END
----
152

query I rowsort
SELECT - 16 + 15 + + 55
----
54

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

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

query I rowsort
SELECT - 30 + - - 71 * - 44 * - + 88 AS col1
----
274882

query I rowsort
SELECT ALL - + 27 * - + 50 AS col2
----
1350

query III rowsort
SELECT - 83, 42 + 93 AS col0, 46 AS col2
----
-83
135
46

query I rowsort
SELECT - CASE + NULLIF ( + 60, COALESCE ( + 89, 98 ) - + COALESCE ( 35, + 78 * - 6, - 14 * 56 - + 22 ) ) WHEN + 31 * 5 THEN 20 END AS col1
----
NULL

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

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

query I rowsort
SELECT - 95 + + 54
----
-41

query I rowsort
SELECT DISTINCT ( - + 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT ALL 59 / - CASE + ( NULLIF ( + 83, NULLIF ( - + 7, + + 32 * + 73 ) ) ) WHEN 54 THEN - 6 * 2 + - 71 END * - ( COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL 59 / - CASE + ( NULLIF ( + 83, NULLIF ( - + 7, + + 32 * + 73 ) ) ) WHEN 54 THEN - 6 * 2 + - 71 END * - ( COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1261
SELECT + COALESCE ( + + 10, - - CASE 92 WHEN + 86 + + 20 - - COALESCE ( - COUNT( - 13 ), 2 * - 18 + 6, + 13 / + 95 ) THEN NULL WHEN + 28 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 75 END + 97, 57 * COUNT( * ) ) + 81
----
91

skipif mysql # not compatible
query I rowsort label-1261
SELECT + COALESCE ( + + 10, - - CASE 92 WHEN + 86 + + 20 - - COALESCE ( - COUNT ( - 13 ), 2 * - 18 + 6, + 13 / + 95 ) THEN NULL WHEN + 28 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 75 END + 97, 57 * COUNT ( * ) ) + 81
----
91

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

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

query I rowsort
SELECT + 94 * - 18 * - 34
----
57528

query I rowsort
SELECT - COALESCE ( - 61, - 34 )
----
61

query I rowsort
SELECT DISTINCT 17 * - + 9 * 68
----
-10404

query I rowsort
SELECT ALL 76 * 91 col0
----
6916

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

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

query I rowsort
SELECT + 58 * + CASE 61 WHEN + - 72 THEN - - 23 + - 10 / + ( + 20 ) * 24 WHEN + 29 THEN NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1270
SELECT ALL - COUNT( * ) DIV - COUNT( * ) + - 86 * + 19 AS col1
----
-1633

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL - COUNT ( * ) / - COUNT ( * ) + - 86 * + 19 AS col1
----
-1633

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

query I rowsort
SELECT ALL 16 * - ( - 95 ) col2
----
1520

query I rowsort
SELECT + 22 * + 11
----
242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1274
SELECT + 28 * + + 68 DIV + - COUNT( * ) AS col0
----
-1904

skipif mysql # not compatible
query I rowsort label-1274
SELECT + 28 * + + 68 / + - COUNT ( * ) AS col0
----
-1904

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT ALL + - 79 DIV + 53 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL + - 79 / + 53 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1276
SELECT ALL 0 * - + 32 DIV 32 - - + SUM( + - 79 ) - - 21 * + 90
----
1811

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL 0 * - + 32 / 32 - - + SUM ( + - 79 ) - - 21 * + 90
----
1811

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT DISTINCT + 80 * 64 + + COUNT( * ) AS col1
----
5121

skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT + 80 * 64 + + COUNT ( * ) AS col1
----
5121

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT - MIN( DISTINCT + 9 ) * + ( - 29 ) * + 99
----
25839

skipif mysql # not compatible
query I rowsort label-1278
SELECT - MIN ( DISTINCT + 9 ) * + ( - 29 ) * + 99
----
25839

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT + - MIN( DISTINCT - - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-1279
SELECT + - MIN ( DISTINCT - - 91 )
----
-91

query I rowsort
SELECT + 45 + - 84 AS col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1281
SELECT + + 98 * COUNT( * ) DIV + - 15
----
-6

skipif mysql # not compatible
query I rowsort label-1281
SELECT + + 98 * COUNT ( * ) / + - 15
----
-6

query I rowsort
SELECT - - 92 * + 67
----
6164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1283
SELECT - + 48 + + COALESCE ( + COUNT( * ), - 7 * - - 9 * + + 59 DIV - 47 + - 93 + + - 3 + - 89 + + ( ( 44 ) ) ) + + 22
----
-25

skipif mysql # not compatible
query I rowsort label-1283
SELECT - + 48 + + COALESCE ( + COUNT ( * ), - 7 * - - 9 * + + 59 / - 47 + - 93 + + - 3 + - 89 + + ( ( 44 ) ) ) + + 22
----
-25

query I rowsort
SELECT ALL + 37 / - CASE WHEN 52 IS NULL THEN 23 END AS col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1285
SELECT DISTINCT COUNT ( * ) AS col2, 86 AS col2
----
1
86

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

skipif mysql # not compatible
query II rowsort label-1286
SELECT ALL - 14 AS col1, - COUNT ( * )
----
-14
-1

query I rowsort
SELECT - 72 * - 88
----
6336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1288
SELECT DISTINCT COALESCE ( - - COALESCE ( 49, + COUNT( * ) DIV - + 43 * 0, 67 DIV + + 11 + 54 ), - 90, - + COUNT( + 48 ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-1288
SELECT DISTINCT COALESCE ( - - COALESCE ( 49, + COUNT ( * ) / - + 43 * 0, 67 / + + 11 + 54 ), - 90, - + COUNT ( + 48 ) ) AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1289
SELECT - COUNT( * ) - + + 97 AS col0, + COALESCE ( COUNT( * ), + 8 * 41 * + 6 + 24 / + 32 * - CAST( + - 91 AS SIGNED ) * + 97 * NULLIF ( + 25, - 41 * 76 ) - - 83 ) * CAST( NULL AS SIGNED ) AS col0
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-1289
SELECT - COUNT ( * ) - + + 97 AS col0, + COALESCE ( COUNT ( * ), + 8 * 41 * + 6 + 24 / + 32 * - CAST ( + - 91 AS INTEGER ) * + 97 * NULLIF ( + 25, - 41 * 76 ) - - 83 ) * CAST ( NULL AS INTEGER ) AS col0
----
-98
NULL

query II rowsort
SELECT ALL ( - 15 ) AS col1, + 93 col0
----
-15
93

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

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

query I rowsort
SELECT ALL + 50 * + - 20
----
-1000

query I rowsort
SELECT 66 * 22
----
1452

query I rowsort
SELECT 69 + - - 73
----
142

query II rowsort
SELECT DISTINCT 35 + - ( 83 ), - NULLIF ( 48, 96 )
----
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL + 51 + 90 - + COUNT( * )
----
140

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL + 51 + 90 - + COUNT ( * )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT SUM( DISTINCT - 18 ) - + 38 + - + MIN( DISTINCT + ( - 73 ) )
----
17

skipif mysql # not compatible
query I rowsort label-1297
SELECT SUM ( DISTINCT - 18 ) - + 38 + - + MIN ( DISTINCT + ( - 73 ) )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1298
SELECT NULLIF ( - COUNT( * ), + CASE + + COALESCE ( - CAST( + - COALESCE ( - + 64, + 61 - + COUNT( ( - + 69 ) ) ) AS SIGNED ), + - 49, 96 ) WHEN + CAST( ( NULLIF ( 66, 29 / + 32 ) ) AS SIGNED ) / - 67 THEN NULL ELSE + 52 * - 0 END ) * 19 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-1298
SELECT NULLIF ( - COUNT ( * ), + CASE + + COALESCE ( - CAST ( + - COALESCE ( - + 64, + 61 - + COUNT ( ( - + 69 ) ) ) AS INTEGER ), + - 49, 96 ) WHEN + CAST ( ( NULLIF ( 66, 29 / + 32 ) ) AS INTEGER ) / - 67 THEN NULL ELSE + 52 * - 0 END ) * 19 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT ALL + 6 + - MIN( + 65 )
----
-59

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL + 6 + - MIN ( + 65 )
----
-59

query I rowsort
SELECT ALL 10 + + 87 AS col1
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1301
SELECT 28 DIV - 82 + 51 + - COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1301
SELECT 28 / - 82 + 51 + - COUNT ( * ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT + COUNT( * ) * + 64 + + 24 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-1302
SELECT + COUNT ( * ) * + 64 + + 24 AS col0
----
88

query I rowsort
SELECT 98 + + 62
----
160

query I rowsort
SELECT ALL 75 * 49
----
3675

query II rowsort
SELECT ALL 79 * + - 14, + 54 AS col0
----
-1106
54

query I rowsort
SELECT DISTINCT + - 98 * + - ( 63 ) - + - 44 AS col1
----
6218

onlyif mysql # DIV for integer division: 
query I rowsort label-1307
SELECT + 81 DIV + 84 + 30
----
30

skipif mysql # not compatible
query I rowsort label-1307
SELECT + 81 / + 84 + 30
----
30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1308
SELECT ALL - 93 - 86 + + NULLIF ( + AVG ( + 73 ), 27 ) + - 19 * + 44 + - - 73 * + COUNT( * ) + + COUNT( * ) / - CAST( NULL AS DECIMAL ) * + ( + 69 ) + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL - 93 - 86 + + NULLIF ( + AVG ( + 73 ), 27 ) + - 19 * + 44 + - - 73 * + COUNT ( * ) + + COUNT ( * ) / - CAST ( NULL AS REAL ) * + ( + 69 ) + - 59
----
NULL

query I rowsort
SELECT 87 * - 11 + + 58
----
-899

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1310
SELECT ALL + COUNT( * ) * - 70 + SUM( + 73 ) DIV + + ( 76 )
----
-70

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL + COUNT ( * ) * - 70 + SUM ( + 73 ) / + + ( 76 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT - NULLIF ( + 80, 50 ) * COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-1311
SELECT - NULLIF ( + 80, 50 ) * COUNT ( * )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1312
SELECT DISTINCT 64 * - + 12 + 62 - + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1312
SELECT DISTINCT 64 * - + 12 + 62 - + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 42 * - 2 * 37 AS col0
----
-3108

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

query I rowsort
SELECT 90 * 41
----
3690

query II rowsort
SELECT + 26 + - 69, 65 + + 85 * 56 AS col1
----
-43
4825

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT ( + + ( + COUNT( + 52 ) ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1317
SELECT ( + + ( + COUNT ( + 52 ) ) ) col2
----
1

query II rowsort
SELECT ( + 78 ) AS col0, + 96 AS col2
----
78
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1319
SELECT 70 * + 58 + - 56 DIV + 88 * - ( + 64 )
----
4060

skipif mysql # not compatible
query I rowsort label-1319
SELECT 70 * + 58 + - 56 / + 88 * - ( + 64 )
----
4060

onlyif mysql # DIV for integer division: 
query II rowsort label-1320
SELECT DISTINCT + + 59 * + - 8, - 64 DIV + 32 AS col2
----
-472
-2

skipif mysql # not compatible
query II rowsort label-1320
SELECT DISTINCT + + 59 * + - 8, - 64 / + 32 AS col2
----
-472
-2

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

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

query I rowsort
SELECT ( - 0 ) * 35 + + + 38
----
38

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

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

query I rowsort
SELECT DISTINCT 48 + - 20
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT 85 * MIN( DISTINCT + - ( - 89 ) )
----
7565

skipif mysql # not compatible
query I rowsort label-1325
SELECT 85 * MIN ( DISTINCT + - ( - 89 ) )
----
7565

query I rowsort
SELECT ALL - 18 + - 71 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-1327
SELECT - 2 AS col0, - ( 15 ) * - ( - 43 ) * - 59 * - + COUNT( * ) + 86 AS col1
----
-2
-37969

skipif mysql # not compatible
query II rowsort label-1327
SELECT - 2 AS col0, - ( 15 ) * - ( - 43 ) * - 59 * - + COUNT ( * ) + 86 AS col1
----
-2
-37969

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT ALL - 9 + COALESCE ( - COUNT( * ), + ( - COUNT( * ) ), + 68 )
----
-10

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL - 9 + COALESCE ( - COUNT ( * ), + ( - COUNT ( * ) ), + 68 )
----
-10

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

skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT 12 + - COUNT ( * ) AS col1
----
11

query II rowsort
SELECT ALL 57, 72 AS col2
----
57
72

query I rowsort
SELECT 75 + - - 78 AS col0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT DISTINCT + COALESCE ( COUNT( 95 ), - ( - - 69 ) * COUNT( * ) * - - ( + NULLIF ( 98, 77 ) ), + 72 * NULLIF ( CASE WHEN NOT 93 IS NOT NULL THEN - 84 - COUNT( * ) ELSE - COUNT( * ) END, 73 * + 10 ) ) + - ( 1 ) * ( 47 * + 30 )
----
-1409

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT + COALESCE ( COUNT ( 95 ), - ( - - 69 ) * COUNT ( * ) * - - ( + NULLIF ( 98, 77 ) ), + 72 * NULLIF ( CASE WHEN NOT 93 IS NOT NULL THEN - 84 - COUNT ( * ) ELSE - COUNT ( * ) END, 73 * + 10 ) ) + - ( 1 ) * ( 47 * + 30 )
----
-1409

onlyif mysql # aggregate syntax: 
query II rowsort label-1333
SELECT ALL + 19 + + - ( + 44 ) AS col1, - MAX( 82 )
----
-25
-82

skipif mysql # not compatible
query II rowsort label-1333
SELECT ALL + 19 + + - ( + 44 ) AS col1, - MAX ( 82 )
----
-25
-82

query II rowsort
SELECT DISTINCT 17 col0, - 23 + - 67 AS col0
----
17
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT 10 + ( COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-1335
SELECT 10 + ( COUNT ( * ) )
----
11

query II rowsort
SELECT - 78 col0, 25 AS col1
----
-78
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT COUNT( * ) + ( - - NULLIF ( + + ( 82 ), 35 / 24 ) )
----
83

skipif mysql # not compatible
query I rowsort label-1337
SELECT COUNT ( * ) + ( - - NULLIF ( + + ( 82 ), 35 / 24 ) )
----
83

query I rowsort
SELECT 91 * 46 col2
----
4186

query I rowsort
SELECT DISTINCT + 2 * - NULLIF ( - 50, - - 43 ) * - + 79 AS col2
----
-7900

query I rowsort
SELECT ALL - - ( NULLIF ( - 10, ( - 1 ) + + + 96 ) ) - + 9 AS col0
----
-19

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

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

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

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

query I rowsort
SELECT ALL + + 56 * 96 * 85 - - 99 AS col0
----
457059

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT COALESCE ( - 12, 92 + - + COUNT( * ) * + - 24 )
----
-12

skipif mysql # not compatible
query I rowsort label-1345
SELECT COALESCE ( - 12, 92 + - + COUNT ( * ) * + - 24 )
----
-12

query I rowsort
SELECT ( + + 4 ) * + 90
----
360

onlyif mysql # aggregate syntax: 
query II rowsort label-1347
SELECT ALL - + 30 AS col2, 61 + - - COUNT( ALL - 85 ) AS col1
----
-30
62

skipif mysql # not compatible
query II rowsort label-1347
SELECT ALL - + 30 AS col2, 61 + - - COUNT ( ALL - 85 ) AS col1
----
-30
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT + COALESCE ( + NULLIF ( + 57, + 9 ), 28 + 86, COUNT( - COALESCE ( 73, - 28, + - ( + ( - 67 ) ) + + 6 ) ) )
----
57

skipif mysql # not compatible
query I rowsort label-1348
SELECT + COALESCE ( + NULLIF ( + 57, + 9 ), 28 + 86, COUNT ( - COALESCE ( 73, - 28, + - ( + ( - 67 ) ) + + 6 ) ) )
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-1349
SELECT 1 AS col2, + 85 + MAX( - + 5 ) AS col0
----
1
80

skipif mysql # not compatible
query II rowsort label-1349
SELECT 1 AS col2, + 85 + MAX ( - + 5 ) AS col0
----
1
80

query II rowsort
SELECT 85 * 63 + + - 87 AS col1, 55 * 8
----
5268
440

query I rowsort
SELECT DISTINCT + 70 * 55 AS col1
----
3850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1352
SELECT MIN( ALL 73 ) * - - CAST( NULL AS SIGNED ) * + 92 + - - AVG ( DISTINCT + 38 ) / ( + COALESCE ( 48, + 60, - 97 - + + COUNT( * ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1352
SELECT MIN ( ALL 73 ) * - - CAST ( NULL AS INTEGER ) * + 92 + - - AVG ( DISTINCT + 38 ) / ( + COALESCE ( 48, + 60, - 97 - + + COUNT ( * ) ) ) AS col1
----
NULL

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

query II rowsort
SELECT DISTINCT - + 20 AS col1, + 76 * + 95
----
-20
7220

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

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL COUNT ( * ) + + COUNT ( * ) + - 8 AS col2
----
-6

query II rowsort
SELECT + 86, 11 AS col1
----
86
11

query I rowsort
SELECT ALL 7 + + 73 AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1358
SELECT + CASE - + 78 WHEN - + ( 47 ) + - COUNT( * ) THEN NULL WHEN 85 * CAST( NULL AS DECIMAL ) + 69 THEN - 29 + - AVG ( ALL + ( CAST( - 57 AS SIGNED ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1358
SELECT + CASE - + 78 WHEN - + ( 47 ) + - COUNT ( * ) THEN NULL WHEN 85 * CAST ( NULL AS REAL ) + 69 THEN - 29 + - AVG ( ALL + ( CAST ( - 57 AS INTEGER ) ) ) END
----
NULL

query I rowsort
SELECT + 89 + + 27 AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT ALL MAX( ( + 90 ) ) + - NULLIF ( - 89, + COUNT( * ) )
----
179

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL MAX ( ( + 90 ) ) + - NULLIF ( - 89, + COUNT ( * ) )
----
179

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

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

query I rowsort
SELECT + 35 * + + 63 AS col0
----
2205

onlyif mysql # DIV for integer division: 
query II rowsort label-1363
SELECT + 53 DIV 18, - 64 AS col2
----
2
-64

skipif mysql # not compatible
query II rowsort label-1363
SELECT + 53 / 18, - 64 AS col2
----
2
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT DISTINCT 58 + + COUNT( * ) + 88 * + 38
----
3403

skipif mysql # not compatible
query I rowsort label-1364
SELECT DISTINCT 58 + + COUNT ( * ) + 88 * + 38
----
3403

onlyif mysql # aggregate syntax: 
query II rowsort label-1365
SELECT - SUM( + 25 ) col2, + 30 + 59
----
-25
89

skipif mysql # not compatible
query II rowsort label-1365
SELECT - SUM ( + 25 ) col2, + 30 + 59
----
-25
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT - 87 + + - MAX( ALL - - 13 )
----
-100

skipif mysql # not compatible
query I rowsort label-1366
SELECT - 87 + + - MAX ( ALL - - 13 )
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL 93 - COUNT( + 59 )
----
92

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL 93 - COUNT ( + 59 )
----
92

query II rowsort
SELECT + 99 * - + 94 col0, 20
----
-9306
20

query I rowsort
SELECT + 69 * ( - 23 ) AS col1
----
-1587

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1370
SELECT ALL - ( 25 ) / + + 85 + 31 + - MIN( - + 2 ) - - 45 * - 23 + + + 75 * 13 + + 3 * - + COUNT( * ) + - 29 * AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + 87 * + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL - ( 25 ) / + + 85 + 31 + - MIN ( - + 2 ) - - 45 * - 23 + + + 75 * 13 + + 3 * - + COUNT ( * ) + - 29 * AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + 87 * + 37 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1371
SELECT - 40 - - ( + 9 ) + + 62 * 89 * - 34 * - 49 + 69 DIV - + 67 AS col2
----
9192956

skipif mysql # not compatible
query I rowsort label-1371
SELECT - 40 - - ( + 9 ) + + 62 * 89 * - 34 * - 49 + 69 / - + 67 AS col2
----
9192956

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1372
SELECT - 10 DIV 2 * 41 + - - 63, COUNT( * ) AS col2
----
-142
1

skipif mysql # not compatible
query II rowsort label-1372
SELECT - 10 / 2 * 41 + - - 63, COUNT ( * ) AS col2
----
-142
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1373
SELECT - 84 DIV + + 73 + + 52 - + 64 + - - 18 + + 7 * - NULLIF ( - 21, - - COUNT( * ) DIV 49 * 47 ) * - 34 col1, - 43 + COUNT( * ) + - 34 * + 92
----
-4993
-3170

skipif mysql # not compatible
query II rowsort label-1373
SELECT - 84 / + + 73 + + 52 - + 64 + - - 18 + + 7 * - NULLIF ( - 21, - - COUNT ( * ) / 49 * 47 ) * - 34 col1, - 43 + COUNT ( * ) + - 34 * + 92
----
-4993
-3170

onlyif mysql # DIV for integer division: 
query I rowsort label-1374
SELECT ALL - NULLIF ( 9, 87 ) * + + 1 - - 5 DIV - - 32 - 96
----
-105

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL - NULLIF ( 9, 87 ) * + + 1 - - 5 / - - 32 - 96
----
-105

query I rowsort
SELECT - + 35 + - 86
----
-121

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT ALL - 82 * + 46 * - 58 * MIN( + 81 ) * + 86 + + 66 + - 19 AS col0
----
1523993663

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL - 82 * + 46 * - 58 * MIN ( + 81 ) * + 86 + + 66 + - 19 AS col0
----
1523993663

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1378
SELECT + COALESCE ( + 27, 60 * - 20 + - - 62 DIV - 13 ) * + 6 + + CAST( - 54 AS SIGNED ) + 63 AS col1
----
171

skipif mysql # not compatible
query I rowsort label-1378
SELECT + COALESCE ( + 27, 60 * - 20 + - - 62 / - 13 ) * + 6 + + CAST ( - 54 AS INTEGER ) + 63 AS col1
----
171

query II rowsort
SELECT + NULLIF ( - ( - + 60 ), + 55 ) AS col1, - 86
----
60
-86

query I rowsort
SELECT DISTINCT 89 * 82 + 71 - 30 AS col2
----
7339

query I rowsort
SELECT COALESCE ( - - 19, - 39 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT - MIN( ALL - 9 ) * + + 20 * 88 AS col2
----
15840

skipif mysql # not compatible
query I rowsort label-1382
SELECT - MIN ( ALL - 9 ) * + + 20 * 88 AS col2
----
15840

query I rowsort
SELECT ALL 89 * + 83 + - 12 col1
----
7375

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1385
SELECT - CAST( NULL AS DECIMAL ) * + ( - 17 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1385
SELECT - CAST ( NULL AS REAL ) * + ( - 17 ) AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( + 50, 2 - 96 - + 8 ) * - 15 AS col2
----
-750

query I rowsort
SELECT - 6 * - + 9
----
54

query II rowsort
SELECT DISTINCT 16 AS col0, - 29 * - - 52 AS col1
----
16
-1508

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT + 76 - + - 21 * + COUNT( * ) col0
----
97

skipif mysql # not compatible
query I rowsort label-1389
SELECT + 76 - + - 21 * + COUNT ( * ) col0
----
97

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1392
SELECT ALL COUNT( ALL CAST( + + 81 AS SIGNED ) ) AS col0
----
1

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

query I rowsort
SELECT + 45 * + 43
----
1935

query I rowsort
SELECT + 63 + - - 26 col1
----
89

query II rowsort
SELECT DISTINCT - 64 * 15 * - 15, 17 AS col1
----
14400
17

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

query I rowsort
SELECT + + ( + 59 ) * - - 77 + + 94 col2
----
4637

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT + + 25 + + ( 3 ) + - COUNT( * ) col1
----
27

skipif mysql # not compatible
query I rowsort label-1398
SELECT + + 25 + + ( 3 ) + - COUNT ( * ) col1
----
27

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1400
SELECT - CAST( - ( + + 48 ) AS SIGNED ) + + 88 AS col0
----
136

skipif mysql # not compatible
query I rowsort label-1400
SELECT - CAST ( - ( + + 48 ) AS INTEGER ) + + 88 AS col0
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1401
SELECT ALL - COALESCE ( + 19, + 74 ) * - + 76 * + 69 col0, SUM( + CAST( NULL AS SIGNED ) ) * + - 73 + - 35 AS col2
----
99636
NULL

skipif mysql # not compatible
query II rowsort label-1401
SELECT ALL - COALESCE ( + 19, + 74 ) * - + 76 * + 69 col0, SUM ( + CAST ( NULL AS INTEGER ) ) * + - 73 + - 35 AS col2
----
99636
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1402
SELECT ALL CASE - + 16 WHEN + COUNT( * ) THEN NULL WHEN + COUNT( * ) + CASE - COUNT( * ) WHEN + - 3 + COUNT( * ) THEN + 3 END - COUNT( ALL + + 85 ) + + CAST( NULL AS DECIMAL ) * ( + - CASE - + 22 WHEN + 15 THEN 61 * 13 + 87 ELSE NULL END ) THEN - 63 END / - 16 + 57 * 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL CASE - + 16 WHEN + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) + CASE - COUNT ( * ) WHEN + - 3 + COUNT ( * ) THEN + 3 END - COUNT ( ALL + + 85 ) + + CAST ( NULL AS REAL ) * ( + - CASE - + 22 WHEN + 15 THEN 61 * 13 + 87 ELSE NULL END ) THEN - 63 END / - 16 + 57 * 58 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1403
SELECT DISTINCT + 93 DIV + 25 + + + 43, 18 AS col2
----
46
18

skipif mysql # not compatible
query II rowsort label-1403
SELECT DISTINCT + 93 / + 25 + + + 43, 18 AS col2
----
46
18

query II rowsort
SELECT ALL - - 41 AS col2, 45 AS col1
----
41
45

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

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

query I rowsort
SELECT ALL - 69 + - + 40 * 5 + 91 + - COALESCE ( + - 79, - + 21 * - 13 * + 49 * + + 73 * + + 19 ) * - 6
----
-652

query I rowsort
SELECT 63 * + COALESCE ( 29, 56, 8 + + 0 ) - - 38
----
1865

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

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

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

query II rowsort
SELECT 13, 59 AS col2
----
13
59

query I rowsort
SELECT ALL - 87 - 38 AS col0
----
-125

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1414
SELECT DISTINCT - 5 - + ( 20 ) DIV - + 85 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1414
SELECT DISTINCT - 5 - + ( 20 ) / - + 85 AS col1
----
-5

query I rowsort
SELECT - 59 * + + 4 - + 73 * - - 13 AS col2
----
-1185

query II rowsort
SELECT + 7, + 97 AS col0
----
7
97

query I rowsort
SELECT 94 + + 60 AS col1
----
154

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1419
SELECT 0 * - - 52 * - COALESCE ( CASE COALESCE ( + 19, + CAST( NULL AS SIGNED ) ) WHEN + 25 * - CASE - COUNT( * ) WHEN + - 43 * + + 19 + - 52 + - + 49 THEN + - ( - + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) ) * - 68 ELSE 91 + ( COUNT( * ) + + COUNT( DISTINCT + CAST( 91 AS SIGNED ) ) ) END THEN + 17 WHEN COUNT( * ) THEN NULL WHEN - 15 THEN NULL END, + 9 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1419
SELECT 0 * - - 52 * - COALESCE ( CASE COALESCE ( + 19, + CAST ( NULL AS INTEGER ) ) WHEN + 25 * - CASE - COUNT ( * ) WHEN + - 43 * + + 19 + - 52 + - + 49 THEN + - ( - + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) * - 68 ELSE 91 + ( COUNT ( * ) + + COUNT ( DISTINCT + CAST ( 91 AS INTEGER ) ) ) END THEN + 17 WHEN COUNT ( * ) THEN NULL WHEN - 15 THEN NULL END, + 9 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT 61 * COUNT( * ) + + 54
----
115

skipif mysql # not compatible
query I rowsort label-1420
SELECT 61 * COUNT ( * ) + + 54
----
115

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

query I rowsort
SELECT DISTINCT 99 * - + CASE + + 38 WHEN 70 THEN - - 14 END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) / + 60 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1424
SELECT - CAST( NULL AS SIGNED ) AS col0, + MAX( + 50 ) AS col1
----
NULL
50

skipif mysql # not compatible
query II rowsort label-1424
SELECT - CAST ( NULL AS INTEGER ) AS col0, + MAX ( + 50 ) AS col1
----
NULL
50

query I rowsort
SELECT - COALESCE ( - 95, - 50 )
----
95

query I rowsort
SELECT ALL 19 + - COALESCE ( + 22, 19 + + 17 + + 35 * - + 60 * 41 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1427
SELECT 21 - + CAST( NULL AS SIGNED ) * - NULLIF ( - - 96, - 49 ) * - 9 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT 21 - + CAST ( NULL AS INTEGER ) * - NULLIF ( - - 96, - 49 ) * - 9 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT ALL + NULLIF ( CASE - + 85 WHEN + + 92 * - 57 * 69 THEN + + 99 WHEN - + COUNT( * ) - - 98 + + ( + ( + 45 ) ) * - ( 44 ) / - NULLIF ( + COUNT( * ), - 43 - - 88 ) * 21 - MAX( ALL 73 ) THEN + 54 * + 79 + 97 ELSE NULL END, + 7 + - 24 ) + COALESCE ( 12, + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL + NULLIF ( CASE - + 85 WHEN + + 92 * - 57 * 69 THEN + + 99 WHEN - + COUNT ( * ) - - 98 + + ( + ( + 45 ) ) * - ( 44 ) / - NULLIF ( + COUNT ( * ), - 43 - - 88 ) * 21 - MAX ( ALL 73 ) THEN + 54 * + 79 + 97 ELSE NULL END, + 7 + - 24 ) + COALESCE ( 12, + 4 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1429
SELECT ALL 58, COALESCE ( + 29, + 58 ) * + MIN( DISTINCT + 31 ) + ( 53 ) - - 48 AS col0
----
58
1000

skipif mysql # not compatible
query II rowsort label-1429
SELECT ALL 58, COALESCE ( + 29, + 58 ) * + MIN ( DISTINCT + 31 ) + ( 53 ) - - 48 AS col0
----
58
1000

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT ALL + COUNT( * ) + - + 76
----
-75

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL + COUNT ( * ) + - + 76
----
-75

query I rowsort
SELECT 90 - 1 + 6
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1433
SELECT - COUNT( * ), MAX( ALL COALESCE ( 19, - 60, + ( - 36 ) * - + ( + + ( 8 ) ) ) ) AS col0
----
-1
19

skipif mysql # not compatible
query II rowsort label-1433
SELECT - COUNT ( * ), MAX ( ALL COALESCE ( 19, - 60, + ( - 36 ) * - + ( + + ( 8 ) ) ) ) AS col0
----
-1
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1434
SELECT ALL + CASE + 31 WHEN 0 THEN + + 65 - + 75 + CAST( - MAX( + ( 60 ) ) AS SIGNED ) END AS col1, 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-1434
SELECT ALL + CASE + 31 WHEN 0 THEN + + 65 - + 75 + CAST ( - MAX ( + ( 60 ) ) AS INTEGER ) END AS col1, 10
----
NULL
10

query II rowsort
SELECT + - 29 AS col1, 30 + + 40 AS col0
----
-29
70

query II rowsort
SELECT - 18 + - 61 * - + 65 + - - 80 AS col0, 6 AS col0
----
4027
6

query I rowsort
SELECT ALL - - CASE - 65 WHEN 89 THEN NULLIF ( - 47, + 24 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1438
SELECT DISTINCT + COUNT( * ) / - CAST( NULL AS SIGNED ) AS col0, 69 * + - COALESCE ( - - ( + 1 ), + NULLIF ( 76, 65 * + 59 + + 5 * - 94 + - + 51 + AVG ( ALL 51 ) + 81 + - - 14 * 96 ) - ( 67 ) )
----
NULL
-69

skipif mysql # not compatible
query II rowsort label-1438
SELECT DISTINCT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col0, 69 * + - COALESCE ( - - ( + 1 ), + NULLIF ( 76, 65 * + 59 + + 5 * - 94 + - + 51 + AVG ( ALL 51 ) + 81 + - - 14 * 96 ) - ( 67 ) )
----
NULL
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT DISTINCT 83 - - - MAX( DISTINCT + 5 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT 83 - - - MAX ( DISTINCT + 5 ) AS col0
----
78

query I rowsort
SELECT - 93 * + 99 + + - 46 + + 23
----
-9230

query II rowsort
SELECT DISTINCT + 74 - + 69 col2, + 24
----
5
24

query I rowsort
SELECT 83 * + - 89 * + 51 + - 61
----
-376798

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT ALL + CASE - ( 7 ) WHEN - 89 * COUNT( ALL + - 41 ) THEN NULL ELSE - + 47 END * + 41 + + 9 + - 82
----
-2000

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL + CASE - ( 7 ) WHEN - 89 * COUNT ( ALL + - 41 ) THEN NULL ELSE - + 47 END * + 41 + + 9 + - 82
----
-2000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1444
SELECT ALL COUNT( ALL + 29 ) * 47 * - 3 DIV - - COUNT( * ) AS col0, 53
----
-141
53

skipif mysql # not compatible
query II rowsort label-1444
SELECT ALL COUNT ( ALL + 29 ) * 47 * - 3 / - - COUNT ( * ) AS col0, 53
----
-141
53

query I rowsort
SELECT DISTINCT - CASE 12 WHEN + 9 THEN NULL ELSE - ( - 44 ) END AS col1
----
-44

query II rowsort
SELECT ALL + 57 * - - 93 * + 50 AS col1, ( 7 ) AS col2
----
265050
7

onlyif mysql # aggregate syntax: 
query II rowsort label-1447
SELECT ALL - 84 + NULLIF ( + 44, 19 ) - - 73 + - - 64 - + 29, + 40 * 68 * + - 93 * - COUNT( * ) AS col1
----
68
252960

skipif mysql # not compatible
query II rowsort label-1447
SELECT ALL - 84 + NULLIF ( + 44, 19 ) - - 73 + - - 64 - + 29, + 40 * 68 * + - 93 * - COUNT ( * ) AS col1
----
68
252960

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1448
SELECT - 33 DIV - NULLIF ( COUNT( * ), + CASE - 87 WHEN + 66 * COUNT( ALL + 9 ) THEN ( - - 28 ) END * - - 50 * - COUNT( * ) ) col1, 43
----
33
43

skipif mysql # not compatible
query II rowsort label-1448
SELECT - 33 / - NULLIF ( COUNT ( * ), + CASE - 87 WHEN + 66 * COUNT ( ALL + 9 ) THEN ( - - 28 ) END * - - 50 * - COUNT ( * ) ) col1, 43
----
33
43

query I rowsort
SELECT + ( 82 ) + - 9
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT - 91 * - + 24 * - + 43 * - + CASE - ( - + COUNT( * ) ) WHEN + 17 + + 5 THEN NULL ELSE + + 45 END col0
----
4226040

skipif mysql # not compatible
query I rowsort label-1450
SELECT - 91 * - + 24 * - + 43 * - + CASE - ( - + COUNT ( * ) ) WHEN + 17 + + 5 THEN NULL ELSE + + 45 END col0
----
4226040

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT ALL - MAX( ALL + + 57 ) + - COUNT( * ) * + - 67 * + 96 - - - 51 AS col1
----
6324

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL - MAX ( ALL + + 57 ) + - COUNT ( * ) * + - 67 * + 96 - - - 51 AS col1
----
6324

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1453
SELECT - COUNT( * ) + + - 38 * 55 * - MAX( ALL + 17 ) + - 36 * 32, + COUNT( * ) - 63 * - COUNT( * ) + - + CASE + + 67 WHEN - + 20 THEN - + NULLIF ( - ( - + 12 ), + CASE - 58 WHEN - 95 + 9 * 3 THEN 78 * COUNT( * ) WHEN - 67 * - 97 THEN 23 ELSE 22 / - COUNT( * ) + + 33 END * 54 ) / 43 WHEN CAST( 11 AS SIGNED ) * 56 + + 13 THEN NULL WHEN COUNT( * ) THEN 93 + 28 * 79 END + NULLIF ( 1, COALESCE ( 31, - 75 * 26 ) * 28 + - COUNT( 38 ) ) AS col2
----
34377
NULL

skipif mysql # not compatible
query II rowsort label-1453
SELECT - COUNT ( * ) + + - 38 * 55 * - MAX ( ALL + 17 ) + - 36 * 32, + COUNT ( * ) - 63 * - COUNT ( * ) + - + CASE + + 67 WHEN - + 20 THEN - + NULLIF ( - ( - + 12 ), + CASE - 58 WHEN - 95 + 9 * 3 THEN 78 * COUNT ( * ) WHEN - 67 * - 97 THEN 23 ELSE 22 / - COUNT ( * ) + + 33 END * 54 ) / 43 WHEN CAST ( 11 AS INTEGER ) * 56 + + 13 THEN NULL WHEN COUNT ( * ) THEN 93 + 28 * 79 END + NULLIF ( 1, COALESCE ( 31, - 75 * 26 ) * 28 + - COUNT ( 38 ) ) AS col2
----
34377
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT - + 98 * + COALESCE ( + COUNT( * ), + 22, - - NULLIF ( - ( - 24 ), + 54 ) ) * - 85 + + COALESCE ( - CASE 54 WHEN + - 62 THEN + 58 END, - 71 ) AS col1
----
8259

skipif mysql # not compatible
query I rowsort label-1454
SELECT - + 98 * + COALESCE ( + COUNT ( * ), + 22, - - NULLIF ( - ( - 24 ), + 54 ) ) * - 85 + + COALESCE ( - CASE 54 WHEN + - 62 THEN + 58 END, - 71 ) AS col1
----
8259

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1456
SELECT ALL + + 6 + - CASE - 7 WHEN 73 THEN NULL WHEN 94 * 50 THEN + COUNT( * ) * - - 12 * - NULLIF ( CASE + 44 WHEN + + 95 THEN NULL ELSE - 83 * ( 64 ) - - 30 + - - COUNT( * ) + - 14 DIV + CAST( - 25 AS SIGNED ) END, 71 ) + ( 59 ) WHEN - 2 + 10 THEN NULL ELSE + 4 + NULLIF ( + 56, - 30 ) END + COUNT( * ) * + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL + + 6 + - CASE - 7 WHEN 73 THEN NULL WHEN 94 * 50 THEN + COUNT ( * ) * - - 12 * - NULLIF ( CASE + 44 WHEN + + 95 THEN NULL ELSE - 83 * ( 64 ) - - 30 + - - COUNT ( * ) + - 14 / + CAST ( - 25 AS INTEGER ) END, 71 ) + ( 59 ) WHEN - 2 + 10 THEN NULL ELSE + 4 + NULLIF ( + 56, - 30 ) END + COUNT ( * ) * + COUNT ( * )
----
-53

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1457
SELECT DISTINCT 37 - + 30 + + - CAST( NULL AS SIGNED ) * - - 36 + + - 43 * CAST( + + 15 AS SIGNED ) * - 51 * + 67 * - CASE + 70 WHEN + - 47 * + 76 + + 98 THEN + CAST( NULL AS DECIMAL ) - - 62 WHEN + 46 + 69 THEN 68 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1457
SELECT DISTINCT 37 - + 30 + + - CAST ( NULL AS INTEGER ) * - - 36 + + - 43 * CAST ( + + 15 AS INTEGER ) * - 51 * + 67 * - CASE + 70 WHEN + - 47 * + 76 + + 98 THEN + CAST ( NULL AS REAL ) - - 62 WHEN + 46 + 69 THEN 68 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT - + NULLIF ( + 76, - COUNT( * ) ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-1459
SELECT - + NULLIF ( + 76, - COUNT ( * ) ) col2
----
-76

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

skipif mysql # not compatible
query I rowsort label-1460
SELECT + CAST ( NULL AS INTEGER ) * - 97 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( - 5, 58 ) col2
----
-5

query I rowsort
SELECT NULLIF ( - + 54, NULLIF ( 82, 45 ) ) AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1463
SELECT - CAST( - 76 AS SIGNED ) * - - 24 AS col2
----
1824

skipif mysql # not compatible
query I rowsort label-1463
SELECT - CAST ( - 76 AS INTEGER ) * - - 24 AS col2
----
1824

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

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

query I rowsort
SELECT + 6 * + 32 AS col1
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1466
SELECT CASE + + 77 WHEN 45 THEN + CAST( NULL AS SIGNED ) / 82 + + - COUNT( * ) END AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1466
SELECT CASE + + 77 WHEN 45 THEN + CAST ( NULL AS INTEGER ) / 82 + + - COUNT ( * ) END AS col2, COUNT ( * )
----
NULL
1

query II rowsort
SELECT ALL + 65 col0, - 81
----
65
-81

query I rowsort
SELECT + NULLIF ( - 34, + 56 ) AS col0
----
-34

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT ALL - 98 DIV + 56
----
-1

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL - 98 / + 56
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1472
SELECT + 34 DIV - 17
----
-2

skipif mysql # not compatible
query I rowsort label-1472
SELECT + 34 / - 17
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1473
SELECT DISTINCT - SUM( ALL - + 48 ) * + 86 + - 67 + COUNT( * ) * - COUNT( * ) + - ( 54 ) * + 7 * - + 76 DIV - COUNT( * ) AS col2, + 73 * + - COUNT( * ) AS col0
----
-24668
-73

skipif mysql # not compatible
query II rowsort label-1473
SELECT DISTINCT - SUM ( ALL - + 48 ) * + 86 + - 67 + COUNT ( * ) * - COUNT ( * ) + - ( 54 ) * + 7 * - + 76 / - COUNT ( * ) AS col2, + 73 * + - COUNT ( * ) AS col0
----
-24668
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT ALL + COUNT( ALL 40 ) * + - 54 + - COUNT( * ) - + 73
----
-128

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL + COUNT ( ALL 40 ) * + - 54 + - COUNT ( * ) - + 73
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT MAX( 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1475
SELECT MAX ( 79 ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT - - COUNT( DISTINCT 21 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1476
SELECT - - COUNT ( DISTINCT 21 ) col2
----
1

query I rowsort
SELECT DISTINCT - - 46 + - - 18
----
64

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

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

query I rowsort
SELECT - 7 * + + 87 AS col2
----
-609

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1480
SELECT DISTINCT - - NULLIF ( - 3, + 6 ) * + - CAST( + 64 AS SIGNED )
----
192

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT - - NULLIF ( - 3, + 6 ) * + - CAST ( + 64 AS INTEGER )
----
192

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT + - 25 - + 85 - + 32 - COUNT( * ) AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-1482
SELECT + - 25 - + 85 - + 32 - COUNT ( * ) AS col1
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT - + MIN( DISTINCT - + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-1483
SELECT - + MIN ( DISTINCT - + 69 )
----
69

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1485
SELECT ALL - 81 DIV + 38 col0
----
-2

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL - 81 / + 38 col0
----
-2

query I rowsort
SELECT - - 76 + + - 66 + + + 72
----
82

query I rowsort
SELECT ALL + COALESCE ( + - 78, + 3, + 4 )
----
-78

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

query II rowsort
SELECT DISTINCT - 37 - + 56 + 4, + 88 AS col2
----
-89
88

query I rowsort
SELECT - 36 - 15 AS col0
----
-51

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

skipif mysql # not compatible
query I rowsort label-1491
SELECT - COUNT ( * ) * - + 65 - 97 AS col0
----
-32

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

query I rowsort
SELECT - 13 + 95 + + 69
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT - ( - + 80 ) * - 75 * + COUNT( * ) AS col0
----
-6000

skipif mysql # not compatible
query I rowsort label-1494
SELECT - ( - + 80 ) * - 75 * + COUNT ( * ) AS col0
----
-6000

query I rowsort
SELECT + 89 * - - 69 * - 37
----
-227217

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

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

query I rowsort
SELECT + 65 * 71 * - 86 col0
----
-396890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1498
SELECT CAST( + COALESCE ( 0, - CAST( - - MIN( ALL - 40 ) AS SIGNED ) ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1498
SELECT CAST ( + COALESCE ( 0, - CAST ( - - MIN ( ALL - 40 ) AS INTEGER ) ) AS INTEGER ) AS col0
----
0

query I rowsort
SELECT + 99 + + + 29 + - - 68
----
196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1500
SELECT - 46 * - 4 * - 4 + - 14 DIV + + COUNT( * ) + 56
----
-694

skipif mysql # not compatible
query I rowsort label-1500
SELECT - 46 * - 4 * - 4 + - 14 / + + COUNT ( * ) + 56
----
-694

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1501
SELECT ALL + COUNT( * ) DIV + 82 + SUM( ALL 48 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL + COUNT ( * ) / + 82 + SUM ( ALL 48 ) AS col2
----
48

query I rowsort
SELECT + CASE - 48 WHEN - + 51 + - 20 * 37 + - 55 + - 92 THEN 89 END
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1504
SELECT + 63 * + - CAST( NULL AS SIGNED ) * 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1504
SELECT + 63 * + - CAST ( NULL AS INTEGER ) * 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1505
SELECT ALL 75 * - - COUNT( * ) DIV + SUM( - - 82 )
----
0

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL 75 * - - COUNT ( * ) / + SUM ( - - 82 )
----
0

query I rowsort
SELECT + 81 + ( + 7 ) + + 2
----
90

query I rowsort
SELECT DISTINCT + 48 * + 62 + + - 81
----
2895

onlyif mysql # aggregate syntax: 
query II rowsort label-1508
SELECT DISTINCT 6 * - - 78 + + + 10 * + - 32 AS col2, COUNT( * ) * + COUNT( * ) * - ( + 38 ) * + 55
----
148
-2090

skipif mysql # not compatible
query II rowsort label-1508
SELECT DISTINCT 6 * - - 78 + + + 10 * + - 32 AS col2, COUNT ( * ) * + COUNT ( * ) * - ( + 38 ) * + 55
----
148
-2090

query I rowsort
SELECT 66 * - + 51 AS col1
----
-3366

query I rowsort
SELECT 68 - - 20 + - ( 5 ) AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1511
SELECT + 23 * - CASE + - AVG ( DISTINCT + 8 ) WHEN 44 * - - COALESCE ( - - 96, + ( - ( + 58 ) ) ) - + 9 THEN - 38 + 59 * - - 50 * - + 37 ELSE - - 42 * - MAX( DISTINCT - - CAST( + 74 AS SIGNED ) ) END + - 28 * + 59 AS col0
----
69832

skipif mysql # not compatible
query I rowsort label-1511
SELECT + 23 * - CASE + - AVG ( DISTINCT + 8 ) WHEN 44 * - - COALESCE ( - - 96, + ( - ( + 58 ) ) ) - + 9 THEN - 38 + 59 * - - 50 * - + 37 ELSE - - 42 * - MAX ( DISTINCT - - CAST ( + 74 AS INTEGER ) ) END + - 28 * + 59 AS col0
----
69832

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1512
SELECT DISTINCT - ( - - MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) ) - - 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT - ( - - MAX ( DISTINCT + CAST ( NULL AS REAL ) ) ) - - 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT + ( - COUNT( * ) ) + NULLIF ( - 33, AVG ( DISTINCT + ( 59 ) ) + - - 35 ) - - 42 + - 46
----
-38

skipif mysql # not compatible
query I rowsort label-1513
SELECT + ( - COUNT ( * ) ) + NULLIF ( - 33, AVG ( DISTINCT + ( 59 ) ) + - - 35 ) - - 42 + - 46
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT ALL + COALESCE ( 45, 30, 30 + COUNT( * ) ) - - 12 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL + COALESCE ( 45, 30, 30 + COUNT ( * ) ) - - 12 AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1515
SELECT - 71 + - - COUNT( DISTINCT - + 72 ) + - + MAX( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1515
SELECT - 71 + - - COUNT ( DISTINCT - + 72 ) + - + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1516
SELECT - ( - - 48 ) + + - 70 + + + ( + 15 ) * 57 DIV 66 AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-1516
SELECT - ( - - 48 ) + + - 70 + + + ( + 15 ) * 57 / 66 AS col2
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT ALL - - 39 * + 31 * - - COUNT( + 6 )
----
1209

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL - - 39 * + 31 * - - COUNT ( + 6 )
----
1209

query I rowsort
SELECT + 20 + + + 64
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT SUM( DISTINCT + 40 ) * 66 * - + 10 + + 67 AS col1
----
-26333

skipif mysql # not compatible
query I rowsort label-1519
SELECT SUM ( DISTINCT + 40 ) * 66 * - + 10 + + 67 AS col1
----
-26333

query I rowsort
SELECT ALL CASE 21 WHEN - - 71 * 66 * ( 14 ) - - 57 + 53 + - 82 * + 70 + - - 90 THEN NULL WHEN - + 66 THEN NULL WHEN - + 79 THEN - 28 * + + 36 + - 1 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1521
SELECT SUM( - 19 ) DIV - - 31 + 59
----
59

skipif mysql # not compatible
query I rowsort label-1521
SELECT SUM ( - 19 ) / - - 31 + 59
----
59

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

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

query I rowsort
SELECT DISTINCT - 15 + - - 51 * + 32 + - 18
----
1599

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1524
SELECT 13 DIV COALESCE ( - 1, ( + 19 ), + 72 + + COUNT( * ) * - COUNT( * ), - 54 )
----
-13

skipif mysql # not compatible
query I rowsort label-1524
SELECT 13 / COALESCE ( - 1, ( + 19 ), + 72 + + COUNT ( * ) * - COUNT ( * ), - 54 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1525
SELECT ALL - MIN( + 24 ) + - - CAST( + 37 AS SIGNED ) + - 18 * 6 AS col0, + 32
----
-95
32

skipif mysql # not compatible
query II rowsort label-1525
SELECT ALL - MIN ( + 24 ) + - - CAST ( + 37 AS INTEGER ) + - 18 * 6 AS col0, + 32
----
-95
32

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

skipif mysql # not compatible
query I rowsort label-1526
SELECT DISTINCT + COUNT ( * ) / - - 69
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1527
SELECT 34 DIV + 75 * - MIN( ALL + 10 ) + ( 6 ) + 92
----
98

skipif mysql # not compatible
query I rowsort label-1527
SELECT 34 / + 75 * - MIN ( ALL + 10 ) + ( 6 ) + 92
----
98

query I rowsort
SELECT 38 * - + 43 AS col0
----
-1634

query I rowsort
SELECT ALL + 98 + + + 44 * 7 * + 38 + - 27
----
11775

query I rowsort
SELECT 48 * + 38 * - 73 * 63
----
-8388576

onlyif mysql # DIV for integer division: 
query I rowsort label-1531
SELECT 19 - - + 11 DIV + 20 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1531
SELECT 19 - - + 11 / + 20 AS col1
----
19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT ALL - COUNT( * ) + NULLIF ( - 1, 49 )
----
-2

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL - COUNT ( * ) + NULLIF ( - 1, 49 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT DISTINCT - CASE - COUNT( * ) WHEN + 43 * SUM( DISTINCT - 47 ) * + 17 + + 32 * - CASE 97 WHEN - COUNT( * ) + - 13 THEN + 66 * 87 * + COUNT( * ) + - 63 + 37 * + 48 WHEN - 86 * - 34 THEN - CASE + 38 WHEN 28 + 93 * 74 THEN NULL WHEN COALESCE ( 40, - 46 ) * 90 THEN 52 END END + 41 THEN - 93 / - 81 + 42 WHEN 44 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT - CASE - COUNT ( * ) WHEN + 43 * SUM ( DISTINCT - 47 ) * + 17 + + 32 * - CASE 97 WHEN - COUNT ( * ) + - 13 THEN + 66 * 87 * + COUNT ( * ) + - 63 + 37 * + 48 WHEN - 86 * - 34 THEN - CASE + 38 WHEN 28 + 93 * 74 THEN NULL WHEN COALESCE ( 40, - 46 ) * 90 THEN 52 END END + 41 THEN - 93 / - 81 + 42 WHEN 44 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1535
SELECT 44 AS col2, + CAST( NULL AS SIGNED ) * + MIN( + + 6 ) + + 26 + + - 91 AS col1
----
44
NULL

skipif mysql # not compatible
query II rowsort label-1535
SELECT 44 AS col2, + CAST ( NULL AS INTEGER ) * + MIN ( + + 6 ) + + 26 + + - 91 AS col1
----
44
NULL

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

query I rowsort
SELECT 91 * 46 + - 40 + 32
----
4178

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT 80 - + + 52 DIV - 55
----
80

skipif mysql # not compatible
query I rowsort label-1538
SELECT 80 - + + 52 / - 55
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT + CASE - 18 WHEN + + 52 / 77 * - + 29 + + 13 + - 43 - - 92 THEN NULL WHEN - COUNT( * ) * + - 67 THEN NULL ELSE 47 END AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1539
SELECT + CASE - 18 WHEN + + 52 / 77 * - + 29 + + 13 + - 43 - - 92 THEN NULL WHEN - COUNT ( * ) * + - 67 THEN NULL ELSE 47 END AS col1
----
47

query II rowsort
SELECT - 77, + 24 AS col1
----
-77
24

onlyif mysql # aggregate syntax: 
query II rowsort label-1541
SELECT ALL - 70 AS col1, ( + 68 ) * + 51 + COUNT( DISTINCT + 73 )
----
-70
3469

skipif mysql # not compatible
query II rowsort label-1541
SELECT ALL - 70 AS col1, ( + 68 ) * + 51 + COUNT ( DISTINCT + 73 )
----
-70
3469

query II rowsort
SELECT + 44 AS col1, 26 AS col2
----
44
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1543
SELECT DISTINCT CASE CAST( NULL AS SIGNED ) WHEN + 53 THEN NULL WHEN - AVG ( 11 ) THEN COALESCE ( - CAST( - + 34 AS DECIMAL ), - 29, + COALESCE ( - - 17, + + 53, + 40 + + 84 + 51 + + COUNT( * ) + COUNT( * ) + + 27 * + - COUNT( * ) * - 11 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT CASE CAST ( NULL AS INTEGER ) WHEN + 53 THEN NULL WHEN - AVG ( 11 ) THEN COALESCE ( - CAST ( - + 34 AS REAL ), - 29, + COALESCE ( - - 17, + + 53, + 40 + + 84 + 51 + + COUNT ( * ) + COUNT ( * ) + + 27 * + - COUNT ( * ) * - 11 ) ) END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT + 35 + - + 95 + COUNT( * ) * + COUNT( * ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-1545
SELECT + 35 + - + 95 + COUNT ( * ) * + COUNT ( * ) AS col1
----
-59

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

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

query II rowsort
SELECT ALL 46, - 30 AS col1
----
46
-30

query II rowsort
SELECT ( 42 ) * - + 61 AS col2, 36
----
-2562
36

query I rowsort
SELECT ALL 15 + 68 AS col2
----
83

query I rowsort
SELECT 4 + ( + 60 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1551
SELECT CAST( NULL AS SIGNED ) - - 0 + - 26 / + ( - + 95 ) + - AVG ( DISTINCT - + 56 ) * - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1551
SELECT CAST ( NULL AS INTEGER ) - - 0 + - 26 / + ( - + 95 ) + - AVG ( DISTINCT - + 56 ) * - 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT ALL 12 + + 51 + - + COUNT( * ) * - 53 * + + 73 AS col1
----
3932

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL 12 + + 51 + - + COUNT ( * ) * - 53 * + + 73 AS col1
----
3932

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT NULLIF ( - 9, - COUNT( * ) ) - + 0
----
-9

skipif mysql # not compatible
query I rowsort label-1553
SELECT NULLIF ( - 9, - COUNT ( * ) ) - + 0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT 3 + + - 35 * + - MIN( 43 ) + - 92
----
1416

skipif mysql # not compatible
query I rowsort label-1554
SELECT 3 + + - 35 * + - MIN ( 43 ) + - 92
----
1416

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1556
SELECT ALL 6 + CASE COUNT( * ) WHEN CAST( - - 38 AS SIGNED ) THEN + 56 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL 6 + CASE COUNT ( * ) WHEN CAST ( - - 38 AS INTEGER ) THEN + 56 ELSE NULL END
----
NULL

query II rowsort
SELECT 78 AS col2, + 95 AS col2
----
78
95

query I rowsort
SELECT 48 + + 28
----
76

query II rowsort
SELECT + 60 AS col1, 74 + - 96
----
60
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT DISTINCT - COUNT( DISTINCT - 88 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT - COUNT ( DISTINCT - 88 ) AS col1
----
-1

query I rowsort
SELECT 28 + - 73 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT ALL + COUNT( * ) * 53 * + 30 + + 78 AS col0
----
1668

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL + COUNT ( * ) * 53 * + 30 + + 78 AS col0
----
1668

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT - 38 * - COUNT( * ) + - 65 + 7
----
-20

skipif mysql # not compatible
query I rowsort label-1563
SELECT - 38 * - COUNT ( * ) + - 65 + 7
----
-20

query I rowsort
SELECT ALL + 67 * + 42 * - 61 * - 23
----
3948042

query I rowsort
SELECT 44 * - - 70
----
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT DISTINCT + SUM( DISTINCT + 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT + SUM ( DISTINCT + 24 ) AS col2
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-1567
SELECT DISTINCT + 49 * COALESCE ( - 92, 38 ) col1, + 33 DIV 38 * 7
----
-4508
0

skipif mysql # not compatible
query II rowsort label-1567
SELECT DISTINCT + 49 * COALESCE ( - 92, 38 ) col1, + 33 / 38 * 7
----
-4508
0

query I rowsort
SELECT - NULLIF ( + + NULLIF ( - 43, 64 ), 12 ) + + + 29 + + 5 * 15 AS col0
----
147

query I rowsort
SELECT + 22 * 93
----
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT DISTINCT + + COUNT( * ) * - + 13 * + - 42 AS col2
----
546

skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT + + COUNT ( * ) * - + 13 * + - 42 AS col2
----
546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1571
SELECT + ( + NULLIF ( + 19, + 9 ) ) * + + ( 82 ) / - - CAST( NULL AS SIGNED ) + - 42 + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1571
SELECT + ( + NULLIF ( + 19, + 9 ) ) * + + ( 82 ) / - - CAST ( NULL AS INTEGER ) + - 42 + + 19
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1572
SELECT - 30 DIV + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1572
SELECT - 30 / + 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1573
SELECT ALL + 15 AS col0, + COUNT( * ) + 68
----
15
69

skipif mysql # not compatible
query II rowsort label-1573
SELECT ALL + 15 AS col0, + COUNT ( * ) + 68
----
15
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT ALL - - 81 * + 98 * - - 24 + - SUM( DISTINCT + 52 ) AS col0
----
190460

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL - - 81 * + 98 * - - 24 + - SUM ( DISTINCT + 52 ) AS col0
----
190460

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT - - 63 + - COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-1575
SELECT - - 63 + - COUNT ( * ) AS col0
----
62

query II rowsort
SELECT DISTINCT + + 92 AS col1, NULLIF ( + 80, 32 ) * 62 - + 39 + 87 * + - 64 * + 9
----
92
-45191

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT - CASE COUNT( ALL + 61 ) WHEN + 30 * + + COUNT( * ) * + 1 + 22 THEN NULL ELSE - + 84 + + + 73 - 3 * - + 60 * + NULLIF ( + COUNT( * ), 39 ) END
----
-169

skipif mysql # not compatible
query I rowsort label-1577
SELECT - CASE COUNT ( ALL + 61 ) WHEN + 30 * + + COUNT ( * ) * + 1 + 22 THEN NULL ELSE - + 84 + + + 73 - 3 * - + 60 * + NULLIF ( + COUNT ( * ), 39 ) END
----
-169

query I rowsort
SELECT ALL + ( + 13 ) col2
----
13

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

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

query I rowsort
SELECT - 19 * - 35 AS col2
----
665

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT + MIN( ALL - - 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1581
SELECT + MIN ( ALL - - 56 ) AS col0
----
56

query II rowsort
SELECT + 76 * - + 87 * 49 + + - 68 + - - 58 + + 61 AS col1, 69
----
-323937
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1583
SELECT ALL + 58 / CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - NULLIF ( + SUM( 25 ), 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL + 58 / CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - NULLIF ( + SUM ( 25 ), 42 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT + 16 + COUNT( * ) * + - ( - 95 ) - 26 + + 78 + + - 89
----
74

skipif mysql # not compatible
query I rowsort label-1584
SELECT + 16 + COUNT ( * ) * + - ( - 95 ) - 26 + + 78 + + - 89
----
74

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

query II rowsort
SELECT - - 23 AS col2, + 30 AS col2
----
23
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT - - COUNT( + 42 ) + - 48
----
-47

skipif mysql # not compatible
query I rowsort label-1588
SELECT - - COUNT ( + 42 ) + - 48
----
-47

query I rowsort
SELECT ALL + 98 * 83
----
8134

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT ALL ( 54 ) + COUNT( * ) + - COUNT( * ) + + 87
----
141

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL ( 54 ) + COUNT ( * ) + - COUNT ( * ) + + 87
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-1591
SELECT DISTINCT + COUNT( * ) * + 76 * + 80 AS col2, COUNT( * ) * - - 56 AS col2
----
6080
56

skipif mysql # not compatible
query II rowsort label-1591
SELECT DISTINCT + COUNT ( * ) * + 76 * + 80 AS col2, COUNT ( * ) * - - 56 AS col2
----
6080
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1592
SELECT + 48 + CAST( ( + - MAX( - 37 ) ) AS SIGNED ) col1
----
85

skipif mysql # not compatible
query I rowsort label-1592
SELECT + 48 + CAST ( ( + - MAX ( - 37 ) ) AS INTEGER ) col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT - MAX( - ( - + 49 ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-1593
SELECT - MAX ( - ( - + 49 ) ) AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1594
SELECT - CAST( NULL AS SIGNED ) / + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1594
SELECT - CAST ( NULL AS INTEGER ) / + - 3
----
NULL

query I rowsort
SELECT + 24 + - + 64 AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1596
SELECT ALL ( - - 58 ) + CAST( COUNT( * ) AS SIGNED ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL ( - - 58 ) + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
59

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT + 88 DIV - 39 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1598
SELECT + 88 / - 39 AS col0
----
-2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1600
SELECT + COUNT( * ) * 36 AS col1, + 7
----
36
7

skipif mysql # not compatible
query II rowsort label-1600
SELECT + COUNT ( * ) * 36 AS col1, + 7
----
36
7

query II rowsort
SELECT + ( + 43 ), 48 AS col1
----
43
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1602
SELECT 8 / CAST( NULL AS SIGNED ) * ( 7 ) + + CASE + 72 WHEN - 69 THEN NULL ELSE + 61 - - 61 + NULLIF ( + 43, + + 62 + COUNT( * ) * + CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1602
SELECT 8 / CAST ( NULL AS INTEGER ) * ( 7 ) + + CASE + 72 WHEN - 69 THEN NULL ELSE + 61 - - 61 + NULLIF ( + 43, + + 62 + COUNT ( * ) * + CAST ( NULL AS INTEGER ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT + 37 * - + 17 + - 10 - COUNT( * ) * ( 92 ) - 4 - 78 AS col1
----
-813

skipif mysql # not compatible
query I rowsort label-1603
SELECT + 37 * - + 17 + - 10 - COUNT ( * ) * ( 92 ) - 4 - 78 AS col1
----
-813

query I rowsort
SELECT + + 92 * 12 - - + 51
----
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT + + COUNT( * ) + 69 * 5 * - ( - 98 )
----
33811

skipif mysql # not compatible
query I rowsort label-1605
SELECT + + COUNT ( * ) + 69 * 5 * - ( - 98 )
----
33811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1606
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) * + 32 * 0 DIV 52, + COUNT( * ) * - 48 AS col0
----
0
-48

skipif mysql # not compatible
query II rowsort label-1606
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) * + 32 * 0 / 52, + COUNT ( * ) * - 48 AS col0
----
0
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT ALL + MAX( DISTINCT - - 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL + MAX ( DISTINCT - - 10 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1608
SELECT + NULLIF ( 68, ( 78 ) ) * + 52 AS col2, - COUNT( * )
----
3536
-1

skipif mysql # not compatible
query II rowsort label-1608
SELECT + NULLIF ( 68, ( 78 ) ) * + 52 AS col2, - COUNT ( * )
----
3536
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1609
SELECT + COUNT( * ) * - 84 * + NULLIF ( - 72, 27 * - CAST( + - CAST( - COALESCE ( - - 9, - 81 * - 70 * - 16 * 23, + 5 - + - 13 ) AS SIGNED ) AS SIGNED ) ) + - 11 + 38 DIV 17 * 90 AS col2
----
6217

skipif mysql # not compatible
query I rowsort label-1609
SELECT + COUNT ( * ) * - 84 * + NULLIF ( - 72, 27 * - CAST ( + - CAST ( - COALESCE ( - - 9, - 81 * - 70 * - 16 * 23, + 5 - + - 13 ) AS INTEGER ) AS INTEGER ) ) + - 11 + 38 / 17 * 90 AS col2
----
6217

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT + MIN( 71 ) col2
----
71

skipif mysql # not compatible
query I rowsort label-1610
SELECT + MIN ( 71 ) col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1611
SELECT ALL NULLIF ( + + 22, + 34 + + + 82 + - CASE - ( - + COUNT( * ) ) WHEN - 24 * - - COUNT( - + CAST( + - ( + ( 17 ) ) AS SIGNED ) ) THEN - 76 END ) * - NULLIF ( + - 71, - 43 + - 1 ) + + 63 + + - 8 * - - COUNT( * )
----
1617

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL NULLIF ( + + 22, + 34 + + + 82 + - CASE - ( - + COUNT ( * ) ) WHEN - 24 * - - COUNT ( - + CAST ( + - ( + ( 17 ) ) AS INTEGER ) ) THEN - 76 END ) * - NULLIF ( + - 71, - 43 + - 1 ) + + 63 + + - 8 * - - COUNT ( * )
----
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT - + 91 * + COUNT( * ) * - 89 AS col0
----
8099

skipif mysql # not compatible
query I rowsort label-1612
SELECT - + 91 * + COUNT ( * ) * - 89 AS col0
----
8099

query II rowsort
SELECT ALL + ( - 93 ) AS col0, + 27 * + 91 + 54 + + ( - 17 ) * + - 55 AS col0
----
-93
3446

query I rowsort
SELECT - 94 + + + 35 + + 84 + + 11 + 1 AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-1615
SELECT - NULLIF ( - 35, + 17 ), COUNT( * ) AS col1
----
35
1

skipif mysql # not compatible
query II rowsort label-1615
SELECT - NULLIF ( - 35, + 17 ), COUNT ( * ) AS col1
----
35
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1616
SELECT ALL CAST( NULL AS DECIMAL ), 54 - + + ( ( - + 50 ) ) col2
----
NULL
104

skipif mysql # not compatible
query II rowsort label-1616
SELECT ALL CAST ( NULL AS REAL ), 54 - + + ( ( - + 50 ) ) col2
----
NULL
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1617
SELECT - 88 + + - CAST( - COUNT( * ) AS SIGNED ) + - 61
----
-148

skipif mysql # not compatible
query I rowsort label-1617
SELECT - 88 + + - CAST ( - COUNT ( * ) AS INTEGER ) + - 61
----
-148

onlyif mysql # aggregate syntax: 
query II rowsort label-1618
SELECT - 47 * 64 * + - 37 AS col0, ( - + 64 ) * - COUNT( * ) + COUNT( * )
----
111296
65

skipif mysql # not compatible
query II rowsort label-1618
SELECT - 47 * 64 * + - 37 AS col0, ( - + 64 ) * - COUNT ( * ) + COUNT ( * )
----
111296
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT DISTINCT 76 * - - COUNT( * ) col2
----
76

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT 76 * - - COUNT ( * ) col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT DISTINCT - ( - - 24 ) * 78 + + COUNT( * )
----
-1871

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT - ( - - 24 ) * 78 + + COUNT ( * )
----
-1871

query I rowsort
SELECT 48 + - 25 AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1622
SELECT 38 * - + COUNT( 40 ) DIV - 59 + 79 + + 62 DIV 7 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-1622
SELECT 38 * - + COUNT ( 40 ) / - 59 + 79 + + 62 / 7 AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1623
SELECT 44 DIV - + 73
----
0

skipif mysql # not compatible
query I rowsort label-1623
SELECT 44 / - + 73
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1624
SELECT DISTINCT 10 DIV + 8
----
1

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT 10 / + 8
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT + CASE - + AVG ( + - 55 ) WHEN - COUNT( * ) * - 69 THEN - 63 WHEN SUM( ALL + 47 ) + - 83 THEN ( 24 ) - 77 WHEN + + 91 * 81 + 31 THEN - 75 ELSE + 93 END
----
93

skipif mysql # not compatible
query I rowsort label-1625
SELECT + CASE - + AVG ( + - 55 ) WHEN - COUNT ( * ) * - 69 THEN - 63 WHEN SUM ( ALL + 47 ) + - 83 THEN ( 24 ) - 77 WHEN + + 91 * 81 + 31 THEN - 75 ELSE + 93 END
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-1626
SELECT ALL COALESCE ( 36, + 28 DIV - 4 + 55, 67 ) + 20 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL COALESCE ( 36, + 28 / - 4 + 55, 67 ) + 20 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT + 88 + - COUNT( * ) * ( - NULLIF ( - 29, - 35 + - + ( + - 5 ) - - SUM( - - 58 ) ) ) col0
----
59

skipif mysql # not compatible
query I rowsort label-1627
SELECT + 88 + - COUNT ( * ) * ( - NULLIF ( - 29, - 35 + - + ( + - 5 ) - - SUM ( - - 58 ) ) ) col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT + 71 * + + 8 + + MAX( ALL + - COALESCE ( + 26, - 1 + + - 40 ) )
----
542

skipif mysql # not compatible
query I rowsort label-1628
SELECT + 71 * + + 8 + + MAX ( ALL + - COALESCE ( + 26, - 1 + + - 40 ) )
----
542

query I rowsort
SELECT 27 + 25
----
52

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1631
SELECT ALL - 31 * + NULLIF ( - CAST( NULL AS SIGNED ), + 55 ) AS col1, + 45 AS col2
----
NULL
45

skipif mysql # not compatible
query II rowsort label-1631
SELECT ALL - 31 * + NULLIF ( - CAST ( NULL AS INTEGER ), + 55 ) AS col1, + 45 AS col2
----
NULL
45

query I rowsort
SELECT DISTINCT - 72 + 55 * - 95
----
-5297

onlyif mysql # DIV for integer division: 
query II rowsort label-1633
SELECT ALL - 94 AS col1, + 3 DIV + 71 * 48 + - ( 47 ) col2
----
-94
-47

skipif mysql # not compatible
query II rowsort label-1633
SELECT ALL - 94 AS col1, + 3 / + 71 * 48 + - ( 47 ) col2
----
-94
-47

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

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

query II rowsort
SELECT 27, - 32 AS col2
----
27
-32

query I rowsort
SELECT ALL - 59 + - 61 col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT DISTINCT + 48 / + CASE + 39 WHEN + 67 * + 90 THEN SUM( ALL + + 30 ) / + 46 END * - MIN( DISTINCT - ( 53 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT + 48 / + CASE + 39 WHEN + 67 * + 90 THEN SUM ( ALL + + 30 ) / + 46 END * - MIN ( DISTINCT - ( 53 ) )
----
NULL

query I rowsort
SELECT - + 21 * - 25 + - NULLIF ( - + 49, - + 78 ) + - 10 * + - 16 * + 11 AS col2
----
2334

query I rowsort
SELECT ALL 89 * + 22 AS col2
----
1958

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT 7 * + 14 + + - 63 * + COUNT( * ) + - - 29 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-1640
SELECT 7 * + 14 + + - 63 * + COUNT ( * ) + - - 29 AS col2
----
64

query I rowsort
SELECT 42 * + CASE + + 10 WHEN - 63 THEN - + 79 WHEN - + 67 THEN 50 * 57 + + - 16 + + - 28 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1642
SELECT 48 + - + 93 * + COUNT( * ) * - 33 * - 27 DIV + ( - COUNT( * ) )
----
82911

skipif mysql # not compatible
query I rowsort label-1642
SELECT 48 + - + 93 * + COUNT ( * ) * - 33 * - 27 / + ( - COUNT ( * ) )
----
82911

query I rowsort
SELECT ALL + ( 17 ) * + + 86 + 51 AS col2
----
1513

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1644
SELECT CAST( NULL AS DECIMAL ) * 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT CAST ( NULL AS REAL ) * 96 AS col1
----
NULL

query I rowsort
SELECT ALL 53 * + + 85 AS col1
----
4505

query I rowsort
SELECT 32 - - 40
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT DISTINCT COUNT( * ) - + SUM( ALL 38 )
----
-37

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT COUNT ( * ) - + SUM ( ALL 38 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT 57 * - NULLIF ( 39, + 32 + 46 * + COUNT( * ) )
----
-2223

skipif mysql # not compatible
query I rowsort label-1648
SELECT 57 * - NULLIF ( 39, + 32 + 46 * + COUNT ( * ) )
----
-2223

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT 47 * - + MAX( ALL 54 ) AS col0
----
-2538

skipif mysql # not compatible
query I rowsort label-1649
SELECT 47 * - + MAX ( ALL 54 ) AS col0
----
-2538

query I rowsort
SELECT 83 * + + ( + - 30 )
----
-2490

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT ALL MAX( DISTINCT - 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL MAX ( DISTINCT - 86 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT ALL - 18 * + COUNT( * ) * 43
----
-774

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL - 18 * + COUNT ( * ) * 43
----
-774

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT ALL - CASE WHEN 61 NOT IN ( - NULLIF ( + 4, 73 + - 94 ) ) THEN NULL ELSE + ( - ( - 45 ) ) END + 41 * - 53 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL - CASE WHEN 61 NOT IN ( - NULLIF ( + 4, 73 + - 94 ) ) THEN NULL ELSE + ( - ( - 45 ) ) END + 41 * - 53 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1655
SELECT DISTINCT - 65 + - 73 AS col1, + CASE - 83 WHEN + 63 / 15 + - COUNT( DISTINCT 13 ) - - ( - + MAX( DISTINCT + 91 ) ) + - 64 * + 49 THEN 43 + - - 8 - + 26 - CAST( NULL AS DECIMAL ) END + + - ( - COUNT( * ) ) AS col2
----
-138
NULL

skipif mysql # not compatible
query II rowsort label-1655
SELECT DISTINCT - 65 + - 73 AS col1, + CASE - 83 WHEN + 63 / 15 + - COUNT ( DISTINCT 13 ) - - ( - + MAX ( DISTINCT + 91 ) ) + - 64 * + 49 THEN 43 + - - 8 - + 26 - CAST ( NULL AS REAL ) END + + - ( - COUNT ( * ) ) AS col2
----
-138
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1656
SELECT ALL - - 44 * - 25 + - 60 * - - 3 + + + 51 + + - 21 - 39 * - ( 90 ) DIV - COUNT( * ) + + COUNT( * )
----
-4759

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL - - 44 * - 25 + - 60 * - - 3 + + + 51 + + - 21 - 39 * - ( 90 ) / - COUNT ( * ) + + COUNT ( * )
----
-4759

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1657
SELECT ALL - MIN( + - 5 ) * - 61 + + SUM( 2 ) * - 89 * + ( + 19 ) + 91 col2, 17 DIV NULLIF ( 18, 93 ) AS col2
----
-3596
0

skipif mysql # not compatible
query II rowsort label-1657
SELECT ALL - MIN ( + - 5 ) * - 61 + + SUM ( 2 ) * - 89 * + ( + 19 ) + 91 col2, 17 / NULLIF ( 18, 93 ) AS col2
----
-3596
0

query I rowsort
SELECT + 77 + 27
----
104

query I rowsort
SELECT 49 * + ( - 84 )
----
-4116

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT + 90 * + ( + 42 ) * - COUNT( * ) * - + 61 - + + 60
----
230520

skipif mysql # not compatible
query I rowsort label-1660
SELECT + 90 * + ( + 42 ) * - COUNT ( * ) * - + 61 - + + 60
----
230520

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

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

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

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

query I rowsort
SELECT 21 + - 36
----
-15

query I rowsort
SELECT ALL + + 6 + + + 82 + 4
----
92

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1666
SELECT NULLIF ( 82, + 10 * CAST( NULL AS SIGNED ) + + + COALESCE ( + 11, COUNT( * ) ) * CASE - SUM( 50 ) WHEN + 65 / ( 16 ) THEN - + 9 END + + ( + 91 ) + + CAST( + 69 AS SIGNED ) ) * 41 * - - 41 + + - MIN( - - 22 ) + + + 34 col0
----
137854

skipif mysql # not compatible
query I rowsort label-1666
SELECT NULLIF ( 82, + 10 * CAST ( NULL AS INTEGER ) + + + COALESCE ( + 11, COUNT ( * ) ) * CASE - SUM ( 50 ) WHEN + 65 / ( 16 ) THEN - + 9 END + + ( + 91 ) + + CAST ( + 69 AS INTEGER ) ) * 41 * - - 41 + + - MIN ( - - 22 ) + + + 34 col0
----
137854

query I rowsort
SELECT ALL - 19 * + - 4 - COALESCE ( - 0, 0 ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT COUNT( * ) + - COUNT( * ) - - ( 43 ) + - 39 + - + NULLIF ( + + 49, - 6 ) * - + 93 + - - 42 AS col2
----
4603

skipif mysql # not compatible
query I rowsort label-1668
SELECT COUNT ( * ) + - COUNT ( * ) - - ( 43 ) + - 39 + - + NULLIF ( + + 49, - 6 ) * - + 93 + - - 42 AS col2
----
4603

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT - COUNT( * ) * 84 - - 64 * + 43 + + - 26
----
2642

skipif mysql # not compatible
query I rowsort label-1669
SELECT - COUNT ( * ) * 84 - - 64 * + 43 + + - 26
----
2642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1670
SELECT CAST( 25 AS SIGNED ) * + 67 * 5 * + 93 - 24
----
778851

skipif mysql # not compatible
query I rowsort label-1670
SELECT CAST ( 25 AS INTEGER ) * + 67 * 5 * + 93 - 24
----
778851

query I rowsort
SELECT 13 * - - 72 AS col0
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT DISTINCT 12 * + - MIN( DISTINCT - 45 ) AS col2
----
540

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT 12 * + - MIN ( DISTINCT - 45 ) AS col2
----
540

query I rowsort
SELECT + 41 * - 82
----
-3362

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1674
SELECT - CASE - 36 WHEN 65 * + NULLIF ( CAST( NULL AS SIGNED ), - 68 ) + - CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) THEN 54 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1674
SELECT - CASE - 36 WHEN 65 * + NULLIF ( CAST ( NULL AS INTEGER ), - 68 ) + - CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) THEN 54 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1675
SELECT + COUNT( DISTINCT 90 ) / 4 / + CASE - - 97 WHEN + 59 THEN - 49 WHEN + + CAST( NULL AS SIGNED ) THEN + 88 * COALESCE ( + 51, + + 1 * - COALESCE ( + - 93, MIN( + - 71 ) ) ) - - - ( - 21 ) + 10 WHEN - NULLIF ( - + 43, - - MAX( + - 79 ) + + NULLIF ( 32, 96 * - 18 + - 20 * + COUNT( + ( 39 ) * CAST( NULL AS SIGNED ) ) ) ) * + ( 0 ) + - 95 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1675
SELECT + COUNT ( DISTINCT 90 ) / 4 / + CASE - - 97 WHEN + 59 THEN - 49 WHEN + + CAST ( NULL AS INTEGER ) THEN + 88 * COALESCE ( + 51, + + 1 * - COALESCE ( + - 93, MIN ( + - 71 ) ) ) - - - ( - 21 ) + 10 WHEN - NULLIF ( - + 43, - - MAX ( + - 79 ) + + NULLIF ( 32, 96 * - 18 + - 20 * + COUNT ( + ( 39 ) * CAST ( NULL AS INTEGER ) ) ) ) * + ( 0 ) + - 95 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 5 + - 53
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1677
SELECT + 81 + 20 * 33 * + 51 * + 75 + + COALESCE ( 92, + 4 DIV - COUNT( + + 12 ) + - + ( SUM( ALL - 10 ) ), - + CAST( - 47 AS SIGNED ) + - MIN( - 4 ) - 53 DIV + + 37 ) + + 74 * 78 + + MIN( + ( + - 93 ) )
----
2530352

skipif mysql # not compatible
query I rowsort label-1677
SELECT + 81 + 20 * 33 * + 51 * + 75 + + COALESCE ( 92, + 4 / - COUNT ( + + 12 ) + - + ( SUM ( ALL - 10 ) ), - + CAST ( - 47 AS INTEGER ) + - MIN ( - 4 ) - 53 / + + 37 ) + + 74 * 78 + + MIN ( + ( + - 93 ) )
----
2530352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1678
SELECT - 8 AS col0, - ( + COALESCE ( + COUNT( CAST( NULL AS DECIMAL ) ), - + CAST( - + 76 AS SIGNED ) * + 80 + - - ( ( COUNT( * ) ) ) DIV 49 * - COUNT( * ) * - 95 + - + 67 * - 47 ) ) AS col1
----
-8
0

skipif mysql # not compatible
query II rowsort label-1678
SELECT - 8 AS col0, - ( + COALESCE ( + COUNT ( CAST ( NULL AS REAL ) ), - + CAST ( - + 76 AS INTEGER ) * + 80 + - - ( ( COUNT ( * ) ) ) / 49 * - COUNT ( * ) * - 95 + - + 67 * - 47 ) ) AS col1
----
-8
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1680
SELECT DISTINCT ( 22 ) + 22 DIV + 90 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT ( 22 ) + 22 / + 90 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1681
SELECT - COALESCE ( - 99, 4 + 54 + CAST( NULL AS SIGNED ), + + SUM( - - 22 ) + + COUNT( * ), - 35 + - - 98 ) + - COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1681
SELECT - COALESCE ( - 99, 4 + 54 + CAST ( NULL AS INTEGER ), + + SUM ( - - 22 ) + + COUNT ( * ), - 35 + - - 98 ) + - COUNT ( * ) AS col2
----
98

query I rowsort
SELECT ALL 33 + - - 87
----
120

query I rowsort
SELECT DISTINCT 92 * - 16 * - 27 AS col2
----
39744

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

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

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

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL - 35 + + COUNT ( * ) AS col1
----
-34

query II rowsort
SELECT + 47 AS col2, 97 + + 28 + 31 col0
----
47
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT ALL + - ( - - 53 ) + - 65 + + 93 + + + MIN( DISTINCT 68 ) * - 74 * - 52 * - COUNT( * ) AS col0
----
-261689

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL + - ( - - 53 ) + - 65 + + 93 + + + MIN ( DISTINCT 68 ) * - 74 * - 52 * - COUNT ( * ) AS col0
----
-261689

query I rowsort
SELECT DISTINCT - - 96 + + 92 AS col0
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT + - 86 * + + COUNT( * ) + - NULLIF ( 91, + 52 ) AS col1
----
-177

skipif mysql # not compatible
query I rowsort label-1689
SELECT + - 86 * + + COUNT ( * ) + - NULLIF ( 91, + 52 ) AS col1
----
-177

query I rowsort
SELECT - 44 + - 34 * - COALESCE ( - 77, + 99 ) - - CASE + 0 WHEN - 25 + + 3 THEN NULL ELSE - 38 - + 9 END + 57 AS col0
----
-2652

query I rowsort
SELECT ALL - 75 + - 69
----
-144

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

query I rowsort
SELECT - 97 + + - 67 * - NULLIF ( + - ( - 13 ), + ( 38 ) )
----
774

query I rowsort
SELECT DISTINCT + 49 * + - 34 * 81 - - + 73 + 42 + 88 + + + CASE + 61 WHEN + 15 * + NULLIF ( - 20, + 82 ) THEN NULL WHEN + 19 THEN NULL WHEN + 16 * - + 48 THEN NULL WHEN - 34 THEN + + 85 END + 86 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1695
SELECT DISTINCT + CASE - - NULLIF ( - 31, - CAST( - 98 AS SIGNED ) ) WHEN - 20 + 77 + + - SUM( 39 ) THEN - 98 * + + 83 / - 9 + + + 48 + - CASE - 57 WHEN + - 28 THEN CASE - + 66 WHEN + COALESCE ( 35, 6 ) THEN + AVG ( + 52 ) + SUM( DISTINCT 26 ) * - 82 ELSE NULL END WHEN CASE 64 WHEN + 67 * - 42 - COUNT( * ) THEN COALESCE ( + 46, - ( 96 ) ) + + 89 / + 46 WHEN 99 / 69 THEN - 13 / 58 END / CAST( 93 * ( - 42 ) - MAX( 74 ) * 36 AS DECIMAL ) THEN NULL END * - COUNT( * ) END * COUNT( ALL 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT + CASE - - NULLIF ( - 31, - CAST ( - 98 AS INTEGER ) ) WHEN - 20 + 77 + + - SUM ( 39 ) THEN - 98 * + + 83 / - 9 + + + 48 + - CASE - 57 WHEN + - 28 THEN CASE - + 66 WHEN + COALESCE ( 35, 6 ) THEN + AVG ( + 52 ) + SUM ( DISTINCT 26 ) * - 82 ELSE NULL END WHEN CASE 64 WHEN + 67 * - 42 - COUNT ( * ) THEN COALESCE ( + 46, - ( 96 ) ) + + 89 / + 46 WHEN 99 / 69 THEN - 13 / 58 END / CAST ( 93 * ( - 42 ) - MAX ( 74 ) * 36 AS REAL ) THEN NULL END * - COUNT ( * ) END * COUNT ( ALL 72 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1696
SELECT - + 59 DIV - + ( + 22 )
----
2

skipif mysql # not compatible
query I rowsort label-1696
SELECT - + 59 / - + ( + 22 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT - + SUM( ALL 84 ) * + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-1697
SELECT - + SUM ( ALL 84 ) * + COUNT ( * )
----
-84

query I rowsort
SELECT - 86 + + + 17 + 2 - + 54 + 75 col2
----
-46

query I rowsort
SELECT + + 69 col1
----
69

query I rowsort
SELECT - - 79 + + 97 * - ( + - 22 ) AS col0
----
2213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1701
SELECT ALL + CAST( NULL AS SIGNED ) * - 51 * - - 11 - - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL + CAST ( NULL AS INTEGER ) * - 51 * - - 11 - - 94 AS col2
----
NULL

query I rowsort
SELECT - 13 * + - 49 + - 50
----
587

query I rowsort
SELECT + 83 * + 24 - 64
----
1928

query I rowsort
SELECT - ( - - 8 ) * - 13
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT - COUNT( * ) + - 77 * 80 + + + COUNT( * ) * - COUNT( * )
----
-6162

skipif mysql # not compatible
query I rowsort label-1705
SELECT - COUNT ( * ) + - 77 * 80 + + + COUNT ( * ) * - COUNT ( * )
----
-6162

query I rowsort
SELECT DISTINCT 53 * - ( CASE - 43 WHEN + 83 * - 84 + - ( + 72 ) + - 39 THEN NULL ELSE 38 * - 41 END ) * 7
----
578018

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

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT + CAST ( 82 AS INTEGER ) AS col1
----
82

query I rowsort
SELECT - 82 * + 6
----
-492

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1711
SELECT + COUNT( DISTINCT - 50 ) * - + 42 DIV - + 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1711
SELECT + COUNT ( DISTINCT - 50 ) * - + 42 / - + 43 AS col1
----
0

query I rowsort
SELECT ALL + ( 23 ) + - 43 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT ALL 39 + - 49 + + + 59 * - - COUNT( * ) - + + 95 * 61 AS col2
----
-5746

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL 39 + - 49 + + + 59 * - - COUNT ( * ) - + + 95 * 61 AS col2
----
-5746

query II rowsort
SELECT DISTINCT 21, ( 40 ) AS col1
----
21
40

query II rowsort
SELECT ALL 10 + + - 16 + - ( + 46 ) AS col2, 4 * + - 58 AS col2
----
-52
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT - COUNT( * ) * - - NULLIF ( + + ( + 15 ), 13 )
----
-15

skipif mysql # not compatible
query I rowsort label-1716
SELECT - COUNT ( * ) * - - NULLIF ( + + ( + 15 ), 13 )
----
-15

query I rowsort
SELECT + ( 48 ) * + 31
----
1488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1718
SELECT ALL 84 + + + 95 + - + 1 DIV + - 35 * 21 DIV - + COUNT( * ) AS col0
----
179

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL 84 + + + 95 + - + 1 / + - 35 * 21 / - + COUNT ( * ) AS col0
----
179

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1720
SELECT ALL CAST( 68 AS SIGNED ) + - - COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL CAST ( 68 AS INTEGER ) + - - COUNT ( * ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT + - 98 - + + MAX( - 23 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-1721
SELECT + - 98 - + + MAX ( - 23 ) AS col0
----
-75

query I rowsort
SELECT - - 93 * + + 38
----
3534

query II rowsort
SELECT 35, + 0 AS col0
----
35
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1724
SELECT DISTINCT COALESCE ( + 53, + NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( * ) * 92 + 49 ) ) + - - 4
----
57

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT COALESCE ( + 53, + NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) * 92 + 49 ) ) + - - 4
----
57

query I rowsort
SELECT ALL + 13 * - NULLIF ( 70, - 44 ) col2
----
-910

onlyif mysql # aggregate syntax: 
query II rowsort label-1726
SELECT ALL SUM( 42 ) AS col1, - COALESCE ( + NULLIF ( - 49, 83 * 99 * 32 + - + 42 + + 26 * ( + 77 ) * - - 8 + - COUNT( * ) ), 17 - - 62, + NULLIF ( - + 19, + ( 88 ) ) * + COUNT( DISTINCT - 20 ) ) AS col1
----
42
49

skipif mysql # not compatible
query II rowsort label-1726
SELECT ALL SUM ( 42 ) AS col1, - COALESCE ( + NULLIF ( - 49, 83 * 99 * 32 + - + 42 + + 26 * ( + 77 ) * - - 8 + - COUNT ( * ) ), 17 - - 62, + NULLIF ( - + 19, + ( 88 ) ) * + COUNT ( DISTINCT - 20 ) ) AS col1
----
42
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1727
SELECT + - 49 DIV - 73 * + - 33
----
0

skipif mysql # not compatible
query I rowsort label-1727
SELECT + - 49 / - 73 * + - 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT ALL - COUNT( * ) - - 30 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL - COUNT ( * ) - - 30 AS col2
----
29

query I rowsort
SELECT DISTINCT 69 * + + 66 * + 10
----
45540

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

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

query II rowsort
SELECT ALL + 48 AS col1, - 41
----
48
-41

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

skipif mysql # not compatible
query I rowsort label-1732
SELECT 83 * CAST ( NULL AS INTEGER ) - + - 37
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1733
SELECT + 84 * - + COALESCE ( 45, - + 54 DIV - 5 ) AS col1
----
-3780

skipif mysql # not compatible
query I rowsort label-1733
SELECT + 84 * - + COALESCE ( 45, - + 54 / - 5 ) AS col1
----
-3780

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT - SUM( DISTINCT - - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-1735
SELECT - SUM ( DISTINCT - - 35 )
----
-35

query II rowsort
SELECT DISTINCT + 89 AS col2, 48 AS col0
----
89
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1737
SELECT - 55 / - - 96 + - CAST( NULL AS SIGNED ) + - 45 / - - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1737
SELECT - 55 / - - 96 + - CAST ( NULL AS INTEGER ) + - 45 / - - 7 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + 21 * - + 70 * + 56 AS col1
----
-82320

onlyif mysql # DIV for integer division: 
query I rowsort label-1740
SELECT 48 DIV 42 * - + 11
----
-11

skipif mysql # not compatible
query I rowsort label-1740
SELECT 48 / 42 * - + 11
----
-11

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

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

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

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

query I rowsort
SELECT 31 + + 65 * + - 56 + + - 54
----
-3663

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT + COUNT( * ) * + - 8 * - - 59 - 27 - + 42 * 5 AS col1
----
-709

skipif mysql # not compatible
query I rowsort label-1744
SELECT + COUNT ( * ) * + - 8 * - - 59 - 27 - + 42 * 5 AS col1
----
-709

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1745
SELECT 38 DIV + COUNT( 23 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-1745
SELECT 38 / + COUNT ( 23 ) AS col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1746
SELECT 76 + 74 + - 46 DIV + 69 + + CASE MIN( DISTINCT 11 ) WHEN + 9 DIV 66 + + ( - 12 ) + 57 * + - COUNT( * ) THEN + ( + - NULLIF ( + + 82, - - 88 * + - COUNT( * ) + + + 63 DIV 68 + + 32 - + + 49 ) ) * + 85 WHEN - 98 + - - 73 THEN + NULLIF ( + 90, - 91 * - 37 ) * + 7 ELSE 88 + ( 55 ) END + MAX( DISTINCT + 6 ) DIV 20 * SUM( 73 ) AS col0
----
293

skipif mysql # not compatible
query I rowsort label-1746
SELECT 76 + 74 + - 46 / + 69 + + CASE MIN ( DISTINCT 11 ) WHEN + 9 / 66 + + ( - 12 ) + 57 * + - COUNT ( * ) THEN + ( + - NULLIF ( + + 82, - - 88 * + - COUNT ( * ) + + + 63 / 68 + + 32 - + + 49 ) ) * + 85 WHEN - 98 + - - 73 THEN + NULLIF ( + 90, - 91 * - 37 ) * + 7 ELSE 88 + ( 55 ) END + MAX ( DISTINCT + 6 ) / 20 * SUM ( 73 ) AS col0
----
293

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT 83 * + COUNT( * ) * + 55 * + 26
----
118690

skipif mysql # not compatible
query I rowsort label-1747
SELECT 83 * + COUNT ( * ) * + 55 * + 26
----
118690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1748
SELECT DISTINCT - 31 + - 72 - + CAST( + 44 AS SIGNED )
----
-147

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT - 31 + - 72 - + CAST ( + 44 AS INTEGER )
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT DISTINCT + CAST( + 50 AS SIGNED ) + - - 70 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT + CAST ( + 50 AS INTEGER ) + - - 70 AS col1
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1750
SELECT ALL - 86 + + 46 DIV - 40 * - - COUNT( 44 ) AS col0, + COUNT( * ) DIV 28
----
-87
0

skipif mysql # not compatible
query II rowsort label-1750
SELECT ALL - 86 + + 46 / - 40 * - - COUNT ( 44 ) AS col0, + COUNT ( * ) / 28
----
-87
0

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

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

query I rowsort
SELECT ALL - ( 81 ) + 57
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1753
SELECT DISTINCT - 4 DIV ( COUNT( * ) ) AS col1, COUNT( - + 25 ) * + + MIN( ALL 97 )
----
-4
97

skipif mysql # not compatible
query II rowsort label-1753
SELECT DISTINCT - 4 / ( COUNT ( * ) ) AS col1, COUNT ( - + 25 ) * + + MIN ( ALL 97 )
----
-4
97

query I rowsort
SELECT ALL 40 + - 71 col1
----
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-1755
SELECT ALL 99 * + - 18, - 11 DIV - ( - 99 ) AS col0
----
-1782
0

skipif mysql # not compatible
query II rowsort label-1755
SELECT ALL 99 * + - 18, - 11 / - ( - 99 ) AS col0
----
-1782
0

query I rowsort
SELECT 53 + + 8
----
61

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

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL + 14 + + + COUNT ( * ) AS col0
----
15

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

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

query I rowsort
SELECT DISTINCT - 6 - NULLIF ( - 53, - 55 + + 94 + + - 65 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT 27 + + 14 + + + 14 + + - COUNT( * ) * - 41 * + 11 AS col2
----
506

skipif mysql # not compatible
query I rowsort label-1760
SELECT 27 + + 14 + + + 14 + + - COUNT ( * ) * - 41 * + 11 AS col2
----
506

onlyif mysql # DIV for integer division: 
query I rowsort label-1761
SELECT ALL 32 - + - 50 DIV - 88 * - 25
----
32

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL 32 - + - 50 / - 88 * - 25
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1762
SELECT 58 * + ( - CASE - SUM( + - 7 ) WHEN COALESCE ( + CASE + 57 WHEN + - COUNT( ALL - 87 ) THEN 14 * + CASE - 86 WHEN - - 71 THEN + ( - + 5 ) WHEN - 38 + - COALESCE ( COUNT( * ), + 6 * - 38, ( + + 36 ) + + 55 ) + + 44 THEN NULL END - 58 + - CAST( 31 AS SIGNED ) - + 22 WHEN CAST( NULL AS SIGNED ) + - 63 THEN + 16 ELSE 89 END, - 66 * - CASE + COUNT( * ) * 35 WHEN - 40 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN - 61 * AVG ( DISTINCT + COALESCE ( + ( 58 ), 53 ) * - 94 ) END - 84 * 69 ) THEN - 65 WHEN - 60 * + ( + 36 ) + 71 THEN + 21 WHEN + 99 / CASE COUNT( * ) WHEN - COUNT( * ) + 32 * + 68 THEN + MAX( + 95 ) + 3 ELSE - 59 * + 56 END THEN NULL ELSE NULL END ) + + 10 * NULLIF ( 39, ( 30 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1762
SELECT 58 * + ( - CASE - SUM ( + - 7 ) WHEN COALESCE ( + CASE + 57 WHEN + - COUNT ( ALL - 87 ) THEN 14 * + CASE - 86 WHEN - - 71 THEN + ( - + 5 ) WHEN - 38 + - COALESCE ( COUNT ( * ), + 6 * - 38, ( + + 36 ) + + 55 ) + + 44 THEN NULL END - 58 + - CAST ( 31 AS INTEGER ) - + 22 WHEN CAST ( NULL AS INTEGER ) + - 63 THEN + 16 ELSE 89 END, - 66 * - CASE + COUNT ( * ) * 35 WHEN - 40 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - 61 * AVG ( DISTINCT + COALESCE ( + ( 58 ), 53 ) * - 94 ) END - 84 * 69 ) THEN - 65 WHEN - 60 * + ( + 36 ) + 71 THEN + 21 WHEN + 99 / CASE COUNT ( * ) WHEN - COUNT ( * ) + 32 * + 68 THEN + MAX ( + 95 ) + 3 ELSE - 59 * + 56 END THEN NULL ELSE NULL END ) + + 10 * NULLIF ( 39, ( 30 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1763
SELECT - 29 + + + 74 + + - 2 * + - 3 * 0 * - NULLIF ( 98, 38 * 77 + + AVG ( DISTINCT + 39 ) DIV 64 + - + 74 - + - 88 + 20 + - 74 ) DIV 93 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1763
SELECT - 29 + + + 74 + + - 2 * + - 3 * 0 * - NULLIF ( 98, 38 * 77 + + AVG ( DISTINCT + 39 ) / 64 + - + 74 - + - 88 + 20 + - 74 ) / 93 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT COALESCE ( 79, - COUNT( * ) ) * + 11 AS col2
----
869

skipif mysql # not compatible
query I rowsort label-1764
SELECT COALESCE ( 79, - COUNT ( * ) ) * + 11 AS col2
----
869

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT - + SUM( ALL - 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1765
SELECT - + SUM ( ALL - 66 ) AS col2
----
66

query I rowsort
SELECT 96 + - 4 + + + 80
----
172

query I rowsort
SELECT + 81 * + 71 AS col1
----
5751

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1768
SELECT ALL + 87 DIV 22 * COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL + 87 / 22 * COUNT ( * )
----
3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1770
SELECT DISTINCT COUNT( ALL - 37 ) * 75, 52 * - 84 * 83 * + COUNT( * ) * + + 99 AS col1
----
75
-35891856

skipif mysql # not compatible
query II rowsort label-1770
SELECT DISTINCT COUNT ( ALL - 37 ) * 75, 52 * - 84 * 83 * + COUNT ( * ) * + + 99 AS col1
----
75
-35891856

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1771
SELECT DISTINCT - COALESCE ( - + 90, 4 ) AS col0, - 15 + - 47 * - COALESCE ( - COUNT( * ), 91 DIV 57 + + 50, - 8, + 8 * - 89 * + 75 )
----
90
-62

skipif mysql # not compatible
query II rowsort label-1771
SELECT DISTINCT - COALESCE ( - + 90, 4 ) AS col0, - 15 + - 47 * - COALESCE ( - COUNT ( * ), 91 / 57 + + 50, - 8, + 8 * - 89 * + 75 )
----
90
-62

query II rowsort
SELECT + 82 col1, + 56
----
82
56

query I rowsort
SELECT ( + - 61 ) * + - 67 AS col2
----
4087

query I rowsort
SELECT 67 + 28
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1775
SELECT + 38, NULLIF ( 33, COUNT( * ) ) AS col2
----
38
33

skipif mysql # not compatible
query II rowsort label-1775
SELECT + 38, NULLIF ( 33, COUNT ( * ) ) AS col2
----
38
33

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

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

query II rowsort
SELECT 23 col1, - 54 * + 1
----
23
-54

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

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

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

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

query II rowsort
SELECT ALL - 92, 65 - - ( + - 51 ) AS col2
----
-92
14

query I rowsort
SELECT 63 + + 43 + + ( - 46 )
----
60

query I rowsort
SELECT 66 * 75 * + + 4
----
19800

onlyif mysql # aggregate syntax: 
query II rowsort label-1783
SELECT ALL 34 + - SUM( DISTINCT + + 20 ), + 39 AS col1
----
14
39

skipif mysql # not compatible
query II rowsort label-1783
SELECT ALL 34 + - SUM ( DISTINCT + + 20 ), + 39 AS col1
----
14
39

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

skipif mysql # not compatible
query I rowsort label-1784
SELECT + MIN ( - 96 )
----
-96

query II rowsort
SELECT 89 + + - 7 + - 13 AS col2, 90 AS col0
----
69
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT DISTINCT + 46 + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT + 46 + COUNT ( * )
----
47

query II rowsort
SELECT 95, 20 col1
----
95
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1788
SELECT ALL - 82 + 91 * - COALESCE ( - 66, + COUNT( * ) * + 49, - COALESCE ( + - 78, + + 13 DIV + 97 * 60 + - COUNT( * ) + + 14, + + 30 ) ), MAX( 68 ) AS col1
----
5924
68

skipif mysql # not compatible
query II rowsort label-1788
SELECT ALL - 82 + 91 * - COALESCE ( - 66, + COUNT ( * ) * + 49, - COALESCE ( + - 78, + + 13 / + 97 * 60 + - COUNT ( * ) + + 14, + + 30 ) ), MAX ( 68 ) AS col1
----
5924
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1789
SELECT ALL - COALESCE ( + 43, - + COUNT( * ) + + 36, + 10 * - + 46 DIV - - 98, 27 * - 60 + + 92 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL - COALESCE ( + 43, - + COUNT ( * ) + + 36, + 10 * - + 46 / - - 98, 27 * - 60 + + 92 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT 8 + + + 27 * - COALESCE ( + MIN( 77 ), + 63 ) AS col2
----
-2071

skipif mysql # not compatible
query I rowsort label-1790
SELECT 8 + + + 27 * - COALESCE ( + MIN ( 77 ), + 63 ) AS col2
----
-2071

onlyif mysql # aggregate syntax: 
query II rowsort label-1791
SELECT ALL COUNT( * ) AS col0, COALESCE ( COUNT( * ), 83 )
----
1
1

skipif mysql # not compatible
query II rowsort label-1791
SELECT ALL COUNT ( * ) AS col0, COALESCE ( COUNT ( * ), 83 )
----
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1792
SELECT 88 DIV - - 30
----
2

skipif mysql # not compatible
query I rowsort label-1792
SELECT 88 / - - 30
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1793
SELECT DISTINCT - 54 DIV - + 57 + 48 + 24 + - - 37 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT - 54 / - + 57 + 48 + 24 + - - 37 AS col0
----
109

query I rowsort
SELECT ALL + 96 - + + 12 + - 75 - + 26 * - 49
----
1283

query I rowsort
SELECT DISTINCT - NULLIF ( - 6, - 94 ) AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1796
SELECT ALL - - 48 / - 98 * + - 34 * CAST( NULL AS SIGNED ) * - - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL - - 48 / - 98 * + - 34 * CAST ( NULL AS INTEGER ) * - - 44
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1797
SELECT + 86 DIV NULLIF ( - - 28, - 88 + + 89 )
----
3

skipif mysql # not compatible
query I rowsort label-1797
SELECT + 86 / NULLIF ( - - 28, - 88 + + 89 )
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1799
SELECT CAST( NULL AS SIGNED ) AS col0, - 19
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-1799
SELECT CAST ( NULL AS INTEGER ) AS col0, - 19
----
NULL
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1800
SELECT COUNT( * ) * + COUNT( * ) + COUNT( DISTINCT + + 44 ) DIV + 44 + - 44, 23 AS col1
----
-43
23

skipif mysql # not compatible
query II rowsort label-1800
SELECT COUNT ( * ) * + COUNT ( * ) + COUNT ( DISTINCT + + 44 ) / + 44 + - 44, 23 AS col1
----
-43
23

query I rowsort
SELECT DISTINCT 5 * - - 46
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT DISTINCT - 58 * - COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT - 58 * - COUNT ( * ) AS col0
----
58

query I rowsort
SELECT ALL - + 93 * + 40 AS col1
----
-3720

query II rowsort
SELECT DISTINCT - 3 AS col2, 68 - - ( - - 88 )
----
-3
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1805
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) / - + 56 + + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) / - + 56 + + 61 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1806
SELECT + COUNT( * ) * - ( + 82 ) * - - AVG ( DISTINCT + 32 ) + CAST( NULL AS SIGNED ) AS col0, ( - + 25 ) AS col1
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-1806
SELECT + COUNT ( * ) * - ( + 82 ) * - - AVG ( DISTINCT + 32 ) + CAST ( NULL AS INTEGER ) AS col0, ( - + 25 ) AS col1
----
NULL
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1807
SELECT ALL CAST( + - COALESCE ( - 31, + 4 + + ( - - COUNT( * ) ) ) AS SIGNED ) + - 52 - - CAST( + + 52 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL CAST ( + - COALESCE ( - 31, + 4 + + ( - - COUNT ( * ) ) ) AS INTEGER ) + - 52 - - CAST ( + + 52 AS INTEGER )
----
31

onlyif mysql # DIV for integer division: 
query II rowsort label-1808
SELECT - 6 DIV + 64 * + COALESCE ( + - 75, + 62 ) AS col1, - 8 * 87
----
0
-696

skipif mysql # not compatible
query II rowsort label-1808
SELECT - 6 / + 64 * + COALESCE ( + - 75, + 62 ) AS col1, - 8 * 87
----
0
-696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1809
SELECT + COUNT( * ) * + - 71 * - - 29 + - 13 DIV - 31 * 14 AS col1
----
-2059

skipif mysql # not compatible
query I rowsort label-1809
SELECT + COUNT ( * ) * + - 71 * - - 29 + - 13 / - 31 * 14 AS col1
----
-2059

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT DISTINCT COUNT( * ) * - 73 * - + 8 * - - COUNT( * )
----
584

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT COUNT ( * ) * - 73 * - + 8 * - - COUNT ( * )
----
584

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1811
SELECT ALL 35 * + - 74 AS col0, 10 DIV + 26 * + 20 * - 17 * + + 4 + COUNT( * ) - + 32 + - COUNT( * ) AS col1
----
-2590
-32

skipif mysql # not compatible
query II rowsort label-1811
SELECT ALL 35 * + - 74 AS col0, 10 / + 26 * + 20 * - 17 * + + 4 + COUNT ( * ) - + 32 + - COUNT ( * ) AS col1
----
-2590
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1812
SELECT ALL COUNT( * ) * - 27 + + CASE + ( - - 37 ) WHEN 14 + + + 97 THEN NULL ELSE - 15 - - 50 + + COUNT( * ) END + + - ( + 99 ) + - 63 * - - COALESCE ( + 61, - CAST( ( + CASE - - ( 76 ) WHEN 75 * 22 THEN NULL ELSE + + 83 * - 55 - + + 25 * 99 * - COUNT( ALL - 9 ) END ) AS SIGNED ) DIV COUNT( * ) + - 67 * ( - COUNT( * ) * - 39 ) + - 6, 18 ) - - CASE CASE - 60 WHEN 97 * 41 THEN NULL WHEN - ( 32 ) THEN + 20 * 43 END WHEN + 68 THEN NULL ELSE - SUM( 17 ) * + COALESCE ( COUNT( * ), 78 ) END
----
-3950

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL COUNT ( * ) * - 27 + + CASE + ( - - 37 ) WHEN 14 + + + 97 THEN NULL ELSE - 15 - - 50 + + COUNT ( * ) END + + - ( + 99 ) + - 63 * - - COALESCE ( + 61, - CAST ( ( + CASE - - ( 76 ) WHEN 75 * 22 THEN NULL ELSE + + 83 * - 55 - + + 25 * 99 * - COUNT ( ALL - 9 ) END ) AS INTEGER ) / COUNT ( * ) + - 67 * ( - COUNT ( * ) * - 39 ) + - 6, 18 ) - - CASE CASE - 60 WHEN 97 * 41 THEN NULL WHEN - ( 32 ) THEN + 20 * 43 END WHEN + 68 THEN NULL ELSE - SUM ( 17 ) * + COALESCE ( COUNT ( * ), 78 ) END
----
-3950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1813
SELECT CASE - 92 WHEN + + 96 * - 52 THEN 12 - COUNT( * ) + + 25 WHEN - SUM( ALL 53 ) THEN NULL ELSE - 9 * - CAST( - COUNT( * ) AS SIGNED ) + 45 + 39 * + - 21 * + ( - 74 ) * NULLIF ( - + ( 41 ), - + 30 + - 80 ) * 33 + + + 22 * + ( COUNT( * ) ) + - 82 END
----
-81999942

skipif mysql # not compatible
query I rowsort label-1813
SELECT CASE - 92 WHEN + + 96 * - 52 THEN 12 - COUNT ( * ) + + 25 WHEN - SUM ( ALL 53 ) THEN NULL ELSE - 9 * - CAST ( - COUNT ( * ) AS INTEGER ) + 45 + 39 * + - 21 * + ( - 74 ) * NULLIF ( - + ( 41 ), - + 30 + - 80 ) * 33 + + + 22 * + ( COUNT ( * ) ) + - 82 END
----
-81999942

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT + SUM( ALL - - 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1814
SELECT + SUM ( ALL - - 21 ) AS col1
----
21

query I rowsort
SELECT COALESCE ( + - 25, + + 37 ) AS col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1816
SELECT 32 * - + ( 14 ) + - 58 DIV - 90 AS col2
----
-448

skipif mysql # not compatible
query I rowsort label-1816
SELECT 32 * - + ( 14 ) + - 58 / - 90 AS col2
----
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT SUM( ALL 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-1817
SELECT SUM ( ALL 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT ALL + MIN( - 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL + MIN ( - 3 ) AS col0
----
-3

query I rowsort
SELECT DISTINCT 35 * - 40
----
-1400

query I rowsort
SELECT - + 87 * 77 col0
----
-6699

query I rowsort
SELECT + - 76 + 59
----
-17

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

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

query I rowsort
SELECT - 11 * + 97
----
-1067

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT - 50 + ( - - COUNT( * ) ) + 61
----
12

skipif mysql # not compatible
query I rowsort label-1824
SELECT - 50 + ( - - COUNT ( * ) ) + 61
----
12

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

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

query I rowsort
SELECT ALL + NULLIF ( - 44, + - 75 )
----
-44

query I rowsort
SELECT DISTINCT + + 3 + + 24 * - + 81 AS col2
----
-1941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1828
SELECT ALL - - COALESCE ( + 61, + COUNT( * ), + - 32 ) + + 17 + COALESCE ( ( - CAST( - 81 AS SIGNED ) ), + 78 ) AS col1, 45 * - COUNT( * )
----
159
-45

skipif mysql # not compatible
query II rowsort label-1828
SELECT ALL - - COALESCE ( + 61, + COUNT ( * ), + - 32 ) + + 17 + COALESCE ( ( - CAST ( - 81 AS INTEGER ) ), + 78 ) AS col1, 45 * - COUNT ( * )
----
159
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1829
SELECT DISTINCT + 21 DIV - 98 * + ( - + ( + + 41 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT + 21 / - 98 * + ( - + ( + + 41 ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1830
SELECT - - 10 DIV - - 66 - + 7 * 31 * + + 19
----
-4123

skipif mysql # not compatible
query I rowsort label-1830
SELECT - - 10 / - - 66 - + 7 * 31 * + + 19
----
-4123

query I rowsort
SELECT - + 94 + + ( 70 )
----
-24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT - - 24 * + + MAX( DISTINCT - 86 ) AS col0
----
-2064

skipif mysql # not compatible
query I rowsort label-1833
SELECT - - 24 * + + MAX ( DISTINCT - 86 ) AS col0
----
-2064

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT DISTINCT ( + CASE - - ( - 14 ) WHEN COALESCE ( ( 56 ), 79, + + 85 ) THEN + ( - - SUM( - 20 ) ) WHEN - ( - + 80 ) THEN 64 + - 78 WHEN - COALESCE ( + 75, - - 77 * + - 94 ) * - 10 THEN - + NULLIF ( + COUNT( * ), + 90 ) ELSE + 35 END ) col0
----
35

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT ( + CASE - - ( - 14 ) WHEN COALESCE ( ( 56 ), 79, + + 85 ) THEN + ( - - SUM ( - 20 ) ) WHEN - ( - + 80 ) THEN 64 + - 78 WHEN - COALESCE ( + 75, - - 77 * + - 94 ) * - 10 THEN - + NULLIF ( + COUNT ( * ), + 90 ) ELSE + 35 END ) col0
----
35

query II rowsort
SELECT 21 AS col1, - 21 + + - 21
----
21
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-1836
SELECT + ( - ( - - COUNT( * ) ) ) + - + 77 + - - COALESCE ( + - 73, - 60 ) + + + 48 AS col0, + 27 AS col2
----
-103
27

skipif mysql # not compatible
query II rowsort label-1836
SELECT + ( - ( - - COUNT ( * ) ) ) + - + 77 + - - COALESCE ( + - 73, - 60 ) + + + 48 AS col0, + 27 AS col2
----
-103
27

query I rowsort
SELECT ALL - 99 + 24
----
-75

query II rowsort
SELECT - 35 * - 25 * + + 76, - 6 + 33 AS col2
----
66500
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1839
SELECT DISTINCT + 87 DIV + 32 + + 42 * - COUNT( + 42 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT + 87 / + 32 + + 42 * - COUNT ( + 42 ) AS col1
----
-40

query I rowsort
SELECT + COALESCE ( 37, 18 )
----
37

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1843
SELECT + 58 DIV 90 * 1 DIV + 54 * - - ( 14 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1843
SELECT + 58 / 90 * 1 / + 54 * - - ( 14 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT - MAX( + 39 ) * 73
----
-2847

skipif mysql # not compatible
query I rowsort label-1844
SELECT - MAX ( + 39 ) * 73
----
-2847

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

skipif mysql # not compatible
query I rowsort label-1845
SELECT ( - MAX ( ALL 1 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1846
SELECT ALL 81 DIV + NULLIF ( 16, + + AVG ( ALL + 91 ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL 81 / + NULLIF ( 16, + + AVG ( ALL + 91 ) ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT + COALESCE ( - ( 87 ), + - ( - 43 ) + CASE - 40 WHEN - 54 THEN NULL ELSE - 81 * - 1 + + - 64 + - 65 END, COUNT( * ) - 8 )
----
-87

skipif mysql # not compatible
query I rowsort label-1847
SELECT + COALESCE ( - ( 87 ), + - ( - 43 ) + CASE - 40 WHEN - 54 THEN NULL ELSE - 81 * - 1 + + - 64 + - 65 END, COUNT ( * ) - 8 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT + ( - 38 ) - ( - - NULLIF ( + + 90, 78 + + - COUNT( * ) ) ) AS col0
----
-128

skipif mysql # not compatible
query I rowsort label-1848
SELECT + ( - 38 ) - ( - - NULLIF ( + + 90, 78 + + - COUNT ( * ) ) ) AS col0
----
-128

query I rowsort
SELECT + ( - 11 ) + - + 28
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL + 56 * - - COUNT( * ) * - + 60
----
-3360

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL + 56 * - - COUNT ( * ) * - + 60
----
-3360

query II rowsort
SELECT ALL + 43, 97 AS col0
----
43
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1852
SELECT ALL MAX( ALL + - 13 ) * - COUNT( * ) AS col1, 92 + - + 8
----
13
84

skipif mysql # not compatible
query II rowsort label-1852
SELECT ALL MAX ( ALL + - 13 ) * - COUNT ( * ) AS col1, 92 + - + 8
----
13
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT DISTINCT 24 * - - ( + + COUNT( * ) )
----
24

skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT 24 * - - ( + + COUNT ( * ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT - ( + + 72 ) * - - 72 + + COUNT( * )
----
-5183

skipif mysql # not compatible
query I rowsort label-1854
SELECT - ( + + 72 ) * - - 72 + + COUNT ( * )
----
-5183

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1856
SELECT + + 58, - CASE - + 51 WHEN 73 THEN + COUNT( * ) END AS col0
----
58
NULL

skipif mysql # not compatible
query II rowsort label-1856
SELECT + + 58, - CASE - + 51 WHEN 73 THEN + COUNT ( * ) END AS col0
----
58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1857
SELECT - 95 + 7 * NULLIF ( - CAST( + 83 AS SIGNED ), - CAST( NULL AS SIGNED ) * - - 52 / 80 + - 52 ) AS col2
----
-676

skipif mysql # not compatible
query I rowsort label-1857
SELECT - 95 + 7 * NULLIF ( - CAST ( + 83 AS INTEGER ), - CAST ( NULL AS INTEGER ) * - - 52 / 80 + - 52 ) AS col2
----
-676

onlyif mysql # aggregate syntax: 
query II rowsort label-1858
SELECT ALL + - COUNT( * ) * + - 7 + - 29 * - 72 + + - 71 AS col2, 66 col2
----
2024
66

skipif mysql # not compatible
query II rowsort label-1858
SELECT ALL + - COUNT ( * ) * + - 7 + - 29 * - 72 + + - 71 AS col2, 66 col2
----
2024
66

query II rowsort
SELECT DISTINCT 83 + - 86 + + 74, 35 col1
----
71
35

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

query II rowsort
SELECT 74 col2, - 60 + + 96 AS col0
----
74
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT ALL - 83 + - MAX( - 35 )
----
-48

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL - 83 + - MAX ( - 35 )
----
-48

query I rowsort
SELECT ALL + 20 * 93 col2
----
1860

query I rowsort
SELECT + 75 * - 11
----
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL MIN( + - 53 ) * + 26 AS col0
----
-1378

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL MIN ( + - 53 ) * + 26 AS col0
----
-1378

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT 50 * COUNT( * ) * + 20
----
1000

skipif mysql # not compatible
query I rowsort label-1866
SELECT 50 * COUNT ( * ) * + 20
----
1000

query I rowsort
SELECT CASE + 21 WHEN + 23 THEN NULL WHEN + 86 THEN - 97 * - 83 + - 60 + - 22 + - + 43 ELSE - 33 END AS col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-1868
SELECT ALL ( + 65 ) * - - COUNT( * ) * 48 AS col2, 44
----
3120
44

skipif mysql # not compatible
query II rowsort label-1868
SELECT ALL ( + 65 ) * - - COUNT ( * ) * 48 AS col2, 44
----
3120
44

query I rowsort
SELECT 57 - + 49
----
8

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

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

query II rowsort
SELECT 20 col0, 1
----
20
1

query I rowsort
SELECT 82 * 61
----
5002

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT ALL + 59 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL + 59 / 84
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1874
SELECT ALL - COUNT( * ) AS col2, - NULLIF ( + COALESCE ( 68, + - MAX( 31 ), - 42 DIV COUNT( * ) * 38 + 88 + - - 65 + + COUNT( DISTINCT + 75 ) DIV 29 DIV - 11 * + + MIN( DISTINCT + 83 ) DIV + + 29 * - - 26 ), + + 76 ) AS col1
----
-1
-68

skipif mysql # not compatible
query II rowsort label-1874
SELECT ALL - COUNT ( * ) AS col2, - NULLIF ( + COALESCE ( 68, + - MAX ( 31 ), - 42 / COUNT ( * ) * 38 + 88 + - - 65 + + COUNT ( DISTINCT + 75 ) / 29 / - 11 * + + MIN ( DISTINCT + 83 ) / + + 29 * - - 26 ), + + 76 ) AS col1
----
-1
-68

query I rowsort
SELECT DISTINCT - ( - - 78 ) AS col1
----
-78

query I rowsort
SELECT 66 + - 50
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1877
SELECT 49 AS col0, - 69 + - CAST( NULL AS DECIMAL ) * + CAST( + 9 AS DECIMAL )
----
49
NULL

skipif mysql # not compatible
query II rowsort label-1877
SELECT 49 AS col0, - 69 + - CAST ( NULL AS REAL ) * + CAST ( + 9 AS REAL )
----
49
NULL

query I rowsort
SELECT ALL + 69 * 95 col0
----
6555

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

query I rowsort
SELECT 69 * + 11 + - - 2
----
761

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

query I rowsort
SELECT ALL + 69 * - + 99
----
-6831

query I rowsort
SELECT 7 * 39 col0
----
273

query II rowsort
SELECT + + 94 AS col0, 38
----
94
38

onlyif mysql # aggregate syntax: 
query II rowsort label-1885
SELECT ALL - 37, - 30 + COUNT( * ) AS col1
----
-37
-29

skipif mysql # not compatible
query II rowsort label-1885
SELECT ALL - 37, - 30 + COUNT ( * ) AS col1
----
-37
-29

query I rowsort
SELECT + 66 * - 97 * + 29 col1
----
-185658

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1887
SELECT + + 70 AS col1, 25 * + COALESCE ( + + 60, - 42 ) * - + CAST( 65 AS SIGNED ) * + + 15 + - + 77 + + 67 + 16 + - 83 DIV 25
----
70
-1462497

skipif mysql # not compatible
query II rowsort label-1887
SELECT + + 70 AS col1, 25 * + COALESCE ( + + 60, - 42 ) * - + CAST ( 65 AS INTEGER ) * + + 15 + - + 77 + + 67 + 16 + - 83 / 25
----
70
-1462497

query I rowsort
SELECT ALL - 73 + + + COALESCE ( - 13, - - NULLIF ( + 96, + - 56 ) * - - 67 - - + COALESCE ( 96, 78 ) + 45 + 89, 4 * - ( + 63 ) * - 58 * - 52 ) * - 38
----
421

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT 68 * + MIN( DISTINCT + - ( 38 ) ) - 81
----
-2665

skipif mysql # not compatible
query I rowsort label-1889
SELECT 68 * + MIN ( DISTINCT + - ( 38 ) ) - 81
----
-2665

onlyif mysql # aggregate syntax: 
query II rowsort label-1890
SELECT 58 AS col0, CASE 76 WHEN - 79 THEN NULL WHEN + 22 + - + 76 - - 96 + + 63 + + 54 THEN - 5 ELSE + COUNT( + - 50 ) + + 21 - CASE + + 42 WHEN + 94 THEN NULL WHEN SUM( DISTINCT - ( - 39 ) ) THEN - - ( - 50 ) WHEN - 73 THEN NULL ELSE NULL END * COUNT( * ) + + ( + + 86 ) END
----
58
NULL

skipif mysql # not compatible
query II rowsort label-1890
SELECT 58 AS col0, CASE 76 WHEN - 79 THEN NULL WHEN + 22 + - + 76 - - 96 + + 63 + + 54 THEN - 5 ELSE + COUNT ( + - 50 ) + + 21 - CASE + + 42 WHEN + 94 THEN NULL WHEN SUM ( DISTINCT - ( - 39 ) ) THEN - - ( - 50 ) WHEN - 73 THEN NULL ELSE NULL END * COUNT ( * ) + + ( + + 86 ) END
----
58
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1891
SELECT ALL - 24 + COUNT( * ) + - - 71 * - 59 * + 22 DIV + COUNT( * )
----
-92181

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL - 24 + COUNT ( * ) + - - 71 * - 59 * + 22 / + COUNT ( * )
----
-92181

query I rowsort
SELECT DISTINCT + 65 + + + 99 AS col0
----
164

query I rowsort
SELECT ALL + - 86 * 68 * - - 80 + - + 22 + 56 - - + 50 * + 0 * + 28 + + ( - - 25 )
----
-467781

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT ALL 98 + - + MIN( - 72 )
----
170

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL 98 + - + MIN ( - 72 )
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1895
SELECT 27 * + COALESCE ( + + MAX( DISTINCT - 3 ), 20 * + 22 ) + 11 + - 88 + + + CAST( - NULLIF ( - 13, + 67 ) AS SIGNED ) + + + COUNT( * ) * + 66 DIV + - 80 - + 77 * ( 40 ) AS col1
----
-3225

skipif mysql # not compatible
query I rowsort label-1895
SELECT 27 * + COALESCE ( + + MAX ( DISTINCT - 3 ), 20 * + 22 ) + 11 + - 88 + + + CAST ( - NULLIF ( - 13, + 67 ) AS INTEGER ) + + + COUNT ( * ) * + 66 / + - 80 - + 77 * ( 40 ) AS col1
----
-3225

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT - 12 + + COALESCE ( 24, 82 ) * + 35 * + COUNT( * ) - + - 10 AS col1
----
838

skipif mysql # not compatible
query I rowsort label-1897
SELECT - 12 + + COALESCE ( 24, 82 ) * + 35 * + COUNT ( * ) - + - 10 AS col1
----
838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1898
SELECT + ( + 44 ) - + 35 / + + ( - 47 ) / - + CAST( NULL AS SIGNED ) - 68 + + 46 + + + 0 + 64 * - - 25 + + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT + ( + 44 ) - + 35 / + + ( - 47 ) / - + CAST ( NULL AS INTEGER ) - 68 + + 46 + + + 0 + 64 * - - 25 + + 80 AS col0
----
NULL

query I rowsort
SELECT 75 + + + 33
----
108

query I rowsort
SELECT + 95 - + 31 * + - 78
----
2513

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1901
SELECT ALL - SUM( DISTINCT + + CAST( NULL AS DECIMAL ) ) + - + 18 * - - 37 AS col1, 22 AS col1
----
NULL
22

skipif mysql # not compatible
query II rowsort label-1901
SELECT ALL - SUM ( DISTINCT + + CAST ( NULL AS REAL ) ) + - + 18 * - - 37 AS col1, 22 AS col1
----
NULL
22

query I rowsort
SELECT - - NULLIF ( - + 78, + + 59 ) AS col1
----
-78

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

skipif mysql # not compatible
query I rowsort label-1903
SELECT SUM ( + 10 )
----
10

query I rowsort
SELECT + 48 + + + 2 * + 46
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT ALL NULLIF ( + ( - 38 ), COUNT( - + 29 ) ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL NULLIF ( + ( - 38 ), COUNT ( - + 29 ) ) AS col0
----
-38

query II rowsort
SELECT ALL 77 AS col1, 38 AS col0
----
77
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1907
SELECT ( + 90 ) + - CAST( - COALESCE ( - CAST( 51 AS SIGNED ), + - COUNT( * ) * ( + 14 ), + 59 * - 7 * - 38 ) AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-1907
SELECT ( + 90 ) + - CAST ( - COALESCE ( - CAST ( 51 AS INTEGER ), + - COUNT ( * ) * ( + 14 ), + 59 * - 7 * - 38 ) AS INTEGER )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1908
SELECT ( + - ( - 5 ) ) * + 62 + - COUNT( * ) DIV ( 59 ), - 20 * 44 - - 1 AS col0
----
310
-879

skipif mysql # not compatible
query II rowsort label-1908
SELECT ( + - ( - 5 ) ) * + 62 + - COUNT ( * ) / ( 59 ), - 20 * 44 - - 1 AS col0
----
310
-879

onlyif mysql # DIV for integer division: 
query I rowsort label-1909
SELECT DISTINCT 53 - - 3 DIV + + 60 * 88
----
53

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT 53 - - 3 / + + 60 * 88
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1910
SELECT CAST( + AVG ( - + ( - + 51 ) ) AS SIGNED ) * + + 6 + + 4 AS col1
----
310

skipif mysql # not compatible
query I rowsort label-1910
SELECT CAST ( + AVG ( - + ( - + 51 ) ) AS INTEGER ) * + + 6 + + 4 AS col1
----
310

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

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL 70 * - + 0 * - COUNT ( * ) * + 54 AS col0
----
0

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

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

query I rowsort
SELECT 11 + - + 95 AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1914
SELECT DISTINCT 69 * - - COUNT( * ) * - COALESCE ( CAST( NULL AS SIGNED ), + ( - 27 ) + - ( - - ( + MAX( - - 59 ) ) ) - 65 + + COUNT( DISTINCT - 53 ) * 64 / - CASE - + 56 WHEN + 77 THEN - 52 + 87 WHEN + 78 / 15 / 34 THEN NULL ELSE NULL END * - 60 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT 69 * - - COUNT ( * ) * - COALESCE ( CAST ( NULL AS INTEGER ), + ( - 27 ) + - ( - - ( + MAX ( - - 59 ) ) ) - 65 + + COUNT ( DISTINCT - 53 ) * 64 / - CASE - + 56 WHEN + 77 THEN - 52 + 87 WHEN + 78 / 15 / 34 THEN NULL ELSE NULL END * - 60 ) AS col1
----
NULL

query III rowsort
SELECT 1 * + - 49 AS col0, 62 * - 76 + - 90, 46 AS col1
----
-49
-4802
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT DISTINCT - 92 * - + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT - 92 * - + COUNT ( * )
----
92

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

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL - COUNT ( DISTINCT + ( - + 5 ) ) col0
----
-1

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

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

query I rowsort
SELECT DISTINCT + 86 * + - 55
----
-4730

onlyif mysql # DIV for integer division: 
query I rowsort label-1920
SELECT + 5 * - 68 + 36 DIV COALESCE ( - + 2, 15, 48 + + 97 )
----
-358

skipif mysql # not compatible
query I rowsort label-1920
SELECT + 5 * - 68 + 36 / COALESCE ( - + 2, 15, 48 + + 97 )
----
-358

query I rowsort
SELECT - 30 + + 51
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1922
SELECT ALL - 5 * 80 + 20 + MAX( ALL + 13 ) * + CAST( + 18 AS SIGNED ) + + ( + + 69 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL - 5 * 80 + 20 + MAX ( ALL + 13 ) * + CAST ( + 18 AS INTEGER ) + + ( + + 69 ) AS col1
----
-77

query I rowsort
SELECT DISTINCT + 25 * - - 4 * + + 10 AS col2
----
1000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1924
SELECT 81 * - 63 + - 49 + 15 * + - 91 * + 44 / + - 85 * - 19 + + 31 + - MIN( + 85 ) * - 67 * - - 20 * + + 81 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1924
SELECT 81 * - 63 + - 49 + 15 * + - 91 * + 44 / + - 85 * - 19 + + 31 + - MIN ( + 85 ) * - 67 * - - 20 * + + 81 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1925
SELECT + MIN( ALL - 1 ) AS col2, + 35 * + COUNT( * ) + + - COUNT( * )
----
-1
34

skipif mysql # not compatible
query II rowsort label-1925
SELECT + MIN ( ALL - 1 ) AS col2, + 35 * + COUNT ( * ) + + - COUNT ( * )
----
-1
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1926
SELECT + + 68 * + 92 + - 0 + - + COUNT( * ) * + - 3 col2, CAST( 25 AS SIGNED ) * - + 23 * 8 * COUNT( * ) - 62 + + 21 * - 57 * + 16
----
6259
-23814

skipif mysql # not compatible
query II rowsort label-1926
SELECT + + 68 * + 92 + - 0 + - + COUNT ( * ) * + - 3 col2, CAST ( 25 AS INTEGER ) * - + 23 * 8 * COUNT ( * ) - 62 + + 21 * - 57 * + 16
----
6259
-23814

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT ALL + - 21 + - - MIN( ALL 91 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL + - 21 + - - MIN ( ALL 91 ) AS col2
----
70

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

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

query I rowsort
SELECT - 32 * 70
----
-2240

onlyif mysql # DIV for integer division: 
query II rowsort label-1930
SELECT DISTINCT 72 * 40 DIV - 37 AS col2, 15 AS col2
----
-77
15

skipif mysql # not compatible
query II rowsort label-1930
SELECT DISTINCT 72 * 40 / - 37 AS col2, 15 AS col2
----
-77
15

query I rowsort
SELECT ALL + 40 - - ( - 92 )
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1932
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1932
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 4 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL + 60 - - 50 + + 11 * - COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL + 60 - - 50 + + 11 * - COUNT ( * ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT - COUNT( * ) - CASE + 64 WHEN - + 42 THEN + + 75 + + 58 + COUNT( * ) + + 98 * 99 * - 61 WHEN + COUNT( * ) * COUNT( * ) + 73 THEN NULL END + + 91 * - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT - COUNT ( * ) - CASE + 64 WHEN - + 42 THEN + + 75 + + 58 + COUNT ( * ) + + 98 * 99 * - 61 WHEN + COUNT ( * ) * COUNT ( * ) + 73 THEN NULL END + + 91 * - 1 AS col2
----
NULL

query I rowsort
SELECT + ( + - 14 ) * 14
----
-196

query I rowsort
SELECT ALL + 95 * + + 41 AS col1
----
3895

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT ALL 71 * MIN( 34 ) AS col1
----
2414

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL 71 * MIN ( 34 ) AS col1
----
2414

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT - 77 + + - COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-1938
SELECT - 77 + + - COUNT ( * ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT - COALESCE ( - + ( + MAX( + + 31 ) ), 68 + + 40 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1939
SELECT - COALESCE ( - + ( + MAX ( + + 31 ) ), 68 + + 40 ) AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-1940
SELECT - 94 DIV - 12
----
7

skipif mysql # not compatible
query I rowsort label-1940
SELECT - 94 / - 12
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-1941
SELECT ALL 87, + NULLIF ( + MAX( ALL - COALESCE ( - + 88, 82 ) ), - 43 - - 86 * COUNT( * ) ) AS col1
----
87
88

skipif mysql # not compatible
query II rowsort label-1941
SELECT ALL 87, + NULLIF ( + MAX ( ALL - COALESCE ( - + 88, 82 ) ), - 43 - - 86 * COUNT ( * ) ) AS col1
----
87
88

query I rowsort
SELECT + 76 * - 83 AS col0
----
-6308

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

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

query I rowsort
SELECT + 40 * + 53 * 77 * - 32
----
-5223680

query I rowsort
SELECT DISTINCT 52 * 99 AS col1
----
5148

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

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

query I rowsort
SELECT + 75 * - + 62 AS col1
----
-4650

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

query I rowsort
SELECT ALL 98 * + 1 AS col0
----
98

query I rowsort
SELECT + 4 * + 59 * + 61 col1
----
14396

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT + ( - 40 ) + - 11 + + ( COUNT( * ) ) * - 34 * - 69 AS col1
----
2295

skipif mysql # not compatible
query I rowsort label-1951
SELECT + ( - 40 ) + - 11 + + ( COUNT ( * ) ) * - 34 * - 69 AS col1
----
2295

query I rowsort
SELECT + 69 - - 10
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT + 39 + + + COALESCE ( + + COUNT( * ), + + 92 * - - 9 * + + NULLIF ( MIN( + 54 ), - + COUNT( * ) * - - 2 ), + 80 ) * MAX( + + COALESCE ( - 71, 0, 85 + + 57 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-1953
SELECT + 39 + + + COALESCE ( + + COUNT ( * ), + + 92 * - - 9 * + + NULLIF ( MIN ( + 54 ), - + COUNT ( * ) * - - 2 ), + 80 ) * MAX ( + + COALESCE ( - 71, 0, 85 + + 57 ) )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT ALL 87 DIV - 16 + - 38 DIV 92 col1
----
-5

skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL 87 / - 16 + - 38 / 92 col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT + ( - NULLIF ( - 35, - - 93 + 75 / COUNT( * ) * COALESCE ( + + 27, + + 10 + - 71 - + 67 - - 5 * + 93 + - 5 ) ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1955
SELECT + ( - NULLIF ( - 35, - - 93 + 75 / COUNT ( * ) * COALESCE ( + + 27, + + 10 + - 71 - + 67 - - 5 * + 93 + - 5 ) ) ) AS col0
----
35

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1957
SELECT ALL 75 * + COUNT( * ) * - AVG ( DISTINCT + 29 ) * ( + 37 ) * - + CAST( NULL AS DECIMAL ) / + 19 * + 21 + + + MAX( - - 25 ) + - + 38 + - ( + + 32 ) * + 28 * + 13 AS col2, - 81 + - - 40 AS col2
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-1957
SELECT ALL 75 * + COUNT ( * ) * - AVG ( DISTINCT + 29 ) * ( + 37 ) * - + CAST ( NULL AS REAL ) / + 19 * + 21 + + + MAX ( - - 25 ) + - + 38 + - ( + + 32 ) * + 28 * + 13 AS col2, - 81 + - - 40 AS col2
----
NULL
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT DISTINCT - 29 * 28 + - COUNT( * ) + - 51 + - 10
----
-874

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT - 29 * 28 + - COUNT ( * ) + - 51 + - 10
----
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ALL + - 96 * + 48 * + 85 * - 42 + - NULLIF ( - COUNT( * ), - - 15 ) + + 14 AS col1
----
16450575

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL + - 96 * + 48 * + 85 * - 42 + - NULLIF ( - COUNT ( * ), - - 15 ) + + 14 AS col1
----
16450575

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL + CASE + 61 WHEN 24 / + 34 * + COUNT( - - 17 ) + - - 46 THEN ( 88 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL + CASE + 61 WHEN 24 / + 34 * + COUNT ( - - 17 ) + - - 46 THEN ( 88 ) END
----
NULL

query II rowsort
SELECT ALL + 77 col1, - 86 AS col1
----
77
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT + - 91 + - 58 + - COUNT( * ) * 57 AS col2
----
-206

skipif mysql # not compatible
query I rowsort label-1962
SELECT + - 91 + - 58 + - COUNT ( * ) * 57 AS col2
----
-206

query I rowsort
SELECT + - 32 * ( - 79 ) * 93 * 35 * 96 + - 81
----
789949359

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1964
SELECT ALL + 21 / - COUNT( * ) + + COUNT( * ) * - ( + - CASE - COUNT( * ) WHEN 38 THEN CAST( NULL AS DECIMAL ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL + 21 / - COUNT ( * ) + + COUNT ( * ) * - ( + - CASE - COUNT ( * ) WHEN 38 THEN CAST ( NULL AS REAL ) END )
----
NULL

query I rowsort
SELECT + 86 * + 21 + - 58 + - - 40 * + - 28 AS col1
----
628

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1966
SELECT ALL 81 * - 74 - + 28 / + 49 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL 81 * - 74 - + 28 / + 49 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT ALL + - 19 * + 54 + - ( - COUNT( * ) ) AS col0
----
-1025

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL + - 19 * + 54 + - ( - COUNT ( * ) ) AS col0
----
-1025

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT DISTINCT - - 56 * - COALESCE ( + SUM( DISTINCT - 19 ), - 56 ) AS col0
----
1064

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - - 56 * - COALESCE ( + SUM ( DISTINCT - 19 ), - 56 ) AS col0
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT - 17 - COUNT( * ) * + + 42 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1969
SELECT - 17 - COUNT ( * ) * + + 42 AS col2
----
-59

query I rowsort
SELECT - 21 * - 70 col1
----
1470

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT - 30 + 54 DIV - 94 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1971
SELECT - 30 + 54 / - 94 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT + - 78 * 7 + + 87 * - - COUNT( * ) col0
----
-459

skipif mysql # not compatible
query I rowsort label-1972
SELECT + - 78 * 7 + + 87 * - - COUNT ( * ) col0
----
-459

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1973
SELECT DISTINCT + 56, - CAST( - 68 AS SIGNED ) * - 30 AS col2
----
56
-2040

skipif mysql # not compatible
query II rowsort label-1973
SELECT DISTINCT + 56, - CAST ( - 68 AS INTEGER ) * - 30 AS col2
----
56
-2040

query I rowsort
SELECT ALL - + 14 * - 74
----
1036

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT COUNT( * ) * + 41 * 40 + + 33 + 38 - + - 68 + - 5 + - ( + ( - 90 ) ) AS col1
----
1864

skipif mysql # not compatible
query I rowsort label-1975
SELECT COUNT ( * ) * + 41 * 40 + + 33 + 38 - + - 68 + - 5 + - ( + ( - 90 ) ) AS col1
----
1864

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT - ( - + 28 ) - MAX( 93 )
----
-65

skipif mysql # not compatible
query I rowsort label-1976
SELECT - ( - + 28 ) - MAX ( 93 )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1977
SELECT COUNT( * ) * + 21 + + - CAST( CASE + - 73 WHEN - 44 THEN + 77 + + 25 WHEN + 30 * + - COUNT( * ) * - 68 + + + 52 * - 90 THEN - 53 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT COUNT ( * ) * + 21 + + - CAST ( CASE + - 73 WHEN - 44 THEN + 77 + + 25 WHEN + 30 * + - COUNT ( * ) * - 68 + + + 52 * - 90 THEN - 53 END AS INTEGER )
----
NULL

query I rowsort
SELECT - 59 + + 0 + - 32
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1979
SELECT DISTINCT CAST( 99 AS SIGNED ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT CAST ( 99 AS INTEGER ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT - COUNT( * ) + + + ( + - 35 ) * + - 92
----
3219

skipif mysql # not compatible
query I rowsort label-1980
SELECT - COUNT ( * ) + + + ( + - 35 ) * + - 92
----
3219

onlyif mysql # DIV for integer division: 
query I rowsort label-1981
SELECT ALL - 37 DIV - + 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL - 37 / - + 55 AS col0
----
0

query II rowsort
SELECT - 99 + + - 69, + 8 col1
----
-168
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT ALL + COUNT( * ) + + + 13 col1
----
14

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL + COUNT ( * ) + + + 13 col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT - SUM( ALL - 4 ) * 31 AS col2
----
124

skipif mysql # not compatible
query I rowsort label-1984
SELECT - SUM ( ALL - 4 ) * 31 AS col2
----
124

query I rowsort
SELECT - CASE 62 WHEN + 93 THEN 54 + - - 61 ELSE + 17 END
----
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-1986
SELECT - 39 DIV + 52 AS col1, - 2
----
0
-2

skipif mysql # not compatible
query II rowsort label-1986
SELECT - 39 / + 52 AS col1, - 2
----
0
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT DISTINCT + COUNT( - 15 ) + - 12 * + + 7 + - COUNT( 41 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT + COUNT ( - 15 ) + - 12 * + + 7 + - COUNT ( 41 ) AS col1
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1988
SELECT ALL ( - ( - 80 ) ) + ( + ( + + 14 ) ) + + CASE - 72 WHEN 81 + + 89 THEN - 2 + - 84 + - 65 + - - 90 WHEN + 12 THEN + 73 + 39 DIV - - COUNT( * ) * + 88 ELSE 49 END
----
143

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL ( - ( - 80 ) ) + ( + ( + + 14 ) ) + + CASE - 72 WHEN 81 + + 89 THEN - 2 + - 84 + - 65 + - - 90 WHEN + 12 THEN + 73 + 39 / - - COUNT ( * ) * + 88 ELSE 49 END
----
143

query I rowsort
SELECT DISTINCT 62 + + + 77
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1990
SELECT 56 + COALESCE ( + 94, - + 25 DIV COUNT( * ), + + 33 + - 31 ) + 20
----
170

skipif mysql # not compatible
query I rowsort label-1990
SELECT 56 + COALESCE ( + 94, - + 25 / COUNT ( * ), + + 33 + - 31 ) + 20
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT 71 * 80 + - 38 * - - 7 + + 8 - + 71 + + 87 * 69 + + COUNT( 90 )
----
11355

skipif mysql # not compatible
query I rowsort label-1991
SELECT 71 * 80 + - 38 * - - 7 + + 8 - + 71 + + 87 * 69 + + COUNT ( 90 )
----
11355

query I rowsort
SELECT ALL + 36 * - 49
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT + 33 / 36 + - 2 / - COUNT( 6 ) * + 4 / + CASE + 15 WHEN 73 THEN - 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1993
SELECT + 33 / 36 + - 2 / - COUNT ( 6 ) * + 4 / + CASE + 15 WHEN 73 THEN - 34 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT 4 - COUNT( * ) * NULLIF ( + 9, - 87 )
----
-5

skipif mysql # not compatible
query I rowsort label-1994
SELECT 4 - COUNT ( * ) * NULLIF ( + 9, - 87 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT DISTINCT - 92 * - COUNT( DISTINCT 46 )
----
92

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT - 92 * - COUNT ( DISTINCT 46 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT ALL COUNT( * ) * + 54 + + 64 * - 3
----
-138

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL COUNT ( * ) * + 54 + + 64 * - 3
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT COUNT( * ) + + - 10 + + 99
----
90

skipif mysql # not compatible
query I rowsort label-1997
SELECT COUNT ( * ) + + - 10 + + 99
----
90

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1999
SELECT DISTINCT + 73 - + 3 + + 69 + + 56, + SUM( ALL - 53 ) col0
----
195
-53

skipif mysql # not compatible
query II rowsort label-1999
SELECT DISTINCT + 73 - + 3 + + 69 + + 56, + SUM ( ALL - 53 ) col0
----
195
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2000
SELECT + 58 / 45 + 29 * + 17 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT + 58 / 45 + 29 * + 17 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT ALL - COUNT( + + COALESCE ( - 42, 36 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL - COUNT ( + + COALESCE ( - 42, 36 ) ) AS col1
----
-1

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

skipif mysql # not compatible
query I rowsort label-2002
SELECT - 51 + COUNT ( DISTINCT + 4 ) AS col1
----
-50

query I rowsort
SELECT ( - 7 ) * + - ( 26 ) AS col0
----
182

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2005
SELECT - COUNT( * ) * + - 25 AS col0, + 60 + - + ( + 73 ) + 25
----
25
12

skipif mysql # not compatible
query II rowsort label-2005
SELECT - COUNT ( * ) * + - 25 AS col0, + 60 + - + ( + 73 ) + 25
----
25
12

query II rowsort
SELECT 89 col2, - 12 + + 20 AS col1
----
89
8

query I rowsort
SELECT 76 * 80
----
6080

query I rowsort
SELECT ALL - 41 + 4
----
-37

query I rowsort
SELECT ALL 88 * + 49 AS col1
----
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT ALL - 5 + 35 + CASE - ( 60 ) WHEN - SUM( ALL - + 58 ) THEN - COUNT( * ) + - SUM( ALL + + 72 ) + + 88 + 25 + COUNT( * ) * - - 71 WHEN + - MAX( ALL + 9 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL - 5 + 35 + CASE - ( 60 ) WHEN - SUM ( ALL - + 58 ) THEN - COUNT ( * ) + - SUM ( ALL + + 72 ) + + 88 + 25 + COUNT ( * ) * - - 71 WHEN + - MAX ( ALL + 9 ) THEN NULL END
----
NULL

query I rowsort
SELECT 27 * - ( + 5 ) * - 77
----
10395

query II rowsort
SELECT DISTINCT 9 AS col2, - 6 + - 15 + 7 col1
----
9
-14

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

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

query I rowsort
SELECT 16 - + + 22
----
-6

query II rowsort
SELECT ALL 62 AS col2, - ( - + ( - + 66 ) )
----
62
-66

query I rowsort
SELECT 26 - - 10 - - ( + 59 ) AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2017
SELECT DISTINCT 20 AS col0, 62 * - COALESCE ( 79, + - 65 - 55, CAST( NULL AS SIGNED ) * 51 ) + + CASE ( 43 ) WHEN 13 THEN + - 72 END * 73 AS col0
----
20
NULL

skipif mysql # not compatible
query II rowsort label-2017
SELECT DISTINCT 20 AS col0, 62 * - COALESCE ( 79, + - 65 - 55, CAST ( NULL AS INTEGER ) * 51 ) + + CASE ( 43 ) WHEN 13 THEN + - 72 END * 73 AS col0
----
20
NULL

query I rowsort
SELECT ALL 97 * - 79 AS col0
----
-7663

query I rowsort
SELECT 70 * + 41 AS col0
----
2870

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT ALL - COALESCE ( + 76, - CASE - COUNT( * ) WHEN - 31 * 46 THEN - - 32 WHEN + 19 THEN NULL END, 96 )
----
-76

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL - COALESCE ( + 76, - CASE - COUNT ( * ) WHEN - 31 * 46 THEN - - 32 WHEN + 19 THEN NULL END, 96 )
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2021
SELECT - COALESCE ( + - ( 75 ), - + 51 * - 68 + + 17 + - COUNT( * ), - + 44 * - 46 * - COALESCE ( + 94, 44 ) DIV 59 ) + NULLIF ( + 65, - + 40 * + ( - 56 ) )
----
140

skipif mysql # not compatible
query I rowsort label-2021
SELECT - COALESCE ( + - ( 75 ), - + 51 * - 68 + + 17 + - COUNT ( * ), - + 44 * - 46 * - COALESCE ( + 94, 44 ) / 59 ) + NULLIF ( + 65, - + 40 * + ( - 56 ) )
----
140

query I rowsort
SELECT 19 + 12
----
31

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

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

query I rowsort
SELECT 50 * + 10 col1
----
500

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT CASE - 39 WHEN - + 2 * - + 33 THEN + 71 ELSE COUNT( * ) END * - 72
----
-72

skipif mysql # not compatible
query I rowsort label-2026
SELECT CASE - 39 WHEN - + 2 * - + 33 THEN + 71 ELSE COUNT ( * ) END * - 72
----
-72

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

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT - COUNT ( * ) - + + 89 + + 48 AS col2
----
-42

query II rowsort
SELECT - 78 AS col0, 27
----
-78
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2029
SELECT - 65 + ( - COALESCE ( - 71, 29 - COUNT( * ) * + 44 DIV + + 65 ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2029
SELECT - 65 + ( - COALESCE ( - 71, 29 - COUNT ( * ) * + 44 / + + 65 ) ) AS col2
----
6

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2032
SELECT DISTINCT + 87 * - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) * - - 90 * + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT + 87 * - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) * - - 90 * + 4
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2033
SELECT ALL - - 23, 57 + + + COUNT( - ( - 97 ) ) + + 45 + + MIN( DISTINCT 52 ) * 68 + 83 AS col2
----
23
3722

skipif mysql # not compatible
query II rowsort label-2033
SELECT ALL - - 23, 57 + + + COUNT ( - ( - 97 ) ) + + 45 + + MIN ( DISTINCT 52 ) * 68 + 83 AS col2
----
23
3722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2034
SELECT ALL + COUNT( * ) + - CAST( + 6 AS SIGNED ) + + 17
----
12

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL + COUNT ( * ) + - CAST ( + 6 AS INTEGER ) + + 17
----
12

query I rowsort
SELECT CASE 91 WHEN 59 / - 84 THEN + + 11 ELSE - - 94 END + - 76 * - - 71 AS col1
----
-5302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2036
SELECT DISTINCT 53 * - 8 * - CAST( + 51 AS SIGNED )
----
21624

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT 53 * - 8 * - CAST ( + 51 AS INTEGER )
----
21624

query II rowsort
SELECT ALL - 21, 35 + + 95 AS col1
----
-21
130

query I rowsort
SELECT 92 + - 63 AS col2
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT ALL COUNT( * ) + + 13 col2
----
14

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL COUNT ( * ) + + 13 col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2041
SELECT DISTINCT COALESCE ( 84, - COUNT( * ), - 59 * - 65 ) + + - COUNT( * ) * NULLIF ( 30, - 67 ), 29 AS col2
----
54
29

skipif mysql # not compatible
query II rowsort label-2041
SELECT DISTINCT COALESCE ( 84, - COUNT ( * ), - 59 * - 65 ) + + - COUNT ( * ) * NULLIF ( 30, - 67 ), 29 AS col2
----
54
29

query II rowsort
SELECT ALL 41 AS col1, + 11
----
41
11

query I rowsort
SELECT 27 + - + 19
----
8

query I rowsort
SELECT ALL ( 90 ) + + 30 * 68 + 98 + 32 + + 75 AS col0
----
2335

query II rowsort
SELECT 74 col1, 51 AS col2
----
74
51

query I rowsort
SELECT - 46 + + + 58 + ( + ( - 24 ) ) + - 60 col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT ALL - 47 + + COUNT( ALL + - ( - 73 ) ) + + - 41 - - 39 * - ( - 22 ) * 44 col0
----
37665

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL - 47 + + COUNT ( ALL + - ( - 73 ) ) + + - 41 - - 39 * - ( - 22 ) * 44 col0
----
37665

query I rowsort
SELECT + 34 + 39
----
73

query I rowsort
SELECT DISTINCT NULLIF ( + 9, 33 - 12 ) * + 73 col1
----
657

query I rowsort
SELECT ALL 92 - + + 9 AS col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2051
SELECT + 74 * CAST( - + 93 AS SIGNED ) AS col0
----
-6882

skipif mysql # not compatible
query I rowsort label-2051
SELECT + 74 * CAST ( - + 93 AS INTEGER ) AS col0
----
-6882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2052
SELECT - AVG ( ALL + 52 ) * + CASE + - COUNT( * ) WHEN + 90 THEN + 32 + + 17 WHEN - + 41 THEN NULL END * + 64 + + CAST( - - 30 AS SIGNED ) * - + NULLIF ( + 3, 70 * + + 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2052
SELECT - AVG ( ALL + 52 ) * + CASE + - COUNT ( * ) WHEN + 90 THEN + 32 + + 17 WHEN - + 41 THEN NULL END * + 64 + + CAST ( - - 30 AS INTEGER ) * - + NULLIF ( + 3, 70 * + + 77 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2053
SELECT ALL + CAST( + + ( - CASE - CAST( 46 AS SIGNED ) WHEN AVG ( ALL - - ( + - 51 ) ) / + 68 THEN NULL WHEN 64 THEN - COALESCE ( - COUNT( * ), - + 74 * - 43 / + - 14, ( 90 ) ) ELSE NULL END ) AS SIGNED ) * + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL + CAST ( + + ( - CASE - CAST ( 46 AS INTEGER ) WHEN AVG ( ALL - - ( + - 51 ) ) / + 68 THEN NULL WHEN 64 THEN - COALESCE ( - COUNT ( * ), - + 74 * - 43 / + - 14, ( 90 ) ) ELSE NULL END ) AS INTEGER ) * + 43
----
NULL

query I rowsort
SELECT + + 3 + 27 col0
----
30

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

skipif mysql # not compatible
query I rowsort label-2055
SELECT - + MAX ( - 31 )
----
31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT CASE - - COUNT( * ) WHEN 65 THEN - 43 WHEN - 96 THEN + 36 / - MAX( - + 16 ) + - 96 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT CASE - - COUNT ( * ) WHEN 65 THEN - 43 WHEN - 96 THEN + 36 / - MAX ( - + 16 ) + - 96 END AS col1
----
NULL

query I rowsort
SELECT - - 65 + - 65
----
0

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

skipif mysql # not compatible
query I rowsort label-2059
SELECT - + COUNT ( 58 ) * + 19 AS col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2060
SELECT ALL - 52, ( - 20 ) DIV 86 * - ( - + 48 ) + COUNT( * ) AS col0
----
-52
1

skipif mysql # not compatible
query II rowsort label-2060
SELECT ALL - 52, ( - 20 ) / 86 * - ( - + 48 ) + COUNT ( * ) AS col0
----
-52
1

query I rowsort
SELECT - NULLIF ( - ( 77 ), - 41 * + 56 * - 81 ) col2
----
77

query I rowsort
SELECT - 83 + + 53 * - ( + 80 ) * + 22
----
-93363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2063
SELECT - CAST( + 10 AS SIGNED ) + - - COUNT( * ) + 56 AS col1, 64 AS col1
----
47
64

skipif mysql # not compatible
query II rowsort label-2063
SELECT - CAST ( + 10 AS INTEGER ) + - - COUNT ( * ) + 56 AS col1, 64 AS col1
----
47
64

query I rowsort
SELECT - 54 - - 92
----
38

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

skipif mysql # not compatible
query I rowsort label-2065
SELECT + + MAX ( + 88 )
----
88

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2067
SELECT - - COUNT( * ) * + + 47 AS col0, 91 * - + 6 + + COUNT( * )
----
47
-545

skipif mysql # not compatible
query II rowsort label-2067
SELECT - - COUNT ( * ) * + + 47 AS col0, 91 * - + 6 + + COUNT ( * )
----
47
-545

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT - + 52 * 30 + + MIN( - - CASE - + 51 WHEN 89 THEN NULL ELSE - CASE + + ( - 55 ) WHEN + 34 THEN - - ( - 69 ) ELSE NULL END / - 45 * - 96 / 2 * + CASE + - ( - 31 ) WHEN - 43 * + 93 - + - 76 THEN + - 95 ELSE NULL END END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT - + 52 * 30 + + MIN ( - - CASE - + 51 WHEN 89 THEN NULL ELSE - CASE + + ( - 55 ) WHEN + 34 THEN - - ( - 69 ) ELSE NULL END / - 45 * - 96 / 2 * + CASE + - ( - 31 ) WHEN - 43 * + 93 - + - 76 THEN + - 95 ELSE NULL END END )
----
NULL

query II rowsort
SELECT + + 46 + + 53, CASE + ( CASE + 25 WHEN - 91 THEN - ( - 91 ) END ) WHEN - - 75 THEN + + 17 END AS col0
----
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT ALL 95 * + - 69 + + + 90 + - 41 + - COALESCE ( - + COUNT( + - 65 ), + COUNT( * ) * 81, 65 + - MIN( ALL - 16 ) * + 63 + 13 * - - 21 )
----
-6505

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL 95 * + - 69 + + + 90 + - 41 + - COALESCE ( - + COUNT ( + - 65 ), + COUNT ( * ) * 81, 65 + - MIN ( ALL - 16 ) * + 63 + 13 * - - 21 )
----
-6505

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT + COALESCE ( + 4, - 35 * + COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-2071
SELECT + COALESCE ( + 4, - 35 * + COUNT ( * ) )
----
4

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2074
SELECT ALL + - CAST( NULL AS SIGNED ) * 90 / 12 + 80 - COUNT( * ) * + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL + - CAST ( NULL AS INTEGER ) * 90 / 12 + 80 - COUNT ( * ) * + 21
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2075
SELECT DISTINCT + 72 * + 1 + COUNT( * ) * 67 DIV 11 * 60 AS col0, 9
----
432
9

skipif mysql # not compatible
query II rowsort label-2075
SELECT DISTINCT + 72 * + 1 + COUNT ( * ) * 67 / 11 * 60 AS col0, 9
----
432
9

query I rowsort
SELECT ALL 48 * - 16 + 11
----
-757

query I rowsort
SELECT DISTINCT 16 * - + 32 * - 97 + + - 39
----
49625

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT - ( - + 6 ) * + 95 * - COUNT( * )
----
-570

skipif mysql # not compatible
query I rowsort label-2078
SELECT - ( - + 6 ) * + 95 * - COUNT ( * )
----
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT + NULLIF ( + 22, + + 55 / CASE COUNT( * ) WHEN + 76 THEN NULL WHEN + - 23 THEN - - 72 / + 1 * + NULLIF ( - 22, - ( - 25 ) ) ELSE - NULLIF ( - MAX( DISTINCT 3 ), - 34 * - 38 ) END - 6 )
----
22

skipif mysql # not compatible
query I rowsort label-2079
SELECT + NULLIF ( + 22, + + 55 / CASE COUNT ( * ) WHEN + 76 THEN NULL WHEN + - 23 THEN - - 72 / + 1 * + NULLIF ( - 22, - ( - 25 ) ) ELSE - NULLIF ( - MAX ( DISTINCT 3 ), - 34 * - 38 ) END - 6 )
----
22

query I rowsort
SELECT NULLIF ( + + 71, + 25 + - 93 )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2081
SELECT 79 * + - COALESCE ( - CAST( NULL AS SIGNED ), + 74 ) + + - 82 * - + 60 col0
----
-926

skipif mysql # not compatible
query I rowsort label-2081
SELECT 79 * + - COALESCE ( - CAST ( NULL AS INTEGER ), + 74 ) + + - 82 * - + 60 col0
----
-926

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

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

query I rowsort
SELECT ALL + 37 * - 28 + - + 42
----
-1078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2084
SELECT + 58 * - CAST( 9 AS SIGNED )
----
-522

skipif mysql # not compatible
query I rowsort label-2084
SELECT + 58 * - CAST ( 9 AS INTEGER )
----
-522

query I rowsort
SELECT - NULLIF ( - 64, - - 50 / 39 + + - AVG ( DISTINCT - 52 ) )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2086
SELECT MIN( - 83 ) AS col0, 65 + 23 col2
----
-83
88

skipif mysql # not compatible
query II rowsort label-2086
SELECT MIN ( - 83 ) AS col0, 65 + 23 col2
----
-83
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2087
SELECT + 63 * - - CAST( + 77 AS SIGNED ) * - 35 AS col2
----
-169785

skipif mysql # not compatible
query I rowsort label-2087
SELECT + 63 * - - CAST ( + 77 AS INTEGER ) * - 35 AS col2
----
-169785

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

skipif mysql # not compatible
query I rowsort label-2088
SELECT + 74 + - - COUNT ( * ) AS col0
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT - CASE + 59 WHEN COUNT( * ) * - - 73 * 77 + - COUNT( * ) THEN 30 WHEN + 75 THEN + 79 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT - CASE + 59 WHEN COUNT ( * ) * - - 73 * 77 + - COUNT ( * ) THEN 30 WHEN + 75 THEN + 79 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2091
SELECT + 45 DIV + - 51
----
0

skipif mysql # not compatible
query I rowsort label-2091
SELECT + 45 / + - 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2092
SELECT + CASE 67 WHEN - + 10 THEN + 77 ELSE ( + COALESCE ( - COUNT( * ), MIN( ALL - 71 ) ) ) * ( + 69 ) + + + 66 * + + 92 END - + 69 - + COUNT( * ) AS col0, + 81 * + 21 + - 29 + CAST( NULL AS SIGNED ) AS col0
----
5933
NULL

skipif mysql # not compatible
query II rowsort label-2092
SELECT + CASE 67 WHEN - + 10 THEN + 77 ELSE ( + COALESCE ( - COUNT ( * ), MIN ( ALL - 71 ) ) ) * ( + 69 ) + + + 66 * + + 92 END - + 69 - + COUNT ( * ) AS col0, + 81 * + 21 + - 29 + CAST ( NULL AS INTEGER ) AS col0
----
5933
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - 88, + - 44 )
----
-88

query I rowsort
SELECT DISTINCT + 64 * + ( - 37 ) + - 85 + - 6 + + 52 * - 10
----
-2979

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

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

query I rowsort
SELECT ALL 55 * + - ( + 34 ) AS col2
----
-1870

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT + + 47 + NULLIF ( - 48, COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2097
SELECT + + 47 + NULLIF ( - 48, COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT - + 42 * + 80
----
-3360

onlyif mysql # DIV for integer division: 
query I rowsort label-2099
SELECT DISTINCT + 47 DIV - 9 + + + 32
----
27

skipif mysql # not compatible
query I rowsort label-2099
SELECT DISTINCT + 47 / - 9 + + + 32
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2100
SELECT ALL - 75 DIV COUNT( + + 48 ) + 18 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL - 75 / COUNT ( + + 48 ) + 18 AS col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2101
SELECT ALL - 68 DIV 46 + + COUNT( DISTINCT + + 89 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL - 68 / 46 + + COUNT ( DISTINCT + + 89 ) AS col0
----
0

query I rowsort
SELECT ( + 48 ) * + 96 + - - 82 AS col0
----
4690

onlyif mysql # DIV for integer division: 
query I rowsort label-2103
SELECT - - 15 DIV - - 86
----
0

skipif mysql # not compatible
query I rowsort label-2103
SELECT - - 15 / - - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT ALL + NULLIF ( - + 50, + 31 + - + COUNT( * ) * 0 )
----
-50

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL + NULLIF ( - + 50, + 31 + - + COUNT ( * ) * 0 )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2105
SELECT ALL - - 46 DIV + - 71 + + COALESCE ( 7, + + 83 - - + COUNT( * ), ( - COUNT( * ) ) * + + 13 + + 83 ) DIV - 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL - - 46 / + - 71 + + COALESCE ( 7, + + 83 - - + COUNT ( * ), ( - COUNT ( * ) ) * + + 13 + + 83 ) / - 37 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2106
SELECT + 88 + + + 37 * - - CASE WHEN - MIN( + + CAST( NULL AS SIGNED ) ) < NULL THEN - - 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT + 88 + + + 37 * - - CASE WHEN - MIN ( + + CAST ( NULL AS INTEGER ) ) < NULL THEN - - 58 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT COUNT( * ) * - 90 * - 13, + 53 - - COUNT( * ) AS col0
----
1170
54

skipif mysql # not compatible
query II rowsort label-2107
SELECT COUNT ( * ) * - 90 * - 13, + 53 - - COUNT ( * ) AS col0
----
1170
54

query I rowsort
SELECT 92 * - 85 + - ( 63 ) + - 77 * 9 + + 56 AS col0
----
-8520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2109
SELECT 11 * 79 DIV + MIN( - 69 ) + - COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2109
SELECT 11 * 79 / + MIN ( - 69 ) + - COUNT ( * ) AS col0
----
-13

query I rowsort
SELECT DISTINCT - 74 * - COALESCE ( 65, 24 ) * + 59 * - 46 * - 53
----
691880020

query I rowsort
SELECT ALL + 20 * 37 AS col2
----
740

query I rowsort
SELECT 17 + - 20
----
-3

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

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

query I rowsort
SELECT 26 + - 5 AS col0
----
21

query I rowsort
SELECT ALL - 48 - 84 AS col0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT DISTINCT + COUNT( * ) - 52 * 89 AS col0
----
-4627

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT + COUNT ( * ) - 52 * 89 AS col0
----
-4627

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT 16 + + MIN( + 27 ) * COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-2117
SELECT 16 + + MIN ( + 27 ) * COUNT ( * )
----
43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2119
SELECT ALL 11 AS col2, - CAST( - + CASE - ( - 78 ) WHEN - - ( 44 ) THEN NULL WHEN - 72 / + - 52 + 8 + SUM( ALL - 32 ) - + COUNT( * ) / - 2 THEN NULL WHEN 84 * 87 - + CASE - COUNT( * ) WHEN - 0 - 39 THEN 31 ELSE NULL END * + 56 * + 71 THEN - 32 END AS SIGNED )
----
11
NULL

skipif mysql # not compatible
query II rowsort label-2119
SELECT ALL 11 AS col2, - CAST ( - + CASE - ( - 78 ) WHEN - - ( 44 ) THEN NULL WHEN - 72 / + - 52 + 8 + SUM ( ALL - 32 ) - + COUNT ( * ) / - 2 THEN NULL WHEN 84 * 87 - + CASE - COUNT ( * ) WHEN - 0 - 39 THEN 31 ELSE NULL END * + 56 * + 71 THEN - 32 END AS INTEGER )
----
11
NULL

query I rowsort
SELECT 32 * - + 25
----
-800

query II rowsort
SELECT DISTINCT 97 * 62 * 75, 80 AS col0
----
451050
80

query I rowsort
SELECT 45 * 58
----
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT ALL - + 41 * + MIN( - 59 ) - + 17 + 29 * 90 * - + 36 AS col0
----
-91558

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL - + 41 * + MIN ( - 59 ) - + 17 + 29 * 90 * - + 36 AS col0
----
-91558

query I rowsort
SELECT - 42 + + 45 AS col1
----
3

query II rowsort
SELECT ALL + 51 AS col1, - 60 + + 68
----
51
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT MIN( ALL + - 87 ) + - 77 AS col2
----
-164

skipif mysql # not compatible
query I rowsort label-2126
SELECT MIN ( ALL + - 87 ) + - 77 AS col2
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT + 70 + + 55 * + MIN( DISTINCT + 38 )
----
2160

skipif mysql # not compatible
query I rowsort label-2127
SELECT + 70 + + 55 * + MIN ( DISTINCT + 38 )
----
2160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2128
SELECT CAST( + - SUM( DISTINCT 88 ) AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-2128
SELECT CAST ( + - SUM ( DISTINCT 88 ) AS INTEGER )
----
-88

query I rowsort
SELECT 4 * + 5 AS col1
----
20

query I rowsort
SELECT + 36 * + 45 * - 79 AS col1
----
-127980

query I rowsort
SELECT ALL 89 + - 98
----
-9

query I rowsort
SELECT DISTINCT - ( 11 ) * 89 AS col2
----
-979

query II rowsort
SELECT DISTINCT 33 + + + 1 * + 8, - 33 AS col0
----
41
-33

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

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

query I rowsort
SELECT ALL + 50 * + 9
----
450

query I rowsort
SELECT DISTINCT - 39 + + 52 + - 41
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT - ( COUNT( * ) ) * - 85 + + + 69 AS col1
----
154

skipif mysql # not compatible
query I rowsort label-2137
SELECT - ( COUNT ( * ) ) * - 85 + + + 69 AS col1
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-2138
SELECT + - 53, + CASE + 26 WHEN - 11 THEN NULL ELSE - - 39 END * COUNT( * ) col0
----
-53
39

skipif mysql # not compatible
query II rowsort label-2138
SELECT + - 53, + CASE + 26 WHEN - 11 THEN NULL ELSE - - 39 END * COUNT ( * ) col0
----
-53
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT COUNT( * ) * - - CASE CASE - 84 WHEN 1 + + 91 THEN - - 16 * - + 25 ELSE NULL END WHEN 57 * - 71 * + 90 / 23 * + 52 THEN + 6 ELSE NULL END - + + 63 - - - ( + COUNT( * ) ) - + ( + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2139
SELECT COUNT ( * ) * - - CASE CASE - 84 WHEN 1 + + 91 THEN - - 16 * - + 25 ELSE NULL END WHEN 57 * - 71 * + 90 / 23 * + 52 THEN + 6 ELSE NULL END - + + 63 - - - ( + COUNT ( * ) ) - + ( + 4 )
----
NULL

query I rowsort
SELECT 20 * - CASE + 96 WHEN + CASE + 22 WHEN + 48 THEN + 32 WHEN - + 16 - + 72 + ( - + 74 ) * + + 5 THEN NULL ELSE NULL END THEN - - 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT DISTINCT 76 - COUNT( + 85 ) + - 95 * 54 + 90
----
-4965

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT 76 - COUNT ( + 85 ) + - 95 * 54 + 90
----
-4965

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT 36 + - CASE + - 3 WHEN 94 * COUNT( - 42 ) * + - 32 * - 94 - + - 77 THEN + 9 ELSE - COUNT( * ) END + + 49 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-2142
SELECT 36 + - CASE + - 3 WHEN 94 * COUNT ( - 42 ) * + - 32 * - 94 - + - 77 THEN + 9 ELSE - COUNT ( * ) END + + 49 AS col2
----
86

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

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

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

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

query I rowsort
SELECT ALL 23 * + + 50
----
1150

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

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT - COUNT ( * ) / 86 AS col0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT DISTINCT - ( - 61 ) * 60 + 7 DIV + + 93 + + ( - 16 ) - - ( + 64 ) + + 34 DIV 11
----
3711

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT - ( - 61 ) * 60 + 7 / + + 93 + + ( - 16 ) - - ( + 64 ) + + 34 / 11
----
3711

query I rowsort
SELECT 36 * + + 58 AS col2
----
2088

onlyif mysql # DIV for integer division: 
query I rowsort label-2150
SELECT 55 DIV - 45 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2150
SELECT 55 / - 45 AS col2
----
-1

query I rowsort
SELECT ALL + ( - 73 ) * 83
----
-6059

onlyif mysql # DIV for integer division: 
query I rowsort label-2152
SELECT 32 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-2152
SELECT 32 / + 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2153
SELECT 45 DIV 4
----
11

skipif mysql # not compatible
query I rowsort label-2153
SELECT 45 / 4
----
11

query I rowsort
SELECT ALL + 26 * - 12 AS col0
----
-312

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

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

query I rowsort
SELECT DISTINCT + 39 + - 73
----
-34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2157
SELECT DISTINCT ( - ( - 8 ) ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT ( - ( - 8 ) ) + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 67 * 40
----
2680

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

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL - COUNT ( * ) + + 65 AS col0
----
64

query I rowsort
SELECT - 7 + + 85 + - 68 AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2161
SELECT ALL + NULLIF ( + - 18, - CAST( NULL AS SIGNED ) ) + 15 + + NULLIF ( 49, - 83 ) * 68 AS col0
----
3329

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + NULLIF ( + - 18, - CAST ( NULL AS INTEGER ) ) + 15 + + NULLIF ( 49, - 83 ) * 68 AS col0
----
3329

query I rowsort
SELECT - 34 + + + 81 + + 3 + - 13 * + - 46 AS col0
----
648

query I rowsort
SELECT 78 * 98
----
7644

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT - SUM( - 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-2164
SELECT - SUM ( - 57 ) AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2165
SELECT DISTINCT - 42 + - 38 + - + 54 + + CASE 31 WHEN + 5 * + + 37 THEN + 78 + - CAST( + 30 AS SIGNED ) WHEN 80 + - CAST( - 47 AS SIGNED ) + + 37 THEN NULL ELSE NULL END * 56 * - CAST( NULL AS SIGNED ) * - COALESCE ( + - COUNT( * ), 94 * + COUNT( * ) + + - 3 ) * + 77 AS col0, ( - 61 ) AS col2
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-2165
SELECT DISTINCT - 42 + - 38 + - + 54 + + CASE 31 WHEN + 5 * + + 37 THEN + 78 + - CAST ( + 30 AS INTEGER ) WHEN 80 + - CAST ( - 47 AS INTEGER ) + + 37 THEN NULL ELSE NULL END * 56 * - CAST ( NULL AS INTEGER ) * - COALESCE ( + - COUNT ( * ), 94 * + COUNT ( * ) + + - 3 ) * + 77 AS col0, ( - 61 ) AS col2
----
NULL
-61

query I rowsort
SELECT ( 84 ) + + 27 AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT ALL + - 21 + SUM( ALL + 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL + - 21 + SUM ( ALL + 20 )
----
-1

query I rowsort
SELECT + 83 + - - 25
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT - NULLIF ( + 78, + 68 * - ( - - 27 ) + - - 61 ) + + 80 * + NULLIF ( MAX( DISTINCT + 80 ), 34 / - 47 - 75 ) * + 30 + - 22 AS col2
----
191900

skipif mysql # not compatible
query I rowsort label-2169
SELECT - NULLIF ( + 78, + 68 * - ( - - 27 ) + - - 61 ) + + 80 * + NULLIF ( MAX ( DISTINCT + 80 ), 34 / - 47 - 75 ) * + 30 + - 22 AS col2
----
191900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2170
SELECT COALESCE ( COALESCE ( + + 89, + 0, - - 3 + + 48 + + 33 * - 33 * + + NULLIF ( + CAST( - 12 AS SIGNED ), + COUNT( DISTINCT 92 ) ) + - - 47 + - - 20 * + ( 33 ) + - 48 ), + MIN( - - 92 ) + + SUM( 90 ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-2170
SELECT COALESCE ( COALESCE ( + + 89, + 0, - - 3 + + 48 + + 33 * - 33 * + + NULLIF ( + CAST ( - 12 AS INTEGER ), + COUNT ( DISTINCT 92 ) ) + - - 47 + - - 20 * + ( 33 ) + - 48 ), + MIN ( - - 92 ) + + SUM ( 90 ) ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2171
SELECT + MAX( + - 16 ), 65 AS col0
----
-16
65

skipif mysql # not compatible
query II rowsort label-2171
SELECT + MAX ( + - 16 ), 65 AS col0
----
-16
65

onlyif mysql # aggregate syntax: 
query II rowsort label-2172
SELECT - COUNT( * ) + - - 45, 3 * - 33 col2
----
44
-99

skipif mysql # not compatible
query II rowsort label-2172
SELECT - COUNT ( * ) + - - 45, 3 * - 33 col2
----
44
-99

query II rowsort
SELECT + 6 * - 44 AS col1, 58 AS col0
----
-264
58

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT COUNT ( * ) / - 97
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2178
SELECT DISTINCT CAST( - MAX( + + NULLIF ( - 72, - 57 ) ) AS SIGNED ) * + CAST( + - 87 AS SIGNED )
----
-6264

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT CAST ( - MAX ( + + NULLIF ( - 72, - 57 ) ) AS INTEGER ) * + CAST ( + - 87 AS INTEGER )
----
-6264

query I rowsort
SELECT + 70 + - 51 + 85 * + 81 col2
----
6904

query II rowsort
SELECT + CASE - 65 WHEN + ( - 62 ) THEN - 4 + 10 END, ( - - 2 ) AS col1
----
NULL
2

onlyif mysql # DIV for integer division: 
query II rowsort label-2181
SELECT + 99 + - 5 * + 83, 39 DIV 34 AS col2
----
-316
1

skipif mysql # not compatible
query II rowsort label-2181
SELECT + 99 + - 5 * + 83, 39 / 34 AS col2
----
-316
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT - COUNT( DISTINCT + 12 ) * + 3 * 70 + 53 AS col2
----
-157

skipif mysql # not compatible
query I rowsort label-2182
SELECT - COUNT ( DISTINCT + 12 ) * + 3 * 70 + 53 AS col2
----
-157

query I rowsort
SELECT NULLIF ( 49, - - 61 * ( 99 ) + 58 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2184
SELECT + 28 * + CAST( NULL AS SIGNED ) / - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-2184
SELECT + 28 * + CAST ( NULL AS INTEGER ) / - 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2185
SELECT - SUM( + 47 ) * + + ( + NULLIF ( + ( - 72 ), - CAST( NULL AS SIGNED ) - + COUNT( * ) ) ) + - 67 * + 93 AS col2
----
-2847

skipif mysql # not compatible
query I rowsort label-2185
SELECT - SUM ( + 47 ) * + + ( + NULLIF ( + ( - 72 ), - CAST ( NULL AS INTEGER ) - + COUNT ( * ) ) ) + - 67 * + 93 AS col2
----
-2847

query II rowsort
SELECT ALL 90 * 33 + + 16 AS col1, 7 AS col0
----
2986
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT + 21 + - CASE - 98 WHEN ( - 39 ) THEN NULL WHEN 82 + - + MAX( + 34 ) + 61 THEN + NULLIF ( - COALESCE ( 62, + - 85 ), - 3 / + 42 + - 77 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2187
SELECT + 21 + - CASE - 98 WHEN ( - 39 ) THEN NULL WHEN 82 + - + MAX ( + 34 ) + 61 THEN + NULLIF ( - COALESCE ( 62, + - 85 ), - 3 / + 42 + - 77 ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT DISTINCT 58 * CASE - + 76 WHEN - - 87 THEN + + 72 + + + COUNT( ALL 22 ) * + NULLIF ( + 24, COUNT( * ) ) + - - 31 ELSE + 80 END + - 73
----
4567

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT 58 * CASE - + 76 WHEN - - 87 THEN + + 72 + + + COUNT ( ALL 22 ) * + NULLIF ( + 24, COUNT ( * ) ) + - - 31 ELSE + 80 END + - 73
----
4567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2190
SELECT + 91 * + 33 + - + COUNT( DISTINCT + + 38 ) - + 36 * - 25 * - - 65 - - 81 * 92 DIV + 72 AS col1
----
61605

skipif mysql # not compatible
query I rowsort label-2190
SELECT + 91 * + 33 + - + COUNT ( DISTINCT + + 38 ) - + 36 * - 25 * - - 65 - - 81 * 92 / + 72 AS col1
----
61605

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2191
SELECT - COALESCE ( + 98, - 69 DIV - - COUNT( * ) + - 63 )
----
-98

skipif mysql # not compatible
query I rowsort label-2191
SELECT - COALESCE ( + 98, - 69 / - - COUNT ( * ) + - 63 )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2192
SELECT ALL - - MAX( DISTINCT 52 ) + + COUNT( * ) DIV - 28 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL - - MAX ( DISTINCT 52 ) + + COUNT ( * ) / - 28 AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2193
SELECT - + CAST( NULLIF ( + - 70, 52 ) AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-2193
SELECT - + CAST ( NULLIF ( + - 70, 52 ) AS INTEGER )
----
70

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

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

query II rowsort
SELECT ALL - - 86 + + + 87 - 46, - 9 + - 59 AS col0
----
127
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2196
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) / 13 * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) / 13 * 2
----
NULL

query I rowsort
SELECT - 54 + - 84 * + 33 + - 75 AS col2
----
-2901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2198
SELECT ALL + - MAX( + 61 ) DIV ( - NULLIF ( - - 78, + 55 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL + - MAX ( + 61 ) / ( - NULLIF ( - - 78, + 55 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT - MAX( DISTINCT 97 ) * 87
----
-8439

skipif mysql # not compatible
query I rowsort label-2199
SELECT - MAX ( DISTINCT 97 ) * 87
----
-8439

onlyif mysql # aggregate syntax: 
query II rowsort label-2200
SELECT - 7 * + + COUNT( DISTINCT + + 66 ) * - 71 * 59 + COUNT( * ) AS col1, 62 AS col2
----
29324
62

skipif mysql # not compatible
query II rowsort label-2200
SELECT - 7 * + + COUNT ( DISTINCT + + 66 ) * - 71 * 59 + COUNT ( * ) AS col1, 62 AS col2
----
29324
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT ALL NULLIF ( + 78, COUNT( * ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL NULLIF ( + 78, COUNT ( * ) ) AS col1
----
78

query II rowsort
SELECT DISTINCT 80 AS col1, 3 AS col1
----
80
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2203
SELECT 53, - 67 * MAX( + CAST( NULL AS SIGNED ) ) * 30 + - + 0 AS col0
----
53
NULL

skipif mysql # not compatible
query II rowsort label-2203
SELECT 53, - 67 * MAX ( + CAST ( NULL AS INTEGER ) ) * 30 + - + 0 AS col0
----
53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT ALL + COUNT( DISTINCT + 80 )
----
1

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL + COUNT ( DISTINCT + 80 )
----
1

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

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

query II rowsort
SELECT DISTINCT + 87 AS col0, + 81 * + + 11 * - - ( 72 ) * 5
----
87
320760

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2208
SELECT ALL 22 DIV + CASE NULLIF ( + - 88, 82 ) WHEN + + 46 * - - ( - - 35 ) THEN NULL WHEN COUNT( DISTINCT + 67 ) THEN 31 ELSE + 30 * - 36 * + COALESCE ( + - 83, - COUNT( * ) DIV - + 82 * + + 92 + - - CASE WHEN NOT ( NULL ) IS NULL THEN - 6 END + + 89 - + - 61 ) END
----
0

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL 22 / + CASE NULLIF ( + - 88, 82 ) WHEN + + 46 * - - ( - - 35 ) THEN NULL WHEN COUNT ( DISTINCT + 67 ) THEN 31 ELSE + 30 * - 36 * + COALESCE ( + - 83, - COUNT ( * ) / - + 82 * + + 92 + - - CASE WHEN NOT ( NULL ) IS NULL THEN - 6 END + + 89 - + - 61 ) END
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2210
SELECT ALL - 8 DIV - 74 + NULLIF ( - 24, + 32 + - COUNT( * ) ) DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL - 8 / - 74 + NULLIF ( - 24, + 32 + - COUNT ( * ) ) / - 83 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2211
SELECT DISTINCT + NULLIF ( 72, + 43 + 40 ) DIV 67 + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT + NULLIF ( 72, + 43 + 40 ) / 67 + + COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT + CASE + 63 WHEN - 21 THEN - - COUNT( * ) WHEN 97 - - 14 * - 67 THEN + + ( - + 30 ) * - ( MIN( - 13 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2212
SELECT + CASE + 63 WHEN - 21 THEN - - COUNT ( * ) WHEN 97 - - 14 * - 67 THEN + + ( - + 30 ) * - ( MIN ( - 13 ) ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2213
SELECT + 98 DIV - 71
----
-1

skipif mysql # not compatible
query I rowsort label-2213
SELECT + 98 / - 71
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2214
SELECT + CASE CAST( 2 AS SIGNED ) WHEN + + 19 - 81 THEN NULL ELSE + + CAST( + - 53 AS SIGNED ) * - + 58 + 34 END * 52 * 61 * COUNT( * )
----
9858576

skipif mysql # not compatible
query I rowsort label-2214
SELECT + CASE CAST ( 2 AS INTEGER ) WHEN + + 19 - 81 THEN NULL ELSE + + CAST ( + - 53 AS INTEGER ) * - + 58 + 34 END * 52 * 61 * COUNT ( * )
----
9858576

query I rowsort
SELECT ALL 54 * + 63 + - 98 AS col1
----
3304

query I rowsort
SELECT + CASE - - 16 WHEN + 46 THEN COALESCE ( + 66, + 7 * ( + + 82 ) ) WHEN 69 THEN + 16 * + 10 + 49 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 9 * - 69 + 8
----
629

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2218
SELECT ALL + + COALESCE ( 10, + COUNT( * ) DIV - COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL + + COALESCE ( 10, + COUNT ( * ) / - COUNT ( * ) )
----
10

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

skipif mysql # not compatible
query I rowsort label-2219
SELECT + - COUNT ( * ) * - 54 / 62 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT DISTINCT ( - + 44 ) * + 83 * SUM( + + 89 ) * - 41 + - COUNT( * ) - - 90
----
13326237

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT ( - + 44 ) * + 83 * SUM ( + + 89 ) * - 41 + - COUNT ( * ) - - 90
----
13326237

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2222
SELECT ALL + - 55 AS col0, CAST( COALESCE ( + NULLIF ( - 16, + 93 ), 9 - - - 32 + + 28 DIV 35 ) AS SIGNED ) DIV 74 * 23 AS col0
----
-55
0

skipif mysql # not compatible
query II rowsort label-2222
SELECT ALL + - 55 AS col0, CAST ( COALESCE ( + NULLIF ( - 16, + 93 ), 9 - - - 32 + + 28 / 35 ) AS INTEGER ) / 74 * 23 AS col0
----
-55
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT + 25 * 25 + COUNT( * ) + + 17 * + NULLIF ( - - 45, + COUNT( * ) + - 78 )
----
1391

skipif mysql # not compatible
query I rowsort label-2223
SELECT + 25 * 25 + COUNT ( * ) + + 17 * + NULLIF ( - - 45, + COUNT ( * ) + - 78 )
----
1391

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL + 37 * + - 24 + + - 38 - - COUNT( * ) - - 53 AS col0
----
-872

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL + 37 * + - 24 + + - 38 - - COUNT ( * ) - - 53 AS col0
----
-872

query II rowsort
SELECT ALL + 82 AS col2, 40 AS col2
----
82
40

query II rowsort
SELECT DISTINCT 33 AS col0, 43
----
33
43

query II rowsort
SELECT ALL + 84, 22 AS col1
----
84
22

query I rowsort
SELECT + + 87 + + 4 + - CASE - - 94 WHEN 55 THEN + + 71 END * 91 * + 75 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT + CASE + ( - 20 ) WHEN + + 61 * + 34 + + COALESCE ( + - 65, + AVG ( 79 ) * - 67 * - - 54 * - COUNT( * ) * - 2 + 80 * 37 * + + 4 ) THEN NULL WHEN - 96 * + COUNT( * ) / + 17 THEN NULL WHEN - 71 THEN + 25 ELSE - + 44 END * + 38
----
-1672

skipif mysql # not compatible
query I rowsort label-2229
SELECT + CASE + ( - 20 ) WHEN + + 61 * + 34 + + COALESCE ( + - 65, + AVG ( 79 ) * - 67 * - - 54 * - COUNT ( * ) * - 2 + 80 * 37 * + + 4 ) THEN NULL WHEN - 96 * + COUNT ( * ) / + 17 THEN NULL WHEN - 71 THEN + 25 ELSE - + 44 END * + 38
----
-1672

query I rowsort
SELECT + - 58 * + - 6 * - - 7 * + + 60 + - 13
----
146147

query II rowsort
SELECT - - 18 AS col0, + 19
----
18
19

query I rowsort
SELECT NULLIF ( 88, + 27 ) + ( 74 ) AS col0
----
162

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

query I rowsort
SELECT - NULLIF ( - - 82, + 15 ) * - - 29 * 52 AS col0
----
-123656

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2236
SELECT - SUM( DISTINCT - 74 ) + - + 43 DIV - + 84, + ( COUNT( * ) ) - + 53 + - + ( - + ( + 44 ) ) + - 39 DIV - 60 + - - 22 * - 28 * 80 + + COUNT( * ) + - CAST( NULL AS DECIMAL ) * - 87 * - 98 * - 45 * - + MIN( + 15 ) * - 46 - - - 14 - + 34 DIV + 3 * + ( + COUNT( * ) ) * + COALESCE ( + MAX( 46 ), NULLIF ( + 29, + ( - 55 ) + + CASE - MIN( ALL 22 ) WHEN + 11 THEN 86 * + + 60 ELSE + 29 - ( - COALESCE ( + MAX( 65 ), - 58, 54 ) - + 36 ) END ) + 62 DIV 53, - 18 * - 22 + + CASE - 17 WHEN - 9 THEN - 82 * - 54 END ) * COUNT( * ) - + MAX( DISTINCT - 20 ) * - 69 col2
----
74
NULL

skipif mysql # not compatible
query II rowsort label-2236
SELECT - SUM ( DISTINCT - 74 ) + - + 43 / - + 84, + ( COUNT ( * ) ) - + 53 + - + ( - + ( + 44 ) ) + - 39 / - 60 + - - 22 * - 28 * 80 + + COUNT ( * ) + - CAST ( NULL AS REAL ) * - 87 * - 98 * - 45 * - + MIN ( + 15 ) * - 46 - - - 14 - + 34 / + 3 * + ( + COUNT ( * ) ) * + COALESCE ( + MAX ( 46 ), NULLIF ( + 29, + ( - 55 ) + + CASE - MIN ( ALL 22 ) WHEN + 11 THEN 86 * + + 60 ELSE + 29 - ( - COALESCE ( + MAX ( 65 ), - 58, 54 ) - + 36 ) END ) + 62 / 53, - 18 * - 22 + + CASE - 17 WHEN - 9 THEN - 82 * - 54 END ) * COUNT ( * ) - + MAX ( DISTINCT - 20 ) * - 69 col2
----
74
NULL

query I rowsort
SELECT ALL 24 * + - 82 col0
----
-1968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2238
SELECT 29 + ( - - CASE + COUNT( * ) WHEN 78 + - 80 * - - NULLIF ( + COUNT( * ), - + COUNT( * ) ) DIV CAST( NULL AS SIGNED ) * - - 64 THEN NULL WHEN - - 15 THEN 98 - 82 DIV - 18 + + + 64 WHEN + 43 * - 43 THEN NULL ELSE - + ( + + 47 ) END ) + + - 12 + - 38 * - 18
----
654

skipif mysql # not compatible
query I rowsort label-2238
SELECT 29 + ( - - CASE + COUNT ( * ) WHEN 78 + - 80 * - - NULLIF ( + COUNT ( * ), - + COUNT ( * ) ) / CAST ( NULL AS INTEGER ) * - - 64 THEN NULL WHEN - - 15 THEN 98 - 82 / - 18 + + + 64 WHEN + 43 * - 43 THEN NULL ELSE - + ( + + 47 ) END ) + + - 12 + - 38 * - 18
----
654

query I rowsort
SELECT 36 * + + 94 AS col2
----
3384

query I rowsort
SELECT 19 + + 93 AS col2
----
112

query I rowsort
SELECT 64 + - - 5 AS col1
----
69

query I rowsort
SELECT DISTINCT + 12 * + - 57
----
-684

query I rowsort
SELECT DISTINCT + ( - - 43 ) + + 98 col0
----
141

onlyif mysql # aggregate syntax: 
query III rowsort label-2244
SELECT ALL - COUNT( ALL + 98 ) AS col0, - COUNT( * ) AS col0, + ( - + ( - ( - 18 ) ) )
----
-1
-1
-18

skipif mysql # not compatible
query III rowsort label-2244
SELECT ALL - COUNT ( ALL + 98 ) AS col0, - COUNT ( * ) AS col0, + ( - + ( - ( - 18 ) ) )
----
-1
-1
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT DISTINCT - COUNT( * ) * 16 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT - COUNT ( * ) * 16 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT ALL - 95 + + - 61 + - COUNT( * ) * + 35
----
-191

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL - 95 + + - 61 + - COUNT ( * ) * + 35
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT + ( - + COUNT( * ) ) * + 19 + - COUNT( * ) + - NULLIF ( - 44, - 82 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2247
SELECT + ( - + COUNT ( * ) ) * + 19 + - COUNT ( * ) + - NULLIF ( - 44, - 82 ) AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2248
SELECT SUM( ALL - + 82 ) - + COALESCE ( CASE - COUNT( * ) WHEN SUM( + 44 ) + - NULLIF ( - + 59, 4 ) THEN MAX( + 47 ) WHEN - CAST( NULL AS SIGNED ) * AVG ( ALL - + 54 ) + 71 + - 55 THEN NULL ELSE + 88 END, 55 + 91 ) * - ( + + 48 ) + - + 75 DIV 60
----
4141

skipif mysql # not compatible
query I rowsort label-2248
SELECT SUM ( ALL - + 82 ) - + COALESCE ( CASE - COUNT ( * ) WHEN SUM ( + 44 ) + - NULLIF ( - + 59, 4 ) THEN MAX ( + 47 ) WHEN - CAST ( NULL AS INTEGER ) * AVG ( ALL - + 54 ) + 71 + - 55 THEN NULL ELSE + 88 END, 55 + 91 ) * - ( + + 48 ) + - + 75 / 60
----
4141

query I rowsort
SELECT DISTINCT + 22 + 20
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT 31 * - COUNT( * ) + + + 17 * 18 + - ( + 97 )
----
178

skipif mysql # not compatible
query I rowsort label-2250
SELECT 31 * - COUNT ( * ) + + + 17 * 18 + - ( + 97 )
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-2251
SELECT - 43 DIV ( + 97 ) * - 35 + + - 64 * - 68 AS col1
----
4352

skipif mysql # not compatible
query I rowsort label-2251
SELECT - 43 / ( + 97 ) * - 35 + + - 64 * - 68 AS col1
----
4352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2252
SELECT + 9 + 15 DIV - 26 * - COUNT( * ) + COUNT( ALL + 87 )
----
10

skipif mysql # not compatible
query I rowsort label-2252
SELECT + 9 + 15 / - 26 * - COUNT ( * ) + COUNT ( ALL + 87 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2253
SELECT ALL - 66 * - + 66 + + CASE - CAST( NULL AS SIGNED ) WHEN + 35 * - 50 - - + 47 * 98 THEN + ( + ( 33 ) ) * CAST( NULL AS SIGNED ) * COUNT( * ) * - + ( - + 97 ) + + COALESCE ( + 73, + 73 * - 65, + 17 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL - 66 * - + 66 + + CASE - CAST ( NULL AS INTEGER ) WHEN + 35 * - 50 - - + 47 * 98 THEN + ( + ( 33 ) ) * CAST ( NULL AS INTEGER ) * COUNT ( * ) * - + ( - + 97 ) + + COALESCE ( + 73, + 73 * - 65, + 17 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / - - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / - - 91
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2255
SELECT - 23 * + 24 * - - COALESCE ( 97, 6 * + 67 + + 15 + - + 85 * - COUNT( * ) ) + + 31, + 59 col0
----
-53513
59

skipif mysql # not compatible
query II rowsort label-2255
SELECT - 23 * + 24 * - - COALESCE ( 97, 6 * + 67 + + 15 + - + 85 * - COUNT ( * ) ) + + 31, + 59 col0
----
-53513
59

query I rowsort
SELECT ALL - 22 * + 6 AS col1
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-2257
SELECT + MIN( ALL 3 ) AS col2, - 39
----
3
-39

skipif mysql # not compatible
query II rowsort label-2257
SELECT + MIN ( ALL 3 ) AS col2, - 39
----
3
-39

query I rowsort
SELECT - ( 5 ) + - 63 + - + 64 * 56 * 73 - + 22
----
-261722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2259
SELECT ALL 28 * + SUM( + 1 ) * - CAST( NULL AS SIGNED ) + - 52 col0, + 97 - - NULLIF ( - 4, + 94 + COALESCE ( + NULLIF ( - 94, + 16 ), + NULLIF ( + 63, 66 + + COUNT( * ) ) + - + 96 + + - 45 ) / 38 ) AS col0
----
NULL
93

skipif mysql # not compatible
query II rowsort label-2259
SELECT ALL 28 * + SUM ( + 1 ) * - CAST ( NULL AS INTEGER ) + - 52 col0, + 97 - - NULLIF ( - 4, + 94 + COALESCE ( + NULLIF ( - 94, + 16 ), + NULLIF ( + 63, 66 + + COUNT ( * ) ) + - + 96 + + - 45 ) / 38 ) AS col0
----
NULL
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2260
SELECT 35 * + ( - 27 ) * - 93 * + - MAX( ALL - 97 ) + + 26 col2, - 46 col0
----
8524871
-46

skipif mysql # not compatible
query II rowsort label-2260
SELECT 35 * + ( - 27 ) * - 93 * + - MAX ( ALL - 97 ) + + 26 col2, - 46 col0
----
8524871
-46

query II rowsort
SELECT ALL - 70 * 57 AS col1, + 55
----
-3990
55

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

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

query I rowsort
SELECT ALL CASE WHEN 92 IS NULL THEN - 58 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2264
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + 49 - + MIN( ALL + + 25 ) - - + SUM( ALL - 69 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT CAST ( NULL AS REAL ) + + 49 - + MIN ( ALL + + 25 ) - - + SUM ( ALL - 69 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2265
SELECT 36 DIV + 43 * + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2265
SELECT 36 / + 43 * + 93 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-2266
SELECT - MAX ( + 86 )
----
-86

query I rowsort
SELECT ALL CASE WHEN + 98 > - 84 THEN - 70 END + 79
----
9

query II rowsort
SELECT 64 AS col1, 22 * + 59
----
64
1298

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT COALESCE ( - MIN( 55 ), - - 36, - 15 ) + + + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-2269
SELECT COALESCE ( - MIN ( 55 ), - - 36, - 15 ) + + + COUNT ( * )
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-2270
SELECT 26 DIV + 14
----
1

skipif mysql # not compatible
query I rowsort label-2270
SELECT 26 / + 14
----
1

query I rowsort
SELECT 61 * - 4 AS col0
----
-244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2272
SELECT ALL + 26 + 7 + + 40 * - CAST( NULL AS SIGNED ) + + 21 + - - 39 + + NULLIF ( - COUNT( ALL - 43 ), + 67 + - + COUNT( * ) * - 87 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL + 26 + 7 + + 40 * - CAST ( NULL AS INTEGER ) + + 21 + - - 39 + + NULLIF ( - COUNT ( ALL - 43 ), + 67 + - + COUNT ( * ) * - 87 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 71 + 61 AS col1
----
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL MAX( DISTINCT 43 )
----
43

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL MAX ( DISTINCT 43 )
----
43

query I rowsort
SELECT 61 + - 72 * + - NULLIF ( 33, 40 + + 81 + + + AVG ( DISTINCT - 96 ) * - 95 )
----
2437

onlyif mysql # aggregate syntax: 
query II rowsort label-2277
SELECT - 51 col2, COUNT( * )
----
-51
1

skipif mysql # not compatible
query II rowsort label-2277
SELECT - 51 col2, COUNT ( * )
----
-51
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2278
SELECT COALESCE ( + COUNT( DISTINCT - 96 ), - COUNT( * ), + COALESCE ( NULLIF ( 85, COUNT( * ) ), - CAST( COALESCE ( + 2, + 11 DIV 87 ) AS SIGNED ) ) * + 95 ) DIV + 87 * - ( COALESCE ( - 49, COUNT( * ) + + 74, COALESCE ( - + 22, - 97 ) * - 74 DIV - 78 * + ( + MIN( DISTINCT - 79 ) ) + + 16 * 89 + SUM( DISTINCT + 17 ) ) ) * 26, MAX( + 96 ) AS col1
----
0
96

skipif mysql # not compatible
query II rowsort label-2278
SELECT COALESCE ( + COUNT ( DISTINCT - 96 ), - COUNT ( * ), + COALESCE ( NULLIF ( 85, COUNT ( * ) ), - CAST ( COALESCE ( + 2, + 11 / 87 ) AS INTEGER ) ) * + 95 ) / + 87 * - ( COALESCE ( - 49, COUNT ( * ) + + 74, COALESCE ( - + 22, - 97 ) * - 74 / - 78 * + ( + MIN ( DISTINCT - 79 ) ) + + 16 * 89 + SUM ( DISTINCT + 17 ) ) ) * 26, MAX ( + 96 ) AS col1
----
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT 44 - - + COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-2279
SELECT 44 - - + COUNT ( * ) AS col2
----
45

query I rowsort
SELECT 96 + - 65 AS col1
----
31

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2282
SELECT + COUNT( * ) AS col2, + SUM( ALL + - ( 5 ) ) + + - COALESCE ( + - 28, - - 94 + CAST( NULL AS SIGNED ) )
----
1
23

skipif mysql # not compatible
query II rowsort label-2282
SELECT + COUNT ( * ) AS col2, + SUM ( ALL + - ( 5 ) ) + + - COALESCE ( + - 28, - - 94 + CAST ( NULL AS INTEGER ) )
----
1
23

query I rowsort
SELECT ALL - + 79 * - 39 AS col0
----
3081

onlyif mysql # aggregate syntax: 
query II rowsort label-2284
SELECT ALL - ( 71 ) * + 19 AS col1, - MIN( DISTINCT + 52 )
----
-1349
-52

skipif mysql # not compatible
query II rowsort label-2284
SELECT ALL - ( 71 ) * + 19 AS col1, - MIN ( DISTINCT + 52 )
----
-1349
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT DISTINCT + - CASE + 29 WHEN + CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE ( - - 50 ) END + + 38 THEN - + 24 WHEN ( 27 ) + + - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT + - CASE + 29 WHEN + CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE ( - - 50 ) END + + 38 THEN - + 24 WHEN ( 27 ) + + - COUNT ( * ) THEN NULL END
----
NULL

query II rowsort
SELECT - 23, - 60 AS col2
----
-23
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2287
SELECT + + 55, 62 + - CAST( NULL AS SIGNED ) AS col0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-2287
SELECT + + 55, 62 + - CAST ( NULL AS INTEGER ) AS col0
----
55
NULL

query I rowsort
SELECT DISTINCT + ( + CASE WHEN NOT 37 <= + 18 / 67 THEN + + 50 ELSE NULL END ) AS col1
----
50

query I rowsort
SELECT - 0 * - 14 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2290
SELECT ALL - COUNT( * ) DIV - - 16 * - 96 - - 98 * + 39 col1
----
3822

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL - COUNT ( * ) / - - 16 * - 96 - - 98 * + 39 col1
----
3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2291
SELECT - + 5 - - + 28 * 1 * CAST( + 23 AS SIGNED )
----
639

skipif mysql # not compatible
query I rowsort label-2291
SELECT - + 5 - - + 28 * 1 * CAST ( + 23 AS INTEGER )
----
639

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2294
SELECT ALL + + 95 + - 54 DIV - + ( - 23 ) * - COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL + + 95 + - 54 / - + ( - 23 ) * - COUNT ( * ) AS col2
----
97

query II rowsort
SELECT 25 AS col1, 46 * - + 28 AS col2
----
25
-1288

query I rowsort
SELECT ALL 71 * + 22
----
1562

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT - 35 + - + COALESCE ( + COALESCE ( 35, - - 26, - 90 * + ( + 31 ) * - 9 * NULLIF ( + COUNT( * ), 34 * + 99 * ( + 2 ) ) + 5 ), 43 + - 53, COUNT( * ) )
----
-70

skipif mysql # not compatible
query I rowsort label-2297
SELECT - 35 + - + COALESCE ( + COALESCE ( 35, - - 26, - 90 * + ( + 31 ) * - 9 * NULLIF ( + COUNT ( * ), 34 * + 99 * ( + 2 ) ) + 5 ), 43 + - 53, COUNT ( * ) )
----
-70

query I rowsort
SELECT + 11 + ( 88 )
----
99

query I rowsort
SELECT ALL 99 + 17 + - COALESCE ( - - 3, + 36 ) col0
----
113

query I rowsort
SELECT + ( + 96 ) + - + 42 AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2301
SELECT + COUNT( 90 ) + 40 DIV - 50
----
1

skipif mysql # not compatible
query I rowsort label-2301
SELECT + COUNT ( 90 ) + 40 / - 50
----
1

query I rowsort
SELECT + 45 * - 47 AS col0
----
-2115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2303
SELECT ALL 57 DIV - + 46 * + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL 57 / - + 46 * + COUNT ( * ) AS col0
----
-1

query II rowsort
SELECT - CASE - 94 WHEN 88 * + - 6 * - 92 * - 18 + + - ( 8 ) THEN NULL ELSE 75 END col0, + 52 AS col1
----
-75
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2305
SELECT - 27 + 65 col1, + COUNT( * )
----
38
1

skipif mysql # not compatible
query II rowsort label-2305
SELECT - 27 + 65 col1, + COUNT ( * )
----
38
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2306
SELECT ALL 21 DIV + NULLIF ( - COUNT( * ), - 18 * - - 34 + + 91 )
----
-21

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL 21 / + NULLIF ( - COUNT ( * ), - 18 * - - 34 + + 91 )
----
-21

query I rowsort
SELECT DISTINCT 56 * + 34 * + 93 AS col1
----
177072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2308
SELECT ALL + ( + 19 ) * - 90 * - CAST( NULL AS SIGNED ) - + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL + ( + 19 ) * - 90 * - CAST ( NULL AS INTEGER ) - + - 27
----
NULL

query II rowsort
SELECT + 35 * + 57 + - ( + 48 ), ( + + 81 ) + + 56 + - 22 col1
----
1947
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2310
SELECT - NULLIF ( 92, + 34 DIV + 46 - 8 DIV + + NULLIF ( - 55, 58 * AVG ( 83 ) + + 91 ) + - + 47 - - COUNT( * ) * - 70 * + - COUNT( + 79 ) ) DIV - ( 66 )
----
1

skipif mysql # not compatible
query I rowsort label-2310
SELECT - NULLIF ( 92, + 34 / + 46 - 8 / + + NULLIF ( - 55, 58 * AVG ( 83 ) + + 91 ) + - + 47 - - COUNT ( * ) * - 70 * + - COUNT ( + 79 ) ) / - ( 66 )
----
1

query I rowsort
SELECT - + 94 - + 74 col0
----
-168

query II rowsort
SELECT ALL + NULLIF ( 83, - AVG ( DISTINCT - 97 ) ) AS col2, + 72 + 6 AS col1
----
83
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT ALL 55 * - COALESCE ( - ( - - SUM( 50 ) ), + - 14 + 66 ) + + 9 * - + 11 * - COUNT( * ) * - - COUNT( * )
----
2849

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL 55 * - COALESCE ( - ( - - SUM ( 50 ) ), + - 14 + 66 ) + + 9 * - + 11 * - COUNT ( * ) * - - COUNT ( * )
----
2849

onlyif mysql # aggregate syntax: 
query II rowsort label-2314
SELECT ALL + SUM( DISTINCT - 40 ), COUNT( ALL - 64 ) AS col2
----
-40
1

skipif mysql # not compatible
query II rowsort label-2314
SELECT ALL + SUM ( DISTINCT - 40 ), COUNT ( ALL - 64 ) AS col2
----
-40
1

query I rowsort
SELECT - 74 * + + 33 - 1
----
-2443

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

query I rowsort
SELECT ALL + 87 * 3 + + - 5 * + 71
----
-94

query I rowsort
SELECT CASE + 67 WHEN - 61 THEN NULL ELSE ( + 76 ) END
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-2319
SELECT ALL CASE - COUNT( * ) WHEN - + 37 THEN NULL ELSE + NULLIF ( - 97, - ( MAX( + - 15 ) ) ) END AS col2, + COUNT( * ) col0
----
-97
1

skipif mysql # not compatible
query II rowsort label-2319
SELECT ALL CASE - COUNT ( * ) WHEN - + 37 THEN NULL ELSE + NULLIF ( - 97, - ( MAX ( + - 15 ) ) ) END AS col2, + COUNT ( * ) col0
----
-97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2320
SELECT DISTINCT 58 DIV + 13 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT 58 / + 13 AS col2
----
4

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2322
SELECT - 58 * + CAST( 69 AS SIGNED ) * + COUNT( * ) col1
----
-4002

skipif mysql # not compatible
query I rowsort label-2322
SELECT - 58 * + CAST ( 69 AS INTEGER ) * + COUNT ( * ) col1
----
-4002

onlyif mysql # aggregate syntax: 
query III rowsort label-2323
SELECT - 37, COUNT( * ) - + 64 AS col1, 98 * + 40 col2
----
-37
-63
3920

skipif mysql # not compatible
query III rowsort label-2323
SELECT - 37, COUNT ( * ) - + 64 AS col1, 98 * + 40 col2
----
-37
-63
3920

query I rowsort
SELECT ALL + 36 * + 1
----
36

query II rowsort
SELECT 32 AS col2, 70
----
32
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT DISTINCT 51 * - + ( ( - COUNT( * ) ) )
----
51

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT 51 * - + ( ( - COUNT ( * ) ) )
----
51

query I rowsort
SELECT DISTINCT + 82 * - - 84 AS col1
----
6888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2328
SELECT + NULLIF ( + + 12, 1 ) + + + 7 - + CAST( NULL AS SIGNED ) * - 94 * - - 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2328
SELECT + NULLIF ( + + 12, 1 ) + + + 7 - + CAST ( NULL AS INTEGER ) * - 94 * - - 63 AS col2
----
NULL

query I rowsort
SELECT + 85 + 51 + + ( 28 ) AS col0
----
164

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

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

query I rowsort
SELECT + 89 * 51 * - + 59 * + - 58
----
15532458

query I rowsort
SELECT 18 + 56
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT DISTINCT 77 DIV - + 54 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT 77 / - + 54 AS col0
----
-1

query I rowsort
SELECT ALL 95 * 26
----
2470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2335
SELECT DISTINCT 34 DIV - COUNT( DISTINCT - 23 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT 34 / - COUNT ( DISTINCT - 23 ) AS col2
----
-34

query I rowsort
SELECT DISTINCT + 16 + + 56 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT COUNT( DISTINCT CASE + - 89 WHEN + NULLIF ( - + 11, + - 97 ) THEN + 44 ELSE NULL END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2337
SELECT COUNT ( DISTINCT CASE + - 89 WHEN + NULLIF ( - + 11, + - 97 ) THEN + 44 ELSE NULL END ) AS col2
----
0

query I rowsort
SELECT 18 * + 70
----
1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2339
SELECT ALL 61 + - 0 + + 59 * - NULLIF ( + COALESCE ( + - 28, 55 - - 28 * + + 40, - - 82 ), CAST( ( - - 24 ) AS SIGNED ) / + - 79 ) col0
----
1713

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL 61 + - 0 + + 59 * - NULLIF ( + COALESCE ( + - 28, 55 - - 28 * + + 40, - - 82 ), CAST ( ( - - 24 ) AS INTEGER ) / + - 79 ) col0
----
1713

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2340
SELECT ( + - CASE - CAST( - 16 AS DECIMAL ) WHEN - - COUNT( * ) THEN + 92 * + 78 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT ( + - CASE - CAST ( - 16 AS REAL ) WHEN - - COUNT ( * ) THEN + 92 * + 78 END ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 38 col0, + 63
----
-38
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT NULLIF ( - + 45, + 52 ) * 99 - + COUNT( * ) + - ( + COALESCE ( - ( 48 ), 26 ) )
----
-4408

skipif mysql # not compatible
query I rowsort label-2342
SELECT NULLIF ( - + 45, + 52 ) * 99 - + COUNT ( * ) + - ( + COALESCE ( - ( 48 ), 26 ) )
----
-4408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2343
SELECT NULLIF ( - - CAST( NULL AS SIGNED ), + + 36 * - 75 ) * 32 AS col2, + ( + ( - - SUM( DISTINCT 29 ) ) ) AS col2
----
NULL
29

skipif mysql # not compatible
query II rowsort label-2343
SELECT NULLIF ( - - CAST ( NULL AS INTEGER ), + + 36 * - 75 ) * 32 AS col2, + ( + ( - - SUM ( DISTINCT 29 ) ) ) AS col2
----
NULL
29

query I rowsort
SELECT 87 * NULLIF ( + 3, - 97 ) AS col0
----
261

onlyif mysql # aggregate syntax: 
query II rowsort label-2345
SELECT COUNT( * ), 94 * + ( ( - + 63 ) ) + - COUNT( 6 ) + - COUNT( * ) * + 21 - + + 40 AS col2
----
1
-5984

skipif mysql # not compatible
query II rowsort label-2345
SELECT COUNT ( * ), 94 * + ( ( - + 63 ) ) + - COUNT ( 6 ) + - COUNT ( * ) * + 21 - + + 40 AS col2
----
1
-5984

onlyif mysql # aggregate syntax: 
query II rowsort label-2346
SELECT 86, COUNT( - 9 ) AS col0
----
86
1

skipif mysql # not compatible
query II rowsort label-2346
SELECT 86, COUNT ( - 9 ) AS col0
----
86
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2348
SELECT ALL - 74 AS col0, + COUNT( * )
----
-74
1

skipif mysql # not compatible
query II rowsort label-2348
SELECT ALL - 74 AS col0, + COUNT ( * )
----
-74
1

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

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

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

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

query II rowsort
SELECT ALL - 19 AS col1, 69 - 15 + 18
----
-19
72

query I rowsort
SELECT ALL 88 - + - 41 AS col1
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2353
SELECT CAST( NULL AS SIGNED ) + - SUM( 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2353
SELECT CAST ( NULL AS INTEGER ) + - SUM ( 33 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT 70 * - SUM( + - ( - 48 ) ) * 73
----
-245280

skipif mysql # not compatible
query I rowsort label-2354
SELECT 70 * - SUM ( + - ( - 48 ) ) * 73
----
-245280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2355
SELECT ALL + 67 * + - 78 AS col1, + CAST( NULL AS SIGNED ) * 89 + + ( 42 ) col2
----
-5226
NULL

skipif mysql # not compatible
query II rowsort label-2355
SELECT ALL + 67 * + - 78 AS col1, + CAST ( NULL AS INTEGER ) * 89 + + ( 42 ) col2
----
-5226
NULL

query II rowsort
SELECT 31, 71 AS col1
----
31
71

query I rowsort
SELECT ALL + 49 * - ( 69 ) * 14
----
-47334

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT MAX( DISTINCT - 57 ) - + + 38 + - 86 AS col2
----
-181

skipif mysql # not compatible
query I rowsort label-2358
SELECT MAX ( DISTINCT - 57 ) - + + 38 + - 86 AS col2
----
-181

query I rowsort
SELECT 60 * 10 * 57 AS col1
----
34200

query I rowsort
SELECT 64 + - 0 * 40 AS col1
----
64

query I rowsort
SELECT ALL - 77 - + 2 + 44
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2362
SELECT ALL 0, - COUNT( * ) - - ( 6 ) AS col0
----
0
5

skipif mysql # not compatible
query II rowsort label-2362
SELECT ALL 0, - COUNT ( * ) - - ( 6 ) AS col0
----
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2363
SELECT ALL - 4 / - - CAST( NULL AS SIGNED ) * + + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL - 4 / - - CAST ( NULL AS INTEGER ) * + + 91 AS col2
----
NULL

query II rowsort
SELECT - 59 AS col2, - 41 AS col1
----
-59
-41

query II rowsort
SELECT 12, + 7 AS col0
----
12
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2366
SELECT 5 DIV - 37 * + - 68
----
0

skipif mysql # not compatible
query I rowsort label-2366
SELECT 5 / - 37 * + - 68
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2367
SELECT ALL - 5 DIV - + ( - + 99 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL - 5 / - + ( - + 99 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2368
SELECT DISTINCT + 47 * COUNT( * ) + + - 40 * 77 + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT + 47 * COUNT ( * ) + + - 40 * 77 + CAST ( + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query II rowsort
SELECT - 41 AS col2, - 12 AS col1
----
-41
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2370
SELECT ALL CASE + + 42 WHEN + + 99 / - + 86 THEN + - CAST( - COUNT( 43 ) AS SIGNED ) - - - SUM( - - 5 ) WHEN NULLIF ( + ( - + COUNT( * ) ), + 3 ) * + 44 THEN + 6 * + + 21 END * + - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL CASE + + 42 WHEN + + 99 / - + 86 THEN + - CAST ( - COUNT ( 43 ) AS INTEGER ) - - - SUM ( - - 5 ) WHEN NULLIF ( + ( - + COUNT ( * ) ), + 3 ) * + 44 THEN + 6 * + + 21 END * + - 44 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2371
SELECT 20 AS col0, 75 * - 40 * - ( + CASE - + MIN( - - 74 ) WHEN - 0 THEN - 76 - 60 + + 12 WHEN - + 1 THEN COUNT( * ) END ) AS col2
----
20
NULL

skipif mysql # not compatible
query II rowsort label-2371
SELECT 20 AS col0, 75 * - 40 * - ( + CASE - + MIN ( - - 74 ) WHEN - 0 THEN - 76 - 60 + + 12 WHEN - + 1 THEN COUNT ( * ) END ) AS col2
----
20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL + 3 + - 67 + - MAX( DISTINCT - - 80 ) AS col1
----
-144

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL + 3 + - 67 + - MAX ( DISTINCT - - 80 ) AS col1
----
-144

query I rowsort
SELECT DISTINCT - 45 + - ( ( + - 55 ) ) + 49 AS col0
----
59

query II rowsort
SELECT + - 55 AS col1, 39
----
-55
39

query I rowsort
SELECT ALL + 23 + - - 29 * + 45
----
1328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2376
SELECT + 72 * + 68 + COUNT( * ) + - 96 * CAST( - + 98 AS SIGNED ) + 42
----
14347

skipif mysql # not compatible
query I rowsort label-2376
SELECT + 72 * + 68 + COUNT ( * ) + - 96 * CAST ( - + 98 AS INTEGER ) + 42
----
14347

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2378
SELECT ALL + 53 * - COUNT( * ) col2, 15 - + 80
----
-53
-65

skipif mysql # not compatible
query II rowsort label-2378
SELECT ALL + 53 * - COUNT ( * ) col2, 15 - + 80
----
-53
-65

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

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

query I rowsort
SELECT ALL + 62 + - 45
----
17

query I rowsort
SELECT 66 + + + 3
----
69

query I rowsort
SELECT 82 * + 9 + + 34 AS col1
----
772

query I rowsort
SELECT 55 - - + 71 AS col1
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2384
SELECT - + 50 DIV 69 + + + ( - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2384
SELECT - + 50 / 69 + + + ( - - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2385
SELECT ALL + 1 + - + COUNT( * ) DIV - 7 + - COALESCE ( + + 71, 18 - + 87 * 50 ) + 39 * 63 - COUNT( * ) + - 40 DIV - SUM( DISTINCT + - 21 ) + + - 88 + + - 75 AS col1
----
2222

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL + 1 + - + COUNT ( * ) / - 7 + - COALESCE ( + + 71, 18 - + 87 * 50 ) + 39 * 63 - COUNT ( * ) + - 40 / - SUM ( DISTINCT + - 21 ) + + - 88 + + - 75 AS col1
----
2222

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

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT 13 * COUNT ( * ) * + 59 AS col1
----
767

query I rowsort
SELECT ALL ( - 34 ) - + 64 + + 69 AS col2
----
-29

query I rowsort
SELECT DISTINCT 47 * - 77 * - - NULLIF ( + - 80, - 96 ) AS col1
----
289520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2389
SELECT 35 DIV - - MAX( ALL - 82 )
----
0

skipif mysql # not compatible
query I rowsort label-2389
SELECT 35 / - - MAX ( ALL - 82 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT 70 * + + ( - CAST( - 75 AS SIGNED ) )
----
5250

skipif mysql # not compatible
query I rowsort label-2390
SELECT 70 * + + ( - CAST ( - 75 AS INTEGER ) )
----
5250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2391
SELECT CAST( 93 AS SIGNED ) + + + ( 12 ) * + - 91 - MAX( CASE 26 WHEN - 98 THEN NULL WHEN - 9 THEN + COALESCE ( + + 61, - + 64 * 46, - + 43 + - 65 ) END ) * - 23 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2391
SELECT CAST ( 93 AS INTEGER ) + + + ( 12 ) * + - 91 - MAX ( CASE 26 WHEN - 98 THEN NULL WHEN - 9 THEN + COALESCE ( + + 61, - + 64 * 46, - + 43 + - 65 ) END ) * - 23 col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2392
SELECT ALL 34 DIV - 21 AS col2, - 51
----
-1
-51

skipif mysql # not compatible
query II rowsort label-2392
SELECT ALL 34 / - 21 AS col2, - 51
----
-1
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2393
SELECT MIN( ALL + 62 ) DIV + 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2393
SELECT MIN ( ALL + 62 ) / + 70 AS col2
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2395
SELECT CAST( + 71 AS SIGNED ) * - 14 AS col0
----
-994

skipif mysql # not compatible
query I rowsort label-2395
SELECT CAST ( + 71 AS INTEGER ) * - 14 AS col0
----
-994

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT DISTINCT MIN( 53 )
----
53

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT MIN ( 53 )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2398
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN - 40 THEN 26 + + + 6 WHEN + 42 THEN NULL END + - CASE - 94 WHEN - 81 * - 93 + + 69 + - 21 - 7 THEN + 78 * ( - CAST( + - 26 AS SIGNED ) ) ELSE NULL END + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2398
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN - 40 THEN 26 + + + 6 WHEN + 42 THEN NULL END + - CASE - 94 WHEN - 81 * - 93 + + 69 + - 21 - 7 THEN + 78 * ( - CAST ( + - 26 AS INTEGER ) ) ELSE NULL END + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2399
SELECT + 32 - MIN( + 57 ) DIV COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2399
SELECT + 32 - MIN ( + 57 ) / COUNT ( * ) AS col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2400
SELECT + 50 * - 45 AS col0, CAST( - 3 AS SIGNED ) + 83 AS col1, + + ( 84 ) AS col0
----
-2250
80
84

skipif mysql # not compatible
query III rowsort label-2400
SELECT + 50 * - 45 AS col0, CAST ( - 3 AS INTEGER ) + 83 AS col1, + + ( 84 ) AS col0
----
-2250
80
84

query I rowsort
SELECT - 56 + - 57 + + 58 + 82 * + + 52 - + 24 AS col0
----
4185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2402
SELECT DISTINCT - COUNT( * ) + - + 31 * - + 75 + - - 29 + 34 DIV + 86 + + - 21 col2
----
2332

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT - COUNT ( * ) + - + 31 * - + 75 + - - 29 + 34 / + 86 + + - 21 col2
----
2332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2403
SELECT - - ( - + 89 ) + - ( ( + - 82 ) ) + - + COUNT( ALL 18 ) + - 87 DIV - - 40
----
-10

skipif mysql # not compatible
query I rowsort label-2403
SELECT - - ( - + 89 ) + - ( ( + - 82 ) ) + - + COUNT ( ALL 18 ) + - 87 / - - 40
----
-10

query I rowsort
SELECT ALL 98 + - 95
----
3

query I rowsort
SELECT ALL - + 28 + - - 95 AS col0
----
67

query II rowsort
SELECT - + 21 + + - 58 AS col2, 6 AS col1
----
-79
6

query I rowsort
SELECT DISTINCT - + 11 + - + ( - 52 ) * - 84 AS col1
----
-4379

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT - - COUNT( * ) + + - 45 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-2408
SELECT - - COUNT ( * ) + + - 45 AS col0
----
-44

query I rowsort
SELECT - 13 * - + 30 * + 30 AS col1
----
11700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2410
SELECT MAX( + COALESCE ( - CAST( - 85 AS SIGNED ), + 51 + 84 + - - CASE 94 WHEN 40 THEN NULL ELSE 45 END + 84 / + 94 ) ), + 87 + - + ( + CASE + 84 WHEN - 52 THEN - - 34 ELSE NULL END ) + - - 95 AS col0
----
85
NULL

skipif mysql # not compatible
query II rowsort label-2410
SELECT MAX ( + COALESCE ( - CAST ( - 85 AS INTEGER ), + 51 + 84 + - - CASE 94 WHEN 40 THEN NULL ELSE 45 END + 84 / + 94 ) ), + 87 + - + ( + CASE + 84 WHEN - 52 THEN - - 34 ELSE NULL END ) + - - 95 AS col0
----
85
NULL

query I rowsort
SELECT - 26 * - 77
----
2002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2412
SELECT - CAST( NULL AS SIGNED ) * - 97 * + MIN( DISTINCT + 89 ) * - 12 + + 47 * - 25 * - COUNT( * ) * + 85 + 10, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2412
SELECT - CAST ( NULL AS INTEGER ) * - 97 * + MIN ( DISTINCT + 89 ) * - 12 + + 47 * - 25 * - COUNT ( * ) * + 85 + 10, + COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT ALL - - COUNT( * ) * 41 * + COUNT( ALL + ( 3 ) ) - - 28 - - + CAST( NULL AS SIGNED ) * + CASE 78 WHEN 77 THEN - 72 ELSE - - 35 + + COUNT( * ) / + 83 END * - + 40 * + + 92 / + 24 * + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL - - COUNT ( * ) * 41 * + COUNT ( ALL + ( 3 ) ) - - 28 - - + CAST ( NULL AS INTEGER ) * + CASE 78 WHEN 77 THEN - 72 ELSE - - 35 + + COUNT ( * ) / + 83 END * - + 40 * + + 92 / + 24 * + + 32
----
NULL

query I rowsort
SELECT ALL + ( - 97 ) * + + 93 AS col2
----
-9021

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

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

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

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT 2 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2417
SELECT DISTINCT - 98 * ( NULLIF ( CAST( NULL AS SIGNED ), + MIN( ALL 54 ) ) ) - + 33 - - 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT - 98 * ( NULLIF ( CAST ( NULL AS INTEGER ), + MIN ( ALL 54 ) ) ) - + 33 - - 82 AS col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 20, - 21 * 15 )
----
-20

query I rowsort
SELECT + 35 * - + 52
----
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT 13 * + 12 - - COALESCE ( - - 41, + 42 * + COUNT( * ) - + 29 )
----
197

skipif mysql # not compatible
query I rowsort label-2420
SELECT 13 * + 12 - - COALESCE ( - - 41, + 42 * + COUNT ( * ) - + 29 )
----
197

query I rowsort
SELECT + COALESCE ( 40, + 87, 65 )
----
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2422
SELECT COALESCE ( + CAST( NULL AS SIGNED ), - + 21 * + - 25, 7 DIV - 63 ) AS col0
----
525

skipif mysql # not compatible
query I rowsort label-2422
SELECT COALESCE ( + CAST ( NULL AS INTEGER ), - + 21 * + - 25, 7 / - 63 ) AS col0
----
525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2423
SELECT + 99 * - NULLIF ( - + CAST( NULL AS SIGNED ), + 39 * - 59 ) * - + 32 * + COUNT( DISTINCT - ( 20 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2423
SELECT + 99 * - NULLIF ( - + CAST ( NULL AS INTEGER ), + 39 * - 59 ) * - + 32 * + COUNT ( DISTINCT - ( 20 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2424
SELECT DISTINCT - 32 DIV 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT - 32 / 41 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT DISTINCT 57 * - COUNT( * ) * 5 AS col0
----
-285

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT 57 * - COUNT ( * ) * 5 AS col0
----
-285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2426
SELECT DISTINCT 38 * - COUNT( * ) + - COALESCE ( + 72, + + 15 + + CAST( + 81 AS SIGNED ) ) + - 99, + 98 * 78 col0
----
-209
7644

skipif mysql # not compatible
query II rowsort label-2426
SELECT DISTINCT 38 * - COUNT ( * ) + - COALESCE ( + 72, + + 15 + + CAST ( + 81 AS INTEGER ) ) + - 99, + 98 * 78 col0
----
-209
7644

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2427
SELECT + 57 + 56 + + + MIN( - ( + 2 ) ) * CAST( NULL AS DECIMAL ) - + 79 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2427
SELECT + 57 + 56 + + + MIN ( - ( + 2 ) ) * CAST ( NULL AS REAL ) - + 79 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2428
SELECT ALL 13 * + + 70 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL 13 * + + 70 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2429
SELECT + 26 * - - COUNT( * ) + + 22 + + 23 col2, - CAST( - - 73 AS SIGNED ) AS col1
----
71
-73

skipif mysql # not compatible
query II rowsort label-2429
SELECT + 26 * - - COUNT ( * ) + + 22 + + 23 col2, - CAST ( - - 73 AS INTEGER ) AS col1
----
71
-73

query I rowsort
SELECT + 9 + 5 - + - 76 + - - 92 AS col0
----
182

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2432
SELECT DISTINCT SUM( + 61 ) DIV 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT SUM ( + 61 ) / 74 AS col2
----
0

query I rowsort
SELECT ALL 91 + + + 32 * - + 93 * + 55 AS col1
----
-163589

query I rowsort
SELECT ALL + 56 + + - 8 + + 48 - + 45 * 7
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT ALL - MAX( 37 ) + 96 * 22
----
2075

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL - MAX ( 37 ) + 96 * 22
----
2075

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT DISTINCT MIN( ( - 44 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-2436
SELECT DISTINCT MIN ( ( - 44 ) )
----
-44

query I rowsort
SELECT DISTINCT ( + 78 ) AS col1
----
78

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

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL 27 + 7 / - COUNT ( * )
----
20

query I rowsort
SELECT + NULLIF ( 22, 11 * + 67 + + ( - + 66 ) ) * + 88 AS col2
----
1936

query I rowsort
SELECT + - 15 + + 71 col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2441
SELECT + + 40 + + + COALESCE ( + + 33, CAST( NULL AS SIGNED ), - + CASE CAST( NULL AS DECIMAL ) WHEN + COALESCE ( + 42, - 28 ) THEN NULL ELSE - - ( + COALESCE ( + - 41, - COUNT( * ) ) ) END * ( - - ( 47 ) ) * 27 - 58 DIV - + 75 )
----
73

skipif mysql # not compatible
query I rowsort label-2441
SELECT + + 40 + + + COALESCE ( + + 33, CAST ( NULL AS INTEGER ), - + CASE CAST ( NULL AS REAL ) WHEN + COALESCE ( + 42, - 28 ) THEN NULL ELSE - - ( + COALESCE ( + - 41, - COUNT ( * ) ) ) END * ( - - ( 47 ) ) * 27 - 58 / - + 75 )
----
73

query I rowsort
SELECT - 98 + - - 70
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL MIN( DISTINCT - 52 ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL MIN ( DISTINCT - 52 ) col1
----
-52

query I rowsort
SELECT ALL - 60 * + 40 + - 76 + 54 * + 95
----
2654

query I rowsort
SELECT DISTINCT 12 - - 51 AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2446
SELECT CASE + - 89 WHEN + AVG ( - 43 ) * + + 73 + + + 61 THEN - - 34 WHEN 47 THEN 89 * ( - COALESCE ( + - 52, - 25 + - - ( - 16 ) + + 6 - + 81 + + 39 * + + 24 * - 1 + 25 * + + 22 + 52 - SUM( DISTINCT - + CAST( - 80 AS SIGNED ) ), 88 ) ) - 83 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2446
SELECT CASE + - 89 WHEN + AVG ( - 43 ) * + + 73 + + + 61 THEN - - 34 WHEN 47 THEN 89 * ( - COALESCE ( + - 52, - 25 + - - ( - 16 ) + + 6 - + 81 + + 39 * + + 24 * - 1 + 25 * + + 22 + 52 - SUM ( DISTINCT - + CAST ( - 80 AS INTEGER ) ), 88 ) ) - 83 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2447
SELECT ALL CAST( - - 39 AS SIGNED ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL CAST ( - - 39 AS INTEGER ) AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT DISTINCT - 6 / + 56 * + CAST( NULL AS SIGNED ) - + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT - 6 / + 56 * + CAST ( NULL AS INTEGER ) - + 55
----
NULL

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

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

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

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

query I rowsort
SELECT ALL + 8 * + 62
----
496

query I rowsort
SELECT 17 * - 87 + + 89
----
-1390

query I rowsort
SELECT - 29 - 78 * + - 92
----
7147

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT - 40 * 77 * - - SUM( - - 94 ) AS col2
----
-289520

skipif mysql # not compatible
query I rowsort label-2455
SELECT - 40 * 77 * - - SUM ( - - 94 ) AS col2
----
-289520

query I rowsort
SELECT ALL + 18 / + 52 * CASE 99 WHEN - 15 * 18 + - - 21 THEN + 4 * - 26 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2457
SELECT + 4 DIV 63 + - + COUNT( * ) * - 34 + - COALESCE ( - + 50, 13, + + 26 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2457
SELECT + 4 / 63 + - + COUNT ( * ) * - 34 + - COALESCE ( - + 50, 13, + + 26 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT ALL + NULLIF ( - 32, + COUNT( * ) )
----
-32

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL + NULLIF ( - 32, + COUNT ( * ) )
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2459
SELECT ALL 97 DIV - 96 + - NULLIF ( - 54, - - COUNT( * ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL 97 / - 96 + - NULLIF ( - 54, - - COUNT ( * ) ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT DISTINCT - 36 + - + MAX( 6 ) * + COUNT( * ) + - - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT - 36 + - + MAX ( 6 ) * + COUNT ( * ) + - - COUNT ( * )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2461
SELECT ALL - 18 + 90 + - 27 + + 34 + - 41 * 59 / - + 71 * + + MAX( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - 18 + 90 + - 27 + + 34 + - 41 * 59 / - + 71 * + + MAX ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT DISTINCT - COUNT( * ) + - 25
----
-26

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT - COUNT ( * ) + - 25
----
-26

query II rowsort
SELECT 85 + + 54 AS col1, 83 + 98
----
139
181

query I rowsort
SELECT 89 * + ( - 83 )
----
-7387

onlyif mysql # aggregate syntax: 
query II rowsort label-2465
SELECT DISTINCT COUNT( * ) + 99, - 17 AS col0
----
100
-17

skipif mysql # not compatible
query II rowsort label-2465
SELECT DISTINCT COUNT ( * ) + 99, - 17 AS col0
----
100
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT DISTINCT + 1 + - 90 + + + ( - - COUNT( * ) ) - 6 * - 92 AS col0
----
464

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT + 1 + - 90 + + + ( - - COUNT ( * ) ) - 6 * - 92 AS col0
----
464

onlyif mysql # DIV for integer division: 
query I rowsort label-2467
SELECT ALL + 16 DIV - 64 + + 92 col1
----
92

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL + 16 / - 64 + + 92 col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT 92 + - - SUM( ALL 24 ) col2
----
116

skipif mysql # not compatible
query I rowsort label-2468
SELECT 92 + - - SUM ( ALL 24 ) col2
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2469
SELECT ALL + SUM( + CAST( NULL AS SIGNED ) ), - 2 + + 77 AS col2
----
NULL
75

skipif mysql # not compatible
query II rowsort label-2469
SELECT ALL + SUM ( + CAST ( NULL AS INTEGER ) ), - 2 + + 77 AS col2
----
NULL
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2470
SELECT NULLIF ( + + CAST( - - 49 AS SIGNED ), - + 50 ) + - ( + COALESCE ( + 21, 88 * + ( + 47 ) * + 20 ) ) + + ( 97 ) * - 18 * - + 92 * + 64 * + COUNT( * ) AS col1, 72 + + - 9 AS col0
----
10280476
63

skipif mysql # not compatible
query II rowsort label-2470
SELECT NULLIF ( + + CAST ( - - 49 AS INTEGER ), - + 50 ) + - ( + COALESCE ( + 21, 88 * + ( + 47 ) * + 20 ) ) + + ( 97 ) * - 18 * - + 92 * + 64 * + COUNT ( * ) AS col1, 72 + + - 9 AS col0
----
10280476
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT ALL 16 - - + CASE COUNT( * ) WHEN + - 21 * + 67 - + 19 * - 45 * + 85 THEN NULL WHEN + - ( + - 1 ) * + 89 + + ( - 88 ) THEN NULL WHEN + + COUNT( * ) THEN + 44 END * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL 16 - - + CASE COUNT ( * ) WHEN + - 21 * + 67 - + 19 * - 45 * + 85 THEN NULL WHEN + - ( + - 1 ) * + 89 + + ( - 88 ) THEN NULL WHEN + + COUNT ( * ) THEN + 44 END * - 51
----
NULL

query I rowsort
SELECT 41 * + + 54 + + - 20 AS col0
----
2194

query I rowsort
SELECT ALL ( - 6 ) AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2474
SELECT 61 + - + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) + 54 * - 0 + - 9 + + 37 AS col0, CAST( NULL AS SIGNED ) * - 92 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2474
SELECT 61 + - + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + 54 * - 0 + - 9 + + 37 AS col0, CAST ( NULL AS INTEGER ) * - 92 AS col2
----
NULL
NULL

query I rowsort
SELECT 10 * + ( - 56 ) AS col2
----
-560

query I rowsort
SELECT 41 + - 95 + - 51 + + + 13 col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT DISTINCT 50 * - 80 * - - MIN( 41 ) * + 53 + + 51 AS col0
----
-8691949

skipif mysql # not compatible
query I rowsort label-2477
SELECT DISTINCT 50 * - 80 * - - MIN ( 41 ) * + 53 + + 51 AS col0
----
-8691949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2478
SELECT 62 * - CASE + 63 WHEN + 30 THEN + COUNT( * ) ELSE - 16 END * - 96 * 77 + CAST( 75 AS SIGNED ) + + + COUNT( * ) - - - 17 + + 9
----
-7332796

skipif mysql # not compatible
query I rowsort label-2478
SELECT 62 * - CASE + 63 WHEN + 30 THEN + COUNT ( * ) ELSE - 16 END * - 96 * 77 + CAST ( 75 AS INTEGER ) + + + COUNT ( * ) - - - 17 + + 9
----
-7332796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2479
SELECT + 38 * - 38 DIV COUNT( * ) + - 49 + 54 * 95
----
3637

skipif mysql # not compatible
query I rowsort label-2479
SELECT + 38 * - 38 / COUNT ( * ) + - 49 + 54 * 95
----
3637

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2480
SELECT + 0 DIV + 94 + ( - - 78 ) + - + CAST( - 68 AS SIGNED ) col2
----
146

skipif mysql # not compatible
query I rowsort label-2480
SELECT + 0 / + 94 + ( - - 78 ) + - + CAST ( - 68 AS INTEGER ) col2
----
146

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2481
SELECT DISTINCT + 4 + CAST( NULL AS DECIMAL ) + + MAX( DISTINCT + 83 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT + 4 + CAST ( NULL AS REAL ) + + MAX ( DISTINCT + 83 ) col0
----
NULL

query I rowsort
SELECT ALL - 49 + 47 AS col1
----
-2

query I rowsort
SELECT 80 * + 28
----
2240

query I rowsort
SELECT DISTINCT 16 + - - 57
----
73

query I rowsort
SELECT ALL 75 + - 53
----
22

query II rowsort
SELECT + 84 AS col1, - 73 AS col0
----
84
-73

query I rowsort
SELECT ALL + 87 + + 23
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2488
SELECT 87 DIV + 54 + + ( + 3 ) * - - 38 * - + COALESCE ( CASE + 94 WHEN - 84 * - ( 78 ) THEN + 77 * + + 23 WHEN + + 8 THEN NULL ELSE NULL END, - - 67 ) * - + MAX( DISTINCT - 75 ) AS col1
----
-572849

skipif mysql # not compatible
query I rowsort label-2488
SELECT 87 / + 54 + + ( + 3 ) * - - 38 * - + COALESCE ( CASE + 94 WHEN - 84 * - ( 78 ) THEN + 77 * + + 23 WHEN + + 8 THEN NULL ELSE NULL END, - - 67 ) * - + MAX ( DISTINCT - 75 ) AS col1
----
-572849

query I rowsort
SELECT ALL + 60 * - - 10 col0
----
600

query I rowsort
SELECT 89 + - 40
----
49

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

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

query I rowsort
SELECT 95 * - 78 AS col0
----
-7410

query I rowsort
SELECT 94 * + 63 AS col0
----
5922

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL - 24 - + CASE 72 WHEN - COUNT( * ) THEN NULL WHEN + COUNT( * ) * - 9 THEN NULLIF ( 93, 62 + 0 ) ELSE NULL END * ( + ( ( + ( 91 ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL - 24 - + CASE 72 WHEN - COUNT ( * ) THEN NULL WHEN + COUNT ( * ) * - 9 THEN NULLIF ( 93, 62 + 0 ) ELSE NULL END * ( + ( ( + ( 91 ) ) ) )
----
NULL

query I rowsort
SELECT 4 + ( 14 ) * ( + 39 * - ( + 95 ) - 64 ) AS col2
----
-52762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2496
SELECT 23 + AVG ( ALL + COALESCE ( + 26, 28 + - 43 / + ( - ( + 62 ) ) ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2496
SELECT 23 + AVG ( ALL + COALESCE ( + 26, 28 + - 43 / + ( - ( + 62 ) ) ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT 25 * - COUNT( * ) - - 45 col1
----
20

skipif mysql # not compatible
query I rowsort label-2497
SELECT 25 * - COUNT ( * ) - - 45 col1
----
20

query I rowsort
SELECT ALL 84 * 35 AS col2
----
2940

query I rowsort
SELECT DISTINCT 19 * 96 AS col1
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT DISTINCT + 35 * NULLIF ( + COUNT( * ), - 51 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT + 35 * NULLIF ( + COUNT ( * ), - 51 ) AS col1
----
35

query I rowsort
SELECT ALL + COALESCE ( - 89, - 33 ) * 63
----
-5607

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2502
SELECT COUNT( * ) DIV + ( 76 * 85 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2502
SELECT COUNT ( * ) / + ( 76 * 85 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2503
SELECT ( CASE 42 WHEN + 69 THEN - 23 * + 12 + - 77 * COUNT( * ) END ) * CAST( - ( 1 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT ( CASE 42 WHEN + 69 THEN - 23 * + 12 + - 77 * COUNT ( * ) END ) * CAST ( - ( 1 ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 83 * 76
----
6308

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

query I rowsort
SELECT 54 + 22
----
76

query I rowsort
SELECT ALL 11 + 36 col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT AVG ( DISTINCT 44 ) - CASE AVG ( 92 ) + 63 WHEN - 5 THEN + 99 * - 20 WHEN ( + 74 ) - MAX( COALESCE ( 53, 75 ) ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2508
SELECT AVG ( DISTINCT 44 ) - CASE AVG ( 92 ) + 63 WHEN - 5 THEN + 99 * - 20 WHEN ( + 74 ) - MAX ( COALESCE ( 53, 75 ) ) THEN NULL END AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2510
SELECT + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT ALL 83 * SUM( ALL + 58 ) + + 14 AS col2
----
4828

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL 83 * SUM ( ALL + 58 ) + + 14 AS col2
----
4828

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT CASE - 54 WHEN 69 THEN NULL WHEN 56 THEN + 40 - COUNT( * ) * COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2513
SELECT CASE - 54 WHEN 69 THEN NULL WHEN 56 THEN + 40 - COUNT ( * ) * COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT ALL 95 * ( + 1 * 13 ) + 67 AS col1
----
1302

query I rowsort
SELECT - 40 - 15 AS col0
----
-55

query I rowsort
SELECT 92 * ( - 50 ) + + 82 AS col2
----
-4518

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT 55 * 22 + 57 * - COUNT( * )
----
1153

skipif mysql # not compatible
query I rowsort label-2517
SELECT 55 * 22 + 57 * - COUNT ( * )
----
1153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2518
SELECT ALL - 9 * + AVG ( DISTINCT 59 * 19 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL - 9 * + AVG ( DISTINCT 59 * 19 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL + 60 * 94 + + ( COUNT( * ) )
----
5641

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL + 60 * 94 + + ( COUNT ( * ) )
----
5641

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

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

query I rowsort
SELECT DISTINCT 7 * 32 - ( - 87 ) * 88 AS col1
----
7880

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2523
SELECT ALL - COALESCE ( 46, ( + ( 63 ) ) ) DIV 25
----
-1

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL - COALESCE ( 46, ( + ( 63 ) ) ) / 25
----
-1

query I rowsort
SELECT ALL + CASE WHEN ( - 7 ) NOT IN ( 34 ) THEN 89 ELSE NULL END * + 95 - - 69
----
8524

query I rowsort
SELECT - 73 * - 11 AS col2
----
803

query I rowsort
SELECT - 75 * 30 + COALESCE ( - 52, 87, 47 * ( 56 * ( - 76 ) ), + 54 * 65 )
----
-2302

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT SUM( - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-2527
SELECT SUM ( - 83 )
----
-83

query I rowsort
SELECT - 38 + ( ( - 78 ) ) AS col1
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2529
SELECT + 77 * CAST( NULLIF ( 71, 82 ) * + 84 - 50 * SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT + 77 * CAST ( NULLIF ( 71, 82 ) * + 84 - 50 * SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT DISTINCT - - 77 * - SUM( ALL - 21 ) col0
----
1617

skipif mysql # not compatible
query I rowsort label-2530
SELECT DISTINCT - - 77 * - SUM ( ALL - 21 ) col0
----
1617

onlyif mysql # DIV for integer division: 
query I rowsort label-2531
SELECT DISTINCT + 5 DIV + 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT + 5 / + 17 AS col1
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2533
SELECT - - 78 DIV COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2533
SELECT - - 78 / COUNT ( * ) AS col1
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2534
SELECT ALL - ( + ( + CAST( NULL AS DECIMAL ) ) ) * CASE 97 * 83 WHEN - 20 THEN NULL ELSE + 77 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL - ( + ( + CAST ( NULL AS REAL ) ) ) * CASE 97 * 83 WHEN - 20 THEN NULL ELSE + 77 END AS col1
----
NULL

query I rowsort
SELECT - - 87 + 40 col2
----
127

query I rowsort
SELECT DISTINCT + ( - 3 ) * 21
----
-63

query I rowsort
SELECT - + COALESCE ( + 49, + 26 ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT - - ( - NULLIF ( - 96, - 25 ) ) - 70 * - ( COUNT( * ) ) AS col0
----
166

skipif mysql # not compatible
query I rowsort label-2538
SELECT - - ( - NULLIF ( - 96, - 25 ) ) - 70 * - ( COUNT ( * ) ) AS col0
----
166

query I rowsort
SELECT - 93 * 3 AS col1
----
-279

query I rowsort
SELECT - 98 - + 53 * 32 AS col1
----
-1794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2541
SELECT DISTINCT - - SUM( + 45 ) + - COALESCE ( ( + COUNT( 89 ) ), MAX( DISTINCT CASE - 27 WHEN + NULLIF ( ( 93 ), + CAST( 18 AS SIGNED ) ) THEN 78 + + CAST( + 98 AS SIGNED ) ELSE ( COALESCE ( + 2, + 63 ) ) DIV + 15 + + 6 END ) + 41 * + 83 )
----
44

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT - - SUM ( + 45 ) + - COALESCE ( ( + COUNT ( 89 ) ), MAX ( DISTINCT CASE - 27 WHEN + NULLIF ( ( 93 ), + CAST ( 18 AS INTEGER ) ) THEN 78 + + CAST ( + 98 AS INTEGER ) ELSE ( COALESCE ( + 2, + 63 ) ) / + 15 + + 6 END ) + 41 * + 83 )
----
44

query I rowsort
SELECT DISTINCT + 40 + - 30 AS col1
----
10

query I rowsort
SELECT DISTINCT - 38 + + 79 * + 18
----
1384

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

query I rowsort
SELECT ALL 64 * + 25 AS col1
----
1600

onlyif mysql # DIV for integer division: 
query I rowsort label-2546
SELECT + 70 DIV 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2546
SELECT + 70 / 74 AS col0
----
0

query I rowsort
SELECT ALL - 86 + - - COALESCE ( + 81, - 89 ) AS col2
----
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT DISTINCT - MIN( - 21 ) * 23 col2
----
483

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT - MIN ( - 21 ) * 23 col2
----
483

query I rowsort
SELECT - 17 * + 32
----
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT - NULLIF ( + + ( COUNT( * ) ), NULLIF ( 46, - NULLIF ( - COUNT( - 29 ), + 64 ) ) * 24 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2551
SELECT - NULLIF ( + + ( COUNT ( * ) ), NULLIF ( 46, - NULLIF ( - COUNT ( - 29 ), + 64 ) ) * 24 ) AS col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-2552
SELECT - 34 / - 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT 87 * 65 * ( 17 * - MAX( ALL + 8 ) ) + 62 AS col1
----
-769018

skipif mysql # not compatible
query I rowsort label-2553
SELECT 87 * 65 * ( 17 * - MAX ( ALL + 8 ) ) + 62 AS col1
----
-769018

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2555
SELECT - 53 DIV + - 73 * + COALESCE ( + 51, + 40 + - 7 DIV CAST( NULL AS SIGNED ), - COALESCE ( COUNT( * ), + 97 + + ( 78 ) ) ) + + 16
----
16

skipif mysql # not compatible
query I rowsort label-2555
SELECT - 53 / + - 73 * + COALESCE ( + 51, + 40 + - 7 / CAST ( NULL AS INTEGER ), - COALESCE ( COUNT ( * ), + 97 + + ( 78 ) ) ) + + 16
----
16

query I rowsort
SELECT DISTINCT + 14 * + - 19
----
-266

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT + 4 / + CASE + 33 WHEN 26 * COUNT( * ) THEN 64 + 40 END * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT + 4 / + CASE + 33 WHEN 26 * COUNT ( * ) THEN 64 + 40 END * - 68
----
NULL

query I rowsort
SELECT + CASE - 20 WHEN - 29 THEN - 82 ELSE NULL END col1
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - + 6, 49 ) col2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2560
SELECT ALL + 88 DIV 25 * - 60 - + 22
----
-202

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL + 88 / 25 * - 60 - + 22
----
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT DISTINCT 9 * - MAX( + 3 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT 9 * - MAX ( + 3 ) AS col1
----
-27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT 24 * - 12 - + NULLIF ( + COUNT( * ), COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT 24 * - 12 - + NULLIF ( + COUNT ( * ), COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT + 50 * - + NULLIF ( + SUM( + 18 ), 27 * + 30 + COALESCE ( 80, 7 * 63 ) )
----
-900

skipif mysql # not compatible
query I rowsort label-2564
SELECT + 50 * - + NULLIF ( + SUM ( + 18 ), 27 * + 30 + COALESCE ( 80, 7 * 63 ) )
----
-900

query I rowsort
SELECT ALL 56 * + + 72
----
4032

query I rowsort
SELECT + 20 + + + 59 + 13 AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2567
SELECT + 66 + + - 94 DIV + 46 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-2567
SELECT + 66 + + - 94 / + 46 AS col1
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT ALL - 76 * + + COUNT( * ) * - 99 + 89 col0
----
7613

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL - 76 * + + COUNT ( * ) * - 99 + 89 col0
----
7613

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

query I rowsort
SELECT ALL - NULLIF ( 95, + 84 ) * 26
----
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT 32 * - CASE 91 WHEN + 5 * + MIN( DISTINCT 95 ) THEN 58 + 13 END - 63 / - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT 32 * - CASE 91 WHEN + 5 * + MIN ( DISTINCT 95 ) THEN 58 + 13 END - 63 / - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT ALL 72 * 28 + COUNT( * ) col0
----
2017

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL 72 * 28 + COUNT ( * ) col0
----
2017

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

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

query I rowsort
SELECT + + 57 + - 40
----
17

query I rowsort
SELECT ALL + 74 * + 28 + - 52 + 37
----
2057

onlyif mysql # DIV for integer division: 
query I rowsort label-2577
SELECT ALL + 61 DIV + 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL + 61 / + 76 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2578
SELECT + + CASE CAST( NULL AS SIGNED ) WHEN ( - 18 ) + 5 THEN + CAST( NULL AS SIGNED ) + ( 47 ) * + CASE - MAX( ( - 81 ) ) - + 35 WHEN - 18 * - 30 + + 69 * 29 THEN 86 + + 85 WHEN + 80 THEN NULL END WHEN + 24 + 85 * 18 THEN + COUNT( * ) ELSE ( - 24 ) * 87 END * 95 AS col0
----
-198360

skipif mysql # not compatible
query I rowsort label-2578
SELECT + + CASE CAST ( NULL AS INTEGER ) WHEN ( - 18 ) + 5 THEN + CAST ( NULL AS INTEGER ) + ( 47 ) * + CASE - MAX ( ( - 81 ) ) - + 35 WHEN - 18 * - 30 + + 69 * 29 THEN 86 + + 85 WHEN + 80 THEN NULL END WHEN + 24 + 85 * 18 THEN + COUNT ( * ) ELSE ( - 24 ) * 87 END * 95 AS col0
----
-198360

query I rowsort
SELECT - 51 - - 48
----
-3

query I rowsort
SELECT + - 80 * - + 18
----
1440

query I rowsort
SELECT - CASE - 39 WHEN 69 THEN + 45 / + 7 + - 7 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL - - COUNT( * ) * - 21 + + 58 + 79 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL - - COUNT ( * ) * - 21 + + 58 + 79 AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT ALL COUNT( * ) * + 13 + - COALESCE ( + 39 + 91, 19 ) AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL COUNT ( * ) * + 13 + - COALESCE ( + 39 + 91, 19 ) AS col2
----
-117

query I rowsort
SELECT ALL - + 94 + 64
----
-30

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

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

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

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

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

query I rowsort
SELECT 70 + + + 15 AS col1
----
85

query I rowsort
SELECT 79 + - + 67
----
12

query I rowsort
SELECT 89 + + + 20
----
109

query II rowsort
SELECT 21 col1, + 94 * + 10
----
21
940

query I rowsort
SELECT DISTINCT - 74 - + 14 * 12 col0
----
-242

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT 8 * - - COALESCE ( 84, + 96 * - 35 + - SUM( ALL + 58 + - 21 ) )
----
672

skipif mysql # not compatible
query I rowsort label-2593
SELECT 8 * - - COALESCE ( 84, + 96 * - 35 + - SUM ( ALL + 58 + - 21 ) )
----
672

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT 14 + 26 DIV + + 83 col2
----
14

skipif mysql # not compatible
query I rowsort label-2594
SELECT 14 + 26 / + + 83 col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT ALL - CASE - COUNT( * ) WHEN + + 45 THEN ( + 18 ) WHEN 81 THEN - COUNT( * ) END - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL - CASE - COUNT ( * ) WHEN + + 45 THEN ( + 18 ) WHEN 81 THEN - COUNT ( * ) END - 66
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2597
SELECT - 24 DIV + 79 + - + 46 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-2597
SELECT - 24 / + 79 + - + 46 AS col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2598
SELECT + COUNT( * ) DIV - 80 + 97 + + CAST( COALESCE ( + COUNT( * ), + 82 * + 13 ) AS SIGNED ) * - 4 * - 10
----
137

skipif mysql # not compatible
query I rowsort label-2598
SELECT + COUNT ( * ) / - 80 + 97 + + CAST ( COALESCE ( + COUNT ( * ), + 82 * + 13 ) AS INTEGER ) * - 4 * - 10
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-2599
SELECT 98 * COALESCE ( + 28, + 78 DIV 65 ) AS col2
----
2744

skipif mysql # not compatible
query I rowsort label-2599
SELECT 98 * COALESCE ( + 28, + 78 / 65 ) AS col2
----
2744

query I rowsort
SELECT ALL - 29 * 32 * - - 62
----
-57536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2601
SELECT 4 + 32 * COUNT( 98 ) DIV - 44 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2601
SELECT 4 + 32 * COUNT ( 98 ) / - 44 AS col2
----
4

query I rowsort
SELECT 49 + - - 86 AS col2
----
135

query I rowsort
SELECT 23 * + 31 AS col2
----
713

query II rowsort
SELECT ALL - 94, 39 AS col0
----
-94
39

query I rowsort
SELECT DISTINCT + 20 * 47 AS col1
----
940

query II rowsort
SELECT ALL - - 56 AS col2, 18
----
56
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2607
SELECT 87 * - - CASE + - 72 WHEN - COUNT( DISTINCT 69 ) / + 2 + CASE + 10 + COUNT( * ) * 60 WHEN + ( - 88 ) THEN 82 + ( COUNT( * ) + - 39 ) END / - CAST( NULL AS SIGNED ) THEN NULL WHEN + 6 THEN - 62 WHEN + 67 THEN NULL ELSE NULL END + + NULLIF ( + 91, - 77 + + MAX( + 7 ) * 16 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT 87 * - - CASE + - 72 WHEN - COUNT ( DISTINCT 69 ) / + 2 + CASE + 10 + COUNT ( * ) * 60 WHEN + ( - 88 ) THEN 82 + ( COUNT ( * ) + - 39 ) END / - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 6 THEN - 62 WHEN + 67 THEN NULL ELSE NULL END + + NULLIF ( + 91, - 77 + + MAX ( + 7 ) * 16 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT + + NULLIF ( - 72, + 57 + + 55 / - COUNT( * ) )
----
-72

skipif mysql # not compatible
query I rowsort label-2609
SELECT + + NULLIF ( - 72, + 57 + + 55 / - COUNT ( * ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT DISTINCT + MAX( - - 19 ) + - 97 * + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT + MAX ( - - 19 ) + - 97 * + COUNT ( * )
----
-78

query I rowsort
SELECT ALL 83 + + + 38
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2612
SELECT + MAX( ALL + 10 ) * - 75 DIV 75
----
-10

skipif mysql # not compatible
query I rowsort label-2612
SELECT + MAX ( ALL + 10 ) * - 75 / 75
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT NULLIF ( - + 13, + + MAX( 70 ) ) + - COUNT( * ) * COUNT( 42 )
----
-14

skipif mysql # not compatible
query I rowsort label-2613
SELECT NULLIF ( - + 13, + + MAX ( 70 ) ) + - COUNT ( * ) * COUNT ( 42 )
----
-14

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

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL + 15 * - COUNT ( * ) + 6
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT - CASE WHEN NOT ( 19 ) BETWEEN + 48 AND + 53 * - COUNT( * ) THEN 26 * 92 ELSE + CASE - 87 WHEN + NULLIF ( 22, - 94 ) * - 12 + - 29 THEN MAX( + 18 ) WHEN + 50 * - 22 THEN 65 END * + COUNT( * ) END
----
-2392

skipif mysql # not compatible
query I rowsort label-2615
SELECT - CASE WHEN NOT ( 19 ) BETWEEN + 48 AND + 53 * - COUNT ( * ) THEN 26 * 92 ELSE + CASE - 87 WHEN + NULLIF ( 22, - 94 ) * - 12 + - 29 THEN MAX ( + 18 ) WHEN + 50 * - 22 THEN 65 END * + COUNT ( * ) END
----
-2392

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT DISTINCT + 82 * - 57 + - COALESCE ( 34, + 98 ) + + 23 * COUNT( * ) AS col2
----
-4685

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT + 82 * - 57 + - COALESCE ( 34, + 98 ) + + 23 * COUNT ( * ) AS col2
----
-4685

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

query I rowsort
SELECT DISTINCT + 12 + + COALESCE ( + + 32, - 35 )
----
44

query I rowsort
SELECT + 46 * - 73 + + 1 col1
----
-3357

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT DISTINCT - NULLIF ( COUNT( * ), 43 + - 32 ) + 43 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT - NULLIF ( COUNT ( * ), 43 + - 32 ) + 43 AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2621
SELECT DISTINCT CAST( - 84 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT CAST ( - 84 AS INTEGER )
----
-84

query I rowsort
SELECT 71 * + 81 col2
----
5751

query I rowsort
SELECT 58 * + 30 AS col0
----
1740

onlyif mysql # aggregate syntax: 
query II rowsort label-2624
SELECT 73 - + - 68, COUNT( + - 45 ) * + 67 AS col2
----
141
67

skipif mysql # not compatible
query II rowsort label-2624
SELECT 73 - + - 68, COUNT ( + - 45 ) * + 67 AS col2
----
141
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT CASE 62 WHEN - + AVG ( 70 ) + 42 THEN + COUNT( ALL 57 ) * 92 + + 0 * 17 WHEN COUNT( * ) THEN COALESCE ( - COUNT( * ), 43 - COUNT( * ) ) / + 8 ELSE NULL END - + 73 * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT CASE 62 WHEN - + AVG ( 70 ) + 42 THEN + COUNT ( ALL 57 ) * 92 + + 0 * 17 WHEN COUNT ( * ) THEN COALESCE ( - COUNT ( * ), 43 - COUNT ( * ) ) / + 8 ELSE NULL END - + 73 * + 64
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT ALL - ( ( - NULLIF ( 69, - SUM( DISTINCT 42 ) * - 12 ) ) ) * 27
----
1863

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL - ( ( - NULLIF ( 69, - SUM ( DISTINCT 42 ) * - 12 ) ) ) * 27
----
1863

query II rowsort
SELECT DISTINCT - 42 * 39, 88 * 70 AS col0
----
-1638
6160

query I rowsort
SELECT 17 - 7 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT ALL 45 * - COUNT( DISTINCT - - 69 )
----
-45

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL 45 * - COUNT ( DISTINCT - - 69 )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2631
SELECT - COUNT( 12 ) col1, 81 * - - 0 DIV + 9
----
-1
0

skipif mysql # not compatible
query II rowsort label-2631
SELECT - COUNT ( 12 ) col1, 81 * - - 0 / + 9
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2632
SELECT - AVG ( - CAST( NULL AS SIGNED ) ), + 24 AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-2632
SELECT - AVG ( - CAST ( NULL AS INTEGER ) ), + 24 AS col0
----
NULL
24

onlyif mysql # aggregate syntax: 
query II rowsort label-2633
SELECT COUNT( * ) * 67 AS col2, 83
----
67
83

skipif mysql # not compatible
query II rowsort label-2633
SELECT COUNT ( * ) * 67 AS col2, 83
----
67
83

query I rowsort
SELECT 43 * - 74
----
-3182

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL - COUNT( + + 18 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL - COUNT ( + + 18 ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT ALL - 60 * - 77 - + CAST( 18 AS SIGNED ) * - 62 + 15
----
5751

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL - 60 * - 77 - + CAST ( 18 AS INTEGER ) * - 62 + 15
----
5751

query I rowsort
SELECT DISTINCT - 24 * + + 98 - - 77 + + - 24 * 45
----
-3355

query I rowsort
SELECT ALL - CASE - NULLIF ( + 29, 95 ) WHEN 62 * COALESCE ( 7, + 9 * + 86, 69 ) THEN 4 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + CASE + - 72 WHEN + + 89 + - - 2 THEN - 51 * - 20 END * + 28 + + 41 AS col0
----
NULL

query I rowsort
SELECT - 7 * - 68 - + 16 + 22
----
482

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

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT ( COUNT ( * ) ) * - 42 + + + COUNT ( * ) AS col1
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2642
SELECT ALL 28 * - 65 + + - CAST( NULL AS DECIMAL ) * - ( 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL 28 * - 65 + + - CAST ( NULL AS REAL ) * - ( 48 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT + 20 * - - 29 + + 25 + - 72 - + COUNT( * ) * NULLIF ( 55 * COUNT( ALL + 72 ), 3 ) * + COUNT( * ) AS col2
----
478

skipif mysql # not compatible
query I rowsort label-2643
SELECT + 20 * - - 29 + + 25 + - 72 - + COUNT ( * ) * NULLIF ( 55 * COUNT ( ALL + 72 ), 3 ) * + COUNT ( * ) AS col2
----
478

query II rowsort
SELECT 25 + 6 AS col1, + 44 * 20 AS col1
----
31
880

query I rowsort
SELECT DISTINCT - COALESCE ( + 15, 93 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT ALL - - 36 + + - MIN( ALL - ( + + 25 ) )
----
61

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL - - 36 + + - MIN ( ALL - ( + + 25 ) )
----
61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2647
SELECT + CAST( NULL AS DECIMAL ) * 19 - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2647
SELECT + CAST ( NULL AS REAL ) * 19 - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2648
SELECT ALL NULLIF ( + - 28, + - 52 + + CAST( NULL AS DECIMAL ) ) + 75 * - 70 AS col2
----
-5278

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL NULLIF ( + - 28, + - 52 + + CAST ( NULL AS REAL ) ) + 75 * - 70 AS col2
----
-5278

query I rowsort
SELECT 14 * - 25 + - - 72 + + 51 * + 27 AS col2
----
1099

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2650
SELECT DISTINCT + SUM( DISTINCT - 58 ) DIV - 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT + SUM ( DISTINCT - 58 ) / - 62 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT - CASE - - 87 WHEN - ( 94 ) THEN NULL WHEN - 19 * 34 THEN - 8 WHEN + 22 * 73 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT - CASE - - 87 WHEN - ( 94 ) THEN NULL WHEN - 19 * 34 THEN - 8 WHEN + 22 * 73 THEN CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT ALL - SUM( 46 ) - + 37 - 61 - 15 * 61 * MIN( + 14 ) AS col0
----
-12954

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL - SUM ( 46 ) - + 37 - 61 - 15 * 61 * MIN ( + 14 ) AS col0
----
-12954

query I rowsort
SELECT + + 43 * + + 31 * + 68 + 94
----
90738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2654
SELECT + - 48 * + 13 * COUNT( * ) + - 3 DIV - 21 AS col0
----
-624

skipif mysql # not compatible
query I rowsort label-2654
SELECT + - 48 * + 13 * COUNT ( * ) + - 3 / - 21 AS col0
----
-624

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

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

query I rowsort
SELECT + 99 - + 38 + ( 81 ) * + - 95 * 76 + + COALESCE ( + 58, - 96, 41 ) AS col2
----
-584701

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT DISTINCT MIN( ALL - + 87 ) * - - 69 + + 69
----
-5934

skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT MIN ( ALL - + 87 ) * - - 69 + + 69
----
-5934

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2658
SELECT ALL CASE ( - 29 ) WHEN + 79 * + 49 THEN 11 + COUNT( * ) ELSE - 97 DIV 27 END * 78
----
-234

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL CASE ( - 29 ) WHEN + 79 * + 49 THEN 11 + COUNT ( * ) ELSE - 97 / 27 END * 78
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT DISTINCT COUNT( * ) - + + 3 * - + COUNT( * ) * - COUNT( * ) * ( + 12 ) * - SUM( - 92 ) + - 26 AS col1
----
-3337

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT COUNT ( * ) - + + 3 * - + COUNT ( * ) * - COUNT ( * ) * ( + 12 ) * - SUM ( - 92 ) + - 26 AS col1
----
-3337

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT + 40 + + SUM( DISTINCT + + 44 )
----
84

skipif mysql # not compatible
query I rowsort label-2660
SELECT + 40 + + SUM ( DISTINCT + + 44 )
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT + 45 + + - MIN( DISTINCT + - 55 ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-2662
SELECT + 45 + + - MIN ( DISTINCT + - 55 ) AS col0
----
100

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

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

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

query I rowsort
SELECT + 97 + - - 3 AS col0
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2666
SELECT ALL 3 + + - CASE + + 50 WHEN ( MAX( ALL + CAST( - 46 AS SIGNED ) ) ) THEN 24 + - 39 / 47 END - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL 3 + + - CASE + + 50 WHEN ( MAX ( ALL + CAST ( - 46 AS INTEGER ) ) ) THEN 24 + - 39 / 47 END - 65
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2667
SELECT + 74 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-2667
SELECT + 74 / 77
----
0

query I rowsort
SELECT ALL - 66 + + + 71 col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2669
SELECT ALL 97 DIV + + 59 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL 97 / + + 59 AS col2
----
1

query II rowsort
SELECT ALL 56 AS col1, 15 + - 79 + + 69 AS col2
----
56
5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2672
SELECT - MIN( - 12 ) DIV 97 * 69 * 29 + 90 * + 13 + 29
----
1199

skipif mysql # not compatible
query I rowsort label-2672
SELECT - MIN ( - 12 ) / 97 * 69 * 29 + 90 * + 13 + 29
----
1199

query I rowsort
SELECT + ( - 98 ) col1
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2674
SELECT - COUNT( * ) + + 80 DIV + 84 * - 4 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2674
SELECT - COUNT ( * ) + + 80 / + 84 * - 4 AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT DISTINCT - 12 * + + NULLIF ( + 10, + CASE - - 54 WHEN 37 THEN NULL WHEN - 96 THEN - 1 + + ( 30 + 31 / - 64 ) END * - 71 ) + COUNT( * ) AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT - 12 * + + NULLIF ( + 10, + CASE - - 54 WHEN 37 THEN NULL WHEN - 96 THEN - 1 + + ( 30 + 31 / - 64 ) END * - 71 ) + COUNT ( * ) AS col0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT ALL - 83 * - 96 + + 71 * + - COUNT( * ) + 22 * 22
----
8381

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL - 83 * - 96 + + 71 * + - COUNT ( * ) + 22 * 22
----
8381

query I rowsort
SELECT - + NULLIF ( - - 54, 18 ) + + - 44 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL + - 88 * ( COALESCE ( COUNT( * ), + - 92 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL + - 88 * ( COALESCE ( COUNT ( * ), + - 92 ) )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT - CASE + 18 WHEN - 54 THEN 92 * + + 81 - + NULLIF ( - 59, + 35 + 77 / MAX( 15 * + 76 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2680
SELECT - CASE + 18 WHEN - 54 THEN 92 * + + 81 - + NULLIF ( - 59, + 35 + 77 / MAX ( 15 * + 76 ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 54 * + 23 - 44
----
1198

query II rowsort
SELECT - 32 AS col0, 60 AS col1
----
-32
60

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2684
SELECT - COUNT( - 21 ) DIV - - 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2684
SELECT - COUNT ( - 21 ) / - - 64 AS col2
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT - 60 + + 54 - - 43 * + + 57 * + - CAST( NULL AS SIGNED ) / 67 + - ( 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2686
SELECT - 60 + + 54 - - 43 * + + 57 * + - CAST ( NULL AS INTEGER ) / 67 + - ( 7 )
----
NULL

query I rowsort
SELECT + 34 + + 74 AS col2
----
108

query I rowsort
SELECT DISTINCT + + 13 col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT - 88 DIV + 56 col2
----
-1

skipif mysql # not compatible
query I rowsort label-2689
SELECT - 88 / + 56 col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2690
SELECT ALL 66 AS col1, 20 * CAST( - 53 AS SIGNED ) AS col2
----
66
-1060

skipif mysql # not compatible
query II rowsort label-2690
SELECT ALL 66 AS col1, 20 * CAST ( - 53 AS INTEGER ) AS col2
----
66
-1060

query I rowsort
SELECT - 64 * 49 AS col1
----
-3136

query I rowsort
SELECT DISTINCT ( + - ( - - 82 ) ) col0
----
-82

query II rowsort
SELECT ALL 52 * + 99 col2, 46
----
5148
46

query II rowsort
SELECT + 57 + + 87, 11 AS col1
----
144
11

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

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

query I rowsort
SELECT + 34 * - 70
----
-2380

query I rowsort
SELECT - 4 - - 92
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT + 27 + + + COALESCE ( + 2, 88 * + 72 + + 73, - COUNT( * ) ) * - 63
----
-99

skipif mysql # not compatible
query I rowsort label-2699
SELECT + 27 + + + COALESCE ( + 2, 88 * + 72 + + 73, - COUNT ( * ) ) * - 63
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2700
SELECT ALL CAST( 96 AS SIGNED ) * - 48 AS col1
----
-4608

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL CAST ( 96 AS INTEGER ) * - 48 AS col1
----
-4608

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2701
SELECT - 98 * - CAST( NULL AS SIGNED ) AS col0, 40
----
NULL
40

skipif mysql # not compatible
query II rowsort label-2701
SELECT - 98 * - CAST ( NULL AS INTEGER ) AS col0, 40
----
NULL
40

query I rowsort
SELECT ALL 86 + - + 63
----
23

query I rowsort
SELECT - NULLIF ( 24, 58 )
----
-24

query I rowsort
SELECT DISTINCT + 52 + - - 51 AS col2
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-2705
SELECT DISTINCT COUNT( * ), - MAX( ALL + - 15 ) AS col0
----
1
15

skipif mysql # not compatible
query II rowsort label-2705
SELECT DISTINCT COUNT ( * ), - MAX ( ALL + - 15 ) AS col0
----
1
15

query I rowsort
SELECT DISTINCT 91 * - + 25 AS col1
----
-2275

query I rowsort
SELECT - 55 - + 22 + + 64 AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2708
SELECT - NULLIF ( - NULLIF ( + + 22, 24 * + - 50 * - CASE 11 WHEN 79 + + 20 / - ( + 65 + + 84 ) THEN + MIN( 63 ) * - CASE + CAST( 52 AS SIGNED ) * ( 54 + + 18 * CAST( - CAST( + 36 AS SIGNED ) AS SIGNED ) ) WHEN - ( CAST( NULL AS SIGNED ) ) THEN + 43 * COUNT( * ) ELSE - 40 * 76 END WHEN + 61 THEN 45 ELSE SUM( + NULLIF ( ( - 1 ), - 37 ) ) END + + 34 * 82 ), 20 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-2708
SELECT - NULLIF ( - NULLIF ( + + 22, 24 * + - 50 * - CASE 11 WHEN 79 + + 20 / - ( + 65 + + 84 ) THEN + MIN ( 63 ) * - CASE + CAST ( 52 AS INTEGER ) * ( 54 + + 18 * CAST ( - CAST ( + 36 AS INTEGER ) AS INTEGER ) ) WHEN - ( CAST ( NULL AS INTEGER ) ) THEN + 43 * COUNT ( * ) ELSE - 40 * 76 END WHEN + 61 THEN 45 ELSE SUM ( + NULLIF ( ( - 1 ), - 37 ) ) END + + 34 * 82 ), 20 ) AS col1
----
22

query I rowsort
SELECT + 5 * - + ( CASE - + 0 WHEN + 92 THEN NULL WHEN + 52 * + ( + 80 ) THEN 36 ELSE 65 END )
----
-325

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2710
SELECT + CASE - 23 WHEN - 23 * - 16 THEN + 96 WHEN - + CAST( + 58 AS DECIMAL ) THEN NULL END * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2710
SELECT + CASE - 23 WHEN - 23 * - 16 THEN + 96 WHEN - + CAST ( + 58 AS REAL ) THEN NULL END * - COUNT ( * ) col2
----
NULL

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

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

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

query I rowsort
SELECT + 41 * + 6
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-2714
SELECT DISTINCT - 16 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT - 16 / + 60
----
0

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2717
SELECT + 85 * - 4 + - COALESCE ( - - NULLIF ( + COALESCE ( - 2, - COUNT( * ) ), - 55 ), + 89 ) - - COUNT( * ) DIV 58
----
-338

skipif mysql # not compatible
query I rowsort label-2717
SELECT + 85 * - 4 + - COALESCE ( - - NULLIF ( + COALESCE ( - 2, - COUNT ( * ) ), - 55 ), + 89 ) - - COUNT ( * ) / 58
----
-338

query I rowsort
SELECT ALL 52 * + + 58 * - + 13 AS col2
----
-39208

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2719
SELECT 47 AS col0, ( NULLIF ( MAX( ALL - 4 ), AVG ( DISTINCT + 92 ) ) ) DIV 20
----
47
0

skipif mysql # not compatible
query II rowsort label-2719
SELECT 47 AS col0, ( NULLIF ( MAX ( ALL - 4 ), AVG ( DISTINCT + 92 ) ) ) / 20
----
47
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2721
SELECT MIN( 57 ) + - CASE ( COUNT( * ) ) WHEN - 88 * + CAST( - 69 * CAST( + CASE 57 WHEN + 67 THEN + 61 END AS SIGNED ) AS SIGNED ) THEN - 53 ELSE NULL END * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT MIN ( 57 ) + - CASE ( COUNT ( * ) ) WHEN - 88 * + CAST ( - 69 * CAST ( + CASE 57 WHEN + 67 THEN + 61 END AS INTEGER ) AS INTEGER ) THEN - 53 ELSE NULL END * 73
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2722
SELECT 87 * - + 79 + + 82 DIV - 76 AS col1
----
-6874

skipif mysql # not compatible
query I rowsort label-2722
SELECT 87 * - + 79 + + 82 / - 76 AS col1
----
-6874

onlyif mysql # aggregate syntax: 
query II rowsort label-2723
SELECT 3 + - 34 * - 50 * 77, - ( COUNT( - 40 ) ) AS col1
----
130903
-1

skipif mysql # not compatible
query II rowsort label-2723
SELECT 3 + - 34 * - 50 * 77, - ( COUNT ( - 40 ) ) AS col1
----
130903
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2724
SELECT ALL - + COALESCE ( + 40, - 18 - 95 ), + COUNT( * ) DIV - 31 AS col0
----
-40
0

skipif mysql # not compatible
query II rowsort label-2724
SELECT ALL - + COALESCE ( + 40, - 18 - 95 ), + COUNT ( * ) / - 31 AS col0
----
-40
0

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

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

query II rowsort
SELECT ALL - 36, + 54 col0
----
-36
54

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

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

query I rowsort
SELECT 14 * + + 41
----
574

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2729
SELECT ALL + MIN( - 45 ) + 95 DIV - 91
----
-46

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL + MIN ( - 45 ) + 95 / - 91
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2730
SELECT ALL - 10 DIV NULLIF ( + 75, 32 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL - 10 / NULLIF ( + 75, 32 ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2731
SELECT - 33 * - + CASE COUNT( * ) WHEN + + 88 * - 43 * + 43 THEN NULL WHEN - 48 + 39 THEN 76 * COUNT( * ) + 22 WHEN 93 * ( + 56 ) THEN 38 + + COUNT( * ) * + 44 ELSE - 6 * + CAST( 33 * - 33 AS SIGNED ) END + - 41 * + 35
----
214187

skipif mysql # not compatible
query I rowsort label-2731
SELECT - 33 * - + CASE COUNT ( * ) WHEN + + 88 * - 43 * + 43 THEN NULL WHEN - 48 + 39 THEN 76 * COUNT ( * ) + 22 WHEN 93 * ( + 56 ) THEN 38 + + COUNT ( * ) * + 44 ELSE - 6 * + CAST ( 33 * - 33 AS INTEGER ) END + - 41 * + 35
----
214187

query I rowsort
SELECT 17 + + - 5 * + 50 AS col2
----
-233

query I rowsort
SELECT COALESCE ( 49, 35 + 46 ) * 82 + + 79 - - CASE ( - 81 ) WHEN + 41 THEN 75 * - 12 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT ALL - 66 + - CASE COUNT( * ) WHEN ( COALESCE ( + 20, - - 25 ) ) THEN - 79 + 33 * 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL - 66 + - CASE COUNT ( * ) WHEN ( COALESCE ( + 20, - - 25 ) ) THEN - 79 + 33 * 78 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - + 85, + 42 + + + ( - 98 ) ) * - + 61 AS col2
----
5185

onlyif mysql # aggregate syntax: 
query II rowsort label-2736
SELECT 42 * - - 98, + 48 + + ( + COUNT( * ) ) col0
----
4116
49

skipif mysql # not compatible
query II rowsort label-2736
SELECT 42 * - - 98, + 48 + + ( + COUNT ( * ) ) col0
----
4116
49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2737
SELECT ALL 62 DIV - 33 AS col1, + 54 + CAST( NULL AS SIGNED ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2737
SELECT ALL 62 / - 33 AS col1, + 54 + CAST ( NULL AS INTEGER ) AS col0
----
-1
NULL

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

skipif mysql # not compatible
query I rowsort label-2738
SELECT 49 / - + COUNT ( * ) AS col2
----
-49

query I rowsort
SELECT 29 + 80 - - 30 * - 82 col1
----
-2351

query I rowsort
SELECT 32 * - 4
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT 39 + - 33 - + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2741
SELECT 39 + - 33 - + COUNT ( * ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT MAX( DISTINCT + - 89 ) - - + COUNT( * ) * 48 col1
----
-41

skipif mysql # not compatible
query I rowsort label-2742
SELECT MAX ( DISTINCT + - 89 ) - - + COUNT ( * ) * 48 col1
----
-41

query I rowsort
SELECT ( - + 24 ) + 14
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2744
SELECT CAST( 95 AS SIGNED ) * + ( 75 ) AS col0
----
7125

skipif mysql # not compatible
query I rowsort label-2744
SELECT CAST ( 95 AS INTEGER ) * + ( 75 ) AS col0
----
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT + COUNT( * ) + + 11 + - - 18 - - 96
----
126

skipif mysql # not compatible
query I rowsort label-2745
SELECT + COUNT ( * ) + + 11 + - - 18 - - 96
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-2746
SELECT ALL - + 29 * COUNT( * ) AS col2, 76 + + NULLIF ( + 97, COUNT( * ) * + + 99 + + 1 * - 37 )
----
-29
173

skipif mysql # not compatible
query II rowsort label-2746
SELECT ALL - + 29 * COUNT ( * ) AS col2, 76 + + NULLIF ( + 97, COUNT ( * ) * + + 99 + + 1 * - 37 )
----
-29
173

query I rowsort
SELECT DISTINCT - 23 - + 1 AS col1
----
-24

query I rowsort
SELECT - COALESCE ( + + NULLIF ( - COALESCE ( + + 40, + + NULLIF ( - 12, 85 ) * 78 ), - 70 ), + 60 )
----
40

query I rowsort
SELECT DISTINCT - - 79 * + + 50 AS col1
----
3950

query I rowsort
SELECT 2 * - ( + 71 ) * - 30 * - + NULLIF ( 92, - + CASE 40 WHEN - 98 THEN 4 / + 12 ELSE + 61 END * + 6 + - 10 / 12 ) + + 49
----
-391871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2751
SELECT COUNT( * ) DIV 84 + 3 - + + 51 * + 65 AS col1
----
-3312

skipif mysql # not compatible
query I rowsort label-2751
SELECT COUNT ( * ) / 84 + 3 - + + 51 * + 65 AS col1
----
-3312

onlyif mysql # DIV for integer division: 
query I rowsort label-2752
SELECT 33 DIV 11 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2752
SELECT 33 / 11 AS col2
----
3

query I rowsort
SELECT DISTINCT - NULLIF ( - + 57, 89 * + 64 * ( 93 ) / 60 - 39 * - 94 )
----
57

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

query I rowsort
SELECT DISTINCT - - CASE - COALESCE ( + - 74, + - 13 * + 34 * + COALESCE ( + 63, - ( + 88 ) + + 19 ) ) WHEN - 71 THEN + 79 + + 74 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT - - ( + SUM( DISTINCT + 71 ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT - - ( + SUM ( DISTINCT + 71 ) ) AS col0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT DISTINCT 81 DIV 3 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT 81 / 3 AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2758
SELECT DISTINCT - ( 53 ) * CAST( NULL AS SIGNED ) AS col0, + CAST( - MIN( - 51 ) AS SIGNED ) AS col2
----
NULL
51

skipif mysql # not compatible
query II rowsort label-2758
SELECT DISTINCT - ( 53 ) * CAST ( NULL AS INTEGER ) AS col0, + CAST ( - MIN ( - 51 ) AS INTEGER ) AS col2
----
NULL
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2759
SELECT ALL + 11 DIV - - NULLIF ( - COALESCE ( + 47, - + 76, - 45 ), - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL + 11 / - - NULLIF ( - COALESCE ( + 47, - + 76, - 45 ), - CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2760
SELECT ALL 13 + 83 col2, + 9 + - + 85 DIV + NULLIF ( - - 11, + - 96 ) AS col0
----
96
2

skipif mysql # not compatible
query II rowsort label-2760
SELECT ALL 13 + 83 col2, + 9 + - + 85 / + NULLIF ( - - 11, + - 96 ) AS col0
----
96
2

query I rowsort
SELECT 24 * + 63
----
1512

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT ALL COUNT( * ) + - 18 * - 6
----
109

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL COUNT ( * ) + - 18 * - 6
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2764
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), 48 + - COUNT( * ) - - 80 * - 84 * - - CAST( NULL AS SIGNED ) ) + - 17 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), 48 + - COUNT ( * ) - - 80 * - 84 * - - CAST ( NULL AS INTEGER ) ) + - 17 + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL 16 * COALESCE ( + 88, - NULLIF ( - 95, 59 + + + 87 ) ) * + 24
----
33792

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

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

query I rowsort
SELECT DISTINCT 45 * 0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL - ( - 90 ) + - SUM( - - 98 ) + 62 + 36 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - ( - 90 ) + - SUM ( - - 98 ) + 62 + 36 AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2770
SELECT DISTINCT - NULLIF ( + ( - ( COALESCE ( + 3, - - 67, - 1 + - CAST( 73 AS SIGNED ) + + 20 * 13 DIV - ( - 92 * CASE - 49 * COUNT( * ) WHEN 85 * MIN( DISTINCT - 34 ) THEN + 25 * 49 WHEN ( - CASE WHEN NULL NOT BETWEEN 21 AND 4 DIV + 27 THEN 92 + - 87 ELSE NULL END ) THEN NULL ELSE NULL END + CASE 88 WHEN - CAST( NULL AS SIGNED ) - 34 THEN NULL ELSE - 72 END * 45 ) ) ) ), AVG ( ALL NULLIF ( + 96, 45 * ( 6 * CAST( 6 AS SIGNED ) ) ) ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT - NULLIF ( + ( - ( COALESCE ( + 3, - - 67, - 1 + - CAST ( 73 AS INTEGER ) + + 20 * 13 / - ( - 92 * CASE - 49 * COUNT ( * ) WHEN 85 * MIN ( DISTINCT - 34 ) THEN + 25 * 49 WHEN ( - CASE WHEN NULL NOT BETWEEN 21 AND 4 / + 27 THEN 92 + - 87 ELSE NULL END ) THEN NULL ELSE NULL END + CASE 88 WHEN - CAST ( NULL AS INTEGER ) - 34 THEN NULL ELSE - 72 END * 45 ) ) ) ), AVG ( ALL NULLIF ( + 96, 45 * ( 6 * CAST ( 6 AS INTEGER ) ) ) ) ) AS col2
----
3

query I rowsort
SELECT DISTINCT ( - 7 ) + - 8
----
-15

query I rowsort
SELECT 49 + - + 29 * 83 AS col0
----
-2358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2773
SELECT DISTINCT CAST( CASE - + COUNT( * ) WHEN + 92 THEN 39 / + - 59 + + + COUNT( * ) END AS SIGNED ) + - + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT CAST ( CASE - + COUNT ( * ) WHEN + 92 THEN 39 / + - 59 + + + COUNT ( * ) END AS INTEGER ) + - + 76 AS col0
----
NULL

query II rowsort
SELECT ALL + 16 + + + 50 + + 41, + 83 * - NULLIF ( - - NULLIF ( - ( + 33 ), + 54 ), + 72 ) AS col1
----
107
2739

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT DISTINCT - 62 * COUNT( + + 55 )
----
-62

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT - 62 * COUNT ( + + 55 )
----
-62

query II rowsort
SELECT - NULLIF ( - ( - + 4 ), - - 34 + - 96 / - 93 ) AS col1, + 26 * 94 AS col1
----
-4
2444

query I rowsort
SELECT 77 * + + 91
----
7007

query I rowsort
SELECT ALL + 44 * - + 33 * - 82
----
119064

onlyif mysql # aggregate syntax: 
query II rowsort label-2779
SELECT 0 AS col0, COUNT( * ) + - 21 * 39
----
0
-818

skipif mysql # not compatible
query II rowsort label-2779
SELECT 0 AS col0, COUNT ( * ) + - 21 * 39
----
0
-818

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT DISTINCT + 35 - - 67 + + 51 + - 62 + - CASE + COALESCE ( - 58, + + COUNT( * ) ) WHEN - 22 THEN NULL ELSE 9 END AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT + 35 - - 67 + + 51 + - 62 + - CASE + COALESCE ( - 58, + + COUNT ( * ) ) WHEN - 22 THEN NULL ELSE 9 END AS col1
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-2782
SELECT ALL + 32, - NULLIF ( 60, + + 38 * 66 ) * - 53 / CASE - 58 WHEN + CASE 11 WHEN 69 + MAX( + 28 ) THEN NULL ELSE - 34 * 29 + - 68 END THEN COUNT( * ) ELSE NULL END * 82 AS col0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-2782
SELECT ALL + 32, - NULLIF ( 60, + + 38 * 66 ) * - 53 / CASE - 58 WHEN + CASE 11 WHEN 69 + MAX ( + 28 ) THEN NULL ELSE - 34 * 29 + - 68 END THEN COUNT ( * ) ELSE NULL END * 82 AS col0
----
32
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2783
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) + + CASE + - 3 WHEN + 80 THEN NULL WHEN - 94 * 3 THEN COUNT( * ) ELSE - 36 END + + 59 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2783
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + CASE + - 3 WHEN + 80 THEN NULL WHEN - 94 * 3 THEN COUNT ( * ) ELSE - 36 END + + 59 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL + - 90 * + 24
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT DISTINCT - + NULLIF ( - + 71, MAX( - 41 ) ) * + - 47 AS col0
----
-3337

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT - + NULLIF ( - + 71, MAX ( - 41 ) ) * + - 47 AS col0
----
-3337

query I rowsort
SELECT - + 56 * - + 59 AS col2
----
3304

onlyif mysql # aggregate syntax: 
query II rowsort label-2787
SELECT - - 45 - 40 - 97, + COUNT( * ) AS col0
----
-92
1

skipif mysql # not compatible
query II rowsort label-2787
SELECT - - 45 - 40 - 97, + COUNT ( * ) AS col0
----
-92
1

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

skipif mysql # not compatible
query I rowsort label-2788
SELECT - - 39 / + COUNT ( * )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2789
SELECT DISTINCT + 34 DIV - + ( - + 82 ), 81 + COUNT( * ) AS col2
----
0
82

skipif mysql # not compatible
query II rowsort label-2789
SELECT DISTINCT + 34 / - + ( - + 82 ), 81 + COUNT ( * ) AS col2
----
0
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2790
SELECT - - COALESCE ( 97, + + 27 * + CAST( NULL AS SIGNED ) + - 45 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2790
SELECT - - COALESCE ( 97, + + 27 * + CAST ( NULL AS INTEGER ) + - 45 ) AS col1
----
97

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

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

query I rowsort
SELECT + COALESCE ( + + 29, 27 ) col2
----
29

query I rowsort
SELECT ALL 70 * 47
----
3290

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2795
SELECT ALL + - 10 * - COUNT( * ) DIV + 21 * - + COUNT( * ) * - 56
----
0

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL + - 10 * - COUNT ( * ) / + 21 * - + COUNT ( * ) * - 56
----
0

query II rowsort
SELECT + COALESCE ( + 15, + 73 * - 0 + + 67, + 47 ) AS col0, 2 AS col2
----
15
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2797
SELECT + - CAST( NULL AS DECIMAL ) / - CASE - AVG ( DISTINCT - 96 ) WHEN - 56 - 91 THEN - COALESCE ( ( - 54 ), 78 + - 56 ) * + ( - 24 ) ELSE NULL END / 17 - - 14 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT + - CAST ( NULL AS REAL ) / - CASE - AVG ( DISTINCT - 96 ) WHEN - 56 - 91 THEN - COALESCE ( ( - 54 ), 78 + - 56 ) * + ( - 24 ) ELSE NULL END / 17 - - 14 * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT CASE + - 56 WHEN - + 35 THEN NULL WHEN + + 12 THEN + 11 WHEN - 56 THEN NULL END col0
----
NULL

query I rowsort
SELECT ALL + ( - 48 ) * + - 47 * + 61 + - + 76
----
137540

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT - 88 / + 1 + CASE + 69 WHEN + - 61 * + - COUNT( * ) THEN + 92 WHEN - 57 / 15 THEN NULL WHEN 53 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT - 88 / + 1 + CASE + 69 WHEN + - 61 * + - COUNT ( * ) THEN + 92 WHEN - 57 / 15 THEN NULL WHEN 53 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT + CASE - COALESCE ( - + 12, + + 25, - + COUNT( * ), + - 41 ) WHEN - 95 + COUNT( * ) * - 0 THEN 37 + + 74 WHEN 20 * - 25 + + 51 THEN NULL WHEN + 6 THEN - 3 * NULLIF ( + COUNT( * ), COUNT( * ) * 21 ) + - 10 WHEN - 90 - + AVG ( DISTINCT COALESCE ( 81, 70 * + 60 + 33, 82 ) ) / + 3 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2801
SELECT + CASE - COALESCE ( - + 12, + + 25, - + COUNT ( * ), + - 41 ) WHEN - 95 + COUNT ( * ) * - 0 THEN 37 + + 74 WHEN 20 * - 25 + + 51 THEN NULL WHEN + 6 THEN - 3 * NULLIF ( + COUNT ( * ), COUNT ( * ) * 21 ) + - 10 WHEN - 90 - + AVG ( DISTINCT COALESCE ( 81, 70 * + 60 + 33, 82 ) ) / + 3 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT - 81 + 75 DIV + 5 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-2802
SELECT - 81 + 75 / + 5 AS col0
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT + 75 * COUNT( * ) * + 26 AS col2
----
1950

skipif mysql # not compatible
query I rowsort label-2804
SELECT + 75 * COUNT ( * ) * + 26 AS col2
----
1950

query I rowsort
SELECT ALL 87 * 47 AS col1
----
4089

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT ALL 63 * + CASE - AVG ( DISTINCT - 65 ) WHEN + + 11 * - 54 THEN NULL WHEN + 76 THEN + 36 * - ( - 46 ) * 62 ELSE 48 DIV 51 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL 63 * + CASE - AVG ( DISTINCT - 65 ) WHEN + + 11 * - 54 THEN NULL WHEN + 76 THEN + 36 * - ( - 46 ) * 62 ELSE 48 / 51 END AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2807
SELECT + NULLIF ( - + CAST( - 55 AS SIGNED ), 56 - + + 96 + - 32 )
----
55

skipif mysql # not compatible
query I rowsort label-2807
SELECT + NULLIF ( - + CAST ( - 55 AS INTEGER ), 56 - + + 96 + - 32 )
----
55

query I rowsort
SELECT + COALESCE ( + + 19, - 6 * + 44, + + 16 ) + + 83
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT - 39 * - MAX( 53 ) AS col0
----
2067

skipif mysql # not compatible
query I rowsort label-2809
SELECT - 39 * - MAX ( 53 ) AS col0
----
2067

onlyif mysql # aggregate syntax: 
query II rowsort label-2810
SELECT + ( + COUNT( * ) ) AS col0, - 28 + + 36 + - COALESCE ( - NULLIF ( + - 79, 80 ), + 78 * - COUNT( * ) ) * 85 AS col0
----
1
-6707

skipif mysql # not compatible
query II rowsort label-2810
SELECT + ( + COUNT ( * ) ) AS col0, - 28 + + 36 + - COALESCE ( - NULLIF ( + - 79, 80 ), + 78 * - COUNT ( * ) ) * 85 AS col0
----
1
-6707

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2811
SELECT + 3 + - + MAX( ALL + ( - 46 ) ), + ( + 1 ) DIV 64 + + 78 AS col0
----
49
78

skipif mysql # not compatible
query II rowsort label-2811
SELECT + 3 + - + MAX ( ALL + ( - 46 ) ), + ( + 1 ) / 64 + + 78 AS col0
----
49
78

query I rowsort
SELECT DISTINCT 68 * + 16 * 27
----
29376

query I rowsort
SELECT + 33 + 6 AS col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT + COUNT( DISTINCT - 36 ) DIV - 41 * + - 27 * - 28
----
0

skipif mysql # not compatible
query I rowsort label-2814
SELECT + COUNT ( DISTINCT - 36 ) / - 41 * + - 27 * - 28
----
0

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

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

query I rowsort
SELECT DISTINCT 20 - + 21 col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL MAX ( ALL - 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT MIN( DISTINCT + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-2818
SELECT MIN ( DISTINCT + 43 )
----
43

query I rowsort
SELECT ALL - 85 - 25
----
-110

query II rowsort
SELECT ALL NULLIF ( 6, - 80 + + 34 ) AS col1, 17 * - - 43 - - 21 + 13 - - 61 + - 97 * 71 * 66
----
6
-453716

query II rowsort
SELECT + - 35 - - + 76, + 7 AS col2
----
41
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2822
SELECT DISTINCT - 29 - + - 84, 16 DIV + 14 + - ( + + 27 ) + + + 28 DIV + + MIN( 15 ) - 58 DIV - 12 col2
----
55
-21

skipif mysql # not compatible
query II rowsort label-2822
SELECT DISTINCT - 29 - + - 84, 16 / + 14 + - ( + + 27 ) + + + 28 / + + MIN ( 15 ) - 58 / - 12 col2
----
55
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2823
SELECT ALL + + MIN( - CAST( + 6 AS SIGNED ) ) * CASE WHEN NULL BETWEEN - 88 AND ( - - 91 ) * - AVG ( 95 ) THEN COUNT( - 34 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL + + MIN ( - CAST ( + 6 AS INTEGER ) ) * CASE WHEN NULL BETWEEN - 88 AND ( - - 91 ) * - AVG ( 95 ) THEN COUNT ( - 34 ) END
----
NULL

query II rowsort
SELECT - + ( - + 63 ) AS col0, + 78
----
63
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT ALL COALESCE ( + - MIN( DISTINCT - + COALESCE ( COALESCE ( 60, + - 22 + - 74 ), - COALESCE ( 22, - 21 ) ) ), - 7 * + CASE 55 WHEN 97 + + 78 THEN + COUNT( * ) - 40 WHEN 67 THEN 13 * - COUNT( * ) END )
----
60

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL COALESCE ( + - MIN ( DISTINCT - + COALESCE ( COALESCE ( 60, + - 22 + - 74 ), - COALESCE ( 22, - 21 ) ) ), - 7 * + CASE 55 WHEN 97 + + 78 THEN + COUNT ( * ) - 40 WHEN 67 THEN 13 * - COUNT ( * ) END )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT + SUM( 3 ) + 71 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-2826
SELECT + SUM ( 3 ) + 71 AS col0
----
74

query I rowsort
SELECT - + 10 * + + 77
----
-770

onlyif mysql # aggregate syntax: 
query II rowsort label-2828
SELECT - + SUM( - 91 ) col0, 21 * + 67
----
91
1407

skipif mysql # not compatible
query II rowsort label-2828
SELECT - + SUM ( - 91 ) col0, 21 * + 67
----
91
1407

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

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

query I rowsort
SELECT ALL + + 87 * 17
----
1479

query I rowsort
SELECT - 15 * 37 * + ( + 34 ) + - 0 AS col1
----
-18870

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL 84 + COUNT( ALL + - 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL 84 + COUNT ( ALL + - 85 ) AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2833
SELECT ALL - - CASE + NULLIF ( - CAST( NULL AS SIGNED ), - 79 ) WHEN - - 3 / + 60 - 97 THEN + + 94 / + COUNT( ALL 61 ) WHEN + COUNT( * ) THEN NULL ELSE NULL END + - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL - - CASE + NULLIF ( - CAST ( NULL AS INTEGER ), - 79 ) WHEN - - 3 / + 60 - 97 THEN + + 94 / + COUNT ( ALL 61 ) WHEN + COUNT ( * ) THEN NULL ELSE NULL END + - 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT - + SUM( ALL - + ( - + 52 ) ) + + 88
----
36

skipif mysql # not compatible
query I rowsort label-2834
SELECT - + SUM ( ALL - + ( - + 52 ) ) + + 88
----
36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2836
SELECT DISTINCT + 43 DIV - 48 + + + 64 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT + 43 / - 48 + + + 64 AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2837
SELECT ALL + 0 DIV - ( + COALESCE ( + - CAST( - + 64 AS SIGNED ), - 99 + + 38 ) ) + - 51 col1
----
-51

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL + 0 / - ( + COALESCE ( + - CAST ( - + 64 AS INTEGER ), - 99 + + 38 ) ) + - 51 col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT - 17 * - 68 + COUNT( ALL 50 ) + 19 + - ( + - 44 )
----
1220

skipif mysql # not compatible
query I rowsort label-2838
SELECT - 17 * - 68 + COUNT ( ALL 50 ) + 19 + - ( + - 44 )
----
1220

query I rowsort
SELECT - 82 * - - 15 AS col1
----
-1230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2840
SELECT ALL + 76 / COUNT( * ) + + 76 * 39 + - 32 + - SUM( ALL - 11 ) + + CASE - 61 WHEN + 84 - + CAST( + 38 AS SIGNED ) / + COUNT( * ) THEN - 95 ELSE NULL END * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL + 76 / COUNT ( * ) + + 76 * 39 + - 32 + - SUM ( ALL - 11 ) + + CASE - 61 WHEN + 84 - + CAST ( + 38 AS INTEGER ) / + COUNT ( * ) THEN - 95 ELSE NULL END * + 98
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-2841
SELECT + COUNT( * ), 96 * 59 col2, - ( + 27 ) AS col2
----
1
5664
-27

skipif mysql # not compatible
query III rowsort label-2841
SELECT + COUNT ( * ), 96 * 59 col2, - ( + 27 ) AS col2
----
1
5664
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2842
SELECT ALL 58 DIV 46 + - SUM( ALL 81 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL 58 / 46 + - SUM ( ALL 81 ) AS col2
----
-80

query II rowsort
SELECT ALL + 17, 15 AS col2
----
17
15

query I rowsort
SELECT + COALESCE ( - - 35, - + 88 + + 43, - ( - ( + - 93 ) ) )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2845
SELECT + CASE 91 WHEN + 19 + - 95 + - 49 / - - NULLIF ( + ( + + 49 ), + 0 ) * - - 20 + ( + ( + AVG ( ALL - ( - 86 ) ) ) ) THEN - 45 + CAST( NULL AS SIGNED ) * + COUNT( * ) WHEN COUNT( * ) THEN CASE CAST( COALESCE ( 77, + 13 ) AS SIGNED ) WHEN 73 / + 56 THEN 43 END * 34 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT + CASE 91 WHEN + 19 + - 95 + - 49 / - - NULLIF ( + ( + + 49 ), + 0 ) * - - 20 + ( + ( + AVG ( ALL - ( - 86 ) ) ) ) THEN - 45 + CAST ( NULL AS INTEGER ) * + COUNT ( * ) WHEN COUNT ( * ) THEN CASE CAST ( COALESCE ( 77, + 13 ) AS INTEGER ) WHEN 73 / + 56 THEN 43 END * 34 ELSE NULL END
----
NULL

query I rowsort
SELECT - 15 - + + 42
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT + ( 3 ) * + 13 - + + NULLIF ( 57, - + 64 * + + 98 ) - - 49 - - 73 + + - 41 + + CASE + 44 WHEN 81 THEN NULL WHEN 83 THEN + 97 END / COUNT( * ) / 8 * + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT + ( 3 ) * + 13 - + + NULLIF ( 57, - + 64 * + + 98 ) - - 49 - - 73 + + - 41 + + CASE + 44 WHEN 81 THEN NULL WHEN 83 THEN + 97 END / COUNT ( * ) / 8 * + 69
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT 8 * + - 24 + - 63 * COUNT( * )
----
-255

skipif mysql # not compatible
query I rowsort label-2849
SELECT 8 * + - 24 + - 63 * COUNT ( * )
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT ALL - MIN( ALL 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL - MIN ( ALL 32 )
----
-32

query I rowsort
SELECT DISTINCT 14 * - - 17 AS col1
----
238

query I rowsort
SELECT + 1 * + 66 * + 12 + 32
----
824

query I rowsort
SELECT 83 + 96
----
179

onlyif mysql # aggregate syntax: 
query II rowsort label-2854
SELECT DISTINCT + ( + 95 ) * + ( + 3 ) + + 18 - - 27 AS col0, ( - 13 ) + + 30 + + - MAX( DISTINCT - 31 ) AS col2
----
330
48

skipif mysql # not compatible
query II rowsort label-2854
SELECT DISTINCT + ( + 95 ) * + ( + 3 ) + + 18 - - 27 AS col0, ( - 13 ) + + 30 + + - MAX ( DISTINCT - 31 ) AS col2
----
330
48

query I rowsort
SELECT ALL 2 * 70 AS col0
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2856
SELECT 85 * - + CAST( + 31 AS SIGNED ) * + CAST( NULL AS SIGNED ) * + + 32 * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2856
SELECT 85 * - + CAST ( + 31 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + + 32 * 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT COUNT( * ) + 67 + 97 + + 88
----
253

skipif mysql # not compatible
query I rowsort label-2857
SELECT COUNT ( * ) + 67 + 97 + + 88
----
253

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2858
SELECT DISTINCT CASE MAX( ALL + 19 ) WHEN + 51 * 63 / - 58 THEN - 68 * CAST( + 73 AS SIGNED ) + + 14 + + CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT CASE MAX ( ALL + 19 ) WHEN + 51 * 63 / - 58 THEN - 68 * CAST ( + 73 AS INTEGER ) + + 14 + + CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT + 85 * - 78 AS col2
----
-6630

query I rowsort
SELECT ALL + 73 + - 57 + + 3
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2861
SELECT ALL ( 5 ) + - 32 DIV + 47
----
5

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL ( 5 ) + - 32 / + 47
----
5

query I rowsort
SELECT - NULLIF ( - 31, 79 )
----
31

query I rowsort
SELECT 46 * + 67 AS col1
----
3082

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT ALL NULLIF ( + 78, COUNT( * ) ) + + 56 + + 13 * + 39 * - ( ( - COUNT( ALL + - 1 ) ) ) * - 71
----
-35863

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL NULLIF ( + 78, COUNT ( * ) ) + + 56 + + 13 * + 39 * - ( ( - COUNT ( ALL + - 1 ) ) ) * - 71
----
-35863

query I rowsort
SELECT 33 - 21 + - 98 * - 18
----
1776

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2866
SELECT CAST( NULL AS SIGNED ) AS col1, 4
----
NULL
4

skipif mysql # not compatible
query II rowsort label-2866
SELECT CAST ( NULL AS INTEGER ) AS col1, 4
----
NULL
4

query I rowsort
SELECT ALL 32 + + NULLIF ( + + 11, - 29 ) AS col1
----
43

query I rowsort
SELECT - 2 - - + 81
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2869
SELECT COUNT( * ) DIV - 85 + + 48 DIV - 44 + - - 79 * - 25 * + 77
----
-152076

skipif mysql # not compatible
query I rowsort label-2869
SELECT COUNT ( * ) / - 85 + + 48 / - 44 + - - 79 * - 25 * + 77
----
-152076

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2870
SELECT ALL - - COUNT( * ) + - 28 + - 37 * + MAX( + 17 ) AS col0, - 1 DIV - - 33 AS col1
----
-656
0

skipif mysql # not compatible
query II rowsort label-2870
SELECT ALL - - COUNT ( * ) + - 28 + - 37 * + MAX ( + 17 ) AS col0, - 1 / - - 33 AS col1
----
-656
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT 56 * ( + MAX( DISTINCT + 19 ) ) AS col0
----
1064

skipif mysql # not compatible
query I rowsort label-2871
SELECT 56 * ( + MAX ( DISTINCT + 19 ) ) AS col0
----
1064

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

query I rowsort
SELECT DISTINCT 23 - + 63
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2874
SELECT DISTINCT - COALESCE ( - 38, 92 + + 13 * + - COUNT( * ) DIV + - COUNT( * ), + - 65 )
----
38

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT - COALESCE ( - 38, 92 + + 13 * + - COUNT ( * ) / + - COUNT ( * ), + - 65 )
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-2875
SELECT 84 DIV - - 66 - - - 95
----
-94

skipif mysql # not compatible
query I rowsort label-2875
SELECT 84 / - - 66 - - - 95
----
-94

query I rowsort
SELECT ALL 58 * 4 col2
----
232

query I rowsort
SELECT - 92 * 48 * - 20 + + 14 AS col2
----
88334

query II rowsort
SELECT 21 AS col0, 92 AS col1
----
21
92

query I rowsort
SELECT 68 * - 84
----
-5712

query I rowsort
SELECT ALL - COALESCE ( + 49, NULLIF ( - - 61, + - 58 ) )
----
-49

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

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

query I rowsort
SELECT ALL - NULLIF ( + 52, - + 19 / - 27 + + 20 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT COUNT( * ) * + + 84 + + + 33
----
117

skipif mysql # not compatible
query I rowsort label-2883
SELECT COUNT ( * ) * + + 84 + + + 33
----
117

query I rowsort
SELECT DISTINCT - 31 * + + 35
----
-1085

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT 93 * MAX( ALL + 96 ) AS col1
----
8928

skipif mysql # not compatible
query I rowsort label-2885
SELECT 93 * MAX ( ALL + 96 ) AS col1
----
8928

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

query II rowsort
SELECT 46 AS col2, ( + - COALESCE ( + 94, + 29 ) ) - - - 94
----
46
-188

query I rowsort
SELECT 53 + + 68
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2889
SELECT DISTINCT COUNT( * ), - 22 + 49 + - CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2889
SELECT DISTINCT COUNT ( * ), - 22 + 49 + - CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2890
SELECT + ( 99 ) * - + 77 + + 61 DIV + 9
----
-7617

skipif mysql # not compatible
query I rowsort label-2890
SELECT + ( 99 ) * - + 77 + + 61 / + 9
----
-7617

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT ALL 23 + + + 85 DIV + 43 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL 23 + + + 85 / + 43 AS col2
----
24

query II rowsort
SELECT DISTINCT - 20 col0, 69 AS col2
----
-20
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2893
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) + - ( CASE - 94 WHEN + 83 THEN + 58 WHEN - 73 THEN - 0 * 93 * + 51 + 69 ELSE NULL END ) + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - ( CASE - 94 WHEN + 83 THEN + 58 WHEN - 73 THEN - 0 * 93 * + 51 + 69 ELSE NULL END ) + + 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2894
SELECT - ( CASE + - NULLIF ( CAST( NULL AS SIGNED ), - + 35 ) WHEN + - 40 THEN - - SUM( 42 ) WHEN - + 96 THEN NULL WHEN + 31 / + 21 * 29 + 25 THEN + 3 * 1 + + COUNT( * ) ELSE 4 END )
----
-4

skipif mysql # not compatible
query I rowsort label-2894
SELECT - ( CASE + - NULLIF ( CAST ( NULL AS INTEGER ), - + 35 ) WHEN + - 40 THEN - - SUM ( 42 ) WHEN - + 96 THEN NULL WHEN + 31 / + 21 * 29 + 25 THEN + 3 * 1 + + COUNT ( * ) ELSE 4 END )
----
-4

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

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT - CAST ( + 88 AS REAL ) + + - 91 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT + MAX( ALL + 51 ) + 27 col2
----
78

skipif mysql # not compatible
query I rowsort label-2896
SELECT + MAX ( ALL + 51 ) + 27 col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL - 61 + - + CASE 24 WHEN 1 + - + 40 + - 49 THEN - 28 * + - 26 * - - ( + COUNT( * ) ) * + + 42 - ( ( 57 ) ) + + 49 ELSE 14 END + 74
----
-1

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL - 61 + - + CASE 24 WHEN 1 + - + 40 + - 49 THEN - 28 * + - 26 * - - ( + COUNT ( * ) ) * + + 42 - ( ( 57 ) ) + + 49 ELSE 14 END + 74
----
-1

query I rowsort
SELECT 2 + + 9 * + 40 + - 83
----
279

query I rowsort
SELECT + 42 * + 90 * 79 + 11
----
298631

query II rowsort
SELECT DISTINCT 21, 12 AS col2
----
21
12

query I rowsort
SELECT ALL - 1 + - 79 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL + CASE 51 WHEN 22 * + + 72 + - 82 + + 48 * + + COALESCE ( 59, 97 ) * - 53 THEN 71 WHEN + COUNT( * ) + 28 * + 39 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL + CASE 51 WHEN 22 * + + 72 + - 82 + + 48 * + + COALESCE ( 59, 97 ) * - 53 THEN 71 WHEN + COUNT ( * ) + 28 * + 39 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 52 - - 74
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-2904
SELECT 71 + 32, COUNT( * ) + + - MIN( 95 ) * + COUNT( * ) AS col2
----
103
-94

skipif mysql # not compatible
query II rowsort label-2904
SELECT 71 + 32, COUNT ( * ) + + - MIN ( 95 ) * + COUNT ( * ) AS col2
----
103
-94

query I rowsort
SELECT 52 + 95
----
147

query I rowsort
SELECT 23 * + 17
----
391

query I rowsort
SELECT 58 * 97 * + NULLIF ( + + 94, - 10 )
----
528844

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT CASE ( + 22 ) WHEN + COUNT( * ) THEN + 43 + - - COUNT( * ) + - + 70 ELSE + ( + 30 ) END AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2908
SELECT CASE ( + 22 ) WHEN + COUNT ( * ) THEN + 43 + - - COUNT ( * ) + - + 70 ELSE + ( + 30 ) END AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT 71 * + 12 * 45 * - COUNT( * ) * + 38
----
-1456920

skipif mysql # not compatible
query I rowsort label-2909
SELECT 71 * + 12 * 45 * - COUNT ( * ) * + 38
----
-1456920

query I rowsort
SELECT ALL 68 * 78
----
5304

query I rowsort
SELECT DISTINCT 74 * + 89 + 34 * CASE + - 20 WHEN 54 THEN NULL WHEN + 59 * + 55 + 98 + 77 * - - 7 / 66 THEN + 40 ELSE + 87 END
----
9544

query I rowsort
SELECT + COALESCE ( + 77, 58 ) AS col2
----
77

query I rowsort
SELECT ALL 49 * 19 + - 4 * 26 col0
----
827

query I rowsort
SELECT + 2 - - 37 * 99 - - + 34
----
3699

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2915
SELECT - 54 DIV MIN( - CAST( 9 AS SIGNED ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2915
SELECT - 54 / MIN ( - CAST ( 9 AS INTEGER ) ) AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2916
SELECT ALL 39 * CASE + + 34 WHEN 51 THEN - COUNT( * ) + + - 64 + + 93 + - + CAST( - ( + + ( + 33 ) ) AS SIGNED ) + COUNT( 47 ) + 71 * + 72 ELSE NULL END + ( COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL 39 * CASE + + 34 WHEN 51 THEN - COUNT ( * ) + + - 64 + + 93 + - + CAST ( - ( + + ( + 33 ) ) AS INTEGER ) + COUNT ( 47 ) + 71 * + 72 ELSE NULL END + ( COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2917
SELECT ALL 76 * + 90 + 49 + NULLIF ( - - CAST( NULL AS DECIMAL ), + 49 - + CASE + 34 WHEN + ( - 88 ) / - + 58 - 41 THEN 65 * - 92 WHEN - AVG ( DISTINCT 65 ) THEN + 68 * 89 + 61 END - - ( + 9 + 0 ) * COUNT( * ) * AVG ( 7 / + 45 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL 76 * + 90 + 49 + NULLIF ( - - CAST ( NULL AS REAL ), + 49 - + CASE + 34 WHEN + ( - 88 ) / - + 58 - 41 THEN 65 * - 92 WHEN - AVG ( DISTINCT 65 ) THEN + 68 * 89 + 61 END - - ( + 9 + 0 ) * COUNT ( * ) * AVG ( 7 / + 45 ) )
----
NULL

query I rowsort
SELECT ALL + 68 + + - 98 + 99 * + - 30 AS col2
----
-3000

query I rowsort
SELECT NULLIF ( - 46, 10 )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2920
SELECT - + 17 * + NULLIF ( ( - 0 ), - 15 ) + - 35 - - ( - CAST( - - 34 AS SIGNED ) ) - + - NULLIF ( + + 40, - - 29 * - 61 - 29 * + 87 ) - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT - + 17 * + NULLIF ( ( - 0 ), - 15 ) + - 35 - - ( - CAST ( - - 34 AS INTEGER ) ) - + - NULLIF ( + + 40, - - 29 * - 61 - 29 * + 87 ) - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2921
SELECT - 95 - + CASE - COUNT( * ) WHEN 7 + COALESCE ( - - 33, - COUNT( ALL 67 ) * COUNT( * ) * 80 + 97 + 49 * - 78 ) THEN - 87 ELSE ( + COUNT( + 47 ) ) * - 60 END DIV + 58
----
-94

skipif mysql # not compatible
query I rowsort label-2921
SELECT - 95 - + CASE - COUNT ( * ) WHEN 7 + COALESCE ( - - 33, - COUNT ( ALL 67 ) * COUNT ( * ) * 80 + 97 + 49 * - 78 ) THEN - 87 ELSE ( + COUNT ( + 47 ) ) * - 60 END / + 58
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT - - 71 + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-2922
SELECT - - 71 + COUNT ( * )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2923
SELECT ALL - ( - 32 ) + - + 3 DIV - + 29 + - 31
----
1

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL - ( - 32 ) + - + 3 / - + 29 + - 31
----
1

query I rowsort
SELECT - NULLIF ( - 83, + 52 ) AS col1
----
83

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

query I rowsort
SELECT - + 9 col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT - 6 DIV + 94 + + - 54 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2927
SELECT - 6 / + 94 + + - 54 AS col1
----
-54

query I rowsort
SELECT - 23 * - 6
----
138

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

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL + COUNT ( * ) / + 98 / + ( + 2 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2930
SELECT - 40 - + + COUNT( * ) + + + ( + ( + ( - CAST( NULL AS SIGNED ) ) ) ) * - 32 / - - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT - 40 - + + COUNT ( * ) + + + ( + ( + ( - CAST ( NULL AS INTEGER ) ) ) ) * - 32 / - - 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT - COALESCE ( - 64, + + 25, - 16 * - COUNT( * ) + + - 96 * - 3 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-2931
SELECT - COALESCE ( - 64, + + 25, - 16 * - COUNT ( * ) + + - 96 * - 3 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT - 16 - ( + + 13 ) + - + MIN( + 95 ) + + 52 - + ( - + 33 )
----
-39

skipif mysql # not compatible
query I rowsort label-2932
SELECT - 16 - ( + + 13 ) + - + MIN ( + 95 ) + + 52 - + ( - + 33 )
----
-39

query I rowsort
SELECT + 22 * - - 8 AS col1
----
176

query I rowsort
SELECT ALL 63 * - 52
----
-3276

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT DISTINCT + COUNT( * ) * + + 44 * - MAX( ALL + - 39 ) AS col0
----
1716

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT + COUNT ( * ) * + + 44 * - MAX ( ALL + - 39 ) AS col0
----
1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2937
SELECT + CASE - CASE - - 48 WHEN + 94 * + CAST( NULL AS SIGNED ) + + 72 THEN NULL ELSE 23 END WHEN 34 THEN MIN( - + 12 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT + CASE - CASE - - 48 WHEN + 94 * + CAST ( NULL AS INTEGER ) + + 72 THEN NULL ELSE 23 END WHEN 34 THEN MIN ( - + 12 ) END AS col1
----
NULL

query II rowsort
SELECT ALL + 32 AS col0, 30 * 86
----
32
2580

query I rowsort
SELECT ALL 27 * 34 AS col2
----
918

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

skipif mysql # not compatible
query II rowsort label-2940
SELECT CAST ( NULL AS INTEGER ) col2, + 77 + - COUNT ( * ) AS col1
----
NULL
76

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

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

query I rowsort
SELECT ( - ( + ( - - 67 ) ) ) col1
----
-67

query I rowsort
SELECT 59 * + ( - - 91 ) + - 38
----
5331

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT + COUNT( * ) * - + COALESCE ( + - 72, - 26 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-2945
SELECT + COUNT ( * ) * - + COALESCE ( + - 72, - 26 ) AS col1
----
72

query I rowsort
SELECT 59 * - 20 * - 60 - - + 73 col1
----
70873

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2947
SELECT ALL ( COUNT( * ) ) * + + 4 DIV + 13 + + 48 * - - CAST( - 65 AS SIGNED ) * - 70
----
218400

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL ( COUNT ( * ) ) * + + 4 / + 13 + + 48 * - - CAST ( - 65 AS INTEGER ) * - 70
----
218400

query I rowsort
SELECT - + 27 * + 87 + 98 + - + 77 AS col1
----
-2328

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2949
SELECT + 41 + CAST( + ( - 81 ) AS SIGNED ) AS col2, - 76
----
-40
-76

skipif mysql # not compatible
query II rowsort label-2949
SELECT + 41 + CAST ( + ( - 81 ) AS INTEGER ) AS col2, - 76
----
-40
-76

query I rowsort
SELECT + + 56 * + 92 AS col0
----
5152

query I rowsort
SELECT - + 50 * 38
----
-1900

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

skipif mysql # not compatible
query I rowsort label-2952
SELECT - COUNT ( * ) / 73 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2953
SELECT DISTINCT + 12 DIV - - 62 + + COALESCE ( 13, 38 DIV - 71, + 4 * + - CASE + - 79 WHEN - + COALESCE ( - 45, CAST( + - 19 AS SIGNED ), CAST( - 36 AS SIGNED ) ) THEN 83 * 48 WHEN - 65 THEN ( SUM( DISTINCT ( + 30 ) ) ) ELSE NULL END * + COALESCE ( 16, 73, COUNT( * ) ) + - 36 * 9 )
----
13

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT + 12 / - - 62 + + COALESCE ( 13, 38 / - 71, + 4 * + - CASE + - 79 WHEN - + COALESCE ( - 45, CAST ( + - 19 AS INTEGER ), CAST ( - 36 AS INTEGER ) ) THEN 83 * 48 WHEN - 65 THEN ( SUM ( DISTINCT ( + 30 ) ) ) ELSE NULL END * + COALESCE ( 16, 73, COUNT ( * ) ) + - 36 * 9 )
----
13

query II rowsort
SELECT ALL + 5 * + - 25 - + + 42, NULLIF ( 30, - 65 ) col1
----
-167
30

query I rowsort
SELECT - - 73 - - - 20 AS col0
----
53

query I rowsort
SELECT - + 98 + - - 7 AS col1
----
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT 52 + MIN( ALL - 58 ) - + 78 + - - 70 * - 56 * + 48
----
-188244

skipif mysql # not compatible
query I rowsort label-2958
SELECT 52 + MIN ( ALL - 58 ) - + 78 + - - 70 * - 56 * + 48
----
-188244

query I rowsort
SELECT 68 + 40 * + 96
----
3908

query I rowsort
SELECT ALL + 99 + + - NULLIF ( - - 79, 31 )
----
20

query I rowsort
SELECT DISTINCT - 44 + + - 21 col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2962
SELECT DISTINCT + 72 DIV - COALESCE ( - 27, + 35, + + CAST( + 35 AS SIGNED ) + 52 )
----
2

skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT + 72 / - COALESCE ( - 27, + 35, + + CAST ( + 35 AS INTEGER ) + 52 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2963
SELECT ALL + 54 * + CAST( - 64 AS SIGNED ) AS col2
----
-3456

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL + 54 * + CAST ( - 64 AS INTEGER ) AS col2
----
-3456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2964
SELECT ALL - COUNT( * ) + + NULLIF ( - + 73, CAST( + 93 AS SIGNED ) * - - 98 ) + - 24 * - 23 * - 77
----
-42578

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL - COUNT ( * ) + + NULLIF ( - + 73, CAST ( + 93 AS INTEGER ) * - - 98 ) + - 24 * - 23 * - 77
----
-42578

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT MIN( ( + 89 ) ) / + + CASE + AVG ( DISTINCT + 24 ) WHEN 94 + COUNT( * ) THEN - MAX( - 73 ) WHEN - 93 + - + COUNT( * ) THEN + 61 ELSE NULL END + 12 * 15 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2965
SELECT MIN ( ( + 89 ) ) / + + CASE + AVG ( DISTINCT + 24 ) WHEN 94 + COUNT ( * ) THEN - MAX ( - 73 ) WHEN - 93 + - + COUNT ( * ) THEN + 61 ELSE NULL END + 12 * 15 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2966
SELECT ALL 67 + - + 19, - CAST( NULL AS SIGNED ) AS col2
----
48
NULL

skipif mysql # not compatible
query II rowsort label-2966
SELECT ALL 67 + - + 19, - CAST ( NULL AS INTEGER ) AS col2
----
48
NULL

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

skipif mysql # not compatible
query I rowsort label-2967
SELECT 92 * + + CAST ( CAST ( - - 86 AS INTEGER ) AS INTEGER )
----
7912

query I rowsort
SELECT - 72 + 92 + + - 41
----
-21

query I rowsort
SELECT ALL - 65 - - 92 + + ( - ( - 42 ) ) AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2970
SELECT 77 * - NULLIF ( 3, + CAST( NULL AS SIGNED ) * COUNT( * ) - - 1 * 95 + - - 2 ) * 56 * + 48 AS col2
----
-620928

skipif mysql # not compatible
query I rowsort label-2970
SELECT 77 * - NULLIF ( 3, + CAST ( NULL AS INTEGER ) * COUNT ( * ) - - 1 * 95 + - - 2 ) * 56 * + 48 AS col2
----
-620928

query I rowsort
SELECT - 30 - 83 AS col1
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT DISTINCT 73 * 35 * + - 37 * 60 DIV - - 4 col2
----
-1418025

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT 73 * 35 * + - 37 * 60 / - - 4 col2
----
-1418025

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT - - 37 * - + 8 + - COUNT( * ) - - 71
----
-226

skipif mysql # not compatible
query I rowsort label-2973
SELECT - - 37 * - + 8 + - COUNT ( * ) - - 71
----
-226

query I rowsort
SELECT ALL - + NULLIF ( + 15, - + 23 )
----
-15

query I rowsort
SELECT ALL + 49 * - 83
----
-4067

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT - 46 DIV - + 65 * - 43 col2
----
0

skipif mysql # not compatible
query I rowsort label-2976
SELECT - 46 / - + 65 * - 43 col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2977
SELECT 15 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT 15 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2978
SELECT COUNT( * ) + + 47 AS col2, + 20
----
48
20

skipif mysql # not compatible
query II rowsort label-2978
SELECT COUNT ( * ) + + 47 AS col2, + 20
----
48
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2979
SELECT DISTINCT 46 DIV - + 9 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT 46 / - + 9 AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2980
SELECT ALL - 58 DIV + 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL - 58 / + 89 AS col0
----
0

query I rowsort
SELECT ALL 45 + + 66 + + 91
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT ( - 55 ) * + + 49 + - + COUNT( * )
----
-2696

skipif mysql # not compatible
query I rowsort label-2982
SELECT ( - 55 ) * + + 49 + - + COUNT ( * )
----
-2696

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT ( + 38 ) - - CASE + ( + 82 ) WHEN + 91 THEN ( - 87 ) WHEN + COUNT( * ) THEN NULL WHEN 89 THEN 1 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT ( + 38 ) - - CASE + ( + 82 ) WHEN + 91 THEN ( - 87 ) WHEN + COUNT ( * ) THEN NULL WHEN 89 THEN 1 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL + MAX( + + 65 ) + + - 76 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL + MAX ( + + 65 ) + + - 76 AS col1
----
-11

query I rowsort
SELECT 77 + - 5 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT COUNT( * ) * + - 54 * - 37 * 26 AS col1
----
51948

skipif mysql # not compatible
query I rowsort label-2987
SELECT COUNT ( * ) * + - 54 * - 37 * 26 AS col1
----
51948

query II rowsort
SELECT 9 col0, CASE - ( - 75 ) WHEN 88 / - 35 THEN 21 END AS col2
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT 86 + - 61 * 30 * + COUNT( * ) * 5 * + 13
----
-118864

skipif mysql # not compatible
query I rowsort label-2989
SELECT 86 + - 61 * 30 * + COUNT ( * ) * 5 * + 13
----
-118864

query II rowsort
SELECT 17, 39 AS col0
----
17
39

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

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

query I rowsort
SELECT 96 * + 66 - + 49
----
6287

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2993
SELECT ALL - CASE + ( + - 59 ) WHEN - 75 * - + 41 * + CAST( - 28 AS DECIMAL ) * - 80 + + 44 + + ( - + 74 ) - 81 / + COUNT( * ) THEN + 90 * + 50 + 7 * - 46 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL - CASE + ( + - 59 ) WHEN - 75 * - + 41 * + CAST ( - 28 AS REAL ) * - 80 + + 44 + + ( - + 74 ) - 81 / + COUNT ( * ) THEN + 90 * + 50 + 7 * - 46 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2994
SELECT - 5 DIV 93 * 91 * + + 70 - - - 60 + COUNT( * ) DIV 59 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-2994
SELECT - 5 / 93 * 91 * + + 70 - - - 60 + COUNT ( * ) / 59 AS col1
----
-60

query I rowsort
SELECT - 86 * - - 5 + + 93
----
-337

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT - CASE + 11 WHEN 24 * - 74 - - 12 + + COUNT( * ) THEN - NULLIF ( 22, - 33 ) + - COUNT( - + 63 ) + - - 28 / + + 52 * + 86 - - - 69 WHEN - 42 THEN NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2996
SELECT - CASE + 11 WHEN 24 * - 74 - - 12 + + COUNT ( * ) THEN - NULLIF ( 22, - 33 ) + - COUNT ( - + 63 ) + - - 28 / + + 52 * + 86 - - - 69 WHEN - 42 THEN NULL END + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2997
SELECT - 0 * + - COALESCE ( 81, + 48 - + - 69 + - 61 ) * + 60 + 62 + - + COUNT( * ) - + - ( COUNT( * ) ) AS col2, 52
----
62
52

skipif mysql # not compatible
query II rowsort label-2997
SELECT - 0 * + - COALESCE ( 81, + 48 - + - 69 + - 61 ) * + 60 + 62 + - + COUNT ( * ) - + - ( COUNT ( * ) ) AS col2, 52
----
62
52

query I rowsort
SELECT - 70 * + + 23
----
-1610

onlyif mysql # aggregate syntax: 
query II rowsort label-2999
SELECT ALL - 78 * - 90 + - 7, + COUNT( * ) + - SUM( ALL + - 61 ) + + + 52 AS col1
----
7013
114

skipif mysql # not compatible
query II rowsort label-2999
SELECT ALL - 78 * - 90 + - 7, + COUNT ( * ) + - SUM ( ALL + - 61 ) + + + 52 AS col1
----
7013
114

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

skipif mysql # not compatible
query I rowsort label-3000
SELECT - 27 + + - COUNT ( * ) * - 63 / 89 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT DISTINCT - - COALESCE ( 27, + - 84 + - + ( + + 43 ) + + 55 + - 8, - 63 * - ( - 20 ) + + - COUNT( * ) + 99 )
----
27

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT - - COALESCE ( 27, + - 84 + - + ( + + 43 ) + + 55 + - 8, - 63 * - ( - 20 ) + + - COUNT ( * ) + 99 )
----
27

query I rowsort
SELECT - - ( - 5 ) * - 66 + ( - 85 ) - 94 * 74 - 99 + + + 51 + - + 49 AS col2
----
-6808

query I rowsort
SELECT ALL - ( - + 40 ) col2
----
40

query II rowsort
SELECT + 50 * + 44 * - - 45 col2, 57 AS col2
----
99000
57

query I rowsort
SELECT ALL + 42 * - - 29
----
1218

query I rowsort
SELECT ALL - 84 * - 58 * 71 * - 75
----
-25943400

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT + - SUM( DISTINCT - - ( 48 ) ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3007
SELECT + - SUM ( DISTINCT - - ( 48 ) ) AS col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3008
SELECT - CAST( - 7 AS SIGNED ) * - 19 + + 26
----
-107

skipif mysql # not compatible
query I rowsort label-3008
SELECT - CAST ( - 7 AS INTEGER ) * - 19 + + 26
----
-107

query I rowsort
SELECT - 86 * + 21 AS col1
----
-1806

query I rowsort
SELECT - - 96 + 50 * ( + 3 ) AS col2
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT - 81 * - - COUNT( * ) * + + 99 + 74 col2
----
-7945

skipif mysql # not compatible
query I rowsort label-3011
SELECT - 81 * - - COUNT ( * ) * + + 99 + 74 col2
----
-7945

query I rowsort
SELECT DISTINCT 92 * - ( + 39 ) * - 75 * - 17 + - 25 AS col0
----
-4574725

query I rowsort
SELECT ALL 40 * + 91 AS col1
----
3640

query III rowsort
SELECT 65, 44 * 12 * + 22 col1, + 87 AS col1
----
65
11616
87

query I rowsort
SELECT ALL 52 + + 44
----
96

query I rowsort
SELECT DISTINCT 10 + + 95
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3017
SELECT - SUM( - - 31 ), COALESCE ( MAX( DISTINCT + - 33 ), + - COUNT( * ) + - 70 - - MIN( ALL + CAST( 11 AS SIGNED ) ) * - 73 * - 48, - CASE 2 WHEN - + 40 + + - 88 * + 22 THEN - COUNT( DISTINCT - 8 ) * + 62 WHEN - NULLIF ( 35, + 93 / - 89 + - MIN( 50 ) ) + + 23 THEN NULL ELSE COUNT( * ) END + 74 * - 43, 20 ) * NULLIF ( COALESCE ( 16, 62 ) + 92, + 78 / 10 ) AS col2
----
-31
-3564

skipif mysql # not compatible
query II rowsort label-3017
SELECT - SUM ( - - 31 ), COALESCE ( MAX ( DISTINCT + - 33 ), + - COUNT ( * ) + - 70 - - MIN ( ALL + CAST ( 11 AS INTEGER ) ) * - 73 * - 48, - CASE 2 WHEN - + 40 + + - 88 * + 22 THEN - COUNT ( DISTINCT - 8 ) * + 62 WHEN - NULLIF ( 35, + 93 / - 89 + - MIN ( 50 ) ) + + 23 THEN NULL ELSE COUNT ( * ) END + 74 * - 43, 20 ) * NULLIF ( COALESCE ( 16, 62 ) + 92, + 78 / 10 ) AS col2
----
-31
-3564

onlyif mysql # DIV for integer division: 
query II rowsort label-3018
SELECT + COALESCE ( + 18, + + 5 + - + 0 * + 24 DIV - 49 ) + + 77 col1, + 50
----
95
50

skipif mysql # not compatible
query II rowsort label-3018
SELECT + COALESCE ( + 18, + + 5 + - + 0 * + 24 / - 49 ) + + 77 col1, + 50
----
95
50

query I rowsort
SELECT ALL 4 * - 34
----
-136

query I rowsort
SELECT + 27 + + 52
----
79

query I rowsort
SELECT ALL 98 + - - 8 * 85 col0
----
778

query I rowsort
SELECT - 9 - - + 37 AS col0
----
28

query I rowsort
SELECT + 80 + + 57 AS col0
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-3024
SELECT ALL 91 DIV NULLIF ( + 53, 27 )
----
1

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL 91 / NULLIF ( + 53, 27 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3025
SELECT - CASE - 91 WHEN - 94 THEN - + 50 * - + COUNT( * ) + + - NULLIF ( 69, COUNT( * ) * ( - 78 ) + + + 89 ) - + SUM( + CAST( + 46 AS SIGNED ) ) + + - 85 * - + ( + NULLIF ( - ( - 1 ), + 56 * 15 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3025
SELECT - CASE - 91 WHEN - 94 THEN - + 50 * - + COUNT ( * ) + + - NULLIF ( 69, COUNT ( * ) * ( - 78 ) + + + 89 ) - + SUM ( + CAST ( + 46 AS INTEGER ) ) + + - 85 * - + ( + NULLIF ( - ( - 1 ), + 56 * 15 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3026
SELECT 89, COUNT( * ) col1
----
89
1

skipif mysql # not compatible
query II rowsort label-3026
SELECT 89, COUNT ( * ) col1
----
89
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3027
SELECT DISTINCT COUNT( ALL + 5 ) - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT COUNT ( ALL + 5 ) - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 37 * 57
----
2109

query I rowsort
SELECT - 26 + + 16 AS col1
----
-10

query I rowsort
SELECT + 38 * - 17 * - 93 AS col2
----
60078

query I rowsort
SELECT - 2 + - 68
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-3032
SELECT 81 AS col1, + MAX( DISTINCT + - NULLIF ( - - 38, - + 91 ) ) AS col0
----
81
-38

skipif mysql # not compatible
query II rowsort label-3032
SELECT 81 AS col1, + MAX ( DISTINCT + - NULLIF ( - - 38, - + 91 ) ) AS col0
----
81
-38

query II rowsort
SELECT ( + 8 ) AS col1, 95
----
8
95

query I rowsort
SELECT ALL - 49 * 94
----
-4606

query II rowsort
SELECT 69, 59 * 98 AS col2
----
69
5782

query I rowsort
SELECT - - 38 * ( 89 ) col2
----
3382

query I rowsort
SELECT + NULLIF ( 96, ( + - 64 ) ) + + 52 AS col0
----
148

query I rowsort
SELECT + - NULLIF ( + 84, + + 95 ) AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3039
SELECT DISTINCT - COALESCE ( - 29, - CASE + 43 WHEN + + 34 THEN NULL WHEN + 44 * + 1 - + 41 THEN - - CAST( NULL AS SIGNED ) ELSE NULL END * 99, 40 ) * - 96 - + 86 AS col2
----
-2870

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT - COALESCE ( - 29, - CASE + 43 WHEN + + 34 THEN NULL WHEN + 44 * + 1 - + 41 THEN - - CAST ( NULL AS INTEGER ) ELSE NULL END * 99, 40 ) * - 96 - + 86 AS col2
----
-2870

query I rowsort
SELECT ALL + - CASE + - 15 WHEN + - 67 + AVG ( - + 95 ) / - 65 * - 83 + 5 * + - 20 * - AVG ( + - 82 ) THEN - 19 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3041
SELECT + + 16 DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-3041
SELECT + + 16 / 33
----
0

query I rowsort
SELECT - + 11 + + ( + 50 ) + - 20
----
19

query II rowsort
SELECT + + 22 AS col0, 74 * - 67
----
22
-4958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT + COALESCE ( + CAST( - - ( 96 ) AS SIGNED ), - CAST( 19 AS SIGNED ) ) col2
----
96

skipif mysql # not compatible
query I rowsort label-3044
SELECT + COALESCE ( + CAST ( - - ( 96 ) AS INTEGER ), - CAST ( 19 AS INTEGER ) ) col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ALL - - COUNT( * ) * - + COUNT( + 89 ) + + 31 * - 42 * - ( - 2 )
----
-2605

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL - - COUNT ( * ) * - + COUNT ( + 89 ) + + 31 * - 42 * - ( - 2 )
----
-2605

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

skipif mysql # not compatible
query I rowsort label-3046
SELECT - + 67 - - + COUNT ( * ) AS col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-3047
SELECT - 37 DIV - 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3047
SELECT - 37 / - 53 AS col1
----
0

query I rowsort
SELECT ALL + + ( + - 59 ) * 52
----
-3068

query I rowsort
SELECT - 50 * + - 62
----
3100

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT ALL - NULLIF ( - 38, 15 ) * + 70 * - COALESCE ( + + ( + 75 ), + COUNT( * ) * + 9, - - 94 + + 4, + 80 * - + 94 ) - + COUNT( * ) * + 64 + 54 AS col0
----
-199510

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL - NULLIF ( - 38, 15 ) * + 70 * - COALESCE ( + + ( + 75 ), + COUNT ( * ) * + 9, - - 94 + + 4, + 80 * - + 94 ) - + COUNT ( * ) * + 64 + 54 AS col0
----
-199510

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT - COUNT( ALL + 94 ) * - + 4 * - 74
----
-296

skipif mysql # not compatible
query I rowsort label-3051
SELECT - COUNT ( ALL + 94 ) * - + 4 * - 74
----
-296

query I rowsort
SELECT - 40 * 70 * 4 AS col1
----
-11200

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

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

query I rowsort
SELECT - COALESCE ( - 76, - 45 ) AS col1
----
76

query I rowsort
SELECT DISTINCT 54 * 66 + - ( + + 95 ) * + 79
----
-3941

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3057
SELECT + 9 * - CAST( NULL AS SIGNED ), 31 * - - 25 + + + ( - 56 ) col1
----
NULL
719

skipif mysql # not compatible
query II rowsort label-3057
SELECT + 9 * - CAST ( NULL AS INTEGER ), 31 * - - 25 + + + ( - 56 ) col1
----
NULL
719

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT - COUNT( ALL - 89 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3058
SELECT - COUNT ( ALL - 89 ) col0
----
-1

query I rowsort
SELECT + 79 * - NULLIF ( - 58, + + 54 )
----
4582

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3060
SELECT + 90 + + - 94 - - + MIN( CAST( NULL AS DECIMAL ) ) / - 98 * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3060
SELECT + 90 + + - 94 - - + MIN ( CAST ( NULL AS REAL ) ) / - 98 * - 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3061
SELECT DISTINCT + 50 * + 73, 24 * COUNT( * ) * + 87 + + - 4 AS col2
----
3650
2084

skipif mysql # not compatible
query II rowsort label-3061
SELECT DISTINCT + 50 * + 73, 24 * COUNT ( * ) * + 87 + + - 4 AS col2
----
3650
2084

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

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

query I rowsort
SELECT + 9 + - 60 col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3064
SELECT + 18 DIV 5 - 22 + - 65 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-3064
SELECT + 18 / 5 - 22 + - 65 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT DISTINCT + 95 * + + COUNT( * ) - + 86 * + 47 * + - 65 AS col1
----
262825

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT + 95 * + + COUNT ( * ) - + 86 * + 47 * + - 65 AS col1
----
262825

onlyif mysql # DIV for integer division: 
query I rowsort label-3066
SELECT DISTINCT + 84 DIV + + 55 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT + 84 / + + 55 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3067
SELECT ALL + NULLIF ( CAST( + - 57 AS SIGNED ), - 12 + 14 + + SUM( - 21 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL + NULLIF ( CAST ( + - 57 AS INTEGER ), - 12 + 14 + + SUM ( - 21 ) )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT - NULLIF ( - + 12, - COUNT( * ) ) * + + 0 + - 70 + + + ( - 78 ) * - 52 AS col2
----
3986

skipif mysql # not compatible
query I rowsort label-3068
SELECT - NULLIF ( - + 12, - COUNT ( * ) ) * + + 0 + - 70 + + + ( - 78 ) * - 52 AS col2
----
3986

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3069
SELECT + - 57 - + SUM( DISTINCT + 81 ) + - - 2 DIV - 92
----
-138

skipif mysql # not compatible
query I rowsort label-3069
SELECT + - 57 - + SUM ( DISTINCT + 81 ) + - - 2 / - 92
----
-138

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3071
SELECT - 26 DIV + - 74 + + 70 + + + 60 * + 77 * + + 29 + + + 57 AS col0, 29 DIV - - 11
----
134107
2

skipif mysql # not compatible
query II rowsort label-3071
SELECT - 26 / + - 74 + + 70 + + + 60 * + 77 * + + 29 + + + 57 AS col0, 29 / - - 11
----
134107
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3072
SELECT DISTINCT CAST( 98 AS SIGNED ) + + + 41 + + 57
----
196

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT CAST ( 98 AS INTEGER ) + + + 41 + + 57
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3073
SELECT ALL + - 9 + - + CAST( - + COUNT( * ) AS SIGNED ) + 67 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + - 9 + - + CAST ( - + COUNT ( * ) AS INTEGER ) + 67 AS col1
----
59

query I rowsort
SELECT 93 * + - 31
----
-2883

onlyif mysql # DIV for integer division: 
query II rowsort label-3075
SELECT + 71 DIV - 86, + 65 AS col0
----
0
65

skipif mysql # not compatible
query II rowsort label-3075
SELECT + 71 / - 86, + 65 AS col0
----
0
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3076
SELECT DISTINCT - COUNT( * ) AS col2, 14 + - 25
----
-1
-11

skipif mysql # not compatible
query II rowsort label-3076
SELECT DISTINCT - COUNT ( * ) AS col2, 14 + - 25
----
-1
-11

query I rowsort
SELECT ( - - 10 ) * 44 * 58 col0
----
25520

query I rowsort
SELECT 67 + 64 AS col2
----
131

query I rowsort
SELECT ALL + 9 * - 32
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT 86 + + + 3 * + + NULLIF ( COUNT( * ), 82 ) + - - 67 + 55
----
211

skipif mysql # not compatible
query I rowsort label-3080
SELECT 86 + + + 3 * + + NULLIF ( COUNT ( * ), 82 ) + - - 67 + 55
----
211

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

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

query I rowsort
SELECT 2 + + - 36 + - 93 * ( + 86 ) AS col1
----
-8032

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ALL - 64 * + SUM( DISTINCT 69 )
----
-4416

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL - 64 * + SUM ( DISTINCT 69 )
----
-4416

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

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

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

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

query I rowsort
SELECT 21 + + ( 59 )
----
80

query I rowsort
SELECT 2 + + 55 * + + 17 AS col2
----
937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3088
SELECT ( CAST( NULL AS SIGNED ) ) + + 47 / 5 * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT ( CAST ( NULL AS INTEGER ) ) + + 47 / 5 * + 80
----
NULL

query II rowsort
SELECT ALL 98 AS col1, 13
----
98
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3090
SELECT - 51, COUNT( * ) + - 44 AS col0
----
-51
-43

skipif mysql # not compatible
query II rowsort label-3090
SELECT - 51, COUNT ( * ) + - 44 AS col0
----
-51
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT ALL - 66 + + 67 DIV - - 20
----
-63

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL - 66 + + 67 / - - 20
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-3092
SELECT 67 + - - ( - 38 ) AS col2, ( + 32 ) + + + 44 DIV - 40 + - + ( 60 )
----
29
-29

skipif mysql # not compatible
query II rowsort label-3092
SELECT 67 + - - ( - 38 ) AS col2, ( + 32 ) + + + 44 / - 40 + - + ( 60 )
----
29
-29

query II rowsort
SELECT - 57 col2, 93
----
-57
93

query II rowsort
SELECT - 91, - 85 AS col2
----
-91
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3095
SELECT 15 DIV - 31 * + 36 * - + 10 - + 77 col1
----
-77

skipif mysql # not compatible
query I rowsort label-3095
SELECT 15 / - 31 * + 36 * - + 10 - + 77 col1
----
-77

query I rowsort
SELECT 59 + - 38 col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3097
SELECT ALL 13 + - + COALESCE ( 88, + - CASE 62 WHEN - 18 THEN - 86 * 80 - - + CAST( NULL AS SIGNED ) - - 60 * 34 * + COALESCE ( + MAX( - ( + 50 ) ), - + ( + 31 ) ) ELSE NULL END ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL 13 + - + COALESCE ( 88, + - CASE 62 WHEN - 18 THEN - 86 * 80 - - + CAST ( NULL AS INTEGER ) - - 60 * 34 * + COALESCE ( + MAX ( - ( + 50 ) ), - + ( + 31 ) ) ELSE NULL END ) col2
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3098
SELECT - 52 col1, - COUNT( * ) - 95 - + 18
----
-52
-114

skipif mysql # not compatible
query II rowsort label-3098
SELECT - 52 col1, - COUNT ( * ) - 95 - + 18
----
-52
-114

query I rowsort
SELECT DISTINCT + 72 + - + 3 - 74
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT + 5 + 79 - 69 + ( MAX( ALL - - 68 ) ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-3100
SELECT + 5 + 79 - 69 + ( MAX ( ALL - - 68 ) ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT DISTINCT - COALESCE ( - 33, 48, - COUNT( * ) * + - COUNT( * ) ) + + + 61
----
94

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT - COALESCE ( - 33, 48, - COUNT ( * ) * + - COUNT ( * ) ) + + + 61
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3102
SELECT + - CASE + 90 WHEN + + 82 THEN NULL WHEN + 24 * - 56 * + + 21 + - COUNT( - 20 ) * + 53 + - - COUNT( * ) THEN - + CAST( - - 2 AS SIGNED ) * + + 61 + + - 17 * + 35 ELSE - ( - 31 ) END col0
----
-31

skipif mysql # not compatible
query I rowsort label-3102
SELECT + - CASE + 90 WHEN + + 82 THEN NULL WHEN + 24 * - 56 * + + 21 + - COUNT ( - 20 ) * + 53 + - - COUNT ( * ) THEN - + CAST ( - - 2 AS INTEGER ) * + + 61 + + - 17 * + 35 ELSE - ( - 31 ) END col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT MAX( ALL + + 52 ) * + NULLIF ( + 64, + - 48 * COUNT( * ) + - 77 ) AS col2
----
3328

skipif mysql # not compatible
query I rowsort label-3103
SELECT MAX ( ALL + + 52 ) * + NULLIF ( + 64, + - 48 * COUNT ( * ) + - 77 ) AS col2
----
3328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3104
SELECT ALL + 90 + - COALESCE ( COUNT( * ), + 79 + - 94 - + 11 DIV - 54 - 85 DIV 60 DIV + 9 * + 20 * - + 54 DIV - COALESCE ( 76, COUNT( * ) * - 11 - 76 ) * + 20 )
----
89

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL + 90 + - COALESCE ( COUNT ( * ), + 79 + - 94 - + 11 / - 54 - 85 / 60 / + 9 * + 20 * - + 54 / - COALESCE ( 76, COUNT ( * ) * - 11 - 76 ) * + 20 )
----
89

query II rowsort
SELECT 3 AS col2, + 94 AS col0
----
3
94

query I rowsort
SELECT - 55 + 69 * - 83
----
-5782

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT 7 * - CASE + - ( - 49 ) WHEN - - 40 - - + NULLIF ( 58, + - 0 + 1 + + COUNT( * ) ) * + 87 THEN - 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT 7 * - CASE + - ( - 49 ) WHEN - - 40 - - + NULLIF ( 58, + - 0 + 1 + + COUNT ( * ) ) * + 87 THEN - 16 END
----
NULL

query II rowsort
SELECT + 48 col2, 81
----
48
81

query I rowsort
SELECT 38 + - ( - + 10 ) * - 83 * 88 AS col1
----
-73002

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT CASE + 5 WHEN + 77 - 3 THEN 34 * + 55 END - 87 * + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT CASE + 5 WHEN + 77 - 3 THEN 34 * + 55 END - 87 * + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 6 * + 52
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL 75 * - COUNT( DISTINCT - 4 ) * + 99 + + - 78
----
-7503

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL 75 * - COUNT ( DISTINCT - 4 ) * + 99 + + - 78
----
-7503

query I rowsort
SELECT ALL 87 * + - 97 AS col0
----
-8439

query I rowsort
SELECT ALL 45 - 92
----
-47

query I rowsort
SELECT 21 * - 2 col0
----
-42

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

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

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

skipif mysql # not compatible
query I rowsort label-3118
SELECT COUNT ( * ) / - - 72 col1
----
0

query II rowsort
SELECT ALL + COALESCE ( + 0, - 13 ) * - 91 col1, + 76 - + 6 * + CASE - 1 WHEN 3 THEN + 34 WHEN + 44 THEN NULL ELSE NULL END + 37
----
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3120
SELECT 30 DIV - 85, - 20 + - + COUNT( * ) AS col1
----
0
-21

skipif mysql # not compatible
query II rowsort label-3120
SELECT 30 / - 85, - 20 + - + COUNT ( * ) AS col1
----
0
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3121
SELECT ALL - - 43 + - - 28 DIV - 48 col1
----
43

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL - - 43 + - - 28 / - 48 col1
----
43

query I rowsort
SELECT ALL + ( + 75 ) * + ( + 49 ) * - 6
----
-22050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3123
SELECT - 44 + - COUNT( * ) + - + CAST( + ( 43 ) AS SIGNED ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3123
SELECT - 44 + - COUNT ( * ) + - + CAST ( + ( 43 ) AS INTEGER ) AS col2
----
-88

query I rowsort
SELECT - CASE - 64 WHEN + 71 THEN NULL ELSE 27 * + - 42 END + - 10
----
1124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3125
SELECT ALL - + COUNT( * ) + + - 31 + 11 / + ( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL - + COUNT ( * ) + + - 31 + 11 / + ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 67 + - 3
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT ALL + NULLIF ( + + 7, - 17 - NULLIF ( - 98, - 28 * COUNT( * ) ) + - 37 )
----
7

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL + NULLIF ( + + 7, - 17 - NULLIF ( - 98, - 28 * COUNT ( * ) ) + - 37 )
----
7

query I rowsort
SELECT DISTINCT + - 13 + + 51
----
38

query I rowsort
SELECT ALL + 94 + + 69
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT DISTINCT + + 88 * - 74 + + COUNT( * )
----
-6511

skipif mysql # not compatible
query I rowsort label-3130
SELECT DISTINCT + + 88 * - 74 + + COUNT ( * )
----
-6511

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3132
SELECT - 83 * + NULLIF ( - 16, AVG ( + 92 ) ) AS col0, COUNT( * )
----
1328
1

skipif mysql # not compatible
query II rowsort label-3132
SELECT - 83 * + NULLIF ( - 16, AVG ( + 92 ) ) AS col0, COUNT ( * )
----
1328
1

query I rowsort
SELECT DISTINCT + 0 * + 80 AS col1
----
0

query I rowsort
SELECT + 81 * + - 57 AS col0
----
-4617

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

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL - 36 * + - CAST ( - - 16 AS INTEGER )
----
576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3136
SELECT ALL SUM( + 76 ) * + + 81 - 4 DIV 88 * + 57 * + 61
----
6156

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL SUM ( + 76 ) * + + 81 - 4 / 88 * + 57 * + 61
----
6156

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ALL - ( + + 93 ) * - COUNT( * ) - - 78
----
171

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL - ( + + 93 ) * - COUNT ( * ) - - 78
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT + 33 DIV 28 * + + 64 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3138
SELECT + 33 / 28 * + + 64 AS col1
----
64

query I rowsort
SELECT + 10 * - - 13
----
130

query I rowsort
SELECT - NULLIF ( - + 80, NULLIF ( 14, 37 ) * - 11 + + - ( 17 ) ) + - 92 + - 90 AS col2
----
-102

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3142
SELECT - MAX( DISTINCT - + 90 ) - - - SUM( + 81 ) + - - 37 + CASE COUNT( DISTINCT - CAST( + 45 AS SIGNED ) ) WHEN + COUNT( * ) THEN + 39 END + + - COUNT( * ) + 25 * + - CAST( - - 43 AS SIGNED ) + - 77 - CAST( NULL AS SIGNED ) * + 90 * - 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3142
SELECT - MAX ( DISTINCT - + 90 ) - - - SUM ( + 81 ) + - - 37 + CASE COUNT ( DISTINCT - CAST ( + 45 AS INTEGER ) ) WHEN + COUNT ( * ) THEN + 39 END + + - COUNT ( * ) + 25 * + - CAST ( - - 43 AS INTEGER ) + - 77 - CAST ( NULL AS INTEGER ) * + 90 * - 67 AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( 64, + 80 * - 8 + - + 85 ) * 6 col0
----
384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3144
SELECT + 44 + - 0 * ( + ( - 33 ) ) DIV - - 32 * - + NULLIF ( + + 51, + CAST( NULL AS SIGNED ) + 69 - - + 47 * 16 - - 96 * SUM( CAST( - 45 AS SIGNED ) ) ) * - 13 + + 4 - + 24 + - 30 * + 4 col1
----
-96

skipif mysql # not compatible
query I rowsort label-3144
SELECT + 44 + - 0 * ( + ( - 33 ) ) / - - 32 * - + NULLIF ( + + 51, + CAST ( NULL AS INTEGER ) + 69 - - + 47 * 16 - - 96 * SUM ( CAST ( - 45 AS INTEGER ) ) ) * - 13 + + 4 - + 24 + - 30 * + 4 col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT + 61 + + - 55 - - 29 + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-3145
SELECT + 61 + + - 55 - - 29 + COUNT ( * )
----
36

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

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

query I rowsort
SELECT + 29 * 68
----
1972

query I rowsort
SELECT ALL + ( - - NULLIF ( - 83, + 4 ) ) + - + 79 AS col1
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT - COUNT( * ) + 21 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-3149
SELECT - COUNT ( * ) + 21 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT - + 94 + - - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-3150
SELECT - + 94 + - - COUNT ( * )
----
-93

query I rowsort
SELECT - - 78 + - 34 col1
----
44

query I rowsort
SELECT - - CASE 70 WHEN - AVG ( 42 ) THEN 37 END
----
NULL

query I rowsort
SELECT ALL + 3 + 89
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3154
SELECT DISTINCT - MIN( DISTINCT - - ( CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT - MIN ( DISTINCT - - ( CAST ( NULL AS REAL ) ) )
----
NULL

query I rowsort
SELECT ALL - 23 - 56
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT DISTINCT NULLIF ( - + COUNT( * ), 4 / + + 89 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT NULLIF ( - + COUNT ( * ), 4 / + + 89 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3157
SELECT DISTINCT - - CAST( + NULLIF ( + + 37, + 42 ) AS SIGNED ) - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT - - CAST ( + NULLIF ( + + 37, + 42 ) AS INTEGER ) - COUNT ( * ) AS col2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3158
SELECT + + 57 * 77 DIV - - COUNT( * ) AS col2
----
4389

skipif mysql # not compatible
query I rowsort label-3158
SELECT + + 57 * 77 / - - COUNT ( * ) AS col2
----
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT - + MIN( ALL - 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3159
SELECT - + MIN ( ALL - 10 ) AS col0
----
10

query I rowsort
SELECT - - ( - + 13 ) * + ( + 70 )
----
-910

query I rowsort
SELECT - - 76 * 44
----
3344

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

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL - MAX ( ALL 38 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3163
SELECT + - COALESCE ( + 47, 46 + - 56 - CASE + CAST( NULL AS SIGNED ) WHEN + 34 * CAST( NULL AS SIGNED ) + + ( - - SUM( ALL + CAST( - CAST( + ( 53 ) AS SIGNED ) AS SIGNED ) ) ) + - 78 THEN MIN( ALL + + 82 ) * - + 90 DIV + 42 * + 26 END, 37 * SUM( + 25 ) ) col0
----
-47

skipif mysql # not compatible
query I rowsort label-3163
SELECT + - COALESCE ( + 47, 46 + - 56 - CASE + CAST ( NULL AS INTEGER ) WHEN + 34 * CAST ( NULL AS INTEGER ) + + ( - - SUM ( ALL + CAST ( - CAST ( + ( 53 ) AS INTEGER ) AS INTEGER ) ) ) + - 78 THEN MIN ( ALL + + 82 ) * - + 90 / + 42 * + 26 END, 37 * SUM ( + 25 ) ) col0
----
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-3164
SELECT + 94 AS col0, 61 DIV - 48 + - 39 * - + 79 AS col0
----
94
3080

skipif mysql # not compatible
query II rowsort label-3164
SELECT + 94 AS col0, 61 / - 48 + - 39 * - + 79 AS col0
----
94
3080

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT 87 * + COUNT( * ) * + 97
----
8439

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT 87 * + COUNT ( * ) * + 97
----
8439

query I rowsort
SELECT - 22 * + + 15 * 98 col2
----
-32340

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3170
SELECT ALL + CAST( CASE + ( COUNT( DISTINCT 29 ) ) WHEN 98 THEN NULL WHEN - 95 THEN COALESCE ( 19, 18 ) * 61 ELSE NULL END AS SIGNED ) / - - 30 + 72 / - - SUM( ALL - 33 ) + - + 7, + 5 AS col2
----
NULL
5

skipif mysql # not compatible
query II rowsort label-3170
SELECT ALL + CAST ( CASE + ( COUNT ( DISTINCT 29 ) ) WHEN 98 THEN NULL WHEN - 95 THEN COALESCE ( 19, 18 ) * 61 ELSE NULL END AS INTEGER ) / - - 30 + 72 / - - SUM ( ALL - 33 ) + - + 7, + 5 AS col2
----
NULL
5

query I rowsort
SELECT - 91 * - 60
----
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT - CASE - 70 WHEN - 51 THEN 30 END * + 51 - 60 - COUNT( - 53 ) + - 16 + + 93 * 78 * - NULLIF ( + 26, 7 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3172
SELECT - CASE - 70 WHEN - 51 THEN 30 END * + 51 - 60 - COUNT ( - 53 ) + - 16 + + 93 * 78 * - NULLIF ( + 26, 7 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3174
SELECT ALL + 13 * 82 * - - 81 + + - 94 - + 9 * + COUNT( * ) DIV + + 45 * 32 * + ( + 52 ) AS col2
----
86252

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL + 13 * 82 * - - 81 + + - 94 - + 9 * + COUNT ( * ) / + + 45 * 32 * + ( + 52 ) AS col2
----
86252

query I rowsort
SELECT + 61 * 96 AS col2
----
5856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3176
SELECT + ( - ( - COALESCE ( 14, - + CAST( 67 AS SIGNED ), - + 61 ) ) )
----
14

skipif mysql # not compatible
query I rowsort label-3176
SELECT + ( - ( - COALESCE ( 14, - + CAST ( 67 AS INTEGER ), - + 61 ) ) )
----
14

query I rowsort
SELECT DISTINCT + 80 * - 23 + + 51 AS col1
----
-1789

query I rowsort
SELECT ALL - 97 * - 14 + - - 39 AS col2
----
1397

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3180
SELECT ALL COUNT( * ) + + - ( 80 ) * 18 DIV - 75
----
20

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL COUNT ( * ) + + - ( 80 ) * 18 / - 75
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3181
SELECT 17 - + + 49, 59 - - CAST( NULL AS SIGNED ) * 79 AS col2
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-3181
SELECT 17 - + + 49, 59 - - CAST ( NULL AS INTEGER ) * 79 AS col2
----
-32
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3182
SELECT - 20 AS col1, + 80 DIV 14 * + + 0 * COUNT( * )
----
-20
0

skipif mysql # not compatible
query II rowsort label-3182
SELECT - 20 AS col1, + 80 / 14 * + + 0 * COUNT ( * )
----
-20
0

query I rowsort
SELECT DISTINCT 75 * - 7
----
-525

query I rowsort
SELECT ALL - CASE - + 88 WHEN - + 90 * - 56 THEN 22 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 2 - + 74 + - 0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3186
SELECT + 43 AS col1, + MAX( 71 ) * - CAST( + COUNT( * ) AS SIGNED ) * - SUM( DISTINCT - 85 ) AS col2
----
43
-6035

skipif mysql # not compatible
query II rowsort label-3186
SELECT + 43 AS col1, + MAX ( 71 ) * - CAST ( + COUNT ( * ) AS INTEGER ) * - SUM ( DISTINCT - 85 ) AS col2
----
43
-6035

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3188
SELECT ALL 59 * + 89 + - - CAST( NULL AS SIGNED ) - - - ( + 27 ) / + + 52 * - 27 + - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL 59 * + 89 + - - CAST ( NULL AS INTEGER ) - - - ( + 27 ) / + + 52 * - 27 + - 53 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT CASE 92 WHEN - CASE - + 24 WHEN + 57 / + - 43 * + COUNT( * ) - + 58 + - 39 - + 32 / NULLIF ( ( + + 24 ), + 48 * + NULLIF ( - AVG ( 86 ), - 64 ) + - - 94 ) * + MAX( DISTINCT - 46 ) * + 64 THEN CASE + 38 WHEN - 33 THEN - 20 ELSE NULL END END * 39 THEN - CASE 98 WHEN 7 THEN + 71 * + 28 WHEN + 40 THEN 42 / CASE WHEN NOT ( ( COUNT( * ) ) / + ( 29 ) ) IS NULL THEN 8 END WHEN - 30 THEN NULL ELSE NULL END WHEN + COUNT( * ) + - 52 THEN NULL END * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT CASE 92 WHEN - CASE - + 24 WHEN + 57 / + - 43 * + COUNT ( * ) - + 58 + - 39 - + 32 / NULLIF ( ( + + 24 ), + 48 * + NULLIF ( - AVG ( 86 ), - 64 ) + - - 94 ) * + MAX ( DISTINCT - 46 ) * + 64 THEN CASE + 38 WHEN - 33 THEN - 20 ELSE NULL END END * 39 THEN - CASE 98 WHEN 7 THEN + 71 * + 28 WHEN + 40 THEN 42 / CASE WHEN NOT ( ( COUNT ( * ) ) / + ( 29 ) ) IS NULL THEN 8 END WHEN - 30 THEN NULL ELSE NULL END WHEN + COUNT ( * ) + - 52 THEN NULL END * + 38
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3190
SELECT - COUNT( * ), - 60 * - - 70 * - 29 * - ( - - 73 ) AS col0
----
-1
-8891400

skipif mysql # not compatible
query II rowsort label-3190
SELECT - COUNT ( * ), - 60 * - - 70 * - 29 * - ( - - 73 ) AS col0
----
-1
-8891400

query I rowsort
SELECT + 56 + + 22 + - 22 AS col1
----
56

query I rowsort
SELECT 93 + + 79 AS col2
----
172

query I rowsort
SELECT ALL 48 - 8 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT - 92 + - - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-3194
SELECT - 92 + - - COUNT ( * )
----
-91

query I rowsort
SELECT ALL - - 96 * - 30 AS col1
----
-2880

onlyif mysql # DIV for integer division: 
query II rowsort label-3196
SELECT ALL 28, 4 * - 79 DIV - 66 AS col2
----
28
4

skipif mysql # not compatible
query II rowsort label-3196
SELECT ALL 28, 4 * - 79 / - 66 AS col2
----
28
4

query I rowsort
SELECT ALL 99 * - 58
----
-5742

onlyif mysql # DIV for integer division: 
query I rowsort label-3198
SELECT - 59 DIV 94 + - + 72
----
-72

skipif mysql # not compatible
query I rowsort label-3198
SELECT - 59 / 94 + - + 72
----
-72

query I rowsort
SELECT 12 * ( - 72 ) AS col1
----
-864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3200
SELECT 15 + CAST( 15 AS SIGNED ) * - + 45
----
-660

skipif mysql # not compatible
query I rowsort label-3200
SELECT 15 + CAST ( 15 AS INTEGER ) * - + 45
----
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT DISTINCT - COUNT( ALL + - 33 ) + + 57
----
56

skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT - COUNT ( ALL + - 33 ) + + 57
----
56

query I rowsort
SELECT 5 + - 2 + 52 + - - 53
----
108

query II rowsort
SELECT ALL 56 * - 7, 40 AS col1
----
-392
40

query I rowsort
SELECT DISTINCT - ( + 16 ) + - 35 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL + COUNT( * ) + - 81 * - NULLIF ( 91, - + 52 )
----
7372

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL + COUNT ( * ) + - 81 * - NULLIF ( 91, - + 52 )
----
7372

query I rowsort
SELECT DISTINCT - 92 + - 12
----
-104

query II rowsort
SELECT 37 - - 61 AS col0, + 41 col2
----
98
41

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3209
SELECT ALL - ( - 28 ) * 25 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL - ( - 28 ) * 25 * + CAST ( NULL AS REAL ) AS col1
----
NULL

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

query I rowsort
SELECT ALL - 36 - + NULLIF ( - - 27, + 9 ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT DISTINCT - NULLIF ( + 46, - COUNT( * ) - - + 6 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT - NULLIF ( + 46, - COUNT ( * ) - - + 6 ) AS col1
----
-46

query I rowsort
SELECT DISTINCT + 45 * 14 * - - ( - 19 )
----
-11970

query I rowsort
SELECT ALL NULLIF ( + 79, 11 + + 96 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT DISTINCT + 28 - - + MAX( ALL + + 39 ) * + - 86
----
-3326

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT + 28 - - + MAX ( ALL + + 39 ) * + - 86
----
-3326

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT + 74 * + 39 + - 15 * + COUNT( * ) * + 58
----
2016

skipif mysql # not compatible
query I rowsort label-3216
SELECT + 74 * + 39 + - 15 * + COUNT ( * ) * + 58
----
2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3217
SELECT ALL + 6 DIV 9 + + + COUNT( * ) * 86
----
86

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL + 6 / 9 + + + COUNT ( * ) * 86
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3218
SELECT ALL + MAX( - 54 ) - + ( - + MAX( - CAST( - 54 AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL + MAX ( - 54 ) - + ( - + MAX ( - CAST ( - 54 AS INTEGER ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT + MAX( DISTINCT + 52 ) + 83 * + + 78 AS col2
----
6526

skipif mysql # not compatible
query I rowsort label-3219
SELECT + MAX ( DISTINCT + 52 ) + 83 * + + 78 AS col2
----
6526

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3220
SELECT + CAST( NULL AS SIGNED ) * 92 + - COALESCE ( + + 73, 5 ) + 27 * - 31 + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT + CAST ( NULL AS INTEGER ) * 92 + - COALESCE ( + + 73, 5 ) + 27 * - 31 + - 42
----
NULL

query II rowsort
SELECT 28 + + 31 AS col2, 16 AS col1
----
59
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT ALL 80 * + COUNT( * ) * - 16 * 7
----
-8960

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL 80 * + COUNT ( * ) * - 16 * 7
----
-8960

query I rowsort
SELECT ALL 93 * + + 41
----
3813

query I rowsort
SELECT ALL + ( + 39 ) * + + 80 * 43 AS col0
----
134160

onlyif mysql # aggregate syntax: 
query II rowsort label-3225
SELECT ALL - COUNT( * ) + + 2, 23 AS col0
----
1
23

skipif mysql # not compatible
query II rowsort label-3225
SELECT ALL - COUNT ( * ) + + 2, 23 AS col0
----
1
23

query II rowsort
SELECT DISTINCT 53, 73 - - 33 col1
----
53
106

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT COUNT( DISTINCT 50 ) * - 69 * 9
----
-621

skipif mysql # not compatible
query I rowsort label-3227
SELECT COUNT ( DISTINCT 50 ) * - 69 * 9
----
-621

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT ALL 69 + + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL 69 + + COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT 96 - SUM( 96 ) + + + 88 * + 95
----
8360

skipif mysql # not compatible
query I rowsort label-3230
SELECT 96 - SUM ( 96 ) + + + 88 * + 95
----
8360

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT + NULLIF ( COUNT( * ), + COALESCE ( COUNT( * ), COUNT( * ) * + - 97, + 16 ) + - - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3231
SELECT + NULLIF ( COUNT ( * ), + COALESCE ( COUNT ( * ), COUNT ( * ) * + - 97, + 16 ) + - - COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3232
SELECT ALL - COUNT( * ) * + + COUNT( ALL + 54 ) * 85 / 58 / + 35 / 13 + - CAST( NULL AS SIGNED ) AS col0, COALESCE ( - + 38, 79, - - 30 )
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-3232
SELECT ALL - COUNT ( * ) * + + COUNT ( ALL + 54 ) * 85 / 58 / + 35 / 13 + - CAST ( NULL AS INTEGER ) AS col0, COALESCE ( - + 38, 79, - - 30 )
----
NULL
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3233
SELECT ALL - NULLIF ( 82, - AVG ( - 24 ) * - + CAST( + 4 AS SIGNED ) * - 79 * - + 74 * - CASE + COUNT( * ) WHEN 58 THEN NULL WHEN + COALESCE ( - SUM( DISTINCT CAST( NULL AS SIGNED ) ), 45 ) + 67 THEN + - 26 * - 0 - + - CAST( 97 AS SIGNED ) ELSE ( + COUNT( * ) ) + - + 85 + + ( CAST( NULL AS SIGNED ) ) END )
----
-82

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL - NULLIF ( 82, - AVG ( - 24 ) * - + CAST ( + 4 AS INTEGER ) * - 79 * - + 74 * - CASE + COUNT ( * ) WHEN 58 THEN NULL WHEN + COALESCE ( - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ), 45 ) + 67 THEN + - 26 * - 0 - + - CAST ( 97 AS INTEGER ) ELSE ( + COUNT ( * ) ) + - + 85 + + ( CAST ( NULL AS INTEGER ) ) END )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-3234
SELECT DISTINCT - 9 * - + 31 + - 72, - COUNT( * ) * 91 AS col0
----
207
-91

skipif mysql # not compatible
query II rowsort label-3234
SELECT DISTINCT - 9 * - + 31 + - 72, - COUNT ( * ) * 91 AS col0
----
207
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3235
SELECT DISTINCT ( 25 ) * + ( - COUNT( * ) ) * - 11 * + + NULLIF ( 86, COUNT( * ) ) AS col0, 81 AS col2
----
23650
81

skipif mysql # not compatible
query II rowsort label-3235
SELECT DISTINCT ( 25 ) * + ( - COUNT ( * ) ) * - 11 * + + NULLIF ( 86, COUNT ( * ) ) AS col0, 81 AS col2
----
23650
81

query I rowsort
SELECT + 85 * - + 68 * 28 AS col2
----
-161840

query I rowsort
SELECT ALL + CASE + + 59 WHEN 51 + + 11 THEN 27 + 89 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3238
SELECT + 2 DIV + - 82
----
0

skipif mysql # not compatible
query I rowsort label-3238
SELECT + 2 / + - 82
----
0

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

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

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

query II rowsort
SELECT DISTINCT + + 19 AS col1, + 14
----
19
14

query I rowsort
SELECT ALL - - 92 - 73 * - 95 AS col2
----
7027

query I rowsort
SELECT - 11 * - - 13
----
-143

query I rowsort
SELECT - 20 - + 13 + + 67 * 4 * + + 79 AS col2
----
21139

query II rowsort
SELECT ALL + 40 AS col1, - 57 AS col2
----
40
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3246
SELECT + 8 * 81 - + 23 * - 96 + 45 + COUNT( * ) - + 67 DIV 1 + - 80 * + - 67 AS col2
----
8195

skipif mysql # not compatible
query I rowsort label-3246
SELECT + 8 * 81 - + 23 * - 96 + 45 + COUNT ( * ) - + 67 / 1 + - 80 * + - 67 AS col2
----
8195

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3249
SELECT DISTINCT COUNT( * ) AS col1, + 94 + COUNT( + + 2 )
----
1
95

skipif mysql # not compatible
query II rowsort label-3249
SELECT DISTINCT COUNT ( * ) AS col1, + 94 + COUNT ( + + 2 )
----
1
95

onlyif mysql # aggregate syntax: 
query III rowsort label-3250
SELECT - - 45 * 13 + - 97 + 8 AS col2, COUNT( DISTINCT 70 ) AS col2, + 60 AS col0
----
496
1
60

skipif mysql # not compatible
query III rowsort label-3250
SELECT - - 45 * 13 + - 97 + 8 AS col2, COUNT ( DISTINCT 70 ) AS col2, + 60 AS col0
----
496
1
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3251
SELECT ALL + COUNT( * ) + - + CAST( 5 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL + COUNT ( * ) + - + CAST ( 5 AS INTEGER )
----
-4

query I rowsort
SELECT - 27 + + + 30 + 13 AS col1
----
16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT + COUNT( * ) * - - 86 * + 45 + + MAX( 24 ) AS col2
----
3894

skipif mysql # not compatible
query I rowsort label-3254
SELECT + COUNT ( * ) * - - 86 * + 45 + + MAX ( 24 ) AS col2
----
3894

query I rowsort
SELECT DISTINCT 10 + - 92
----
-82

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3257
SELECT DISTINCT - COUNT( * ) + + - CAST( + + SUM( DISTINCT CASE - 42 WHEN - - 44 THEN - + 56 END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT - COUNT ( * ) + + - CAST ( + + SUM ( DISTINCT CASE - 42 WHEN - - 44 THEN - + 56 END ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL + 92 + COUNT( ALL - 35 ) * + + 60 AS col1
----
152

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL + 92 + COUNT ( ALL - 35 ) * + + 60 AS col1
----
152

query I rowsort
SELECT DISTINCT ( 9 ) + + 96 * + 82 + 30 AS col0
----
7911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3260
SELECT DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN - 82 THEN + 95 * + + 37 ELSE - 55 END + - + 79 AS col2, - 6 * - - COUNT( * ) * ( 52 ) + + 73
----
-134
-239

skipif mysql # not compatible
query II rowsort label-3260
SELECT DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN - 82 THEN + 95 * + + 37 ELSE - 55 END + - + 79 AS col2, - 6 * - - COUNT ( * ) * ( 52 ) + + 73
----
-134
-239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3261
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) * - - 76 * 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) * - - 76 * 69 AS col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3263
SELECT CAST( + - 93 AS SIGNED ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3263
SELECT CAST ( + - 93 AS INTEGER ) AS col1
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3264
SELECT ALL + 82 DIV + 46 - - 46 + - 56 DIV + + COALESCE ( - 59, + COUNT( * ) + - 51, 45 ) + - 89
----
-42

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL + 82 / + 46 - - 46 + - 56 / + + COALESCE ( - 59, + COUNT ( * ) + - 51, 45 ) + - 89
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT + 61 * - - SUM( + 49 ) AS col2
----
2989

skipif mysql # not compatible
query I rowsort label-3265
SELECT + 61 * - - SUM ( + 49 ) AS col2
----
2989

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT + ( - + COUNT( * ) ) * + 55 * - 5 AS col0
----
275

skipif mysql # not compatible
query I rowsort label-3266
SELECT + ( - + COUNT ( * ) ) * + 55 * - 5 AS col0
----
275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3267
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN 13 * - - 80 * + COUNT( DISTINCT + - 47 ) + - - 26 + - 37 * + NULLIF ( 22, 84 ) WHEN + - 91 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3267
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN 13 * - - 80 * + COUNT ( DISTINCT + - 47 ) + - - 26 + - 37 * + NULLIF ( 22, 84 ) WHEN + - 91 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3268
SELECT ( - CASE 21 WHEN - 52 + 54 THEN NULL WHEN + ( + + 24 ) + + 94 * 8 * + ( - - 94 ) + + 80 THEN NULL WHEN - 5 THEN NULL WHEN COALESCE ( 82, + 22 * + 10 + COUNT( * ) ) - + - 76 * - CASE ( COUNT( * ) ) WHEN + + CAST( 75 AS SIGNED ) THEN NULL ELSE CAST( + 71 AS SIGNED ) END THEN + 64 * CAST( NULL AS DECIMAL ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT ( - CASE 21 WHEN - 52 + 54 THEN NULL WHEN + ( + + 24 ) + + 94 * 8 * + ( - - 94 ) + + 80 THEN NULL WHEN - 5 THEN NULL WHEN COALESCE ( 82, + 22 * + 10 + COUNT ( * ) ) - + - 76 * - CASE ( COUNT ( * ) ) WHEN + + CAST ( 75 AS INTEGER ) THEN NULL ELSE CAST ( + 71 AS INTEGER ) END THEN + 64 * CAST ( NULL AS REAL ) END )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL - 5 * + 73 * - 0 - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL - 5 * + 73 * - 0 - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3271
SELECT + COALESCE ( + 85, + + 82 DIV + - COUNT( * ) * COALESCE ( + ( + 46 ), + - 39, + 29 ) ) * - 82 AS col2, - 20 * + 85 * 49 * + 77 * + ( + 18 ) AS col0
----
-6970
-115453800

skipif mysql # not compatible
query II rowsort label-3271
SELECT + COALESCE ( + 85, + + 82 / + - COUNT ( * ) * COALESCE ( + ( + 46 ), + - 39, + 29 ) ) * - 82 AS col2, - 20 * + 85 * 49 * + 77 * + ( + 18 ) AS col0
----
-6970
-115453800

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT ALL - + 56 * COUNT( * ) * - 44 * + 18 * + + COUNT( * )
----
44352

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL - + 56 * COUNT ( * ) * - 44 * + 18 * + + COUNT ( * )
----
44352

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3273
SELECT DISTINCT NULLIF ( + + COUNT( * ), - - 29 ) DIV - 33 + + - 57 AS col2, - COUNT( * ) AS col2
----
-57
-1

skipif mysql # not compatible
query II rowsort label-3273
SELECT DISTINCT NULLIF ( + + COUNT ( * ), - - 29 ) / - 33 + + - 57 AS col2, - COUNT ( * ) AS col2
----
-57
-1

query I rowsort
SELECT ALL 26 * + + 97 * 91 + - 71 + - 18 * 31 * - + 50
----
257331

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

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

query I rowsort
SELECT ALL + 79 * - 63
----
-4977

query I rowsort
SELECT + 9 * 41 AS col1
----
369

onlyif mysql # DIV for integer division: 
query I rowsort label-3278
SELECT + - 98 + - 28 * - - 0 DIV + + 34 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3278
SELECT + - 98 + - 28 * - - 0 / + + 34 AS col1
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3279
SELECT DISTINCT 96 * - 40 * + + CAST( + COUNT( + 78 ) AS SIGNED ) AS col0
----
-3840

skipif mysql # not compatible
query I rowsort label-3279
SELECT DISTINCT 96 * - 40 * + + CAST ( + COUNT ( + 78 ) AS INTEGER ) AS col0
----
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT + 93 * 33 + COUNT( * ) + - + 17
----
3053

skipif mysql # not compatible
query I rowsort label-3280
SELECT + 93 * 33 + COUNT ( * ) + - + 17
----
3053

query I rowsort
SELECT ALL - + 80 * + - 3 + 22
----
262

query I rowsort
SELECT + 11 * - 15 AS col2
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT - MIN( 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-3283
SELECT - MIN ( 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT DISTINCT MAX( 14 ) * + 29 + - ( + 16 ) + - + CASE - 41 WHEN 40 - COUNT( * ) THEN ( - 72 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT MAX ( 14 ) * + 29 + - ( + 16 ) + - + CASE - 41 WHEN 40 - COUNT ( * ) THEN ( - 72 ) END AS col2
----
NULL

query II rowsort
SELECT - CASE 10 WHEN - - 21 THEN 48 ELSE NULL END col2, 12 + + 74 * + NULLIF ( + + 29, - 25 ) + - 37 + - - 75 AS col0
----
NULL
2196

query II rowsort
SELECT - + 33 + - - 72 AS col1, + 61
----
39
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3287
SELECT ALL + - 9 + + 82 + - 85 * - 28 + + + 42 + + + 27 DIV - 51 * 88
----
2495

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL + - 9 + + 82 + - 85 * - 28 + + + 42 + + + 27 / - 51 * 88
----
2495

query I rowsort
SELECT ALL - ( - 72 ) * + 57 * 28 * - 57 * - + ( - + 34 ) AS col2
----
-222699456

query I rowsort
SELECT DISTINCT 98 + - 48 AS col0
----
50

query I rowsort
SELECT DISTINCT CASE 53 WHEN - 69 THEN - - 32 ELSE - 10 END AS col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3291
SELECT 40 DIV + 22 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3291
SELECT 40 / + 22 AS col0
----
1

query I rowsort
SELECT 11 * + 0
----
0

query II rowsort
SELECT ALL + ( 93 ) - - + 20, ( + 52 ) + 57 AS col0
----
113
109

query II rowsort
SELECT 23 AS col0, 96
----
23
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT 36 + + MIN( ALL + 43 ) * + 89
----
3863

skipif mysql # not compatible
query I rowsort label-3295
SELECT 36 + + MIN ( ALL + 43 ) * + 89
----
3863

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3296
SELECT DISTINCT - ( + 94 ) DIV COUNT( * ) DIV COUNT( * ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT - ( + 94 ) / COUNT ( * ) / COUNT ( * ) AS col2
----
-94

query II rowsort
SELECT DISTINCT - 14, ( - 20 ) AS col1
----
-14
-20

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

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL - MAX ( ALL - 92 )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3299
SELECT DISTINCT - CAST( - - 32 AS SIGNED ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-3299
SELECT DISTINCT - CAST ( - - 32 AS INTEGER ) AS col0
----
-32

query I rowsort
SELECT 71 + + 94
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3301
SELECT + - 89 * - 41 - - + 90 + + 34 * 86 DIV 27 - + + COUNT( * )
----
3846

skipif mysql # not compatible
query I rowsort label-3301
SELECT + - 89 * - 41 - - + 90 + + 34 * 86 / 27 - + + COUNT ( * )
----
3846

onlyif mysql # aggregate syntax: 
query II rowsort label-3302
SELECT DISTINCT - 16, COUNT( * ) AS col1
----
-16
1

skipif mysql # not compatible
query II rowsort label-3302
SELECT DISTINCT - 16, COUNT ( * ) AS col1
----
-16
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3303
SELECT COALESCE ( - + COUNT( * ), - - 28 * 93 * - - 45 + + COUNT( * ) + 1 DIV 26 * 60 * + + CAST( NULL AS SIGNED ) * - 58 + COUNT( * ), + + 29 ) * + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3303
SELECT COALESCE ( - + COUNT ( * ), - - 28 * 93 * - - 45 + + COUNT ( * ) + 1 / 26 * 60 * + + CAST ( NULL AS INTEGER ) * - 58 + COUNT ( * ), + + 29 ) * + + COUNT ( * )
----
-1

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

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL + - COUNT ( * ) + - 10 + - 18 AS col0
----
-29

query I rowsort
SELECT ALL 99 + 53 AS col2
----
152

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT + 65 * CASE - 74 WHEN + SUM( - + 44 ) THEN - - 85 + - 19 ELSE - 53 END + 90
----
-3355

skipif mysql # not compatible
query I rowsort label-3308
SELECT + 65 * CASE - 74 WHEN + SUM ( - + 44 ) THEN - - 85 + - 19 ELSE - 53 END + 90
----
-3355

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL + 31 + + - 74 - - - 50 + - COUNT( + - 83 ) * + 2 * - + 89 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL + 31 + + - 74 - - - 50 + - COUNT ( + - 83 ) * + 2 * - + 89 AS col1
----
85

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

query I rowsort
SELECT 51 * + + 43 * 49 + - ( - 47 ) - 48
----
107456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3312
SELECT - 76 AS col2, CASE WHEN CAST( - MAX( DISTINCT - 75 ) AS SIGNED ) IS NOT NULL THEN + 4 * - + 48 * + 51 * - - 54 * - 77 * 46 WHEN NOT ( NULL ) IN ( + - ( - - 49 ) * - 1, - 41, - 14 - - CASE - - 1 WHEN - - 82 THEN - - 23 END / + 46 - - 87 * + 52 ) THEN 56 ELSE NULL END AS col2
----
-76
1872896256

skipif mysql # not compatible
query II rowsort label-3312
SELECT - 76 AS col2, CASE WHEN CAST ( - MAX ( DISTINCT - 75 ) AS INTEGER ) IS NOT NULL THEN + 4 * - + 48 * + 51 * - - 54 * - 77 * 46 WHEN NOT ( NULL ) IN ( + - ( - - 49 ) * - 1, - 41, - 14 - - CASE - - 1 WHEN - - 82 THEN - - 23 END / + 46 - - 87 * + 52 ) THEN 56 ELSE NULL END AS col2
----
-76
1872896256

query I rowsort
SELECT DISTINCT + 29 * - 8 AS col2
----
-232

query I rowsort
SELECT ALL 15 + - 10 * - 51
----
525

query II rowsort
SELECT DISTINCT 2 AS col2, 35
----
2
35

query II rowsort
SELECT DISTINCT 4 col2, - ( - 41 )
----
4
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3317
SELECT DISTINCT 55 AS col2, + COALESCE ( - - COUNT( * ), + CAST( NULL AS SIGNED ) ) AS col2
----
55
1

skipif mysql # not compatible
query II rowsort label-3317
SELECT DISTINCT 55 AS col2, + COALESCE ( - - COUNT ( * ), + CAST ( NULL AS INTEGER ) ) AS col2
----
55
1

query I rowsort
SELECT ALL - 28 - + 28 AS col2
----
-56

query I rowsort
SELECT 31 - - - 6 - + 58
----
-33

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

query I rowsort
SELECT 40 - + - 61 AS col0
----
101

query I rowsort
SELECT 30 + - 48 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-3323
SELECT ALL 76, 56 * + COUNT( * ) col1
----
76
56

skipif mysql # not compatible
query II rowsort label-3323
SELECT ALL 76, 56 * + COUNT ( * ) col1
----
76
56

query I rowsort
SELECT ALL - 2 * - - 19
----
-38

query I rowsort
SELECT 40 + 14
----
54

query I rowsort
SELECT ALL 44 * + 81 AS col0
----
3564

query I rowsort
SELECT DISTINCT - ( - 63 ) * - 35
----
-2205

onlyif mysql # aggregate syntax: 
query II rowsort label-3328
SELECT ALL 87 AS col1, CASE - - 10 WHEN - - AVG ( DISTINCT - 93 ) + CASE + - 52 WHEN COUNT( * ) THEN + 57 END THEN + 23 ELSE + 9 END - 98 * - 75 AS col0
----
87
7359

skipif mysql # not compatible
query II rowsort label-3328
SELECT ALL 87 AS col1, CASE - - 10 WHEN - - AVG ( DISTINCT - 93 ) + CASE + - 52 WHEN COUNT ( * ) THEN + 57 END THEN + 23 ELSE + 9 END - 98 * - 75 AS col0
----
87
7359

query I rowsort
SELECT 36 * - 74 AS col1
----
-2664

query I rowsort
SELECT 71 * 71 AS col0
----
5041

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3331
SELECT + CASE 9 WHEN - 25 THEN - - 17 WHEN 16 DIV 89 THEN NULL ELSE 22 + + - COALESCE ( + + 39, + - 86 ) DIV - - 63 END DIV 56 * + - 98 * + 85 DIV COUNT( * ) * - 85 * + 99 + 39 * - COUNT( * ) + + + 53 + + 77
----
91

skipif mysql # not compatible
query I rowsort label-3331
SELECT + CASE 9 WHEN - 25 THEN - - 17 WHEN 16 / 89 THEN NULL ELSE 22 + + - COALESCE ( + + 39, + - 86 ) / - - 63 END / 56 * + - 98 * + 85 / COUNT ( * ) * - 85 * + 99 + 39 * - COUNT ( * ) + + + 53 + + 77
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3332
SELECT COUNT( * ) AS col2, - SUM( ALL - 15 )
----
1
15

skipif mysql # not compatible
query II rowsort label-3332
SELECT COUNT ( * ) AS col2, - SUM ( ALL - 15 )
----
1
15

query II rowsort
SELECT + 98 AS col0, - 75 * - 8 * - - 34 + 13
----
98
20413

onlyif mysql # aggregate syntax: 
query II rowsort label-3334
SELECT + - 59 AS col0, - ( + COUNT( * ) ) * + - ( + + NULLIF ( + 35, 37 ) ) * - - 45 + + 27 col1
----
-59
1602

skipif mysql # not compatible
query II rowsort label-3334
SELECT + - 59 AS col0, - ( + COUNT ( * ) ) * + - ( + + NULLIF ( + 35, 37 ) ) * - - 45 + + 27 col1
----
-59
1602

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3335
SELECT - 47 DIV - + 86 + SUM( ALL - 16 ) AS col2, + COUNT( * ) * + + NULLIF ( + 68, 48 * + 96 )
----
-16
68

skipif mysql # not compatible
query II rowsort label-3335
SELECT - 47 / - + 86 + SUM ( ALL - 16 ) AS col2, + COUNT ( * ) * + + NULLIF ( + 68, 48 * + 96 )
----
-16
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT + + NULLIF ( 98, MIN( ALL + 43 ) ) * + 86 + + + 19
----
8447

skipif mysql # not compatible
query I rowsort label-3336
SELECT + + NULLIF ( 98, MIN ( ALL + 43 ) ) * + 86 + + + 19
----
8447

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3337
SELECT DISTINCT + 13 * ( - ( 57 ) ) + + ( - 47 ) AS col1, + CAST( - 43 AS SIGNED ) AS col1
----
-788
-43

skipif mysql # not compatible
query II rowsort label-3337
SELECT DISTINCT + 13 * ( - ( 57 ) ) + + ( - 47 ) AS col1, + CAST ( - 43 AS INTEGER ) AS col1
----
-788
-43

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3340
SELECT ALL + COUNT( - 5 ) + + 57 * + 40 AS col2, - CAST( NULL AS SIGNED ) AS col2
----
2281
NULL

skipif mysql # not compatible
query II rowsort label-3340
SELECT ALL + COUNT ( - 5 ) + + 57 * + 40 AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
2281
NULL

query I rowsort
SELECT 59 - - 83 col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT - 13 * - ( + 0 ) + 39 * - COUNT( * ) * - COUNT( * ) col1
----
39

skipif mysql # not compatible
query I rowsort label-3342
SELECT - 13 * - ( + 0 ) + 39 * - COUNT ( * ) * - COUNT ( * ) col1
----
39

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

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

query I rowsort
SELECT - 63 * - + 44
----
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT ALL COUNT( * ) + - - 86 + 98 col1
----
185

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL COUNT ( * ) + - - 86 + 98 col1
----
185

query I rowsort
SELECT 38 + + 2
----
40

query I rowsort
SELECT - 16 + 83 AS col1
----
67

query I rowsort
SELECT 28 - + 80 * - - 2 AS col0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT DISTINCT - COUNT( DISTINCT - - 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT - COUNT ( DISTINCT - - 4 )
----
-1

query I rowsort
SELECT DISTINCT + 53 - 16
----
37

query I rowsort
SELECT 77 + 56 - - 23 col0
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3352
SELECT ALL COUNT( * ) DIV + COUNT( * ) AS col0, - 69 AS col1
----
1
-69

skipif mysql # not compatible
query II rowsort label-3352
SELECT ALL COUNT ( * ) / + COUNT ( * ) AS col0, - 69 AS col1
----
1
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-3353
SELECT + 22 + - 64 * - COUNT( * ) AS col0, COUNT( * )
----
86
1

skipif mysql # not compatible
query II rowsort label-3353
SELECT + 22 + - 64 * - COUNT ( * ) AS col0, COUNT ( * )
----
86
1

query II rowsort
SELECT ALL 4 - + 64 AS col0, + 18
----
-60
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT + 68 * + + ( MIN( DISTINCT - + 91 ) )
----
-6188

skipif mysql # not compatible
query I rowsort label-3355
SELECT + 68 * + + ( MIN ( DISTINCT - + 91 ) )
----
-6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3356
SELECT ALL CASE - 44 WHEN + 79 THEN NULLIF ( + + 0, + 44 / - + COALESCE ( 98, 99, + 40 ) * - 11 * - - 99 - + 51 * + + 54 ) WHEN - CAST( + CAST( - NULLIF ( - + 25, + 71 * + COUNT( * ) ) AS SIGNED ) AS DECIMAL ) THEN NULL END * - 4 / 57 AS col2, + COALESCE ( + - 92, - - 55, 76 ) * - ( 99 )
----
NULL
9108

skipif mysql # not compatible
query II rowsort label-3356
SELECT ALL CASE - 44 WHEN + 79 THEN NULLIF ( + + 0, + 44 / - + COALESCE ( 98, 99, + 40 ) * - 11 * - - 99 - + 51 * + + 54 ) WHEN - CAST ( + CAST ( - NULLIF ( - + 25, + 71 * + COUNT ( * ) ) AS INTEGER ) AS REAL ) THEN NULL END * - 4 / 57 AS col2, + COALESCE ( + - 92, - - 55, 76 ) * - ( 99 )
----
NULL
9108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3357
SELECT + 86 DIV - MIN( - 15 )
----
5

skipif mysql # not compatible
query I rowsort label-3357
SELECT + 86 / - MIN ( - 15 )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3358
SELECT + MAX( + 14 ) DIV - - 97 DIV ( - 73 ) * + 78
----
0

skipif mysql # not compatible
query I rowsort label-3358
SELECT + MAX ( + 14 ) / - - 97 / ( - 73 ) * + 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT - 51 + + SUM( - 38 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-3359
SELECT - 51 + + SUM ( - 38 ) AS col2
----
-89

query I rowsort
SELECT - 68 * - 56 AS col0
----
3808

query I rowsort
SELECT DISTINCT 85 * + 58 AS col2
----
4930

query I rowsort
SELECT DISTINCT 3 * + ( 82 ) AS col0
----
246

query I rowsort
SELECT + 32 * + + 99 AS col0
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT - NULLIF ( COUNT( * ), - - 26 + + + 31 )
----
-1

skipif mysql # not compatible
query I rowsort label-3364
SELECT - NULLIF ( COUNT ( * ), - - 26 + + + 31 )
----
-1

query I rowsort
SELECT - NULLIF ( 1, 13 * - 64 ) col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3367
SELECT ALL + 35 + + + 90 AS col0, COUNT( * ) * + 97 * + 69
----
125
6693

skipif mysql # not compatible
query II rowsort label-3367
SELECT ALL + 35 + + + 90 AS col0, COUNT ( * ) * + 97 * + 69
----
125
6693

query I rowsort
SELECT DISTINCT - 81 * + - ( - - 30 )
----
2430

query II rowsort
SELECT + 75 - - + 70 AS col1, 45 AS col0
----
145
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3370
SELECT DISTINCT CAST( 25 AS SIGNED ) * 68 AS col0
----
1700

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT CAST ( 25 AS INTEGER ) * 68 AS col0
----
1700

query I rowsort
SELECT DISTINCT + 59 * - 61 + 11 * + 83 AS col1
----
-2686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3372
SELECT + CAST( + + MAX( ALL + ( CAST( - - 61 AS SIGNED ) ) ) AS SIGNED ) col2, 83
----
61
83

skipif mysql # not compatible
query II rowsort label-3372
SELECT + CAST ( + + MAX ( ALL + ( CAST ( - - 61 AS INTEGER ) ) ) AS INTEGER ) col2, 83
----
61
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3373
SELECT DISTINCT + 73 DIV + ( 96 ) * + ( - 42 ) + - + MIN( - 45 ) * 96 + COALESCE ( - NULLIF ( - 97, - - 80 ), CAST( - COUNT( * ) AS SIGNED ) + + - COUNT( * ) ) + - 40 * ( - 71 ) * - - 99 - + 26 * + 47 col1
----
284355

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT + 73 / + ( 96 ) * + ( - 42 ) + - + MIN ( - 45 ) * 96 + COALESCE ( - NULLIF ( - 97, - - 80 ), CAST ( - COUNT ( * ) AS INTEGER ) + + - COUNT ( * ) ) + - 40 * ( - 71 ) * - - 99 - + 26 * + 47 col1
----
284355

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT - + 9 * + 57 * + + COUNT( DISTINCT - 0 ) AS col2
----
-513

skipif mysql # not compatible
query I rowsort label-3374
SELECT - + 9 * + 57 * + + COUNT ( DISTINCT - 0 ) AS col2
----
-513

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3375
SELECT + 73 * 14 * + 87 * + 90 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3375
SELECT + 73 * 14 * + 87 * + 90 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + + 3 * 26
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3377
SELECT - CAST( NULL AS SIGNED ) * + - 41 col2, 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3377
SELECT - CAST ( NULL AS INTEGER ) * + - 41 col2, 0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT DISTINCT - 21 * - COUNT( + 49 ) * + 37
----
777

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT - 21 * - COUNT ( + 49 ) * + 37
----
777

query II rowsort
SELECT - + 10 * - 96 AS col0, 6 AS col0
----
960
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT NULLIF ( MAX( DISTINCT + + 44 ), - + 70 / - - COUNT( ALL - 22 ) * + + 61 )
----
44

skipif mysql # not compatible
query I rowsort label-3380
SELECT NULLIF ( MAX ( DISTINCT + + 44 ), - + 70 / - - COUNT ( ALL - 22 ) * + + 61 )
----
44

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3382
SELECT - 10 * - - SUM( + + 2 ), 77 AS col1
----
-20
77

skipif mysql # not compatible
query II rowsort label-3382
SELECT - 10 * - - SUM ( + + 2 ), 77 AS col1
----
-20
77

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

query II rowsort
SELECT DISTINCT + 92 AS col2, 68 AS col1
----
92
68

query I rowsort
SELECT ALL + COALESCE ( + - 38, - + 39, - 59 ) * + - 38 AS col0
----
1444

query I rowsort
SELECT - 39 + + + 36
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT DISTINCT ( + - MAX( 42 ) ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT ( + - MAX ( 42 ) ) AS col0
----
-42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3389
SELECT ALL 27 * + - NULLIF ( - 2, ( + 54 ) ) / - 37 - - - CAST( NULL AS SIGNED ) * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL 27 * + - NULLIF ( - 2, ( + 54 ) ) / - 37 - - - CAST ( NULL AS INTEGER ) * - 55
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3391
SELECT ALL CAST( 80 AS SIGNED ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL CAST ( 80 AS INTEGER ) AS col0
----
80

query I rowsort
SELECT DISTINCT 44 + + 81
----
125

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

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

query I rowsort
SELECT ALL 91 * - 52 AS col2
----
-4732

query II rowsort
SELECT 47 AS col0, 65
----
47
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3396
SELECT + MAX( 92 ) + - 3 AS col1, 17 + + COUNT( * )
----
89
18

skipif mysql # not compatible
query II rowsort label-3396
SELECT + MAX ( 92 ) + - 3 AS col1, 17 + + COUNT ( * )
----
89
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT - COALESCE ( 39, - + 6 * - MIN( - 90 ) + - + 97 - + 26, - + 9 - + - 49 * 5 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3397
SELECT - COALESCE ( 39, - + 6 * - MIN ( - 90 ) + - + 97 - + 26, - + 9 - + - 49 * 5 ) AS col0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3398
SELECT ALL 84 + - - 54 DIV - 87
----
84

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL 84 + - - 54 / - 87
----
84

query I rowsort
SELECT ALL 43 + + + 82 + + 3 + + 34
----
162

query I rowsort
SELECT ALL + 67 * + 21 AS col0
----
1407

onlyif mysql # DIV for integer division: 
query I rowsort label-3401
SELECT + ( - + 55 ) DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-3401
SELECT + ( - + 55 ) / + 60
----
0

query I rowsort
SELECT ALL - 76 + 36 AS col2
----
-40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT ALL CASE 24 WHEN - 23 THEN - 62 WHEN + 35 / + - 96 THEN + 82 ELSE - COUNT( * ) END + - + 5
----
-6

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL CASE 24 WHEN - 23 THEN - 62 WHEN + 35 / + - 96 THEN + 82 ELSE - COUNT ( * ) END + - + 5
----
-6

query II rowsort
SELECT DISTINCT - 37, 47 * + - 51 AS col2
----
-37
-2397

onlyif mysql # aggregate syntax: 
query II rowsort label-3406
SELECT ALL COUNT( * ) AS col0, 93 - 37 AS col1
----
1
56

skipif mysql # not compatible
query II rowsort label-3406
SELECT ALL COUNT ( * ) AS col0, 93 - 37 AS col1
----
1
56

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

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

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

skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT - CAST ( + 75 AS INTEGER ) + + - 7 - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 10 AS col2
----
NULL

query I rowsort
SELECT + + ( + 38 ) * - + 58 + 11
----
-2193

query I rowsort
SELECT ALL - 44 * + 37 AS col0
----
-1628

query II rowsort
SELECT + 32, + 57 + - COALESCE ( + 24, + 70 ) AS col1
----
32
33

onlyif mysql # DIV for integer division: 
query II rowsort label-3412
SELECT DISTINCT + 82 DIV 14 - + 73 AS col1, + 69 AS col0
----
-68
69

skipif mysql # not compatible
query II rowsort label-3412
SELECT DISTINCT + 82 / 14 - + 73 AS col1, + 69 AS col0
----
-68
69

onlyif mysql # aggregate syntax: 
query II rowsort label-3413
SELECT ALL + SUM( - 98 ) * + 46 AS col2, 20 * + - 44
----
-4508
-880

skipif mysql # not compatible
query II rowsort label-3413
SELECT ALL + SUM ( - 98 ) * + 46 AS col2, 20 * + - 44
----
-4508
-880

query I rowsort
SELECT ALL 81 * + - 61 * - + 55 * + - 53
----
-14403015

query II rowsort
SELECT 5 AS col0, 11 AS col0
----
5
11

query I rowsort
SELECT DISTINCT - 92 - 49
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT - 67 * SUM( + COALESCE ( + 7, - - 30 ) ) * 94 + - 60 + - + 9 + 61 * + + ( - - 37 ) + - - 63 AS col2
----
-41835

skipif mysql # not compatible
query I rowsort label-3417
SELECT - 67 * SUM ( + COALESCE ( + 7, - - 30 ) ) * 94 + - 60 + - + 9 + 61 * + + ( - - 37 ) + - - 63 AS col2
----
-41835

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT ALL - + NULLIF ( - 76, + COUNT( * ) )
----
76

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL - + NULLIF ( - 76, + COUNT ( * ) )
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-3419
SELECT 42 AS col1, 16 * - 81 DIV + 80 AS col1
----
42
-16

skipif mysql # not compatible
query II rowsort label-3419
SELECT 42 AS col1, 16 * - 81 / + 80 AS col1
----
42
-16

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

skipif mysql # not compatible
query I rowsort label-3420
SELECT 21 + - 51 / + COUNT ( * )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT 24 DIV 43 * 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3421
SELECT 24 / 43 * 33 AS col2
----
0

query I rowsort
SELECT 59 * - + 10 AS col1
----
-590

query I rowsort
SELECT 30 + + + 76
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT - 92 * 0 DIV - 94 + 87 + + 65 col2
----
152

skipif mysql # not compatible
query I rowsort label-3424
SELECT - 92 * 0 / - 94 + 87 + + 65 col2
----
152

query I rowsort
SELECT ALL - 43 * + 60 AS col2
----
-2580

onlyif mysql # DIV for integer division: 
query I rowsort label-3426
SELECT 49 DIV 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3426
SELECT 49 / 59 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3427
SELECT ALL - 70 + - 35 AS col0, 36 * - + 64 * + - ( 47 ) + + - NULLIF ( MIN( NULLIF ( - + 74, - 17 ) ), + + MAX( ALL - 58 ) * + + COALESCE ( COUNT( * ), - 1, + MIN( + + 54 ) ) * - 36 )
----
-105
108362

skipif mysql # not compatible
query II rowsort label-3427
SELECT ALL - 70 + - 35 AS col0, 36 * - + 64 * + - ( 47 ) + + - NULLIF ( MIN ( NULLIF ( - + 74, - 17 ) ), + + MAX ( ALL - 58 ) * + + COALESCE ( COUNT ( * ), - 1, + MIN ( + + 54 ) ) * - 36 )
----
-105
108362

onlyif mysql # aggregate syntax: 
query II rowsort label-3428
SELECT 59 * - 97 AS col1, - MAX( DISTINCT 88 )
----
-5723
-88

skipif mysql # not compatible
query II rowsort label-3428
SELECT 59 * - 97 AS col1, - MAX ( DISTINCT 88 )
----
-5723
-88

query I rowsort
SELECT ALL 3 + - 36 + 80 AS col2
----
47

query I rowsort
SELECT 65 + + 32 + 97 col2
----
194

query I rowsort
SELECT 75 + + 29 + - 73 * 10 AS col2
----
-626

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

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

query I rowsort
SELECT 49 * - - 99
----
4851

query I rowsort
SELECT + 53 * + + 81 + + + 94 AS col0
----
4387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3435
SELECT ALL - 8 + + COALESCE ( COUNT( * ), + COUNT( * ) - - CAST( NULL AS SIGNED ) * - NULLIF ( 19, - 33 ) DIV + - 10 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL - 8 + + COALESCE ( COUNT ( * ), + COUNT ( * ) - - CAST ( NULL AS INTEGER ) * - NULLIF ( 19, - 33 ) / + - 10 ) AS col2
----
-7

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

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

query I rowsort
SELECT DISTINCT + 81 * + + 45
----
3645

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3438
SELECT MAX( 13 ) * - 4 * 57 + 72 DIV + ( + + 1 ), 76 + 92 AS col0
----
-2892
168

skipif mysql # not compatible
query II rowsort label-3438
SELECT MAX ( 13 ) * - 4 * 57 + 72 / + ( + + 1 ), 76 + 92 AS col0
----
-2892
168

query I rowsort
SELECT ALL - 8 + ( - 0 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-3440
SELECT DISTINCT + 67 * + 35 AS col2, COUNT( - 81 ) AS col2
----
2345
1

skipif mysql # not compatible
query II rowsort label-3440
SELECT DISTINCT + 67 * + 35 AS col2, COUNT ( - 81 ) AS col2
----
2345
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3441
SELECT ALL 24 - 22, + COUNT( + 68 ) col1
----
2
1

skipif mysql # not compatible
query II rowsort label-3441
SELECT ALL 24 - 22, + COUNT ( + 68 ) col1
----
2
1

query I rowsort
SELECT - 93 * NULLIF ( + 80, + - 64 - - + 47 ) col0
----
-7440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3443
SELECT ALL - 39 / + CAST( 40 AS SIGNED ) * - CASE 15 WHEN - + 54 * + 83 THEN NULL ELSE + CAST( NULL AS SIGNED ) * MAX( + - 66 ) END * ( 92 ), MIN( - - 48 ) * + CASE + COUNT( DISTINCT NULLIF ( + 52, + - 21 ) ) WHEN - 51 THEN 56 END + COUNT( * ) * + - 68 + - ( - MIN( ALL + 57 ) ) * 79
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3443
SELECT ALL - 39 / + CAST ( 40 AS INTEGER ) * - CASE 15 WHEN - + 54 * + 83 THEN NULL ELSE + CAST ( NULL AS INTEGER ) * MAX ( + - 66 ) END * ( 92 ), MIN ( - - 48 ) * + CASE + COUNT ( DISTINCT NULLIF ( + 52, + - 21 ) ) WHEN - 51 THEN 56 END + COUNT ( * ) * + - 68 + - ( - MIN ( ALL + 57 ) ) * 79
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3444
SELECT - - ( + + COUNT( * ) ), 49 + + 15 AS col2
----
1
64

skipif mysql # not compatible
query II rowsort label-3444
SELECT - - ( + + COUNT ( * ) ), 49 + + 15 AS col2
----
1
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT CAST( - 17 AS SIGNED ) + + - 87 AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-3445
SELECT CAST ( - 17 AS INTEGER ) + + - 87 AS col1
----
-104

query I rowsort
SELECT + 60 * - 42 * + + 65 AS col0
----
-163800

query I rowsort
SELECT NULLIF ( + 66, 7 ) * + 42 - - + 33 AS col0
----
2805

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

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL SUM ( 75 )
----
75

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

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

query II rowsort
SELECT ALL ( + - 18 ) AS col2, - 51 * 38 AS col0
----
-18
-1938

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT DISTINCT - COUNT( * ) * - + 54 * 97 AS col0
----
5238

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT - COUNT ( * ) * - + 54 * 97 AS col0
----
5238

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

skipif mysql # not compatible
query I rowsort label-3452
SELECT COUNT ( - + 70 ) - - 99 * - 0 AS col2
----
1

query II rowsort
SELECT DISTINCT + 71 * - - 19 AS col2, - 53 col0
----
1349
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3454
SELECT ALL 70 * + 74 + - NULLIF ( NULLIF ( + 28, - 4 + - COUNT( * ) ), + - 49 + + CASE - + 25 WHEN 98 / + 69 / - SUM( 63 ) THEN - 92 / - + CASE 88 WHEN + 56 + 99 * - 25 + + COUNT( * ) + - - ( - - ( + 39 ) ) + - 27 + + + 75 THEN + CAST( NULL AS SIGNED ) + + CASE - ( 82 ) WHEN - 6 THEN NULL WHEN 65 THEN - 70 * CASE COUNT( * ) * 26 WHEN + 48 THEN NULL ELSE 15 + - 63 END + 99 * + ( + CASE 78 WHEN 67 THEN + 10 * - CAST( NULL AS SIGNED ) - 69 WHEN COUNT( + 76 ) THEN 24 + CASE - 83 + 72 WHEN - AVG ( ALL 38 ) THEN - 51 END * - COUNT( * ) END ) END + + 42 ELSE COUNT( * ) * 64 END - 54 WHEN 32 THEN NULL END ) col1
----
5152

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL 70 * + 74 + - NULLIF ( NULLIF ( + 28, - 4 + - COUNT ( * ) ), + - 49 + + CASE - + 25 WHEN 98 / + 69 / - SUM ( 63 ) THEN - 92 / - + CASE 88 WHEN + 56 + 99 * - 25 + + COUNT ( * ) + - - ( - - ( + 39 ) ) + - 27 + + + 75 THEN + CAST ( NULL AS INTEGER ) + + CASE - ( 82 ) WHEN - 6 THEN NULL WHEN 65 THEN - 70 * CASE COUNT ( * ) * 26 WHEN + 48 THEN NULL ELSE 15 + - 63 END + 99 * + ( + CASE 78 WHEN 67 THEN + 10 * - CAST ( NULL AS INTEGER ) - 69 WHEN COUNT ( + 76 ) THEN 24 + CASE - 83 + 72 WHEN - AVG ( ALL 38 ) THEN - 51 END * - COUNT ( * ) END ) END + + 42 ELSE COUNT ( * ) * 64 END - 54 WHEN 32 THEN NULL END ) col1
----
5152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT 5 + - CAST( + 41 AS SIGNED ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3455
SELECT 5 + - CAST ( + 41 AS INTEGER ) AS col1
----
-36

query I rowsort
SELECT + 76 * - 80 + 39 * - 60 + - 67 * - 72 AS col1
----
-3596

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3458
SELECT 47 * - + 29 + + CAST( NULL AS SIGNED ) + 76 * 17 * - COUNT( * ) * + 13 + COUNT( * ) + + 76 * - 77, - 77 AS col2
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-3458
SELECT 47 * - + 29 + + CAST ( NULL AS INTEGER ) + 76 * 17 * - COUNT ( * ) * + 13 + COUNT ( * ) + + 76 * - 77, - 77 AS col2
----
NULL
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT DISTINCT MIN( DISTINCT + 77 ) + 35
----
112

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT MIN ( DISTINCT + 77 ) + 35
----
112

query I rowsort
SELECT DISTINCT - 57 + 48 + 32
----
23

query I rowsort
SELECT DISTINCT 80 + - 35 col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3462
SELECT DISTINCT + 93 + COUNT( * ) DIV 9 * - 62 * 35 * + NULLIF ( 53, + + 14 )
----
93

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT + 93 + COUNT ( * ) / 9 * - 62 * 35 * + NULLIF ( 53, + + 14 )
----
93

query I rowsort
SELECT ALL - 39 + 94 + + 1 * - + NULLIF ( + 19, + 22 / - 10 * 86 ) AS col0
----
36

query I rowsort
SELECT 65 * 26 AS col1
----
1690

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT COALESCE ( + - 65, + + 46 ) + ( - COUNT( DISTINCT 55 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-3465
SELECT COALESCE ( + - 65, + + 46 ) + ( - COUNT ( DISTINCT 55 ) )
----
-66

query I rowsort
SELECT DISTINCT + 94 + - ( + + 23 ) col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT ALL - 39 + - 61 + COUNT( * ) + 42
----
-57

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL - 39 + - 61 + COUNT ( * ) + 42
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT COUNT( * ) * + CASE + ( + 8 ) WHEN CASE - 25 WHEN - 80 * - 2 - - COUNT( DISTINCT 38 ) * 39 + + - 30 THEN NULL ELSE + COUNT( * ) - + 53 + MIN( ALL + 31 ) * - + COUNT( * ) END / + 47 + - 77 THEN 93 WHEN - + 78 THEN 76 * 56 ELSE NULL END - 40 + + + 89 / - - ( + - 80 ) * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT COUNT ( * ) * + CASE + ( + 8 ) WHEN CASE - 25 WHEN - 80 * - 2 - - COUNT ( DISTINCT 38 ) * 39 + + - 30 THEN NULL ELSE + COUNT ( * ) - + 53 + MIN ( ALL + 31 ) * - + COUNT ( * ) END / + 47 + - 77 THEN 93 WHEN - + 78 THEN 76 * 56 ELSE NULL END - 40 + + + 89 / - - ( + - 80 ) * 69
----
NULL

query II rowsort
SELECT 29, - 28 + - 36 AS col1
----
29
-64

query II rowsort
SELECT + 78 AS col2, 55 * + 26
----
78
1430

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT 65 - + ( - - 55 ) - - MIN( DISTINCT + - 3 ), + 52 AS col1
----
7
52

skipif mysql # not compatible
query II rowsort label-3471
SELECT 65 - + ( - - 55 ) - - MIN ( DISTINCT + - 3 ), + 52 AS col1
----
7
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL MAX( DISTINCT + + ( + 46 ) ) col2
----
46

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL MAX ( DISTINCT + + ( + 46 ) ) col2
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3473
SELECT DISTINCT 84, - CASE - 16 WHEN - - 68 THEN NULL WHEN - - COUNT( * ) * 46 - + 81 / - 10 THEN NULL WHEN MAX( - - 25 ) THEN - + 16 END AS col0
----
84
NULL

skipif mysql # not compatible
query II rowsort label-3473
SELECT DISTINCT 84, - CASE - 16 WHEN - - 68 THEN NULL WHEN - - COUNT ( * ) * 46 - + 81 / - 10 THEN NULL WHEN MAX ( - - 25 ) THEN - + 16 END AS col0
----
84
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3474
SELECT - 89 AS col0, + 4 - - 71 + - - 57 + - 71 + + + 43 * - ( + MIN( ALL + 46 ) )
----
-89
-1917

skipif mysql # not compatible
query II rowsort label-3474
SELECT - 89 AS col0, + 4 - - 71 + - - 57 + - 71 + + + 43 * - ( + MIN ( ALL + 46 ) )
----
-89
-1917

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

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

query I rowsort
SELECT DISTINCT + 31 * - - 4 AS col0
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3477
SELECT 0 - 0 + + 38 * - + SUM( ALL - 47 ) + - COALESCE ( - COUNT( * ), + MIN( + ( 61 ) ), + 89 + - - COALESCE ( - + 66, - + 50 + 85 + - + 11 DIV - 80 + + 33 + - 23 * 39 ) * + + 83 * + - COUNT( * ) * + NULLIF ( + 70, + 34 ), + + COUNT( * ) - + - 96 ) AS col2
----
1787

skipif mysql # not compatible
query I rowsort label-3477
SELECT 0 - 0 + + 38 * - + SUM ( ALL - 47 ) + - COALESCE ( - COUNT ( * ), + MIN ( + ( 61 ) ), + 89 + - - COALESCE ( - + 66, - + 50 + 85 + - + 11 / - 80 + + 33 + - 23 * 39 ) * + + 83 * + - COUNT ( * ) * + NULLIF ( + 70, + 34 ), + + COUNT ( * ) - + - 96 ) AS col2
----
1787

query I rowsort
SELECT 51 + 28 AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3479
SELECT + 91 - 69 DIV SUM( ALL - 77 ) + + 71 AS col1
----
162

skipif mysql # not compatible
query I rowsort label-3479
SELECT + 91 - 69 / SUM ( ALL - 77 ) + + 71 AS col1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT CASE + 77 WHEN + 35 THEN - 24 ELSE NULL END * + - NULLIF ( - 75, 7 - - COUNT( * ) + + + COUNT( * ) * - - 21 * 48 ) / 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT CASE + 77 WHEN + 35 THEN - 24 ELSE NULL END * + - NULLIF ( - 75, 7 - - COUNT ( * ) + + + COUNT ( * ) * - - 21 * 48 ) / 53 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3481
SELECT - MAX( - ( + - 83 ) ) + + + 7 + - SUM( + COALESCE ( - CASE 81 WHEN + 49 * 56 + - + 35 THEN NULL ELSE - - 2 END, - - 85 ) ) - 44 + + 0 * - - MAX( - CAST( NULL AS SIGNED ) ) * - NULLIF ( + ( + 51 ), - 17 * - 36 * + 34 + 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT - MAX ( - ( + - 83 ) ) + + + 7 + - SUM ( + COALESCE ( - CASE 81 WHEN + 49 * 56 + - + 35 THEN NULL ELSE - - 2 END, - - 85 ) ) - 44 + + 0 * - - MAX ( - CAST ( NULL AS INTEGER ) ) * - NULLIF ( + ( + 51 ), - 17 * - 36 * + 34 + 58 )
----
NULL

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

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

query I rowsort
SELECT DISTINCT - - 67 * 58 AS col1
----
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT ALL - 61 * + + 66 * + 41 * + COUNT( * ) + + 11 AS col1
----
-165055

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL - 61 * + + 66 * + 41 * + COUNT ( * ) + + 11 AS col1
----
-165055

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT ALL - SUM( ALL - 47 ) col1
----
47

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL - SUM ( ALL - 47 ) col1
----
47

query II rowsort
SELECT - + 86 + 11 * + 64 AS col0, - 44 + + - 62
----
618
-106

query I rowsort
SELECT + + 23 + + 92 AS col1
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT - - NULLIF ( + + 41, + + COALESCE ( ( - 36 ), + 73 ) ) DIV - 2 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3488
SELECT - - NULLIF ( + + 41, + + COALESCE ( ( - 36 ), + 73 ) ) / - 2 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT + 30 * - COUNT( * ) * - 97 * - + 65
----
-189150

skipif mysql # not compatible
query I rowsort label-3489
SELECT + 30 * - COUNT ( * ) * - 97 * - + 65
----
-189150

onlyif mysql # aggregate syntax: 
query II rowsort label-3490
SELECT ALL + - 49 * ( + 2 ) + - COUNT( * ) + - 44 AS col1, - 92
----
-143
-92

skipif mysql # not compatible
query II rowsort label-3490
SELECT ALL + - 49 * ( + 2 ) + - COUNT ( * ) + - 44 AS col1, - 92
----
-143
-92

query I rowsort
SELECT - + 66 * + 27 * - - 27 + 57 AS col1
----
-48057

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

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

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

query I rowsort
SELECT + 16 + - 86
----
-70

query I rowsort
SELECT ALL 77 * 31 + - + 29 - 46 AS col1
----
2312

query I rowsort
SELECT + 33 + - 88 AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3497
SELECT - 4 DIV 16 * - 84 DIV - 79, + CAST( NULL AS SIGNED ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3497
SELECT - 4 / 16 * - 84 / - 79, + CAST ( NULL AS INTEGER ) AS col0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT ALL 8 * + + COUNT( * ) + + 13
----
21

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL 8 * + + COUNT ( * ) + + 13
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3499
SELECT + COUNT( * ), + 44 * + ( - 83 ) + MIN( - + 33 ) col1
----
1
-3685

skipif mysql # not compatible
query II rowsort label-3499
SELECT + COUNT ( * ), + 44 * + ( - 83 ) + MIN ( - + 33 ) col1
----
1
-3685

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT + SUM( 24 ) + - - ( - ( COALESCE ( + COUNT( * ), + MIN( ALL - - COALESCE ( + 64, ( 86 ) + + 33 ) ) + - COUNT( * ) * - ( - 94 ) * + - ( + - SUM( ALL 28 ) ) + - - COUNT( ALL + 2 ) + - 1 * - - 44, - - 26 ) ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3500
SELECT + SUM ( 24 ) + - - ( - ( COALESCE ( + COUNT ( * ), + MIN ( ALL - - COALESCE ( + 64, ( 86 ) + + 33 ) ) + - COUNT ( * ) * - ( - 94 ) * + - ( + - SUM ( ALL 28 ) ) + - - COUNT ( ALL + 2 ) + - 1 * - - 44, - - 26 ) ) ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3501
SELECT COUNT( * ), 98 * + + 89 AS col0
----
1
8722

skipif mysql # not compatible
query II rowsort label-3501
SELECT COUNT ( * ), 98 * + + 89 AS col0
----
1
8722

query I rowsort
SELECT ALL 61 * 69 AS col0
----
4209

onlyif mysql # aggregate syntax: 
query III rowsort label-3503
SELECT MAX( ALL + 58 ) AS col1, MIN( DISTINCT + + 62 ) + - SUM( + 50 ) + + 17 * - ( - + 42 ) AS col0, - 84 + + 23
----
58
726
-61

skipif mysql # not compatible
query III rowsort label-3503
SELECT MAX ( ALL + 58 ) AS col1, MIN ( DISTINCT + + 62 ) + - SUM ( + 50 ) + + 17 * - ( - + 42 ) AS col0, - 84 + + 23
----
58
726
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT + COUNT( * ) * + + 37 * - 79 * 70
----
-204610

skipif mysql # not compatible
query I rowsort label-3504
SELECT + COUNT ( * ) * + + 37 * - 79 * 70
----
-204610

query I rowsort
SELECT ALL 25 * - COALESCE ( - ( NULLIF ( + 22, - 4 + - - 78 ) ), + + 12 )
----
550

query II rowsort
SELECT + NULLIF ( 83, + + 14 ) * 35, + 75 + + + ( - - 74 ) AS col2
----
2905
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3507
SELECT - CASE + - COUNT( * ) WHEN - 58 THEN NULL WHEN + 5 THEN - SUM( - 47 ) DIV + 52 * - + 87 * ( + + 64 ) ELSE + 57 END * - ( - + 54 ) + + 97 + COUNT( * ) * + 61 DIV + 52 AS col2
----
-2980

skipif mysql # not compatible
query I rowsort label-3507
SELECT - CASE + - COUNT ( * ) WHEN - 58 THEN NULL WHEN + 5 THEN - SUM ( - 47 ) / + 52 * - + 87 * ( + + 64 ) ELSE + 57 END * - ( - + 54 ) + + 97 + COUNT ( * ) * + 61 / + 52 AS col2
----
-2980

query II rowsort
SELECT ALL - 53 AS col2, 54
----
-53
54

query II rowsort
SELECT - + 40 AS col1, + 32 AS col2
----
-40
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3510
SELECT - COALESCE ( 26, COUNT( * ), - 95 ) * - MAX( + 4 ) DIV - COUNT( * ) - - 6
----
-98

skipif mysql # not compatible
query I rowsort label-3510
SELECT - COALESCE ( 26, COUNT ( * ), - 95 ) * - MAX ( + 4 ) / - COUNT ( * ) - - 6
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3511
SELECT ALL + 56 DIV 65 * - 0
----
0

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL + 56 / 65 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT - - MAX( - - 92 ) + 13 + COUNT( * )
----
106

skipif mysql # not compatible
query I rowsort label-3512
SELECT - - MAX ( - - 92 ) + 13 + COUNT ( * )
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT - COUNT( DISTINCT - 32 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3513
SELECT - COUNT ( DISTINCT - 32 ) AS col1
----
-1

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

query I rowsort
SELECT - - 18 * + 94 AS col1
----
1692

query I rowsort
SELECT ALL + 96 * + 10
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT + + 32 - 13 * + 49 + + 69 * + 32 + + COUNT( * )
----
1604

skipif mysql # not compatible
query I rowsort label-3517
SELECT + + 32 - 13 * + 49 + + 69 * + 32 + + COUNT ( * )
----
1604

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3519
SELECT ALL - + 64 * - + CAST( + ( + 19 ) AS SIGNED )
----
1216

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL - + 64 * - + CAST ( + ( + 19 ) AS INTEGER )
----
1216

query I rowsort
SELECT + 31 * + 68 + - 33
----
2075

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

query I rowsort
SELECT DISTINCT - ( + 44 ) + 86 + + + 10
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-3523
SELECT - ( 98 ) + + ( - 8 ) AS col2, + COUNT( * ) + - 67 + - COUNT( * )
----
-106
-67

skipif mysql # not compatible
query II rowsort label-3523
SELECT - ( 98 ) + + ( - 8 ) AS col2, + COUNT ( * ) + - 67 + - COUNT ( * )
----
-106
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-3524
SELECT ALL - - ( + - 89 ) + + 33 DIV 59 DIV 99 * 89
----
-89

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL - - ( + - 89 ) + + 33 / 59 / 99 * 89
----
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-3525
SELECT - - 35, 20 DIV - - 39 AS col1
----
35
0

skipif mysql # not compatible
query II rowsort label-3525
SELECT - - 35, 20 / - - 39 AS col1
----
35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT COUNT( DISTINCT - - 15 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3526
SELECT COUNT ( DISTINCT - - 15 ) AS col0
----
1

query I rowsort
SELECT ALL - 11 + + + 94
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3528
SELECT ALL 5 / - CAST( + - 76 AS SIGNED ) * - NULLIF ( - + 46, - + ( - NULLIF ( 75, + - 66 ) ) * 85 + - 69 + MAX( DISTINCT - + 19 ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL 5 / - CAST ( + - 76 AS INTEGER ) * - NULLIF ( - + 46, - + ( - NULLIF ( 75, + - 66 ) ) * 85 + - 69 + MAX ( DISTINCT - + 19 ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3529
SELECT - COUNT( ALL + + 84 ) * - CAST( NULL AS SIGNED ) / 44 / - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT - COUNT ( ALL + + 84 ) * - CAST ( NULL AS INTEGER ) / 44 / - 53
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3530
SELECT ALL + 48 / + ( 22 ) * - CAST( NULL AS SIGNED ) - 37 AS col0, - 14 AS col2
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-3530
SELECT ALL + 48 / + ( 22 ) * - CAST ( NULL AS INTEGER ) - 37 AS col0, - 14 AS col2
----
NULL
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3531
SELECT ALL COUNT( * ) DIV + + 40 * 20 + + 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL COUNT ( * ) / + + 40 * 20 + + 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT + COALESCE ( 72, SUM( ALL - 91 ) * 4, - 42 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-3532
SELECT + COALESCE ( 72, SUM ( ALL - 91 ) * 4, - 42 ) AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3533
SELECT ALL NULLIF ( - AVG ( - CAST( NULL AS SIGNED ) ), + + 16 ) / 39 + COUNT( * ) + - 27 + - - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL NULLIF ( - AVG ( - CAST ( NULL AS INTEGER ) ), + + 16 ) / 39 + COUNT ( * ) + - 27 + - - 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3534
SELECT - COUNT( * ) * - 1 DIV + 5 * + 22
----
0

skipif mysql # not compatible
query I rowsort label-3534
SELECT - COUNT ( * ) * - 1 / + 5 * + 22
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3535
SELECT ALL 85 DIV - 55 - - 74
----
73

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL 85 / - 55 - - 74
----
73

query I rowsort
SELECT DISTINCT + 22 * + - 6 AS col2
----
-132

query I rowsort
SELECT + ( 17 ) * + 16 + - - 98
----
370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3538
SELECT + CAST( NULL AS SIGNED ) / + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT + CAST ( NULL AS INTEGER ) / + 9
----
NULL

query II rowsort
SELECT ( - - 60 ) AS col1, + 47
----
60
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3540
SELECT - 90 + - + COUNT( * ) AS col0, - ( + 15 )
----
-91
-15

skipif mysql # not compatible
query II rowsort label-3540
SELECT - 90 + - + COUNT ( * ) AS col0, - ( + 15 )
----
-91
-15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT COALESCE ( + 71, - 64 + + + 53 + 8, COUNT( * ), - NULLIF ( + 47, - + 42 * + 4 + 0 ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-3542
SELECT COALESCE ( + 71, - 64 + + + 53 + 8, COUNT ( * ), - NULLIF ( + 47, - + 42 * + 4 + 0 ) ) AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3543
SELECT + COALESCE ( - COUNT( * ), 50 + 93 + - + 16, + AVG ( + 28 ) DIV ( - 22 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3543
SELECT + COALESCE ( - COUNT ( * ), 50 + 93 + - + 16, + AVG ( + 28 ) / ( - 22 ) ) AS col2
----
-1

query II rowsort
SELECT + + 97 + - 64 AS col2, + 38
----
33
38

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

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

query I rowsort
SELECT ALL + 27 * - ( 77 ) AS col1
----
-2079

query I rowsort
SELECT + 40 + - 12 AS col0
----
28

onlyif mysql # aggregate syntax: 
query III rowsort label-3548
SELECT + 53 + + ( 52 ), - 86 * + 90 AS col0, + COUNT( * ) + - 29 AS col1
----
105
-7740
-28

skipif mysql # not compatible
query III rowsort label-3548
SELECT + 53 + + ( 52 ), - 86 * + 90 AS col0, + COUNT ( * ) + - 29 AS col1
----
105
-7740
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL - MIN( DISTINCT + ( 0 ) ) + + + COUNT( * ) + ( - + ( + + 36 ) ) - + - COUNT( * ) * 15 col1
----
-20

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL - MIN ( DISTINCT + ( 0 ) ) + + + COUNT ( * ) + ( - + ( + + 36 ) ) - + - COUNT ( * ) * 15 col1
----
-20

query I rowsort
SELECT - 6 + + 48 AS col1
----
42

query I rowsort
SELECT 80 - - 55 * 63 AS col1
----
3545

query I rowsort
SELECT COALESCE ( + - ( - + 93 ), + 71 ) * + + 17 + + 20 AS col0
----
1601

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3554
SELECT ALL 72 + - 30 + - - ( + 34 ) + - COUNT( * ), - 55 + - 48 * - 56 + - COUNT( * ) col0
----
75
2632

skipif mysql # not compatible
query II rowsort label-3554
SELECT ALL 72 + - 30 + - - ( + 34 ) + - COUNT ( * ), - 55 + - 48 * - 56 + - COUNT ( * ) col0
----
75
2632

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT MIN( ALL + 64 ) + - + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-3555
SELECT MIN ( ALL + 64 ) + - + COUNT ( * )
----
63

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3557
SELECT DISTINCT 21 + CASE - - CAST( + CASE - MAX( ALL + 3 ) WHEN + 32 THEN NULL WHEN 79 THEN ( + 44 ) END AS SIGNED ) WHEN + - COUNT( DISTINCT 24 ) * + 76 * - NULLIF ( + 14, + + ( + + COUNT( * ) ) - + AVG ( DISTINCT + CAST( + 39 AS SIGNED ) ) * + ( - + 8 ) ) + 52 THEN - 82 ELSE - 14 * COUNT( * ) + + 21 END col2, + 30
----
28
30

skipif mysql # not compatible
query II rowsort label-3557
SELECT DISTINCT 21 + CASE - - CAST ( + CASE - MAX ( ALL + 3 ) WHEN + 32 THEN NULL WHEN 79 THEN ( + 44 ) END AS INTEGER ) WHEN + - COUNT ( DISTINCT 24 ) * + 76 * - NULLIF ( + 14, + + ( + + COUNT ( * ) ) - + AVG ( DISTINCT + CAST ( + 39 AS INTEGER ) ) * + ( - + 8 ) ) + 52 THEN - 82 ELSE - 14 * COUNT ( * ) + + 21 END col2, + 30
----
28
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT + MIN( ALL + - 45 ) + - 10, COUNT( * ) AS col2
----
-55
1

skipif mysql # not compatible
query II rowsort label-3558
SELECT + MIN ( ALL + - 45 ) + - 10, COUNT ( * ) AS col2
----
-55
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3560
SELECT DISTINCT + NULLIF ( - CAST( NULL AS SIGNED ), 83 ), + CAST( 77 AS SIGNED ) col1
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3560
SELECT DISTINCT + NULLIF ( - CAST ( NULL AS INTEGER ), 83 ), + CAST ( 77 AS INTEGER ) col1
----
NULL
77

query I rowsort
SELECT ALL - 60 + + 98 * 30 + - 69
----
2811

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT DISTINCT + - 99 * - - MAX( ALL - 29 ) * ( + + COUNT( * ) ) AS col0
----
2871

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT + - 99 * - - MAX ( ALL - 29 ) * ( + + COUNT ( * ) ) AS col0
----
2871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3563
SELECT 16 + 52 AS col1, + 80 + - ( + SUM( CAST( + 58 AS SIGNED ) ) )
----
68
22

skipif mysql # not compatible
query II rowsort label-3563
SELECT 16 + 52 AS col1, + 80 + - ( + SUM ( CAST ( + 58 AS INTEGER ) ) )
----
68
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT 65 * MAX( - 40 ) * + 79 + + 48 AS col2
----
-205352

skipif mysql # not compatible
query I rowsort label-3564
SELECT 65 * MAX ( - 40 ) * + 79 + + 48 AS col2
----
-205352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT 68 + - + CAST( - 29 AS SIGNED ) + - - 33 + ( CAST( NULL AS SIGNED ) ) - 46 + - 8 * - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT 68 + - + CAST ( - 29 AS INTEGER ) + - - 33 + ( CAST ( NULL AS INTEGER ) ) - 46 + - 8 * - 43 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 62 * - 47
----
-2914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3567
SELECT ALL - 7 + 76 + COUNT( * ) DIV ( COUNT( * ) ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL - 7 + 76 + COUNT ( * ) / ( COUNT ( * ) ) AS col0
----
70

query II rowsort
SELECT 96 AS col0, + 20 + - NULLIF ( - - 55, + 41 )
----
96
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3569
SELECT 31 col2, 91 DIV - 10 + + - COALESCE ( - 51, - 78 * 4 * COUNT( * ) + CAST( + COUNT( - 53 ) AS SIGNED ) ) - + - ( 61 ) + + 22
----
31
125

skipif mysql # not compatible
query II rowsort label-3569
SELECT 31 col2, 91 / - 10 + + - COALESCE ( - 51, - 78 * 4 * COUNT ( * ) + CAST ( + COUNT ( - 53 ) AS INTEGER ) ) - + - ( 61 ) + + 22
----
31
125

query I rowsort
SELECT 55 + - 57 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT DISTINCT - COALESCE ( - + 65, + 0 * + + COALESCE ( 8, + 5, + 76 * + COUNT( * ) * + 52 + + 20 * + NULLIF ( - + 89, + NULLIF ( + 1, - + 37 ) * + COUNT( * ) + - SUM( 36 ) + - - 73 ) ) )
----
65

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT - COALESCE ( - + 65, + 0 * + + COALESCE ( 8, + 5, + 76 * + COUNT ( * ) * + 52 + + 20 * + NULLIF ( - + 89, + NULLIF ( + 1, - + 37 ) * + COUNT ( * ) + - SUM ( 36 ) + - - 73 ) ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT COUNT( * ) * + 43 + 77 + + 44 + + 9
----
173

skipif mysql # not compatible
query I rowsort label-3572
SELECT COUNT ( * ) * + 43 + 77 + + 44 + + 9
----
173

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3573
SELECT ALL 56 - - - AVG ( - + 37 ) + - + 41 + - 35 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL 56 - - - AVG ( - + 37 ) + - + 41 + - 35 / - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 19, + + 42 ) AS col1
----
-19

query I rowsort
SELECT 90 + 29
----
119

query I rowsort
SELECT 93 * + + 31 AS col0
----
2883

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT ALL - COALESCE ( + - 58, - COUNT( * ), 67 * - 10 * - 12 + + 78 - - - 9 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL - COALESCE ( + - 58, - COUNT ( * ), 67 * - 10 * - 12 + + 78 - - - 9 ) AS col0
----
58

query I rowsort
SELECT 81 * + 13 * + 14 + + 70
----
14812

query II rowsort
SELECT 18, + 35 * + - 44 AS col1
----
18
-1540

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3581
SELECT NULLIF ( + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) ) + - 48 * COALESCE ( 23, + - 65 + - ( + + 22 ) ) - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) ) + - 48 * COALESCE ( 23, + - 65 + - ( + + 22 ) ) - 44
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3583
SELECT COUNT( + 99 ) * + 23 + + - 10, 32 AS col0
----
13
32

skipif mysql # not compatible
query II rowsort label-3583
SELECT COUNT ( + 99 ) * + 23 + + - 10, 32 AS col0
----
13
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ALL - + MIN( - + NULLIF ( + 25, + + 53 ) )
----
25

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL - + MIN ( - + NULLIF ( + 25, + + 53 ) )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3585
SELECT DISTINCT - CAST( - ( CASE - COUNT( * ) WHEN + SUM( + 1 ) THEN MAX( + 47 ) WHEN - 2 THEN ( COUNT( * ) ) END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT - CAST ( - ( CASE - COUNT ( * ) WHEN + SUM ( + 1 ) THEN MAX ( + 47 ) WHEN - 2 THEN ( COUNT ( * ) ) END ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 29 * + ( + + 3 ) AS col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3587
SELECT ALL 77 + 26 * + COUNT( * ) * - CASE - 59 WHEN + + CAST( NULL AS SIGNED ) THEN + 84 / 1 / - 14 - + 99 + - COUNT( * ) WHEN 29 THEN NULL WHEN + - 94 THEN 41 * + 74 - - 69 + + COUNT( * ) + 71 ELSE NULL END - + MAX( ALL - - 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL 77 + 26 * + COUNT ( * ) * - CASE - 59 WHEN + + CAST ( NULL AS INTEGER ) THEN + 84 / 1 / - 14 - + 99 + - COUNT ( * ) WHEN 29 THEN NULL WHEN + - 94 THEN 41 * + 74 - - 69 + + COUNT ( * ) + 71 ELSE NULL END - + MAX ( ALL - - 74 )
----
NULL

query I rowsort
SELECT ALL - + 10 + + + 69 + 78 AS col1
----
137

query I rowsort
SELECT DISTINCT + + 47 + + - 53
----
-6

query I rowsort
SELECT - 4 * 90
----
-360

query I rowsort
SELECT - + 97 * + 95 + 59
----
-9156

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT ALL + 4 + - COUNT( * ) * + 40 + + - 24 - + 71
----
-131

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL + 4 + - COUNT ( * ) * + 40 + + - 24 - + 71
----
-131

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

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

query I rowsort
SELECT ALL + 55 + + 65
----
120

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

skipif mysql # not compatible
query I rowsort label-3595
SELECT ( - COUNT ( * ) ) * - - 24
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-3596
SELECT ALL + - 5 + + 62 + + COUNT( * ), + 6 AS col0
----
58
6

skipif mysql # not compatible
query II rowsort label-3596
SELECT ALL + - 5 + + 62 + + COUNT ( * ), + 6 AS col0
----
58
6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3597
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) / - - 90 * + + 24 / - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT - CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) / - - 90 * + + 24 / - 5 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3598
SELECT ALL COALESCE ( 35, - 76 * + - 43 ) + + 80 + + + 11 * - COALESCE ( - + 21, - - 12 * - MAX( ALL NULLIF ( + 17, 77 ) ) + + 97 - - CAST( + + COUNT( * ) AS SIGNED ) ) * + COUNT( * ) AS col0
----
346

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL COALESCE ( 35, - 76 * + - 43 ) + + 80 + + + 11 * - COALESCE ( - + 21, - - 12 * - MAX ( ALL NULLIF ( + 17, 77 ) ) + + 97 - - CAST ( + + COUNT ( * ) AS INTEGER ) ) * + COUNT ( * ) AS col0
----
346

query I rowsort
SELECT - 76 * - COALESCE ( + 38, 87 ) AS col2
----
2888

query I rowsort
SELECT - 20 + - 4 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT - - NULLIF ( - - SUM( - - 77 ), - ( + SUM( ALL - - NULLIF ( 36, 49 ) ) ) * - + 8 / - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-3601
SELECT - - NULLIF ( - - SUM ( - - 77 ), - ( + SUM ( ALL - - NULLIF ( 36, 49 ) ) ) * - + 8 / - 77 )
----
77

query II rowsort
SELECT ALL 51 - 27 AS col0, 60
----
24
60

query I rowsort
SELECT ( - + 45 ) * 59 AS col2
----
-2655

onlyif mysql # DIV for integer division: 
query I rowsort label-3604
SELECT DISTINCT 4 DIV + + 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT 4 / + + 98 AS col2
----
0

query I rowsort
SELECT 74 * + 60
----
4440

onlyif mysql # DIV for integer division: 
query I rowsort label-3606
SELECT DISTINCT 50 DIV 38 * - 38 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT 50 / 38 * - 38 AS col1
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3607
SELECT 64 * - 49 * - - 38 DIV - COUNT( * ), 78 + - + 14 AS col0
----
119168
64

skipif mysql # not compatible
query II rowsort label-3607
SELECT 64 * - 49 * - - 38 / - COUNT ( * ), 78 + - + 14 AS col0
----
119168
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3608
SELECT ALL 3 * + 68 DIV + - 16 * + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL 3 * + 68 / + - 16 * + COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT + SUM( DISTINCT 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3609
SELECT + SUM ( DISTINCT 52 ) AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3610
SELECT + COALESCE ( - COALESCE ( + ( 31 ), 52 ), 56 * + 31 * - + CAST( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) * - + 60 + + 88 + - - 90 * NULLIF ( + + 11, + 94 * 59 + ( + 14 ) * + + 93 ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3610
SELECT + COALESCE ( - COALESCE ( + ( 31 ), 52 ), 56 * + 31 * - + CAST ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) * - + 60 + + 88 + - - 90 * NULLIF ( + + 11, + 94 * 59 + ( + 14 ) * + + 93 ) ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT COUNT( ALL + NULLIF ( + + COALESCE ( + 54, 7, - 98 ), + ( + + 39 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3611
SELECT COUNT ( ALL + NULLIF ( + + COALESCE ( + 54, 7, - 98 ), + ( + + 39 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL - ( ( - NULLIF ( - SUM( + 47 ), + - COUNT( * ) + + ( + - 80 ) + - 63 - 57 ) ) ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL - ( ( - NULLIF ( - SUM ( + 47 ), + - COUNT ( * ) + + ( + - 80 ) + - 63 - 57 ) ) ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT ALL COUNT( * ) * - 26 * - 33 AS col0
----
858

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL COUNT ( * ) * - 26 * - 33 AS col0
----
858

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT DISTINCT + COALESCE ( - - 78, + + 96 ) * 26 * - 81 - COUNT( * ) + - + 38 + - 53
----
-164360

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT + COALESCE ( - - 78, + + 96 ) * 26 * - 81 - COUNT ( * ) + - + 38 + - 53
----
-164360

onlyif mysql # aggregate syntax: 
query II rowsort label-3615
SELECT ALL + MAX( - ( - ( 23 ) ) ) AS col1, 64
----
23
64

skipif mysql # not compatible
query II rowsort label-3615
SELECT ALL + MAX ( - ( - ( 23 ) ) ) AS col1, 64
----
23
64

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

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL + CAST ( - 55 AS INTEGER ) col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT ALL + - COUNT( * ) * + 97 + - - 57 - + - 38
----
-2

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL + - COUNT ( * ) * + 97 + - - 57 - + - 38
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT - - COUNT( DISTINCT + 46 ) * - 18 - + + ( + 27 ) * + + 89 - 67 + + COUNT( * )
----
-2487

skipif mysql # not compatible
query I rowsort label-3618
SELECT - - COUNT ( DISTINCT + 46 ) * - 18 - + + ( + 27 ) * + + 89 - 67 + + COUNT ( * )
----
-2487

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3619
SELECT ALL + 93 * - COUNT( * ) * - COUNT( ALL 44 ) + + - CASE + 27 WHEN - - 65 / + 67 THEN - - CAST( NULL AS SIGNED ) ELSE NULL END + - - ( - 98 ) + + + 53 * + COALESCE ( + 20, 25 ) * + + 10 * + 83 * + ( + 19 ) + 38 + + COUNT( * ) * + - COALESCE ( - - 66, + 14, - MIN( - COALESCE ( - + 31, - 71, - CAST( NULL AS SIGNED ) * 71 ) ) ), COUNT( * ) + + NULLIF ( + - 11, + 13 - + 72 * + 4 ) AS col2
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-3619
SELECT ALL + 93 * - COUNT ( * ) * - COUNT ( ALL 44 ) + + - CASE + 27 WHEN - - 65 / + 67 THEN - - CAST ( NULL AS INTEGER ) ELSE NULL END + - - ( - 98 ) + + + 53 * + COALESCE ( + 20, 25 ) * + + 10 * + 83 * + ( + 19 ) + 38 + + COUNT ( * ) * + - COALESCE ( - - 66, + 14, - MIN ( - COALESCE ( - + 31, - 71, - CAST ( NULL AS INTEGER ) * 71 ) ) ), COUNT ( * ) + + NULLIF ( + - 11, + 13 - + 72 * + 4 ) AS col2
----
NULL
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT - - COUNT( * ) * - - 88 + 86 * + 28 col2
----
2496

skipif mysql # not compatible
query I rowsort label-3620
SELECT - - COUNT ( * ) * - - 88 + 86 * + 28 col2
----
2496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3621
SELECT - - COUNT( * ) * - + COUNT( * ) * - - 77 DIV 96 + - - 80 + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-3621
SELECT - - COUNT ( * ) * - + COUNT ( * ) * - - 77 / 96 + - - 80 + COUNT ( * )
----
81

query I rowsort
SELECT - 24 + - 78 * - 93 AS col0
----
7230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3623
SELECT ALL - CAST( 51 AS SIGNED ) + - 18 * 67 AS col0
----
-1257

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL - CAST ( 51 AS INTEGER ) + - 18 * 67 AS col0
----
-1257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT ALL CAST( + ( 31 ) AS SIGNED ) + 41 + - - 41 AS col0
----
113

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL CAST ( + ( 31 ) AS INTEGER ) + 41 + - - 41 AS col0
----
113

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3626
SELECT - + 43 + - NULLIF ( 2, - + 55 ) DIV + - 51 + - 35 + + - 48 + 24
----
-102

skipif mysql # not compatible
query I rowsort label-3626
SELECT - + 43 + - NULLIF ( 2, - + 55 ) / + - 51 + - 35 + + - 48 + 24
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT - SUM( DISTINCT - - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-3627
SELECT - SUM ( DISTINCT - - 14 )
----
-14

query I rowsort
SELECT ALL 98 * - ( - 31 ) col1
----
3038

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3629
SELECT + 3 * + - CAST( + + CAST( - 19 AS SIGNED ) AS SIGNED ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3629
SELECT + 3 * + - CAST ( + + CAST ( - 19 AS INTEGER ) AS INTEGER ) AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3630
SELECT ALL 9 * MIN( - - CAST( 36 AS SIGNED ) )
----
324

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL 9 * MIN ( - - CAST ( 36 AS INTEGER ) )
----
324

query I rowsort
SELECT + 56 + - + 58 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT + 67 * + NULLIF ( ( ( ( - + 26 ) ) ), + + COUNT( * ) * 26 ) col2
----
-1742

skipif mysql # not compatible
query I rowsort label-3632
SELECT + 67 * + NULLIF ( ( ( ( - + 26 ) ) ), + + COUNT ( * ) * 26 ) col2
----
-1742

query I rowsort
SELECT + 73 * 54 AS col1
----
3942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3634
SELECT ALL + 62 / + 2 * + + 64 * 82 + + 81 - - CAST( NULL AS SIGNED ) + 71 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL + 62 / + 2 * + + 64 * 82 + + 81 - - CAST ( NULL AS INTEGER ) + 71 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3635
SELECT + COALESCE ( - 61, COUNT( * ) + + 74, - 54 ) * + ( 3 ) + - 59 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT + COALESCE ( - 61, COUNT ( * ) + + 74, - 54 ) * + ( 3 ) + - 59 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3636
SELECT DISTINCT 49 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT 49 / + 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT DISTINCT + 52 * + - 82 * - 55 * - COUNT( DISTINCT - - 14 ) + + + MIN( NULLIF ( ( 57 ), 72 * 36 + - - 59 ) ) AS col1
----
-234463

skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT + 52 * + - 82 * - 55 * - COUNT ( DISTINCT - - 14 ) + + + MIN ( NULLIF ( ( 57 ), 72 * 36 + - - 59 ) ) AS col1
----
-234463

onlyif mysql # aggregate syntax: 
query II rowsort label-3638
SELECT + + 49 * + MIN( + 54 ), - MAX( + 15 ) - MIN( DISTINCT 85 ) * + 60 AS col2
----
2646
-5115

skipif mysql # not compatible
query II rowsort label-3638
SELECT + + 49 * + MIN ( + 54 ), - MAX ( + 15 ) - MIN ( DISTINCT 85 ) * + 60 AS col2
----
2646
-5115

query I rowsort
SELECT - - 96 * - 58 + - 75
----
-5643

query I rowsort
SELECT ALL + - 94 * 13 + - 8 + - 73 * + 35 + 64 AS col0
----
-3721

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3641
SELECT - COUNT( * ) * - 14 * + 97 + - 87 + + CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT - COUNT ( * ) * - 14 * + 97 + - 87 + + CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) + - 16
----
NULL

query I rowsort
SELECT + 81 * - - ( 42 ) + + 94 AS col0
----
3496

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3643
SELECT + 98, + 93 DIV - COUNT( * ) col2
----
98
-93

skipif mysql # not compatible
query II rowsort label-3643
SELECT + 98, + 93 / - COUNT ( * ) col2
----
98
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT - 55 + - - 70 + COUNT( * ) * ( - 83 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-3644
SELECT - 55 + - - 70 + COUNT ( * ) * ( - 83 ) AS col0
----
-68

query I rowsort
SELECT ALL - 24 * - - 9 + - - 4
----
-212

query II rowsort
SELECT ALL + + 64 AS col2, 0 * - 94
----
64
0

query I rowsort
SELECT ALL 30 * - 9 - + 10
----
-280

query I rowsort
SELECT - + 16 * 94 + + NULLIF ( + 27, + + AVG ( 59 ) + - 17 )
----
-1477

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT - + COALESCE ( - - ( - COUNT( * ) ), - 86, + SUM( + 73 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3649
SELECT - + COALESCE ( - - ( - COUNT ( * ) ), - 86, + SUM ( + 73 ) ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3650
SELECT - CASE + + 59 WHEN 84 * - 39 THEN 23 ELSE NULL END * - 94 + 16 - + - 71 col0, COUNT( - - 45 ) DIV 44 DIV 54 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3650
SELECT - CASE + + 59 WHEN 84 * - 39 THEN 23 ELSE NULL END * - 94 + 16 - + - 71 col0, COUNT ( - - 45 ) / 44 / 54 AS col0
----
NULL
0

query I rowsort
SELECT DISTINCT - 76 * + 46 * 27
----
-94392

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

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

query I rowsort
SELECT ALL ( + - 59 ) AS col0
----
-59

query II rowsort
SELECT 12, - 30 AS col0
----
12
-30

query I rowsort
SELECT - 97 + + 46 + - - 68 * + 13 * 46 AS col1
----
40613

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT - CASE + 77 WHEN + MIN( ALL - + 51 ) THEN 73 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT - CASE + 77 WHEN + MIN ( ALL - + 51 ) THEN 73 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT - ( - COUNT( DISTINCT - 19 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3657
SELECT - ( - COUNT ( DISTINCT - 19 ) ) AS col0
----
1

query II rowsort
SELECT 28, - 0 AS col2
----
28
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL - MIN( - 38 ) + 22 - + ( + 15 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL - MIN ( - 38 ) + 22 - + ( + 15 ) AS col2
----
45

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

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

query II rowsort
SELECT 42 AS col2, 75 AS col2
----
42
75

query II rowsort
SELECT 2 + + 71 AS col1, - 50 * 49 AS col0
----
73
-2450

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

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

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

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL - 87 + 99 + - ( + - COUNT ( * ) ) - 99 * - COUNT ( * ) AS col0
----
112

onlyif mysql # DIV for integer division: 
query II rowsort label-3665
SELECT + 83, 24 - + 72 DIV + 43 AS col2
----
83
23

skipif mysql # not compatible
query II rowsort label-3665
SELECT + 83, 24 - + 72 / + 43 AS col2
----
83
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3667
SELECT COALESCE ( + 33, 44 + + 52 + + 11 * + + COUNT( ALL - ( - CAST( NULL AS SIGNED ) ) ) * 27 ) * 17 + - 25 AS col2, COUNT( * )
----
536
1

skipif mysql # not compatible
query II rowsort label-3667
SELECT COALESCE ( + 33, 44 + + 52 + + 11 * + + COUNT ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) * 27 ) * 17 + - 25 AS col2, COUNT ( * )
----
536
1

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

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

query I rowsort
SELECT - 99 * + - 73 - 52 AS col0
----
7175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3670
SELECT - + ( - - CASE + 45 WHEN + 65 THEN NULL WHEN + ( - CAST( + - 31 AS SIGNED ) ) THEN 66 + 30 + SUM( ALL 45 ) - + 18 ELSE NULL END ) * 11 - AVG ( 9 ) - - + COUNT( * ) * - 28 + + + 20 + 28 col1, 0 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3670
SELECT - + ( - - CASE + 45 WHEN + 65 THEN NULL WHEN + ( - CAST ( + - 31 AS INTEGER ) ) THEN 66 + 30 + SUM ( ALL 45 ) - + 18 ELSE NULL END ) * 11 - AVG ( 9 ) - - + COUNT ( * ) * - 28 + + + 20 + 28 col1, 0 AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3671
SELECT ALL + + 74 + - + COUNT( * ) * 19 * 87 * + COUNT( ALL + - 27 ), + 95 AS col2
----
-1579
95

skipif mysql # not compatible
query II rowsort label-3671
SELECT ALL + + 74 + - + COUNT ( * ) * 19 * 87 * + COUNT ( ALL + - 27 ), + 95 AS col2
----
-1579
95

query II rowsort
SELECT 73, - 18 AS col0
----
73
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3673
SELECT - 15 * + NULLIF ( + 7, 19 ) * - CAST( + 28 AS SIGNED ) AS col1
----
2940

skipif mysql # not compatible
query I rowsort label-3673
SELECT - 15 * + NULLIF ( + 7, 19 ) * - CAST ( + 28 AS INTEGER ) AS col1
----
2940

onlyif mysql # aggregate syntax: 
query II rowsort label-3674
SELECT + + MAX( ALL + 55 ) AS col2, 78 * - - 16
----
55
1248

skipif mysql # not compatible
query II rowsort label-3674
SELECT + + MAX ( ALL + 55 ) AS col2, 78 * - - 16
----
55
1248

query I rowsort
SELECT - 73 + + - 58
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT + CAST( - 46 AS SIGNED ) * + + 63 AS col1
----
-2898

skipif mysql # not compatible
query I rowsort label-3676
SELECT + CAST ( - 46 AS INTEGER ) * + + 63 AS col1
----
-2898

query I rowsort
SELECT + 65 * - 32 * - 62
----
128960

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3678
SELECT + 15 * + - 42 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3678
SELECT + 15 * + - 42 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT ( + 77 ) * + + 37 * 8
----
22792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3680
SELECT + CAST( NULL AS SIGNED ) + + ( - + 54 ) * - 10 + + + MIN( + ( - + 58 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3680
SELECT + CAST ( NULL AS INTEGER ) + + ( - + 54 ) * - 10 + + + MIN ( + ( - + 58 ) ) AS col2
----
NULL

query I rowsort
SELECT - 31 * + 60
----
-1860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3682
SELECT DISTINCT 1 * MIN( ALL - 83 ) + - + 15 + - SUM( ALL + 86 ) + + 67 AS col1, + 97 + 75 + ( - COUNT( * ) ) + + CAST( NULL AS SIGNED ) * - 20 + + 14 / 29 + - COUNT( * ) col2
----
-117
NULL

skipif mysql # not compatible
query II rowsort label-3682
SELECT DISTINCT 1 * MIN ( ALL - 83 ) + - + 15 + - SUM ( ALL + 86 ) + + 67 AS col1, + 97 + 75 + ( - COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) * - 20 + + 14 / 29 + - COUNT ( * ) col2
----
-117
NULL

query I rowsort
SELECT 3 + 27 * + - 95 AS col0
----
-2562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3684
SELECT ALL - 0 + + SUM( ALL - 42 ) * + - 29 * + CAST( NULL AS SIGNED ) + - + 80 + - 7 * + 70 + - 77 * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL - 0 + + SUM ( ALL - 42 ) * + - 29 * + CAST ( NULL AS INTEGER ) + - + 80 + - 7 * + 70 + - 77 * + 99
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3685
SELECT 3 + + + 19 + - 54 DIV + - ( + ( ( NULLIF ( - 65, - + 78 ) ) ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-3685
SELECT 3 + + + 19 + - 54 / + - ( + ( ( NULLIF ( - 65, - + 78 ) ) ) ) AS col0
----
22

query I rowsort
SELECT ALL + 27 * + 21 AS col0
----
567

onlyif mysql # aggregate syntax: 
query II rowsort label-3687
SELECT ALL - COUNT( * ) + - + 4 AS col1, 95 + + 50 AS col2
----
-5
145

skipif mysql # not compatible
query II rowsort label-3687
SELECT ALL - COUNT ( * ) + - + 4 AS col1, 95 + + 50 AS col2
----
-5
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL - 55 + - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL - 55 + - COUNT ( * )
----
-56

query I rowsort
SELECT 25 - + 71 + 28
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT DISTINCT - 82 + - 2 * - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT - 82 + - 2 * - COUNT ( * )
----
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3691
SELECT 15 + + - 47, CAST( NULL AS DECIMAL ) + 43 col1
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-3691
SELECT 15 + + - 47, CAST ( NULL AS REAL ) + 43 col1
----
-32
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3692
SELECT 18 * + 63, + 84 DIV COUNT( * ) AS col2
----
1134
84

skipif mysql # not compatible
query II rowsort label-3692
SELECT 18 * + 63, + 84 / COUNT ( * ) AS col2
----
1134
84

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

skipif mysql # not compatible
query I rowsort label-3693
SELECT COUNT ( ALL + + 70 ) AS col0
----
1

query I rowsort
SELECT - 42 * - + 53 + 83
----
2309

onlyif mysql # aggregate syntax: 
query II rowsort label-3695
SELECT COUNT( * ) * + 41 AS col2, + 6 + + ( - 80 )
----
41
-74

skipif mysql # not compatible
query II rowsort label-3695
SELECT COUNT ( * ) * + 41 AS col2, + 6 + + ( - 80 )
----
41
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3696
SELECT ALL - + COALESCE ( + MAX( + - 83 ), 8 * - + CAST( + - 71 AS SIGNED ) ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL - + COALESCE ( + MAX ( + - 83 ), 8 * - + CAST ( + - 71 AS INTEGER ) ) AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3697
SELECT DISTINCT - MIN( + 86 ) AS col1, 99 * CASE - 9 WHEN - + 9 THEN NULL WHEN 63 THEN - - 26 WHEN + + 38 * COALESCE ( + + 62, 58, 17 + 85 ) - + 89 + - COUNT( * ) THEN + + 41 + 90 END + - 7 * - 7 * - 94 * + + 32 + CAST( - 22 AS SIGNED )
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-3697
SELECT DISTINCT - MIN ( + 86 ) AS col1, 99 * CASE - 9 WHEN - + 9 THEN NULL WHEN 63 THEN - - 26 WHEN + + 38 * COALESCE ( + + 62, 58, 17 + 85 ) - + 89 + - COUNT ( * ) THEN + + 41 + 90 END + - 7 * - 7 * - 94 * + + 32 + CAST ( - 22 AS INTEGER )
----
-86
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3698
SELECT 95 + - 66 DIV - ( + COUNT( * ) )
----
161

skipif mysql # not compatible
query I rowsort label-3698
SELECT 95 + - 66 / - ( + COUNT ( * ) )
----
161

query II rowsort
SELECT DISTINCT + + 96 - - 15, 25 AS col0
----
111
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL + 94 * + MAX( - 25 )
----
-2350

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL + 94 * + MAX ( - 25 )
----
-2350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3701
SELECT - 67 * - 99 * - 77 + CAST( ( - 8 ) AS SIGNED ) * + ( + 43 ) * - COUNT( * ) + + 63 * + + 78 * - 22 + + 28 * COUNT( * ) + + - 85 + + - COUNT( * ) AS col2
----
-618563

skipif mysql # not compatible
query I rowsort label-3701
SELECT - 67 * - 99 * - 77 + CAST ( ( - 8 ) AS INTEGER ) * + ( + 43 ) * - COUNT ( * ) + + 63 * + + 78 * - 22 + + 28 * COUNT ( * ) + + - 85 + + - COUNT ( * ) AS col2
----
-618563

query I rowsort
SELECT + 70 * + - 89
----
-6230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3703
SELECT 95 * + 5 * - CASE - 36 WHEN 39 DIV + 20 + - ( + - COALESCE ( 68, + 34 - - MAX( + - 78 ) - - 21 ) ) + + 56 + + 58 - - - COALESCE ( + 9, + 20 * - - 82 DIV - - 75 * - 59, NULLIF ( - ( 54 ), 32 ) ) THEN NULL ELSE - - 0 END DIV - 49 col0
----
0

skipif mysql # not compatible
query I rowsort label-3703
SELECT 95 * + 5 * - CASE - 36 WHEN 39 / + 20 + - ( + - COALESCE ( 68, + 34 - - MAX ( + - 78 ) - - 21 ) ) + + 56 + + 58 - - - COALESCE ( + 9, + 20 * - - 82 / - - 75 * - 59, NULLIF ( - ( 54 ), 32 ) ) THEN NULL ELSE - - 0 END / - 49 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3704
SELECT + 54 + - + 62 DIV 33
----
53

skipif mysql # not compatible
query I rowsort label-3704
SELECT + 54 + - + 62 / 33
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT + MIN( + 9 ) col2
----
9

skipif mysql # not compatible
query I rowsort label-3705
SELECT + MIN ( + 9 ) col2
----
9

query I rowsort
SELECT 23 * - 56 - - 38
----
-1250

onlyif mysql # aggregate syntax: 
query II rowsort label-3707
SELECT 80 col2, COUNT( DISTINCT - 69 )
----
80
1

skipif mysql # not compatible
query II rowsort label-3707
SELECT 80 col2, COUNT ( DISTINCT - 69 )
----
80
1

query I rowsort
SELECT COALESCE ( 22, - - 70, + 71 ) * 35 * + + 80
----
61600

query II rowsort
SELECT 67, - 81 AS col1
----
67
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT ALL COUNT( * ) * - 37 * 63
----
-2331

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL COUNT ( * ) * - 37 * 63
----
-2331

query I rowsort
SELECT DISTINCT 44 + 13 + - 97 * - 43 * + - 27 * + 8 AS col1
----
-900879

query I rowsort
SELECT - NULLIF ( - ( 63 ), 50 * + 32 + + + 14 + 54 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT DISTINCT - 87 + + + 11 * + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT - 87 + + + 11 * + COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-3714
SELECT DISTINCT 19 AS col2, + 40 * + + 85 * 26 + MIN( + + 36 ) * - ( 19 ) + - 97 + - 51 col1
----
19
87568

skipif mysql # not compatible
query II rowsort label-3714
SELECT DISTINCT 19 AS col2, + 40 * + + 85 * 26 + MIN ( + + 36 ) * - ( 19 ) + - 97 + - 51 col1
----
19
87568

query I rowsort
SELECT + 61 + - 94 AS col2
----
-33

query I rowsort
SELECT - 84 + + + 9
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3717
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) * 38 * 18 * - 59 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3717
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 38 * 18 * - 59 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT - SUM( ALL + + 93 ) + ( 77 ) * + 56 - - + 91 * + 9
----
5038

skipif mysql # not compatible
query I rowsort label-3718
SELECT - SUM ( ALL + + 93 ) + ( 77 ) * + 56 - - + 91 * + 9
----
5038

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

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

query II rowsort
SELECT ALL - 69 - - 25 * + 23 * 59 AS col1, - 99
----
33856
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3721
SELECT - 36 AS col2, + COUNT( * ) DIV + - 56
----
-36
0

skipif mysql # not compatible
query II rowsort label-3721
SELECT - 36 AS col2, + COUNT ( * ) / + - 56
----
-36
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + 7 + - MAX( 13 ) * 0 col0
----
7

skipif mysql # not compatible
query I rowsort label-3722
SELECT + 7 + - MAX ( 13 ) * 0 col0
----
7

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

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL COUNT ( * ) / - + 51 * + 25 * + 15 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT - SUM( ALL 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-3724
SELECT - SUM ( ALL 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT + - ( - COUNT( - 59 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3725
SELECT + - ( - COUNT ( - 59 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3726
SELECT + COUNT( * ) AS col1, 44 AS col2
----
1
44

skipif mysql # not compatible
query II rowsort label-3726
SELECT + COUNT ( * ) AS col1, 44 AS col2
----
1
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT ALL + 65 * COUNT( * ) col1
----
65

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL + 65 * COUNT ( * ) col1
----
65

query I rowsort
SELECT - + 79 * - NULLIF ( ( 98 ), 0 + 43 ) AS col0
----
7742

query I rowsort
SELECT 68 * + 67 - - + 15 AS col0
----
4571

query I rowsort
SELECT - - 10 * - 61
----
-610

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3731
SELECT DISTINCT + 41 AS col1, - 2 - + 37 + + 70 DIV + MAX( DISTINCT + + 76 )
----
41
-39

skipif mysql # not compatible
query II rowsort label-3731
SELECT DISTINCT + 41 AS col1, - 2 - + 37 + + 70 / + MAX ( DISTINCT + + 76 )
----
41
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3732
SELECT - COUNT( * ) * - 65 + + 68 AS col0, 5 DIV 72 + - + 48
----
133
-48

skipif mysql # not compatible
query II rowsort label-3732
SELECT - COUNT ( * ) * - 65 + + 68 AS col0, 5 / 72 + - + 48
----
133
-48

query I rowsort
SELECT - + 83 + - - 24
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT COALESCE ( + COUNT( * ), + 16 * - + 46, 17 * - - 98 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3734
SELECT COALESCE ( + COUNT ( * ), + 16 * - + 46, 17 * - - 98 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3735
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN + NULLIF ( - 3, + 76 ) * - 41 THEN + 75 WHEN - + 82 THEN NULL WHEN + 44 + - 65 THEN NULL WHEN - + 41 / + - 1 * - 17 * - - COALESCE ( + 87, - + COUNT( * ) ) + + MAX( DISTINCT + 10 ) - - - 29 + + - 80 - + CAST( NULL AS SIGNED ) + + ( 32 ) + CAST( NULL AS SIGNED ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3735
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN + NULLIF ( - 3, + 76 ) * - 41 THEN + 75 WHEN - + 82 THEN NULL WHEN + 44 + - 65 THEN NULL WHEN - + 41 / + - 1 * - 17 * - - COALESCE ( + 87, - + COUNT ( * ) ) + + MAX ( DISTINCT + 10 ) - - - 29 + + - 80 - + CAST ( NULL AS INTEGER ) + + ( 32 ) + CAST ( NULL AS INTEGER ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 0 * - 57 + + 84
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3737
SELECT ALL + 53 * + + 28 * CASE - 59 WHEN + - 45 THEN + NULLIF ( + - 51, + CAST( + 45 AS SIGNED ) ) + - - 86 END * 83 / - - 25 + - - COALESCE ( - COUNT( * ), 95 * + CASE + 90 WHEN + + 21 + 58 THEN 45 WHEN - + 97 * 7 * 48 * - 5 THEN NULL WHEN 90 * - COUNT( * ) THEN - 46 / 63 - 72 WHEN + 58 THEN NULL ELSE - 79 END / + 75 + + 62 + + 84 + + + 90 + - - 83 * - AVG ( - 94 ) / - - 89 * 84 ) + 69 * 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL + 53 * + + 28 * CASE - 59 WHEN + - 45 THEN + NULLIF ( + - 51, + CAST ( + 45 AS INTEGER ) ) + - - 86 END * 83 / - - 25 + - - COALESCE ( - COUNT ( * ), 95 * + CASE + 90 WHEN + + 21 + 58 THEN 45 WHEN - + 97 * 7 * 48 * - 5 THEN NULL WHEN 90 * - COUNT ( * ) THEN - 46 / 63 - 72 WHEN + 58 THEN NULL ELSE - 79 END / + 75 + + 62 + + 84 + + + 90 + - - 83 * - AVG ( - 94 ) / - - 89 * 84 ) + 69 * 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT + 97 + - + MAX( DISTINCT - 16 ) col1
----
113

skipif mysql # not compatible
query I rowsort label-3738
SELECT + 97 + - + MAX ( DISTINCT - 16 ) col1
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3739
SELECT ALL 38 * + + 72 * + COUNT( * ) DIV - COUNT( * ) + + 89 AS col0
----
-2647

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL 38 * + + 72 * + COUNT ( * ) / - COUNT ( * ) + + 89 AS col0
----
-2647

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3740
SELECT ALL + 37 * CAST( NULL AS SIGNED ) + 17 / - ( - 88 ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL + 37 * CAST ( NULL AS INTEGER ) + 17 / - ( - 88 ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT + 91 * + + 17
----
1547

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT - 3 + - - 27 DIV - ( + + 50 ) col2
----
-3

skipif mysql # not compatible
query I rowsort label-3742
SELECT - 3 + - - 27 / - ( + + 50 ) col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT DISTINCT 32 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT 32 / 51
----
0

query II rowsort
SELECT + 55 * - - 48 AS col2, + 17 AS col1
----
2640
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT + COUNT( * ) + - - 38 * + + 63 AS col1
----
2395

skipif mysql # not compatible
query I rowsort label-3745
SELECT + COUNT ( * ) + - - 38 * + + 63 AS col1
----
2395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3746
SELECT DISTINCT - COALESCE ( 47, - COUNT( * ), 94 ) DIV MAX( 86 )
----
0

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - COALESCE ( 47, - COUNT ( * ), 94 ) / MAX ( 86 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3747
SELECT + 7 DIV 10
----
0

skipif mysql # not compatible
query I rowsort label-3747
SELECT + 7 / 10
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3748
SELECT - ( 9 ) AS col0, 39 * + ( CAST( NULL AS DECIMAL ) ) AS col1
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-3748
SELECT - ( 9 ) AS col0, 39 * + ( CAST ( NULL AS REAL ) ) AS col1
----
-9
NULL

query I rowsort
SELECT ALL ( - 41 ) - - ( ( 50 ) ) AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT ALL CAST( - 48 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL CAST ( - 48 AS INTEGER )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT ALL - NULLIF ( ( - - MIN( DISTINCT + 15 ) ), - ( + 49 ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL - NULLIF ( ( - - MIN ( DISTINCT + 15 ) ), - ( + 49 ) ) AS col0
----
-15

query I rowsort
SELECT + - 64 + + 55
----
-9

query I rowsort
SELECT + + 0 * 59
----
0

query II rowsort
SELECT + + 89 + + + 87, 18 AS col2
----
176
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3755
SELECT + + 13 DIV 73 + 61 * + - 35 + + + 93 * + 9 * + 70
----
56455

skipif mysql # not compatible
query I rowsort label-3755
SELECT + + 13 / 73 + 61 * + - 35 + + + 93 * + 9 * + 70
----
56455

onlyif mysql # DIV for integer division: 
query I rowsort label-3756
SELECT ALL 99 DIV - 3 + + + 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL 99 / - 3 + + + 33 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3757
SELECT DISTINCT COUNT( * ) DIV - 30 * 50 * CASE + COUNT( * ) WHEN + 69 THEN + 28 + - 98 - + + 42 ELSE + 45 + + COUNT( * ) * + - 14 END
----
0

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT COUNT ( * ) / - 30 * 50 * CASE + COUNT ( * ) WHEN + 69 THEN + 28 + - 98 - + + 42 ELSE + 45 + + COUNT ( * ) * + - 14 END
----
0

query I rowsort
SELECT - - 73 + 60 + 18 + + 86 AS col0
----
237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3759
SELECT ALL 4 DIV - 70 + - + COUNT( 90 ) + + COUNT( * ) DIV ( - - 26 ) + 24 + + COUNT( * ) * + ( - + COUNT( ALL - 91 ) )
----
22

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL 4 / - 70 + - + COUNT ( 90 ) + + COUNT ( * ) / ( - - 26 ) + 24 + + COUNT ( * ) * + ( - + COUNT ( ALL - 91 ) )
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-3760
SELECT DISTINCT 67 * + + 86 - + - COUNT( * ) - 35, - 88 * 48 * - + 69 AS col0
----
5728
291456

skipif mysql # not compatible
query II rowsort label-3760
SELECT DISTINCT 67 * + + 86 - + - COUNT ( * ) - 35, - 88 * 48 * - + 69 AS col0
----
5728
291456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3761
SELECT ALL ( + 90 ) DIV - - 63 + + MAX( + 82 ) + + 85 AS col2
----
168

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL ( + 90 ) / - - 63 + + MAX ( + 82 ) + + 85 AS col2
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3762
SELECT - 11 + 35 - + COUNT( * ) + 65 / + COALESCE ( + 41, - 63 * - + COUNT( * ) ) * 18 * + 2 * + - COUNT( * ) * 87 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3762
SELECT - 11 + 35 - + COUNT ( * ) + 65 / + COALESCE ( + 41, - 63 * - + COUNT ( * ) ) * 18 * + 2 * + - COUNT ( * ) * 87 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3763
SELECT + - 12 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-3763
SELECT + - 12 / 82
----
0

query I rowsort
SELECT 7 * NULLIF ( - 29, + 21 ) + 90 AS col1
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-3765
SELECT - - 12 DIV 45 * 55 + + 97 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3765
SELECT - - 12 / 45 * 55 + + 97 AS col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3766
SELECT DISTINCT 68 + + ( 25 ) + 41 DIV 49
----
93

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT 68 + + ( 25 ) + 41 / 49
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT 3 * - - ( - - SUM( DISTINCT + - 83 ) )
----
-249

skipif mysql # not compatible
query I rowsort label-3767
SELECT 3 * - - ( - - SUM ( DISTINCT + - 83 ) )
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT ALL - 68 + + 3 + - COUNT( * ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL - 68 + + 3 + - COUNT ( * ) AS col0
----
-66

query I rowsort
SELECT DISTINCT 44 * 95 col0
----
4180

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT 28 * + + COUNT( * ) * + 30 * - 47 AS col0
----
-39480

skipif mysql # not compatible
query I rowsort label-3770
SELECT 28 * + + COUNT ( * ) * + 30 * - 47 AS col0
----
-39480

query II rowsort
SELECT + 14 col0, - 41 AS col1
----
14
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3772
SELECT DISTINCT - ( - CAST( + - 92 AS SIGNED ) ) * - - ( COUNT( * ) ) / + CASE + + 29 WHEN - SUM( + 37 ) THEN - + 43 END * + ( - - 68 ) * + + 76 - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - ( - CAST ( + - 92 AS INTEGER ) ) * - - ( COUNT ( * ) ) / + CASE + + 29 WHEN - SUM ( + 37 ) THEN - + 43 END * + ( - - 68 ) * + + 76 - 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ALL + MAX( - 22 ) - + 20
----
-42

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL + MAX ( - 22 ) - + 20
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-3774
SELECT - 69, COUNT( * ) + + + MIN( ALL 55 ) AS col0
----
-69
56

skipif mysql # not compatible
query II rowsort label-3774
SELECT - 69, COUNT ( * ) + + + MIN ( ALL 55 ) AS col0
----
-69
56

query II rowsort
SELECT ALL 25 AS col1, - 42 col1
----
25
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT DISTINCT - COUNT( * ) * - NULLIF ( 50, + 9 / - COUNT( ALL 65 ) )
----
50

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT - COUNT ( * ) * - NULLIF ( 50, + 9 / - COUNT ( ALL 65 ) )
----
50

query II rowsort
SELECT 59 AS col2, + 7
----
59
7

query II rowsort
SELECT ALL 90 AS col0, - 82 * - 48 col0
----
90
3936

query I rowsort
SELECT 80 * 27 * + - 14 col1
----
-30240

query I rowsort
SELECT - 79 + + 35 AS col1
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3781
SELECT ALL + COUNT( * ) DIV + 9 * 90
----
0

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL + COUNT ( * ) / + 9 * 90
----
0

query I rowsort
SELECT - 23 * 76
----
-1748

query II rowsort
SELECT - 96 AS col1, - 22 + 13 + - + CASE - 41 WHEN - NULLIF ( 96, - 1 ) THEN + 41 END + - NULLIF ( - 36, + 20 + + + 72 ) AS col2
----
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT + 46 * + 70 + + + COUNT( * ) + 76
----
3297

skipif mysql # not compatible
query I rowsort label-3784
SELECT + 46 * + 70 + + + COUNT ( * ) + 76
----
3297

query I rowsort
SELECT ALL + - 47 + + 21
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3786
SELECT ALL 99 + - - 7 + + MAX( DISTINCT - - 8 ) * 83, + MIN( - 9 ) AS col1
----
770
-9

skipif mysql # not compatible
query II rowsort label-3786
SELECT ALL 99 + - - 7 + + MAX ( DISTINCT - - 8 ) * 83, + MIN ( - 9 ) AS col1
----
770
-9

query I rowsort
SELECT DISTINCT 38 * - + 27 AS col2
----
-1026

query I rowsort
SELECT ALL 56 + - 3 AS col2
----
53

query I rowsort
SELECT 29 + - 30 AS col0
----
-1

query I rowsort
SELECT ALL 79 + 69
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT + SUM( + ( ( + 72 ) ) )
----
72

skipif mysql # not compatible
query I rowsort label-3791
SELECT + SUM ( + ( ( + 72 ) ) )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT DISTINCT + MAX( ALL 87 ) - + - 5
----
92

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT + MAX ( ALL 87 ) - + - 5
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3793
SELECT ALL - 0 - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL - 0 - - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3794
SELECT DISTINCT 21 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT 21 / + 79
----
0

query I rowsort
SELECT 22 * - - 16 AS col2
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT SUM( ALL - 9 ) + + + 69 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3796
SELECT SUM ( ALL - 9 ) + + + 69 AS col0
----
60

query I rowsort
SELECT - 29 * 83 - + 28
----
-2435

query I rowsort
SELECT 10 * + 31 * + 25 + + COALESCE ( 38, + 86 * + 10 )
----
7788

query I rowsort
SELECT 38 - 22 col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3800
SELECT - 29 * + 8 + - + CAST( NULL AS DECIMAL ) + - 66 * + COUNT( * ) * + + 44 * + + NULLIF ( + 17, COUNT( * ) * - + AVG ( + + 27 ) - CAST( - + 75 AS SIGNED ) * - 47 * 34 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT - 29 * + 8 + - + CAST ( NULL AS REAL ) + - 66 * + COUNT ( * ) * + + 44 * + + NULLIF ( + 17, COUNT ( * ) * - + AVG ( + + 27 ) - CAST ( - + 75 AS INTEGER ) * - 47 * 34 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT - 66 * COUNT( * ) + + 35
----
-31

skipif mysql # not compatible
query I rowsort label-3801
SELECT - 66 * COUNT ( * ) + + 35
----
-31

query I rowsort
SELECT 37 + - + ( - - 75 )
----
-38

query I rowsort
SELECT 53 * - 25 AS col2
----
-1325

query I rowsort
SELECT 66 * 10 + 73 AS col2
----
733

query II rowsort
SELECT 7 AS col0, 91 AS col2
----
7
91

query I rowsort
SELECT ALL - 78 * - 25 AS col1
----
1950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3807
SELECT COUNT( * ) * + MIN( ALL 33 ) DIV 10 + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-3807
SELECT COUNT ( * ) * + MIN ( ALL 33 ) / 10 + + COUNT ( * )
----
4

query I rowsort
SELECT ALL - 86 + + + 30 AS col2
----
-56

query II rowsort
SELECT - 30 + NULLIF ( - 10, 38 ) AS col2, 27 * 48
----
-40
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT DISTINCT - 75 + + + ( - MAX( ALL 0 ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT - 75 + + + ( - MAX ( ALL 0 ) ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT ALL + - 45 * 70 * - 60 - 95 * + - COUNT( * )
----
189095

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL + - 45 * 70 * - 60 - 95 * + - COUNT ( * )
----
189095

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT DISTINCT 83 + + + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT 83 + + + COUNT ( * )
----
84

query II rowsort
SELECT ALL + 21 AS col1, + 80
----
21
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT 67 * 68 * + 78 * + + COUNT( ALL - 0 ) + - 73 + + 84
----
355379

skipif mysql # not compatible
query I rowsort label-3814
SELECT 67 * 68 * + 78 * + + COUNT ( ALL - 0 ) + - 73 + + 84
----
355379

query II rowsort
SELECT - + 10 AS col2, - 49 AS col0
----
-10
-49

query I rowsort
SELECT + 80 - 51
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3817
SELECT DISTINCT + COUNT( * ) + CAST( 46 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT + COUNT ( * ) + CAST ( 46 AS INTEGER )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT COUNT( ALL 43 ) + 95 - 63
----
33

skipif mysql # not compatible
query I rowsort label-3818
SELECT COUNT ( ALL 43 ) + 95 - 63
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3819
SELECT DISTINCT + 74 DIV 29 * - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT + 74 / 29 * - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT ALL COUNT( * ) * ( - + COUNT( * ) ) - 53 + 0 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL COUNT ( * ) * ( - + COUNT ( * ) ) - 53 + 0 AS col0
----
-54

query I rowsort
SELECT ALL - 60 * + ( + + 12 ) - 29 + - 60 + - 15 + 63 * + 99 + + ( - 24 ) * - 54 * - 7 * + + 92 * - 18 AS col2
----
15028645

onlyif mysql # aggregate syntax: 
query II rowsort label-3822
SELECT ALL 80 * 17 AS col2, + ( - COUNT( * ) )
----
1360
-1

skipif mysql # not compatible
query II rowsort label-3822
SELECT ALL 80 * 17 AS col2, + ( - COUNT ( * ) )
----
1360
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT DISTINCT COUNT( * ) * + 56 * - + 50 * + 81 * + + 26 * - - COALESCE ( - - NULLIF ( 14, MIN( + 49 ) / - 93 - + ( - - 99 ) ), COUNT( * ) ) AS col2
----
-82555200

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT COUNT ( * ) * + 56 * - + 50 * + 81 * + + 26 * - - COALESCE ( - - NULLIF ( 14, MIN ( + 49 ) / - 93 - + ( - - 99 ) ), COUNT ( * ) ) AS col2
----
-82555200

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT - 63 * SUM( + 53 ) * - COUNT( - - 34 ) + + + 70
----
3409

skipif mysql # not compatible
query I rowsort label-3824
SELECT - 63 * SUM ( + 53 ) * - COUNT ( - - 34 ) + + + 70
----
3409

query I rowsort
SELECT + 62 * - 3
----
-186

query I rowsort
SELECT + 20 + 30 * 40 * ( - + 82 )
----
-98380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3827
SELECT ALL ( + NULLIF ( - + ( - + MIN( - 91 ) ), + 16 + 84 ) ) DIV - 8 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL ( + NULLIF ( - + ( - + MIN ( - 91 ) ), + 16 + 84 ) ) / - 8 AS col2
----
11

query I rowsort
SELECT + NULLIF ( 1, - 80 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL ( + + 33 ) * + COUNT( * ) col1
----
33

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL ( + + 33 ) * + COUNT ( * ) col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT + 72 - - ( + ( COUNT( * ) ) ) + 88
----
161

skipif mysql # not compatible
query I rowsort label-3830
SELECT + 72 - - ( + ( COUNT ( * ) ) ) + 88
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT SUM( DISTINCT + + 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3831
SELECT SUM ( DISTINCT + + 27 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3832
SELECT + NULLIF ( + - 89, 29 ) AS col1, + ( - COUNT( DISTINCT + 75 ) )
----
-89
-1

skipif mysql # not compatible
query II rowsort label-3832
SELECT + NULLIF ( + - 89, 29 ) AS col1, + ( - COUNT ( DISTINCT + 75 ) )
----
-89
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT - 72 + + 56 + MIN( - 97 ) AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-3833
SELECT - 72 + + 56 + MIN ( - 97 ) AS col2
----
-113

query I rowsort
SELECT - ( - 42 ) * 89 AS col2
----
3738

query I rowsort
SELECT - CASE + 71 WHEN - + 74 + + - 15 THEN + 51 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3836
SELECT - ( + CAST( NULL AS DECIMAL ) ) / - 62 + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT - ( + CAST ( NULL AS REAL ) ) / - 62 + + 54
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3837
SELECT ALL + 34 + - + 4 + + - COUNT( * ) * + + COUNT( * ) DIV CASE - 94 WHEN + COUNT( - 99 ) THEN NULL WHEN - - 93 + 63 THEN NULL ELSE - 78 END * COUNT( * ) + + 50 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + 34 + - + 4 + + - COUNT ( * ) * + + COUNT ( * ) / CASE - 94 WHEN + COUNT ( - 99 ) THEN NULL WHEN - - 93 + 63 THEN NULL ELSE - 78 END * COUNT ( * ) + + 50 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT + COUNT( * ) + + 41
----
42

skipif mysql # not compatible
query I rowsort label-3838
SELECT + COUNT ( * ) + + 41
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-3839
SELECT - + 52 - 68 AS col2, CASE - COUNT( * ) WHEN + 38 THEN + 49 + - + 65 ELSE - 85 END * 4 + + 82
----
-120
-258

skipif mysql # not compatible
query II rowsort label-3839
SELECT - + 52 - 68 AS col2, CASE - COUNT ( * ) WHEN + 38 THEN + 49 + - + 65 ELSE - 85 END * 4 + + 82
----
-120
-258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3840
SELECT - 28 DIV + 52 * - - 83 + COUNT( * ) + 76 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-3840
SELECT - 28 / + 52 * - - 83 + COUNT ( * ) + 76 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT ALL - 97 + - 33 + - 4 + NULLIF ( - - 74, + - COUNT( * ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL - 97 + - 33 + - 4 + NULLIF ( - - 74, + - COUNT ( * ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 85 + - 18 + - 55 + - + 88 AS col1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3843
SELECT DISTINCT - + 80 + - + CAST( NULL AS SIGNED ) + + - 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT - + 80 + - + CAST ( NULL AS INTEGER ) + + - 43 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3844
SELECT ALL SUM( + 73 ), 72 DIV + NULLIF ( 42, + - ( + 20 ) ) AS col2
----
73
1

skipif mysql # not compatible
query II rowsort label-3844
SELECT ALL SUM ( + 73 ), 72 / + NULLIF ( 42, + - ( + 20 ) ) AS col2
----
73
1

query I rowsort
SELECT - - ( + + 48 ) - - 17
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT - MIN( - 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3846
SELECT - MIN ( - 28 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3847
SELECT - - 50 * 40 AS col0, COUNT( * ) + 42
----
2000
43

skipif mysql # not compatible
query II rowsort label-3847
SELECT - - 50 * 40 AS col0, COUNT ( * ) + 42
----
2000
43

query II rowsort
SELECT ALL + 45 * 58 col0, 59
----
2610
59

query II rowsort
SELECT DISTINCT - 81 - + 50 AS col1, ( - 96 ) AS col2
----
-131
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT ALL MAX( - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL MAX ( - 23 )
----
-23

query I rowsort
SELECT - 71 * - 27 * - 31 AS col1
----
-59427

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3852
SELECT ALL + COUNT( * ) DIV COUNT( * ) - - 3 + 24
----
28

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL + COUNT ( * ) / COUNT ( * ) - - 3 + 24
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT ALL + CAST( - + ( + 75 ) AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL + CAST ( - + ( + 75 ) AS INTEGER )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3854
SELECT CAST( + MAX( - + 70 ) AS SIGNED ) AS col1, - 78
----
-70
-78

skipif mysql # not compatible
query II rowsort label-3854
SELECT CAST ( + MAX ( - + 70 ) AS INTEGER ) AS col1, - 78
----
-70
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-3855
SELECT - 56 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-3855
SELECT - 56 / 99
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3856
SELECT - 21 DIV 95 - 56 - + - 68
----
12

skipif mysql # not compatible
query I rowsort label-3856
SELECT - 21 / 95 - 56 - + - 68
----
12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3857
SELECT - 9 - - + CAST( + - 67 AS SIGNED ) + + + 62 + + CAST( NULL AS DECIMAL ) * + - ( + - 78 ) * - 66 * + NULLIF ( + + ( 26 ), 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT - 9 - - + CAST ( + - 67 AS INTEGER ) + + + 62 + + CAST ( NULL AS REAL ) * + - ( + - 78 ) * - 66 * + NULLIF ( + + ( 26 ), 48 )
----
NULL

query I rowsort
SELECT ALL 20 * 79 AS col0
----
1580

query I rowsort
SELECT DISTINCT - 65 * - + 70
----
4550

onlyif mysql # DIV for integer division: 
query I rowsort label-3860
SELECT + 61 DIV - + 50 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3860
SELECT + 61 / - + 50 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3861
SELECT ALL + 7 DIV + + 32 + - 77 * 72
----
-5544

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL + 7 / + + 32 + - 77 * 72
----
-5544

query I rowsort
SELECT - 73 + + 74 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3863
SELECT ALL + 98 col2, COUNT( * )
----
98
1

skipif mysql # not compatible
query II rowsort label-3863
SELECT ALL + 98 col2, COUNT ( * )
----
98
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT 84 * - + 76 * 2 + - CAST( 36 AS SIGNED )
----
-12804

skipif mysql # not compatible
query I rowsort label-3864
SELECT 84 * - + 76 * 2 + - CAST ( 36 AS INTEGER )
----
-12804

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT + 31 - 71 * 61 + + + 94 * + COUNT( * )
----
-4206

skipif mysql # not compatible
query I rowsort label-3865
SELECT + 31 - 71 * 61 + + + 94 * + COUNT ( * )
----
-4206

query I rowsort
SELECT + NULLIF ( - + NULLIF ( 66, - 45 / + 89 + 34 / COALESCE ( - 86, - 31 ) ), + 7 )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-3867
SELECT ALL 7 * - - 7 + + + 31 * 48 DIV + 88 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL 7 * - - 7 + + + 31 * 48 / + 88 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT + 20 * + 9 * - 43 * - 29 + - + 9 * + COUNT( * )
----
224451

skipif mysql # not compatible
query I rowsort label-3868
SELECT + 20 * + 9 * - 43 * - 29 + - + 9 * + COUNT ( * )
----
224451

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT ALL + CAST( + - 3 AS SIGNED ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL + CAST ( + - 3 AS INTEGER ) col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3870
SELECT + 3 + - 70 + - - 44 * + + 26, ( - - 88 ) + MAX( DISTINCT + - 90 ) * + 20 * - ( 50 ) AS col2
----
1077
90088

skipif mysql # not compatible
query II rowsort label-3870
SELECT + 3 + - 70 + - - 44 * + + 26, ( - - 88 ) + MAX ( DISTINCT + - 90 ) * + 20 * - ( 50 ) AS col2
----
1077
90088

query I rowsort
SELECT DISTINCT + - ( + 24 )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3872
SELECT + - COUNT( * ) DIV - + COALESCE ( 89, + 50 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3872
SELECT + - COUNT ( * ) / - + COALESCE ( 89, + 50 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT COALESCE ( 77, 62, - 76 ) * + COALESCE ( + COUNT( * ), 52 + + 39 + - 55, - - COALESCE ( NULLIF ( + 68, 47 ), - 73 * - 79 ) * 35 ) + + + COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-3873
SELECT COALESCE ( 77, 62, - 76 ) * + COALESCE ( + COUNT ( * ), 52 + + 39 + - 55, - - COALESCE ( NULLIF ( + 68, 47 ), - 73 * - 79 ) * 35 ) + + + COUNT ( * ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT DISTINCT MIN( 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT MIN ( 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT + SUM( DISTINCT + - 24 ) + - + 45 + + 28
----
-41

skipif mysql # not compatible
query I rowsort label-3875
SELECT + SUM ( DISTINCT + - 24 ) + - + 45 + + 28
----
-41

query I rowsort
SELECT 73 * - ( + 20 ) - - - 38 col2
----
-1498

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT ALL 89 * + - COUNT( * ) * - 22 - + 19 AS col2
----
1939

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL 89 * + - COUNT ( * ) * - 22 - + 19 AS col2
----
1939

query I rowsort
SELECT - 33 * 50 AS col1
----
-1650

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT + 42 + 12 DIV + 8 col0
----
43

skipif mysql # not compatible
query I rowsort label-3879
SELECT + 42 + 12 / + 8 col0
----
43

query I rowsort
SELECT ALL 16 - + 92
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3881
SELECT 27 - - NULLIF ( + + 97, - 48 ) + + MIN( + 1 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT 27 - - NULLIF ( + + 97, - 48 ) + + MIN ( + 1 ) * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + 71, 61 * - CASE + 82 WHEN 6 THEN NULL WHEN - - 96 THEN NULL ELSE - 66 END AS col1
----
71
4026

query I rowsort
SELECT + 8 + 39 + - 22 AS col2
----
25

query I rowsort
SELECT 73 + + 61
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT ALL NULLIF ( + 10, 7 - + - 58 * - COALESCE ( 79, - - MAX( - 43 ), SUM( ALL - 84 ) - - COUNT( * ) + + COUNT( * ) ) * + 41 * + 65 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL NULLIF ( + 10, 7 - + - 58 * - COALESCE ( 79, - - MAX ( - 43 ), SUM ( ALL - 84 ) - - COUNT ( * ) + + COUNT ( * ) ) * + 41 * + 65 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT COUNT( * ) + + 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3886
SELECT COUNT ( * ) + + 0 AS col1
----
1

query I rowsort
SELECT 12 * 23 col0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT COUNT( * ) + 17 + - - 45 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3888
SELECT COUNT ( * ) + 17 + - - 45 AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3889
SELECT ALL + 78 * 18 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL + 78 * 18 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3890
SELECT DISTINCT 56 + - 83 DIV ( - 56 ) - - 10 + - COUNT( * ) DIV - 36, 18 AS col1
----
67
18

skipif mysql # not compatible
query II rowsort label-3890
SELECT DISTINCT 56 + - 83 / ( - 56 ) - - 10 + - COUNT ( * ) / - 36, 18 AS col1
----
67
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT DISTINCT - MIN( + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT - MIN ( + 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT DISTINCT - 33 + - 86 + - COUNT( * )
----
-120

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT - 33 + - 86 + - COUNT ( * )
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ALL - CASE - COUNT( * ) WHEN NULLIF ( + 24, + 42 ) THEN + - 4 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL - CASE - COUNT ( * ) WHEN NULLIF ( + 24, + 42 ) THEN + - 4 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3894
SELECT 27 * 8, - 70 * - 43 - 0 + - + ( + 89 ) - + ( - CASE - - 98 WHEN + - 78 - 88 + - - SUM( DISTINCT - - 44 ) * + 18 THEN 23 + - 35 WHEN + - 42 - - 60 THEN 49 - 58 ELSE - - 93 END ) - - 11 * 63 AS col1
----
216
3707

skipif mysql # not compatible
query II rowsort label-3894
SELECT 27 * 8, - 70 * - 43 - 0 + - + ( + 89 ) - + ( - CASE - - 98 WHEN + - 78 - 88 + - - SUM ( DISTINCT - - 44 ) * + 18 THEN 23 + - 35 WHEN + - 42 - - 60 THEN 49 - 58 ELSE - - 93 END ) - - 11 * 63 AS col1
----
216
3707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3895
SELECT DISTINCT - 34 + 96 * - NULLIF ( - ( - COALESCE ( - + 81, + 0 * - - SUM( DISTINCT - 43 ) + - 5, - NULLIF ( 11, + CAST( + COUNT( * ) AS SIGNED ) ) ) ), 30 ) AS col0
----
7742

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT - 34 + 96 * - NULLIF ( - ( - COALESCE ( - + 81, + 0 * - - SUM ( DISTINCT - 43 ) + - 5, - NULLIF ( 11, + CAST ( + COUNT ( * ) AS INTEGER ) ) ) ), 30 ) AS col0
----
7742

onlyif mysql # aggregate syntax: 
query II rowsort label-3896
SELECT 82 + COUNT( * ) AS col0, - 37
----
83
-37

skipif mysql # not compatible
query II rowsort label-3896
SELECT 82 + COUNT ( * ) AS col0, - 37
----
83
-37

query I rowsort
SELECT 53 * + 75 AS col0
----
3975

onlyif mysql # DIV for integer division: 
query I rowsort label-3898
SELECT ALL - 43 DIV + + 37 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL - 43 / + + 37 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL COUNT( * ) * - 95 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL COUNT ( * ) * - 95 AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3900
SELECT ALL 66 * - + CAST( NULLIF ( 35, - 16 ) AS SIGNED ) AS col2
----
-2310

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL 66 * - + CAST ( NULLIF ( 35, - 16 ) AS INTEGER ) AS col2
----
-2310

query I rowsort
SELECT ALL - 17 + 11 * + 77
----
830

onlyif mysql # aggregate syntax: 
query II rowsort label-3902
SELECT - ( CASE + 43 WHEN + AVG ( + 36 ) + + ( + - COUNT( + 72 ) ) * - + 76 + + 80 THEN + 25 / - - COUNT( * ) + 96 WHEN - - 30 * - 78 THEN NULL WHEN ( + SUM( + - 29 ) ) THEN NULL END ) * + 98 AS col0, 95 * 85 * + 14 AS col1
----
NULL
113050

skipif mysql # not compatible
query II rowsort label-3902
SELECT - ( CASE + 43 WHEN + AVG ( + 36 ) + + ( + - COUNT ( + 72 ) ) * - + 76 + + 80 THEN + 25 / - - COUNT ( * ) + 96 WHEN - - 30 * - 78 THEN NULL WHEN ( + SUM ( + - 29 ) ) THEN NULL END ) * + 98 AS col0, 95 * 85 * + 14 AS col1
----
NULL
113050

query I rowsort
SELECT ALL COALESCE ( - + 56, + - 64 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-3904
SELECT DISTINCT ( + COUNT( * ) ) AS col1, 91
----
1
91

skipif mysql # not compatible
query II rowsort label-3904
SELECT DISTINCT ( + COUNT ( * ) ) AS col1, 91
----
1
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3905
SELECT ALL + COALESCE ( + - CAST( NULL AS SIGNED ), COALESCE ( - 2, - - 29 DIV - 92 + - + 57, + - 0 - + COUNT( * ) + 41 ), + 24 + 54 + - 21 ) * 81 AS col0
----
-162

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL + COALESCE ( + - CAST ( NULL AS INTEGER ), COALESCE ( - 2, - - 29 / - 92 + - + 57, + - 0 - + COUNT ( * ) + 41 ), + 24 + 54 + - 21 ) * 81 AS col0
----
-162

query I rowsort
SELECT 19 * 41 AS col0
----
779

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT - + CASE - + COUNT( DISTINCT NULLIF ( + - 13, + + 53 / + - 5 ) ) WHEN + + 60 THEN NULL ELSE - 65 END
----
65

skipif mysql # not compatible
query I rowsort label-3907
SELECT - + CASE - + COUNT ( DISTINCT NULLIF ( + - 13, + + 53 / + - 5 ) ) WHEN + + 60 THEN NULL ELSE - 65 END
----
65

query I rowsort
SELECT + ( - 33 ) + - ( + - 3 ) * 17 AS col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3909
SELECT 11 DIV + - 80 + 71 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-3909
SELECT 11 / + - 80 + 71 AS col0
----
71

query I rowsort
SELECT ALL 23 * + 65 + 47 AS col2
----
1542

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT 98 * + 24 + 51 + + - 10 + - - 2 * + + CASE - - 63 WHEN COUNT( * ) + 86 THEN + 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT 98 * + 24 + 51 + + - 10 + - - 2 * + + CASE - - 63 WHEN COUNT ( * ) + 86 THEN + 31 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT 42 + CASE + MIN( + 20 ) WHEN + 26 * + 92 THEN + 67 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT 42 + CASE + MIN ( + 20 ) WHEN + 26 * + 92 THEN + 67 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT - COUNT( DISTINCT + + 46 ) - - 14 - 25
----
-12

skipif mysql # not compatible
query I rowsort label-3913
SELECT - COUNT ( DISTINCT + + 46 ) - - 14 - 25
----
-12

query II rowsort
SELECT DISTINCT + 29 * 32 AS col2, - 88 - + 71 AS col2
----
928
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT 90 DIV COALESCE ( 65, - 44, 20 ) * + + 42
----
42

skipif mysql # not compatible
query I rowsort label-3915
SELECT 90 / COALESCE ( 65, - 44, 20 ) * + + 42
----
42

query I rowsort
SELECT 47 * - 67
----
-3149

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT COUNT( * ) * CASE + + MIN( + 62 ) WHEN - - ( + - AVG ( ALL + 23 ) ) + - 9 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3917
SELECT COUNT ( * ) * CASE + + MIN ( + 62 ) WHEN - - ( + - AVG ( ALL + 23 ) ) + - 9 THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL CASE + 83 WHEN 51 THEN + ( + 70 ) WHEN 91 THEN - 27 WHEN 68 THEN SUM( + 63 ) ELSE NULL END * - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL CASE + 83 WHEN 51 THEN + ( + 70 ) WHEN 91 THEN - 27 WHEN 68 THEN SUM ( + 63 ) ELSE NULL END * - + 46
----
NULL

query I rowsort
SELECT DISTINCT 56 + - COALESCE ( + 38, 24 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL ( ( + 61 ) ) + + COALESCE ( 41, - COUNT( * ) + ( + SUM( - + 62 ) ) + - 53 ) col2
----
102

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL ( ( + 61 ) ) + + COALESCE ( 41, - COUNT ( * ) + ( + SUM ( - + 62 ) ) + - 53 ) col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT ALL - 19 / - 31 * CASE - + MIN( DISTINCT 91 ) WHEN - 83 + + 98 THEN - + 50 WHEN 48 THEN 28 * - 51 + + 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL - 19 / - 31 * CASE - + MIN ( DISTINCT 91 ) WHEN - 83 + + 98 THEN - + 50 WHEN 48 THEN 28 * - 51 + + 38 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT COALESCE ( 63, - - 92 * - 60, - COALESCE ( + 63, + COALESCE ( - - 54, - 56, + + 61 - + 83 ) ) ) DIV - + 43 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3922
SELECT COALESCE ( 63, - - 92 * - 60, - COALESCE ( + 63, + COALESCE ( - - 54, - 56, + + 61 - + 83 ) ) ) / - + 43 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT ALL MIN( + 20 ) + 94
----
114

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL MIN ( + 20 ) + 94
----
114

query I rowsort
SELECT 47 * - - 79 * - 25 AS col1
----
-92825

query I rowsort
SELECT ALL NULLIF ( - 23, - + 9 ) + + COALESCE ( + 44, 46 + 51 )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3926
SELECT 20 DIV - 62 + - MAX( - 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3926
SELECT 20 / - 62 + - MAX ( - 19 ) AS col0
----
19

query I rowsort
SELECT 72 * + 92 * + - 27
----
-178848

query I rowsort
SELECT ALL 56 * - 86 + 40
----
-4776

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT SUM( 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3929
SELECT SUM ( 12 ) AS col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3930
SELECT + 74 DIV + 39 - + ( + + ( + COUNT( * ) ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3930
SELECT + 74 / + 39 - + ( + + ( + COUNT ( * ) ) ) col0
----
0

query I rowsort
SELECT DISTINCT - 59 * - 39 + 53 AS col2
----
2354

query I rowsort
SELECT + 87 * - 44 + 49 + 2 AS col1
----
-3777

query I rowsort
SELECT DISTINCT - 30 * - - 96 AS col2
----
-2880

onlyif mysql # aggregate syntax: 
query II rowsort label-3934
SELECT ALL - COALESCE ( COUNT( * ), + + 95 ) AS col0, 29 * - 93 - + 78 AS col1
----
-1
-2775

skipif mysql # not compatible
query II rowsort label-3934
SELECT ALL - COALESCE ( COUNT ( * ), + + 95 ) AS col0, 29 * - 93 - + 78 AS col1
----
-1
-2775

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT SUM( ALL 0 ) + - - COUNT( * ) + + + 16 col2
----
17

skipif mysql # not compatible
query I rowsort label-3935
SELECT SUM ( ALL 0 ) + - - COUNT ( * ) + + + 16 col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3936
SELECT + + ( CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT + + ( CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3937
SELECT - CAST( NULL AS SIGNED ) + + 6 + - ( + AVG ( ALL + + CAST( NULL AS SIGNED ) ) ) * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3937
SELECT - CAST ( NULL AS INTEGER ) + + 6 + - ( + AVG ( ALL + + CAST ( NULL AS INTEGER ) ) ) * - 24
----
NULL

query I rowsort
SELECT - - NULLIF ( - - 62, 72 * - - 82 ) * + CASE + - 84 WHEN - + 81 THEN - - 67 + - 16 ELSE - 22 END
----
-1364

query I rowsort
SELECT - - 63 + + 9 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT ALL + 57 - - SUM( DISTINCT - 96 )
----
-39

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL + 57 - - SUM ( DISTINCT - 96 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT - + 88 + - - 99 + + 55 * + COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3941
SELECT - + 88 + - - 99 + + 55 * + COUNT ( * ) AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3942
SELECT DISTINCT + COALESCE ( 31, 47 + + 8 + + 31 * + MIN( ( + - 71 ) ) - - - 67 - - - CAST( - 98 AS SIGNED ) ) * - - 85 + + 43
----
2678

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT + COALESCE ( 31, 47 + + 8 + + 31 * + MIN ( ( + - 71 ) ) - - - 67 - - - CAST ( - 98 AS INTEGER ) ) * - - 85 + + 43
----
2678

query I rowsort
SELECT - 63 + - 98 * + + ( + + 2 ) * - 79
----
15421

query I rowsort
SELECT + + 29 * - - 85 + - NULLIF ( + 72, + 60 ) AS col0
----
2393

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT - + ( - - CASE + 46 WHEN - 60 + - - 79 THEN - COUNT( * ) * 42 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT - + ( - - CASE + 46 WHEN - 60 + - - 79 THEN - COUNT ( * ) * 42 END )
----
NULL

query I rowsort
SELECT - - 11 * + ( 21 ) * - - 23
----
5313

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT + - COUNT( * ) * + 71 + - 23
----
-94

skipif mysql # not compatible
query I rowsort label-3947
SELECT + - COUNT ( * ) * + 71 + - 23
----
-94

query II rowsort
SELECT ALL + 0 + + 98 + + 11 AS col2, + ( - - 11 )
----
109
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3949
SELECT ALL AVG ( ALL CASE - + COALESCE ( - COALESCE ( + 75, ( 60 ) * - CAST( 1 AS SIGNED ) - - 6, - + 12 ), - - ( + 99 ), 78 + + CAST( - + 30 AS SIGNED ) ) WHEN - 76 THEN - 29 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL AVG ( ALL CASE - + COALESCE ( - COALESCE ( + 75, ( 60 ) * - CAST ( 1 AS INTEGER ) - - 6, - + 12 ), - - ( + 99 ), 78 + + CAST ( - + 30 AS INTEGER ) ) WHEN - 76 THEN - 29 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3950
SELECT DISTINCT - 72 + CAST( - 97 AS SIGNED ) AS col2
----
-169

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT - 72 + CAST ( - 97 AS INTEGER ) AS col2
----
-169

query I rowsort
SELECT ALL + CASE - 38 WHEN + 61 THEN 41 WHEN - AVG ( + 67 ) THEN NULL ELSE NULL END + + - 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT + 9 + - + SUM( ALL + + 83 )
----
-74

skipif mysql # not compatible
query I rowsort label-3952
SELECT + 9 + - + SUM ( ALL + + 83 )
----
-74

query I rowsort
SELECT ALL - 78 + + ( + + 31 ) AS col1
----
-47

query I rowsort
SELECT ALL ( + - 34 ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT + MIN( - 71 ) + + + 40 + - + 64 + 38 + - + MAX( - 53 ) * + 0 * + 94 * + COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-3955
SELECT + MIN ( - 71 ) + + + 40 + - + 64 + 38 + - + MAX ( - 53 ) * + 0 * + 94 * + COUNT ( * ) AS col1
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3956
SELECT ALL 97 + + 69 + + COUNT( * ) DIV - 27 AS col0, COUNT( * ) AS col1
----
166
1

skipif mysql # not compatible
query II rowsort label-3956
SELECT ALL 97 + + 69 + + COUNT ( * ) / - 27 AS col0, COUNT ( * ) AS col1
----
166
1

query II rowsort
SELECT DISTINCT 97 AS col1, - 29
----
97
-29

query I rowsort
SELECT - 74 + - + 75 - - 38 AS col0
----
-111

query I rowsort
SELECT + 79 + + 54 * + + 95
----
5209

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT - COALESCE ( - 40, - - MAX( DISTINCT - 3 ), - COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-3960
SELECT - COALESCE ( - 40, - - MAX ( DISTINCT - 3 ), - COUNT ( * ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT + 56 + MAX( ALL - 75 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3961
SELECT + 56 + MAX ( ALL - 75 ) AS col0
----
-19

query II rowsort
SELECT 56 AS col2, - 24 * - 68
----
56
1632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3963
SELECT ALL 38 + 24 + + COUNT( * ) DIV 43
----
62

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL 38 + 24 + + COUNT ( * ) / 43
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3964
SELECT + 43 + MAX( ALL - 47 ) DIV - - 71
----
43

skipif mysql # not compatible
query I rowsort label-3964
SELECT + 43 + MAX ( ALL - 47 ) / - - 71
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT - NULLIF ( 76, - COUNT( * ) ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-3965
SELECT - NULLIF ( 76, - COUNT ( * ) ) col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT ALL ( MIN( 12 ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL ( MIN ( 12 ) ) AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3967
SELECT DISTINCT CASE + 84 WHEN 35 THEN NULL WHEN 91 THEN + 58 + - 23 + 78 * + 86 + - 98 + + 2 + + CAST( - 38 AS SIGNED ) ELSE NULL END + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT CASE + 84 WHEN 35 THEN NULL WHEN 91 THEN + 58 + - 23 + 78 * + 86 + - 98 + + 2 + + CAST ( - 38 AS INTEGER ) ELSE NULL END + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT ALL MAX( DISTINCT + - 24 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL MAX ( DISTINCT + - 24 ) AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3969
SELECT DISTINCT + 1 col1, - 13 * CASE - + 21 WHEN + + COUNT( 7 ) / + 24 + 31 THEN - 20 WHEN - 51 THEN - CAST( 15 AS SIGNED ) * + + COUNT( * ) * ( + 43 ) ELSE NULL END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3969
SELECT DISTINCT + 1 col1, - 13 * CASE - + 21 WHEN + + COUNT ( 7 ) / + 24 + 31 THEN - 20 WHEN - 51 THEN - CAST ( 15 AS INTEGER ) * + + COUNT ( * ) * ( + 43 ) ELSE NULL END
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3970
SELECT DISTINCT + 71 DIV + COUNT( - - 33 ) col2
----
71

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + 71 / + COUNT ( - - 33 ) col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3971
SELECT ALL 39 DIV + - 79 * COUNT( * ) - - ( + 76 ) * 80 * + 37 AS col0
----
224960

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL 39 / + - 79 * COUNT ( * ) - - ( + 76 ) * 80 * + 37 AS col0
----
224960

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT + ( - - NULLIF ( - + NULLIF ( - 3, + MIN( DISTINCT - 1 ) * - 71 + + 31 + 38 + 32 * - COUNT( * ) + - + ( - 5 ) ), COUNT( * ) ) ) * COUNT( * ) * ( + 51 ) AS col1
----
153

skipif mysql # not compatible
query I rowsort label-3972
SELECT + ( - - NULLIF ( - + NULLIF ( - 3, + MIN ( DISTINCT - 1 ) * - 71 + + 31 + 38 + 32 * - COUNT ( * ) + - + ( - 5 ) ), COUNT ( * ) ) ) * COUNT ( * ) * ( + 51 ) AS col1
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT ALL 54 DIV - - 14
----
3

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL 54 / - - 14
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT SUM( - - 19 ) * 40 + - 27 AS col0
----
733

skipif mysql # not compatible
query I rowsort label-3974
SELECT SUM ( - - 19 ) * 40 + - 27 AS col0
----
733

query II rowsort
SELECT ALL + 43 AS col1, + 47 AS col0
----
43
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT + - COUNT( * ) * + + 35 + + + 70
----
35

skipif mysql # not compatible
query I rowsort label-3976
SELECT + - COUNT ( * ) * + + 35 + + + 70
----
35

query II rowsort
SELECT - 44, - 9 col2
----
-44
-9

query I rowsort
SELECT ALL + + ( - ( + 42 ) )
----
-42

query II rowsort
SELECT - 28 AS col2, 72 * + 0 AS col0
----
-28
0

query I rowsort
SELECT ALL + + 58 * + 17 AS col2
----
986

onlyif mysql # aggregate syntax: 
query II rowsort label-3981
SELECT + + 25 col2, COUNT( * )
----
25
1

skipif mysql # not compatible
query II rowsort label-3981
SELECT + + 25 col2, COUNT ( * )
----
25
1

query I rowsort
SELECT ALL + - ( - 4 ) AS col2
----
4

query I rowsort
SELECT - + 0 * + + 8 + 71 + + 37
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3984
SELECT ALL + - CAST( - 18 AS SIGNED ) * + 77
----
1386

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL + - CAST ( - 18 AS INTEGER ) * + 77
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT ALL + COUNT( - 54 )
----
1

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL + COUNT ( - 54 )
----
1

query I rowsort
SELECT + ( - - 41 )
----
41

query I rowsort
SELECT + ( - - 34 ) AS col2
----
34

query I rowsort
SELECT - 44 + + 88
----
44

query II rowsort
SELECT + 13, 40 + + 95 AS col2
----
13
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3990
SELECT DISTINCT + 12 DIV 28 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT + 12 / 28 + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT + - 46 * + + 94 + + + 22
----
-4302

query I rowsort
SELECT DISTINCT - - 80 * 82 + + + 63 AS col1
----
6623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3993
SELECT ALL + 79 * - + 38 col2, 24 + - + SUM( + - CAST( NULL AS SIGNED ) ) + - + 35
----
-3002
NULL

skipif mysql # not compatible
query II rowsort label-3993
SELECT ALL + 79 * - + 38 col2, 24 + - + SUM ( + - CAST ( NULL AS INTEGER ) ) + - + 35
----
-3002
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3994
SELECT - 10 DIV + 96 * - - 71 - - MAX( 99 )
----
99

skipif mysql # not compatible
query I rowsort label-3994
SELECT - 10 / + 96 * - - 71 - - MAX ( 99 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3995
SELECT DISTINCT + + COALESCE ( 89, + + 91 DIV - 52 - + - ( + + 70 ) + + - CASE + ( COUNT( * ) ) WHEN 52 THEN NULL WHEN CASE - 99 WHEN + ( - + CASE - + 85 WHEN 67 * - 5 DIV + 51 THEN + - COALESCE ( 70, + 12 ) END ) THEN NULL ELSE - 95 * - COUNT( * ) + - - COALESCE ( + + 92, AVG ( 36 ) ) + 89 + 36 END * - ( 54 ) + + 21 THEN NULL WHEN 46 THEN NULL ELSE - 73 END * + CAST( NULL AS SIGNED ) * - 57 ) DIV + 94 * - 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT + + COALESCE ( 89, + + 91 / - 52 - + - ( + + 70 ) + + - CASE + ( COUNT ( * ) ) WHEN 52 THEN NULL WHEN CASE - 99 WHEN + ( - + CASE - + 85 WHEN 67 * - 5 / + 51 THEN + - COALESCE ( 70, + 12 ) END ) THEN NULL ELSE - 95 * - COUNT ( * ) + - - COALESCE ( + + 92, AVG ( 36 ) ) + 89 + 36 END * - ( 54 ) + + 21 THEN NULL WHEN 46 THEN NULL ELSE - 73 END * + CAST ( NULL AS INTEGER ) * - 57 ) / + 94 * - 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT ALL 98 + - - 23 + 40 - - 9 + + 38 * 51 * + ( - 23 ) * + 22 * - COUNT( * ) AS col2
----
980798

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL 98 + - - 23 + 40 - - 9 + + 38 * 51 * + ( - 23 ) * + 22 * - COUNT ( * ) AS col2
----
980798

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT - 74 DIV + + ( + - 4 )
----
18

skipif mysql # not compatible
query I rowsort label-3997
SELECT - 74 / + + ( + - 4 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT - CASE + 43 WHEN + 35 + + - 0 + - 63 - - + MAX( - - 81 ) * - + 98 * - 66 + + - 86 * + MIN( + 53 ) * - 10 THEN NULL ELSE - - ( + - 16 ) END * 0
----
0

skipif mysql # not compatible
query I rowsort label-3998
SELECT - CASE + 43 WHEN + 35 + + - 0 + - 63 - - + MAX ( - - 81 ) * - + 98 * - 66 + + - 86 * + MIN ( + 53 ) * - 10 THEN NULL ELSE - - ( + - 16 ) END * 0
----
0

query I rowsort
SELECT DISTINCT + 2 + - - 99 * - - 21 AS col0
----
2081

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ALL + ( 96 ) + + MIN( ALL - ( + - 61 ) ) - + 24 * + 41 + 76 col1
----
-751

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL + ( 96 ) + + MIN ( ALL - ( + - 61 ) ) - + 24 * + 41 + 76 col1
----
-751

query I rowsort
SELECT ALL + 48 - + NULLIF ( + 35, 28 ) + - 29 AS col2
----
-16

query I rowsort
SELECT ALL - 84 - - + 92 * 10 AS col1
----
836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4003
SELECT ALL CAST( - - 11 AS SIGNED ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL CAST ( - - 11 AS INTEGER ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT + CASE - 82 WHEN - 49 THEN + ( + - 22 ) * 40 / + 27 + + 34 * 6 ELSE NULL END * SUM( + 67 ) + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT + CASE - 82 WHEN - 49 THEN + ( + - 22 ) * 40 / + 27 + + 34 * 6 ELSE NULL END * SUM ( + 67 ) + 48 AS col1
----
NULL

query II rowsort
SELECT - 60 + + 4 col2, - 92 AS col2
----
-56
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4006
SELECT CASE - COUNT( * ) WHEN + + 76 - 46 THEN + 39 * + COALESCE ( + COUNT( * ), COALESCE ( + 86, - - ( - CAST( NULL AS SIGNED ) ) ) ) WHEN - + ( - 88 ) THEN - 53 END * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4006
SELECT CASE - COUNT ( * ) WHEN + + 76 - 46 THEN + 39 * + COALESCE ( + COUNT ( * ), COALESCE ( + 86, - - ( - CAST ( NULL AS INTEGER ) ) ) ) WHEN - + ( - 88 ) THEN - 53 END * 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT MAX( DISTINCT 63 ) + - 56 * - - 14
----
-721

skipif mysql # not compatible
query I rowsort label-4007
SELECT MAX ( DISTINCT 63 ) + - 56 * - - 14
----
-721

query I rowsort
SELECT ALL 48 - - ( + 83 ) AS col1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT MIN( - 50 ) * 73 + - MIN( + 31 ) + - 73 * 79 col0
----
-9448

skipif mysql # not compatible
query I rowsort label-4009
SELECT MIN ( - 50 ) * 73 + - MIN ( + 31 ) + - 73 * 79 col0
----
-9448

query I rowsort
SELECT DISTINCT - ( + 5 ) * - 59 + + 26 + 16 * 92 col0
----
1793

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL + + 52 * + COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + + 52 * + COUNT ( * ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT - MAX( - 0 ) + 32 * - + 50
----
-1600

skipif mysql # not compatible
query I rowsort label-4012
SELECT - MAX ( - 0 ) + 32 * - + 50
----
-1600

query I rowsort
SELECT ALL 39 * - 95
----
-3705

query I rowsort
SELECT + 79 * 79 * + 91 AS col1
----
567931

query I rowsort
SELECT DISTINCT - ( - - 55 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4016
SELECT - + COALESCE ( - 53, - 66 * - MIN( 8 ) * 21 + + 3 + COUNT( * ) + + 12 + CAST( ( + 63 ) AS SIGNED ) * + 87 / + + COUNT( * ) + 97, + 4 ) / + + CAST( 32 AS SIGNED ) * 93 + - + MAX( - 34 ) * 17 + 31 + - 72 / CAST( NULL AS SIGNED ) * + + SUM( DISTINCT - 68 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT - + COALESCE ( - 53, - 66 * - MIN ( 8 ) * 21 + + 3 + COUNT ( * ) + + 12 + CAST ( ( + 63 ) AS INTEGER ) * + 87 / + + COUNT ( * ) + 97, + 4 ) / + + CAST ( 32 AS INTEGER ) * 93 + - + MAX ( - 34 ) * 17 + 31 + - 72 / CAST ( NULL AS INTEGER ) * + + SUM ( DISTINCT - 68 ) col0
----
NULL

query I rowsort
SELECT ALL - 66 + - + 4 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT + COUNT( * ) + + 13 * - 73 col0
----
-948

skipif mysql # not compatible
query I rowsort label-4018
SELECT + COUNT ( * ) + + 13 * - 73 col0
----
-948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4019
SELECT - 47 * + 65 * - CAST( - ( - + 38 ) AS SIGNED ) + 13 / - 8 * - CAST( - - ( + NULLIF ( - AVG ( - 90 ), + + 92 ) ) AS SIGNED ) + 20 + - 43 - 61 * 60 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4019
SELECT - 47 * + 65 * - CAST ( - ( - + 38 ) AS INTEGER ) + 13 / - 8 * - CAST ( - - ( + NULLIF ( - AVG ( - 90 ), + + 92 ) ) AS INTEGER ) + 20 + - 43 - 61 * 60 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 45 * - 33 AS col1
----
1485

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT + 50 + - 9 + 60 + COUNT( ALL + 77 ) * + 58 AS col0
----
159

skipif mysql # not compatible
query I rowsort label-4021
SELECT + 50 + - 9 + 60 + COUNT ( ALL + 77 ) * + 58 AS col0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT + 33 + - SUM( DISTINCT - 30 ) + + 71 AS col2
----
134

skipif mysql # not compatible
query I rowsort label-4022
SELECT + 33 + - SUM ( DISTINCT - 30 ) + + 71 AS col2
----
134

query I rowsort
SELECT ALL 12 + - - 3
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT DISTINCT - MAX( ALL + + 17 ) + SUM( DISTINCT - - 36 )
----
19

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT - MAX ( ALL + + 17 ) + SUM ( DISTINCT - - 36 )
----
19

query I rowsort
SELECT ALL - NULLIF ( 66, ( - ( + 16 ) ) ) + + 17
----
-49

query I rowsort
SELECT ALL - + 52 col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4027
SELECT 63 DIV + + COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4027
SELECT 63 / + + COUNT ( * ) AS col0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4028
SELECT DISTINCT + ( - COUNT( 28 ) ) - + 34 DIV - - 58
----
-1

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT + ( - COUNT ( 28 ) ) - + 34 / - - 58
----
-1

query I rowsort
SELECT 46 * + ( - - ( + + 41 ) ) * - - ( + ( 6 ) )
----
11316

onlyif mysql # DIV for integer division: 
query I rowsort label-4030
SELECT ALL - 89 DIV + 78
----
-1

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL - 89 / + 78
----
-1

query I rowsort
SELECT 53 + + NULLIF ( + + 3, + 85 ) AS col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4032
SELECT DISTINCT + 16 - - 49 + 96 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT + 16 - - 49 + 96 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4033
SELECT 72 + + + ( + - 96 ) AS col2, SUM( ALL - 53 ) AS col2
----
-24
-53

skipif mysql # not compatible
query II rowsort label-4033
SELECT 72 + + + ( + - 96 ) AS col2, SUM ( ALL - 53 ) AS col2
----
-24
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-4034
SELECT ALL - 89 DIV + 96 * + CASE - + 55 WHEN + 63 THEN + 90 ELSE 70 * + + 19 * + 48 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL - 89 / + 96 * + CASE - + 55 WHEN + 63 THEN + 90 ELSE 70 * + + 19 * + 48 END AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4035
SELECT 91 DIV - 70 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4035
SELECT 91 / - 70 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4036
SELECT COUNT( * ) + 12 + - 11 + COALESCE ( - - 92, + + 1 DIV - - 82 )
----
94

skipif mysql # not compatible
query I rowsort label-4036
SELECT COUNT ( * ) + 12 + - 11 + COALESCE ( - - 92, + + 1 / - - 82 )
----
94

query II rowsort
SELECT 24 AS col1, 64
----
24
64

query I rowsort
SELECT DISTINCT + 8 * - - 17 * 97 AS col0
----
13192

onlyif mysql # aggregate syntax: 
query II rowsort label-4039
SELECT ALL - + 93, COUNT( * ) AS col1
----
-93
1

skipif mysql # not compatible
query II rowsort label-4039
SELECT ALL - + 93, COUNT ( * ) AS col1
----
-93
1

query I rowsort
SELECT DISTINCT + 28 + - + 82
----
-54

query I rowsort
SELECT ALL - + 12 + + 69 + + 69 * 74 * + 15 * 42
----
3216837

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4042
SELECT COUNT( * ) AS col1, COALESCE ( - + CAST( NULL AS SIGNED ), + 49, - COUNT( * ) ) * + - 37
----
1
-1813

skipif mysql # not compatible
query II rowsort label-4042
SELECT COUNT ( * ) AS col1, COALESCE ( - + CAST ( NULL AS INTEGER ), + 49, - COUNT ( * ) ) * + - 37
----
1
-1813

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ( + COUNT( * ) ) * + 96 * 74 * 19
----
134976

skipif mysql # not compatible
query I rowsort label-4043
SELECT ( + COUNT ( * ) ) * + 96 * 74 * 19
----
134976

query I rowsort
SELECT 42 * 9 * 70
----
26460

query I rowsort
SELECT - 90 + + 20 AS col1
----
-70

query I rowsort
SELECT ALL - 78 * - 60
----
4680

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT 34 DIV + 27 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4047
SELECT 34 / + 27 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT DISTINCT + 76 + - COUNT( DISTINCT + 35 ) + - COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT + 76 + - COUNT ( DISTINCT + 35 ) + - COUNT ( * ) AS col1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4049
SELECT ALL + COALESCE ( COUNT( * ), + 22 DIV + 38 ) * 81 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL + COALESCE ( COUNT ( * ), + 22 / + 38 ) * 81 AS col0
----
81

query I rowsort
SELECT + - COALESCE ( 25, 75, - 40 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT - MIN( DISTINCT + + 23 ) * 16 * + 96 + + - 56 col0
----
-35384

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT - MIN ( DISTINCT + + 23 ) * 16 * + 96 + + - 56 col0
----
-35384

onlyif mysql # DIV for integer division: 
query I rowsort label-4052
SELECT + 83 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-4052
SELECT + 83 / - 94
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4053
SELECT + + CAST( - + 89 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-4053
SELECT + + CAST ( - + 89 AS INTEGER )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-4054
SELECT ALL - MIN( DISTINCT - - 85 ) + - COUNT( * ) AS col1, + COUNT( DISTINCT + + 14 )
----
-86
1

skipif mysql # not compatible
query II rowsort label-4054
SELECT ALL - MIN ( DISTINCT - - 85 ) + - COUNT ( * ) AS col1, + COUNT ( DISTINCT + + 14 )
----
-86
1

query I rowsort
SELECT 90 - + 50 AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4056
SELECT ALL + CAST( NULL AS SIGNED ) + + - 11 * + - 28 AS col0, + 65 AS col1, - 15 + - 67 + - MAX( DISTINCT - 50 ) AS col1
----
NULL
65
-32

skipif mysql # not compatible
query III rowsort label-4056
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 11 * + - 28 AS col0, + 65 AS col1, - 15 + - 67 + - MAX ( DISTINCT - 50 ) AS col1
----
NULL
65
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4057
SELECT - 49 * CAST( NULL AS SIGNED ) + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4057
SELECT - 49 * CAST ( NULL AS INTEGER ) + - 92
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4058
SELECT ALL 89 DIV 38
----
2

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL 89 / 38
----
2

query I rowsort
SELECT 11 + ( + 82 )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4060
SELECT CAST( ( - 34 ) AS SIGNED ) * - 17 AS col1, 38 + + 84 * - - ( - CAST( NULL AS SIGNED ) )
----
578
NULL

skipif mysql # not compatible
query II rowsort label-4060
SELECT CAST ( ( - 34 ) AS INTEGER ) * - 17 AS col1, 38 + + 84 * - - ( - CAST ( NULL AS INTEGER ) )
----
578
NULL

query I rowsort
SELECT ALL 73 * + 83 AS col0
----
6059

query I rowsort
SELECT DISTINCT 20 * 46
----
920

query I rowsort
SELECT 81 * 29 AS col0
----
2349

onlyif mysql # aggregate syntax: 
query II rowsort label-4064
SELECT + COUNT( * ) + - 60 col1, + 3 AS col0
----
-59
3

skipif mysql # not compatible
query II rowsort label-4064
SELECT + COUNT ( * ) + - 60 col1, + 3 AS col0
----
-59
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4065
SELECT - 2 - - 55 + - + COUNT( * ) * - 79 DIV - + 6 + 56 * - 9
----
-464

skipif mysql # not compatible
query I rowsort label-4065
SELECT - 2 - - 55 + - + COUNT ( * ) * - 79 / - + 6 + 56 * - 9
----
-464

query I rowsort
SELECT + 13 * 72
----
936

query I rowsort
SELECT + 31 - 75
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4068
SELECT DISTINCT - COUNT( * ) DIV COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT - COUNT ( * ) / COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT DISTINCT MIN( 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT MIN ( 86 ) AS col1
----
86

query II rowsort
SELECT ALL + ( - 96 ) AS col2, 43 AS col0
----
-96
43

query I rowsort
SELECT + 5 + - + NULLIF ( + 29, 1 ) + 5 AS col2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT ALL - + 60 * - - CAST( NULL AS SIGNED ) + - 7 * - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL - + 60 * - - CAST ( NULL AS INTEGER ) + - 7 * - 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4073
SELECT - 1 DIV - - 86 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4073
SELECT - 1 / - - 86 + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4074
SELECT ALL - + COALESCE ( - CAST( COALESCE ( - - 96, COUNT( * ) ) AS SIGNED ), - 75 ) * + 82 * + - 27 * + 23 + + 11 * + - MIN( - - 87 ) AS col2
----
-4889469

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL - + COALESCE ( - CAST ( COALESCE ( - - 96, COUNT ( * ) ) AS INTEGER ), - 75 ) * + 82 * + - 27 * + 23 + + 11 * + - MIN ( - - 87 ) AS col2
----
-4889469

query I rowsort
SELECT ALL - - 80 * + 59 * - - 18 col2
----
84960

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT DISTINCT + NULLIF ( COALESCE ( + ( - 52 ), 24 ), ( - 46 ) / + + 45 + - 73 + - + 45 + - - 88 * - AVG ( + - 51 ) / COUNT( + + 29 ) + + 8 + - - 1 * - + MAX( + - 92 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT + NULLIF ( COALESCE ( + ( - 52 ), 24 ), ( - 46 ) / + + 45 + - 73 + - + 45 + - - 88 * - AVG ( + - 51 ) / COUNT ( + + 29 ) + + 8 + - - 1 * - + MAX ( + - 92 ) )
----
-52

query I rowsort
SELECT ALL + - 7 col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4078
SELECT + 13 * + - 13 - + 39 + + 70 DIV + 75 * COUNT( * )
----
-208

skipif mysql # not compatible
query I rowsort label-4078
SELECT + 13 * + - 13 - + 39 + + 70 / + 75 * COUNT ( * )
----
-208

onlyif mysql # DIV for integer division: 
query II rowsort label-4079
SELECT + 97 DIV + - 90 + + - 36 * - 53 AS col0, - 60 AS col2
----
1907
-60

skipif mysql # not compatible
query II rowsort label-4079
SELECT + 97 / + - 90 + + - 36 * - 53 AS col0, - 60 AS col2
----
1907
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT - 90 * - CASE + - 22 WHEN - ( + + CASE 23 WHEN + 61 + + 40 THEN + + 53 - + + ( - 24 ) + + COALESCE ( - - COUNT( * ), COUNT( * ) ) / - NULLIF ( + 84, - ( - 72 ) ) ELSE NULL END ) THEN 75 END * 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4080
SELECT - 90 * - CASE + - 22 WHEN - ( + + CASE 23 WHEN + 61 + + 40 THEN + + 53 - + + ( - 24 ) + + COALESCE ( - - COUNT ( * ), COUNT ( * ) ) / - NULLIF ( + 84, - ( - 72 ) ) ELSE NULL END ) THEN 75 END * 1 AS col1
----
NULL

query II rowsort
SELECT - 34 + + 91 AS col0, 4 AS col2
----
57
4

query I rowsort
SELECT ALL + - CASE 50 WHEN - 68 + - - 56 THEN NULL ELSE + 5 END col0
----
-5

query I rowsort
SELECT DISTINCT - - ( - 69 ) * + + NULLIF ( + 97, - ( 82 ) ) AS col1
----
-6693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4084
SELECT + COUNT( * ) * - 74 + 72 + - COUNT( * ) DIV - 8
----
-2

skipif mysql # not compatible
query I rowsort label-4084
SELECT + COUNT ( * ) * - 74 + 72 + - COUNT ( * ) / - 8
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4085
SELECT + CAST( NULL AS SIGNED ) + - - 32 * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4085
SELECT + CAST ( NULL AS INTEGER ) + - - 32 * 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL MIN( ALL + 72 ) * + - 92 + - - 85 - 79
----
-6618

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL MIN ( ALL + 72 ) * + - 92 + - - 85 - 79
----
-6618

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT + MIN( - - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-4087
SELECT + MIN ( - - 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT + MAX( - + 58 ) * ( 97 )
----
-5626

skipif mysql # not compatible
query I rowsort label-4088
SELECT + MAX ( - + 58 ) * ( 97 )
----
-5626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4089
SELECT DISTINCT - 89 * 7 * + CAST( - COUNT( * ) AS SIGNED )
----
623

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT - 89 * 7 * + CAST ( - COUNT ( * ) AS INTEGER )
----
623

query II rowsort
SELECT ALL + 7 AS col0, - NULLIF ( - + 58, - + COALESCE ( + - 39, - 8, - 49 - - 98 + + 19 ) / + - 89 ) AS col2
----
7
58

query I rowsort
SELECT - 85 + + 76 - - 97 * + 45 - + 40 AS col1
----
4316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4092
SELECT + COALESCE ( COUNT( * ), 0 * + 28 ) DIV + + ( MIN( 95 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT + COALESCE ( COUNT ( * ), 0 * + 28 ) / + + ( MIN ( 95 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4093
SELECT + CASE WHEN NULLIF ( - 53, - CAST( - + 49 AS SIGNED ) - - + COUNT( * ) * MIN( DISTINCT + + 76 ) * - + 69 ) >= + 92 + + - 43 THEN - COUNT( * ) ELSE NULL END - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT + CASE WHEN NULLIF ( - 53, - CAST ( - + 49 AS INTEGER ) - - + COUNT ( * ) * MIN ( DISTINCT + + 76 ) * - + 69 ) >= + 92 + + - 43 THEN - COUNT ( * ) ELSE NULL END - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT + 2 + 86 + + COUNT( * ) - + - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-4094
SELECT + 2 + 86 + + COUNT ( * ) - + - COUNT ( * )
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-4095
SELECT + 19 DIV + - 69 * + 12 AS col2, - 52 AS col2
----
0
-52

skipif mysql # not compatible
query II rowsort label-4095
SELECT + 19 / + - 69 * + 12 AS col2, - 52 AS col2
----
0
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT ALL COUNT( * ) + + - 30
----
-29

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL COUNT ( * ) + + - 30
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT DISTINCT CAST( + + 59 AS SIGNED ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT CAST ( + + 59 AS INTEGER ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT + 7 + + + COUNT( DISTINCT + + 98 )
----
8

skipif mysql # not compatible
query I rowsort label-4098
SELECT + 7 + + + COUNT ( DISTINCT + + 98 )
----
8

query II rowsort
SELECT 73 col2, - 81
----
73
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4100
SELECT + CAST( 54 AS SIGNED ) + + - 39 * - + 33 AS col1
----
1341

skipif mysql # not compatible
query I rowsort label-4100
SELECT + CAST ( 54 AS INTEGER ) + + - 39 * - + 33 AS col1
----
1341

onlyif mysql # DIV for integer division: 
query I rowsort label-4101
SELECT ALL 89 + + 79 + 11 DIV 21
----
168

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL 89 + + 79 + 11 / 21
----
168

query I rowsort
SELECT + 60 + - + 15
----
45

query I rowsort
SELECT + 71 * 44
----
3124

query I rowsort
SELECT DISTINCT 83 * + 65
----
5395

query I rowsort
SELECT - 53 + 42
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4106
SELECT - 29 + + 35 * ( COUNT( CAST( + 71 AS SIGNED ) ) / CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT - 29 + + 35 * ( COUNT ( CAST ( + 71 AS INTEGER ) ) / CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT - COUNT( * ) + 93 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4107
SELECT - COUNT ( * ) + 93 AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT ALL + 64 + - 76 * - CAST( 54 * 68 AS SIGNED ) AS col2
----
279136

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL + 64 + - 76 * - CAST ( 54 * 68 AS INTEGER ) AS col2
----
279136

query I rowsort
SELECT + 94 * - 38
----
-3572

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT ALL + 92 DIV 78 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL + 92 / 78 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT DISTINCT SUM( - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT SUM ( - 17 )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-4112
SELECT ALL + 71 DIV 53 - 53 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL + 71 / 53 - 53 AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-4113
SELECT + 58 DIV - 5
----
-11

skipif mysql # not compatible
query I rowsort label-4113
SELECT + 58 / - 5
----
-11

query I rowsort
SELECT - 40 * + 88 AS col2
----
-3520

query I rowsort
SELECT ALL + 74 * 62
----
4588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4116
SELECT - COUNT( * ) DIV ( - 20 )
----
0

skipif mysql # not compatible
query I rowsort label-4116
SELECT - COUNT ( * ) / ( - 20 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT - COALESCE ( MAX( + 73 ), 1, - COUNT( * ) + - COUNT( * ) ) * - 6 AS col0
----
438

skipif mysql # not compatible
query I rowsort label-4117
SELECT - COALESCE ( MAX ( + 73 ), 1, - COUNT ( * ) + - COUNT ( * ) ) * - 6 AS col0
----
438

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT DISTINCT + ( NULLIF ( - 22, 53 * NULLIF ( - 83 * + 39, COUNT( ALL 81 ) ) ) ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT + ( NULLIF ( - 22, 53 * NULLIF ( - 83 * + 39, COUNT ( ALL 81 ) ) ) ) AS col1
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4119
SELECT DISTINCT + COUNT( * ) DIV 23 - - 35 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4119
SELECT DISTINCT + COUNT ( * ) / 23 - - 35 AS col1
----
35

query I rowsort
SELECT DISTINCT + ( + 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT DISTINCT + SUM( DISTINCT ( + 79 ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT + SUM ( DISTINCT ( + 79 ) ) AS col1
----
79

query I rowsort
SELECT 46 + 34 col1
----
80

query I rowsort
SELECT ALL - NULLIF ( + 88, - 22 )
----
-88

query I rowsort
SELECT 62 * 73 AS col2
----
4526

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT MIN( ALL 11 ) + + COUNT( * ) * + 19
----
30

skipif mysql # not compatible
query I rowsort label-4125
SELECT MIN ( ALL 11 ) + + COUNT ( * ) * + 19
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT DISTINCT + 58 + + COUNT( ALL - ( 16 ) )
----
59

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT + 58 + + COUNT ( ALL - ( 16 ) )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT 7 + COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4127
SELECT 7 + COUNT ( * ) AS col0
----
8

query I rowsort
SELECT ALL - 94 + 72 col0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4129
SELECT ALL + COUNT( * ) + 29 * - ( + 83 DIV - 49 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL + COUNT ( * ) + 29 * - ( + 83 / - 49 ) AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4130
SELECT ALL + 67 DIV MAX( ALL 53 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL + 67 / MAX ( ALL 53 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 13 + + 91
----
78

query I rowsort
SELECT 91 - 98 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT DISTINCT + 49 + - COUNT( * ) * + COUNT( ALL + 71 + - 82 )
----
48

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT + 49 + - COUNT ( * ) * + COUNT ( ALL + 71 + - 82 )
----
48

query I rowsort
SELECT ALL + 40 + ( + 79 )
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT DISTINCT 13 + NULLIF ( COUNT( * ), - 64 ) col1
----
14

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT 13 + NULLIF ( COUNT ( * ), - 64 ) col1
----
14

query I rowsort
SELECT + ( + 72 ) * - 95 - 7
----
-6847

query I rowsort
SELECT 87 * 81
----
7047

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ( 26 ) * + ( + 38 * COUNT( * ) )
----
988

skipif mysql # not compatible
query I rowsort label-4138
SELECT ( 26 ) * + ( + 38 * COUNT ( * ) )
----
988

query I rowsort
SELECT DISTINCT 21 + - 36 AS col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4140
SELECT ALL COALESCE ( + 14, COUNT( * ), - 11 ) + + 97 DIV + 60
----
15

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL COALESCE ( + 14, COUNT ( * ), - 11 ) + + 97 / + 60
----
15

query I rowsort
SELECT ALL 40 + 88
----
128

query I rowsort
SELECT - 9 - - 40
----
31

query I rowsort
SELECT ALL 67 * - 62 AS col2
----
-4154

query I rowsort
SELECT ALL - 56 - 45
----
-101

query I rowsort
SELECT ( 98 ) + 59 AS col2
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT ALL - COUNT( * ) * 5 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL - COUNT ( * ) * 5 AS col1
----
-5

query I rowsort
SELECT + 3 + 19 AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4148
SELECT CASE WHEN - 47 IN ( + 6 + - 37 * 23 ) THEN COUNT( * ) WHEN ( + 31 * ( - 63 / + 16 ) ) <> NULL THEN NULL END - - CAST( ( + COALESCE ( 82, 25 ) ) + + 31 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT CASE WHEN - 47 IN ( + 6 + - 37 * 23 ) THEN COUNT ( * ) WHEN ( + 31 * ( - 63 / + 16 ) ) <> NULL THEN NULL END - - CAST ( ( + COALESCE ( 82, 25 ) ) + + 31 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - COALESCE ( - 91, 51 ) * + 33
----
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT - 52 + + NULLIF ( + 23, + SUM( + 59 ) + + 2 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-4150
SELECT - 52 + + NULLIF ( + 23, + SUM ( + 59 ) + + 2 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL - + CASE + 35 WHEN NULLIF ( - SUM( ALL ( 25 ) ), + 77 * 24 + - COUNT( * ) ) * 89 THEN COUNT( ALL + 91 ) * MIN( ALL 4 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL - + CASE + 35 WHEN NULLIF ( - SUM ( ALL ( 25 ) ), + 77 * 24 + - COUNT ( * ) ) * 89 THEN COUNT ( ALL + 91 ) * MIN ( ALL 4 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT + + COALESCE ( - SUM( ALL - 18 ), 42, 29 * + ( 8 ) ) * 22 + 55
----
451

skipif mysql # not compatible
query I rowsort label-4152
SELECT + + COALESCE ( - SUM ( ALL - 18 ), 42, 29 * + ( 8 ) ) * 22 + 55
----
451

onlyif mysql # DIV for integer division: 
query I rowsort label-4153
SELECT DISTINCT 97 DIV - - 61 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT 97 / - - 61 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL 15 + + + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL 15 + + + COUNT ( * )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT 97 DIV 88
----
1

skipif mysql # not compatible
query I rowsort label-4155
SELECT 97 / 88
----
1

query I rowsort
SELECT DISTINCT - 26 + + - ( - 96 ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL + 71 * + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL + 71 * + COUNT ( * )
----
71

query I rowsort
SELECT 7 * 6 * - 29
----
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT ALL - COUNT( * ) + COUNT( * ) + COUNT( * ) * - 7
----
-7

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL - COUNT ( * ) + COUNT ( * ) + COUNT ( * ) * - 7
----
-7

query I rowsort
SELECT ALL 96 * + 9 col1
----
864

query I rowsort
SELECT ALL - 99 + 77
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT DISTINCT 14 + - - CASE + 80 WHEN 96 + COUNT( * ) THEN CASE COALESCE ( + 24, 16 ) WHEN - 72 THEN NULL WHEN + 92 THEN NULL WHEN - 90 * - 34 THEN 41 WHEN - CASE 3 WHEN 25 + - 46 * + 41 THEN NULL WHEN 79 / 6 + 13 * - 23 THEN + 33 * 21 ELSE NULL END THEN + 89 END ELSE ( + 13 ) END
----
27

skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT 14 + - - CASE + 80 WHEN 96 + COUNT ( * ) THEN CASE COALESCE ( + 24, 16 ) WHEN - 72 THEN NULL WHEN + 92 THEN NULL WHEN - 90 * - 34 THEN 41 WHEN - CASE 3 WHEN 25 + - 46 * + 41 THEN NULL WHEN 79 / 6 + 13 * - 23 THEN + 33 * 21 ELSE NULL END THEN + 89 END ELSE ( + 13 ) END
----
27

query I rowsort
SELECT ALL - CASE - 19 WHEN 38 * 25 THEN + 2 / + 88 WHEN 61 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 97 * + - 30 * + 41 AS col1
----
-119310

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT ALL + COUNT( - 7 ) + - 57
----
-56

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL + COUNT ( - 7 ) + - 57
----
-56

query I rowsort
SELECT DISTINCT + ( - 68 ) + + 22 AS col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4167
SELECT + 8 * CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT + 8 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT COUNT( * ) - - + 63 * + 53
----
3340

skipif mysql # not compatible
query I rowsort label-4168
SELECT COUNT ( * ) - - + 63 * + 53
----
3340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4169
SELECT 96 + + COUNT( * ) + COALESCE ( NULLIF ( 55, CAST( NULL AS SIGNED ) ), 63 + 38 DIV - 5 ) AS col0
----
152

skipif mysql # not compatible
query I rowsort label-4169
SELECT 96 + + COUNT ( * ) + COALESCE ( NULLIF ( 55, CAST ( NULL AS INTEGER ) ), 63 + 38 / - 5 ) AS col0
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT ALL - 64 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL - 64 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( + 79 ) * + 63 AS col1
----
4977

query I rowsort
SELECT + 93 + - 96 AS col0
----
-3

query I rowsort
SELECT DISTINCT + - 40 * + ( 35 ) AS col0
----
-1400

query I rowsort
SELECT DISTINCT + 18 * 25
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT ALL + MIN( DISTINCT - 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL + MIN ( DISTINCT - 44 ) AS col0
----
-44

query I rowsort
SELECT ALL + 79 - 32 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT ( - - 91 ) * + COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-4177
SELECT ( - - 91 ) * + COUNT ( * ) AS col0
----
91

query I rowsort
SELECT 54 + - - 82 AS col2
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-4179
SELECT DISTINCT + 2 DIV 22 * - 63
----
0

skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT + 2 / 22 * - 63
----
0

query I rowsort
SELECT + ( + - 8 ) * + 6
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT 3 * - SUM( + NULLIF ( - 85, 2 ) ) * COUNT( DISTINCT + 20 * 19 ) AS col0
----
255

skipif mysql # not compatible
query I rowsort label-4181
SELECT 3 * - SUM ( + NULLIF ( - 85, 2 ) ) * COUNT ( DISTINCT + 20 * 19 ) AS col0
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4182
SELECT - - CASE CAST( NULL AS SIGNED ) WHEN 3 * + COUNT( * ) + 77 / 77 THEN - 81 * + 88 ELSE + CAST( NULL AS SIGNED ) + + 71 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT - - CASE CAST ( NULL AS INTEGER ) WHEN 3 * + COUNT ( * ) + 77 / 77 THEN - 81 * + 88 ELSE + CAST ( NULL AS INTEGER ) + + 71 END AS col1
----
NULL

query I rowsort
SELECT ALL - ( - NULLIF ( + 11, 76 * 82 ) )
----
11

query I rowsort
SELECT ALL + COALESCE ( + 83, 99, 26, + 67 * - 33 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4185
SELECT - - 70 * - 17 - + 2 * CASE CAST( 30 AS SIGNED ) * + COUNT( * ) WHEN 64 THEN NULL WHEN - 0 THEN 44 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT - - 70 * - 17 - + 2 * CASE CAST ( 30 AS INTEGER ) * + COUNT ( * ) WHEN 64 THEN NULL WHEN - 0 THEN 44 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL 56 * - + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL 56 * - + COUNT ( * )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4187
SELECT ALL 93 * 41 + - + COUNT( * ) + CAST( NULL AS SIGNED ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL 93 * 41 + - + COUNT ( * ) + CAST ( NULL AS INTEGER ) * 75
----
NULL

query I rowsort
SELECT + ( 17 ) * + - 70 AS col0
----
-1190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT + 3 * - CAST( + 54 AS SIGNED )
----
-162

skipif mysql # not compatible
query I rowsort label-4189
SELECT + 3 * - CAST ( + 54 AS INTEGER )
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ALL 36 * COUNT( * ) + + COUNT( - 20 )
----
37

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL 36 * COUNT ( * ) + + COUNT ( - 20 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT CASE WHEN - COUNT( * ) IS NULL THEN NULL WHEN - 92 IS NOT NULL THEN ( CASE + COUNT( * ) WHEN + 65 + + 45 * 25 THEN 27 END ) * - 44 ELSE 71 * 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT CASE WHEN - COUNT ( * ) IS NULL THEN NULL WHEN - 92 IS NOT NULL THEN ( CASE + COUNT ( * ) WHEN + 65 + + 45 * 25 THEN 27 END ) * - 44 ELSE 71 * 68 END
----
NULL

query I rowsort
SELECT ALL 20 * + 84 AS col1
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL 30 * - + 88 * MAX( DISTINCT - 76 ) + + 17 col1
----
200657

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL 30 * - + 88 * MAX ( DISTINCT - 76 ) + + 17 col1
----
200657

query I rowsort
SELECT ALL + 25 * + 88 + - 4 col1
----
2196

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT + 67 * + NULLIF ( + COUNT( 85 ), ( - CASE + 77 WHEN 56 * - 80 THEN + 73 * CASE - 28 WHEN 99 THEN NULL ELSE + 82 END WHEN 0 * 41 THEN 14 * ( + 77 ) ELSE NULL END ) )
----
67

skipif mysql # not compatible
query I rowsort label-4195
SELECT + 67 * + NULLIF ( + COUNT ( 85 ), ( - CASE + 77 WHEN 56 * - 80 THEN + 73 * CASE - 28 WHEN 99 THEN NULL ELSE + 82 END WHEN 0 * 41 THEN 14 * ( + 77 ) ELSE NULL END ) )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4196
SELECT + COALESCE ( + 28, + - NULLIF ( + MAX( 10 ), 3 ) - 80, CAST( NULL AS SIGNED ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4196
SELECT + COALESCE ( + 28, + - NULLIF ( + MAX ( 10 ), 3 ) - 80, CAST ( NULL AS INTEGER ) ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL + MIN( - 91 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL + MIN ( - 91 ) AS col0
----
-91

query II rowsort
SELECT ALL + 42 AS col0, + 49
----
42
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT 77 * + COUNT( * ) + 14 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-4199
SELECT 77 * + COUNT ( * ) + 14 AS col0
----
91

query I rowsort
SELECT ALL 43 * 24
----
1032

query I rowsort
SELECT - 54 + 68
----
14

query I rowsort
SELECT DISTINCT + ( + 81 ) * 59 + 23 - - 88 col0
----
4890

query I rowsort
SELECT - 30 + COALESCE ( ( - 11 ), 68 ) * 10 col2
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4204
SELECT ALL - 65 * - CAST( - + 35 AS SIGNED ) - - ( ( - 91 ) + - 42 * 80 ) * 11
----
-40236

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL - 65 * - CAST ( - + 35 AS INTEGER ) - - ( ( - 91 ) + - 42 * 80 ) * 11
----
-40236

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4205
SELECT ALL - ( + CAST( NULL AS DECIMAL ) ) * - 48 * + 82 - + AVG ( ALL + 28 - - 23 * COALESCE ( CAST( 42 AS SIGNED ) * + 91 + 11, 59, + 68, CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - ( + CAST ( NULL AS REAL ) ) * - 48 * + 82 - + AVG ( ALL + 28 - - 23 * COALESCE ( CAST ( 42 AS INTEGER ) * + 91 + 11, 59, + 68, CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT + 1 * - 44 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT + 1 * - 44 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 7 * - 44
----
-308

onlyif mysql # DIV for integer division: 
query I rowsort label-4208
SELECT + 18 DIV - ( - ( - 78 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4208
SELECT + 18 / - ( - ( - 78 ) )
----
0

query I rowsort
SELECT + 77 * + - 94 AS col0
----
-7238

query I rowsort
SELECT ALL - NULLIF ( + 38, + - 25 + + 9 )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4211
SELECT ALL CAST( - 57 AS SIGNED ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL CAST ( - 57 AS INTEGER ) AS col1
----
-57

query I rowsort
SELECT + 58 - - 50
----
108

query II rowsort
SELECT - 17, - 77 AS col0
----
-17
-77

query II rowsort
SELECT - 28 AS col2, 18
----
-28
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4215
SELECT DISTINCT + CASE - 75 WHEN + - 17 + CAST( + 16 AS SIGNED ) THEN + 58 / + 85 WHEN 2 - ( - ( + 25 ) ) THEN 29 + AVG ( 12 + + 35 / + 83 ) * COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT + CASE - 75 WHEN + - 17 + CAST ( + 16 AS INTEGER ) THEN + 58 / + 85 WHEN 2 - ( - ( + 25 ) ) THEN 29 + AVG ( 12 + + 35 / + 83 ) * COUNT ( * ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT - COUNT( * ) * + + 27 + - 37
----
-64

skipif mysql # not compatible
query I rowsort label-4216
SELECT - COUNT ( * ) * + + 27 + - 37
----
-64

query I rowsort
SELECT - 85 * + 32 AS col0
----
-2720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT ALL - 73 * CASE 93 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 27 THEN 34 * + ( - 85 ) + 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL - 73 * CASE 93 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 27 THEN 34 * + ( - 85 ) + 78 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - - 21 * 12
----
252

query I rowsort
SELECT - + 93 - + 18
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT - - 34 DIV - + 80 col1
----
0

skipif mysql # not compatible
query I rowsort label-4221
SELECT - - 34 / - + 80 col1
----
0

query I rowsort
SELECT - - 18 - 35
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT ALL - CAST( NULL AS SIGNED ) * + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL - CAST ( NULL AS INTEGER ) * + 81
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT - - CAST( 31 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-4224
SELECT - - CAST ( 31 AS INTEGER )
----
31

query I rowsort
SELECT DISTINCT - 79 * 80
----
-6320

onlyif mysql # aggregate syntax: 
query II rowsort label-4226
SELECT 89, COALESCE ( + 94, - 57, CASE WHEN COUNT( * ) NOT BETWEEN ( NULL ) AND - 43 * ( + 34 * COUNT( * ) ) THEN + ( - COALESCE ( 9, 74 ) ) ELSE - MAX( - 89 ) END + - COALESCE ( 80 + 11, ( + COUNT( * ) ) ) * 95, 26 ) + CASE NULLIF ( + 87, - 57 * SUM( DISTINCT 42 ) ) WHEN 58 THEN NULL WHEN 59 THEN NULL ELSE - 70 END AS col2
----
89
24

skipif mysql # not compatible
query II rowsort label-4226
SELECT 89, COALESCE ( + 94, - 57, CASE WHEN COUNT ( * ) NOT BETWEEN ( NULL ) AND - 43 * ( + 34 * COUNT ( * ) ) THEN + ( - COALESCE ( 9, 74 ) ) ELSE - MAX ( - 89 ) END + - COALESCE ( 80 + 11, ( + COUNT ( * ) ) ) * 95, 26 ) + CASE NULLIF ( + 87, - 57 * SUM ( DISTINCT 42 ) ) WHEN 58 THEN NULL WHEN 59 THEN NULL ELSE - 70 END AS col2
----
89
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4227
SELECT - 48 DIV + 17 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4227
SELECT - 48 / + 17 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4228
SELECT ALL - 63 + CAST( NULL AS SIGNED ) * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL - 63 + CAST ( NULL AS INTEGER ) * + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT - 87 + + COUNT( * ) * - + 8 col1
----
-95

skipif mysql # not compatible
query I rowsort label-4229
SELECT - 87 + + COUNT ( * ) * - + 8 col1
----
-95

query I rowsort
SELECT ALL + - 91 + ( - 96 )
----
-187

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4231
SELECT - 1 + + MIN( ALL - - CAST( NULL AS DECIMAL ) ) / 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT - 1 + + MIN ( ALL - - CAST ( NULL AS REAL ) ) / 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + 70 - + 82 + - COUNT( * ) + - MIN( ALL 58 + + 74 ) * ( 93 ) * - 98 AS col2
----
1203035

skipif mysql # not compatible
query I rowsort label-4232
SELECT + 70 - + 82 + - COUNT ( * ) + - MIN ( ALL 58 + + 74 ) * ( 93 ) * - 98 AS col2
----
1203035

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT ALL CAST( - 28 AS SIGNED ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL CAST ( - 28 AS INTEGER ) AS col0
----
-28

query I rowsort
SELECT + 3 * 77 * 2
----
462

onlyif mysql # aggregate syntax: 
query II rowsort label-4235
SELECT + SUM( ALL + 76 ), + 68 + 86 AS col2
----
76
154

skipif mysql # not compatible
query II rowsort label-4235
SELECT + SUM ( ALL + 76 ), + 68 + 86 AS col2
----
76
154

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT ALL 0 DIV + 34 + + + 15
----
15

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL 0 / + 34 + + + 15
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4237
SELECT 81 * - 93 + 86 DIV - + 1 + NULLIF ( 39, + 80 )
----
-7580

skipif mysql # not compatible
query I rowsort label-4237
SELECT 81 * - 93 + 86 / - + 1 + NULLIF ( 39, + 80 )
----
-7580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT ALL 55 * + ( + - CAST( + - 18 AS SIGNED ) ) AS col2
----
990

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL 55 * + ( + - CAST ( + - 18 AS INTEGER ) ) AS col2
----
990

query I rowsort
SELECT ( ( 7 ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT - 7 * - NULLIF ( + COUNT( * ), + - 48 )
----
7

skipif mysql # not compatible
query I rowsort label-4240
SELECT - 7 * - NULLIF ( + COUNT ( * ), + - 48 )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4241
SELECT 45 DIV 16 + + 42 + 94 * 98 AS col1
----
9256

skipif mysql # not compatible
query I rowsort label-4241
SELECT 45 / 16 + + 42 + 94 * 98 AS col1
----
9256

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL 19 * - ( 32 ) * COUNT( * ) * 32 AS col1
----
-19456

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL 19 * - ( 32 ) * COUNT ( * ) * 32 AS col1
----
-19456

query I rowsort
SELECT + 89 + 93 * - 87 AS col2
----
-8002

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ALL + COUNT( * ) * ( 9 ) - + + NULLIF ( 6, - 14 * 87 + - 97 * + 44 )
----
3

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL + COUNT ( * ) * ( 9 ) - + + NULLIF ( 6, - 14 * 87 + - 97 * + 44 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT DISTINCT - COUNT( * ) * + 24 col0
----
-24

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT - COUNT ( * ) * + 24 col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT DISTINCT 24 * - MAX( + 27 ) * 2 - + 87
----
-1383

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT 24 * - MAX ( + 27 ) * 2 - + 87
----
-1383

onlyif mysql # DIV for integer division: 
query I rowsort label-4247
SELECT + 33 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-4247
SELECT + 33 / - 43
----
0

query I rowsort
SELECT + 3 * - 61
----
-183

query I rowsort
SELECT + 46 - - - 97
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - COALESCE ( - 85, - 25 * 34 ) * COUNT( * ) + COUNT( * ) col2
----
86

skipif mysql # not compatible
query I rowsort label-4250
SELECT - COALESCE ( - 85, - 25 * 34 ) * COUNT ( * ) + COUNT ( * ) col2
----
86

query I rowsort
SELECT - - 82 - + - 69
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT ALL - NULLIF ( 98, + 79 + + 90 ) * CAST( 50 AS SIGNED ) AS col2
----
-4900

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL - NULLIF ( 98, + 79 + + 90 ) * CAST ( 50 AS INTEGER ) AS col2
----
-4900

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT + + ( - + 10 ) * + COUNT( DISTINCT - 14 ) * + 89 AS col0
----
-890

skipif mysql # not compatible
query I rowsort label-4253
SELECT + + ( - + 10 ) * + COUNT ( DISTINCT - 14 ) * + 89 AS col0
----
-890

query I rowsort
SELECT - + 8 * 81 AS col1
----
-648

query I rowsort
SELECT ALL + 44 * - 10
----
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT + - COUNT( * ) * 34 * + 72 + - 51 AS col0
----
-2499

skipif mysql # not compatible
query I rowsort label-4256
SELECT + - COUNT ( * ) * 34 * + 72 + - 51 AS col0
----
-2499

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT + MAX( - - 21 ) + - 92 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4257
SELECT + MAX ( - - 21 ) + - 92 AS col2
----
-71

query I rowsort
SELECT ALL - 48 * + - 48 * + 44 + + 97 AS col2
----
101473

query I rowsort
SELECT + 5 + + + 59
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT DISTINCT + 36 DIV 40 * + + 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT + 36 / 40 * + + 23 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4261
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - + 58 + 89 + + 42 + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT - CAST ( NULL AS REAL ) + - + 58 + 89 + + 42 + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL - + COUNT( * ) + + 49 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL - + COUNT ( * ) + + 49 AS col0
----
48

query I rowsort
SELECT DISTINCT + ( 93 ) AS col2
----
93

query I rowsort
SELECT ALL 2 + - - 27 * - - 41
----
1109

query I rowsort
SELECT DISTINCT - 34 + - ( + 31 ) * - ( 78 ) * 10
----
24146

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT + ( - COUNT( * ) ) + - + 20 * + COUNT( * ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-4266
SELECT + ( - COUNT ( * ) ) + - + 20 * + COUNT ( * ) col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT ALL MAX( + 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL MAX ( + 66 ) AS col1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4268
SELECT ALL - COUNT( * ) + + - ( - + 36 ) DIV + - 79 - - + COUNT( DISTINCT - 5 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL - COUNT ( * ) + + - ( - + 36 ) / + - 79 - - + COUNT ( DISTINCT - 5 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT 81 * + COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-4269
SELECT 81 * + COUNT ( * ) AS col0
----
81

query II rowsort
SELECT ALL 94 AS col1, - 5 col0
----
94
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT 7 * - + ( COUNT( * ) ) * - - 48 + 43
----
-293

skipif mysql # not compatible
query I rowsort label-4271
SELECT 7 * - + ( COUNT ( * ) ) * - - 48 + 43
----
-293

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT DISTINCT - COUNT( * ) - - COUNT( DISTINCT - 66 ) + 45 + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT - COUNT ( * ) - - COUNT ( DISTINCT - 66 ) + 45 + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4273
SELECT - 8 * - ( 44 ) * + - ( MIN( DISTINCT CAST( NULL AS SIGNED ) ) ) - COUNT( DISTINCT + 64 ) * + CASE - COUNT( * ) + 24 WHEN 7 THEN 14 * 84 ELSE NULL END + 89 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT - 8 * - ( 44 ) * + - ( MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) ) - COUNT ( DISTINCT + 64 ) * + CASE - COUNT ( * ) + 24 WHEN 7 THEN 14 * 84 ELSE NULL END + 89 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4274
SELECT DISTINCT + MIN( + ( - 44 ) ) DIV + COALESCE ( + 76, - 14 ) + + COUNT( * ) * - NULLIF ( COUNT( * ) DIV 81, 27 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT + MIN ( + ( - 44 ) ) / + COALESCE ( + 76, - 14 ) + + COUNT ( * ) * - NULLIF ( COUNT ( * ) / 81, 27 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT COUNT( * ) + 4 - 88 + + 93 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4275
SELECT COUNT ( * ) + 4 - 88 + + 93 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT 51 * - COUNT( * ) * + + 8 - - - 67 - + - 2
----
-473

skipif mysql # not compatible
query I rowsort label-4276
SELECT 51 * - COUNT ( * ) * + + 8 - - - 67 - + - 2
----
-473

query I rowsort
SELECT DISTINCT - ( - 80 ) AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT ALL - CAST( + - 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL - CAST ( + - 10 AS INTEGER )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ALL - 39 * - SUM( DISTINCT 47 )
----
1833

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL - 39 * - SUM ( DISTINCT 47 )
----
1833

query I rowsort
SELECT 34 * - + 62 + - + 59 + + 15 * - NULLIF ( 63, 66 ) AS col1
----
-3112

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT 30 * - COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4281
SELECT 30 * - COUNT ( * ) AS col2
----
-30

query I rowsort
SELECT 60 + + 98 col2
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4283
SELECT DISTINCT - MAX( 36 ) * + 81 + 60 + + CAST( 45 AS SIGNED ) * - 50
----
-5106

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT - MAX ( 36 ) * + 81 + 60 + + CAST ( 45 AS INTEGER ) * - 50
----
-5106

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT DISTINCT - + NULLIF ( 0, COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT - + NULLIF ( 0, COUNT ( * ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4285
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4286
SELECT COUNT( * ) * + 17 DIV CASE 93 WHEN + + 35 + 10 THEN - 79 WHEN - ( COUNT( ALL + 15 ) ) THEN NULL ELSE + 28 * 74 + 75 END DIV COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4286
SELECT COUNT ( * ) * + 17 / CASE 93 WHEN + + 35 + 10 THEN - 79 WHEN - ( COUNT ( ALL + 15 ) ) THEN NULL ELSE + 28 * 74 + 75 END / COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT DISTINCT COUNT( * ) + - 48 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT COUNT ( * ) + - 48 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + 20 * - COUNT( * ) + 64 col1
----
44

skipif mysql # not compatible
query I rowsort label-4288
SELECT + 20 * - COUNT ( * ) + 64 col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT ALL CAST( NULL AS SIGNED ) / + + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL CAST ( NULL AS INTEGER ) / + + 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT ALL + 21 + + SUM( - 18 ) * + - 61 AS col0
----
1119

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL + 21 + + SUM ( - 18 ) * + - 61 AS col0
----
1119

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT - MAX( + - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4291
SELECT - MAX ( + - 16 )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4292
SELECT + 69 DIV 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4292
SELECT + 69 / 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT 55 * + 27 + - - 47 + COUNT( * )
----
1533

skipif mysql # not compatible
query I rowsort label-4293
SELECT 55 * + 27 + - - 47 + COUNT ( * )
----
1533

query I rowsort
SELECT ALL + NULLIF ( - 90, + 97 )
----
-90

query I rowsort
SELECT - - ( + + 37 ) col1
----
37

query II rowsort
SELECT DISTINCT + 2 + - 62 + + 60 col2, + 38
----
0
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT + NULLIF ( - + 46, - - MAX( ALL - + 75 ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4297
SELECT + NULLIF ( - + 46, - - MAX ( ALL - + 75 ) ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL COUNT( * ) + - COUNT( * ) + + 25 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL COUNT ( * ) + - COUNT ( * ) + + 25 AS col0
----
25

query I rowsort
SELECT 34 - + 46
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT SUM( ALL 26 ) - + ( - 96 ) + + 9 + - - 82 AS col1
----
213

skipif mysql # not compatible
query I rowsort label-4300
SELECT SUM ( ALL 26 ) - + ( - 96 ) + + 9 + - - 82 AS col1
----
213

onlyif mysql # DIV for integer division: 
query I rowsort label-4301
SELECT ALL + 54 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL + 54 / 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT ALL COUNT( DISTINCT 94 ) - 99
----
-98

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL COUNT ( DISTINCT 94 ) - 99
----
-98

query I rowsort
SELECT 16 - - 49
----
65

query I rowsort
SELECT 90 + + - 98 AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT 26 - + - CASE - CAST( NULL AS SIGNED ) WHEN 48 THEN + 61 WHEN + 77 THEN NULL WHEN 83 THEN NULL ELSE + 39 END + + 57 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-4305
SELECT 26 - + - CASE - CAST ( NULL AS INTEGER ) WHEN 48 THEN + 61 WHEN + 77 THEN NULL WHEN 83 THEN NULL ELSE + 39 END + + 57 AS col1
----
122

query II rowsort
SELECT ALL 3 AS col0, 84 * 75 AS col2
----
3
6300

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4307
SELECT 89, CAST( NULL AS SIGNED ) AS col0
----
89
NULL

skipif mysql # not compatible
query II rowsort label-4307
SELECT 89, CAST ( NULL AS INTEGER ) AS col0
----
89
NULL

query I rowsort
SELECT 35 - 51 + - 8 AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4309
SELECT DISTINCT MIN( - 70 ) * + CAST( - 57 AS SIGNED ) - - - 37 - + COUNT( * ) + 31 AS col2
----
3983

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT MIN ( - 70 ) * + CAST ( - 57 AS INTEGER ) - - - 37 - + COUNT ( * ) + 31 AS col2
----
3983

query I rowsort
SELECT DISTINCT + 73 * + + 54 AS col1
----
3942

onlyif mysql # aggregate syntax: 
query II rowsort label-4311
SELECT ALL - 80 AS col0, SUM( 15 ) + + + 30
----
-80
45

skipif mysql # not compatible
query II rowsort label-4311
SELECT ALL - 80 AS col0, SUM ( 15 ) + + + 30
----
-80
45

query I rowsort
SELECT ALL + ( 58 ) * 32
----
1856

query I rowsort
SELECT 31 * - 53
----
-1643

query II rowsort
SELECT + 79 AS col2, 3 + - 23
----
79
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-4315
SELECT ALL - CASE + 32 WHEN - 50 THEN - - 92 + + 97 WHEN + 17 * 33 THEN 68 ELSE 1 DIV 84 END col2
----
0

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL - CASE + 32 WHEN - 50 THEN - - 92 + + 97 WHEN + 17 * 33 THEN 68 ELSE 1 / 84 END col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4316
SELECT - 16 / - CASE 75 WHEN + + 9 THEN + COALESCE ( - - ( 0 ), CASE + 99 WHEN MIN( ALL 45 ) THEN NULL WHEN 3 / CAST( NULL AS DECIMAL ) THEN + 84 END ) / + 7 ELSE NULL END + 74 * - 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT - 16 / - CASE 75 WHEN + + 9 THEN + COALESCE ( - - ( 0 ), CASE + 99 WHEN MIN ( ALL 45 ) THEN NULL WHEN 3 / CAST ( NULL AS REAL ) THEN + 84 END ) / + 7 ELSE NULL END + 74 * - 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT CASE + + NULLIF ( + - 64, - COUNT( * ) ) WHEN NULLIF ( - - COUNT( * ), 72 * 57 ) THEN 57 WHEN 97 * 58 - + 5 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT CASE + + NULLIF ( + - 64, - COUNT ( * ) ) WHEN NULLIF ( - - COUNT ( * ), 72 * 57 ) THEN 57 WHEN 97 * 58 - + 5 THEN NULL ELSE NULL END col2
----
NULL

query I rowsort
SELECT 31 * + 11
----
341

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4319
SELECT ALL COALESCE ( + - 44, - 47, - 30 + 75 ) * 89 * COUNT( 83 ) - 31 + 72 DIV 85 col0
----
-3947

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL COALESCE ( + - 44, - 47, - 30 + 75 ) * 89 * COUNT ( 83 ) - 31 + 72 / 85 col0
----
-3947

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4320
SELECT + + 78 col1, - 19 - - - CAST( NULL AS SIGNED ) / - 38 + + 20 + - 96
----
78
NULL

skipif mysql # not compatible
query II rowsort label-4320
SELECT + + 78 col1, - 19 - - - CAST ( NULL AS INTEGER ) / - 38 + + 20 + - 96
----
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL + ( + 24 ) + + COUNT( * ) + - COUNT( * ) + - - 80 + MAX( DISTINCT - 76 ) * - 87 AS col1
----
6716

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL + ( + 24 ) + + COUNT ( * ) + - COUNT ( * ) + - - 80 + MAX ( DISTINCT - 76 ) * - 87 AS col1
----
6716

query II rowsort
SELECT + - 24 AS col1, + 95
----
-24
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT ALL - - NULLIF ( - CAST( NULL AS SIGNED ), 82 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL - - NULLIF ( - CAST ( NULL AS INTEGER ), 82 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT DISTINCT + + 97 + - COUNT( * ) * 48 * - 0 * + 83
----
97

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT + + 97 + - COUNT ( * ) * 48 * - 0 * + 83
----
97

query I rowsort
SELECT ALL - 36 * - 77 * + 95 AS col2
----
263340

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT - + 30 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-4326
SELECT - + 30 / + 70
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4327
SELECT ALL - - 47 + - + 47 - - - 15 DIV - 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL - - 47 + - + 47 - - - 15 / - 36 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4328
SELECT + COUNT( * ) - + 97 - + + 73 + + COUNT( - 8 ) DIV + 6 AS col0
----
-169

skipif mysql # not compatible
query I rowsort label-4328
SELECT + COUNT ( * ) - + 97 - + + 73 + + COUNT ( - 8 ) / + 6 AS col0
----
-169

onlyif mysql # DIV for integer division: 
query II rowsort label-4329
SELECT DISTINCT + 34 * 82 AS col0, + 74 DIV + 77
----
2788
0

skipif mysql # not compatible
query II rowsort label-4329
SELECT DISTINCT + 34 * 82 AS col0, + 74 / + 77
----
2788
0

query I rowsort
SELECT + - 6 * + - 71 AS col1
----
426

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT ALL 97 * ( + COUNT( DISTINCT 45 ) ) - + 48
----
49

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL 97 * ( + COUNT ( DISTINCT 45 ) ) - + 48
----
49

query II rowsort
SELECT + 26, + 41 AS col2
----
26
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ALL 6 + + + 25 + - 14 * + - 81 * + - 33 * 98 - SUM( ALL 37 ) * 59
----
-3669508

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL 6 + + + 25 + - 14 * + - 81 * + - 33 * 98 - SUM ( ALL 37 ) * 59
----
-3669508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4334
SELECT DISTINCT + - COUNT( * ) * + CAST( + CASE 26 WHEN - 75 THEN NULLIF ( - 95, 16 * 61 ) END AS SIGNED ) + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT DISTINCT + - COUNT ( * ) * + CAST ( + CASE 26 WHEN - 75 THEN NULLIF ( - 95, 16 * 61 ) END AS INTEGER ) + + 29
----
NULL

query I rowsort
SELECT + 94 * - 76
----
-7144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4336
SELECT ALL + COUNT( * ) * + - CASE - + 35 WHEN + 88 + + 39 + SUM( DISTINCT 8 ) DIV COUNT( * ) THEN NULL ELSE 36 DIV - 64 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL + COUNT ( * ) * + - CASE - + 35 WHEN + 88 + + 39 + SUM ( DISTINCT 8 ) / COUNT ( * ) THEN NULL ELSE 36 / - 64 END AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4337
SELECT + + 29 + - + 34 * - 96 + + 69 * + + 60 * - 97 DIV - COUNT( * ) + 74
----
404947

skipif mysql # not compatible
query I rowsort label-4337
SELECT + + 29 + - + 34 * - 96 + + 69 * + + 60 * - 97 / - COUNT ( * ) + 74
----
404947

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4338
SELECT + 44 + + 98 + 71 - - 32 DIV + 87 * MAX( - 54 )
----
213

skipif mysql # not compatible
query I rowsort label-4338
SELECT + 44 + + 98 + 71 - - 32 / + 87 * MAX ( - 54 )
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT DISTINCT COUNT( * ) - + - 59 * 44 col2
----
2597

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT COUNT ( * ) - + - 59 * 44 col2
----
2597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4340
SELECT - ( + CASE COALESCE ( + 81, - 13 * + + CAST( + - CASE 76 WHEN + AVG ( 7 ) * 5 THEN ( COUNT( * ) ) ELSE NULL END AS SIGNED ) ) WHEN 69 + 99 THEN COUNT( * ) WHEN 98 THEN NULL END ) * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT - ( + CASE COALESCE ( + 81, - 13 * + + CAST ( + - CASE 76 WHEN + AVG ( 7 ) * 5 THEN ( COUNT ( * ) ) ELSE NULL END AS INTEGER ) ) WHEN 69 + 99 THEN COUNT ( * ) WHEN 98 THEN NULL END ) * - 91
----
NULL

query II rowsort
SELECT + 20 * - 46, 75 AS col0
----
-920
75

query II rowsort
SELECT + 38 + + 49, + 76 AS col1
----
87
76

query I rowsort
SELECT ALL ( 63 ) * - 89 + - 75
----
-5682

query II rowsort
SELECT + 84 * 39 AS col0, + 79 * + 24 AS col1
----
3276
1896

query I rowsort
SELECT + 90 + + 54 AS col0
----
144

query I rowsort
SELECT ALL 96 * - + 40 AS col1
----
-3840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4347
SELECT ALL CASE - - 10 WHEN + 94 * - 86 * 82 + COUNT( * ) + - SUM( + 93 ) / + 36 THEN 8 WHEN 29 THEN NULL WHEN 86 + + 12 THEN NULL END * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL CASE - - 10 WHEN + 94 * - 86 * 82 + COUNT ( * ) + - SUM ( + 93 ) / + 36 THEN 8 WHEN 29 THEN NULL WHEN 86 + + 12 THEN NULL END * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4348
SELECT + 72 DIV - + 31 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4348
SELECT + 72 / - + 31 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4349
SELECT + 42 - + - COUNT( * ) + - + 85 AS col0, + 56 * + - 12
----
-42
-672

skipif mysql # not compatible
query II rowsort label-4349
SELECT + 42 - + - COUNT ( * ) + - + 85 AS col0, + 56 * + - 12
----
-42
-672

onlyif mysql # aggregate syntax: 
query II rowsort label-4350
SELECT ( COUNT( * ) ), + 82 col0
----
1
82

skipif mysql # not compatible
query II rowsort label-4350
SELECT ( COUNT ( * ) ), + 82 col0
----
1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT + NULLIF ( COUNT( * ), - 50 + + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-4351
SELECT + NULLIF ( COUNT ( * ), - 50 + + 65 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4352
SELECT - 12 DIV + - 1 - 75
----
-63

skipif mysql # not compatible
query I rowsort label-4352
SELECT - 12 / + - 1 - 75
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-4353
SELECT + ( 47 ), 96 * - - COUNT( * ) * 74 + + 9 col0
----
47
7113

skipif mysql # not compatible
query II rowsort label-4353
SELECT + ( 47 ), 96 * - - COUNT ( * ) * 74 + + 9 col0
----
47
7113

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT CASE - COUNT( * ) WHEN + - 12 * 29 / - COUNT( * ) + - COUNT( * ) * + - 44 * - SUM( - 52 * 29 ) + + COUNT( * ) THEN - 0 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4354
SELECT CASE - COUNT ( * ) WHEN + - 12 * 29 / - COUNT ( * ) + - COUNT ( * ) * + - 44 * - SUM ( - 52 * 29 ) + + COUNT ( * ) THEN - 0 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4355
SELECT ALL COALESCE ( - COUNT( DISTINCT + 35 ), - + 1 + + 86 * + SUM( ALL - 12 ), CAST( 81 AS SIGNED ) ) * + 85 + 95
----
10

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL COALESCE ( - COUNT ( DISTINCT + 35 ), - + 1 + + 86 * + SUM ( ALL - 12 ), CAST ( 81 AS INTEGER ) ) * + 85 + 95
----
10

query I rowsort
SELECT - + 34 * 75 AS col0
----
-2550

query I rowsort
SELECT DISTINCT + 71 * + 18 + + 37 + + 69 AS col2
----
1384

query I rowsort
SELECT DISTINCT + 7 * - - 66 - - - 90 * - 17
----
1992

query I rowsort
SELECT ALL NULLIF ( + 66, + 41 ) * - 1 + + 27
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT + 49 * - - 15 / - + 54 + - CASE + 66 WHEN - 33 + 95 THEN 87 WHEN 18 THEN NULL ELSE NULL END * + NULLIF ( + ( 36 ) * - CASE COUNT( DISTINCT 23 ) WHEN 45 THEN 51 * - 75 + - 9 WHEN + 93 / - 53 + - 80 THEN NULL ELSE + 91 + + COUNT( * ) END, - 59 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT + 49 * - - 15 / - + 54 + - CASE + 66 WHEN - 33 + 95 THEN 87 WHEN 18 THEN NULL ELSE NULL END * + NULLIF ( + ( 36 ) * - CASE COUNT ( DISTINCT 23 ) WHEN 45 THEN 51 * - 75 + - 9 WHEN + 93 / - 53 + - 80 THEN NULL ELSE + 91 + + COUNT ( * ) END, - 59 ) AS col2
----
NULL

query I rowsort
SELECT - - 93 + + + 25 + 24 col0
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT - 53 * - 73 + + + 81 - + + 80 * + COUNT( * ) + - NULLIF ( - + MIN( 3 ), + MAX( DISTINCT + 69 ) ) * - 93 - + ( 22 ) * + ( MAX( 59 ) ) AS col0
----
2293

skipif mysql # not compatible
query I rowsort label-4362
SELECT - 53 * - 73 + + + 81 - + + 80 * + COUNT ( * ) + - NULLIF ( - + MIN ( 3 ), + MAX ( DISTINCT + 69 ) ) * - 93 - + ( 22 ) * + ( MAX ( 59 ) ) AS col0
----
2293

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT + NULLIF ( 7, - + ( - - NULLIF ( - COUNT( * ), + - MIN( ALL + 64 ) ) ) ) col1
----
7

skipif mysql # not compatible
query I rowsort label-4363
SELECT + NULLIF ( 7, - + ( - - NULLIF ( - COUNT ( * ), + - MIN ( ALL + 64 ) ) ) ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT ALL - 63 * COUNT( * ) + - - 34 col2
----
-29

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL - 63 * COUNT ( * ) + - - 34 col2
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4365
SELECT ALL - MAX( + 92 ) DIV 67
----
-1

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL - MAX ( + 92 ) / 67
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4366
SELECT ALL CAST( + ( + ( - 83 ) ) AS SIGNED ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL CAST ( + ( + ( - 83 ) ) AS INTEGER ) AS col1
----
-83

query I rowsort
SELECT + - 76 * + 5 * + 6 - 0
----
-2280

query I rowsort
SELECT DISTINCT ( - ( - 81 ) )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4369
SELECT - 32 + - 12 + + COUNT( * ), 96 AS col1
----
-43
96

skipif mysql # not compatible
query II rowsort label-4369
SELECT - 32 + - 12 + + COUNT ( * ), 96 AS col1
----
-43
96

query I rowsort
SELECT - NULLIF ( 99, - 96 * + ( + + 77 ) + - + 20 / - ( 10 ) / + 9 )
----
-99

query I rowsort
SELECT + 97 * CASE - 98 WHEN + - 48 THEN NULL ELSE - 0 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT COUNT( 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4372
SELECT COUNT ( 74 ) AS col0
----
1

query II rowsort
SELECT - 43, + 89 * - 70 - 57 + - 70 AS col0
----
-43
-6357

query II rowsort
SELECT ALL 45 AS col2, 80 AS col1
----
45
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4375
SELECT ALL ( + MAX( - + NULLIF ( + + CAST( NULL AS SIGNED ), - 53 - 24 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL ( + MAX ( - + NULLIF ( + + CAST ( NULL AS INTEGER ), - 53 - 24 ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT - 78 - - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-4376
SELECT - 78 - - COUNT ( * )
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4377
SELECT ALL 53 AS col2, COUNT( * )
----
53
1

skipif mysql # not compatible
query II rowsort label-4377
SELECT ALL 53 AS col2, COUNT ( * )
----
53
1

query I rowsort
SELECT + 31 * - + 16
----
-496

query I rowsort
SELECT - 43 + 76
----
33

query I rowsort
SELECT - ( + + 77 ) AS col1
----
-77

query I rowsort
SELECT - 19 + + 70 AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4382
SELECT + COUNT( * ) - - CAST( - + COUNT( DISTINCT 82 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4382
SELECT + COUNT ( * ) - - CAST ( - + COUNT ( DISTINCT 82 ) AS INTEGER )
----
0

query I rowsort
SELECT ALL 89 + - 21
----
68

query I rowsort
SELECT - 95 + - 53 * - 82 AS col1
----
4251

query I rowsort
SELECT + 1 - + ( 61 )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4386
SELECT + 18 DIV 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4386
SELECT + 18 / 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT DISTINCT 24 + MAX( DISTINCT 27 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT 24 + MAX ( DISTINCT 27 ) AS col0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4388
SELECT ALL + 58 DIV + - 97 + - - 27
----
27

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL + 58 / + - 97 + - - 27
----
27

query I rowsort
SELECT DISTINCT 12 + 1 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT + 14 * 38 + + 81 + - - COUNT( * )
----
614

skipif mysql # not compatible
query I rowsort label-4390
SELECT + 14 * 38 + + 81 + - - COUNT ( * )
----
614

query I rowsort
SELECT 3 * - + 46 + - - 95
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT + SUM( ALL + - 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4392
SELECT + SUM ( ALL + - 48 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT DISTINCT - 17 - - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT - 17 - - COUNT ( * )
----
-16

query I rowsort
SELECT ALL + CASE + AVG ( DISTINCT + 50 ) WHEN - 65 * - 82 + + - 2 - - ( 64 ) + 51 * + 95 THEN 80 ELSE NULL END - 44 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4395
SELECT + 49 * - + COUNT( * ) / + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4395
SELECT + 49 * - + COUNT ( * ) / + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4396
SELECT 62 * + 13 DIV COUNT( + 22 ) * - 79 + + ( + ( + 44 ) )
----
-63630

skipif mysql # not compatible
query I rowsort label-4396
SELECT 62 * + 13 / COUNT ( + 22 ) * - 79 + + ( + ( + 44 ) )
----
-63630

query I rowsort
SELECT DISTINCT - 51 * - 27 * 80
----
110160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4398
SELECT + + CAST( NULL AS SIGNED ) * - 93 + CASE + - 32 WHEN + - 75 * 45 THEN NULL ELSE + + COALESCE ( - 90, 13, + 24 ) * 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4398
SELECT + + CAST ( NULL AS INTEGER ) * - 93 + CASE + - 32 WHEN + - 75 * 45 THEN NULL ELSE + + COALESCE ( - 90, 13, + 24 ) * 2 END
----
NULL

query I rowsort
SELECT ALL 46 * - 38
----
-1748

query I rowsort
SELECT 32 + 75 AS col0
----
107

query I rowsort
SELECT 20 + - 39 AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4402
SELECT ALL - COUNT( * ) AS col2, - 85 DIV ( + NULLIF ( 14, + + 52 ) )
----
-1
-6

skipif mysql # not compatible
query II rowsort label-4402
SELECT ALL - COUNT ( * ) AS col2, - 85 / ( + NULLIF ( 14, + + 52 ) )
----
-1
-6

query I rowsort
SELECT + - 15 * - - 43 + + + 43 + + ( + + 89 ) + - + 28 * + 56 * + 82 AS col0
----
-129089

query I rowsort
SELECT 9 + + + 52
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4405
SELECT - 12 DIV - NULLIF ( + 34, + 1 + - 46 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4405
SELECT - 12 / - NULLIF ( + 34, + 1 + - 46 ) AS col1
----
0

query I rowsort
SELECT 86 * + + 8 + - 80
----
608

query I rowsort
SELECT 6 + 48 AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4408
SELECT 9 DIV + MIN( + 1 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4408
SELECT 9 / + MIN ( + 1 ) AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT DISTINCT - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT ALL + MAX( COALESCE ( + 9, - 91 ) ) + - 42 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL + MAX ( COALESCE ( + 9, - 91 ) ) + - 42 AS col2
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4411
SELECT DISTINCT + 32 DIV - 35 * - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT + 32 / - 35 * - 70 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4412
SELECT 35 DIV 7 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-4412
SELECT 35 / 7 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4413
SELECT NULLIF ( - CAST( + - 81 AS SIGNED ), + - 12 ) * COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4413
SELECT NULLIF ( - CAST ( + - 81 AS INTEGER ), + - 12 ) * COUNT ( * )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4414
SELECT DISTINCT + COUNT( * ) DIV - - 21
----
0

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT + COUNT ( * ) / - - 21
----
0

query II rowsort
SELECT 51 + + 82 AS col2, - 61 col0
----
133
-61

query I rowsort
SELECT DISTINCT - 43 + + - 42 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT 99 * + - COALESCE ( + COUNT( * ), - 26 / + + 50 ) * + - 92 * + 89 + - CASE 46 WHEN 42 THEN NULL WHEN ( + 86 ) THEN NULL WHEN - 46 THEN + 0 * 83 ELSE NULL END * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT 99 * + - COALESCE ( + COUNT ( * ), - 26 / + + 50 ) * + - 92 * + 89 + - CASE 46 WHEN 42 THEN NULL WHEN ( + 86 ) THEN NULL WHEN - 46 THEN + 0 * 83 ELSE NULL END * 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT + COALESCE ( - + COUNT( DISTINCT + + 8 ), + 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-4418
SELECT + COALESCE ( - + COUNT ( DISTINCT + + 8 ), + 12 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4419
SELECT + 11 + + - 80 + 77 DIV - - 38
----
-67

skipif mysql # not compatible
query I rowsort label-4419
SELECT + 11 + + - 80 + 77 / - - 38
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4420
SELECT ALL - CAST( + 34 AS SIGNED ), + 37 AS col0
----
-34
37

skipif mysql # not compatible
query II rowsort label-4420
SELECT ALL - CAST ( + 34 AS INTEGER ), + 37 AS col0
----
-34
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT ALL - 13 - - 98 + + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL - 13 - - 98 + + COUNT ( * ) AS col0
----
86

query I rowsort
SELECT + + CASE + + 91 WHEN - 72 THEN ( + 31 ) END * 71 * + 80 * 69 * - 22 - 47 - 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4423
SELECT DISTINCT 35 * - + 81 + + COALESCE ( - - CASE + + 96 WHEN + NULLIF ( - 83, + 12 ) THEN + 19 WHEN 64 THEN CASE + 8 WHEN 42 * 49 + - 69 THEN - 42 + + 29 ELSE + COALESCE ( 97, + 82 ) * COUNT( * ) END END, - 19, - 83 ) DIV - 10 col0
----
-2834

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT 35 * - + 81 + + COALESCE ( - - CASE + + 96 WHEN + NULLIF ( - 83, + 12 ) THEN + 19 WHEN 64 THEN CASE + 8 WHEN 42 * 49 + - 69 THEN - 42 + + 29 ELSE + COALESCE ( 97, + 82 ) * COUNT ( * ) END END, - 19, - 83 ) / - 10 col0
----
-2834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT 47 * + ( + CAST( - 72 AS SIGNED ) ) + ( - + COUNT( * ) )
----
-3385

skipif mysql # not compatible
query I rowsort label-4424
SELECT 47 * + ( + CAST ( - 72 AS INTEGER ) ) + ( - + COUNT ( * ) )
----
-3385

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT ALL - + SUM( ALL 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL - + SUM ( ALL 68 )
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4426
SELECT ALL - NULLIF ( - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) ) + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL - NULLIF ( - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) ) + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT COUNT( * ) * + + 69 * - ( 58 ) AS col0
----
-4002

skipif mysql # not compatible
query I rowsort label-4427
SELECT COUNT ( * ) * + + 69 * - ( 58 ) AS col0
----
-4002

query I rowsort
SELECT - 82 * + + 43 + - 55
----
-3581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4429
SELECT ALL COUNT( * ) + + CASE CAST( - 98 AS SIGNED ) WHEN CASE + MAX( + 33 ) WHEN - + 50 THEN + CAST( NULL AS SIGNED ) WHEN + + 42 THEN - COUNT( * ) * 77 ELSE NULL END THEN NULL ELSE NULLIF ( SUM( + 22 ), + 57 + 89 ) * + COUNT( * ) END - 7 * 6
----
-19

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL COUNT ( * ) + + CASE CAST ( - 98 AS INTEGER ) WHEN CASE + MAX ( + 33 ) WHEN - + 50 THEN + CAST ( NULL AS INTEGER ) WHEN + + 42 THEN - COUNT ( * ) * 77 ELSE NULL END THEN NULL ELSE NULLIF ( SUM ( + 22 ), + 57 + 89 ) * + COUNT ( * ) END - 7 * 6
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT COUNT( * ) + - COALESCE ( 80, + 27 * - - 98 * + 70 * - - 67 + + + 3, COUNT( ALL + 65 ) ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-4430
SELECT COUNT ( * ) + - COALESCE ( 80, + 27 * - - 98 * + 70 * - - 67 + + + 3, COUNT ( ALL + 65 ) ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT 51 * ( - COUNT( * ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-4431
SELECT 51 * ( - COUNT ( * ) ) AS col2
----
-51

query I rowsort
SELECT 25 + + - 69 + + 45
----
1

query I rowsort
SELECT ALL - 56 + - 30 - 58 * + + 55 col1
----
-3276

query II rowsort
SELECT ALL 61 AS col2, + 57 AS col1
----
61
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4435
SELECT ALL CASE - + 73 WHEN - 75 / 58 * 83 + - 71 THEN + 48 / - 31 END + + 94 * - CASE COUNT( * ) WHEN 63 + + ( COUNT( * ) + 94 / 98 ) / 63 THEN NULL WHEN + CASE NULLIF ( COUNT( * ), + MIN( DISTINCT 70 ) * CAST( NULL AS SIGNED ) ) WHEN 58 THEN + 73 * - 83 END * 79 + + 68 / - 15 THEN 14 + 38 / 84 END * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL CASE - + 73 WHEN - 75 / 58 * 83 + - 71 THEN + 48 / - 31 END + + 94 * - CASE COUNT ( * ) WHEN 63 + + ( COUNT ( * ) + 94 / 98 ) / 63 THEN NULL WHEN + CASE NULLIF ( COUNT ( * ), + MIN ( DISTINCT 70 ) * CAST ( NULL AS INTEGER ) ) WHEN 58 THEN + 73 * - 83 END * 79 + + 68 / - 15 THEN 14 + 38 / 84 END * 40
----
NULL

query I rowsort
SELECT ALL - 29 + - 63
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4437
SELECT ALL + 65 DIV COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL + 65 / COUNT ( * )
----
65

query I rowsort
SELECT - NULLIF ( + 48, - - 76 ) + - + 82 AS col1
----
-130

query I rowsort
SELECT ALL + 57 * + 34 AS col0
----
1938

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT - CASE + + 71 WHEN + 86 THEN - 47 + - 92 END * + COUNT( * ) * + MAX( + + 72 ) * - 49 + - 11 + + 15 + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4440
SELECT - CASE + + 71 WHEN + 86 THEN - 47 + - 92 END * + COUNT ( * ) * + MAX ( + + 72 ) * - 49 + - 11 + + 15 + 7
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4441
SELECT DISTINCT + 84 / + + COUNT( * ) * + 63 / CAST( NULL AS SIGNED ) * + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT + 84 / + + COUNT ( * ) * + 63 / CAST ( NULL AS INTEGER ) * + 43
----
NULL

query II rowsort
SELECT ALL + + 38 * - - 12 * ( - 84 ) + 63, 48 - - 30 - - + 63 * - + 97 col0
----
-38241
-6033

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT - + 3 + + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4443
SELECT - + 3 + + COUNT ( * ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT - - ( - 87 ) + 2 * + CASE + + 34 WHEN + 24 THEN - COUNT( * ) WHEN + - 67 THEN NULL ELSE + - 82 END + - 40 * 50 AS col2
----
-2251

skipif mysql # not compatible
query I rowsort label-4444
SELECT - - ( - 87 ) + 2 * + CASE + + 34 WHEN + 24 THEN - COUNT ( * ) WHEN + - 67 THEN NULL ELSE + - 82 END + - 40 * 50 AS col2
----
-2251

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4445
SELECT - 65 - CAST( + 22 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-4445
SELECT - 65 - CAST ( + 22 AS INTEGER )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4446
SELECT ALL - 17 * - 47 - - 76 * + CAST( - 58 AS SIGNED ) AS col2
----
-3609

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL - 17 * - 47 - - 76 * + CAST ( - 58 AS INTEGER ) AS col2
----
-3609

query I rowsort
SELECT - 4 * - 34
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4448
SELECT - COALESCE ( + COUNT( * ), 70 DIV ( CAST( NULL AS SIGNED ) ) - + 4 - MIN( - 73 ) * + - 49 + + ( - 36 ) + 74 DIV COUNT( * ), + 97 ) + - 37
----
-38

skipif mysql # not compatible
query I rowsort label-4448
SELECT - COALESCE ( + COUNT ( * ), 70 / ( CAST ( NULL AS INTEGER ) ) - + 4 - MIN ( - 73 ) * + - 49 + + ( - 36 ) + 74 / COUNT ( * ), + 97 ) + - 37
----
-38

query I rowsort
SELECT ALL + - 34 * + - 74 AS col1
----
2516

query I rowsort
SELECT 87 * - + 29 + + 84 * + + 14 + - CASE 94 WHEN + 73 THEN - - 52 WHEN + 46 THEN NULL ELSE NULL END + + 11 col2
----
NULL

query II rowsort
SELECT ALL + + 84 AS col1, 21
----
84
21

query I rowsort
SELECT ALL + NULLIF ( - + 46, + - 14 + - ( ( - + 59 ) ) ) AS col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4453
SELECT + + 96 DIV - 44 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4453
SELECT + + 96 / - 44 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4454
SELECT + 25 DIV - 58 * - 95 + + 67 + - + 99
----
-32

skipif mysql # not compatible
query I rowsort label-4454
SELECT + 25 / - 58 * - 95 + + 67 + - + 99
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT + - COUNT( - 46 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4455
SELECT + - COUNT ( - 46 ) AS col0
----
-1

query I rowsort
SELECT - 20 + - - 40 + - 98 + - - 90 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT + 94 + - 15 + COUNT( * ) - - 52 AS col2
----
132

skipif mysql # not compatible
query I rowsort label-4457
SELECT + 94 + - 15 + COUNT ( * ) - - 52 AS col2
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4458
SELECT - 34 / - 3 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT - 34 / - 3 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4459
SELECT ALL 41 * CAST( 20 AS SIGNED ) * + 14 + + MIN( - 26 ) + ( - MAX( DISTINCT 35 ) )
----
11419

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL 41 * CAST ( 20 AS INTEGER ) * + 14 + + MIN ( - 26 ) + ( - MAX ( DISTINCT 35 ) )
----
11419

query I rowsort
SELECT 23 * + 17 + 20 AS col1
----
411

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT ALL + 32 * - - ( 70 ) * + + COALESCE ( + + COUNT( * ), - 45 )
----
2240

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL + 32 * - - ( 70 ) * + + COALESCE ( + + COUNT ( * ), - 45 )
----
2240

query I rowsort
SELECT - 43 + + 26
----
-17

query I rowsort
SELECT - 2 * + - 43 col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4464
SELECT + NULLIF ( - CASE - 47 WHEN ( + + 95 ) THEN + 71 + - + 91 * - + 63 WHEN CASE ( 51 ) WHEN - CAST( 96 AS SIGNED ) * 94 THEN NULL WHEN - ( + 25 ) THEN NULL ELSE + COUNT( * ) * + ( ( COUNT( * ) ) ) END * 1 THEN NULL ELSE - 59 END, - 39 ) + - 76
----
-17

skipif mysql # not compatible
query I rowsort label-4464
SELECT + NULLIF ( - CASE - 47 WHEN ( + + 95 ) THEN + 71 + - + 91 * - + 63 WHEN CASE ( 51 ) WHEN - CAST ( 96 AS INTEGER ) * 94 THEN NULL WHEN - ( + 25 ) THEN NULL ELSE + COUNT ( * ) * + ( ( COUNT ( * ) ) ) END * 1 THEN NULL ELSE - 59 END, - 39 ) + - 76
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT MIN( - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-4465
SELECT MIN ( - 26 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT + 34 * 48 + - + MAX( - + 23 )
----
1655

skipif mysql # not compatible
query I rowsort label-4466
SELECT + 34 * 48 + - + MAX ( - + 23 )
----
1655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4467
SELECT ALL 4 AS col0, + COALESCE ( - COUNT( * ), 95 * 78 + - - 81 + + - COALESCE ( COUNT( * ), + 52, + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) - - MIN( + 23 + + 51 ) ) DIV COUNT( * )
----
4
-1

skipif mysql # not compatible
query II rowsort label-4467
SELECT ALL 4 AS col0, + COALESCE ( - COUNT ( * ), 95 * 78 + - - 81 + + - COALESCE ( COUNT ( * ), + 52, + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) - - MIN ( + 23 + + 51 ) ) / COUNT ( * )
----
4
-1

query I rowsort
SELECT - CASE + 89 WHEN - + 72 * + 79 THEN 41 * + ( - 95 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT ALL CASE 88 WHEN - - 48 * + + 89 THEN + 80 * - COALESCE ( - - 59, - ( 80 ) + + 75 ) - + - 41 + SUM( ALL 54 ) WHEN 46 * - 6 THEN + 45 * - 73 END - CASE 59 WHEN + 51 THEN 71 - - 90 * + 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL CASE 88 WHEN - - 48 * + + 89 THEN + 80 * - COALESCE ( - - 59, - ( 80 ) + + 75 ) - + - 41 + SUM ( ALL 54 ) WHEN 46 * - 6 THEN + 45 * - 73 END - CASE 59 WHEN + 51 THEN 71 - - 90 * + 79 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4470
SELECT 97 * + + CASE + ( + 31 ) WHEN - - 43 * + + CAST( NULL AS SIGNED ) THEN - 63 * + 21 + - 13 WHEN - 41 THEN NULL END / - + COUNT( * ) + 63 + 79 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4470
SELECT 97 * + + CASE + ( + 31 ) WHEN - - 43 * + + CAST ( NULL AS INTEGER ) THEN - 63 * + 21 + - 13 WHEN - 41 THEN NULL END / - + COUNT ( * ) + 63 + 79 col2
----
NULL

query II rowsort
SELECT 92 AS col1, 9 * 59
----
92
531

onlyif mysql # aggregate syntax: 
query II rowsort label-4472
SELECT + COUNT( * ) * - + 9, + 37 + 74 AS col2
----
-9
111

skipif mysql # not compatible
query II rowsort label-4472
SELECT + COUNT ( * ) * - + 9, + 37 + 74 AS col2
----
-9
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4473
SELECT - 36 + - - COALESCE ( + NULLIF ( - COUNT( * ), COALESCE ( + - CAST( CAST( - + 75 AS SIGNED ) AS SIGNED ), - + 15 * + MAX( ALL + 0 ) / + 66 + - 73 ) + MIN( 78 + 82 ) ), 6, 33 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-4473
SELECT - 36 + - - COALESCE ( + NULLIF ( - COUNT ( * ), COALESCE ( + - CAST ( CAST ( - + 75 AS INTEGER ) AS INTEGER ), - + 15 * + MAX ( ALL + 0 ) / + 66 + - 73 ) + MIN ( 78 + 82 ) ), 6, 33 ) AS col2
----
-37

query II rowsort
SELECT + 72, 67 * - - 74 col0
----
72
4958

query I rowsort
SELECT - ( - - 15 ) + - 53 * - 0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT DISTINCT 67 * COUNT( * ) * + 42
----
2814

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT 67 * COUNT ( * ) * + 42
----
2814

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4477
SELECT ALL + - NULLIF ( - 17, 97 ) DIV + COUNT( * ), ( - 98 ) - - - 55 AS col0
----
17
-153

skipif mysql # not compatible
query II rowsort label-4477
SELECT ALL + - NULLIF ( - 17, 97 ) / + COUNT ( * ), ( - 98 ) - - - 55 AS col0
----
17
-153

query II rowsort
SELECT ALL + 5 col2, - 37
----
5
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4479
SELECT - COUNT( * ) + + 94 * + CASE + 8 WHEN - 94 + - - 88 + - CAST( COUNT( * ) AS SIGNED ) THEN - 20 + + 86 - - - 99 * - 1 WHEN ( + 85 ) * 34 THEN NULL ELSE - 65 * COALESCE ( 52, 33 DIV 78 ) END
----
-317721

skipif mysql # not compatible
query I rowsort label-4479
SELECT - COUNT ( * ) + + 94 * + CASE + 8 WHEN - 94 + - - 88 + - CAST ( COUNT ( * ) AS INTEGER ) THEN - 20 + + 86 - - - 99 * - 1 WHEN ( + 85 ) * 34 THEN NULL ELSE - 65 * COALESCE ( 52, 33 / 78 ) END
----
-317721

query II rowsort
SELECT - 79 AS col2, 72 AS col0
----
-79
72

query III rowsort
SELECT ALL + 82, + 85 AS col2, 4 - 97 AS col1
----
82
85
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT ALL - 36 DIV 33 - + 4
----
-5

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - 36 / 33 - + 4
----
-5

query I rowsort
SELECT + 82 - 78 + + 30
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT + CASE - - 36 WHEN + NULLIF ( + 21, + - 33 ) - + 67 - - + 14 THEN + - COUNT( * ) * + 35 WHEN - AVG ( ALL - 81 ) THEN NULL WHEN + 8 * 36 - + 52 THEN 9 / - 59 END / + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT + CASE - - 36 WHEN + NULLIF ( + 21, + - 33 ) - + 67 - - + 14 THEN + - COUNT ( * ) * + 35 WHEN - AVG ( ALL - 81 ) THEN NULL WHEN + 8 * 36 - + 52 THEN 9 / - 59 END / + 20
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4485
SELECT + - 39 * - + SUM( ALL - 23 ) + + 99 - 72 + 76, + 6 * 87 + - - 72 - COUNT( ALL - 21 ) col1
----
-794
593

skipif mysql # not compatible
query II rowsort label-4485
SELECT + - 39 * - + SUM ( ALL - 23 ) + + 99 - 72 + 76, + 6 * 87 + - - 72 - COUNT ( ALL - 21 ) col1
----
-794
593

query II rowsort
SELECT + - 77 AS col1, - 88
----
-77
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4487
SELECT + 35 * 67 / - CAST( - MIN( ALL + - 93 ) AS SIGNED ) * - - 33 + - - CAST( NULL AS SIGNED ) - 7 - + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT + 35 * 67 / - CAST ( - MIN ( ALL + - 93 ) AS INTEGER ) * - - 33 + - - CAST ( NULL AS INTEGER ) - 7 - + + CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + - 64 * 47 * - - 25 + 37 AS col2, 73 AS col0
----
-75163
73

query I rowsort
SELECT - 74 / CASE 25 WHEN - - 37 * + 3 THEN 27 / + + 12 + - + 42 / + 6 - - 66 ELSE NULL END - - - 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT + MAX( - 53 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-4490
SELECT + MAX ( - 53 ) AS col1
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4491
SELECT ALL - 58 DIV - - 40 + NULLIF ( + COUNT( * ), - 8 - + - 61 )
----
0

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL - 58 / - - 40 + NULLIF ( + COUNT ( * ), - 8 - + - 61 )
----
0

query I rowsort
SELECT - 44 * - 29
----
1276

onlyif mysql # aggregate syntax: 
query II rowsort label-4493
SELECT ( COUNT( * ) ), + 95 AS col2
----
1
95

skipif mysql # not compatible
query II rowsort label-4493
SELECT ( COUNT ( * ) ), + 95 AS col2
----
1
95

query I rowsort
SELECT + COALESCE ( - + 91, - - 71 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT + ( 81 ) DIV 65 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4495
SELECT + ( 81 ) / 65 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4496
SELECT DISTINCT + 83 * - MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT + 83 * - MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT 19 - - 91 AS col0
----
110

query II rowsort
SELECT DISTINCT 78 * - 82, - ( - 40 ) * - 32 + + - 3 AS col1
----
-6396
-1283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT 34 * + CAST( NULL AS SIGNED ) / - - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT 34 * + CAST ( NULL AS INTEGER ) / - - 10 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4500
SELECT 69 * - 75 AS col0, COUNT( * )
----
-5175
1

skipif mysql # not compatible
query II rowsort label-4500
SELECT 69 * - 75 AS col0, COUNT ( * )
----
-5175
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL - 66 * COUNT( * ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL - 66 * COUNT ( * ) AS col0
----
-66

query I rowsort
SELECT 40 + 89
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-4503
SELECT 76 DIV 43
----
1

skipif mysql # not compatible
query I rowsort label-4503
SELECT 76 / 43
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4504
SELECT + 0 + - + 85 AS col1, + NULLIF ( + COUNT( * ), - COUNT( * ) ) AS col1
----
-85
1

skipif mysql # not compatible
query II rowsort label-4504
SELECT + 0 + - + 85 AS col1, + NULLIF ( + COUNT ( * ), - COUNT ( * ) ) AS col1
----
-85
1

query II rowsort
SELECT DISTINCT ( + 30 ) AS col1, + 73 + - - 70 * + + 42 AS col1
----
30
3013

query I rowsort
SELECT - 22 * 92 AS col1
----
-2024

query I rowsort
SELECT 22 + + + 83 col0
----
105

query I rowsort
SELECT - 66 + - ( - + 82 ) + + 83 * 45 + + 20 + + - 30 * + - 85
----
6321

onlyif mysql # DIV for integer division: 
query I rowsort label-4509
SELECT 56 + - 19 DIV - - 6
----
53

skipif mysql # not compatible
query I rowsort label-4509
SELECT 56 + - 19 / - - 6
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4510
SELECT ALL + 74 * - - 89 - 55 - - - 52 + + 34 DIV + - 13 AS col0
----
6477

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL + 74 * - - 89 - 55 - - - 52 + + 34 / + - 13 AS col0
----
6477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4511
SELECT - CAST( + ( 29 ) AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-4511
SELECT - CAST ( + ( 29 ) AS INTEGER )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ALL - - 91 + + + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL - - 91 + + + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4513
SELECT - + ( + - 71 ), COUNT( * ) * 89 + - + COALESCE ( COUNT( * ), - 9 ) col2
----
71
88

skipif mysql # not compatible
query II rowsort label-4513
SELECT - + ( + - 71 ), COUNT ( * ) * 89 + - + COALESCE ( COUNT ( * ), - 9 ) col2
----
71
88

query II rowsort
SELECT ALL 85 * 5 AS col1, 84 * - + 64 AS col1
----
425
-5376

query II rowsort
SELECT 25 + + 9 + 3, + 2 AS col1
----
37
2

query I rowsort
SELECT ALL ( 37 ) + - - 8 * 34 * + 83 AS col0
----
22613

query I rowsort
SELECT 60 * - - 31 + 46
----
1906

onlyif mysql # DIV for integer division: 
query I rowsort label-4518
SELECT DISTINCT 56 DIV + 43 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT 56 / + 43 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4519
SELECT ALL - CAST( - 64 AS SIGNED ) * + + 83 * - - 52 AS col1
----
276224

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL - CAST ( - 64 AS INTEGER ) * + + 83 * - - 52 AS col1
----
276224

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT COUNT( * ) + - - 36 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4520
SELECT COUNT ( * ) + - - 36 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT ALL ( - MAX( + 46 ) ) - 17 + + COUNT( + 50 ) * - 64
----
-127

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL ( - MAX ( + 46 ) ) - 17 + + COUNT ( + 50 ) * - 64
----
-127

query II rowsort
SELECT + 92, - 89 AS col2
----
92
-89

query I rowsort
SELECT ALL + 97 * - 44 AS col0
----
-4268

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT + ( + 41 ) * - 55 + CASE - - 46 WHEN - + COUNT( * ) THEN + COUNT( ALL - - COALESCE ( ( - 17 ), + 21 ) ) END + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT + ( + 41 ) * - 55 + CASE - - 46 WHEN - + COUNT ( * ) THEN + COUNT ( ALL - - COALESCE ( ( - 17 ), + 21 ) ) END + + - COUNT ( * )
----
NULL

query I rowsort
SELECT 54 * + 29
----
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT 31 * + CASE - 56 WHEN + + NULLIF ( - - ( + 0 ), + NULLIF ( - 39, ( + - 17 ) * + 75 * + - 28 ) ) THEN MIN( ALL + 3 ) * + 7 WHEN SUM( 78 ) THEN - 97 * + 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT 31 * + CASE - 56 WHEN + + NULLIF ( - - ( + 0 ), + NULLIF ( - 39, ( + - 17 ) * + 75 * + - 28 ) ) THEN MIN ( ALL + 3 ) * + 7 WHEN SUM ( 78 ) THEN - 97 * + 41 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT 69 + - 64 + + 75 * - COUNT( * ) * - + 63
----
4730

skipif mysql # not compatible
query I rowsort label-4527
SELECT 69 + - 64 + + 75 * - COUNT ( * ) * - + 63
----
4730

query I rowsort
SELECT 76 + + + 50
----
126

query II rowsort
SELECT DISTINCT - NULLIF ( + - 18, + 48 ) col2, + ( + - 7 ) * - 92 + 1 AS col1
----
18
645

query I rowsort
SELECT 85 + - + 2
----
83

query II rowsort
SELECT + 68 AS col1, 74
----
68
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT ALL - COALESCE ( MIN( ALL - + 49 ), 94 * + 15 * 26 - - 8 )
----
49

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL - COALESCE ( MIN ( ALL - + 49 ), 94 * + 15 * 26 - - 8 )
----
49

query II rowsort
SELECT 17 AS col2, + 23 AS col1
----
17
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT + COUNT( + 31 ) * + - 3 + + 75 + 41
----
113

skipif mysql # not compatible
query I rowsort label-4534
SELECT + COUNT ( + 31 ) * + - 3 + + 75 + 41
----
113

query I rowsort
SELECT 69 * - 79 AS col0
----
-5451

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ALL - COUNT( * ) * 14
----
-14

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL - COUNT ( * ) * 14
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT - SUM( DISTINCT + 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-4537
SELECT - SUM ( DISTINCT + 59 ) AS col2
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4538
SELECT ALL 28 + - COUNT( * ) * - + CASE - COALESCE ( - + 20, - 46, 8 ) WHEN - COUNT( * ) THEN - - 47 WHEN - 23 * 57 * + - 25 + + MAX( ALL + ( - 82 ) ) THEN NULL WHEN + SUM( ALL + 10 ) * + COUNT( DISTINCT - 43 ) + + CAST( NULL AS SIGNED ) * - 14 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL 28 + - COUNT ( * ) * - + CASE - COALESCE ( - + 20, - 46, 8 ) WHEN - COUNT ( * ) THEN - - 47 WHEN - 23 * 57 * + - 25 + + MAX ( ALL + ( - 82 ) ) THEN NULL WHEN + SUM ( ALL + 10 ) * + COUNT ( DISTINCT - 43 ) + + CAST ( NULL AS INTEGER ) * - 14 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT ALL - + COALESCE ( COUNT( * ), - 65 ) + - 97 col0
----
-98

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL - + COALESCE ( COUNT ( * ), - 65 ) + - 97 col0
----
-98

query I rowsort
SELECT DISTINCT - COALESCE ( - - 48, - - 79, + 67 ) + - + 89 * + 9
----
-849

query I rowsort
SELECT + 64 * 45 AS col1
----
2880

query II rowsort
SELECT - 24 col0, - 49
----
-24
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT SUM( + + 17 ) * - + 14 AS col0
----
-238

skipif mysql # not compatible
query I rowsort label-4543
SELECT SUM ( + + 17 ) * - + 14 AS col0
----
-238

query II rowsort
SELECT DISTINCT 69, 72 AS col0
----
69
72

query I rowsort
SELECT ALL - - 22 * + 93 AS col2
----
2046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4546
SELECT ALL 30 + - - CAST( + 68 AS SIGNED ) + - + 1 + - 52 + + 73 + + 75 * - 22 + + 26
----
-1506

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL 30 + - - CAST ( + 68 AS INTEGER ) + - + 1 + - 52 + + 73 + + 75 * - 22 + + 26
----
-1506

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT - ( + MAX( ALL 41 ) ) * - 37
----
1517

skipif mysql # not compatible
query I rowsort label-4547
SELECT - ( + MAX ( ALL 41 ) ) * - 37
----
1517

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4548
SELECT ALL CAST( - 23 AS SIGNED ) * - - ( 14 ) * - + ( - 96 ) * 24 + + COUNT( - 80 )
----
-741887

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL CAST ( - 23 AS INTEGER ) * - - ( 14 ) * - + ( - 96 ) * 24 + + COUNT ( - 80 )
----
-741887

query I rowsort
SELECT + 23 + 85
----
108

query I rowsort
SELECT DISTINCT - ( 17 ) + - 31
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT ALL COUNT( DISTINCT + + ( + 56 ) ) + 79 + COUNT( * ) + - + 60 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL COUNT ( DISTINCT + + ( + 56 ) ) + 79 + COUNT ( * ) + - + 60 AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4552
SELECT + CAST( 75 AS SIGNED ) - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-4552
SELECT + CAST ( 75 AS INTEGER ) - COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT CASE - 51 WHEN + + 31 THEN NULL WHEN + - COUNT( DISTINCT 22 ) + + 50 * + 46 + 24 THEN + + 38 * - 67 WHEN - 36 * + + 58 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4553
SELECT CASE - 51 WHEN + + 31 THEN NULL WHEN + - COUNT ( DISTINCT 22 ) + + 50 * + 46 + 24 THEN + + 38 * - 67 WHEN - 36 * + + 58 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT + 16 * + 40 + - COUNT( 40 ) AS col0
----
639

skipif mysql # not compatible
query I rowsort label-4554
SELECT + 16 * + 40 + - COUNT ( 40 ) AS col0
----
639

query I rowsort
SELECT ALL + 10 * + 0 - + 84 AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4556
SELECT + 73 * 50 col0, + AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) + 85 * + - 41 AS col2
----
3650
NULL

skipif mysql # not compatible
query II rowsort label-4556
SELECT + 73 * 50 col0, + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + 85 * + - 41 AS col2
----
3650
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT ALL 79 * 5 * + MAX( ALL + - 73 )
----
-28835

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL 79 * 5 * + MAX ( ALL + - 73 )
----
-28835

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT DISTINCT COUNT( * ) * + 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4558
SELECT DISTINCT COUNT ( * ) * + 70 AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4559
SELECT ALL 1 DIV COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL 1 / COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4560
SELECT + COUNT( * ) * ( + NULLIF ( + 39, NULLIF ( + 50, - - ( 80 ) / + 12 ) ) ), 79 AS col0
----
39
79

skipif mysql # not compatible
query II rowsort label-4560
SELECT + COUNT ( * ) * ( + NULLIF ( + 39, NULLIF ( + 50, - - ( 80 ) / + 12 ) ) ), 79 AS col0
----
39
79

query I rowsort
SELECT + COALESCE ( + ( - 53 ), 15 * 59, 10 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4562
SELECT ALL 20 * 34 * - - CAST( + CAST( + 84 AS SIGNED ) AS SIGNED ) + + + 38 / - MIN( ALL CAST( NULL AS SIGNED ) ) * + - 49, 41 + + ( - 19 ) + - - 73 * - 60 AS col0
----
NULL
-4358

skipif mysql # not compatible
query II rowsort label-4562
SELECT ALL 20 * 34 * - - CAST ( + CAST ( + 84 AS INTEGER ) AS INTEGER ) + + + 38 / - MIN ( ALL CAST ( NULL AS INTEGER ) ) * + - 49, 41 + + ( - 19 ) + - - 73 * - 60 AS col0
----
NULL
-4358

query I rowsort
SELECT DISTINCT - 48 * 94 col2
----
-4512

query II rowsort
SELECT DISTINCT 95 * + 14 + + 6 + + 95, + 8 AS col2
----
1431
8

query I rowsort
SELECT ALL + 9 + - - 27
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT ALL + COUNT( - + 49 ) + - 0 - + + 79 * - 54 - - 43 AS col2
----
4310

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL + COUNT ( - + 49 ) + - 0 - + + 79 * - 54 - - 43 AS col2
----
4310

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT + 79 * + - MIN( DISTINCT 16 ) + 61
----
-1203

skipif mysql # not compatible
query I rowsort label-4567
SELECT + 79 * + - MIN ( DISTINCT 16 ) + 61
----
-1203

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT + + 18 + - COUNT( * ) * 74 + 8
----
-48

skipif mysql # not compatible
query I rowsort label-4568
SELECT + + 18 + - COUNT ( * ) * 74 + 8
----
-48

query I rowsort
SELECT - 4 - + 8
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL + COUNT( * ) + - - 17
----
18

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL + COUNT ( * ) + - - 17
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT - - NULLIF ( - 32, 75 * + 57 ) + 52 - - 31 * SUM( + + 87 ) + 68 * - - 22 * + 1 * 36 * 92
----
4957469

skipif mysql # not compatible
query I rowsort label-4571
SELECT - - NULLIF ( - 32, 75 * + 57 ) + 52 - - 31 * SUM ( + + 87 ) + 68 * - - 22 * + 1 * 36 * 92
----
4957469

query I rowsort
SELECT ALL - 57 + + 56 + - - NULLIF ( - - 11, + + 2 ) * 32 * 16 + 72 + + - ( 52 )
----
5651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4573
SELECT ALL - - COUNT( * ) + 67 + - + COUNT( * ) - - COUNT( * ) + + ( + NULLIF ( - - 12, - 39 * - - 95 ) ) + - 97 + - ( - 61 ) DIV + 87 + - ( + 85 ) - - 44 * + 80 * ( 18 * + 8 ) * CAST( - 4 AS SIGNED ) * 95 AS col0
----
-192614502

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL - - COUNT ( * ) + 67 + - + COUNT ( * ) - - COUNT ( * ) + + ( + NULLIF ( - - 12, - 39 * - - 95 ) ) + - 97 + - ( - 61 ) / + 87 + - ( + 85 ) - - 44 * + 80 * ( 18 * + 8 ) * CAST ( - 4 AS INTEGER ) * 95 AS col0
----
-192614502

query I rowsort
SELECT - 84 + - - 71
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4575
SELECT DISTINCT - ( ( - - CASE - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) + 98 * 39 THEN 6 + + - COUNT( CAST( NULL AS DECIMAL ) ) END ) ) + ( + - MAX( DISTINCT 83 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT - ( ( - - CASE - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) + 98 * 39 THEN 6 + + - COUNT ( CAST ( NULL AS REAL ) ) END ) ) + ( + - MAX ( DISTINCT 83 ) )
----
NULL

query I rowsort
SELECT - + 27 + ( + 30 )
----
3

query I rowsort
SELECT ALL - + 20 - + + 31 AS col0
----
-51

query I rowsort
SELECT - + 41 + 44
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT + + COUNT( * ) * 29 - - 22 col2
----
51

skipif mysql # not compatible
query I rowsort label-4579
SELECT + + COUNT ( * ) * 29 - - 22 col2
----
51

query I rowsort
SELECT ALL - - 44 * - + 53 AS col0
----
-2332

query I rowsort
SELECT - - ( - 50 ) + + 77
----
27

query I rowsort
SELECT + 47 + + 12 AS col2
----
59

query I rowsort
SELECT - - COALESCE ( + 14, + 61 )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4584
SELECT - 73 DIV - SUM( DISTINCT + 43 ) AS col0, 65
----
1
65

skipif mysql # not compatible
query II rowsort label-4584
SELECT - 73 / - SUM ( DISTINCT + 43 ) AS col0, 65
----
1
65

query I rowsort
SELECT - 49 * 74 AS col1
----
-3626

query II rowsort
SELECT ALL + 15 AS col1, 49 AS col0
----
15
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT DISTINCT + SUM( DISTINCT ( - + COALESCE ( 99, - 40 ) ) )
----
-99

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT + SUM ( DISTINCT ( - + COALESCE ( 99, - 40 ) ) )
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4588
SELECT CAST( - 1 AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4588
SELECT CAST ( - 1 AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT - 14 * 81 DIV - + 30 * COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-4589
SELECT - 14 * 81 / - + 30 * COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT + COUNT( * ) * 43 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4590
SELECT + COUNT ( * ) * 43 AS col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4591
SELECT 70 DIV 29 + + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4591
SELECT 70 / 29 + + - COUNT ( * )
----
1

query I rowsort
SELECT ( + + 58 ) col0
----
58

query I rowsort
SELECT ( - CASE + + 20 WHEN - 47 THEN - - ( 56 ) - + 76 END )
----
NULL

query I rowsort
SELECT DISTINCT + 62 * - + 62
----
-3844

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT ALL 48 * - 13 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL 48 * - 13 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 16 * - 64 + - 77
----
-1101

query II rowsort
SELECT DISTINCT + 46 col0, 10 * - 38 AS col0
----
46
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL 66 * - CASE + COALESCE ( - 38, 62 ) WHEN + COUNT( ALL - 37 ) THEN - COUNT( * ) ELSE NULL END + + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL 66 * - CASE + COALESCE ( - 38, 62 ) WHEN + COUNT ( ALL - 37 ) THEN - COUNT ( * ) ELSE NULL END + + 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4599
SELECT + MAX( + 74 ) * + 67 * - + COUNT( * ) + + 75, + 31 AS col0
----
-4883
31

skipif mysql # not compatible
query II rowsort label-4599
SELECT + MAX ( + 74 ) * + 67 * - + COUNT ( * ) + + 75, + 31 AS col0
----
-4883
31

query I rowsort
SELECT ALL 91 * + 67 + + - 90
----
6007

query I rowsort
SELECT + 29 + + - 69 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT + MIN( + 31 ) + COUNT( ALL 34 )
----
32

skipif mysql # not compatible
query I rowsort label-4602
SELECT + MIN ( + 31 ) + COUNT ( ALL 34 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4603
SELECT + + CAST( + + 61 AS SIGNED ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4603
SELECT + + CAST ( + + 61 AS INTEGER ) AS col0
----
61

query I rowsort
SELECT + 32 * + 37 AS col1
----
1184

onlyif mysql # aggregate syntax: 
query II rowsort label-4605
SELECT - 2 + - - COALESCE ( + 77, 37, + MIN( - 85 ) ) * - COUNT( * ) + - 72, - 77 col0
----
-151
-77

skipif mysql # not compatible
query II rowsort label-4605
SELECT - 2 + - - COALESCE ( + 77, 37, + MIN ( - 85 ) ) * - COUNT ( * ) + - 72, - 77 col0
----
-151
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4606
SELECT + + 81 * - + CASE - - 81 WHEN - 26 THEN NULL WHEN - CAST( + 38 AS SIGNED ) THEN COUNT( * ) WHEN - 60 THEN + 98 * 68 * - - 48 END / + 35 + - 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT + + 81 * - + CASE - - 81 WHEN - 26 THEN NULL WHEN - CAST ( + 38 AS INTEGER ) THEN COUNT ( * ) WHEN - 60 THEN + 98 * 68 * - - 48 END / + 35 + - 56 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT DISTINCT + 75 DIV + 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT + 75 / + 48 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT ALL COUNT( + 20 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL COUNT ( + 20 ) AS col1
----
1

query II rowsort
SELECT 83, 22 AS col0
----
83
22

query I rowsort
SELECT NULLIF ( 44, - 38 )
----
44

query I rowsort
SELECT 44 - + - 35 - - - ( - 64 )
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-4612
SELECT ALL + 38 * - + 51, - MIN( - 40 ) AS col2
----
-1938
40

skipif mysql # not compatible
query II rowsort label-4612
SELECT ALL + 38 * - + 51, - MIN ( - 40 ) AS col2
----
-1938
40

query II rowsort
SELECT ALL 33 AS col2, - 44
----
33
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4614
SELECT - 35 AS col0, + CAST( NULL AS SIGNED ) * - 65 * + 99 AS col2
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-4614
SELECT - 35 AS col0, + CAST ( NULL AS INTEGER ) * - 65 * + 99 AS col2
----
-35
NULL

query I rowsort
SELECT ALL + 38 * - 31 AS col2
----
-1178

query I rowsort
SELECT 40 * + 61 * + 90 AS col0
----
219600

query I rowsort
SELECT DISTINCT + 20 + - 82 col2
----
-62

query II rowsort
SELECT + 99 AS col0, 37 * - - 89 * ( - - 17 )
----
99
55981

onlyif mysql # DIV for integer division: 
query I rowsort label-4619
SELECT 59 DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-4619
SELECT 59 / + 47
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT DISTINCT - 21 + + - COUNT( ALL 67 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT - 21 + + - COUNT ( ALL 67 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT DISTINCT + 66 + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT + 66 + COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT + 75 * 88 + - + COUNT( * )
----
6599

skipif mysql # not compatible
query I rowsort label-4622
SELECT + 75 * 88 + - + COUNT ( * )
----
6599

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL - NULLIF ( - 30, COUNT( * ) * 72 )
----
30

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL - NULLIF ( - 30, COUNT ( * ) * 72 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT MAX( ALL - + 29 ) * + + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-4624
SELECT MAX ( ALL - + 29 ) * + + COUNT ( * )
----
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4625
SELECT + 37 DIV - 98 * - 17 - - 2 + 27 * + 78 * + COALESCE ( 15, + 16 ) + + - CAST( 54 AS SIGNED ) * + - 95 * - - 79 AS col1
----
436862

skipif mysql # not compatible
query I rowsort label-4625
SELECT + 37 / - 98 * - 17 - - 2 + 27 * + 78 * + COALESCE ( 15, + 16 ) + + - CAST ( 54 AS INTEGER ) * + - 95 * - - 79 AS col1
----
436862

query I rowsort
SELECT ALL + 90 + - 70 AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT DISTINCT + 79 DIV - 59
----
-1

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT + 79 / - 59
----
-1

query I rowsort
SELECT ALL + + 41 * + + 26 AS col1
----
1066

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT DISTINCT - + 78 - - COUNT( * ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT - + 78 - - COUNT ( * ) col0
----
-77

query I rowsort
SELECT ALL + 30 * 81 * + 13 AS col2
----
31590

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL - COUNT( ALL + 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL - COUNT ( ALL + 9 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4632
SELECT ALL - + COUNT( * ) AS col2, 14 DIV - COUNT( * )
----
-1
-14

skipif mysql # not compatible
query II rowsort label-4632
SELECT ALL - + COUNT ( * ) AS col2, 14 / - COUNT ( * )
----
-1
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4633
SELECT 74 * 90 + + - 46 + NULLIF ( - MAX( DISTINCT CAST( NULL AS SIGNED ) ), - COALESCE ( + 67, + + 45 * + ( + + 51 ) * COUNT( * ) * + + 60 * + - ( + 1 ) + + + COUNT( * ), + 26 ) + - 30 ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT 74 * 90 + + - 46 + NULLIF ( - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ), - COALESCE ( + 67, + + 45 * + ( + + 51 ) * COUNT ( * ) * + + 60 * + - ( + 1 ) + + + COUNT ( * ), + 26 ) + - 30 ) + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4634
SELECT ALL - 35 AS col2, NULLIF ( ( + 90 ), - MAX( ALL - 13 ) * + 1 * + COUNT( * ) ) * + CAST( COUNT( * ) AS SIGNED ) AS col0
----
-35
90

skipif mysql # not compatible
query II rowsort label-4634
SELECT ALL - 35 AS col2, NULLIF ( ( + 90 ), - MAX ( ALL - 13 ) * + 1 * + COUNT ( * ) ) * + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-35
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT - 36 * - MIN( - 67 ) * - + 56 - - - 15
----
135057

skipif mysql # not compatible
query I rowsort label-4635
SELECT - 36 * - MIN ( - 67 ) * - + 56 - - - 15
----
135057

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT - COUNT( * ) * 13 * 87 AS col0
----
-1131

skipif mysql # not compatible
query I rowsort label-4636
SELECT - COUNT ( * ) * 13 * 87 AS col0
----
-1131

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT 25 + - - SUM( - COALESCE ( + 53, 3, + - 49 ) ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-4637
SELECT 25 + - - SUM ( - COALESCE ( + 53, 3, + - 49 ) ) col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT + COALESCE ( - COUNT( * ), - - 39, 87 * - 22 * + ( + 35 ), + 36 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4638
SELECT + COALESCE ( - COUNT ( * ), - - 39, 87 * - 22 * + ( + 35 ), + 36 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4639
SELECT ALL - 14 DIV MAX( DISTINCT + - 77 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL - 14 / MAX ( DISTINCT + - 77 ) AS col2
----
0

query I rowsort
SELECT 2 * - 33 AS col1
----
-66

query I rowsort
SELECT DISTINCT 8 * 97 * - 82 AS col1
----
-63632

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT + 82 + - 40 * COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-4642
SELECT + 82 + - 40 * COUNT ( * )
----
42

query I rowsort
SELECT ALL + + 77 * - - 97 + - + 65 * - - 27
----
5714

query I rowsort
SELECT ALL ( + 77 ) * - - 88
----
6776

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT 60 * COUNT( + 78 )
----
60

skipif mysql # not compatible
query I rowsort label-4645
SELECT 60 * COUNT ( + 78 )
----
60

query II rowsort
SELECT 63 + - 2 AS col1, CASE - + 30 WHEN + - 38 THEN AVG ( ALL - 49 ) END AS col0
----
61
NULL

query I rowsort
SELECT ALL 84 + - 11 AS col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT CAST( - 94 AS SIGNED ) * + 52
----
-4888

skipif mysql # not compatible
query I rowsort label-4648
SELECT CAST ( - 94 AS INTEGER ) * + 52
----
-4888

onlyif mysql # aggregate syntax: 
query II rowsort label-4649
SELECT ALL - COUNT( * ) + - 87 AS col0, - 57 * - 89
----
-88
5073

skipif mysql # not compatible
query II rowsort label-4649
SELECT ALL - COUNT ( * ) + - 87 AS col0, - 57 * - 89
----
-88
5073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4650
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 10 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 10 + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4651
SELECT + SUM( 43 ) AS col0, - 98 DIV + 80 AS col1
----
43
-1

skipif mysql # not compatible
query II rowsort label-4651
SELECT + SUM ( 43 ) AS col0, - 98 / + 80 AS col1
----
43
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ALL - NULLIF ( + MAX( - 43 ), + 6 )
----
43

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL - NULLIF ( + MAX ( - 43 ), + 6 )
----
43

query I rowsort
SELECT 13 * - 42
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT 84 + - SUM( ALL + COALESCE ( + 47, + 9 ) ) * + 37 AS col2
----
-1655

skipif mysql # not compatible
query I rowsort label-4654
SELECT 84 + - SUM ( ALL + COALESCE ( + 47, + 9 ) ) * + 37 AS col2
----
-1655

query I rowsort
SELECT 8 * - 29 - 89 AS col1
----
-321

query II rowsort
SELECT + ( - 94 ) col2, - 31 AS col0
----
-94
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL + + MAX( - NULLIF ( + 7, + - 15 ) ) * 38 + + 49
----
-217

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL + + MAX ( - NULLIF ( + 7, + - 15 ) ) * 38 + + 49
----
-217

query II rowsort
SELECT 91 * + 96 col0, COALESCE ( - 33, - 57 )
----
8736
-33

query I rowsort
SELECT DISTINCT - + 76 - 91 + - - 27 * - 70 col0
----
-2057

onlyif mysql # aggregate syntax: 
query II rowsort label-4660
SELECT - 64 + + + CASE + 2 WHEN + - 12 THEN COUNT( * ) ELSE NULL END AS col1, + 95 col0
----
NULL
95

skipif mysql # not compatible
query II rowsort label-4660
SELECT - 64 + + + CASE + 2 WHEN + - 12 THEN COUNT ( * ) ELSE NULL END AS col1, + 95 col0
----
NULL
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT 60 * - COUNT( * ) * + 95
----
-5700

skipif mysql # not compatible
query I rowsort label-4661
SELECT 60 * - COUNT ( * ) * + 95
----
-5700

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT 91 + - 64 + 33 DIV - 46 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4662
SELECT 91 + - 64 + 33 / - 46 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT DISTINCT - 41 * + - 12 - + 33 * 26 + - ( + CASE + + 61 WHEN - + 41 THEN + + 35 END ) - - 87 + - SUM( + 32 ) + - 35 * - 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT DISTINCT - 41 * + - 12 - + 33 * 26 + - ( + CASE + + 61 WHEN - + 41 THEN + + 35 END ) - - 87 + - SUM ( + 32 ) + - 35 * - 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4664
SELECT ALL - COUNT( * ) * + 90 + - 80 AS col0, + ( - + 40 )
----
-170
-40

skipif mysql # not compatible
query II rowsort label-4664
SELECT ALL - COUNT ( * ) * + 90 + - 80 AS col0, + ( - + 40 )
----
-170
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT + AVG ( 42 ) * + + 92 * + MIN( DISTINCT ( NULLIF ( 93, - 52 ) ) ) * - CASE - + 66 WHEN COUNT( * ) THEN 9 ELSE NULL END * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-4665
SELECT + AVG ( 42 ) * + + 92 * + MIN ( DISTINCT ( NULLIF ( 93, - 52 ) ) ) * - CASE - + 66 WHEN COUNT ( * ) THEN 9 ELSE NULL END * - 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4666
SELECT DISTINCT - 91 + 86 * + + COUNT( * ) * 8 * - COUNT( * ) * + COUNT( * ) * - 93 * - 37 * + + NULLIF ( + CASE 1 WHEN + 5 THEN - COUNT( ALL - 34 ) / - - ( COALESCE ( + - 68, - 88, COUNT( * ) + - 12 ) ) * 30 - + 56 WHEN + COUNT( * ) THEN NULL WHEN 92 THEN NULL END, 34 ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT - 91 + 86 * + + COUNT ( * ) * 8 * - COUNT ( * ) * + COUNT ( * ) * - 93 * - 37 * + + NULLIF ( + CASE 1 WHEN + 5 THEN - COUNT ( ALL - 34 ) / - - ( COALESCE ( + - 68, - 88, COUNT ( * ) + - 12 ) ) * 30 - + 56 WHEN + COUNT ( * ) THEN NULL WHEN 92 THEN NULL END, 34 ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 63 + + 3 AS col0
----
66

query I rowsort
SELECT - 14 - 52 AS col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4669
SELECT + 79 DIV - + 77
----
-1

skipif mysql # not compatible
query I rowsort label-4669
SELECT + 79 / - + 77
----
-1

query I rowsort
SELECT ALL 85 + + 54 + 62 * 29 AS col2
----
1937

query I rowsort
SELECT + 91 * + 62
----
5642

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4672
SELECT 85, 15 - COALESCE ( 95, + 27, - 54 * - COUNT( * ) DIV + 2 * - COUNT( * ) ) AS col0
----
85
-80

skipif mysql # not compatible
query II rowsort label-4672
SELECT 85, 15 - COALESCE ( 95, + 27, - 54 * - COUNT ( * ) / + 2 * - COUNT ( * ) ) AS col0
----
85
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT + 8 DIV - ( 71 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4673
SELECT + 8 / - ( 71 ) AS col1
----
0

query II rowsort
SELECT ALL 87, 83 col0
----
87
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT - SUM( ALL + 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-4675
SELECT - SUM ( ALL + 78 )
----
-78

query I rowsort
SELECT ALL 72 + 58
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL COUNT( * ) + + 73
----
74

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL COUNT ( * ) + + 73
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4678
SELECT + CAST( NULL AS SIGNED ) - - + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT + CAST ( NULL AS INTEGER ) - - + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT + 54 + + ( + - COUNT( * ) ) * 69 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-4679
SELECT + 54 + + ( + - COUNT ( * ) ) * 69 AS col1
----
-15

query I rowsort
SELECT DISTINCT 77 * + 48 AS col0
----
3696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4681
SELECT + 89 * - - CAST( 30 AS SIGNED )
----
2670

skipif mysql # not compatible
query I rowsort label-4681
SELECT + 89 * - - CAST ( 30 AS INTEGER )
----
2670

onlyif mysql # aggregate syntax: 
query II rowsort label-4682
SELECT ALL 95 + - + 74 + - - COUNT( * ), + 65 AS col0
----
22
65

skipif mysql # not compatible
query II rowsort label-4682
SELECT ALL 95 + - + 74 + - - COUNT ( * ), + 65 AS col0
----
22
65

query I rowsort
SELECT + 1 * + - 14 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL 71 - + COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL 71 - + COUNT ( * ) AS col0
----
70

query I rowsort
SELECT - 0 + - 35 AS col1
----
-35

query I rowsort
SELECT + ( 75 ) AS col0
----
75

query I rowsort
SELECT ALL 76 * - 87 * - 56
----
370272

onlyif mysql # DIV for integer division: 
query II rowsort label-4688
SELECT DISTINCT + 36 AS col1, + 59 DIV + 5 col1
----
36
11

skipif mysql # not compatible
query II rowsort label-4688
SELECT DISTINCT + 36 AS col1, + 59 / + 5 col1
----
36
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4689
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 83 + 4 - - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 83 + 4 - - 5
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4690
SELECT ALL + - 96, 7 DIV - - ( + 95 ) - + 32 col0
----
-96
-32

skipif mysql # not compatible
query II rowsort label-4690
SELECT ALL + - 96, 7 / - - ( + 95 ) - + 32 col0
----
-96
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4691
SELECT - CASE - ( + - CAST( NULL AS SIGNED ) ) WHEN + 39 THEN NULL WHEN - 31 THEN - 68 * SUM( - 97 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT - CASE - ( + - CAST ( NULL AS INTEGER ) ) WHEN + 39 THEN NULL WHEN - 31 THEN - 68 * SUM ( - 97 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4692
SELECT + - CAST( - + 42 AS SIGNED ) DIV + + 19 col0
----
2

skipif mysql # not compatible
query I rowsort label-4692
SELECT + - CAST ( - + 42 AS INTEGER ) / + + 19 col0
----
2

query I rowsort
SELECT - + 69 * - - 15
----
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT + + 58 - + ( COUNT( * ) )
----
57

skipif mysql # not compatible
query I rowsort label-4694
SELECT + + 58 - + ( COUNT ( * ) )
----
57

query II rowsort
SELECT + 89 AS col1, - 76 * + - 65 AS col2
----
89
4940

query I rowsort
SELECT DISTINCT - 47 * 70
----
-3290

onlyif mysql # aggregate syntax: 
query II rowsort label-4697
SELECT + + 62, + CASE - COUNT( * ) WHEN - 11 * 96 - + 91 + - 3 THEN NULL WHEN - 94 THEN - 87 END + - 96 col2
----
62
NULL

skipif mysql # not compatible
query II rowsort label-4697
SELECT + + 62, + CASE - COUNT ( * ) WHEN - 11 * 96 - + 91 + - 3 THEN NULL WHEN - 94 THEN - 87 END + - 96 col2
----
62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL CASE CASE - 97 WHEN - + 93 THEN + 28 END WHEN - + 30 * 92 + - - 32 + - 12 * - 87 + - + ( 26 ) / - ( + - 9 ) THEN - 26 WHEN + + 58 THEN - + CASE - 24 WHEN - 94 THEN + COUNT( * ) * - 47 END - 76 END * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL CASE CASE - 97 WHEN - + 93 THEN + 28 END WHEN - + 30 * 92 + - - 32 + - 12 * - 87 + - + ( 26 ) / - ( + - 9 ) THEN - 26 WHEN + + 58 THEN - + CASE - 24 WHEN - 94 THEN + COUNT ( * ) * - 47 END - 76 END * - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT - 44 * - COUNT( * ) * - - 11 * + - 9 AS col2
----
-4356

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT - 44 * - COUNT ( * ) * - - 11 * + - 9 AS col2
----
-4356

query I rowsort
SELECT ALL 85 * + - 75 + + - 95 + + + 26 AS col1
----
-6444

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4701
SELECT ALL - - 69 * + ( - 47 ) * + 13 * - CASE + - MIN( ALL 60 ) WHEN 76 THEN NULL ELSE + 99 * - 70 - - 72 * - SUM( DISTINCT 25 ) + + 86 END + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL - - 69 * + ( - 47 ) * + 13 * - CASE + - MIN ( ALL 60 ) WHEN 76 THEN NULL ELSE + 99 * - 70 - - 72 * - SUM ( DISTINCT 25 ) + + 86 END + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT DISTINCT + MAX( ALL 39 ) * + 19 * 87 + - ( 95 )
----
64372

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT + MAX ( ALL 39 ) * + 19 * 87 + - ( 95 )
----
64372

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT - + 73 * COUNT( ALL 93 ) + 86
----
13

skipif mysql # not compatible
query I rowsort label-4703
SELECT - + 73 * COUNT ( ALL 93 ) + 86
----
13

query II rowsort
SELECT - + ( + - 84 ) * 66 col0, 49 AS col2
----
5544
49

query I rowsort
SELECT ALL - ( 97 ) * + 79 + + ( + 28 ) * 82 col1
----
-5367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4706
SELECT + 85 * - 83 * 38 + + ( - ( - 25 ) ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4706
SELECT + 85 * - 83 * 38 + + ( - ( - 25 ) ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - 96, + 91 * - 61 AS col1
----
-96
-5551

onlyif mysql # DIV for integer division: 
query I rowsort label-4708
SELECT - - 82 + 70 DIV + + COALESCE ( + 8, 84 )
----
90

skipif mysql # not compatible
query I rowsort label-4708
SELECT - - 82 + 70 / + + COALESCE ( + 8, 84 )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4709
SELECT + 8 * 21 / - + 60 - - + CAST( NULL AS SIGNED ) * - ( + 46 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT + 8 * 21 / - + 60 - - + CAST ( NULL AS INTEGER ) * - ( + 46 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4710
SELECT ALL CAST( + + 85 AS SIGNED ) col1
----
85

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL CAST ( + + 85 AS INTEGER ) col1
----
85

query I rowsort
SELECT - 67 + + 70
----
3

query I rowsort
SELECT + 73 - - 71 AS col0
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4713
SELECT - NULLIF ( 85, - + COUNT( * ) + + 99 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4713
SELECT - NULLIF ( 85, - + COUNT ( * ) + + 99 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4714
SELECT DISTINCT - 34 + + - CAST( - 28 AS SIGNED ) + - COALESCE ( + 35, + - ( - 7 ) ) * + + 43 * - 25 * - + COUNT( * ) + - ( 58 ) AS col1
----
-37689

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT - 34 + + - CAST ( - 28 AS INTEGER ) + - COALESCE ( + 35, + - ( - 7 ) ) * + + 43 * - 25 * - + COUNT ( * ) + - ( 58 ) AS col1
----
-37689

query II rowsort
SELECT ALL 31 + - 65 * + 77 * + 37 AS col0, + 99
----
-185154
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4716
SELECT ALL - 16 * - 4 AS col1, + CAST( NULL AS SIGNED ) col1
----
64
NULL

skipif mysql # not compatible
query II rowsort label-4716
SELECT ALL - 16 * - 4 AS col1, + CAST ( NULL AS INTEGER ) col1
----
64
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4717
SELECT DISTINCT CAST( 28 AS SIGNED ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT CAST ( 28 AS INTEGER ) AS col1
----
28

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4718
SELECT ALL 95 - + + 5 DIV + NULLIF ( - + 45, - 44 * + - CAST( NULL AS DECIMAL ) + 31 )
----
95

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL 95 - + + 5 / + NULLIF ( - + 45, - 44 * + - CAST ( NULL AS REAL ) + 31 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT - CASE + ( - COUNT( + 35 ) ) WHEN + 86 + - MAX( DISTINCT + 76 ) THEN - + 26 / + 44 WHEN 38 THEN + 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT - CASE + ( - COUNT ( + 35 ) ) WHEN + 86 + - MAX ( DISTINCT + 76 ) THEN - + 26 / + 44 WHEN 38 THEN + 61 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT + ( - + COUNT( * ) ) * + - ( - - 15 )
----
15

skipif mysql # not compatible
query I rowsort label-4720
SELECT + ( - + COUNT ( * ) ) * + - ( - - 15 )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4721
SELECT DISTINCT + COUNT( 4 ) DIV + + COALESCE ( + 61, + - 83 ) * 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT + COUNT ( 4 ) / + + COALESCE ( + 61, + - 83 ) * 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT + 65 + 27 * + + MIN( - 50 ) AS col0
----
-1285

skipif mysql # not compatible
query I rowsort label-4722
SELECT + 65 + 27 * + + MIN ( - 50 ) AS col0
----
-1285

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4723
SELECT - 17 DIV - MIN( 75 ) + + 57
----
57

skipif mysql # not compatible
query I rowsort label-4723
SELECT - 17 / - MIN ( 75 ) + + 57
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4724
SELECT DISTINCT 11 * + 7 + - 50 * - SUM( + CAST( - 23 AS SIGNED ) ) AS col0
----
-1073

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT 11 * + 7 + - 50 * - SUM ( + CAST ( - 23 AS INTEGER ) ) AS col0
----
-1073

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4725
SELECT - + 61 DIV - 67 + - - 82 * 6 + - COUNT( * ) DIV 74 + + 88 * + 91 - - + 36
----
8536

skipif mysql # not compatible
query I rowsort label-4725
SELECT - + 61 / - 67 + - - 82 * 6 + - COUNT ( * ) / 74 + + 88 * + 91 - - + 36
----
8536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4726
SELECT + 29 * - + ( 93 ) + + CAST( - - COUNT( * ) AS SIGNED )
----
-2696

skipif mysql # not compatible
query I rowsort label-4726
SELECT + 29 * - + ( 93 ) + + CAST ( - - COUNT ( * ) AS INTEGER )
----
-2696

query I rowsort
SELECT ALL + + 33 + + 24 AS col2
----
57

query I rowsort
SELECT NULLIF ( 32, - 89 ) + + 68 + 77 AS col1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT + MAX( ( + 67 ) ) col0
----
67

skipif mysql # not compatible
query I rowsort label-4729
SELECT + MAX ( ( + 67 ) ) col0
----
67

query I rowsort
SELECT ALL + ( 2 ) + + + ( - ( 23 ) ) + 0 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT DISTINCT + COUNT( * ) * 93 + - 80 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT + COUNT ( * ) * 93 + - 80 AS col2
----
13

query I rowsort
SELECT DISTINCT 14 + 9 AS col0
----
23

query I rowsort
SELECT ALL + 66 + - - 14 AS col2
----
80

query I rowsort
SELECT ALL 32 + + 1 * + + 86 AS col2
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4735
SELECT - 2 * - + 12 AS col1, CAST( NULL AS SIGNED ) AS col1
----
24
NULL

skipif mysql # not compatible
query II rowsort label-4735
SELECT - 2 * - + 12 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT + - NULLIF ( 72, - 21 * 47 * COUNT( * ) )
----
-72

skipif mysql # not compatible
query I rowsort label-4736
SELECT + - NULLIF ( 72, - 21 * 47 * COUNT ( * ) )
----
-72

query I rowsort
SELECT + + ( + 85 ) AS col2
----
85

query I rowsort
SELECT - 85 + + 4 + NULLIF ( - 63, - + NULLIF ( + 24, - 83 ) + - 36 + + 94 + + + 34 / 78 * 4 ) + 23 AS col0
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4739
SELECT ALL + COALESCE ( ( COUNT( * ) ), + COALESCE ( - 41, - 11 * - 34 ) * - - 57 - + 57 ) * 62 DIV - + 60
----
-1

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL + COALESCE ( ( COUNT ( * ) ), + COALESCE ( - 41, - 11 * - 34 ) * - - 57 - + 57 ) * 62 / - + 60
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4740
SELECT - 29 DIV CAST( - 50 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4740
SELECT - 29 / CAST ( - 50 AS INTEGER )
----
0

query I rowsort
SELECT 60 * - 37
----
-2220

onlyif mysql # DIV for integer division: 
query I rowsort label-4742
SELECT DISTINCT - COALESCE ( + 25, - 52 * 86 DIV + 98 - 9, 8, - CASE WHEN NOT 56 < - + 38 * - ( 2 ) THEN - 89 DIV 58 + + 5 ELSE NULL END )
----
-25

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT - COALESCE ( + 25, - 52 * 86 / + 98 - 9, 8, - CASE WHEN NOT 56 < - + 38 * - ( 2 ) THEN - 89 / 58 + + 5 ELSE NULL END )
----
-25

query I rowsort
SELECT ALL 67 * COALESCE ( - 37, 19 )
----
-2479

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT ALL + 48 DIV - 24 col2
----
-2

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL + 48 / - 24 col2
----
-2

query I rowsort
SELECT 88 * + 41
----
3608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4746
SELECT ALL - 21 - + 54 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL - 21 - + 54 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4747
SELECT 34 col2, SUM( + ( - 19 ) ) AS col2
----
34
-19

skipif mysql # not compatible
query II rowsort label-4747
SELECT 34 col2, SUM ( + ( - 19 ) ) AS col2
----
34
-19

query I rowsort
SELECT 69 - - 95 AS col1
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4749
SELECT DISTINCT 3 AS col0, CAST( NULL AS SIGNED ) AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4749
SELECT DISTINCT 3 AS col0, CAST ( NULL AS INTEGER ) AS col0
----
3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4750
SELECT 4 * - CAST( NULL AS SIGNED ) / + - COUNT( * ) col0, + 36 AS col1
----
NULL
36

skipif mysql # not compatible
query II rowsort label-4750
SELECT 4 * - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) col0, + 36 AS col1
----
NULL
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4751
SELECT 13 - - - CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4751
SELECT 13 - - - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4752
SELECT DISTINCT + CASE ( SUM( ALL 86 ) ) WHEN - NULLIF ( + 3, + 38 + 0 * + 17 * - 1 + + 2 + 69 / - 49 * - 99 ) + - 93 THEN NULL ELSE + + CAST( NULL AS DECIMAL ) END * - 45 * - NULLIF ( - - 29, COUNT( * ) / 16 ) * - COALESCE ( 10, 62 + 81 * - 84 ) + 90 / - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT + CASE ( SUM ( ALL 86 ) ) WHEN - NULLIF ( + 3, + 38 + 0 * + 17 * - 1 + + 2 + 69 / - 49 * - 99 ) + - 93 THEN NULL ELSE + + CAST ( NULL AS REAL ) END * - 45 * - NULLIF ( - - 29, COUNT ( * ) / 16 ) * - COALESCE ( 10, 62 + 81 * - 84 ) + 90 / - 21
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4753
SELECT ALL + 59 * + COALESCE ( - - 61, - 99 DIV - 42, - COALESCE ( - - COUNT( DISTINCT - 6 ), - ( + 49 ) * - - COUNT( * ) * 65 * - 90 * COALESCE ( 36, - 25, 54 * NULLIF ( 85, + 51 + - 26 ) * ( + 11 * 89 + COUNT( * ) * - 81 ) + 68 + + 83 ) ) + 26 * 64 )
----
3599

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL + 59 * + COALESCE ( - - 61, - 99 / - 42, - COALESCE ( - - COUNT ( DISTINCT - 6 ), - ( + 49 ) * - - COUNT ( * ) * 65 * - 90 * COALESCE ( 36, - 25, 54 * NULLIF ( 85, + 51 + - 26 ) * ( + 11 * 89 + COUNT ( * ) * - 81 ) + 68 + + 83 ) ) + 26 * 64 )
----
3599

onlyif mysql # DIV for integer division: 
query I rowsort label-4754
SELECT 94 DIV 86 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4754
SELECT 94 / 86 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT COUNT( * ) * 29 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4755
SELECT COUNT ( * ) * 29 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT COALESCE ( - 39, + - COUNT( * ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4756
SELECT COALESCE ( - 39, + - COUNT ( * ) ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT - 74 + + - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-4757
SELECT - 74 + + - COUNT ( * )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT + MIN( ALL ( + 69 ) ) * - COUNT( * ) * - 37 + + + ( - 91 ) AS col2
----
2462

skipif mysql # not compatible
query I rowsort label-4758
SELECT + MIN ( ALL ( + 69 ) ) * - COUNT ( * ) * - 37 + + + ( - 91 ) AS col2
----
2462

query I rowsort
SELECT + 53 + + ( 44 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL - - SUM( - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL - - SUM ( - 60 )
----
-60

query I rowsort
SELECT ( + 23 ) * - 90 AS col1
----
-2070

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4762
SELECT ALL - 56 + - - 74 DIV - 81 col0, COUNT( * ) + - 3 * + + 48 AS col0
----
-56
-143

skipif mysql # not compatible
query II rowsort label-4762
SELECT ALL - 56 + - - 74 / - 81 col0, COUNT ( * ) + - 3 * + + 48 AS col0
----
-56
-143

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4763
SELECT ALL - 97 * 18 * - 75 AS col0, + 23 DIV + + 60 * ( 57 ) * + 22 * - NULLIF ( + 12, 9 * + 3 * - ( AVG ( DISTINCT - 83 ) ) + COUNT( * ) DIV - - COUNT( * ) ) * + 24 * 28
----
130950
0

skipif mysql # not compatible
query II rowsort label-4763
SELECT ALL - 97 * 18 * - 75 AS col0, + 23 / + + 60 * ( 57 ) * + 22 * - NULLIF ( + 12, 9 * + 3 * - ( AVG ( DISTINCT - 83 ) ) + COUNT ( * ) / - - COUNT ( * ) ) * + 24 * 28
----
130950
0

query I rowsort
SELECT DISTINCT - + 52 + 74 * - 24 AS col1
----
-1828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT + CAST( 86 AS SIGNED ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4765
SELECT + CAST ( 86 AS INTEGER ) AS col0
----
86

query I rowsort
SELECT - 33 * - 80 AS col0
----
2640

query I rowsort
SELECT - 86 - + + 27
----
-113

onlyif mysql # aggregate syntax: 
query II rowsort label-4768
SELECT DISTINCT - + 25, - COUNT( * ) + - 44 + - - 34 + - 25 col0
----
-25
-36

skipif mysql # not compatible
query II rowsort label-4768
SELECT DISTINCT - + 25, - COUNT ( * ) + - 44 + - - 34 + - 25 col0
----
-25
-36

query I rowsort
SELECT ALL 30 * - 63 col0
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT ALL - - COALESCE ( - - 39, COUNT( * ) )
----
39

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL - - COALESCE ( - - 39, COUNT ( * ) )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-4771
SELECT + - CASE + 94 WHEN - 19 THEN NULL ELSE + 84 * + 70 + + COUNT( * ) END, + MIN( - 57 ) AS col2
----
-5881
-57

skipif mysql # not compatible
query II rowsort label-4771
SELECT + - CASE + 94 WHEN - 19 THEN NULL ELSE + 84 * + 70 + + COUNT ( * ) END, + MIN ( - 57 ) AS col2
----
-5881
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL - MAX( 6 ) + + + 18
----
12

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL - MAX ( 6 ) + + + 18
----
12

query I rowsort
SELECT ALL + 79 - - - 13 col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT + - 91 * - COUNT( * ) - - - COUNT( * ) + + 16 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-4774
SELECT + - 91 * - COUNT ( * ) - - - COUNT ( * ) + + 16 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT DISTINCT 85 - - ( + CASE + COUNT( * ) WHEN - 46 + MIN( ALL + - 64 ) THEN - 65 * + 68 * COALESCE ( 2, - 47 / + - ( + 74 ), + COUNT( + + 39 ) ) * + + 48 WHEN + ( - AVG ( DISTINCT 94 ) ) THEN NULL WHEN + 3 THEN NULL ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT 85 - - ( + CASE + COUNT ( * ) WHEN - 46 + MIN ( ALL + - 64 ) THEN - 65 * + 68 * COALESCE ( 2, - 47 / + - ( + 74 ), + COUNT ( + + 39 ) ) * + + 48 WHEN + ( - AVG ( DISTINCT 94 ) ) THEN NULL WHEN + 3 THEN NULL ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL + 62 * + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL + 62 * + COUNT ( * )
----
62

query I rowsort
SELECT ALL 20 - - + 30 AS col1
----
50

query I rowsort
SELECT 7 * + + 40 * 14 AS col2
----
3920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4779
SELECT CAST( + 34 AS SIGNED ) + SUM( - 34 ) * 50
----
-1666

skipif mysql # not compatible
query I rowsort label-4779
SELECT CAST ( + 34 AS INTEGER ) + SUM ( - 34 ) * 50
----
-1666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4780
SELECT CAST( + 7 AS SIGNED ) * - 97 * - 2
----
1358

skipif mysql # not compatible
query I rowsort label-4780
SELECT CAST ( + 7 AS INTEGER ) * - 97 * - 2
----
1358

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT - COUNT( DISTINCT + 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-4781
SELECT - COUNT ( DISTINCT + 80 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4782
SELECT 4 DIV + COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4782
SELECT 4 / + COUNT ( * ) AS col2
----
4

query I rowsort
SELECT ALL 54 * - 35 AS col1
----
-1890

query I rowsort
SELECT ALL 12 * NULLIF ( - 89, - 43 )
----
-1068

query II rowsort
SELECT DISTINCT 9, 51 AS col1
----
9
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT ALL COUNT( - 7 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL COUNT ( - 7 ) AS col2
----
1

query I rowsort
SELECT 23 + - 2 AS col1
----
21

query I rowsort
SELECT 32 + - 87
----
-55

query II rowsort
SELECT - 71, + 80 * + 60 * - + 90 AS col2
----
-71
-432000

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL SUM( + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL SUM ( + 8 )
----
8

query II rowsort
SELECT ALL - 7 + + 83 * 99 * 12 col2, + 67 AS col0
----
98597
67

query I rowsort
SELECT ALL + 1 * + + 52 + + 17
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT CASE - SUM( + 5 ) WHEN + COUNT( * ) THEN + + 5 WHEN - - 0 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT CASE - SUM ( + 5 ) WHEN + COUNT ( * ) THEN + + 5 WHEN - - 0 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4794
SELECT ALL + + CASE - 12 WHEN - 30 THEN NULL ELSE + 47 * + 38 END + + 49 - COUNT( * ) + 66 DIV + - 18 col0, 9 + + 13 + - COUNT( * ) + - 55 * COUNT( * ), - 64 DIV - 91 col1
----
1831
-34
0

skipif mysql # not compatible
query III rowsort label-4794
SELECT ALL + + CASE - 12 WHEN - 30 THEN NULL ELSE + 47 * + 38 END + + 49 - COUNT ( * ) + 66 / + - 18 col0, 9 + + 13 + - COUNT ( * ) + - 55 * COUNT ( * ), - 64 / - 91 col1
----
1831
-34
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT + 68 * + NULLIF ( 79, 0 + + COUNT( * ) + 19 / + 84 - - COUNT( * ) ) * + 71 * + + 26 AS col0
----
9916712

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT + 68 * + NULLIF ( 79, 0 + + COUNT ( * ) + 19 / + 84 - - COUNT ( * ) ) * + 71 * + + 26 AS col0
----
9916712

query I rowsort
SELECT DISTINCT + 57 + + 56
----
113

query I rowsort
SELECT DISTINCT - 99 + 78 col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT ALL - - ( - + 74 ) * - - 58 + + CASE + NULLIF ( + COUNT( * ), + - MIN( - - 62 ) * + MIN( - - 85 ) + + - 41 + - + COUNT( * ) / - 99 + + - 21 + + - 33 * + ( + 78 ) ) WHEN + 96 THEN - - 67 WHEN + 39 THEN NULL WHEN - 5 THEN 16 WHEN COUNT( * ) * - 35 + 57 THEN - 50 + - 5 ELSE NULL END * + CASE ( - 62 ) WHEN 42 THEN ( - 13 ) - 76 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL - - ( - + 74 ) * - - 58 + + CASE + NULLIF ( + COUNT ( * ), + - MIN ( - - 62 ) * + MIN ( - - 85 ) + + - 41 + - + COUNT ( * ) / - 99 + + - 21 + + - 33 * + ( + 78 ) ) WHEN + 96 THEN - - 67 WHEN + 39 THEN NULL WHEN - 5 THEN 16 WHEN COUNT ( * ) * - 35 + 57 THEN - 50 + - 5 ELSE NULL END * + CASE ( - 62 ) WHEN 42 THEN ( - 13 ) - 76 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4799
SELECT + - 39 col0, 11 DIV + 47 - - - 12 AS col2
----
-39
-12

skipif mysql # not compatible
query II rowsort label-4799
SELECT + - 39 col0, 11 / + 47 - - - 12 AS col2
----
-39
-12

query I rowsort
SELECT - COALESCE ( - 46, - 30 + + + 2 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT - + COUNT( * ) * - COUNT( * ) * + COUNT( * ) + + + COALESCE ( - + 12, 29 )
----
-11

skipif mysql # not compatible
query I rowsort label-4801
SELECT - + COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) + + + COALESCE ( - + 12, 29 )
----
-11

query I rowsort
SELECT ALL + + ( - 41 ) AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4803
SELECT 69 DIV - - 11 + 87 * - CASE + ( + 3 ) WHEN + 26 THEN NULL ELSE + COUNT( * ) END + - 27
----
-108

skipif mysql # not compatible
query I rowsort label-4803
SELECT 69 / - - 11 + 87 * - CASE + ( + 3 ) WHEN + 26 THEN NULL ELSE + COUNT ( * ) END + - 27
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT SUM( ALL - 80 ) * COUNT( * ) * + 66 + 17 - + 95 * - + 85 * - - NULLIF ( - 51, 46 ) AS col0
----
-417088

skipif mysql # not compatible
query I rowsort label-4804
SELECT SUM ( ALL - 80 ) * COUNT ( * ) * + 66 + 17 - + 95 * - + 85 * - - NULLIF ( - 51, 46 ) AS col0
----
-417088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT + CAST( + CASE 0 WHEN - CASE 14 WHEN 1 THEN - + 75 * + + 3 + + 53 + - COUNT( * ) ELSE NULL END THEN NULL WHEN + 77 THEN 19 * + ( - 29 ) * - CASE COALESCE ( + 13, 34 * + 39 * COUNT( - 82 ) * 6 ) WHEN - ( + 71 ) + + ( SUM( - 13 ) ) THEN 65 / ( + 49 ) ELSE - AVG ( - ( + 43 ) ) * COUNT( * ) END + - 45 * CAST( NULL AS SIGNED ) - 93 WHEN ( 95 ) + + CAST( + 82 + 8 * + 97 AS SIGNED ) THEN COUNT( * ) ELSE NULL END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT + CAST ( + CASE 0 WHEN - CASE 14 WHEN 1 THEN - + 75 * + + 3 + + 53 + - COUNT ( * ) ELSE NULL END THEN NULL WHEN + 77 THEN 19 * + ( - 29 ) * - CASE COALESCE ( + 13, 34 * + 39 * COUNT ( - 82 ) * 6 ) WHEN - ( + 71 ) + + ( SUM ( - 13 ) ) THEN 65 / ( + 49 ) ELSE - AVG ( - ( + 43 ) ) * COUNT ( * ) END + - 45 * CAST ( NULL AS INTEGER ) - 93 WHEN ( 95 ) + + CAST ( + 82 + 8 * + 97 AS INTEGER ) THEN COUNT ( * ) ELSE NULL END AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4806
SELECT ALL + 25 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL + 25 / 59
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4807
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / + ( 87 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / + ( 87 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4808
SELECT 94 DIV 93 + - 92
----
-91

skipif mysql # not compatible
query I rowsort label-4808
SELECT 94 / 93 + - 92
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT ALL 20 * + + CASE 48 WHEN - - 66 THEN NULL ELSE 43 * + 16 - + 59 * - COALESCE ( - - CAST( 24 AS SIGNED ), 41 ) END AS col0
----
42080

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL 20 * + + CASE 48 WHEN - - 66 THEN NULL ELSE 43 * + 16 - + 59 * - COALESCE ( - - CAST ( 24 AS INTEGER ), 41 ) END AS col0
----
42080

query I rowsort
SELECT DISTINCT 37 * ( + 51 )
----
1887

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT + SUM( + - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-4811
SELECT + SUM ( + - 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT + NULLIF ( - COUNT( * ), 72 / + - 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-4812
SELECT + NULLIF ( - COUNT ( * ), 72 / + - 86 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4813
SELECT DISTINCT COUNT( * ) * - - 26 AS col0, 47 AS col0
----
26
47

skipif mysql # not compatible
query II rowsort label-4813
SELECT DISTINCT COUNT ( * ) * - - 26 AS col0, 47 AS col0
----
26
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4814
SELECT COUNT( DISTINCT CAST( + 69 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4814
SELECT COUNT ( DISTINCT CAST ( + 69 AS INTEGER ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4815
SELECT DISTINCT COUNT( - 55 ) * + 98 AS col2, 60 * - - 60
----
98
3600

skipif mysql # not compatible
query II rowsort label-4815
SELECT DISTINCT COUNT ( - 55 ) * + 98 AS col2, 60 * - - 60
----
98
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT MIN( 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4816
SELECT MIN ( 35 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4817
SELECT DISTINCT SUM( DISTINCT + - 22 ) AS col0, 55
----
-22
55

skipif mysql # not compatible
query II rowsort label-4817
SELECT DISTINCT SUM ( DISTINCT + - 22 ) AS col0, 55
----
-22
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT MIN( ALL - - 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4818
SELECT MIN ( ALL - - 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT DISTINCT COUNT( * ) + + 2 / - CASE 18 WHEN - 76 THEN NULL WHEN + + 62 * 69 * - + 44 + - 32 + + 98 * + NULLIF ( - - 41, - CASE + COUNT( * ) WHEN + - MAX( + + 83 ) THEN 90 ELSE NULL END + COUNT( * ) * + 13 * COALESCE ( + + COUNT( * ), + 43, 49 + MIN( ALL 39 ) ) / 82 - ( - COUNT( * ) + - 50 ) ) / + 29 + 39 THEN 24 / + 65 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT COUNT ( * ) + + 2 / - CASE 18 WHEN - 76 THEN NULL WHEN + + 62 * 69 * - + 44 + - 32 + + 98 * + NULLIF ( - - 41, - CASE + COUNT ( * ) WHEN + - MAX ( + + 83 ) THEN 90 ELSE NULL END + COUNT ( * ) * + 13 * COALESCE ( + + COUNT ( * ), + 43, 49 + MIN ( ALL 39 ) ) / 82 - ( - COUNT ( * ) + - 50 ) ) / + 29 + 39 THEN 24 / + 65 END AS col1
----
NULL

query I rowsort
SELECT + 88 - - 13 * 45 + + 22 AS col1
----
695

query I rowsort
SELECT ALL 0 * - COALESCE ( + 30, + + 31 )
----
0

query I rowsort
SELECT + 65 - - 62 col0
----
127

query I rowsort
SELECT - ( - + 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT + + COUNT( * ) * + 13
----
13

skipif mysql # not compatible
query I rowsort label-4824
SELECT + + COUNT ( * ) * + 13
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL 35 * - 76 * - NULLIF ( + 69, - SUM( - 92 ) / + 39 + - + ( - MIN( - - 58 ) ) - ( + 24 ) )
----
183540

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL 35 * - 76 * - NULLIF ( + 69, - SUM ( - 92 ) / + 39 + - + ( - MIN ( - - 58 ) ) - ( + 24 ) )
----
183540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4826
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) + - + COUNT( * ) * - + 17 + - 1 * + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) * - + 17 + - 1 * + 29 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 28 + + 26
----
54

onlyif mysql # DIV for integer division: 
query III rowsort label-4828
SELECT - 6 - + + 11, - 33 AS col1, 68 DIV 8 AS col2
----
-17
-33
8

skipif mysql # not compatible
query III rowsort label-4828
SELECT - 6 - + + 11, - 33 AS col1, 68 / 8 AS col2
----
-17
-33
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4829
SELECT ALL COUNT( ALL + 55 ) + + - 35, - 74 AS col1
----
-34
-74

skipif mysql # not compatible
query II rowsort label-4829
SELECT ALL COUNT ( ALL + 55 ) + + - 35, - 74 AS col1
----
-34
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4830
SELECT DISTINCT + + 84 + - - 71 DIV 41 * + 0 + + ( - 28 ) + 7 * COUNT( * ) * + - 36 col1
----
-196

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT + + 84 + - - 71 / 41 * + 0 + + ( - 28 ) + 7 * COUNT ( * ) * + - 36 col1
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT + + 40 + + - 28 - + 51 + + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-4831
SELECT + + 40 + + - 28 - + 51 + + COUNT ( * )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4832
SELECT - + 34 * + + CAST( + COALESCE ( - - NULLIF ( COUNT( * ), 1 ), 98 + + 52, + 71 ) AS SIGNED ) AS col2
----
-5100

skipif mysql # not compatible
query I rowsort label-4832
SELECT - + 34 * + + CAST ( + COALESCE ( - - NULLIF ( COUNT ( * ), 1 ), 98 + + 52, + 71 ) AS INTEGER ) AS col2
----
-5100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4833
SELECT ALL 34 DIV COALESCE ( + + 96, + + CASE 65 WHEN COUNT( DISTINCT 57 ) THEN NULL WHEN 20 - - + COUNT( * ) THEN MAX( - 89 ) + + 57 DIV + 65 DIV + 57 ELSE NULL END + + + 67 - 86 + - COALESCE ( + + 45, COUNT( DISTINCT 8 ) + - - 91 DIV - 63 * + 60, CASE 12 WHEN ( + COUNT( * ) ) + CAST( - CASE - CAST( NULL AS SIGNED ) WHEN 21 THEN NULL WHEN ( 48 ) THEN ( 98 ) END AS SIGNED ) THEN - 58 - CAST( 16 AS SIGNED ) END ) * + 26 ) - 34
----
-34

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL 34 / COALESCE ( + + 96, + + CASE 65 WHEN COUNT ( DISTINCT 57 ) THEN NULL WHEN 20 - - + COUNT ( * ) THEN MAX ( - 89 ) + + 57 / + 65 / + 57 ELSE NULL END + + + 67 - 86 + - COALESCE ( + + 45, COUNT ( DISTINCT 8 ) + - - 91 / - 63 * + 60, CASE 12 WHEN ( + COUNT ( * ) ) + CAST ( - CASE - CAST ( NULL AS INTEGER ) WHEN 21 THEN NULL WHEN ( 48 ) THEN ( 98 ) END AS INTEGER ) THEN - 58 - CAST ( 16 AS INTEGER ) END ) * + 26 ) - 34
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4834
SELECT DISTINCT - - COUNT( * ) * + + 40 DIV 33 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT - - COUNT ( * ) * + + 40 / 33 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4835
SELECT - 9 * + - COALESCE ( + + MIN( DISTINCT - ( + CAST( 62 AS SIGNED ) ) ), - - CAST( 13 AS SIGNED ) )
----
-558

skipif mysql # not compatible
query I rowsort label-4835
SELECT - 9 * + - COALESCE ( + + MIN ( DISTINCT - ( + CAST ( 62 AS INTEGER ) ) ), - - CAST ( 13 AS INTEGER ) )
----
-558

query II rowsort
SELECT ALL - 63 * - + 64, 62 * 25 AS col0
----
4032
1550

query I rowsort
SELECT - 85 * 21
----
-1785

query I rowsort
SELECT - 91 * + + 6 AS col0
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT ALL - COUNT( DISTINCT 62 ) * - 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL - COUNT ( DISTINCT 62 ) * - 9 AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4840
SELECT - 2 + - + CAST( NULL AS SIGNED ) - + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT - 2 + - + CAST ( NULL AS INTEGER ) - + - 32
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( + ( 49 ) )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4843
SELECT + 43 DIV + ( - - 73 ) * SUM( ALL + - 53 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4843
SELECT + 43 / + ( - - 73 ) * SUM ( ALL + - 53 ) AS col2
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( - 3, - 6 ) AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4845
SELECT DISTINCT 84 DIV 36 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT 84 / 36 AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4846
SELECT - 53 * - NULLIF ( - - 23, - - MAX( ALL + 45 ) / 70 ) * - 19 - + - 18 AS col2, + 99 col2
----
-23143
99

skipif mysql # not compatible
query II rowsort label-4846
SELECT - 53 * - NULLIF ( - - 23, - - MAX ( ALL + 45 ) / 70 ) * - 19 - + - 18 AS col2, + 99 col2
----
-23143
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4847
SELECT - 7 DIV - - 90 * - 65
----
0

skipif mysql # not compatible
query I rowsort label-4847
SELECT - 7 / - - 90 * - 65
----
0

query I rowsort
SELECT ALL - CASE - + 5 WHEN 86 THEN + 12 * + 7 / + 1 ELSE NULL END * - 18 + - 88 + - 63
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT + 25 - 32 - 53 * CAST( - + 44 AS SIGNED ) col1
----
2325

skipif mysql # not compatible
query I rowsort label-4849
SELECT + 25 - 32 - 53 * CAST ( - + 44 AS INTEGER ) col1
----
2325

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT - 95 * + COUNT( + 21 ) * + COUNT( * ) * + - 52 * - 82 AS col1
----
-405080

skipif mysql # not compatible
query I rowsort label-4850
SELECT - 95 * + COUNT ( + 21 ) * + COUNT ( * ) * + - 52 * - 82 AS col1
----
-405080

query I rowsort
SELECT + 1 + + - COALESCE ( + 36, 29 + + ( - - 88 ) ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-4852
SELECT + 3 AS col2, COUNT( * ) AS col1
----
3
1

skipif mysql # not compatible
query II rowsort label-4852
SELECT + 3 AS col2, COUNT ( * ) AS col1
----
3
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4853
SELECT 13 + 65 + - ( NULLIF ( - + 97, SUM( DISTINCT - ( - - 79 ) ) ) ), - 44 AS col2
----
175
-44

skipif mysql # not compatible
query II rowsort label-4853
SELECT 13 + 65 + - ( NULLIF ( - + 97, SUM ( DISTINCT - ( - - 79 ) ) ) ), - 44 AS col2
----
175
-44

query I rowsort
SELECT ALL 76 * - 66 * - 68 * - 90
----
-30697920

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT DISTINCT - CASE - - 34 WHEN + 88 - - - 23 THEN - COUNT( * ) + - 70 ELSE NULL END + + + 95 / - COUNT( * ) * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT - CASE - - 34 WHEN + 88 - - - 23 THEN - COUNT ( * ) + - 70 ELSE NULL END + + + 95 / - COUNT ( * ) * 61
----
NULL

query II rowsort
SELECT ALL 70 col1, ( 79 ) + - 71 AS col2
----
70
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4857
SELECT DISTINCT CAST( 13 AS SIGNED ) + 94 * + COUNT( * ) + 34 AS col0
----
141

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT CAST ( 13 AS INTEGER ) + 94 * + COUNT ( * ) + 34 AS col0
----
141

query I rowsort
SELECT DISTINCT + 32 + + 54
----
86

query I rowsort
SELECT ALL 7 + - - 82 AS col2
----
89

query I rowsort
SELECT 89 + - 33 AS col0
----
56

query I rowsort
SELECT + 30 * 92
----
2760

query II rowsort
SELECT ALL 54 AS col2, - 61 + - 58
----
54
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4863
SELECT ALL + ( - 85 ) - 95 * + + CASE + 16 WHEN - - SUM( DISTINCT 58 ) THEN + + CASE 55 WHEN - 98 + - 89 - - 58 + - 38 * - + 92 * + CAST( + 77 AS SIGNED ) THEN + 57 WHEN - 75 THEN NULL ELSE 91 END / + + ( + COUNT( * ) ) * - ( + 23 ) / 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL + ( - 85 ) - 95 * + + CASE + 16 WHEN - - SUM ( DISTINCT 58 ) THEN + + CASE 55 WHEN - 98 + - 89 - - 58 + - 38 * - + 92 * + CAST ( + 77 AS INTEGER ) THEN + 57 WHEN - 75 THEN NULL ELSE 91 END / + + ( + COUNT ( * ) ) * - ( + 23 ) / 29 ELSE NULL END
----
NULL

query I rowsort
SELECT - 52 + - CASE - 16 WHEN 10 / - 29 THEN ( + + 18 ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4865
SELECT 69 DIV + + 2 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4865
SELECT 69 / + + 2 AS col1
----
34

query I rowsort
SELECT 12 * 32
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL MIN( + - 32 ) * + COUNT( * ) + + 52 * - - 0 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL MIN ( + - 32 ) * + COUNT ( * ) + + 52 * - - 0 AS col0
----
-32

query I rowsort
SELECT 0 + - - 51 + + 14 * + + 88 * + - 12 col1
----
-14733

onlyif mysql # DIV for integer division: 
query I rowsort label-4869
SELECT ALL + 47 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL + 47 / - 68
----
0

query I rowsort
SELECT DISTINCT + 55 - - + 58 * - 43 * + ( 80 ) + - - 55
----
-199410

query I rowsort
SELECT DISTINCT 72 * - - 16 col0
----
1152

query I rowsort
SELECT ALL - ( - - ( + + 24 ) ) * - 6 AS col1
----
144

query I rowsort
SELECT + 19 * - + 17 * + 51 + + 42 + 82
----
-16349

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT 7 * - - COUNT( + 76 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4874
SELECT 7 * - - COUNT ( + 76 ) AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4875
SELECT ( - - 86 ) DIV 13 + 62 + - 56 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4875
SELECT ( - - 86 ) / 13 + 62 + - 56 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT 94 * 60 + - CASE + - 46 WHEN - + ( + 9 ) * 4 - + 60 + - 48 THEN + COUNT( * ) END * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT 94 * 60 + - CASE + - 46 WHEN - + ( + 9 ) * 4 - + 60 + - 48 THEN + COUNT ( * ) END * 15
----
NULL

query I rowsort
SELECT ALL - CASE - 38 WHEN - + 6 THEN NULL WHEN + 41 + 93 THEN - 70 * - + 36 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 40 * - 82 AS col0
----
3280

query I rowsort
SELECT 97 * 70
----
6790

query I rowsort
SELECT ALL 37 + + 51 * 76 + - 59
----
3854

onlyif mysql # aggregate syntax: 
query II rowsort label-4881
SELECT ALL - COUNT( * ) + - + 86 + - 44 * - + 41, 40 + 45 AS col1
----
1717
85

skipif mysql # not compatible
query II rowsort label-4881
SELECT ALL - COUNT ( * ) + - + 86 + - 44 * - + 41, 40 + 45 AS col1
----
1717
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4882
SELECT 95 * - + 56 + - ( - 72 ) AS col0, - 14 + + COUNT( * ) + 8 - + 18 * - 0 DIV - - 1 AS col0
----
-5248
-5

skipif mysql # not compatible
query II rowsort label-4882
SELECT 95 * - + 56 + - ( - 72 ) AS col0, - 14 + + COUNT ( * ) + 8 - + 18 * - 0 / - - 1 AS col0
----
-5248
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4883
SELECT ALL + 68 + - 44 * - 72 * NULLIF ( + + 54, - - 48 ) * + 65 * - 4 + CAST( NULL AS SIGNED ) / + CAST( + 50 AS DECIMAL ) + + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL + 68 + - 44 * - 72 * NULLIF ( + + 54, - - 48 ) * + 65 * - 4 + CAST ( NULL AS INTEGER ) / + CAST ( + 50 AS REAL ) + + + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT - 86 * - - 63 * ( - 1 ) + + 11 + COUNT( * ) * 45 + + 75 AS col0
----
5549

skipif mysql # not compatible
query I rowsort label-4884
SELECT - 86 * - - 63 * ( - 1 ) + + 11 + COUNT ( * ) * 45 + + 75 AS col0
----
5549

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL - NULLIF ( 84, - 11 + - ( - + COUNT( * ) ) + - 41 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL - NULLIF ( 84, - 11 + - ( - + COUNT ( * ) ) + - 41 ) AS col0
----
-84

query I rowsort
SELECT 23 + - + 61
----
-38

query I rowsort
SELECT DISTINCT - 23 * 80 AS col0
----
-1840

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4888
SELECT ALL - CASE + 19 WHEN + 11 * + 80 * + 62 THEN NULL WHEN - 43 THEN + + 82 ELSE - 63 - COALESCE ( + 12, NULLIF ( + - 52, - + 29 ) + + 2 ) END + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL - CASE + 19 WHEN + 11 * + 80 * + 62 THEN NULL WHEN - 43 THEN + + 82 ELSE - 63 - COALESCE ( + 12, NULLIF ( + - 52, - + 29 ) + + 2 ) END + + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - 42 * 44 * 48 + - + 30
----
-88734

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4890
SELECT DISTINCT + 78 / + CAST( NULL AS DECIMAL ) AS col0, MAX( + - 47 ) AS col0
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-4890
SELECT DISTINCT + 78 / + CAST ( NULL AS REAL ) AS col0, MAX ( + - 47 ) AS col0
----
NULL
-47

query I rowsort
SELECT ALL + 5 + - 93
----
-88

query I rowsort
SELECT 38 * + 64 * - - 67 AS col1
----
162944

query I rowsort
SELECT ALL 5 + - 17 + + 24
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-4894
SELECT - ( - 26 ) AS col0, + 63 * + COUNT( * )
----
26
63

skipif mysql # not compatible
query II rowsort label-4894
SELECT - ( - 26 ) AS col0, + 63 * + COUNT ( * )
----
26
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL + 37 * - 7 + COUNT( * ) AS col0
----
-258

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + 37 * - 7 + COUNT ( * ) AS col0
----
-258

query I rowsort
SELECT ALL - 78 * + + 77
----
-6006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4897
SELECT CASE 71 WHEN + - 13 THEN + 1 END AS col1, COUNT( * ) DIV CAST( - - 55 AS SIGNED ) + - + 9
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-4897
SELECT CASE 71 WHEN + - 13 THEN + 1 END AS col1, COUNT ( * ) / CAST ( - - 55 AS INTEGER ) + - + 9
----
NULL
-9

query I rowsort
SELECT - + 68 col1
----
-68

query I rowsort
SELECT 84 + 15
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4900
SELECT COALESCE ( ( CASE - - 27 WHEN + - 35 * - COUNT( * ) + + ( - 64 ) * 1 DIV 60 + 39 - - 60 * + 79 DIV MIN( ALL + - 36 ) THEN + + ( + 98 ) WHEN + 49 * + - 38 + - - 79 THEN - 15 + - + 81 * + 29 * + 10 DIV 13 ELSE NULL END ), COUNT( * ) ) * 61 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4900
SELECT COALESCE ( ( CASE - - 27 WHEN + - 35 * - COUNT ( * ) + + ( - 64 ) * 1 / 60 + 39 - - 60 * + 79 / MIN ( ALL + - 36 ) THEN + + ( + 98 ) WHEN + 49 * + - 38 + - - 79 THEN - 15 + - + 81 * + 29 * + 10 / 13 ELSE NULL END ), COUNT ( * ) ) * 61 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT ALL - CASE - MAX( DISTINCT - 62 ) WHEN 26 THEN - 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL - CASE - MAX ( DISTINCT - 62 ) WHEN 26 THEN - 55 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ( - SUM( 13 ) ) - + 70 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4902
SELECT ( - SUM ( 13 ) ) - + 70 AS col0
----
-83

query I rowsort
SELECT ALL ( + 32 ) AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4904
SELECT 94 * + 10 * - SUM( DISTINCT + - 18 ) + + CAST( - CAST( - 90 AS SIGNED ) AS SIGNED ) * - 12 + - ( - ( COUNT( * ) ) ) + + 7 AS col2
----
15848

skipif mysql # not compatible
query I rowsort label-4904
SELECT 94 * + 10 * - SUM ( DISTINCT + - 18 ) + + CAST ( - CAST ( - 90 AS INTEGER ) AS INTEGER ) * - 12 + - ( - ( COUNT ( * ) ) ) + + 7 AS col2
----
15848

query I rowsort
SELECT 53 - - 52
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4906
SELECT 86 + + CAST( NULL AS SIGNED ) * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT 86 + + CAST ( NULL AS INTEGER ) * - 21
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4907
SELECT - 27 DIV - + 20 col1
----
1

skipif mysql # not compatible
query I rowsort label-4907
SELECT - 27 / - + 20 col1
----
1

query I rowsort
SELECT + 66 * + + ( + COALESCE ( + 22, - + 71 ) ) AS col0
----
1452

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT DISTINCT + 69 * - 8 * COUNT( * )
----
-552

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT + 69 * - 8 * COUNT ( * )
----
-552

onlyif mysql # aggregate syntax: 
query II rowsort label-4910
SELECT - COUNT( * ) AS col1, 24 AS col0
----
-1
24

skipif mysql # not compatible
query II rowsort label-4910
SELECT - COUNT ( * ) AS col1, 24 AS col0
----
-1
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT ALL 61 + 30 DIV 49 DIV 55 DIV - 96 DIV + 49 - - - ( + 45 ) * + - 70 AS col1
----
3211

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL 61 + 30 / 49 / 55 / - 96 / + 49 - - - ( + 45 ) * + - 70 AS col1
----
3211

onlyif mysql # DIV for integer division: 
query I rowsort label-4912
SELECT DISTINCT 20 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT 20 / 59
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4913
SELECT ( 58 ) DIV + 3 + + ( - ( - + ( + 90 ) ) ) + 9 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-4913
SELECT ( 58 ) / + 3 + + ( - ( - + ( + 90 ) ) ) + 9 AS col1
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4914
SELECT ( CAST( + + 97 AS SIGNED ) ) * - 98 - - 6
----
-9500

skipif mysql # not compatible
query I rowsort label-4914
SELECT ( CAST ( + + 97 AS INTEGER ) ) * - 98 - - 6
----
-9500

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT DISTINCT MAX( + - 35 ) * - - SUM( + 41 ) AS col2
----
-1435

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT MAX ( + - 35 ) * - - SUM ( + 41 ) AS col2
----
-1435

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT MIN( DISTINCT - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-4916
SELECT MIN ( DISTINCT - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-4917
SELECT + 43, - 37 + - 23 * + NULLIF ( + 86, - COALESCE ( + + COUNT( * ), - 65 ) * + 86 + - 68 ) * - - 19 AS col2
----
43
-37619

skipif mysql # not compatible
query II rowsort label-4917
SELECT + 43, - 37 + - 23 * + NULLIF ( + 86, - COALESCE ( + + COUNT ( * ), - 65 ) * + 86 + - 68 ) * - - 19 AS col2
----
43
-37619

query I rowsort
SELECT ALL + 25 * + 11 + + - 98 * + 25 * + COALESCE ( 79, 45 * - - 46 * - + 76 ) + - + 67
----
-193342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4919
SELECT + 89 + 72 + 23 / CASE + - 88 WHEN 38 + + - 83 THEN + + CAST( NULL AS SIGNED ) WHEN + 70 THEN NULL END * + - SUM( DISTINCT + 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT + 89 + 72 + 23 / CASE + - 88 WHEN 38 + + - 83 THEN + + CAST ( NULL AS INTEGER ) WHEN + 70 THEN NULL END * + - SUM ( DISTINCT + 42 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4920
SELECT - 56 * - - ( + CAST( NULL AS SIGNED ) ) + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT - 56 * - - ( + CAST ( NULL AS INTEGER ) ) + - 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT - MAX( ALL - 35 ) * + MIN( DISTINCT + 1 ) + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-4921
SELECT - MAX ( ALL - 35 ) * + MIN ( DISTINCT + 1 ) + + COUNT ( * )
----
36

query II rowsort
SELECT ALL - 48 * - 82 + - 59 AS col2, + 97
----
3877
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT ALL 94 * + 77 + - + 15 + + 57 + 4 * - 51 / - - 5 * 40 / - - ( + CAST( NULL AS SIGNED ) ) + - 89 + 83 * + 30 * - 16 + - - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL 94 * + 77 + - + 15 + + 57 + 4 * - 51 / - - 5 * 40 / - - ( + CAST ( NULL AS INTEGER ) ) + - 89 + 83 * + 30 * - 16 + - - 66 AS col2
----
NULL

query I rowsort
SELECT 1 * 41 - + ( ( - 30 ) ) * - 29 * + 59 + + ( 62 ) AS col0
----
-51227

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - COUNT( * ) + + - 53 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-4925
SELECT - COUNT ( * ) + + - 53 AS col1
----
-54

query I rowsort
SELECT + 23 * - 31 * - - 81 AS col1
----
-57753

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT + NULLIF ( + + 44, COUNT( * ) + - 39 )
----
44

skipif mysql # not compatible
query I rowsort label-4927
SELECT + NULLIF ( + + 44, COUNT ( * ) + - 39 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4928
SELECT CASE - - 27 WHEN + - ( - + CAST( - 97 AS DECIMAL ) ) * + CASE + AVG ( DISTINCT + 27 ) WHEN - - 34 THEN - 24 WHEN + 34 THEN NULL ELSE - 93 END * 10 / + ( + + COUNT( * ) ) * + CAST( - 2 AS SIGNED ) THEN - COUNT( * ) / + 8 * + 77 + COUNT( * ) * - + 76 ELSE NULL END * - ( + 34 ) * + 58 - - 34 / 80 + - 34 * + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4928
SELECT CASE - - 27 WHEN + - ( - + CAST ( - 97 AS REAL ) ) * + CASE + AVG ( DISTINCT + 27 ) WHEN - - 34 THEN - 24 WHEN + 34 THEN NULL ELSE - 93 END * 10 / + ( + + COUNT ( * ) ) * + CAST ( - 2 AS INTEGER ) THEN - COUNT ( * ) / + 8 * + 77 + COUNT ( * ) * - + 76 ELSE NULL END * - ( + 34 ) * + 58 - - 34 / 80 + - 34 * + 20 AS col1
----
NULL

query I rowsort
SELECT ALL - 82 - + 71
----
-153

query I rowsort
SELECT + + 93 * + 20 + + 0 + - 84 AS col2
----
1776

query I rowsort
SELECT ALL + - 53 * - 12 AS col0
----
636

query I rowsort
SELECT + NULLIF ( - 28, 63 ) + + + 55 + 97 - + + 15
----
109

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4933
SELECT - - 96 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT - - 96 * CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - - 27 + + - 85 * 11
----
-908

query I rowsort
SELECT ALL - CASE - - 95 WHEN + 51 * - 76 THEN - 36 WHEN + - 84 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4936
SELECT ALL COALESCE ( + 12, + - 18 * + COUNT( DISTINCT + CAST( 24 AS DECIMAL ) ) - + + 40, 57 * 41 )
----
12

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL COALESCE ( + 12, + - 18 * + COUNT ( DISTINCT + CAST ( 24 AS REAL ) ) - + + 40, 57 * 41 )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4937
SELECT DISTINCT + + 28 DIV + + 36 * - 15 * 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT + + 28 / + + 36 * - 15 * 86 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT DISTINCT + MAX( - 29 ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT + MAX ( - 29 ) col2
----
-29

query I rowsort
SELECT - 75 + + 3 * + 18
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4940
SELECT - COUNT( * ) DIV + 52 + - - 29 + + - 78
----
-49

skipif mysql # not compatible
query I rowsort label-4940
SELECT - COUNT ( * ) / + 52 + - - 29 + + - 78
----
-49

query I rowsort
SELECT - 84 * - COALESCE ( - 81, - - 42 + + - 3, 73 )
----
-6804

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4942
SELECT ALL - + COUNT( * ) DIV 47 * 78 + + 44
----
44

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL - + COUNT ( * ) / 47 * 78 + + 44
----
44

query I rowsort
SELECT - - 84 + + 3 * 97 - + 83
----
292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4944
SELECT ALL - CAST( NULL AS SIGNED ) * + + COUNT( * ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * - 40
----
NULL

query I rowsort
SELECT DISTINCT + - 31 * + CASE 60 WHEN + - 61 + - 93 THEN + 79 WHEN - 89 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT ALL 43 + SUM( 97 )
----
140

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL 43 + SUM ( 97 )
----
140

query I rowsort
SELECT DISTINCT - 95 + + 51
----
-44

query II rowsort
SELECT DISTINCT 25 AS col1, 64 AS col0
----
25
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT DISTINCT - COUNT( DISTINCT 40 ) + - + 6 + - 4
----
-11

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT - COUNT ( DISTINCT 40 ) + - + 6 + - 4
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT + COUNT( DISTINCT - + 56 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4950
SELECT + COUNT ( DISTINCT - + 56 ) AS col2
----
1

onlyif mysql # aggre