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 # aggregate syntax: 
query I rowsort label-4951
SELECT - SUM( - - 60 ) * - + 5 * + + 91 * + 95 + - - 96 + + 36 + - + 96 * 98 * + 23
----
2377248

skipif mysql # not compatible
query I rowsort label-4951
SELECT - SUM ( - - 60 ) * - + 5 * + + 91 * + 95 + - - 96 + + 36 + - + 96 * 98 * + 23
----
2377248

query I rowsort
SELECT - 90 * + + 99
----
-8910

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4953
SELECT DISTINCT ( 58 ) DIV + 21 + - MIN( DISTINCT - + 22 ) * 78 AS col2, 40 DIV + 75 AS col0
----
1718
0

skipif mysql # not compatible
query II rowsort label-4953
SELECT DISTINCT ( 58 ) / + 21 + - MIN ( DISTINCT - + 22 ) * 78 AS col2, 40 / + 75 AS col0
----
1718
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT COUNT( ALL - 89 ) * 71 + - COUNT( 80 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4954
SELECT COUNT ( ALL - 89 ) * 71 + - COUNT ( 80 ) AS col2
----
70

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

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL CAST ( NULL AS REAL ) * + 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4956
SELECT ( + 69 ), 20 + + CASE WHEN NULL BETWEEN - 12 AND COUNT( * ) * - - COUNT( * ) THEN NULL ELSE - COALESCE ( + - COUNT( * ), + - 19, MAX( DISTINCT - 90 ) * + + CAST( - ( - CAST( + 32 AS SIGNED ) ) AS SIGNED ) ) END AS col0
----
69
21

skipif mysql # not compatible
query II rowsort label-4956
SELECT ( + 69 ), 20 + + CASE WHEN NULL BETWEEN - 12 AND COUNT ( * ) * - - COUNT ( * ) THEN NULL ELSE - COALESCE ( + - COUNT ( * ), + - 19, MAX ( DISTINCT - 90 ) * + + CAST ( - ( - CAST ( + 32 AS INTEGER ) ) AS INTEGER ) ) END AS col0
----
69
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4957
SELECT ALL + 15 DIV - 7 - - 18 + COUNT( * ) * + + 63 + - 52 + 62 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL + 15 / - 7 - - 18 + COUNT ( * ) * + + 63 + - 52 + 62 AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4958
SELECT DISTINCT 65 * - - CASE 55 WHEN - 75 * - 65 THEN - COUNT( * ) + COALESCE ( + - ( 95 ), + - 10 ) WHEN + 25 THEN NULL END AS col0, 44 + + 66 + NULLIF ( - 63, - 56 ) + - 25 * - CASE - COUNT( * ) WHEN - + CAST( NULL AS SIGNED ) THEN + + COUNT( * ) ELSE + 64 END
----
NULL
1647

skipif mysql # not compatible
query II rowsort label-4958
SELECT DISTINCT 65 * - - CASE 55 WHEN - 75 * - 65 THEN - COUNT ( * ) + COALESCE ( + - ( 95 ), + - 10 ) WHEN + 25 THEN NULL END AS col0, 44 + + 66 + NULLIF ( - 63, - 56 ) + - 25 * - CASE - COUNT ( * ) WHEN - + CAST ( NULL AS INTEGER ) THEN + + COUNT ( * ) ELSE + 64 END
----
NULL
1647

query I rowsort
SELECT + 23 * + 58 AS col0
----
1334

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4963
SELECT ALL 35 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL 35 / 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT ALL + MAX( ALL - 46 ) * + 92 AS col2
----
-4232

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL + MAX ( ALL - 46 ) * + 92 AS col2
----
-4232

query I rowsort
SELECT ALL + + ( - + 88 ) * - + 22 * 9 AS col0
----
17424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4966
SELECT DISTINCT + 68 * - + ( 90 ) + + + CAST( NULL AS SIGNED ) / - 37 * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4966
SELECT DISTINCT + 68 * - + ( 90 ) + + + CAST ( NULL AS INTEGER ) / - 37 * + 56
----
NULL

query I rowsort
SELECT - NULLIF ( 79, + 98 )
----
-79

query I rowsort
SELECT ALL - 35 * 98 AS col0
----
-3430

query II rowsort
SELECT DISTINCT 62, - 13 col1
----
62
-13

query I rowsort
SELECT + - 55 - + 27 * 52 AS col1
----
-1459

query II rowsort
SELECT 88, 38 * - 39 AS col0
----
88
-1482

query II rowsort
SELECT - + 80 + - 90 * + - 1 * + 39 AS col1, - 37 * - 40 AS col1
----
3430
1480

query II rowsort
SELECT DISTINCT + + 71 + + 85 AS col2, + 61 * + 70 * - 55 AS col1
----
156
-234850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4974
SELECT DISTINCT - CAST( + 35 AS SIGNED ) + 69 * - 19 + - 49
----
-1395

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT - CAST ( + 35 AS INTEGER ) + 69 * - 19 + - 49
----
-1395

query I rowsort
SELECT ALL + 94 + + - 54 + + - 80
----
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL - - 58 + - 10 * COUNT( 69 )
----
48

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - - 58 + - 10 * COUNT ( 69 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4978
SELECT - CAST( - + 23 AS SIGNED ) * - - 94 * + 51 * 9
----
992358

skipif mysql # not compatible
query I rowsort label-4978
SELECT - CAST ( - + 23 AS INTEGER ) * - - 94 * + 51 * 9
----
992358

onlyif mysql # DIV for integer division: 
query II rowsort label-4979
SELECT - 26 DIV - 42 AS col1, 19 col1
----
0
19

skipif mysql # not compatible
query II rowsort label-4979
SELECT - 26 / - 42 AS col1, 19 col1
----
0
19

query I rowsort
SELECT DISTINCT - 99 + + 90 AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4981
SELECT ALL + 36 + + 56 DIV + 81 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL + 36 + + 56 / + 81 AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-4982
SELECT ALL - MIN( - + 87 ) + 82 AS col0, 23
----
169
23

skipif mysql # not compatible
query II rowsort label-4982
SELECT ALL - MIN ( - + 87 ) + 82 AS col0, 23
----
169
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4983
SELECT 3 DIV - 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4983
SELECT 3 / - 31 AS col2
----
0

query I rowsort
SELECT ALL + COALESCE ( - 44, - 48 ) * + 15
----
-660

query I rowsort
SELECT DISTINCT - 55 * - 40
----
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT ALL MAX( - + 6 ) - - 24 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL MAX ( - + 6 ) - - 24 AS col2
----
18

query II rowsort
SELECT ALL + 10 * - 75 AS col0, + 84 + 20
----
-750
104

onlyif mysql # DIV for integer division: 
query I rowsort label-4988
SELECT ALL + 37 - - 60 DIV + 41
----
38

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL + 37 - - 60 / + 41
----
38

query I rowsort
SELECT 22 * - + 38 col1
----
-836

onlyif mysql # DIV for integer division: 
query I rowsort label-4990
SELECT 38 DIV + + 89 + + + 18 - 36 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-4990
SELECT 38 / + + 89 + + + 18 - 36 AS col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4991
SELECT 64 * 8 * + 42 DIV - 21 AS col1
----
-1024

skipif mysql # not compatible
query I rowsort label-4991
SELECT 64 * 8 * + 42 / - 21 AS col1
----
-1024

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4992
SELECT 76 * + CAST( NULL AS SIGNED ) AS col2, 28 * CAST( - 6 AS SIGNED ) AS col0
----
NULL
-168

skipif mysql # not compatible
query II rowsort label-4992
SELECT 76 * + CAST ( NULL AS INTEGER ) AS col2, 28 * CAST ( - 6 AS INTEGER ) AS col0
----
NULL
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4993
SELECT 11 * - COUNT( * ) DIV + 40 + ( ( + 11 ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4993
SELECT 11 * - COUNT ( * ) / + 40 + ( ( + 11 ) ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT + - 56 * + COUNT( * ) + 92 + 42
----
78

skipif mysql # not compatible
query I rowsort label-4994
SELECT + - 56 * + COUNT ( * ) + 92 + 42
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT DISTINCT MIN( - 78 ) * + + 97 AS col1
----
-7566

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT MIN ( - 78 ) * + + 97 AS col1
----
-7566

query I rowsort
SELECT ALL - + 94 * + - 79 AS col1
----
7426

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL - CASE - + 1 WHEN 15 + - - COALESCE ( + SUM( ALL + 57 ), - 55 / 52 * + + 31 + 65 * 42, + - 2 ) THEN NULL ELSE + + 42 * + MAX( ALL - 43 ) END + - 89 * + 90
----
-6204

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL - CASE - + 1 WHEN 15 + - - COALESCE ( + SUM ( ALL + 57 ), - 55 / 52 * + + 31 + 65 * 42, + - 2 ) THEN NULL ELSE + + 42 * + MAX ( ALL - 43 ) END + - 89 * + 90
----
-6204

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT 12 + + 99 + + COUNT( * )
----
112

skipif mysql # not compatible
query I rowsort label-4998
SELECT 12 + + 99 + + COUNT ( * )
----
112

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT + COUNT( * ) * + 42 + - 87 + - + 56
----
-101

skipif mysql # not compatible
query I rowsort label-5000
SELECT + COUNT ( * ) * + 42 + - 87 + - + 56
----
-101

query II rowsort
SELECT ALL - 64 + - 62 AS col1, 25
----
-126
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5002
SELECT ALL 36 + + MAX( DISTINCT - 60 ) AS col2, + CAST( NULL AS SIGNED ) AS col1
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-5002
SELECT ALL 36 + + MAX ( DISTINCT - 60 ) AS col2, + CAST ( NULL AS INTEGER ) AS col1
----
-24
NULL

query I rowsort
SELECT 92 + - 65 AS col1
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5004
SELECT DISTINCT - 56 + - 22 + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT - 56 + - 22 + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5005
SELECT - NULLIF ( + 14, + + NULLIF ( 53, - 74 ) * 7 - 42 + ( + 17 ) / - + 19 + COALESCE ( 49, - 82 * - - 1 ) ) * - - NULLIF ( - + 43, - + 51 ) + 98 * + 20 * + - CASE - + COUNT( * ) WHEN + + 1 THEN NULL WHEN 96 THEN 32 * + - 54 END AS col0, + 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-5005
SELECT - NULLIF ( + 14, + + NULLIF ( 53, - 74 ) * 7 - 42 + ( + 17 ) / - + 19 + COALESCE ( 49, - 82 * - - 1 ) ) * - - NULLIF ( - + 43, - + 51 ) + 98 * + 20 * + - CASE - + COUNT ( * ) WHEN + + 1 THEN NULL WHEN 96 THEN 32 * + - 54 END AS col0, + 26
----
NULL
26

query I rowsort
SELECT ALL ( 53 ) + 86
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5007
SELECT ALL 20 + - 15 - + + 0 + + 68 * 47 + COUNT( * ) + + - 3 * + - 72 * + 25 * + 97 - - 23 DIV + SUM( - 22 ) * + COUNT( * ) AS col0
----
527001

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL 20 + - 15 - + + 0 + + 68 * 47 + COUNT ( * ) + + - 3 * + - 72 * + 25 * + 97 - - 23 / + SUM ( - 22 ) * + COUNT ( * ) AS col0
----
527001

query I rowsort
SELECT 61 + 31 AS col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5009
SELECT ALL MIN( ALL - 33 ) AS col1, COUNT( - 85 )
----
-33
1

skipif mysql # not compatible
query II rowsort label-5009
SELECT ALL MIN ( ALL - 33 ) AS col1, COUNT ( - 85 )
----
-33
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5010
SELECT + COALESCE ( - - 76, 75, + 31 ) * + ( - MAX( 45 ) ) + - ( + NULLIF ( 54, - + 51 + + COUNT( * ) ) ), - ( + - 60 ) * AVG ( DISTINCT - ( 37 ) ) * + 89 + + 85 * 32 - + 73 + + + 72 * + 88 + - CAST( NULL AS SIGNED ) * + 98 * 90 AS col1
----
-3474
NULL

skipif mysql # not compatible
query II rowsort label-5010
SELECT + COALESCE ( - - 76, 75, + 31 ) * + ( - MAX ( 45 ) ) + - ( + NULLIF ( 54, - + 51 + + COUNT ( * ) ) ), - ( + - 60 ) * AVG ( DISTINCT - ( 37 ) ) * + 89 + + 85 * 32 - + 73 + + + 72 * + 88 + - CAST ( NULL AS INTEGER ) * + 98 * 90 AS col1
----
-3474
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ( - NULLIF ( COUNT( * ), - + 89 / - 40 ) ) + + - 3 + - - COUNT( * ) * + NULLIF ( - - MAX( 77 ), - 20 / + 83 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-5011
SELECT ( - NULLIF ( COUNT ( * ), - + 89 / - 40 ) ) + + - 3 + - - COUNT ( * ) * + NULLIF ( - - MAX ( 77 ), - 20 / + 83 ) AS col0
----
73

query I rowsort
SELECT ALL - 63 * 59 - + 51
----
-3768

query I rowsort
SELECT 7 * 10 AS col2
----
70

query I rowsort
SELECT 13 + 67 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT DISTINCT - ( + + 38 ) - + 79 + + - 89 + - 37 + + 67 + - + 93 + + 21 + + 59 * - - CASE + MAX( DISTINCT - 61 ) WHEN 74 + + COALESCE ( - + 15, + 8 * + - MIN( ALL + 82 ), 13 ) THEN NULL WHEN - + 46 * 2 + - + 95 THEN NULL ELSE - + 97 - - NULLIF ( - - MIN( DISTINCT 82 ), 32 * 85 + + ( - 50 - + COUNT( * ) ) + 42 ) - 0 * - 16 END * COUNT( * ) - 28 * 23 col1
----
-1777

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - ( + + 38 ) - + 79 + + - 89 + - 37 + + 67 + - + 93 + + 21 + + 59 * - - CASE + MAX ( DISTINCT - 61 ) WHEN 74 + + COALESCE ( - + 15, + 8 * + - MIN ( ALL + 82 ), 13 ) THEN NULL WHEN - + 46 * 2 + - + 95 THEN NULL ELSE - + 97 - - NULLIF ( - - MIN ( DISTINCT 82 ), 32 * 85 + + ( - 50 - + COUNT ( * ) ) + 42 ) - 0 * - 16 END * COUNT ( * ) - 28 * 23 col1
----
-1777

query I rowsort
SELECT DISTINCT 90 * + - 85 AS col1
----
-7650

query I rowsort
SELECT 32 * - 57 AS col2
----
-1824

onlyif mysql # aggregate syntax: 
query II rowsort label-5018
SELECT ALL 40 AS col1, + SUM( - - 36 ) AS col2
----
40
36

skipif mysql # not compatible
query II rowsort label-5018
SELECT ALL 40 AS col1, + SUM ( - - 36 ) AS col2
----
40
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5019
SELECT DISTINCT - 33 DIV - 86 col0
----
0

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT - 33 / - 86 col0
----
0

query I rowsort
SELECT 48 + - - 72 - - 93 AS col2
----
213

query I rowsort
SELECT 31 * + NULLIF ( NULLIF ( + - 21, - 72 * - + 32 ), - + 50 ) AS col1
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT ( - CASE WHEN + 33 >= + 41 * 95 / - + NULLIF ( - - 6, - - COUNT( * ) + - 67 * - 69 ) * - 70 / 47 + - + 80 - 75 + + 23 / - 65 THEN NULL ELSE - 11 END ) * + - 70 + - COUNT( * )
----
-771

skipif mysql # not compatible
query I rowsort label-5022
SELECT ( - CASE WHEN + 33 >= + 41 * 95 / - + NULLIF ( - - 6, - - COUNT ( * ) + - 67 * - 69 ) * - 70 / 47 + - + 80 - 75 + + 23 / - 65 THEN NULL ELSE - 11 END ) * + - 70 + - COUNT ( * )
----
-771

onlyif mysql # DIV for integer division: 
query I rowsort label-5023
SELECT 76 DIV 23
----
3

skipif mysql # not compatible
query I rowsort label-5023
SELECT 76 / 23
----
3

query I rowsort
SELECT ALL + 15 * 59 AS col2
----
885

query I rowsort
SELECT 47 * + 7
----
329

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5026
SELECT DISTINCT + ( - - COUNT( * ) ) * + 89 DIV + + 29
----
3

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT + ( - - COUNT ( * ) ) * + 89 / + + 29
----
3

query II rowsort
SELECT DISTINCT - - 35 AS col0, + 69
----
35
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT DISTINCT - COALESCE ( - 61, 78 - + 7 + - ( 89 ) * - ( + 90 ), + - 61 ) + - COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT - COALESCE ( - 61, 78 - + 7 + - ( 89 ) * - ( + 90 ), + - 61 ) + - COUNT ( * ) AS col1
----
60

onlyif mysql # DIV for integer division: 
query II rowsort label-5029
SELECT ( + 76 ) * + + 78 + - + 26 * + 72 + 31 AS col2, 78 DIV - + 78 AS col2
----
4087
-1

skipif mysql # not compatible
query II rowsort label-5029
SELECT ( + 76 ) * + + 78 + - + 26 * + 72 + 31 AS col2, 78 / - + 78 AS col2
----
4087
-1

query I rowsort
SELECT ALL - 68 + - + ( 82 )
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5031
SELECT - CAST( + 15 AS SIGNED ) * + + 30, COUNT( * ) + - - CAST( NULL AS SIGNED ) * - 51 AS col0
----
-450
NULL

skipif mysql # not compatible
query II rowsort label-5031
SELECT - CAST ( + 15 AS INTEGER ) * + + 30, COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * - 51 AS col0
----
-450
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL - 18 + - 7 + + ( + MIN( 10 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL - 18 + - 7 + + ( + MIN ( 10 ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT - 94 * - COUNT( * ) + + + COALESCE ( + 46, + 68, - 13 ) + - 30 * 10 AS col0
----
-160

skipif mysql # not compatible
query I rowsort label-5033
SELECT - 94 * - COUNT ( * ) + + + COALESCE ( + 46, + 68, - 13 ) + - 30 * 10 AS col0
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT ALL COUNT( * ) + 10 * + ( 74 )
----
741

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL COUNT ( * ) + 10 * + ( 74 )
----
741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5035
SELECT ALL - CASE + MIN( + 93 ) WHEN - + 0 THEN 6 + + + CASE + 78 WHEN 49 * + COUNT( * ) + - 63 + 15 * - COUNT( * ) * + + 76 THEN + 13 - - + CASE - CAST( + MAX( DISTINCT 11 ) AS SIGNED ) WHEN 62 THEN - 89 WHEN - NULLIF ( + 18, - 46 ) - 27 THEN + 49 + - 45 WHEN + 88 * + 64 * MIN( - 58 ) - CASE + 40 WHEN 52 * 11 THEN - 16 WHEN + 54 THEN 89 END * + 78 + + 45 THEN NULL ELSE NULL END WHEN ( + 88 ) * 18 THEN NULL END * + 92 ELSE - 92 END
----
92

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL - CASE + MIN ( + 93 ) WHEN - + 0 THEN 6 + + + CASE + 78 WHEN 49 * + COUNT ( * ) + - 63 + 15 * - COUNT ( * ) * + + 76 THEN + 13 - - + CASE - CAST ( + MAX ( DISTINCT 11 ) AS INTEGER ) WHEN 62 THEN - 89 WHEN - NULLIF ( + 18, - 46 ) - 27 THEN + 49 + - 45 WHEN + 88 * + 64 * MIN ( - 58 ) - CASE + 40 WHEN 52 * 11 THEN - 16 WHEN + 54 THEN 89 END * + 78 + + 45 THEN NULL ELSE NULL END WHEN ( + 88 ) * 18 THEN NULL END * + 92 ELSE - 92 END
----
92

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

skipif mysql # not compatible
query I rowsort label-5036
SELECT - 21 / + 88 + + 54 * - + COUNT ( * ) AS col0
----
-54

query I rowsort
SELECT ALL - 52 + + NULLIF ( + 23, - + 46 ) * + + 99 - - ( - + 6 ) * + 29 AS col0
----
2051

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT MAX( + 38 ) * + + 40 AS col0
----
1520

skipif mysql # not compatible
query I rowsort label-5038
SELECT MAX ( + 38 ) * + + 40 AS col0
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT DISTINCT + + 24 + - - ( + 69 ) * COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT + + 24 + - - ( + 69 ) * COUNT ( * )
----
93

query II rowsort
SELECT - 87, 52 AS col0
----
-87
52

query I rowsort
SELECT DISTINCT COALESCE ( - - 73, 40 ) AS col0
----
73

query I rowsort
SELECT + 49 + + 80
----
129

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5044
SELECT + 25 + 50, SUM( - 48 ) AS col0
----
75
-48

skipif mysql # not compatible
query II rowsort label-5044
SELECT + 25 + 50, SUM ( - 48 ) AS col0
----
75
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5045
SELECT ALL CAST( NULL AS SIGNED ) - - 10 - 62 + 8 + - 60 * - - 70 / MIN( ALL 56 ) * - + COUNT( * ) + 9 + - - ( + + MAX( ALL + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL CAST ( NULL AS INTEGER ) - - 10 - 62 + 8 + - 60 * - - 70 / MIN ( ALL 56 ) * - + COUNT ( * ) + 9 + - - ( + + MAX ( ALL + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + 95 * - CASE - 14 WHEN - - ( + 93 ) THEN NULL WHEN 55 THEN - + 55 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT + 59 * 62 AS col2
----
3658

query I rowsort
SELECT + 36 + 27 col0
----
63

query I rowsort
SELECT - NULLIF ( - 58, - + ( - - 77 ) ) AS col2
----
58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5052
SELECT + COUNT( * ) DIV + + 25 * + 73 - + 93 AS col0, 71 + 29
----
-93
100

skipif mysql # not compatible
query II rowsort label-5052
SELECT + COUNT ( * ) / + + 25 * + 73 - + 93 AS col0, 71 + 29
----
-93
100

query I rowsort
SELECT ALL 2 * + 6 + - - 56 AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5054
SELECT - 19 DIV + ( + ( + - 23 ) ) + + 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5054
SELECT - 19 / + ( + ( + - 23 ) ) + + 19 AS col0
----
19

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5056
SELECT NULLIF ( - 13, 4 * 80 + + 73 ) DIV - 91 + - 23 col0
----
-23

skipif mysql # not compatible
query I rowsort label-5056
SELECT NULLIF ( - 13, 4 * 80 + + 73 ) / - 91 + - 23 col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5057
SELECT - + 42 + + + COUNT( DISTINCT 33 ) + + 7 / - CAST( NULL AS SIGNED ) * 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT - + 42 + + + COUNT ( DISTINCT 33 ) + + 7 / - CAST ( NULL AS INTEGER ) * 37 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5058
SELECT ( - 99 ) * + CAST( - AVG ( DISTINCT 84 ) AS SIGNED ) + + 39 * COUNT( * ) * - 59 AS col0
----
6015

skipif mysql # not compatible
query I rowsort label-5058
SELECT ( - 99 ) * + CAST ( - AVG ( DISTINCT 84 ) AS INTEGER ) + + 39 * COUNT ( * ) * - 59 AS col0
----
6015

query I rowsort
SELECT ALL + 10 * - 15 + - 78 AS col0
----
-228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5060
SELECT + 43 DIV - 72 + - COUNT( * ) * + 94 * + COALESCE ( - ( + - 51 ), - COUNT( * ) ) + - 64 DIV - + COUNT( * )
----
-4730

skipif mysql # not compatible
query I rowsort label-5060
SELECT + 43 / - 72 + - COUNT ( * ) * + 94 * + COALESCE ( - ( + - 51 ), - COUNT ( * ) ) + - 64 / - + COUNT ( * )
----
-4730

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT - 42 + + SUM( - - 94 ) + - + 83 - + 93 AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-5062
SELECT - 42 + + SUM ( - - 94 ) + - + 83 - + 93 AS col1
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5063
SELECT - + COUNT( * ) * + ( 25 ) * NULLIF ( 69, + - ( + COUNT( * ) ) DIV 2 ) + - - 98 + - 80 AS col2, + 79 DIV + + MIN( - 26 )
----
-1707
-3

skipif mysql # not compatible
query II rowsort label-5063
SELECT - + COUNT ( * ) * + ( 25 ) * NULLIF ( 69, + - ( + COUNT ( * ) ) / 2 ) + - - 98 + - 80 AS col2, + 79 / + + MIN ( - 26 )
----
-1707
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL ( + COUNT( ( - CASE - 91 WHEN + 86 THEN + 71 + 84 * + + 39 END ) ) ) * + 56
----
0

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL ( + COUNT ( ( - CASE - 91 WHEN + 86 THEN + 71 + 84 * + + 39 END ) ) ) * + 56
----
0

query I rowsort
SELECT - 43 * - 27
----
1161

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5069
SELECT ALL 90 * - NULLIF ( - 62, + 54 ) * + COUNT( * ) * + CAST( NULL AS DECIMAL ) * - 50 * 45 - + + COALESCE ( - 33, - 58 + - CAST( NULL AS SIGNED ) + - - 40 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL 90 * - NULLIF ( - 62, + 54 ) * + COUNT ( * ) * + CAST ( NULL AS REAL ) * - 50 * 45 - + + COALESCE ( - 33, - 58 + - CAST ( NULL AS INTEGER ) + - - 40 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 51 * + 31
----
1581

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5072
SELECT 67, - COUNT( + + 0 ) col2
----
67
-1

skipif mysql # not compatible
query II rowsort label-5072
SELECT 67, - COUNT ( + + 0 ) col2
----
67
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5074
SELECT + ( + - 99 ) DIV - - 31 * - COUNT( * ) + + COALESCE ( CAST( - 92 AS SIGNED ), - 26, - 3 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-5074
SELECT + ( + - 99 ) / - - 31 * - COUNT ( * ) + + COALESCE ( CAST ( - 92 AS INTEGER ), - 26, - 3 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT - SUM( DISTINCT + 6 ) + - - 0
----
-6

skipif mysql # not compatible
query I rowsort label-5075
SELECT - SUM ( DISTINCT + 6 ) + - - 0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT ALL 24 DIV + + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL 24 / + + 63 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL - COUNT ( * ) + 56 AS col0
----
55

query I rowsort
SELECT ALL 17 + - 9 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT DISTINCT 29 + - ( + CASE + 52 WHEN 96 * 91 THEN NULL WHEN COUNT( * ) + - 12 THEN + SUM( - + 72 ) * - 87 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT 29 + - ( + CASE + 52 WHEN 96 * 91 THEN NULL WHEN COUNT ( * ) + - 12 THEN + SUM ( - + 72 ) * - 87 END )
----
NULL

query I rowsort
SELECT + 99 + 53 AS col0
----
152

query II rowsort
SELECT - + 21, ( - + 31 ) AS col2
----
-21
-31

query I rowsort
SELECT + + 57 + 41
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL + 52 + 30 + + COUNT( * ) + + - 80
----
3

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL + 52 + 30 + + COUNT ( * ) + + - 80
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5084
SELECT + + 11, - 87 * - CAST( NULL AS SIGNED ) AS col0
----
11
NULL

skipif mysql # not compatible
query II rowsort label-5084
SELECT + + 11, - 87 * - CAST ( NULL AS INTEGER ) AS col0
----
11
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5085
SELECT DISTINCT + 99 DIV 79 + + CAST( + + COUNT( * ) AS SIGNED ) * - 18 + + 55 * + 58 AS col1
----
3173

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT + 99 / 79 + + CAST ( + + COUNT ( * ) AS INTEGER ) * - 18 + + 55 * + 58 AS col1
----
3173

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5086
SELECT ALL + ( - 22 ) DIV + 32 * 82 + + COUNT( * ), 73 + + + NULLIF ( - 82, 41 ) AS col0
----
1
-9

skipif mysql # not compatible
query II rowsort label-5086
SELECT ALL + ( - 22 ) / + 32 * 82 + + COUNT ( * ), 73 + + + NULLIF ( - 82, 41 ) AS col0
----
1
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5087
SELECT DISTINCT COUNT( * ) DIV - - 34 - - - 83 * - 28 * - 23 - - 49 - - 93 AS col1
----
-53310

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT COUNT ( * ) / - - 34 - - - 83 * - 28 * - 23 - - 49 - - 93 AS col1
----
-53310

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT DISTINCT + NULLIF ( 40, - ( - COUNT( * ) ) )
----
40

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT + NULLIF ( 40, - ( - COUNT ( * ) ) )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5089
SELECT + 12 DIV 67 - - ( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5089
SELECT + 12 / 67 - - ( - 0 )
----
0

query I rowsort
SELECT 54 * - 25 + 22
----
-1328

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT ALL - 75 DIV 7 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL - 75 / 7 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-5094
SELECT COUNT( DISTINCT 1 ) * + + 25 - + COUNT( * ) + - 18, + 81 * + 72 AS col2
----
6
5832

skipif mysql # not compatible
query II rowsort label-5094
SELECT COUNT ( DISTINCT 1 ) * + + 25 - + COUNT ( * ) + - 18, + 81 * + 72 AS col2
----
6
5832

query II rowsort
SELECT + COALESCE ( 41, - + 86 ) * + + 91 * - 30 AS col1, 29
----
-111930
29

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

skipif mysql # not compatible
query I rowsort label-5096
SELECT + + CAST ( 52 AS INTEGER ) AS col1
----
52

query I rowsort
SELECT ALL - - 7 * 72 * + - 56 AS col2
----
-28224

query II rowsort
SELECT + 24, - 45 AS col2
----
24
-45

query I rowsort
SELECT DISTINCT + CASE + 35 WHEN + 83 * 51 THEN + AVG ( + - 53 ) ELSE NULL END * + + 11 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5100
SELECT CAST( NULL AS SIGNED ) + + + 47 + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5100
SELECT CAST ( NULL AS INTEGER ) + + + 47 + + 83
----
NULL

query III rowsort
SELECT ALL 34 col1, + 93 AS col1, + - 11
----
34
93
-11

query II rowsort
SELECT - 35, 22 AS col0
----
-35
22

onlyif mysql # DIV for integer division: 
query II rowsort label-5103
SELECT 45, - 84 DIV - - 15 AS col0
----
45
-5

skipif mysql # not compatible
query II rowsort label-5103
SELECT 45, - 84 / - - 15 AS col0
----
45
-5

query I rowsort
SELECT 41 + - - 1 * + - 70 col2
----
-29

query II rowsort
SELECT DISTINCT 42 AS col1, 12
----
42
12

query I rowsort
SELECT DISTINCT + 2 + 96 + - 11
----
87

query II rowsort
SELECT ALL 41 + + - 77 AS col1, + 85 AS col1
----
-36
85

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

query I rowsort
SELECT ALL 18 + - 43 * - 80 AS col1
----
3458

query I rowsort
SELECT 73 * - 45 AS col0
----
-3285

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

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

query I rowsort
SELECT ALL - 84 + + 23
----
-61

query II rowsort
SELECT 33 AS col2, + 43 * + - 3 AS col0
----
33
-129

query III rowsort
SELECT ALL 26 AS col1, - 79 AS col2, - - 54 AS col0
----
26
-79
54

query I rowsort
SELECT ALL - 20 + 46 - - 60 AS col2
----
86

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

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT + 98 / COUNT ( * ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5117
SELECT 89 - + COUNT( * ) + + - ( + 11 ) col2, 98 + 7 + - 89
----
77
16

skipif mysql # not compatible
query II rowsort label-5117
SELECT 89 - + COUNT ( * ) + + - ( + 11 ) col2, 98 + 7 + - 89
----
77
16

query II rowsort
SELECT DISTINCT - 33 AS col2, 2
----
-33
2

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

skipif mysql # not compatible
query I rowsort label-5119
SELECT + 97 - - COUNT ( * ) AS col1
----
98

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5121
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col1, 11 AS col2
----
-1
11

skipif mysql # not compatible
query II rowsort label-5121
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col1, 11 AS col2
----
-1
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5122
SELECT - 63 + + + 85 * + + 26 * 52, - ( - 35 ) * - MAX( ALL + 17 ) + + - 39 AS col0
----
114857
-634

skipif mysql # not compatible
query II rowsort label-5122
SELECT - 63 + + + 85 * + + 26 * 52, - ( - 35 ) * - MAX ( ALL + 17 ) + + - 39 AS col0
----
114857
-634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5123
SELECT ALL COUNT( * ) * - 31 DIV 94 + - 42 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL COUNT ( * ) * - 31 / 94 + - 42 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT ALL - - COALESCE ( COUNT( * ), 15 )
----
1

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL - - COALESCE ( COUNT ( * ), 15 )
----
1

query II rowsort
SELECT ALL - 51 AS col0, 4
----
-51
4

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5127
SELECT 58 DIV + + 98 AS col1, 24
----
0
24

skipif mysql # not compatible
query II rowsort label-5127
SELECT 58 / + + 98 AS col1, 24
----
0
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT + CASE + 74 WHEN + NULLIF ( + + 33, + + 26 * - 45 + + - MIN( ALL - 19 ) ) * - - 24 - - 72 + 72 THEN - 47 END * + 46 + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5128
SELECT + CASE + 74 WHEN + NULLIF ( + + 33, + + 26 * - 45 + + - MIN ( ALL - 19 ) ) * - - 24 - - 72 + 72 THEN - 47 END * + 46 + + 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5129
SELECT ALL CAST( + 24 AS SIGNED ) + - - 8 * 13 * - SUM( DISTINCT - 17 ) AS col0
----
1792

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL CAST ( + 24 AS INTEGER ) + - - 8 * 13 * - SUM ( DISTINCT - 17 ) AS col0
----
1792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5130
SELECT DISTINCT COUNT( * ) DIV - ( + + NULLIF ( - + MIN( + 97 ), - 44 * + - 15 * - 38 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT COUNT ( * ) / - ( + + NULLIF ( - + MIN ( + 97 ), - 44 * + - 15 * - 38 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5131
SELECT COUNT( * ) * 64, - 15 * + 71 AS col1
----
64
-1065

skipif mysql # not compatible
query II rowsort label-5131
SELECT COUNT ( * ) * 64, - 15 * + 71 AS col1
----
64
-1065

query I rowsort
SELECT ALL - 88 * + 58
----
-5104

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

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

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

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

query I rowsort
SELECT DISTINCT - 70 * 78
----
-5460

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

query I rowsort
SELECT ALL - 61 + 27 + 36 AS col0
----
2

query II rowsort
SELECT ALL 12 * + - 89, 94 + + + ( - + 26 ) col2
----
-1068
68

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5140
SELECT 63 + CAST( NULL AS SIGNED ) - + - COUNT( * ) - - - 18 / COALESCE ( + 98, ( + ( + 24 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5140
SELECT 63 + CAST ( NULL AS INTEGER ) - + - COUNT ( * ) - - - 18 / COALESCE ( + 98, ( + ( + 24 ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5141
SELECT 66 * 41 col2, 93 * + - CAST( NULL AS DECIMAL ) / + 15
----
2706
NULL

skipif mysql # not compatible
query II rowsort label-5141
SELECT 66 * 41 col2, 93 * + - CAST ( NULL AS REAL ) / + 15
----
2706
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT 72 + ( + COUNT( * ) ) * + MAX( + 64 ) * 74 + - - 50 * 31 + - NULLIF ( + 29, - 40 )
----
6329

skipif mysql # not compatible
query I rowsort label-5142
SELECT 72 + ( + COUNT ( * ) ) * + MAX ( + 64 ) * 74 + - - 50 * 31 + - NULLIF ( + 29, - 40 )
----
6329

query I rowsort
SELECT 8 - + 95 col0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5144
SELECT - CAST( NULL AS SIGNED ) + - 65, - 49 AS col0
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-5144
SELECT - CAST ( NULL AS INTEGER ) + - 65, - 49 AS col0
----
NULL
-49

query I rowsort
SELECT - - 89 + CASE WHEN NOT 60 IS NOT NULL THEN + 57 ELSE NULL END
----
NULL

query II rowsort
SELECT - - 30 * - 43 AS col2, + 76 * + - 81 AS col2
----
-1290
-6156

query II rowsort
SELECT - + 19 * - 1 AS col2, - 5
----
19
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT ALL - + 15 * + COALESCE ( - 57, 81 * COUNT( * ) * + 23 )
----
855

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL - + 15 * + COALESCE ( - 57, 81 * COUNT ( * ) * + 23 )
----
855

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5149
SELECT - COUNT( * ) DIV 88 * + 80 AS col0, + 87
----
0
87

skipif mysql # not compatible
query II rowsort label-5149
SELECT - COUNT ( * ) / 88 * + 80 AS col0, + 87
----
0
87

query I rowsort
SELECT + 8 + - 32
----
-24

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT - ( - - 9 ) DIV + + 70
----
0

skipif mysql # not compatible
query I rowsort label-5152
SELECT - ( - - 9 ) / + + 70
----
0

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

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

query I rowsort
SELECT - + 62 * - 98 + + 24 AS col0
----
6100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5155
SELECT ALL - 92 / NULLIF ( - - 96, NULLIF ( - 38, - 16 + + NULLIF ( - + COUNT( * ), - CAST( - 28 AS DECIMAL ) ) ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL - 92 / NULLIF ( - - 96, NULLIF ( - 38, - 16 + + NULLIF ( - + COUNT ( * ), - CAST ( - 28 AS REAL ) ) ) ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5156
SELECT + + CAST( + + 51 AS SIGNED ) col0, COALESCE ( - 71, - ( COUNT( DISTINCT 30 ) ), 8 )
----
51
-71

skipif mysql # not compatible
query II rowsort label-5156
SELECT + + CAST ( + + 51 AS INTEGER ) col0, COALESCE ( - 71, - ( COUNT ( DISTINCT 30 ) ), 8 )
----
51
-71

query I rowsort
SELECT + 49 * - - ( + 46 )
----
2254

query I rowsort
SELECT 92 * - 51 * + + 74 - - + 54
----
-347154

query I rowsort
SELECT ALL 72 * 31
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT + MIN( ALL 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5160
SELECT + MIN ( ALL 11 ) AS col0
----
11

query I rowsort
SELECT + 13 * - - 74 AS col1
----
962

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT ALL - 19 * 63 + + COUNT( * ) col2
----
-1196

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL - 19 * 63 + + COUNT ( * ) col2
----
-1196

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT ALL 74 * - 85 * + 54 * + ( - 21 ) * - COUNT( * ) * - - 82 + - + 78 AS col1
----
-584894598

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL 74 * - 85 * + 54 * + ( - 21 ) * - COUNT ( * ) * - - 82 + - + 78 AS col1
----
-584894598

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT COUNT( ALL 9 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5164
SELECT COUNT ( ALL 9 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT DISTINCT 71 * COUNT( * ) col0
----
71

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT 71 * COUNT ( * ) col0
----
71

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5167
SELECT ALL 59 DIV + + 25 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL 59 / + + 25 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT MIN( DISTINCT + + 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-5168
SELECT MIN ( DISTINCT + + 12 ) AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5169
SELECT 66 * + 50 + - - CAST( NULLIF ( ( + + 86 ), COALESCE ( - 90, - - 81 * NULLIF ( + - 21, - COUNT( * ) ) ) + 49 ) AS SIGNED ) AS col0
----
3386

skipif mysql # not compatible
query I rowsort label-5169
SELECT 66 * + 50 + - - CAST ( NULLIF ( ( + + 86 ), COALESCE ( - 90, - - 81 * NULLIF ( + - 21, - COUNT ( * ) ) ) + 49 ) AS INTEGER ) AS col0
----
3386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5170
SELECT ALL 5 - COALESCE ( ( + - 60 ), + 76 * - + 1 + COUNT( + - 67 ) + 35 + + 61 * + + 52 DIV - - 29 * ( + CAST( NULL AS SIGNED ) ) DIV 26 - - COUNT( * ), - 1 ) * 11 AS col2, CAST( NULL AS SIGNED ) * 36 col2
----
665
NULL

skipif mysql # not compatible
query II rowsort label-5170
SELECT ALL 5 - COALESCE ( ( + - 60 ), + 76 * - + 1 + COUNT ( + - 67 ) + 35 + + 61 * + + 52 / - - 29 * ( + CAST ( NULL AS INTEGER ) ) / 26 - - COUNT ( * ), - 1 ) * 11 AS col2, CAST ( NULL AS INTEGER ) * 36 col2
----
665
NULL

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

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

query I rowsort
SELECT - - 34 * + + 65 + - 19 + ( + 84 ) - - 6 * + - 69
----
1861

query I rowsort
SELECT ALL + ( + + 73 ) col1
----
73

query I rowsort
SELECT DISTINCT + 70 * + 76 AS col1
----
5320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5175
SELECT - + ( + COUNT( * ) ) + + 99 AS col2, - MIN( DISTINCT + 77 ) * - CAST( + + 57 AS SIGNED ) * + 36 + + + ( 93 ) + - 46
----
98
158051

skipif mysql # not compatible
query II rowsort label-5175
SELECT - + ( + COUNT ( * ) ) + + 99 AS col2, - MIN ( DISTINCT + 77 ) * - CAST ( + + 57 AS INTEGER ) * + 36 + + + ( 93 ) + - 46
----
98
158051

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

query II rowsort
SELECT - + 19 AS col0, - 79
----
-19
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL - + COUNT( * ) * NULLIF ( + 28, - ( - 19 ) ) + + + COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL - + COUNT ( * ) * NULLIF ( + 28, - ( - 19 ) ) + + + COUNT ( * ) AS col2
----
-27

query I rowsort
SELECT - - 7 * 83
----
581

query II rowsort
SELECT ALL 29, 79 col2
----
29
79

query II rowsort
SELECT DISTINCT + 19, + 89 AS col1
----
19
89

query I rowsort
SELECT ALL - + 0 + - + COALESCE ( 45, + - 47 )
----
-45

query I rowsort
SELECT - 81 - + - 24 + - - 58 col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5184
SELECT ALL + + 17 DIV - 36 + + 73 + + 44
----
117

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL + + 17 / - 36 + + 73 + + 44
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5185
SELECT ALL + + 85 / CAST( NULL AS SIGNED ) + + 86 + 62 + + - 30 * - SUM( DISTINCT + 84 ) + + 53 * - - CAST( NULL AS SIGNED ) * - - 27 / 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL + + 85 / CAST ( NULL AS INTEGER ) + + 86 + 62 + + - 30 * - SUM ( DISTINCT + 84 ) + + 53 * - - CAST ( NULL AS INTEGER ) * - - 27 / 79
----
NULL

query I rowsort
SELECT - 61 + + + 4 * + + 90 * + - 77
----
-27781

query I rowsort
SELECT + CASE - + 17 WHEN 25 - 7 THEN - - 53 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5188
SELECT ALL 51 DIV 49 + 13
----
14

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL 51 / 49 + 13
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5189
SELECT ALL 95 DIV - - 85 + 55 - 79
----
-23

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL 95 / - - 85 + 55 - 79
----
-23

query II rowsort
SELECT - NULLIF ( - 36, - 20 ) * - + 1 AS col1, 23
----
-36
23

query II rowsort
SELECT ALL + ( ( - + ( 22 ) ) ) AS col2, 12 AS col0
----
-22
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL 1 * 10 + - 79 - + - COUNT( * ) - - 2 + - ( + 74 ) AS col0
----
-140

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL 1 * 10 + - 79 - + - COUNT ( * ) - - 2 + - ( + 74 ) AS col0
----
-140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5193
SELECT ALL + 70 / + + CASE 52 WHEN + - CAST( NULL AS SIGNED ) THEN + AVG ( 49 ) WHEN - 82 / - + ( + 76 ) + - AVG ( - CAST( + 33 AS SIGNED ) ) THEN NULL WHEN COALESCE ( - - 56, + + COUNT( * ) ) / - + 18 THEN NULL END * - + CASE + 88 WHEN + 40 THEN - - COUNT( + 40 ) * - 6 + 24 WHEN - 13 * - + 21 THEN 23 ELSE - 93 END * + 43 / 40 + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL + 70 / + + CASE 52 WHEN + - CAST ( NULL AS INTEGER ) THEN + AVG ( 49 ) WHEN - 82 / - + ( + 76 ) + - AVG ( - CAST ( + 33 AS INTEGER ) ) THEN NULL WHEN COALESCE ( - - 56, + + COUNT ( * ) ) / - + 18 THEN NULL END * - + CASE + 88 WHEN + 40 THEN - - COUNT ( + 40 ) * - 6 + 24 WHEN - 13 * - + 21 THEN 23 ELSE - 93 END * + 43 / 40 + 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT DISTINCT 63 * + - MAX( - 44 ) * 93 + - 34
----
257762

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT 63 * + - MAX ( - 44 ) * 93 + - 34
----
257762

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL ( 90 ) * - 23 - COUNT( * ) - COUNT( * ) + - 77 * - 75 * - - 0 + 49 + + - 59 * 67 - 73 * 38
----
-8750

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL ( 90 ) * - 23 - COUNT ( * ) - COUNT ( * ) + - 77 * - 75 * - - 0 + 49 + + - 59 * 67 - 73 * 38
----
-8750

query II rowsort
SELECT ( + - 26 ) AS col1, 55 AS col0
----
-26
55

query I rowsort
SELECT + 32 * + 77 + + 33
----
2497

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT CASE - 29 WHEN + - COUNT( * ) * - - 4 THEN COUNT( * ) ELSE - NULLIF ( ( + - 98 ), - - 58 ) * + 18 END
----
1764

skipif mysql # not compatible
query I rowsort label-5199
SELECT CASE - 29 WHEN + - COUNT ( * ) * - - 4 THEN COUNT ( * ) ELSE - NULLIF ( ( + - 98 ), - - 58 ) * + 18 END
----
1764

query II rowsort
SELECT - ( 26 ) AS col1, - 14 + - - 40
----
-26
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5201
SELECT DISTINCT + 80 * - 68 DIV - 34 AS col2
----
160

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT + 80 * - 68 / - 34 AS col2
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT - 7 DIV 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5202
SELECT - 7 / 17 AS col0
----
0

query I rowsort
SELECT + 76 * + 2 + - - 31 * COALESCE ( - ( 20 ), - 98 )
----
-468

query I rowsort
SELECT 67 + - 32 col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5205
SELECT + 43 DIV + 14, 50 + + - 90 * + 55 * - MAX( ALL + - 10 ) + - + 20 * - - MIN( ALL + - 88 ) * - - ( - 80 ) AS col2
----
3
-190250

skipif mysql # not compatible
query II rowsort label-5205
SELECT + 43 / + 14, 50 + + - 90 * + 55 * - MAX ( ALL + - 10 ) + - + 20 * - - MIN ( ALL + - 88 ) * - - ( - 80 ) AS col2
----
3
-190250

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT ALL 82 + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL 82 + + COUNT ( * )
----
83

query I rowsort
SELECT ALL - 67 * + - NULLIF ( 60, + + ( - - 85 ) )
----
4020

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ALL 26 + - 76 * - 82 + + MIN( + 81 ) - - ( + 31 ) + - 44 + + 83 * + 81
----
13049

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL 26 + - 76 * - 82 + + MIN ( + 81 ) - - ( + 31 ) + - 44 + + 83 * + 81
----
13049

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5210
SELECT - MIN( ALL + 26 ) + + + COUNT( * ) + - ( NULLIF ( + - 24, + + 8 ) ) + - 7 DIV - 24 * + 37 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5210
SELECT - MIN ( ALL + 26 ) + + + COUNT ( * ) + - ( NULLIF ( + - 24, + + 8 ) ) + - 7 / - 24 * + 37 AS col2
----
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5212
SELECT CAST( 99 AS SIGNED ) col1
----
99

skipif mysql # not compatible
query I rowsort label-5212
SELECT CAST ( 99 AS INTEGER ) col1
----
99

query I rowsort
SELECT DISTINCT + 74 * + 10
----
740

query I rowsort
SELECT 67 * + 69 AS col2
----
4623

onlyif mysql # aggregate syntax: 
query II rowsort label-5215
SELECT DISTINCT + 56 * - 7 * + + COALESCE ( 77, - 77 ) AS col0, 70 + + COUNT( * ) AS col1
----
-30184
71

skipif mysql # not compatible
query II rowsort label-5215
SELECT DISTINCT + 56 * - 7 * + + COALESCE ( 77, - 77 ) AS col0, 70 + + COUNT ( * ) AS col1
----
-30184
71

query I rowsort
SELECT DISTINCT + 84 - 24 + + - 6 * 53
----
-258

query I rowsort
SELECT 57 * - - 28 * + 9
----
14364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5218
SELECT SUM( DISTINCT 56 ) * COUNT( * ) * 93 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5218
SELECT SUM ( DISTINCT 56 ) * COUNT ( * ) * 93 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 57 * + 21
----
1197

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

query I rowsort
SELECT ALL + 67 - - + 22
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5222
SELECT DISTINCT 70 DIV 64 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT 70 / 64 AS col2
----
1

query II rowsort
SELECT ALL - 30 AS col1, 87 AS col0
----
-30
87

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5225
SELECT ALL 5 DIV + + 58 * + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL 5 / + + 58 * + 71 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT 7 + + MIN( 24 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5226
SELECT 7 + + MIN ( 24 ) AS col0
----
31

query I rowsort
SELECT 82 * - 0 AS col1
----
0

query II rowsort
SELECT + 17 AS col0, 32 + 49
----
17
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT - 14 * - 90 * COUNT( * )
----
1260

skipif mysql # not compatible
query I rowsort label-5229
SELECT - 14 * - 90 * COUNT ( * )
----
1260

query II rowsort
SELECT ALL 96 col1, 90 AS col0
----
96
90

query II rowsort
SELECT - 18 AS col0, 7 AS col1
----
-18
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5232
SELECT ALL CASE - - ( + 98 ) WHEN - 5 THEN + COUNT( * ) WHEN - + 13 * + + SUM( ALL + ( - 1 ) ) * CASE + 30 WHEN + + 72 * - - COUNT( * ) - + + ( 77 ) THEN 83 * + + COUNT( * ) / - 37 * - - 92 * + 13 WHEN 13 * - COUNT( * ) THEN - MAX( - + 92 ) WHEN + ( + COUNT( * ) ) THEN NULL END THEN CASE 34 WHEN COUNT( * ) - - - NULLIF ( + 96, 18 * + - ( - + 38 ) ) THEN CAST( NULL AS SIGNED ) END * 63 ELSE NULL END * - 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL CASE - - ( + 98 ) WHEN - 5 THEN + COUNT ( * ) WHEN - + 13 * + + SUM ( ALL + ( - 1 ) ) * CASE + 30 WHEN + + 72 * - - COUNT ( * ) - + + ( 77 ) THEN 83 * + + COUNT ( * ) / - 37 * - - 92 * + 13 WHEN 13 * - COUNT ( * ) THEN - MAX ( - + 92 ) WHEN + ( + COUNT ( * ) ) THEN NULL END THEN CASE 34 WHEN COUNT ( * ) - - - NULLIF ( + 96, 18 * + - ( - + 38 ) ) THEN CAST ( NULL AS INTEGER ) END * 63 ELSE NULL END * - 19 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT + CAST ( NULL AS REAL ) + 48
----
NULL

query I rowsort
SELECT ALL + 94 + + 52 + + 7
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5235
SELECT CASE 63 WHEN + + MIN( ALL + 4 ) / - + CAST( NULL AS SIGNED ) - + NULLIF ( + 3, - + COUNT( * ) ) * - - 81 * 22 THEN + CAST( NULL AS SIGNED ) WHEN - SUM( ALL - 27 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5235
SELECT CASE 63 WHEN + + MIN ( ALL + 4 ) / - + CAST ( NULL AS INTEGER ) - + NULLIF ( + 3, - + COUNT ( * ) ) * - - 81 * 22 THEN + CAST ( NULL AS INTEGER ) WHEN - SUM ( ALL - 27 ) THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5236
SELECT 51 DIV - 21
----
-2

skipif mysql # not compatible
query I rowsort label-5236
SELECT 51 / - 21
----
-2

query I rowsort
SELECT - 16 - - - 7 + - 21 AS col1
----
-44

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

query I rowsort
SELECT ALL 60 + - 44 col0
----
16

query I rowsort
SELECT - ( + 96 ) - 33 col0
----
-129

query I rowsort
SELECT 30 + 49 AS col2
----
79

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

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL 82 + COUNT ( * ) col0
----
83

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

skipif mysql # not compatible
query I rowsort label-5243
SELECT - MIN ( - + 19 )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5244
SELECT ALL 96 DIV - + 60
----
-1

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL 96 / - + 60
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT DISTINCT ( COUNT( * ) ) - 5 + + 40 - - 36
----
72

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT ( COUNT ( * ) ) - 5 + + 40 - - 36
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5246
SELECT ( + - 42 ) - - 92 + - 39 * - COALESCE ( - 18, 8 * - + 21 + 77 * + - SUM( ALL 42 ) DIV 6 - - + 33 ) * - - 20 * - 9
----
126410

skipif mysql # not compatible
query I rowsort label-5246
SELECT ( + - 42 ) - - 92 + - 39 * - COALESCE ( - 18, 8 * - + 21 + 77 * + - SUM ( ALL 42 ) / 6 - - + 33 ) * - - 20 * - 9
----
126410

query I rowsort
SELECT DISTINCT 48 * - 29 * + 66 col2
----
-91872

query I rowsort
SELECT 50 * - + 2 AS col2
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5249
SELECT CASE + ( + 37 ) WHEN - 31 * + 95 THEN NULL ELSE CAST( NULL AS SIGNED ) + + COALESCE ( + 12, + 48 ) END * + COUNT( * ) + + 86 / + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT CASE + ( + 37 ) WHEN - 31 * + 95 THEN NULL ELSE CAST ( NULL AS INTEGER ) + + COALESCE ( + 12, + 48 ) END * + COUNT ( * ) + + 86 / + 38 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5250
SELECT 71 * - 68 * - + 4 + + 4 AS col2, 49 * + COUNT( * ) - - 28
----
19316
77

skipif mysql # not compatible
query II rowsort label-5250
SELECT 71 * - 68 * - + 4 + + 4 AS col2, 49 * + COUNT ( * ) - - 28
----
19316
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT MIN( ALL + 90 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-5251
SELECT MIN ( ALL + 90 ) AS col2
----
90

query I rowsort
SELECT + 23 * 7 + - 93 * - 4 AS col2
----
533

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT + 26 * + + CASE 63 WHEN - 46 THEN + 12 ELSE COUNT( * ) + + 54 END * ( - - COUNT( * ) ) - - 74 AS col2
----
1504

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT + 26 * + + CASE 63 WHEN - 46 THEN + 12 ELSE COUNT ( * ) + + 54 END * ( - - COUNT ( * ) ) - - 74 AS col2
----
1504

query I rowsort
SELECT - 94 + 82
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT + COUNT( * ) + - 13 * + COUNT( ALL + NULLIF ( + + 66, 4 ) ) * - 78
----
1015

skipif mysql # not compatible
query I rowsort label-5255
SELECT + COUNT ( * ) + - 13 * + COUNT ( ALL + NULLIF ( + + 66, 4 ) ) * - 78
----
1015

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT - 70 + + 8 + COUNT( * ) + COUNT( * ) * - 69 AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-5256
SELECT - 70 + + 8 + COUNT ( * ) + COUNT ( * ) * - 69 AS col1
----
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-5257
SELECT + 82 DIV + - 28 col2
----
-2

skipif mysql # not compatible
query I rowsort label-5257
SELECT + 82 / + - 28 col2
----
-2

query II rowsort
SELECT - 88 * - + 58 col2, 58 * + + 35 AS col2
----
5104
2030

query I rowsort
SELECT - 79 * 53 + - 8 AS col0
----
-4195

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5261
SELECT 10 col2, + 37 * - 39 * + COUNT( * ) * 23 AS col1
----
10
-33189

skipif mysql # not compatible
query II rowsort label-5261
SELECT 10 col2, + 37 * - 39 * + COUNT ( * ) * 23 AS col1
----
10
-33189

query II rowsort
SELECT + 1, 57 AS col1
----
1
57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5264
SELECT ALL + + CAST( + MAX( ALL - 57 ) AS SIGNED ) + 51 + ( - 74 ) * + + 64 + - - 0 + + 19 col1
----
-4723

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL + + CAST ( + MAX ( ALL - 57 ) AS INTEGER ) + 51 + ( - 74 ) * + + 64 + - - 0 + + 19 col1
----
-4723

onlyif mysql # DIV for integer division: 
query I rowsort label-5265
SELECT ALL - COALESCE ( - 17, 98 * + 79 DIV - 86 * 2 * + 33, - CASE - ( + ( - 87 ) ) WHEN + 28 THEN - ( - - 27 ) * 79 + + 84 END ) + + ( + 53 ) * + 26 + 46 col0
----
1441

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL - COALESCE ( - 17, 98 * + 79 / - 86 * 2 * + 33, - CASE - ( + ( - 87 ) ) WHEN + 28 THEN - ( - - 27 ) * 79 + + 84 END ) + + ( + 53 ) * + 26 + 46 col0
----
1441

query I rowsort
SELECT - - CASE + 76 WHEN - 4 / - 70 THEN 77 + - 44 * - 3 ELSE NULL END * 22 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5267
SELECT ALL - 65 DIV 41 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL - 65 / 41 AS col0
----
-1

query I rowsort
SELECT - 61 + - 19 * - 39 AS col2
----
680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5269
SELECT - 14 + + 19 + + COUNT( DISTINCT + ( - 16 ) ) * + 51 * + CAST( + + AVG ( DISTINCT - 87 ) AS SIGNED )
----
-4432

skipif mysql # not compatible
query I rowsort label-5269
SELECT - 14 + + 19 + + COUNT ( DISTINCT + ( - 16 ) ) * + 51 * + CAST ( + + AVG ( DISTINCT - 87 ) AS INTEGER )
----
-4432

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

query I rowsort
SELECT DISTINCT - ( 25 ) - 19 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-5272
SELECT ALL 71 * + COUNT( * ) * - MAX( - NULLIF ( 89, + 4 + - 97 ) ) AS col1, + 0 AS col1
----
6319
0

skipif mysql # not compatible
query II rowsort label-5272
SELECT ALL 71 * + COUNT ( * ) * - MAX ( - NULLIF ( 89, + 4 + - 97 ) ) AS col1, + 0 AS col1
----
6319
0

query I rowsort
SELECT ALL - 13 * - 52
----
676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5274
SELECT - + CASE CAST( NULLIF ( COUNT( * ), - 45 * + 92 * - 26 / + + 54 - - + 3 ) AS SIGNED ) WHEN + - 0 THEN COUNT( * ) WHEN + 81 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5274
SELECT - + CASE CAST ( NULLIF ( COUNT ( * ), - 45 * + 92 * - 26 / + + 54 - - + 3 ) AS INTEGER ) WHEN + - 0 THEN COUNT ( * ) WHEN + 81 THEN NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT + ( + - MIN( - 40 ) ) + 57 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-5276
SELECT + ( + - MIN ( - 40 ) ) + 57 AS col0
----
97

query II rowsort
SELECT - 31 * 28 AS col2, + 30 * 89 AS col2
----
-868
2670

query I rowsort
SELECT + 36 * - 52 AS col0
----
-1872

query I rowsort
SELECT + 54 + + 93 * + 28 * - - 72 * + CASE 9 WHEN - 31 + - - 97 / - 71 THEN 69 * - 45 END AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5281
SELECT ALL 6 DIV + 92 * - + 15
----
0

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL 6 / + 92 * - + 15
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5282
SELECT ( - + CAST( + 58 AS SIGNED ) ) col1
----
-58

skipif mysql # not compatible
query I rowsort label-5282
SELECT ( - + CAST ( + 58 AS INTEGER ) ) col1
----
-58

query I rowsort
SELECT ALL ( 3 ) * + 69
----
207

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5285
SELECT - ( 86 ) * - + COUNT( - 91 ) * + COUNT( * ) + - + CASE - 77 WHEN - - 76 THEN 65 WHEN + + COUNT( * ) * + 86 THEN 20 ELSE - 19 + 32 END + - CAST( + 77 AS SIGNED ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5285
SELECT - ( 86 ) * - + COUNT ( - 91 ) * + COUNT ( * ) + - + CASE - 77 WHEN - - 76 THEN 65 WHEN + + COUNT ( * ) * + 86 THEN 20 ELSE - 19 + 32 END + - CAST ( + 77 AS INTEGER ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT + SUM( ALL - ( + + 49 ) ) + + 1
----
-48

skipif mysql # not compatible
query I rowsort label-5286
SELECT + SUM ( ALL - ( + + 49 ) ) + + 1
----
-48

query I rowsort
SELECT DISTINCT 35 * ( - - 58 )
----
2030

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT + 41 * COUNT( * ) * + - 13 * + 24
----
-12792

skipif mysql # not compatible
query I rowsort label-5288
SELECT + 41 * COUNT ( * ) * + - 13 * + 24
----
-12792

query II rowsort
SELECT ( + 43 ) AS col1, - 63 * - 44
----
43
2772

query I rowsort
SELECT ALL - 35 * - 51 * - - 29 + 19 col0
----
51784

query I rowsort
SELECT - 37 * 88 - + - 26 AS col2
----
-3230

query I rowsort
SELECT DISTINCT 99 * - - 14 AS col0
----
1386

query I rowsort
SELECT + NULLIF ( + - ( - + 74 ), 13 + 3 )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5294
SELECT - - 40 * + 18 - + CASE 98 WHEN - 48 * + - 96 THEN NULL ELSE + 95 * + + NULLIF ( + 24, + 80 + - 39 / - - COUNT( * ) ) * + + 47 END, - 17 + - + 18 + + 84 AS col0
----
-106440
49

skipif mysql # not compatible
query II rowsort label-5294
SELECT - - 40 * + 18 - + CASE 98 WHEN - 48 * + - 96 THEN NULL ELSE + 95 * + + NULLIF ( + 24, + 80 + - 39 / - - COUNT ( * ) ) * + + 47 END, - 17 + - + 18 + + 84 AS col0
----
-106440
49

query I rowsort
SELECT DISTINCT - 36 * - 51
----
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT ALL + COUNT( * ) * - 46 + - 71 * ( - ( 57 ) )
----
4001

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL + COUNT ( * ) * - 46 + - 71 * ( - ( 57 ) )
----
4001

query I rowsort
SELECT + 3 + - 11 * 20
----
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT DISTINCT SUM( 55 ) * - 36
----
-1980

skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT SUM ( 55 ) * - 36
----
-1980

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5300
SELECT DISTINCT - CAST( - NULLIF ( + 68, + 37 ) AS SIGNED ) - + 90 + - ( COUNT( * ) ) * 68 * ( 84 ) - - + 16 + - + 7 / + - CASE + + COUNT( * ) WHEN + 35 * - 85 + - AVG ( 29 ) THEN NULL WHEN AVG ( - 76 ) THEN CAST( NULL AS SIGNED ) + + - 59 / SUM( + 59 ) WHEN + ( - SUM( + 74 ) ) * - + COUNT( + - 40 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT - CAST ( - NULLIF ( + 68, + 37 ) AS INTEGER ) - + 90 + - ( COUNT ( * ) ) * 68 * ( 84 ) - - + 16 + - + 7 / + - CASE + + COUNT ( * ) WHEN + 35 * - 85 + - AVG ( 29 ) THEN NULL WHEN AVG ( - 76 ) THEN CAST ( NULL AS INTEGER ) + + - 59 / SUM ( + 59 ) WHEN + ( - SUM ( + 74 ) ) * - + COUNT ( + - 40 ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + + 11 - - + 5 * - + 49 * + + 2
----
-479

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5302
SELECT + 92 + + 56 - - 36 DIV - 63 + COUNT( * )
----
149

skipif mysql # not compatible
query I rowsort label-5302
SELECT + 92 + + 56 - - 36 / - 63 + COUNT ( * )
----
149

query I rowsort
SELECT - 72 - + 37
----
-109

query II rowsort
SELECT ALL NULLIF ( 74, + + 24 ), + ( - 18 ) + + 69 AS col0
----
74
51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT DISTINCT 54 * 53 DIV 7
----
408

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT 54 * 53 / 7
----
408

query I rowsort
SELECT DISTINCT - 53 * + 13
----
-689

query I rowsort
SELECT 95 * + - NULLIF ( + ( - 45 ), - NULLIF ( + ( - 79 ), - - 85 * - 30 ) / 36 ) * + - 10 * - 87
----
3719250

query I rowsort
SELECT ALL 89 + - 48 col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5310
SELECT + COUNT( * ) DIV + 1 + + - 81 col1
----
-80

skipif mysql # not compatible
query I rowsort label-5310
SELECT + COUNT ( * ) / + 1 + + - 81 col1
----
-80

query I rowsort
SELECT 85 * 66
----
5610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5312
SELECT 44 * 86 + + CAST( + 12 AS SIGNED ) + - + 57
----
3739

skipif mysql # not compatible
query I rowsort label-5312
SELECT 44 * 86 + + CAST ( + 12 AS INTEGER ) + - + 57
----
3739

query I rowsort
SELECT 1 + - + 8 AS col0
----
-7

query I rowsort
SELECT DISTINCT - 63 + - + 6 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT ALL + 9 + - - 20 * ( + MAX( ALL + 64 ) ) * - 31 * + - 18
----
714249

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL + 9 + - - 20 * ( + MAX ( ALL + 64 ) ) * - 31 * + - 18
----
714249

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT 80 + - 46 + 4 * + NULLIF ( 41, + 15 ) + - 56 + COUNT( * )
----
143

skipif mysql # not compatible
query I rowsort label-5317
SELECT 80 + - 46 + 4 * + NULLIF ( 41, + 15 ) + - 56 + COUNT ( * )
----
143

query I rowsort
SELECT ALL 77 * - - 68
----
5236

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT 26 + 26 + + - 45 + + + COUNT( ALL 59 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-5320
SELECT 26 + 26 + + - 45 + + + COUNT ( ALL 59 ) AS col1
----
8

query I rowsort
SELECT ALL 4 - - 94
----
98

query I rowsort
SELECT 59 * - + 4 col1
----
-236

query I rowsort
SELECT + 43 * + 22 AS col1
----
946

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

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

query II rowsort
SELECT - 43 AS col1, - 28 + 9 + - 60 - - ( - 52 ) + + + 33 * + 67
----
-43
2080

query I rowsort
SELECT 59 + + 34 + + 82
----
175

query II rowsort
SELECT + 44 AS col1, - 80 * + 18
----
44
-1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5328
SELECT - 38 * + 20 + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5328
SELECT - 38 * + 20 + - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 8 * - 51
----
-408

query I rowsort
SELECT + 59 + + - 46
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5331
SELECT COALESCE ( + MAX( DISTINCT - 91 ), + - 95 ) + - 56 * - COUNT( * ) DIV 59 + + 37
----
-54

skipif mysql # not compatible
query I rowsort label-5331
SELECT COALESCE ( + MAX ( DISTINCT - 91 ), + - 95 ) + - 56 * - COUNT ( * ) / 59 + + 37
----
-54

query II rowsort
SELECT 66 + - - 92 AS col2, 76 + + + 24
----
158
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT ALL + 12 * - + NULLIF ( ( - + COALESCE ( 28, 22 ) ), + 67 + COUNT( * ) - 64 + 80 ) * + + 84 * 46
----
1298304

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL + 12 * - + NULLIF ( ( - + COALESCE ( 28, 22 ) ), + 67 + COUNT ( * ) - 64 + 80 ) * + + 84 * 46
----
1298304

query I rowsort
SELECT ( COALESCE ( 92, - 2 ) ) * 16 AS col2
----
1472

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5335
SELECT DISTINCT + SUM( + ( - + ( - 77 ) ) ) + + + 18 + + 5 DIV + 53, COUNT( * ) col2
----
95
1

skipif mysql # not compatible
query II rowsort label-5335
SELECT DISTINCT + SUM ( + ( - + ( - 77 ) ) ) + + + 18 + + 5 / + 53, COUNT ( * ) col2
----
95
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5336
SELECT ALL - 39 + + + 92 + - COUNT( * ) DIV - 33
----
53

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL - 39 + + + 92 + - COUNT ( * ) / - 33
----
53

query I rowsort
SELECT 92 + 54 AS col2
----
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5338
SELECT 95 DIV - COUNT( * ) AS col0, + 64 DIV + - 46 - + 49 + - 71
----
-95
-121

skipif mysql # not compatible
query II rowsort label-5338
SELECT 95 / - COUNT ( * ) AS col0, + 64 / + - 46 - + 49 + - 71
----
-95
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT SUM( - 53 ) * - + 85
----
4505

skipif mysql # not compatible
query I rowsort label-5339
SELECT SUM ( - 53 ) * - + 85
----
4505

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5341
SELECT COUNT( * ) + + - 57 + + CAST( - 46 AS SIGNED ) - 34 AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-5341
SELECT COUNT ( * ) + + - 57 + + CAST ( - 46 AS INTEGER ) - 34 AS col1
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT ALL + SUM( DISTINCT 27 ) + 0 + - 0
----
27

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL + SUM ( DISTINCT 27 ) + 0 + - 0
----
27

query I rowsort
SELECT 1 * - 69 * + 94
----
-6486

query I rowsort
SELECT DISTINCT + 31 + - + 63
----
-32

query I rowsort
SELECT ALL - 77 + - + 11 - - 32 + 91 * + 5 * 23 AS col2
----
10409

query I rowsort
SELECT + - NULLIF ( + 12, + 47 ) AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5347
SELECT - COUNT( * ) + + + 0 + NULLIF ( + 80, + 46 * + 70 ) * - + 30 + - 57 DIV + - 75 AS col1, 26
----
-2401
26

skipif mysql # not compatible
query II rowsort label-5347
SELECT - COUNT ( * ) + + + 0 + NULLIF ( + 80, + 46 * + 70 ) * - + 30 + - 57 / + - 75 AS col1, 26
----
-2401
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT 82 * COUNT( * ) * 95 * - 82 + + 12 + + - 43 + 32 * + COUNT( * )
----
-638779

skipif mysql # not compatible
query I rowsort label-5348
SELECT 82 * COUNT ( * ) * 95 * - 82 + + 12 + + - 43 + 32 * + COUNT ( * )
----
-638779

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT ALL - + ( + + 34 ) - + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL - + ( + + 34 ) - + COUNT ( * )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5350
SELECT DISTINCT - - ( - NULLIF ( - 86, - NULLIF ( - - COALESCE ( + 26, + 85 * - - 29 ), - CAST( NULL AS SIGNED ) * - - COUNT( * ) * + - 96 ) / - - 32 + - COUNT( * ) ) )
----
86

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT - - ( - NULLIF ( - 86, - NULLIF ( - - COALESCE ( + 26, + 85 * - - 29 ), - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * + - 96 ) / - - 32 + - COUNT ( * ) ) )
----
86

query II rowsort
SELECT 5 * + 20 AS col2, 49 + + + 86
----
100
135

onlyif mysql # aggregate syntax: 
query II rowsort label-5352
SELECT DISTINCT - - SUM( DISTINCT + 19 ), + NULLIF ( - 77, - - 80 - 16 ) AS col2
----
19
-77

skipif mysql # not compatible
query II rowsort label-5352
SELECT DISTINCT - - SUM ( DISTINCT + 19 ), + NULLIF ( - 77, - - 80 - 16 ) AS col2
----
19
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL - + 15 - + MIN( ALL 86 ) + - 45 AS col1
----
-146

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL - + 15 - + MIN ( ALL 86 ) + - 45 AS col1
----
-146

query I rowsort
SELECT ALL 38 * - 19
----
-722

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT - NULLIF ( ( + MAX( ALL + 88 ) ), - 50 ) / - - CASE - AVG ( + 20 ) WHEN - + 42 THEN + COUNT( * ) + + 37 - + 71 WHEN + + COUNT( * ) - - ( 97 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT - NULLIF ( ( + MAX ( ALL + 88 ) ), - 50 ) / - - CASE - AVG ( + 20 ) WHEN - + 42 THEN + COUNT ( * ) + + 37 - + 71 WHEN + + COUNT ( * ) - - ( 97 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5356
SELECT ALL + - 3 DIV - + 54 col2
----
0

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL + - 3 / - + 54 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5357
SELECT 56 * 0 * - CAST( NULL AS SIGNED ) - - - 29 + - 40 * CASE 36 WHEN + 91 THEN + ( + 68 ) * + - ( + + 94 ) ELSE - COUNT( * ) + ( - 39 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5357
SELECT 56 * 0 * - CAST ( NULL AS INTEGER ) - - - 29 + - 40 * CASE 36 WHEN + 91 THEN + ( + 68 ) * + - ( + + 94 ) ELSE - COUNT ( * ) + ( - 39 ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 95 * + 65 AS col0
----
6175

query I rowsort
SELECT + 36 * + 82 - - 82
----
3034

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT + CASE - - 50 WHEN + - ( - 38 ) THEN NULL WHEN + MAX( + 51 ) * + 50 THEN - 35 * - 12 * + 81 - + CASE - - 18 WHEN + 93 THEN 15 END + 9 END / - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT + CASE - - 50 WHEN + - ( - 38 ) THEN NULL WHEN + MAX ( + 51 ) * + 50 THEN - 35 * - 12 * + 81 - + CASE - - 18 WHEN + 93 THEN 15 END + 9 END / - 70
----
NULL

query I rowsort
SELECT ALL - 1 * 50 * - - 92
----
-4600

query I rowsort
SELECT + 57 * - - 87 * - 44
----
-218196

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT DISTINCT MAX( ALL + 86 ) + - 7 + + 83
----
162

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT MAX ( ALL + 86 ) + - 7 + + 83
----
162

query I rowsort
SELECT ALL 90 * - + 76 * 24 col1
----
-164160

query I rowsort
SELECT + ( 98 ) * - + 79 AS col2
----
-7742

query I rowsort
SELECT ALL 83 + NULLIF ( - ( + 88 ), - + AVG ( ALL - 32 ) * - 35 - 7 ) * + 85 AS col2
----
-7397

query I rowsort
SELECT DISTINCT 42 + + 4
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT - CASE + COUNT( * ) WHEN + 51 THEN + + 91 WHEN + 43 THEN + 37 * + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT - CASE + COUNT ( * ) WHEN + 51 THEN + + 91 WHEN + 43 THEN + 37 * + 9 END
----
NULL

query II rowsort
SELECT + ( + - 42 ) + - + 50 * + 6 * 65, - 67 AS col2
----
-19542
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5370
SELECT + 71 * 29 * MIN( + - 5 ) * 72 DIV 38
----
-19506

skipif mysql # not compatible
query I rowsort label-5370
SELECT + 71 * 29 * MIN ( + - 5 ) * 72 / 38
----
-19506

query II rowsort
SELECT 76 AS col1, + 50
----
76
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5372
SELECT 11 AS col0, ( - COALESCE ( + + COUNT( * ), 46 DIV + 58 DIV 64 * + 57 ) ) * 9
----
11
-9

skipif mysql # not compatible
query II rowsort label-5372
SELECT 11 AS col0, ( - COALESCE ( + + COUNT ( * ), 46 / + 58 / 64 * + 57 ) ) * 9
----
11
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5373
SELECT ALL 17 + - MAX( - 87 ) col0, - 39
----
104
-39

skipif mysql # not compatible
query II rowsort label-5373
SELECT ALL 17 + - MAX ( - 87 ) col0, - 39
----
104
-39

query I rowsort
SELECT DISTINCT CASE - + 23 WHEN + - ( - - NULLIF ( + + 0, - 54 * + 67 + - AVG ( - ( - - 56 ) ) ) ) + 34 THEN NULL WHEN + 13 THEN NULL WHEN 42 / + 97 + + ( ( + - 41 ) ) THEN NULL ELSE + - 89 END * - - 40
----
-3560

query I rowsort
SELECT + 88 + - 18 AS col1
----
70

query I rowsort
SELECT - 5 * + 20 * 30
----
-3000

query I rowsort
SELECT ALL 11 * + 60 AS col1
----
660

query I rowsort
SELECT DISTINCT 29 - - 22 AS col1
----
51

query I rowsort
SELECT CASE 65 WHEN - 63 THEN NULL WHEN + ( + 98 ) + - 29 * + 93 + - 53 THEN - 38 END * 26 + 39
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5380
SELECT + COUNT ( * ) * - + COUNT ( * ) + - 49 AS col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5381
SELECT - CAST( - + 81 AS SIGNED ) * - - 18 col0, 87 DIV - 25
----
1458
-3

skipif mysql # not compatible
query II rowsort label-5381
SELECT - CAST ( - + 81 AS INTEGER ) * - - 18 col0, 87 / - 25
----
1458
-3

query I rowsort
SELECT + 42 + + 49
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT ALL - 91 * - + 98 - + + 58 + COUNT( * ) * 31 + - 15 col0
----
8876

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL - 91 * - + 98 - + + 58 + COUNT ( * ) * 31 + - 15 col0
----
8876

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT - + COALESCE ( 74, + MIN( DISTINCT 57 ) ) * + + MAX( + + 18 ) + - 86 AS col0
----
-1418

skipif mysql # not compatible
query I rowsort label-5384
SELECT - + COALESCE ( 74, + MIN ( DISTINCT 57 ) ) * + + MAX ( + + 18 ) + - 86 AS col0
----
-1418

onlyif mysql # DIV for integer division: 
query I rowsort label-5385
SELECT - + 35 * + + 2 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-5385
SELECT - + 35 * + + 2 / + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT DISTINCT + 7 * + COUNT( * ) - 73 col1
----
-66

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT + 7 * + COUNT ( * ) - 73 col1
----
-66

query I rowsort
SELECT ALL + 96 * + 22 * + + 19 + - 31 AS col1
----
40097

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5388
SELECT - COUNT( * ) * + 90 * + 74, + 0 DIV - 52 AS col2
----
-6660
0

skipif mysql # not compatible
query II rowsort label-5388
SELECT - COUNT ( * ) * + 90 * + 74, + 0 / - 52 AS col2
----
-6660
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5389
SELECT DISTINCT + CAST( - - MAX( - - 74 ) AS SIGNED ) * - COUNT( * ) + - - 60
----
-14

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT + CAST ( - - MAX ( - - 74 ) AS INTEGER ) * - COUNT ( * ) + - - 60
----
-14

query II rowsort
SELECT ALL + + 88, 61 + - - 51 AS col0
----
88
112

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5392
SELECT DISTINCT + 97 * + 92 + + 82 DIV + MIN( ALL - CAST( + 36 AS SIGNED ) )
----
8922

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT + 97 * + 92 + + 82 / + MIN ( ALL - CAST ( + 36 AS INTEGER ) )
----
8922

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT - + ( + MAX( - 49 ) ) + + - ( MAX( - - 35 ) ) + - ( 98 ) * ( - 55 ) AS col0
----
5404

skipif mysql # not compatible
query I rowsort label-5393
SELECT - + ( + MAX ( - 49 ) ) + + - ( MAX ( - - 35 ) ) + - ( 98 ) * ( - 55 ) AS col0
----
5404

query I rowsort
SELECT ALL + 52 * 55 + + + 81 + 40 * 86
----
6381

onlyif mysql # aggregate syntax: 
query II rowsort label-5395
SELECT COUNT( * ), + 32 + + - MIN( DISTINCT + - 8 ) * - + 17 AS col1
----
1
-104

skipif mysql # not compatible
query II rowsort label-5395
SELECT COUNT ( * ), + 32 + + - MIN ( DISTINCT + - 8 ) * - + 17 AS col1
----
1
-104

query I rowsort
SELECT + 72 + + 10 AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5397
SELECT ALL - MAX( DISTINCT - + ( + 52 ) ) + 74 AS col1, + CAST( NULL AS SIGNED )
----
126
NULL

skipif mysql # not compatible
query II rowsort label-5397
SELECT ALL - MAX ( DISTINCT - + ( + 52 ) ) + 74 AS col1, + CAST ( NULL AS INTEGER )
----
126
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5398
SELECT ALL 76 AS col2, 87 DIV + 20
----
76
4

skipif mysql # not compatible
query II rowsort label-5398
SELECT ALL 76 AS col2, 87 / + 20
----
76
4

query I rowsort
SELECT + 48 + + - 68 AS col2
----
-20

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5401
SELECT DISTINCT CASE MAX( DISTINCT - 85 ) WHEN - + 30 - - 62 + - COUNT( - - 54 ) THEN 17 ELSE + ( - 4 ) + - - 45 * 22 + + - 17 END * 61 DIV - + 72
----
-820

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT CASE MAX ( DISTINCT - 85 ) WHEN - + 30 - - 62 + - COUNT ( - - 54 ) THEN 17 ELSE + ( - 4 ) + - - 45 * 22 + + - 17 END * 61 / - + 72
----
-820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5402
SELECT ALL 34 AS col1, CASE + + COUNT( + ( - 71 ) ) WHEN + CAST( CASE + NULLIF ( - 2, + + 28 * - COUNT( * ) + + + ( - 24 ) * + + 60 ) WHEN + - NULLIF ( + 12, CASE 80 WHEN - + NULLIF ( 98, + 76 ) * - + 67 THEN + CASE - + 7 WHEN - 42 THEN + 22 WHEN + - 95 * - 87 * - + 53 THEN + 53 ELSE NULL END / + 91 END + + COUNT( * ) ) / - - 84 THEN + ( - - CASE + + 15 WHEN + - 61 + 10 + + CASE 14 WHEN + 42 + + 80 THEN - CAST( - 34 AS SIGNED ) + 16 END * + 78 THEN 17 WHEN 51 THEN NULL END ) / - 42 END AS SIGNED ) + 84 THEN COUNT( ALL 15 ) * COUNT( * ) - 60 END * + 11
----
34
NULL

skipif mysql # not compatible
query II rowsort label-5402
SELECT ALL 34 AS col1, CASE + + COUNT ( + ( - 71 ) ) WHEN + CAST ( CASE + NULLIF ( - 2, + + 28 * - COUNT ( * ) + + + ( - 24 ) * + + 60 ) WHEN + - NULLIF ( + 12, CASE 80 WHEN - + NULLIF ( 98, + 76 ) * - + 67 THEN + CASE - + 7 WHEN - 42 THEN + 22 WHEN + - 95 * - 87 * - + 53 THEN + 53 ELSE NULL END / + 91 END + + COUNT ( * ) ) / - - 84 THEN + ( - - CASE + + 15 WHEN + - 61 + 10 + + CASE 14 WHEN + 42 + + 80 THEN - CAST ( - 34 AS INTEGER ) + 16 END * + 78 THEN 17 WHEN 51 THEN NULL END ) / - 42 END AS INTEGER ) + 84 THEN COUNT ( ALL 15 ) * COUNT ( * ) - 60 END * + 11
----
34
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5403
SELECT ALL + 22 * - COALESCE ( + COUNT( * ), 17 DIV - COUNT( * ) + - 57 + + NULLIF ( + 27, 80 ) ) * + 21
----
-462

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL + 22 * - COALESCE ( + COUNT ( * ), 17 / - COUNT ( * ) + - 57 + + NULLIF ( + 27, 80 ) ) * + 21
----
-462

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5404
SELECT ALL CAST( NULL AS DECIMAL ) - - + NULLIF ( 70, + - SUM( - 29 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL CAST ( NULL AS REAL ) - - + NULLIF ( 70, + - SUM ( - 29 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT DISTINCT + 4 * + SUM( ALL + - 76 )
----
-304

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + 4 * + SUM ( ALL + - 76 )
----
-304

query II rowsort
SELECT ALL 45 AS col2, - 76 AS col1
----
45
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT DISTINCT COUNT( DISTINCT - 97 )
----
1

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT COUNT ( DISTINCT - 97 )
----
1

query I rowsort
SELECT + 82 + + + 95 + + 0 AS col2
----
177

query II rowsort
SELECT 53 AS col2, 84 AS col1
----
53
84

query I rowsort
SELECT + 58 + 81
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5411
SELECT ALL CASE - 17 WHEN + - 0 THEN + 74 * CAST( + 5 AS SIGNED ) * - - COALESCE ( + COUNT( * ), 82 ) * - 18 * COALESCE ( + 26, + - 75, - 36 + + 4 + CASE WHEN NOT COUNT( * ) IN ( + 83 ) THEN 49 * + + COUNT( DISTINCT - 53 ) END - + COUNT( * ) ) + + 36 + - + 11 * - 13 END - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL CASE - 17 WHEN + - 0 THEN + 74 * CAST ( + 5 AS INTEGER ) * - - COALESCE ( + COUNT ( * ), 82 ) * - 18 * COALESCE ( + 26, + - 75, - 36 + + 4 + CASE WHEN NOT COUNT ( * ) IN ( + 83 ) THEN 49 * + + COUNT ( DISTINCT - 53 ) END - + COUNT ( * ) ) + + 36 + - + 11 * - 13 END - - COUNT ( * )
----
NULL

query I rowsort
SELECT - + 25 * 70 + 71
----
-1679

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT DISTINCT + COUNT( * ) * + MAX( ALL - 54 ) * 8 + ( + 95 ) * - 63
----
-6417

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT + COUNT ( * ) * + MAX ( ALL - 54 ) * 8 + ( + 95 ) * - 63
----
-6417

onlyif mysql # DIV for integer division: 
query II rowsort label-5414
SELECT ALL 39 AS col0, 79 DIV - 68
----
39
-1

skipif mysql # not compatible
query II rowsort label-5414
SELECT ALL 39 AS col0, 79 / - 68
----
39
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5415
SELECT DISTINCT COUNT( * ) DIV + - 74 * + 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT COUNT ( * ) / + - 74 * + 27 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL - MAX( DISTINCT + 74 ) * + + 4
----
-296

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL - MAX ( DISTINCT + 74 ) * + + 4
----
-296

onlyif mysql # aggregate syntax: 
query II rowsort label-5417
SELECT DISTINCT 32 * - - 9 AS col0, - 9 * 65 - + 10 / - + 87 + + - COUNT( * ) + 95 * + 18 * 0 + + 71 + - CASE - + 17 WHEN - 4 - + 74 + 87 * + 28 THEN - - 20 * - SUM( + 10 ) WHEN + CASE - - 40 WHEN COUNT( * ) THEN + 86 END THEN 69 + ( - 18 ) / + COUNT( * ) END * - COUNT( * ) + ( + ( + + SUM( - 98 ) ) ) AS col0
----
288
NULL

skipif mysql # not compatible
query II rowsort label-5417
SELECT DISTINCT 32 * - - 9 AS col0, - 9 * 65 - + 10 / - + 87 + + - COUNT ( * ) + 95 * + 18 * 0 + + 71 + - CASE - + 17 WHEN - 4 - + 74 + 87 * + 28 THEN - - 20 * - SUM ( + 10 ) WHEN + CASE - - 40 WHEN COUNT ( * ) THEN + 86 END THEN 69 + ( - 18 ) / + COUNT ( * ) END * - COUNT ( * ) + ( + ( + + SUM ( - 98 ) ) ) AS col0
----
288
NULL

query I rowsort
SELECT + - 20 + + - 94 AS col0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT 98 * - COUNT( * ) + - 18
----
-116

skipif mysql # not compatible
query I rowsort label-5419
SELECT 98 * - COUNT ( * ) + - 18
----
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5420
SELECT DISTINCT 19 DIV + 25 + 85 + - - 25 * + - COALESCE ( - 10, + ( + 21 ), + 94 + + - MAX( + 22 ) ) + - 27 AS col0
----
308

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT 19 / + 25 + 85 + - - 25 * + - COALESCE ( - 10, + ( + 21 ), + 94 + + - MAX ( + 22 ) ) + - 27 AS col0
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT ALL - + COALESCE ( - + 31, - 85, - + MAX( + - 33 ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL - + COALESCE ( - + 31, - 85, - + MAX ( + - 33 ) ) AS col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5422
SELECT DISTINCT 43 DIV 63 - + SUM( 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT 43 / 63 - + SUM ( 71 ) AS col0
----
-71

query I rowsort
SELECT 52 + + 12 + 2 * - 79 * + 36 + 75
----
-5549

onlyif mysql # aggregate syntax: 
query II rowsort label-5424
SELECT DISTINCT - 11 AS col1, COUNT( * ) * + - 21
----
-11
-21

skipif mysql # not compatible
query II rowsort label-5424
SELECT DISTINCT - 11 AS col1, COUNT ( * ) * + - 21
----
-11
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT ALL - - 81 + + + SUM( - ( - 11 ) ) + + 24 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL - - 81 + + + SUM ( - ( - 11 ) ) + + 24 AS col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT + NULLIF ( - - ( 52 ), - MAX( ALL - 8 ) ) col1
----
52

skipif mysql # not compatible
query I rowsort label-5426
SELECT + NULLIF ( - - ( 52 ), - MAX ( ALL - 8 ) ) col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT ALL - ( + 21 ) + + 95 * CAST( - 45 AS SIGNED )
----
-4296

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - ( + 21 ) + + 95 * CAST ( - 45 AS INTEGER )
----
-4296

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT DISTINCT - 8 + + 58 - CASE - - 48 WHEN - NULLIF ( - 72, - + COUNT( * ) ) THEN + - 79 * 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT - 8 + + 58 - CASE - - 48 WHEN - NULLIF ( - 72, - + COUNT ( * ) ) THEN + - 79 * 13 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT 91 * - MAX( DISTINCT + 91 )
----
-8281

skipif mysql # not compatible
query I rowsort label-5429
SELECT 91 * - MAX ( DISTINCT + 91 )
----
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT ALL - 90 * + CASE - ( NULLIF ( + NULLIF ( - COUNT( * ), 64 * MIN( + 85 ) ), - 73 ) ) WHEN + - 9 * + + 95 THEN - 11 END / + 62 * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL - 90 * + CASE - ( NULLIF ( + NULLIF ( - COUNT ( * ), 64 * MIN ( + 85 ) ), - 73 ) ) WHEN + - 9 * + + 95 THEN - 11 END / + 62 * - 7
----
NULL

query I rowsort
SELECT ALL - 45 - + 43 + 36 AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5432
SELECT ALL - ( CAST( NULL AS SIGNED ) ) - - 19 + 38 * COUNT( * ) AS col0, CAST( + 84 AS SIGNED )
----
NULL
84

skipif mysql # not compatible
query II rowsort label-5432
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) - - 19 + 38 * COUNT ( * ) AS col0, CAST ( + 84 AS INTEGER )
----
NULL
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5433
SELECT 16 * - - COUNT( * ) DIV ( + 44 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5433
SELECT 16 * - - COUNT ( * ) / ( + 44 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT MAX( ALL - ( - 23 ) ) * + 39 AS col2
----
897

skipif mysql # not compatible
query I rowsort label-5434
SELECT MAX ( ALL - ( - 23 ) ) * + 39 AS col2
----
897

query I rowsort
SELECT 26 + 84 * 96 AS col2
----
8090

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5436
SELECT MIN( + + 5 ) DIV + 15 AS col2, + 96
----
0
96

skipif mysql # not compatible
query II rowsort label-5436
SELECT MIN ( + + 5 ) / + 15 AS col2, + 96
----
0
96

query I rowsort
SELECT ALL 16 * + 36 * - 83
----
-47808

query I rowsort
SELECT 35 + + 2
----
37

query I rowsort
SELECT DISTINCT - 63 * - - 76 + - 11
----
-4799

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

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

query I rowsort
SELECT ALL - - 9 * - + 30 * - + 18 AS col0
----
4860

query I rowsort
SELECT - 60 + + 23
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT DISTINCT + MIN( + 77 ) + 60 AS col0
----
137

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT + MIN ( + 77 ) + 60 AS col0
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5444
SELECT ALL + MIN( - - NULLIF ( - CAST( NULL AS SIGNED ), + 88 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL + MIN ( - - NULLIF ( - CAST ( NULL AS INTEGER ), + 88 ) ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5445
SELECT COUNT ( ( 70 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5446
SELECT - 17 * - ( - CASE 25 WHEN - 84 * - 41 THEN + 4 + + + ( - 0 ) DIV + 70 ELSE + 56 + + 63 END ) - - + 22
----
-2001

skipif mysql # not compatible
query I rowsort label-5446
SELECT - 17 * - ( - CASE 25 WHEN - 84 * - 41 THEN + 4 + + + ( - 0 ) / + 70 ELSE + 56 + + 63 END ) - - + 22
----
-2001

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL - 14 + + - SUM( + 42 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL - 14 + + - SUM ( + 42 ) AS col1
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5450
SELECT ALL + 3 + - 45 + - ( + 27 ) + - CAST( 69 AS SIGNED )
----
-138

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL + 3 + - 45 + - ( + 27 ) + - CAST ( 69 AS INTEGER )
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5451
SELECT ALL + 53 + - - ( + 21 ) + - + CAST( - 1 AS SIGNED ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL + 53 + - - ( + 21 ) + - + CAST ( - 1 AS INTEGER ) AS col1
----
75

query I rowsort
SELECT DISTINCT + 95 + - 45 col2
----
50

query I rowsort
SELECT CASE + 30 WHEN - + 30 THEN 61 END + 70 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5454
SELECT CASE - 99 WHEN - 43 * + 21 THEN NULL ELSE 7 - + CAST( NULL AS SIGNED ) / 23 END * - 18 * COUNT( * ) AS col0, 70 AS col1
----
NULL
70

skipif mysql # not compatible
query II rowsort label-5454
SELECT CASE - 99 WHEN - 43 * + 21 THEN NULL ELSE 7 - + CAST ( NULL AS INTEGER ) / 23 END * - 18 * COUNT ( * ) AS col0, 70 AS col1
----
NULL
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5455
SELECT 49 * - 92 / + SUM( + + CAST( NULL AS SIGNED ) ) + + + 74 + 74 + 2 - - - 54 / - COUNT( * ) * - + 97 * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT 49 * - 92 / + SUM ( + + CAST ( NULL AS INTEGER ) ) + + + 74 + 74 + 2 - - - 54 / - COUNT ( * ) * - + 97 * - 30
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5458
SELECT ALL - ( - CAST( NULL AS DECIMAL ) ) * + COALESCE ( - 11, - - 22 + 25 ), + 72 + + COUNT( * ) AS col1
----
NULL
73

skipif mysql # not compatible
query II rowsort label-5458
SELECT ALL - ( - CAST ( NULL AS REAL ) ) * + COALESCE ( - 11, - - 22 + 25 ), + 72 + + COUNT ( * ) AS col1
----
NULL
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT DISTINCT - ( SUM( ALL + NULLIF ( - 59, 40 ) ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT - ( SUM ( ALL + NULLIF ( - 59, 40 ) ) ) AS col0
----
59

query II rowsort
SELECT - 85, ( - 19 ) * - 63 AS col0
----
-85
1197

query II rowsort
SELECT DISTINCT 89 AS col2, + 5 * - 95 AS col2
----
89
-475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5462
SELECT ALL - MAX( DISTINCT 10 ) * + 91 + 36 + - 52 * COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL - MAX ( DISTINCT 10 ) * + 91 + 36 + - 52 * COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 45 + - 39 + - 61 * + + 35 * + + 15
----
-32019

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

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT 29 * - CASE + + 12 WHEN - COUNT( * ) * + 15 * 41 * + COUNT( * ) * + COALESCE ( 9, 84, + + 42 ) THEN NULL ELSE 50 END
----
-1450

skipif mysql # not compatible
query I rowsort label-5465
SELECT 29 * - CASE + + 12 WHEN - COUNT ( * ) * + 15 * 41 * + COUNT ( * ) * + COALESCE ( 9, 84, + + 42 ) THEN NULL ELSE 50 END
----
-1450

query I rowsort
SELECT 64 * - 58
----
-3712

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5467
SELECT ALL + ( 35 ) DIV - - 50 AS col2, MAX( - 48 )
----
0
-48

skipif mysql # not compatible
query II rowsort label-5467
SELECT ALL + ( 35 ) / - - 50 AS col2, MAX ( - 48 )
----
0
-48

query I rowsort
SELECT - 35 * + - 63 * 39 AS col2
----
85995

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT ALL - NULLIF ( - ( + COUNT( + 74 ) ), - 37 + + - 53 )
----
1

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL - NULLIF ( - ( + COUNT ( + 74 ) ), - 37 + + - 53 )
----
1

query II rowsort
SELECT 43, + 94 AS col0
----
43
94

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

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL + + 94 / COUNT ( * ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT + CASE + + COUNT( * ) WHEN + - 31 THEN - 14 + + 79 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT + CASE + + COUNT ( * ) WHEN + - 31 THEN - 14 + + 79 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5474
SELECT ALL + + COALESCE ( 62, + 56 DIV 60, - ( + 47 ) DIV - 53 DIV 98 ) * 61 * + + 1 - + 70 - - 92 - - SUM( - 4 ) + COUNT( * ) * - 8 DIV COUNT( * ) DIV + + 16 AS col0
----
3800

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL + + COALESCE ( 62, + 56 / 60, - ( + 47 ) / - 53 / 98 ) * 61 * + + 1 - + 70 - - 92 - - SUM ( - 4 ) + COUNT ( * ) * - 8 / COUNT ( * ) / + + 16 AS col0
----
3800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5475
SELECT - + 37 DIV + + COUNT( * ) * - 1 + + - 28
----
9

skipif mysql # not compatible
query I rowsort label-5475
SELECT - + 37 / + + COUNT ( * ) * - 1 + + - 28
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5476
SELECT - 30 AS col1, COUNT( - + 12 ) + + + 22 + - + 79 + - 6 * - 38
----
-30
172

skipif mysql # not compatible
query II rowsort label-5476
SELECT - 30 AS col1, COUNT ( - + 12 ) + + + 22 + - + 79 + - 6 * - 38
----
-30
172

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL 89 * + 26 + - COUNT( 16 ) col1
----
2313

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL 89 * + 26 + - COUNT ( 16 ) col1
----
2313

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

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

query II rowsort
SELECT + + 35 AS col1, 81 + + - 47
----
35
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5480
SELECT DISTINCT - 49 * - 79 + - 78 DIV 92 DIV - 1 AS col0
----
3871

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT - 49 * - 79 + - 78 / 92 / - 1 AS col0
----
3871

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT - NULLIF ( - 34, MAX( DISTINCT + 31 ) + 90 + + 26 ) + + 64
----
98

skipif mysql # not compatible
query I rowsort label-5481
SELECT - NULLIF ( - 34, MAX ( DISTINCT + 31 ) + 90 + + 26 ) + + 64
----
98

query I rowsort
SELECT + + 96 * + 52 AS col1
----
4992

query I rowsort
SELECT + 25 * - + 61
----
-1525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5484
SELECT 63 / + COUNT( * ) + + - AVG ( - 31 ) - + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5484
SELECT 63 / + COUNT ( * ) + + - AVG ( - 31 ) - + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT ALL SUM( - 47 ) * + - 75
----
3525

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL SUM ( - 47 ) * + - 75
----
3525

query I rowsort
SELECT + 89 * - 30 * - 28 AS col0
----
74760

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT DISTINCT NULLIF ( - 35, + 79 ) * COUNT( * ) + - 53
----
-88

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT NULLIF ( - 35, + 79 ) * COUNT ( * ) + - 53
----
-88

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

skipif mysql # not compatible
query I rowsort label-5488
SELECT MAX ( ( - + 97 ) )
----
-97

query I rowsort
SELECT + 53 * + 46
----
2438

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT + MIN( DISTINCT - + 5 ) * + - 14
----
70

skipif mysql # not compatible
query I rowsort label-5490
SELECT + MIN ( DISTINCT - + 5 ) * + - 14
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5491
SELECT MIN( - + 89 ), - CAST( NULL AS SIGNED ) + + MAX( ALL + 7 ) AS col2
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-5491
SELECT MIN ( - + 89 ), - CAST ( NULL AS INTEGER ) + + MAX ( ALL + 7 ) AS col2
----
-89
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT - CASE - 17 WHEN 95 / + + 35 + - 28 + + 59 THEN + 74 / + CAST( + 54 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5492
SELECT - CASE - 17 WHEN 95 / + + 35 + - 28 + + 59 THEN + 74 / + CAST ( + 54 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT + COUNT( * ) * - + COUNT( * ) * 36 * - ( - 32 )
----
-1152

skipif mysql # not compatible
query I rowsort label-5493
SELECT + COUNT ( * ) * - + COUNT ( * ) * 36 * - ( - 32 )
----
-1152

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

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + 83 / - COUNT ( * )
----
-83

query II rowsort
SELECT + 99 * - 60 col2, + 29 + - - 85
----
-5940
114

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT ALL COALESCE ( - 96, + COUNT( * ) + + CASE - 71 WHEN + 65 THEN - + 3 ELSE NULL END + 68, + 62 ) + + - COUNT( * ) * 78 AS col1
----
-174

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL COALESCE ( - 96, + COUNT ( * ) + + CASE - 71 WHEN + 65 THEN - + 3 ELSE NULL END + 68, + 62 ) + + - COUNT ( * ) * 78 AS col1
----
-174

query I rowsort
SELECT DISTINCT + 10 + + + 12 + - 22 * - ( + 84 )
----
1870

onlyif mysql # aggregate syntax: 
query II rowsort label-5498
SELECT ALL - 56 + + - COUNT( * ) AS col0, - ( + 49 ) AS col2
----
-57
-49

skipif mysql # not compatible
query II rowsort label-5498
SELECT ALL - 56 + + - COUNT ( * ) AS col0, - ( + 49 ) AS col2
----
-57
-49

query I rowsort
SELECT ALL + 13 + - 61 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-5500
SELECT - + COUNT( * ) * 74, - 14 * + SUM( ALL - 85 ) col0
----
-74
1190

skipif mysql # not compatible
query II rowsort label-5500
SELECT - + COUNT ( * ) * 74, - 14 * + SUM ( ALL - 85 ) col0
----
-74
1190

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

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

query I rowsort
SELECT ALL - 22 + + 38 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT - CASE - - COUNT( * ) WHEN + ( 78 ) THEN COUNT( * ) + - 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5503
SELECT - CASE - - COUNT ( * ) WHEN + ( 78 ) THEN COUNT ( * ) + - 32 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5504
SELECT - + CASE + COUNT( * ) WHEN + + 76 THEN NULL WHEN + 45 * + 1 THEN NULL WHEN - 28 * 90 + + - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + + - 17 + + 71 THEN + + 13 WHEN COUNT( * ) THEN NULL END * - COALESCE ( 91, CASE 95 WHEN NULLIF ( 36, - ( + + 47 ) * 59 / - 45 * + + CAST( NULL AS SIGNED ) ) * + 70 THEN - 1 * - 50 - - + 41 + + 35 + 42 END ) * - 52 - + NULLIF ( ( + COUNT( - 77 ) ), 27 ) + + - 79 * + + CAST( NULL AS SIGNED ) / - CAST( - - 24 AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT - + CASE + COUNT ( * ) WHEN + + 76 THEN NULL WHEN + 45 * + 1 THEN NULL WHEN - 28 * 90 + + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + - 17 + + 71 THEN + + 13 WHEN COUNT ( * ) THEN NULL END * - COALESCE ( 91, CASE 95 WHEN NULLIF ( 36, - ( + + 47 ) * 59 / - 45 * + + CAST ( NULL AS INTEGER ) ) * + 70 THEN - 1 * - 50 - - + 41 + + 35 + 42 END ) * - 52 - + NULLIF ( ( + COUNT ( - 77 ) ), 27 ) + + - 79 * + + CAST ( NULL AS INTEGER ) / - CAST ( - - 24 AS INTEGER ) * - COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT - - MAX( + - 12 ) * + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-5506
SELECT - - MAX ( + - 12 ) * + COUNT ( * )
----
-12

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5508
SELECT ALL - + 53 - - 14 + + 1 DIV + - 18 AS col2, + NULLIF ( 11, 70 )
----
-39
11

skipif mysql # not compatible
query II rowsort label-5508
SELECT ALL - + 53 - - 14 + + 1 / + - 18 AS col2, + NULLIF ( 11, 70 )
----
-39
11

query I rowsort
SELECT - + 0 + - + 57
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5510
SELECT - - ( - + COUNT( * ) ) + + 55 + + + 28 - 58 DIV 82
----
82

skipif mysql # not compatible
query I rowsort label-5510
SELECT - - ( - + COUNT ( * ) ) + + 55 + + + 28 - 58 / 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT - COUNT( * ) * - 67 + + 20
----
87

skipif mysql # not compatible
query I rowsort label-5511
SELECT - COUNT ( * ) * - 67 + + 20
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5512
SELECT CAST( - 45 AS SIGNED ) / 13 + - + 74 + NULLIF ( - ( - COUNT( * ) ), - COUNT( * ) ) - - COUNT( * ) + - + 15 + + - COUNT( * ) + COUNT( * ) - 85 * MAX( - CASE - + 84 WHEN 61 - - 4 / - 22 THEN 79 END ) / + NULLIF ( + MIN( DISTINCT - 35 ), 45 ) * 7 * - 5 + - 65 * AVG ( DISTINCT + - 8 ) * - 81 * 3 + ( - + 56 ) - - + 86 + - + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5512
SELECT CAST ( - 45 AS INTEGER ) / 13 + - + 74 + NULLIF ( - ( - COUNT ( * ) ), - COUNT ( * ) ) - - COUNT ( * ) + - + 15 + + - COUNT ( * ) + COUNT ( * ) - 85 * MAX ( - CASE - + 84 WHEN 61 - - 4 / - 22 THEN 79 END ) / + NULLIF ( + MIN ( DISTINCT - 35 ), 45 ) * 7 * - 5 + - 65 * AVG ( DISTINCT + - 8 ) * - 81 * 3 + ( - + 56 ) - - + 86 + - + 35 AS col2
----
NULL

query I rowsort
SELECT ALL - 70 * - - 47 AS col1
----
-3290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5514
SELECT - COUNT( * ) DIV + COUNT( * ) + + CAST( - MIN( - + 55 ) AS SIGNED ) col2
----
54

skipif mysql # not compatible
query I rowsort label-5514
SELECT - COUNT ( * ) / + COUNT ( * ) + + CAST ( - MIN ( - + 55 ) AS INTEGER ) col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5515
SELECT ALL - - 57 / + CAST( NULL AS SIGNED ) AS col0, 48 + - 15
----
NULL
33

skipif mysql # not compatible
query II rowsort label-5515
SELECT ALL - - 57 / + CAST ( NULL AS INTEGER ) AS col0, 48 + - 15
----
NULL
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT ALL - - COUNT( * ) * - + 39 col2
----
-39

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL - - COUNT ( * ) * - + 39 col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT - + NULLIF ( + 67, - + 76 + + 97 * - + 1 + ( + 56 ) + - NULLIF ( 44, - SUM( DISTINCT + + 41 ) ) * 47 ) * - 45 * 65 + - - 30 AS col0
----
196005

skipif mysql # not compatible
query I rowsort label-5517
SELECT - + NULLIF ( + 67, - + 76 + + 97 * - + 1 + ( + 56 ) + - NULLIF ( 44, - SUM ( DISTINCT + + 41 ) ) * 47 ) * - 45 * 65 + - - 30 AS col0
----
196005

query I rowsort
SELECT DISTINCT - 49 * - - 28 AS col2
----
-1372

query I rowsort
SELECT ALL + 86 * + 27 col0
----
2322

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5522
SELECT + COALESCE ( - + COUNT( + 14 ), + 49, + - 5 ) * + + 34 * 87 DIV - + 5
----
591

skipif mysql # not compatible
query I rowsort label-5522
SELECT + COALESCE ( - + COUNT ( + 14 ), + 49, + - 5 ) * + + 34 * 87 / - + 5
----
591

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT DISTINCT + COUNT( * ) * 95 + - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT + COUNT ( * ) * 95 + - COUNT ( * )
----
94

query I rowsort
SELECT ALL - ( 6 ) * + + 64 + - 96
----
-480

query I rowsort
SELECT ALL 94 * - - ( - 92 )
----
-8648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5527
SELECT + CASE + + NULLIF ( - + 25, - 24 * + MAX( 57 ) + SUM( 92 ) + + + MAX( ALL + + CAST( NULL AS SIGNED ) ) * + 94 + 15 - - 51 ) WHEN 4 THEN MAX( + 78 ) WHEN - + 28 THEN NULL ELSE NULL END + - 45 + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5527
SELECT + CASE + + NULLIF ( - + 25, - 24 * + MAX ( 57 ) + SUM ( 92 ) + + + MAX ( ALL + + CAST ( NULL AS INTEGER ) ) * + 94 + 15 - - 51 ) WHEN 4 THEN MAX ( + 78 ) WHEN - + 28 THEN NULL ELSE NULL END + - 45 + 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5528
SELECT ALL + COUNT( * ) * + SUM( - + CAST( NULL AS DECIMAL ) ) + - 2 / + 11 + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL + COUNT ( * ) * + SUM ( - + CAST ( NULL AS REAL ) ) + - 2 / + 11 + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT + COUNT( + - 3 ) + - + ( + 37 )
----
-36

skipif mysql # not compatible
query I rowsort label-5529
SELECT + COUNT ( + - 3 ) + - + ( + 37 )
----
-36

query II rowsort
SELECT DISTINCT 54 col0, + 41 AS col0
----
54
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5531
SELECT - 63 / + - CASE + 31 WHEN - - COALESCE ( 77, MAX( CASE - + 71 WHEN - 95 - + 28 THEN 18 + + + 87 * + 21 END ) + - 67, ( + COUNT( * ) ) * 29 * 82 ) + - - CAST( NULL AS SIGNED ) THEN - + ( - ( + 85 ) ) WHEN + 47 * + + 76 THEN + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT - 63 / + - CASE + 31 WHEN - - COALESCE ( 77, MAX ( CASE - + 71 WHEN - 95 - + 28 THEN 18 + + + 87 * + 21 END ) + - 67, ( + COUNT ( * ) ) * 29 * 82 ) + - - CAST ( NULL AS INTEGER ) THEN - + ( - ( + 85 ) ) WHEN + 47 * + + 76 THEN + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT NULLIF ( + 11, NULLIF ( COUNT( * ), - 42 ) ) * 57 * + 92 + COUNT( * ) * - 38 AS col1
----
57646

skipif mysql # not compatible
query I rowsort label-5532
SELECT NULLIF ( + 11, NULLIF ( COUNT ( * ), - 42 ) ) * 57 * + 92 + COUNT ( * ) * - 38 AS col1
----
57646

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT CASE - COUNT( * ) WHEN - 30 THEN NULL WHEN - 62 * 10 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT CASE - COUNT ( * ) WHEN - 30 THEN NULL WHEN - 62 * 10 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( 40, + 9 + + 51 )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT ALL 89 * 16 + + 55 + + 31 * ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL 89 * 16 + + 55 + + 31 * ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT + 59 / - + COUNT ( * ) AS col2
----
-59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT + 6 * - + 42 * + SUM( DISTINCT - - 79 )
----
-19908

skipif mysql # not compatible
query I rowsort label-5538
SELECT + 6 * - + 42 * + SUM ( DISTINCT - - 79 )
----
-19908

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

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

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL + ( - - 80 ) - - COUNT ( * ) AS col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5541
SELECT DISTINCT CAST( 42 AS SIGNED ) - 82 * - - 22 AS col2
----
-1762

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT CAST ( 42 AS INTEGER ) - 82 * - - 22 AS col2
----
-1762

onlyif mysql # DIV for integer division: 
query I rowsort label-5542
SELECT DISTINCT 99 DIV + 44
----
2

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT 99 / + 44
----
2

query I rowsort
SELECT 3 * ( + 77 ) AS col2
----
231

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT DISTINCT MAX( ALL 17 ) * + 51 - - 38 + + MIN( ALL 63 )
----
968

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT MAX ( ALL 17 ) * + 51 - - 38 + + MIN ( ALL 63 )
----
968

query II rowsort
SELECT ALL - 31 AS col2, - 0
----
-31
0

query I rowsort
SELECT + 45 * + 30
----
1350

query II rowsort
SELECT 13 AS col0, + 90
----
13
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT ALL - COUNT( ALL - 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL - COUNT ( ALL - 72 )
----
-1

query I rowsort
SELECT ALL - ( - - 53 ) * + + 64 AS col1
----
-3392

onlyif mysql # DIV for integer division: 
query II rowsort label-5551
SELECT + 16, + 50 - 83 DIV + 33 AS col2
----
16
48

skipif mysql # not compatible
query II rowsort label-5551
SELECT + 16, + 50 - 83 / + 33 AS col2
----
16
48

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

query I rowsort
SELECT ( - 20 ) + - 49 * - - NULLIF ( - 51, - 61 * + 92 * + 11 ) AS col0
----
2479

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT ALL - 0 * 94 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL - 0 * 94 / 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT - 45 * - - COUNT( DISTINCT - - 15 ) * - 89 + + + 28 AS col1
----
4033

skipif mysql # not compatible
query I rowsort label-5555
SELECT - 45 * - - COUNT ( DISTINCT - - 15 ) * - 89 + + + 28 AS col1
----
4033

onlyif mysql # aggregate syntax: 
query II rowsort label-5556
SELECT ALL + 28 * + - 48 AS col1, 77 + - SUM( ALL 4 ) * - - 25
----
-1344
-23

skipif mysql # not compatible
query II rowsort label-5556
SELECT ALL + 28 * + - 48 AS col1, 77 + - SUM ( ALL 4 ) * - - 25
----
-1344
-23

query I rowsort
SELECT 39 + - ( - 61 ) + 44 AS col2
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-5558
SELECT 45 DIV - 6
----
-7

skipif mysql # not compatible
query I rowsort label-5558
SELECT 45 / - 6
----
-7

query I rowsort
SELECT DISTINCT - 55 + - - 60 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5560
SELECT ALL + CAST( NULL AS SIGNED ) + + + 75 + - + 62 + COUNT( * ) + - 27 * + 77 * 84 - 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 75 + - + 62 + COUNT ( * ) + - 27 * + 77 * 84 - 32 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5561
SELECT 38 * - + 7 * + + 68 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5561
SELECT 38 * - + 7 * + + 68 + + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 48 AS col0, 31 AS col2
----
48
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5563
SELECT ALL - COUNT( * ) AS col2, + COUNT( * ) + - 71 AS col0
----
-1
-70

skipif mysql # not compatible
query II rowsort label-5563
SELECT ALL - COUNT ( * ) AS col2, + COUNT ( * ) + - 71 AS col0
----
-1
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT DISTINCT - 10 + 42 DIV - 91 * 18
----
-10

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT - 10 + 42 / - 91 * 18
----
-10

query I rowsort
SELECT DISTINCT + 56 + + - 29 AS col0
----
27

query II rowsort
SELECT + 5 AS col1, + 18 AS col0
----
5
18

query I rowsort
SELECT ALL + 38 + + 68 AS col1
----
106

query II rowsort
SELECT - 81 AS col2, 0 AS col2
----
-81
0

query I rowsort
SELECT DISTINCT 25 - 62
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5570
SELECT ALL - ( - - CASE + + 27 WHEN 98 THEN NULL ELSE + + COUNT( * ) * - 62 DIV - COUNT( * ) END ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL - ( - - CASE + + 27 WHEN 98 THEN NULL ELSE + + COUNT ( * ) * - 62 / - COUNT ( * ) END ) AS col0
----
-62

query I rowsort
SELECT ALL - + ( + 22 ) * + 23 + + 91 AS col2
----
-415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT - CAST( NULL AS SIGNED ) - + NULLIF ( + ( - CAST( NULL AS SIGNED ) ), - - 39 * - CAST( 3 AS SIGNED ) - - - 27 * 43 * + - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT - CAST ( NULL AS INTEGER ) - + NULLIF ( + ( - CAST ( NULL AS INTEGER ) ), - - 39 * - CAST ( 3 AS INTEGER ) - - - 27 * 43 * + - 29 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT - COUNT( DISTINCT - + 66 ) + + 49 * + - 65
----
-3186

skipif mysql # not compatible
query I rowsort label-5574
SELECT - COUNT ( DISTINCT - + 66 ) + + 49 * + - 65
----
-3186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5575
SELECT ALL COUNT( * ) - - + 56 * + 47 * + 72 / CAST( NULL AS SIGNED ) / + 12 * + 16 + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL COUNT ( * ) - - + 56 * + 47 * + 72 / CAST ( NULL AS INTEGER ) / + 12 * + 16 + + 5
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5578
SELECT + 93 + 87 DIV + 11 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-5578
SELECT + 93 + 87 / + 11 AS col1
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5579
SELECT + COUNT( ALL 7 ) * - 42 DIV - 32 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5579
SELECT + COUNT ( ALL 7 ) * - 42 / - 32 AS col1
----
1

query I rowsort
SELECT ( + 6 ) + + 24
----
30

query II rowsort
SELECT ALL - 77 col1, 86 AS col1
----
-77
86

query II rowsort
SELECT ALL + 64, + 34 AS col2
----
64
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5583
SELECT ALL 17 DIV - - NULLIF ( - + 61, 32 )
----
0

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL 17 / - - NULLIF ( - + 61, 32 )
----
0

query I rowsort
SELECT COALESCE ( + + 73, + 13, + 35 - 62 * + - 1 ) + 39
----
112

query II rowsort
SELECT ALL 48 * 69, 39 * + 55 AS col1
----
3312
2145

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT 46 * + - 45 * + COUNT( * )
----
-2070

skipif mysql # not compatible
query I rowsort label-5586
SELECT 46 * + - 45 * + COUNT ( * )
----
-2070

onlyif mysql # DIV for integer division: 
query I rowsort label-5587
SELECT - 41 DIV + + 19 + - 41 - - 56
----
13

skipif mysql # not compatible
query I rowsort label-5587
SELECT - 41 / + + 19 + - 41 - - 56
----
13

query I rowsort
SELECT ALL - NULLIF ( + 80, + 58 * + 95 ) * + 40 + + 47 AS col2
----
-3153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5589
SELECT DISTINCT - 74 * - + COUNT( * ) + + 88 / - ( + CAST( NULL AS SIGNED ) ) * + 6 - MIN( ALL 63 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT - 74 * - + COUNT ( * ) + + 88 / - ( + CAST ( NULL AS INTEGER ) ) * + 6 - MIN ( ALL 63 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5590
SELECT DISTINCT COUNT( * ) * - 58 * - CAST( COUNT( * ) AS SIGNED ) + + 24 - + + 32 * - 60 * - + 27 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT COUNT ( * ) * - 58 * - CAST ( COUNT ( * ) AS INTEGER ) + + 24 - + + 32 * - 60 * - + 27 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 47 * 84 AS col1
----
3948

query I rowsort
SELECT 48 * - ( - 23 ) * - 59
----
-65136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5593
SELECT ALL COALESCE ( 58, - - 87 - - 50 + 75 * 2, - + COUNT( * ) DIV 8 + - COUNT( - 1 ) * + 93 ) * + - COUNT( * ) - - + 98 + 10
----
50

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL COALESCE ( 58, - - 87 - - 50 + 75 * 2, - + COUNT ( * ) / 8 + - COUNT ( - 1 ) * + 93 ) * + - COUNT ( * ) - - + 98 + 10
----
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT COUNT( 61 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5595
SELECT COUNT ( 61 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5596
SELECT COUNT( 44 ), - 2 + + NULLIF ( CASE 27 WHEN + 97 THEN - NULLIF ( - + 36, + ( 99 ) ) - + - 50 + + 49 * - - 83 + + - 42 * 54 WHEN - 49 THEN - 94 * - 21 ELSE - 20 END, CASE + ( 71 ) WHEN + 48 + + ( + + 47 ) * - COALESCE ( + 14, ( - 22 ) ) THEN - 16 - - COUNT( * ) WHEN - 53 / - + 9 + + 84 * + 93 - + 30 / 12 THEN 67 * - + 28 ELSE - - 57 END ) * CASE COUNT( * ) WHEN - SUM( 11 ) + 99 THEN 4 * - 34 WHEN 44 * - ( 29 ) THEN 38 ELSE NULL END + + COUNT( * ) * + 74 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5596
SELECT COUNT ( 44 ), - 2 + + NULLIF ( CASE 27 WHEN + 97 THEN - NULLIF ( - + 36, + ( 99 ) ) - + - 50 + + 49 * - - 83 + + - 42 * 54 WHEN - 49 THEN - 94 * - 21 ELSE - 20 END, CASE + ( 71 ) WHEN + 48 + + ( + + 47 ) * - COALESCE ( + 14, ( - 22 ) ) THEN - 16 - - COUNT ( * ) WHEN - 53 / - + 9 + + 84 * + 93 - + 30 / 12 THEN 67 * - + 28 ELSE - - 57 END ) * CASE COUNT ( * ) WHEN - SUM ( 11 ) + 99 THEN 4 * - 34 WHEN 44 * - ( 29 ) THEN 38 ELSE NULL END + + COUNT ( * ) * + 74 AS col2
----
1
NULL

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

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

query I rowsort
SELECT ALL 52 * - 15 + + + 65 + - 80 AS col1
----
-795

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

skipif mysql # not compatible
query I rowsort label-5599
SELECT 61 * COUNT ( * ) + - + 4 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT DISTINCT - 81 * - 37 - + 60 * + - COUNT( * )
----
3057

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT - 81 * - 37 - + 60 * + - COUNT ( * )
----
3057

query II rowsort
SELECT ALL 44 - + 84 AS col2, + 92
----
-40
92

query I rowsort
SELECT DISTINCT + + 93 * + 39
----
3627

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT ALL + MIN( DISTINCT - 70 ) * 47
----
-3290

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL + MIN ( DISTINCT - 70 ) * 47
----
-3290

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

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

query I rowsort
SELECT 13 * 2 * 96 * + 70 + 12 AS col1
----
174732

query I rowsort
SELECT + + 38 + + - 46 + + 35
----
27

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

skipif mysql # not compatible
query I rowsort label-5607
SELECT - ( + MAX ( + - 18 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT - + SUM( DISTINCT - - 67 ) * - 82 AS col0
----
5494

skipif mysql # not compatible
query I rowsort label-5608
SELECT - + SUM ( DISTINCT - - 67 ) * - 82 AS col0
----
5494

onlyif mysql # aggregate syntax: 
query II rowsort label-5609
SELECT + - SUM( - 43 ) * 91, + 27 AS col2
----
3913
27

skipif mysql # not compatible
query II rowsort label-5609
SELECT + - SUM ( - 43 ) * 91, + 27 AS col2
----
3913
27

query II rowsort
SELECT ALL + ( 35 ) col2, 93 * 80 AS col2
----
35
7440

onlyif mysql # aggregate syntax: 
query II rowsort label-5611
SELECT DISTINCT + COUNT( * ) * 46 AS col1, 41 AS col1
----
46
41

skipif mysql # not compatible
query II rowsort label-5611
SELECT DISTINCT + COUNT ( * ) * 46 AS col1, 41 AS col1
----
46
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT DISTINCT COALESCE ( + COUNT( * ), - 69, + 74, 96 * 78 + COUNT( * ) + 25 )
----
1

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT COALESCE ( + COUNT ( * ), - 69, + 74, 96 * 78 + COUNT ( * ) + 25 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5613
SELECT ALL 57 * + CAST( - + 49 AS SIGNED ) AS col1
----
-2793

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL 57 * + CAST ( - + 49 AS INTEGER ) AS col1
----
-2793

query I rowsort
SELECT DISTINCT + 64 * 98 * 7
----
43904

onlyif mysql # aggregate syntax: 
query II rowsort label-5615
SELECT - + COUNT( * ) * + 68 * - - 63 AS col2, COUNT( * ) * + 35 AS col2
----
-4284
35

skipif mysql # not compatible
query II rowsort label-5615
SELECT - + COUNT ( * ) * + 68 * - - 63 AS col2, COUNT ( * ) * + 35 AS col2
----
-4284
35

query I rowsort
SELECT + 43 * 24 * 41 AS col2
----
42312

query II rowsort
SELECT 38 AS col1, + 74 AS col1
----
38
74

query II rowsort
SELECT DISTINCT 65 col1, 96 AS col0
----
65
96

query I rowsort
SELECT DISTINCT 42 + - + 27 AS col1
----
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT ALL + 0 * - NULLIF ( + 58, COUNT( * ) + + 76 * + + 94 ) * + 88
----
0

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL + 0 * - NULLIF ( + 58, COUNT ( * ) + + 76 * + + 94 ) * + 88
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5622
SELECT - MAX( + + ( - CAST( NULL AS SIGNED ) ) ) AS col2, - 14 col2
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-5622
SELECT - MAX ( + + ( - CAST ( NULL AS INTEGER ) ) ) AS col2, - 14 col2
----
NULL
-14

query I rowsort
SELECT DISTINCT 36 + - NULLIF ( + 21, + + 84 ) * + 33 AS col1
----
-657

query II rowsort
SELECT DISTINCT 76 AS col2, + 68 AS col1
----
76
68

query II rowsort
SELECT ALL 27 AS col1, - CASE WHEN NULL <> 70 THEN - 2 END
----
27
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5626
SELECT 74 DIV + 70 + - 26 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-5626
SELECT 74 / + 70 + - 26 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT COUNT( * ) * + + 12 - - - 64 * - 28 AS col0
----
1804

skipif mysql # not compatible
query I rowsort label-5627
SELECT COUNT ( * ) * + + 12 - - - 64 * - 28 AS col0
----
1804

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT DISTINCT ( + 9 ) * - 15 * - 8 * + MIN( DISTINCT 57 ) + 89 + + 1 AS col1
----
61650

skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT ( + 9 ) * - 15 * - 8 * + MIN ( DISTINCT 57 ) + 89 + + 1 AS col1
----
61650

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

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

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

query I rowsort
SELECT + 17 * + 24
----
408

query I rowsort
SELECT ALL 28 * - COALESCE ( - 4, - 14 ) * + - 54 AS col0
----
-6048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5633
SELECT ALL NULLIF ( - 38, + 11 * - COUNT( * ) * - + 67 ) * - 33 - + + 38 DIV - 95, 41 AS col0, CAST( - 14 AS SIGNED ) * 31 * + 48 * - - 69 * + 63 AS col1
----
1254
41
-90556704

skipif mysql # not compatible
query III rowsort label-5633
SELECT ALL NULLIF ( - 38, + 11 * - COUNT ( * ) * - + 67 ) * - 33 - + + 38 / - 95, 41 AS col0, CAST ( - 14 AS INTEGER ) * 31 * + 48 * - - 69 * + 63 AS col1
----
1254
41
-90556704

query I rowsort
SELECT - - 59 * 29
----
1711

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT SUM( ALL - 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5635
SELECT SUM ( ALL - 36 ) AS col1
----
-36

query II rowsort
SELECT + 36 * - - 71 + + + 72 AS col0, - 64 AS col0
----
2628
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-5637
SELECT - COUNT( * ) AS col0, - 8
----
-1
-8

skipif mysql # not compatible
query II rowsort label-5637
SELECT - COUNT ( * ) AS col0, - 8
----
-1
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5638
SELECT + MIN( DISTINCT + 14 ) - - + 12 + - 41 DIV + 48
----
26

skipif mysql # not compatible
query I rowsort label-5638
SELECT + MIN ( DISTINCT + 14 ) - - + 12 + - 41 / + 48
----
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT ALL + + 15 * COUNT( + 54 )
----
15

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL + + 15 * COUNT ( + 54 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT - COUNT( + 81 ) - - 60
----
59

skipif mysql # not compatible
query I rowsort label-5641
SELECT - COUNT ( + 81 ) - - 60
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5642
SELECT ALL CAST( NULL AS DECIMAL ) / + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL CAST ( NULL AS REAL ) / + 58
----
NULL

query II rowsort
SELECT - - 81 AS col1, + 70 col1
----
81
70

query I rowsort
SELECT ALL - + 2 * + 25 AS col2
----
-50

query I rowsort
SELECT - 16 * - 20 * - - 37 AS col2
----
11840

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT - + 40 - CASE - COUNT( * ) WHEN 40 THEN - - ( + 96 ) WHEN 24 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5647
SELECT - + 40 - CASE - COUNT ( * ) WHEN 40 THEN - - ( + 96 ) WHEN 24 THEN NULL END
----
NULL

query I rowsort
SELECT - - 71 + + 2
----
73

query I rowsort
SELECT - - 66 - + 59
----
7

query I rowsort
SELECT ALL - 60 + ( + ( 30 ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT - - 98 + - + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT - - 98 + - + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT - 31 + + - ( COUNT( * ) ) - - - 51 * + 42 AS col0
----
-2174

skipif mysql # not compatible
query I rowsort label-5652
SELECT - 31 + + - ( COUNT ( * ) ) - - - 51 * + 42 AS col0
----
-2174

onlyif mysql # aggregate syntax: 
query II rowsort label-5653
SELECT - CASE - 7 WHEN + SUM( - 58 ) * - 5 THEN - - 50 - - COALESCE ( + 55, ( 18 ) * 44 ) WHEN ( 44 ) / - 43 THEN NULL END, - 1 + 7 AS col1
----
NULL
6

skipif mysql # not compatible
query II rowsort label-5653
SELECT - CASE - 7 WHEN + SUM ( - 58 ) * - 5 THEN - - 50 - - COALESCE ( + 55, ( 18 ) * 44 ) WHEN ( 44 ) / - 43 THEN NULL END, - 1 + 7 AS col1
----
NULL
6

query I rowsort
SELECT ALL - 41 + - - COALESCE ( 97, + 88, 56 )
----
56

query II rowsort
SELECT - 7 + 45 AS col2, 40
----
38
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ALL - 69 + + COUNT( * ) col2
----
-68

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL - 69 + + COUNT ( * ) col2
----
-68

query I rowsort
SELECT - 83 + + 8
----
-75

query I rowsort
SELECT - 59 + 15 col1
----
-44

query I rowsort
SELECT - 47 * + COALESCE ( + 20, - 0 ) * 21 AS col1
----
-19740

query I rowsort
SELECT ALL + 69 * - + 15
----
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT + 29 + + + 56 * + - COUNT( * ) + - 96 + + - COUNT( * ) AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-5661
SELECT + 29 + + + 56 * + - COUNT ( * ) + - 96 + + - COUNT ( * ) AS col1
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5662
SELECT ALL - 6 - - + ( + - COUNT( * ) ) + + 11 DIV + 6
----
-6

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL - 6 - - + ( + - COUNT ( * ) ) + + 11 / + 6
----
-6

query I rowsort
SELECT + 94 / CASE + + 45 WHEN + 92 THEN NULL WHEN - NULLIF ( + 52, + 10 * 55 ) * + 0 + + - 87 + - 2 * - - 67 THEN + - 94 END + + 74 + - 19 * 70 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5665
SELECT DISTINCT COUNT( * ) - 26 - - - COALESCE ( + + 83, - - 38 + + - 15 - + ( - + 69 ), + 25, 43 ) * 31 DIV + - 86 AS col1, - ( - 35 ) * - - 37 - + 38 + - 42
----
4
1215

skipif mysql # not compatible
query II rowsort label-5665
SELECT DISTINCT COUNT ( * ) - 26 - - - COALESCE ( + + 83, - - 38 + + - 15 - + ( - + 69 ), + 25, 43 ) * 31 / + - 86 AS col1, - ( - 35 ) * - - 37 - + 38 + - 42
----
4
1215

query II rowsort
SELECT 70 + - 97 AS col0, 2
----
-27
2

query I rowsort
SELECT 80 * + 26
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT ALL - COALESCE ( + - SUM( ALL + - 38 ), - 76 + - 22 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL - COALESCE ( + - SUM ( ALL + - 38 ), - 76 + - 22 ) AS col1
----
-38

query I rowsort
SELECT 34 + - 90
----
-56

query I rowsort
SELECT - 92 * - - 42 - 75
----
-3939

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

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL + 82 / + - COUNT ( * ) col1
----
-82

query II rowsort
SELECT - 23 * + 96 AS col2, 91 + - - 98 col2
----
-2208
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5673
SELECT 26 * + CAST( 21 AS SIGNED ) AS col1
----
546

skipif mysql # not compatible
query I rowsort label-5673
SELECT 26 * + CAST ( 21 AS INTEGER ) AS col1
----
546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5674
SELECT - COALESCE ( + + 29, - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + + COUNT( * ) ) * + 84 * - COUNT( * )
----
2436

skipif mysql # not compatible
query I rowsort label-5674
SELECT - COALESCE ( + + 29, - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + COUNT ( * ) ) * + 84 * - COUNT ( * )
----
2436

query I rowsort
SELECT ALL 76 * + 40 + 72 AS col2
----
3112

query I rowsort
SELECT - 64 - - 29 + - 58 col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT ALL COUNT( * ) * 41 * + ( + 61 ) AS col2
----
2501

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL COUNT ( * ) * 41 * + ( + 61 ) AS col2
----
2501

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT DISTINCT ( - 99 ) + + 10 + - + 52 + COUNT( 2 ) col2
----
-140

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT ( - 99 ) + + 10 + - + 52 + COUNT ( 2 ) col2
----
-140

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5679
SELECT DISTINCT 52 * - 86 / + MAX( DISTINCT + + 72 ) + ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT 52 * - 86 / + MAX ( DISTINCT + + 72 ) + ( CAST ( NULL AS REAL ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT + 8 + COUNT ( * ) AS col0
----
9

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

query I rowsort
SELECT + 39 * + - 30 + + ( + + 62 )
----
-1108

query I rowsort
SELECT - 91 * 93 + - 11 + + ( + 17 )
----
-8457

query I rowsort
SELECT 64 + 83
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT ALL - 14 + COUNT( * ) * - 49 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL - 14 + COUNT ( * ) * - 49 AS col1
----
-63

query I rowsort
SELECT 52 * - 66 - + 79 AS col2
----
-3511

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5688
SELECT 39 DIV - - 28
----
1

skipif mysql # not compatible
query I rowsort label-5688
SELECT 39 / - - 28
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5689
SELECT 45 * - COUNT( * ) * + 95 AS col2, 55 * 12 AS col1
----
-4275
660

skipif mysql # not compatible
query II rowsort label-5689
SELECT 45 * - COUNT ( * ) * + 95 AS col2, 55 * 12 AS col1
----
-4275
660

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

skipif mysql # not compatible
query I rowsort label-5690
SELECT DISTINCT 7 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 24 - 8 + 44 AS col2
----
60

query I rowsort
SELECT 58 * 57
----
3306

query I rowsort
SELECT 29 - + 51
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT 35 * - + COUNT( * ) * 33 AS col1
----
-1155

skipif mysql # not compatible
query I rowsort label-5694
SELECT 35 * - + COUNT ( * ) * 33 AS col1
----
-1155

query I rowsort
SELECT 45 * - 78 AS col0
----
-3510

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5696
SELECT 64 - + ( + CASE + 48 WHEN ( - 34 ) THEN + + 52 ELSE - - CAST( NULL AS DECIMAL ) END ), + 94 AS col1
----
NULL
94

skipif mysql # not compatible
query II rowsort label-5696
SELECT 64 - + ( + CASE + 48 WHEN ( - 34 ) THEN + + 52 ELSE - - CAST ( NULL AS REAL ) END ), + 94 AS col1
----
NULL
94

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5698
SELECT 89 * + - MIN( DISTINCT + 64 ), 43 + - CAST( + - CASE + ( - 76 ) WHEN - COUNT( * ) - - 46 THEN - + 55 ELSE COUNT( * ) + ( CAST( NULL AS SIGNED ) ) * - + 42 END AS SIGNED ) + MAX( - 96 ) - - 31 AS col2
----
-5696
NULL

skipif mysql # not compatible
query II rowsort label-5698
SELECT 89 * + - MIN ( DISTINCT + 64 ), 43 + - CAST ( + - CASE + ( - 76 ) WHEN - COUNT ( * ) - - 46 THEN - + 55 ELSE COUNT ( * ) + ( CAST ( NULL AS INTEGER ) ) * - + 42 END AS INTEGER ) + MAX ( - 96 ) - - 31 AS col2
----
-5696
NULL

query I rowsort
SELECT 60 * - - 30
----
1800

query I rowsort
SELECT 63 + - 13
----
50

query I rowsort
SELECT + 8 * + COALESCE ( - - 59, - - 37 + 3 ) - + 29 + 70 AS col1
----
513

query I rowsort
SELECT ALL - NULLIF ( - 9, - - ( + 96 ) + + 83 )
----
9

query I rowsort
SELECT DISTINCT - 21 * + 53 AS col2
----
-1113

onlyif mysql # DIV for integer division: 
query I rowsort label-5704
SELECT 48 DIV 82 - 28 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-5704
SELECT 48 / 82 - 28 AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5705
SELECT 79 DIV COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5705
SELECT 79 / COUNT ( * ) AS col1
----
79

query I rowsort
SELECT 15 * 23
----
345

query I rowsort
SELECT ALL - 3 + + 19
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL - ( + MIN( ALL 51 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL - ( + MIN ( ALL 51 ) )
----
-51

query I rowsort
SELECT ALL - NULLIF ( - 8, ( 85 ) * 96 + 95 ) AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5710
SELECT CAST( NULL AS SIGNED ) / - NULLIF ( - CASE COUNT( * ) WHEN - 18 * ( 66 ) THEN 63 + - 86 WHEN - 35 * COUNT( * ) THEN NULL END, + 42 ) + - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5710
SELECT CAST ( NULL AS INTEGER ) / - NULLIF ( - CASE COUNT ( * ) WHEN - 18 * ( 66 ) THEN 63 + - 86 WHEN - 35 * COUNT ( * ) THEN NULL END, + 42 ) + - 54 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 58 + 94
----
152

query I rowsort
SELECT ALL - 3 + - 90 AS col2
----
-93

query I rowsort
SELECT DISTINCT 27 + 37 AS col2
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5714
SELECT ALL ( 26 ) + + 78 DIV + 82
----
26

skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL ( 26 ) + + 78 / + 82
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5715
SELECT DISTINCT - CAST( 11 AS SIGNED ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT - CAST ( 11 AS INTEGER ) AS col0
----
-11

query I rowsort
SELECT ( 80 ) * + 14 + + ( - 63 ) AS col0
----
1057

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

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

query I rowsort
SELECT DISTINCT 73 + + 58 * 86 AS col0
----
5061

query I rowsort
SELECT DISTINCT 91 + + 26 * 69
----
1885

query I rowsort
SELECT 20 - - 38
----
58

query I rowsort
SELECT 29 + + CASE - 54 WHEN - 60 THEN 77 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT DISTINCT 19 * - COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT 19 * - COUNT ( * ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT DISTINCT 31 * - MIN( 54 )
----
-1674

skipif mysql # not compatible
query I rowsort label-5723
SELECT DISTINCT 31 * - MIN ( 54 )
----
-1674

query I rowsort
SELECT ALL 72 - - 68 AS col1
----
140

query I rowsort
SELECT NULLIF ( 86, + 52 * + 12 ) * 31 - 66 * - 5
----
2996

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT DISTINCT 83 * - COUNT( DISTINCT ( 62 ) * - 88 )
----
-83

skipif mysql # not compatible
query I rowsort label-5726
SELECT DISTINCT 83 * - COUNT ( DISTINCT ( 62 ) * - 88 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT COUNT( * ) + + 89 * 20
----
1781

skipif mysql # not compatible
query I rowsort label-5727
SELECT COUNT ( * ) + + 89 * 20
----
1781

query I rowsort
SELECT ( 72 ) - 77
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT 38 + MIN( DISTINCT + 94 )
----
132

skipif mysql # not compatible
query I rowsort label-5729
SELECT 38 + MIN ( DISTINCT + 94 )
----
132

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

skipif mysql # not compatible
query I rowsort label-5730
SELECT - 30 + COUNT ( * ) * 73 AS col1
----
43

query I rowsort
SELECT + 41 * 69 AS col0
----
2829

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT + COUNT( * ) + - CASE 71 WHEN COUNT( * ) THEN + 80 WHEN - 14 + 38 THEN - ( + 24 ) ELSE 58 END AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-5732
SELECT + COUNT ( * ) + - CASE 71 WHEN COUNT ( * ) THEN + 80 WHEN - 14 + 38 THEN - ( + 24 ) ELSE 58 END AS col0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5733
SELECT + 94 + CAST( + 2 + CAST( - 27 AS SIGNED ) AS SIGNED ) * 66
----
-1556

skipif mysql # not compatible
query I rowsort label-5733
SELECT + 94 + CAST ( + 2 + CAST ( - 27 AS INTEGER ) AS INTEGER ) * 66
----
-1556

query I rowsort
SELECT ALL - 6 * 42 col2
----
-252

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

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

query I rowsort
SELECT + ( 88 ) + - 1
----
87

query I rowsort
SELECT ALL 70 * 28
----
1960

query I rowsort
SELECT ALL + 43 * 22
----
946

query I rowsort
SELECT + 52 * 17 AS col2
----
884

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5741
SELECT - 34 DIV ( 93 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5741
SELECT - 34 / ( 93 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT ALL + 30 * + 39 + - MAX( ( 91 ) )
----
1079

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL + 30 * + 39 + - MAX ( ( 91 ) )
----
1079

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT DISTINCT - + ( - MAX( 69 ) ) * - 90 + 37 * ( + 67 )
----
-3731

skipif mysql # not compatible
query I rowsort label-5743
SELECT DISTINCT - + ( - MAX ( 69 ) ) * - 90 + 37 * ( + 67 )
----
-3731

query I rowsort
SELECT - 41 + - 99 AS col2
----
-140

query I rowsort
SELECT ALL 92 * 69 + 46
----
6394

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT DISTINCT + COALESCE ( - 52, - COALESCE ( - COUNT( * ), COUNT( ALL + 41 ), 40 ) + - 86, + MAX( + 79 ) - 23 ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT + COALESCE ( - 52, - COALESCE ( - COUNT ( * ), COUNT ( ALL + 41 ), 40 ) + - 86, + MAX ( + 79 ) - 23 ) col1
----
-52

query I rowsort
SELECT ALL + - ( 13 ) * - 73 + 18 * 30 col2
----
1489

query I rowsort
SELECT ALL - + 36 * + 98 + 54
----
-3474

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

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

query I rowsort
SELECT - 82 * - 37 AS col2
----
3034

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT - + CASE + 62 WHEN + 46 THEN 34 * + 80 WHEN - 56 + COUNT( + 79 ) THEN NULL END + - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT - + CASE + 62 WHEN + 46 THEN 34 * + 80 WHEN - 56 + COUNT ( + 79 ) THEN NULL END + - 43 AS col1
----
NULL

query I rowsort
SELECT ALL + - 82 * 25 + 47 * + 93
----
2321

query I rowsort
SELECT + COALESCE ( - 91, 62 * 49 ) AS col2
----
-91

query I rowsort
SELECT + - 78 + - 38
----
-116

query I rowsort
SELECT ALL - + 83 * 99 + 87
----
-8130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5757
SELECT - - 78 * + 60 + + 51 * CAST( - 4 AS SIGNED ) AS col1
----
4476

skipif mysql # not compatible
query I rowsort label-5757
SELECT - - 78 * + 60 + + 51 * CAST ( - 4 AS INTEGER ) AS col1
----
4476

query I rowsort
SELECT - + 9 * 79
----
-711

query I rowsort
SELECT ALL - - 37 * + 63
----
2331

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT ALL - COUNT( ALL + 60 ) * 41 - 8
----
-49

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL - COUNT ( ALL + 60 ) * 41 - 8
----
-49

query I rowsort
SELECT - 85 * 76 col2
----
-6460

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT ALL 24 DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL 24 / 54
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5765
SELECT DISTINCT + CASE - 7 WHEN 50 THEN 19 WHEN - CAST( NULL AS SIGNED ) THEN 48 + NULLIF ( 1 + - 3, + 66 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT + CASE - 7 WHEN 50 THEN 19 WHEN - CAST ( NULL AS INTEGER ) THEN 48 + NULLIF ( 1 + - 3, + 66 ) END
----
NULL

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

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

query I rowsort
SELECT - 24 * + - 54 * 0
----
0

query I rowsort
SELECT + NULLIF ( - 39, - 37 * - 46 + 5 ) + 54
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5769
SELECT ALL 36 * 77 DIV + SUM( 50 * 68 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL 36 * 77 / + SUM ( 50 * 68 ) AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-5770
SELECT - COUNT ( * ) / + 77 * CAST ( 60 AS INTEGER )
----
0

query I rowsort
SELECT + 6 + 90 * - 91
----
-8184

query I rowsort
SELECT ALL 12 * - 70 AS col0
----
-840

query I rowsort
SELECT DISTINCT 30 * - 73 AS col2
----
-2190

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

query I rowsort
SELECT ALL 65 * ( 17 ) AS col0
----
1105

query I rowsort
SELECT ALL - 47 * + 93
----
-4371

query I rowsort
SELECT ALL 29 + - 40 AS col0
----
-11

query I rowsort
SELECT + 34 + + - 34 * - 13 col1
----
476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5779
SELECT + SUM( DISTINCT + - 47 ) DIV - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-5779
SELECT + SUM ( DISTINCT + - 47 ) / - COUNT ( * )
----
47

query I rowsort
SELECT DISTINCT 64 + + - 37 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL NULLIF ( + 96, ( 6 ) ) + - ( CASE - 53 WHEN - COUNT( * ) * 20 THEN + 29 * - COUNT( * ) ELSE NULL END ) * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL NULLIF ( + 96, ( 6 ) ) + - ( CASE - 53 WHEN - COUNT ( * ) * 20 THEN + 29 * - COUNT ( * ) ELSE NULL END ) * + 12
----
NULL

query I rowsort
SELECT - 93 * ( 4 ) * 64 col2
----
-23808

onlyif mysql # DIV for integer division: 
query I rowsort label-5783
SELECT ALL 99 + 3 DIV 73 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL 99 + 3 / 73 AS col0
----
99

query I rowsort
SELECT + NULLIF ( - - 58, 76 ) - + 0
----
58

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

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

query I rowsort
SELECT DISTINCT - CASE + 32 WHEN 70 THEN - 73 END + COALESCE ( + 46 + - 78, 37 * + 27 )
----
NULL

query I rowsort
SELECT DISTINCT + - COALESCE ( + 44, - 31 ) + + 97
----
53

query I rowsort
SELECT ALL 0 + + - 30 + 60 * 22 AS col0
----
1290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5789
SELECT DISTINCT - 32 DIV + COUNT( * ) + - MIN( 63 ) * + 17 col2
----
-1103

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT - 32 / + COUNT ( * ) + - MIN ( 63 ) * + 17 col2
----
-1103

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT DISTINCT + CASE 79 WHEN 91 * - 79 + 37 THEN + COUNT( * ) WHEN COUNT( * ) + - ( AVG ( 64 ) ) / - COUNT( * ) THEN NULL END / 10 + ( 53 + + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT + CASE 79 WHEN 91 * - 79 + 37 THEN + COUNT ( * ) WHEN COUNT ( * ) + - ( AVG ( 64 ) ) / - COUNT ( * ) THEN NULL END / 10 + ( 53 + + 20 )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5792
SELECT ALL + - 40 DIV + + 83 + 55 - 90
----
-35

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL + - 40 / + + 83 + 55 - 90
----
-35

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5794
SELECT DISTINCT + 74 * CASE COUNT( * ) WHEN CAST( NULL AS DECIMAL ) THEN + CAST( NULL AS SIGNED ) END + - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT + 74 * CASE COUNT ( * ) WHEN CAST ( NULL AS REAL ) THEN + CAST ( NULL AS INTEGER ) END + - 62 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5795
SELECT DISTINCT - 60 DIV - 80 - - 93 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT - 60 / - 80 - - 93 AS col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5796
SELECT DISTINCT COUNT( DISTINCT + + ( - 95 ) ) DIV + 21 - 88 * 40 AS col2
----
-3520

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT COUNT ( DISTINCT + + ( - 95 ) ) / + 21 - 88 * 40 AS col2
----
-3520

query I rowsort
SELECT - 1 * + 52 + 20 * + 89 AS col2
----
1728

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5798
SELECT + 5 AS col1, CAST( NULL AS SIGNED ) AS col2
----
5
NULL

skipif mysql # not compatible
query II rowsort label-5798
SELECT + 5 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT 51 * + + 78 + - COALESCE ( SUM( + 53 ), - 68 )
----
3925

skipif mysql # not compatible
query I rowsort label-5799
SELECT 51 * + + 78 + - COALESCE ( SUM ( + 53 ), - 68 )
----
3925

onlyif mysql # DIV for integer division: 
query I rowsort label-5800
SELECT 42 * 80 * 41 DIV + 6 - + 0 AS col0
----
22960

skipif mysql # not compatible
query I rowsort label-5800
SELECT 42 * 80 * 41 / + 6 - + 0 AS col0
----
22960

query I rowsort
SELECT 48 * 66 AS col0
----
3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5802
SELECT AVG ( ALL + 2 ) * - CAST( NULL AS SIGNED ) * 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5802
SELECT AVG ( ALL + 2 ) * - CAST ( NULL AS INTEGER ) * 73 AS col1
----
NULL

query I rowsort
SELECT 54 - 32 + + 45 AS col1
----
67

query II rowsort
SELECT + 16 AS col2, + ( - - 77 ) AS col1
----
16
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT DISTINCT + COUNT( * ) * - - 1 * + - NULLIF ( + 2, - 0 + + 77 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT + COUNT ( * ) * - - 1 * + - NULLIF ( + 2, - 0 + + 77 ) AS col1
----
-2

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

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

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

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

query I rowsort
SELECT ( - + 97 ) * - - 49 + + 68 - + 44 AS col1
----
-4729

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5809
SELECT MAX( + - 3 ) DIV - ( + 52 )
----
0

skipif mysql # not compatible
query I rowsort label-5809
SELECT MAX ( + - 3 ) / - ( + 52 )
----
0

query I rowsort
SELECT ALL + 89 + - 46 * 92 col2
----
-4143

query I rowsort
SELECT 63 + + - COALESCE ( 90, - 64 )
----
-27

query I rowsort
SELECT 73 * - 31 col2
----
-2263

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

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

query II rowsort
SELECT 35 col0, 38 * - 60 + - 34 * + 44 col1
----
35
-3776

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT ( - COUNT( * ) ) + - 7
----
-8

skipif mysql # not compatible
query I rowsort label-5815
SELECT ( - COUNT ( * ) ) + - 7
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT ALL COUNT( 48 ) + 83
----
84

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL COUNT ( 48 ) + 83
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5817
SELECT DISTINCT + + 87 * - CAST( - + 76 AS SIGNED ) col1
----
6612

skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT + + 87 * - CAST ( - + 76 AS INTEGER ) col1
----
6612

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT MAX( 43 ) + 78
----
121

skipif mysql # not compatible
query I rowsort label-5818
SELECT MAX ( 43 ) + 78
----
121

query I rowsort
SELECT 16 * 87 * 17
----
23664

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

skipif mysql # not compatible
query I rowsort label-5820
SELECT - ( COUNT ( ( 60 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT + MAX( DISTINCT + + 65 ) + ( COUNT( * ) ) + 23 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-5821
SELECT + MAX ( DISTINCT + + 65 ) + ( COUNT ( * ) ) + 23 AS col2
----
89

query I rowsort
SELECT + 64 + + + 46 * - 35 AS col1
----
-1546

onlyif mysql # DIV for integer division: 
query I rowsort label-5823
SELECT ALL 34 - + 15 + - 69 + 95 DIV 76 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL 34 - + 15 + - 69 + 95 / 76 AS col2
----
-49

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

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

query I rowsort
SELECT COALESCE ( - - 10, COALESCE ( 83, + 83 ) + 16 ) col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5826
SELECT ALL - + 56 AS col0, - 82 DIV NULLIF ( - COUNT( * ), 46 )
----
-56
82

skipif mysql # not compatible
query II rowsort label-5826
SELECT ALL - + 56 AS col0, - 82 / NULLIF ( - COUNT ( * ), 46 )
----
-56
82

query I rowsort
SELECT 72 + + 12 AS col2
----
84

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

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

query I rowsort
SELECT + 40 + CASE 79 WHEN + 5 - 55 * 97 THEN 11 * 46 ELSE 7 END * 92 AS col1
----
684

query I rowsort
SELECT DISTINCT + 65 * 22 + - 5 AS col1
----
1425

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT + 67 DIV - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5831
SELECT + 67 / - 73 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT + 53 * + - COUNT( * ) + + + 57 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5832
SELECT + 53 * + - COUNT ( * ) + + + 57 AS col0
----
4

query I rowsort
SELECT DISTINCT 45 * - 46 AS col0
----
-2070

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

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

query I rowsort
SELECT 47 * - ( - 81 ) + 30
----
3837

onlyif mysql # DIV for integer division: 
query I rowsort label-5836
SELECT DISTINCT - 74 DIV + 33
----
-2

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT - 74 / + 33
----
-2

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

query I rowsort
SELECT 83 * - 29 * + + 32 AS col2
----
-77024

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT ALL 53 + - + COALESCE ( 29, - MIN( DISTINCT - 75 ), ( - NULLIF ( 10, 79 / AVG ( DISTINCT - 35 ) ) ) - + NULLIF ( 99, + 29 ) * - 43 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL 53 + - + COALESCE ( 29, - MIN ( DISTINCT - 75 ), ( - NULLIF ( 10, 79 / AVG ( DISTINCT - 35 ) ) ) - + NULLIF ( 99, + 29 ) * - 43 ) AS col0
----
24

query I rowsort
SELECT 89 + - 19 AS col0
----
70

query I rowsort
SELECT DISTINCT + 2 + - + 5 * + + 88 AS col0
----
-438

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT ALL - 48 + + - MAX( DISTINCT + 85 ) AS col2
----
-133

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL - 48 + + - MAX ( DISTINCT + 85 ) AS col2
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5843
SELECT CAST( ( - 63 ) AS SIGNED ) * + + 55 AS col0
----
-3465

skipif mysql # not compatible
query I rowsort label-5843
SELECT CAST ( ( - 63 ) AS INTEGER ) * + + 55 AS col0
----
-3465

query I rowsort
SELECT 8 + - 90
----
-82

query I rowsort
SELECT ALL + 84 + 59 + - 40
----
103

query I rowsort
SELECT DISTINCT 52 + - - 61 AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL + CASE + 47 WHEN + + 49 THEN + 9 WHEN - 49 * + COUNT( * ) THEN NULL END + NULLIF ( - 97, 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL + CASE + 47 WHEN + + 49 THEN + 9 WHEN - 49 * + COUNT ( * ) THEN NULL END + NULLIF ( - 97, 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT ALL + SUM( 96 ) + 96 * 90 col0
----
8736

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL + SUM ( 96 ) + 96 * 90 col0
----
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT ALL + CASE 64 WHEN - MAX( DISTINCT - - 10 ) THEN + 60 WHEN 62 THEN - 46 ELSE 86 * 30 + 61 * 52 END + COUNT( * ) * 5
----
5757

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL + CASE 64 WHEN - MAX ( DISTINCT - - 10 ) THEN + 60 WHEN 62 THEN - 46 ELSE 86 * 30 + 61 * 52 END + COUNT ( * ) * 5
----
5757

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT ALL COALESCE ( + COALESCE ( + COUNT( * ), - 39 ), 12, - 86 - - 93 * 19, 46 )
----
1

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL COALESCE ( + COALESCE ( + COUNT ( * ), - 39 ), 12, - 86 - - 93 * 19, 46 )
----
1

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

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

query I rowsort
SELECT - ( + 59 ) * + 21 + - 0
----
-1239

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT - - SUM( 38 )
----
38

skipif mysql # not compatible
query I rowsort label-5853
SELECT - - SUM ( 38 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5854
SELECT - 65 + - NULLIF ( CAST( NULL AS SIGNED ), + NULLIF ( CAST( 36 AS SIGNED ), 64 * ( + CAST( NULL AS SIGNED ) * COALESCE ( 33, - SUM( 43 ) * 77 + COUNT( * ) * CAST( 82 AS SIGNED ) ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT - 65 + - NULLIF ( CAST ( NULL AS INTEGER ), + NULLIF ( CAST ( 36 AS INTEGER ), 64 * ( + CAST ( NULL AS INTEGER ) * COALESCE ( 33, - SUM ( 43 ) * 77 + COUNT ( * ) * CAST ( 82 AS INTEGER ) ) ) ) )
----
NULL

query I rowsort
SELECT - ( 14 ) * + + 64 AS col0
----
-896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5856
SELECT ALL - 60 * + - NULLIF ( + 72, + ( - 99 ) + NULLIF ( 15 - - CAST( NULL AS SIGNED ) * 60, - 76 * - COUNT( * ) + 19 ) / 34 ) AS col1
----
4320

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL - 60 * + - NULLIF ( + 72, + ( - 99 ) + NULLIF ( 15 - - CAST ( NULL AS INTEGER ) * 60, - 76 * - COUNT ( * ) + 19 ) / 34 ) AS col1
----
4320

query I rowsort
SELECT + 28 + + NULLIF ( - 23, CASE + 38 WHEN + 24 THEN + 63 WHEN - 43 * 38 THEN NULL END ) AS col2
----
5

query I rowsort
SELECT - 37 * + 21 AS col1
----
-777

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT - 4 * - - 31 * COUNT( * )
----
-124

skipif mysql # not compatible
query I rowsort label-5859
SELECT - 4 * - - 31 * COUNT ( * )
----
-124

query I rowsort
SELECT + 78 - - + 24 AS col2
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5861
SELECT ALL NULLIF ( - + 3, - - MAX( + 78 ) + 99 * CAST( - 89 AS SIGNED ) ) * COUNT( * ) + + 84
----
81

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL NULLIF ( - + 3, - - MAX ( + 78 ) + 99 * CAST ( - 89 AS INTEGER ) ) * COUNT ( * ) + + 84
----
81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5863
SELECT + 95 * + CAST( COALESCE ( + 5, + - COUNT( * ), 67 - 70 ) AS SIGNED ) AS col0
----
475

skipif mysql # not compatible
query I rowsort label-5863
SELECT + 95 * + CAST ( COALESCE ( + 5, + - COUNT ( * ), 67 - 70 ) AS INTEGER ) AS col0
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT + CASE - 86 WHEN + 87 * ( + COUNT( * ) ) / + 85 THEN 83 + 72 WHEN + 11 THEN - 66 END / ( 81 ) + ( + 40 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5864
SELECT + CASE - 86 WHEN + 87 * ( + COUNT ( * ) ) / + 85 THEN 83 + 72 WHEN + 11 THEN - 66 END / ( 81 ) + ( + 40 ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5866
SELECT ALL 20 * + 44 + - + 96 * + CASE + MAX( CAST( + 12 AS SIGNED ) ) WHEN - COUNT( * ) + + 76 THEN - 69 WHEN CASE + 62 WHEN 79 * + COUNT( * ) THEN NULL WHEN + 87 THEN CASE WHEN NOT ( ( + 53 ) ) BETWEEN ( COUNT( * ) ) * - 90 AND NULL THEN 20 / + 77 + 52 ELSE NULL END END THEN NULL ELSE NULL END + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL 20 * + 44 + - + 96 * + CASE + MAX ( CAST ( + 12 AS INTEGER ) ) WHEN - COUNT ( * ) + + 76 THEN - 69 WHEN CASE + 62 WHEN 79 * + COUNT ( * ) THEN NULL WHEN + 87 THEN CASE WHEN NOT ( ( + 53 ) ) BETWEEN ( COUNT ( * ) ) * - 90 AND NULL THEN 20 / + 77 + 52 ELSE NULL END END THEN NULL ELSE NULL END + - 78
----
NULL

query I rowsort
SELECT ALL 42 * + 95 * + + 98
----
391020

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT + COUNT( * ) * COUNT( * ) * 66 + 60
----
126

skipif mysql # not compatible
query I rowsort label-5870
SELECT + COUNT ( * ) * COUNT ( * ) * 66 + 60
----
126

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT ALL 57 * COUNT( * ) + + 64 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL 57 * COUNT ( * ) + + 64 AS col0
----
121

query I rowsort
SELECT + 12 + - - 97 AS col0
----
109

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

skipif mysql # not compatible
query I rowsort label-5874
SELECT - 17 / + + ( - AVG ( ALL + + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL + ( + 79 ) * + - CASE + - 38 WHEN + 57 THEN + 58 + 42 * + 29 END + + 7 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5876
SELECT + CAST( NULL AS SIGNED ) + + - MAX( 74 ) * + + 70 + COUNT( * ) * - 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5876
SELECT + CAST ( NULL AS INTEGER ) + + - MAX ( 74 ) * + + 70 + COUNT ( * ) * - 93 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5878
SELECT ALL - COALESCE ( - 61, COALESCE ( 96, 84 ) ) / CAST( COUNT( * ) * + 74 + 10 * - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - COALESCE ( - 61, COALESCE ( 96, 84 ) ) / CAST ( COUNT ( * ) * + 74 + 10 * - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5879
SELECT + COUNT ( DISTINCT - 38 ) + + - 42 / + 88
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT DISTINCT COALESCE ( + 56, 75 + - 23 * - - 8 * 88, + CASE COUNT( * ) WHEN - 34 * 85 THEN - 51 END )
----
56

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT COALESCE ( + 56, 75 + - 23 * - - 8 * 88, + CASE COUNT ( * ) WHEN - 34 * 85 THEN - 51 END )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT - 34 + - - ( + COUNT( * ) ) - - 22 col1
----
-11

skipif mysql # not compatible
query I rowsort label-5882
SELECT - 34 + - - ( + COUNT ( * ) ) - - 22 col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5883
SELECT + COALESCE ( - 79, 5 * NULLIF ( 0, 76 ) - + MAX( DISTINCT 17 + + 65 ) ) + + CASE - 15 WHEN + ( 45 ) THEN 63 * CAST( NULL AS SIGNED ) + + MAX( DISTINCT 38 ) WHEN ( MIN( ALL + 16 ) ) + 48 THEN NULL END * + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT + COALESCE ( - 79, 5 * NULLIF ( 0, 76 ) - + MAX ( DISTINCT 17 + + 65 ) ) + + CASE - 15 WHEN + ( 45 ) THEN 63 * CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT 38 ) WHEN ( MIN ( ALL + 16 ) ) + 48 THEN NULL END * + 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT - 51 - - COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-5884
SELECT - 51 - - COUNT ( * ) AS col0
----
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5885
SELECT - CAST( NULL AS DECIMAL ) + + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5885
SELECT - CAST ( NULL AS REAL ) + + - 54
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT ALL - - CAST( - - 58 AS SIGNED ) * 4 AS col0
----
232

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL - - CAST ( - - 58 AS INTEGER ) * 4 AS col0
----
232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5887
SELECT + + CASE + ( - 36 ) WHEN - - 31 THEN NULL WHEN + 23 * - COUNT( * ) + 79 THEN 6 - + 4 ELSE + CAST( 27 AS SIGNED ) END * - COUNT( * ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-5887
SELECT + + CASE + ( - 36 ) WHEN - - 31 THEN NULL WHEN + 23 * - COUNT ( * ) + 79 THEN 6 - + 4 ELSE + CAST ( 27 AS INTEGER ) END * - COUNT ( * ) AS col1
----
-27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT - + ( + + MIN( - - 77 ) ) + - 51
----
-128

skipif mysql # not compatible
query I rowsort label-5889
SELECT - + ( + + MIN ( - - 77 ) ) + - 51
----
-128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT - - 73 + + COUNT( * ) + - 30 - + COUNT( * ) - - 73 + - 31 col0
----
85

skipif mysql # not compatible
query I rowsort label-5891
SELECT - - 73 + + COUNT ( * ) + - 30 - + COUNT ( * ) - - 73 + - 31 col0
----
85

query I rowsort
SELECT - 79 * ( ( ( 94 ) ) ) * - 68
----
504968

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5894
SELECT ALL - 4 DIV 44 * + 81 * - 1 * SUM( DISTINCT + 29 ) + - 32 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL - 4 / 44 * + 81 * - 1 * SUM ( DISTINCT + 29 ) + - 32 AS col1
----
-32

query I rowsort
SELECT - + 93 * + + 25
----
-2325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5896
SELECT + - COALESCE ( 35, 1 ) * + - CAST( NULL AS SIGNED ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT + - COALESCE ( 35, 1 ) * + - CAST ( NULL AS INTEGER ) * - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5897
SELECT ALL + 13 + CAST( - 45 AS SIGNED ) DIV + 58 + - - 45
----
58

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL + 13 + CAST ( - 45 AS INTEGER ) / + 58 + - - 45
----
58

query I rowsort
SELECT ALL - 55 + + 21
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5899
SELECT ALL - - COUNT( * ) DIV ( - 77 ) DIV - + CAST( - 22 AS SIGNED ) + 13 col2
----
13

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL - - COUNT ( * ) / ( - 77 ) / - + CAST ( - 22 AS INTEGER ) + 13 col2
----
13

query I rowsort
SELECT - 24 + 23 AS col2
----
-1

query I rowsort
SELECT DISTINCT + 10 / + CASE - - 50 WHEN - 79 THEN - 40 WHEN 27 * 69 THEN + 82 + 52 END - - 14 + - ( - 43 ) * - 9 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5902
SELECT ALL 35 / + - 74 * - 74 + + ( ( - ( + CAST( NULL AS SIGNED ) ) ) ) * + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL 35 / + - 74 * - 74 + + ( ( - ( + CAST ( NULL AS INTEGER ) ) ) ) * + 31
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5904
SELECT DISTINCT 10 DIV 35 + + + 47
----
47

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT 10 / 35 + + + 47
----
47

query I rowsort
SELECT - 18 - + 92 - 38 col0
----
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5906
SELECT COUNT( * ) DIV + ( + 18 ) + + + CASE 16 WHEN - 20 + - NULLIF ( - CASE - 32 WHEN CASE + 18 WHEN 8 * - ( 16 DIV 83 ) THEN COUNT( * ) WHEN - 58 THEN - 32 + + 56 WHEN ( 52 ) THEN + COUNT( * ) END THEN - 17 END, + 65 ) THEN - 78 ELSE + 88 * NULLIF ( - COUNT( * ), - 54 DIV 89 + 96 ) END col2
----
-88

skipif mysql # not compatible
query I rowsort label-5906
SELECT COUNT ( * ) / + ( + 18 ) + + + CASE 16 WHEN - 20 + - NULLIF ( - CASE - 32 WHEN CASE + 18 WHEN 8 * - ( 16 / 83 ) THEN COUNT ( * ) WHEN - 58 THEN - 32 + + 56 WHEN ( 52 ) THEN + COUNT ( * ) END THEN - 17 END, + 65 ) THEN - 78 ELSE + 88 * NULLIF ( - COUNT ( * ), - 54 / 89 + 96 ) END col2
----
-88

query II rowsort
SELECT 94 * + ( 18 ) + 78 AS col2, - 25 col0
----
1770
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5908
SELECT ALL + 53, - CASE 24 WHEN + 2 + + COUNT( * ) + + - 26 * - 92 THEN NULL WHEN COALESCE ( CAST( NULL AS SIGNED ), - CAST( 88 AS SIGNED ) ) + 87 THEN 86 + 59 END AS col2
----
53
NULL

skipif mysql # not compatible
query II rowsort label-5908
SELECT ALL + 53, - CASE 24 WHEN + 2 + + COUNT ( * ) + + - 26 * - 92 THEN NULL WHEN COALESCE ( CAST ( NULL AS INTEGER ), - CAST ( 88 AS INTEGER ) ) + 87 THEN 86 + 59 END AS col2
----
53
NULL

query I rowsort
SELECT - 6 * 68
----
-408

query I rowsort
SELECT ALL 22 * COALESCE ( NULLIF ( + 73, 43 / + 52 ), - NULLIF ( 3, COALESCE ( 22, 8 ) ) ) + + 66
----
1672

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5911
SELECT ALL + ( + 71 ) AS col0, 50 + - CAST( NULL AS SIGNED ) AS col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-5911
SELECT ALL + ( + 71 ) AS col0, 50 + - CAST ( NULL AS INTEGER ) AS col1
----
71
NULL

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

query II rowsort
SELECT ALL + 69 AS col2, + 86 + 87
----
69
173

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT ALL 52 * - MIN( ALL + 24 ) AS col0
----
-1248

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL 52 * - MIN ( ALL + 24 ) AS col0
----
-1248

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

query II rowsort
SELECT ALL + 43 AS col0, - 61
----
43
-61

query I rowsort
SELECT + 75 * + 66 * + 61
----
301950

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5918
SELECT ALL + 59 col2, 87 DIV + COUNT( * )
----
59
87

skipif mysql # not compatible
query II rowsort label-5918
SELECT ALL + 59 col2, 87 / + COUNT ( * )
----
59
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5919
SELECT 58 * - 47 + + + 12 + + + ( 87 ) + - 27 + + 82 DIV 32
----
-2652

skipif mysql # not compatible
query I rowsort label-5919
SELECT 58 * - 47 + + + 12 + + + ( 87 ) + - 27 + + 82 / 32
----
-2652

query I rowsort
SELECT + 39 * + 64
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT CASE 74 WHEN + 4 / + + MAX( 50 ) * - 50 + 28 THEN NULL WHEN 46 * 64 THEN 20 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5921
SELECT CASE 74 WHEN + 4 / + + MAX ( 50 ) * - 50 + 28 THEN NULL WHEN 46 * 64 THEN 20 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5922
SELECT + 56 * - CAST( - 94 AS SIGNED ) AS col1
----
5264

skipif mysql # not compatible
query I rowsort label-5922
SELECT + 56 * - CAST ( - 94 AS INTEGER ) AS col1
----
5264

query I rowsort
SELECT ALL ( - 98 ) * + 96 * + 14 AS col0
----
-131712

query I rowsort
SELECT ALL + 91 * + 22
----
2002

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT + 10 * - 68 + - + 65 + + 84 - + COUNT( * ) AS col0
----
-662

skipif mysql # not compatible
query I rowsort label-5926
SELECT + 10 * - 68 + - + 65 + + 84 - + COUNT ( * ) AS col0
----
-662

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT + 50 + MAX( 80 ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-5927
SELECT + 50 + MAX ( 80 ) AS col1
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-5928
SELECT + 59 * - COUNT( * ) col2, - 51 AS col0
----
-59
-51

skipif mysql # not compatible
query II rowsort label-5928
SELECT + 59 * - COUNT ( * ) col2, - 51 AS col0
----
-59
-51

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

query II rowsort
SELECT 94, + 15 * + ( 88 ) + - 38 AS col0
----
94
1282

query I rowsort
SELECT - 42 + + + COALESCE ( + 55, - 28 ) - - 33 * - - 59 * 10 col0
----
19483

query II rowsort
SELECT DISTINCT + 17 + - 14 col0, 43
----
3
43

query II rowsort
SELECT - 74, + 74 + + 33 + 23 AS col2
----
-74
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5934
SELECT ALL + COUNT( DISTINCT + 99 ) + - + COUNT( * ) + 56 + + 9 + COALESCE ( 82, COUNT( * ), - ( + ( 9 ) ) DIV - 59 ) * + 20 AS col2
----
1705

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL + COUNT ( DISTINCT + 99 ) + - + COUNT ( * ) + 56 + + 9 + COALESCE ( 82, COUNT ( * ), - ( + ( 9 ) ) / - 59 ) * + 20 AS col2
----
1705

query I rowsort
SELECT - 99 - 43 + + 23 * - COALESCE ( - 84, - + 53 ) + + 0 AS col1
----
1790

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5936
SELECT ALL + 86 col2, - ( - 18 ) + - 47 DIV + ( MAX( DISTINCT + 37 ) ) AS col1
----
86
17

skipif mysql # not compatible
query II rowsort label-5936
SELECT ALL + 86 col2, - ( - 18 ) + - 47 / + ( MAX ( DISTINCT + 37 ) ) AS col1
----
86
17

query I rowsort
SELECT DISTINCT - 14 + - + 23
----
-37

query I rowsort
SELECT 88 + - + 23
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT ALL + MIN( DISTINCT NULLIF ( - 2, + 59 * 21 * 49 + 2 * + NULLIF ( 43 / + 96 + - 28 / + 9, - 45 * 44 ) ) )
----
-2

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL + MIN ( DISTINCT NULLIF ( - 2, + 59 * 21 * 49 + 2 * + NULLIF ( 43 / + 96 + - 28 / + 9, - 45 * 44 ) ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT - - NULLIF ( + ( NULLIF ( 30, COUNT( * ) ) ), 17 )
----
30

skipif mysql # not compatible
query I rowsort label-5940
SELECT - - NULLIF ( + ( NULLIF ( 30, COUNT ( * ) ) ), 17 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5941
SELECT 99 DIV - NULLIF ( 29, - 71 * 91 DIV - + CASE 43 WHEN + 33 * - CASE 93 * 85 WHEN 62 THEN 56 * AVG ( - 67 ) END + + ( - MAX( 93 ) + + 72 ) THEN COUNT( * ) * 44 ELSE NULL END + 62 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5941
SELECT 99 / - NULLIF ( 29, - 71 * 91 / - + CASE 43 WHEN + 33 * - CASE 93 * 85 WHEN 62 THEN 56 * AVG ( - 67 ) END + + ( - MAX ( 93 ) + + 72 ) THEN COUNT ( * ) * 44 ELSE NULL END + 62 ) AS col2
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5942
SELECT 34 DIV - 71 - 57 AS col0, - 60
----
-57
-60

skipif mysql # not compatible
query II rowsort label-5942
SELECT 34 / - 71 - 57 AS col0, - 60
----
-57
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5943
SELECT DISTINCT + 43 DIV - CASE + 63 WHEN + 79 THEN NULL WHEN - 93 + + 21 DIV 11 * + 3 THEN NULL WHEN 4 * 4 + 15 THEN NULL WHEN 60 THEN - 13 ELSE + 28 END * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT + 43 / - CASE + 63 WHEN + 79 THEN NULL WHEN - 93 + + 21 / 11 * + 3 THEN NULL WHEN 4 * 4 + 15 THEN NULL WHEN 60 THEN - 13 ELSE + 28 END * COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL - 89 + 9
----
-80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5946
SELECT 89 DIV COALESCE ( - 35, 37 DIV + + 56 + - 84 + - CAST( NULL AS SIGNED ) + - CAST( - 11 AS SIGNED ), COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-5946
SELECT 89 / COALESCE ( - 35, 37 / + + 56 + - 84 + - CAST ( NULL AS INTEGER ) + - CAST ( - 11 AS INTEGER ), COUNT ( * ) )
----
-2

query I rowsort
SELECT DISTINCT + 17 * + 66 AS col1
----
1122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5948
SELECT DISTINCT + 44 DIV + COUNT( * ) AS col2, + ( - - 61 ) * - + CAST( NULL AS SIGNED ) + + COUNT( * )
----
44
NULL

skipif mysql # not compatible
query II rowsort label-5948
SELECT DISTINCT + 44 / + COUNT ( * ) AS col2, + ( - - 61 ) * - + CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
44
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5949
SELECT ALL - CAST( - COALESCE ( 28, + + 45 ) AS SIGNED ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL - CAST ( - COALESCE ( 28, + + 45 ) AS INTEGER ) AS col0
----
28

query I rowsort
SELECT DISTINCT - 72 - - - 47
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT COUNT( * ) * - 22 + 89 + + 71 - 45 + - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-5951
SELECT COUNT ( * ) * - 22 + 89 + + 71 - 45 + - COUNT ( * )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5952
SELECT 7 + - 77 DIV + + 85 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5952
SELECT 7 + - 77 / + + 85 AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5953
SELECT ALL - CASE 93 WHEN - + COUNT( * ) * + - ( - SUM( + 35 ) ) THEN - 20 + - 57 WHEN 66 THEN NULL WHEN - 8 + ( + 19 + ( CAST( NULL AS SIGNED ) ) * + 8 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL - CASE 93 WHEN - + COUNT ( * ) * + - ( - SUM ( + 35 ) ) THEN - 20 + - 57 WHEN 66 THEN NULL WHEN - 8 + ( + 19 + ( CAST ( NULL AS INTEGER ) ) * + 8 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 90 * - 83 + ( + + 9 ) AS col1
----
-7461

query I rowsort
SELECT 16 + + 37 + ( + ( - 3 ) ) * + 47 + 70 * - 28
----
-2048

query I rowsort
SELECT ALL + 98 * 13
----
1274

query I rowsort
SELECT 34 * + 51 + + 99 + + 79 AS col2
----
1912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5958
SELECT DISTINCT + SUM( - CAST( NULL AS SIGNED ) ) / + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT + SUM ( - CAST ( NULL AS INTEGER ) ) / + 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT COUNT( ALL + - 97 ) + CASE + 44 WHEN + 87 + + - COUNT( DISTINCT - 76 ) + - 81 THEN + 12 * 49 + - 79 WHEN - ( - 91 ) THEN NULL WHEN - COUNT( * ) + + 2 THEN + 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT COUNT ( ALL + - 97 ) + CASE + 44 WHEN + 87 + + - COUNT ( DISTINCT - 76 ) + - 81 THEN + 12 * 49 + - 79 WHEN - ( - 91 ) THEN NULL WHEN - COUNT ( * ) + + 2 THEN + 86 END
----
NULL

query I rowsort
SELECT ALL 73 * 75
----
5475

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT ALL - MIN( - + 45 ) + 33 + - 96 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL - MIN ( - + 45 ) + 33 + - 96 AS col2
----
-18

query I rowsort
SELECT + 17 + 99
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT DISTINCT 96 + - COUNT( * ) * + 64
----
32

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT 96 + - COUNT ( * ) * + 64
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5964
SELECT ALL 0 + - + 83 AS col1, 13 * - - CAST( NULL AS SIGNED ) * ( + 56 )
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-5964
SELECT ALL 0 + - + 83 AS col1, 13 * - - CAST ( NULL AS INTEGER ) * ( + 56 )
----
-83
NULL

query I rowsort
SELECT ALL + 77 * 78 * - + 92 AS col0
----
-552552

query I rowsort
SELECT - 84 + + + 47 AS col2
----
-37

query I rowsort
SELECT + 93 * - + 6
----
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT DISTINCT - CASE + 26 WHEN 64 + 66 + - 66 THEN NULL WHEN 33 * - + ( 92 ) - ( - 38 ) THEN NULL WHEN - 99 + 81 / - 34 THEN - 95 ELSE NULL END + - COUNT( - 80 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT - CASE + 26 WHEN 64 + 66 + - 66 THEN NULL WHEN 33 * - + ( 92 ) - ( - 38 ) THEN NULL WHEN - 99 + 81 / - 34 THEN - 95 ELSE NULL END + - COUNT ( - 80 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5969
SELECT ALL - 21 DIV - NULLIF ( - 84, 51 ) * - 19 + + COUNT( * ) + 38 col2
----
39

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL - 21 / - NULLIF ( - 84, 51 ) * - 19 + + COUNT ( * ) + 38 col2
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT COUNT( * ) * COUNT( * ) + + - 41
----
-40

skipif mysql # not compatible
query I rowsort label-5971
SELECT COUNT ( * ) * COUNT ( * ) + + - 41
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT ALL + MIN( + 94 ) + + + 46 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL + MIN ( + 94 ) + + + 46 AS col1
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-5973
SELECT - 59 + - 66, - 66 * + - COUNT( ALL COALESCE ( NULLIF ( 90, + COALESCE ( - 67, 72 + - 30 ) + 17 ), 90 + 96, + 63 ) ) AS col1
----
-125
66

skipif mysql # not compatible
query II rowsort label-5973
SELECT - 59 + - 66, - 66 * + - COUNT ( ALL COALESCE ( NULLIF ( 90, + COALESCE ( - 67, 72 + - 30 ) + 17 ), 90 + 96, + 63 ) ) AS col1
----
-125
66

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

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

query I rowsort
SELECT 2 + - + 9 col0
----
-7

query I rowsort
SELECT ALL 24 * - 98 AS col2
----
-2352

query I rowsort
SELECT ALL 83 - - + COALESCE ( + + 90, - - 42 )
----
173

onlyif mysql # aggregate syntax: 
query II rowsort label-5978
SELECT - COUNT( * ) col0, - COALESCE ( - - ( + + 15 ), COUNT( * ) * - MIN( - - 46 ) + - 80 * - 83, + 5 ) + 79 col0
----
-1
64

skipif mysql # not compatible
query II rowsort label-5978
SELECT - COUNT ( * ) col0, - COALESCE ( - - ( + + 15 ), COUNT ( * ) * - MIN ( - - 46 ) + - 80 * - 83, + 5 ) + 79 col0
----
-1
64

query II rowsort
SELECT 89 + - - ( - - 57 ) AS col2, 2 * - - 47 col0
----
146
94

query I rowsort
SELECT ( ( + 30 ) ) * + 10
----
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5981
SELECT ALL + COALESCE ( - 67, - ( 43 ), 85 ) * NULLIF ( - ( - ( - ( - MAX( ALL + 88 ) ) ) ), - COALESCE ( 83, - 13 ) / ( + NULLIF ( 44, + COUNT( * ) / - 57 ) + + COUNT( * ) / - COALESCE ( + SUM( ALL CAST( NULL AS SIGNED ) ) / 16 + - COUNT( * ) * COALESCE ( - 74, 64, + 42 ), - MIN( + 95 ) - - 6 ) ) + + 5 ) AS col1
----
-5896

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL + COALESCE ( - 67, - ( 43 ), 85 ) * NULLIF ( - ( - ( - ( - MAX ( ALL + 88 ) ) ) ), - COALESCE ( 83, - 13 ) / ( + NULLIF ( 44, + COUNT ( * ) / - 57 ) + + COUNT ( * ) / - COALESCE ( + SUM ( ALL CAST ( NULL AS INTEGER ) ) / 16 + - COUNT ( * ) * COALESCE ( - 74, 64, + 42 ), - MIN ( + 95 ) - - 6 ) ) + + 5 ) AS col1
----
-5896

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT ( ( - + COUNT( * ) ) ) + + - ( 97 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-5982
SELECT ( ( - + COUNT ( * ) ) ) + + - ( 97 ) AS col2
----
-98

query I rowsort
SELECT ALL 88 * + 40
----
3520

onlyif mysql # aggregate syntax: 
query II rowsort label-5984
SELECT ALL - 79 AS col0, COUNT( * ) + + 82 * - 39 col1
----
-79
-3197

skipif mysql # not compatible
query II rowsort label-5984
SELECT ALL - 79 AS col0, COUNT ( * ) + + 82 * - 39 col1
----
-79
-3197

query I rowsort
SELECT 18 * CASE - - AVG ( - 73 ) WHEN ( - 34 ) THEN 50 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT COUNT( ALL + 23 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5986
SELECT COUNT ( ALL + 23 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5987
SELECT - COUNT( * ) * + + 53 + + 22 AS col2, 34 * - 98
----
-31
-3332

skipif mysql # not compatible
query II rowsort label-5987
SELECT - COUNT ( * ) * + + 53 + + 22 AS col2, 34 * - 98
----
-31
-3332

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

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

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

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

query II rowsort
SELECT ALL - 52 AS col1, 26 * - - 85 * - 87 - 24
----
-52
-192294

query II rowsort
SELECT + 46, + 83 AS col2
----
46
83

query I rowsort
SELECT ALL + ( 91 ) * - - ( - 55 ) AS col1
----
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT 33 * - CASE + + 47 WHEN - + 19 THEN - 84 * - 22 / - COUNT( + + 7 ) * 43 WHEN + 29 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5993
SELECT 33 * - CASE + + 47 WHEN - + 19 THEN - 84 * - 22 / - COUNT ( + + 7 ) * 43 WHEN + 29 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT - 1 * + - ( COUNT( * ) ) * + 48 * 58
----
2784

skipif mysql # not compatible
query I rowsort label-5994
SELECT - 1 * + - ( COUNT ( * ) ) * + 48 * 58
----
2784

query II rowsort
SELECT 49, 46 * - - ( - 78 ) AS col1
----
49
-3588

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT - + 11 - - COUNT( * ) + MAX( DISTINCT 11 ) * - ( + 66 )
----
-736

skipif mysql # not compatible
query I rowsort label-5997
SELECT - + 11 - - COUNT ( * ) + MAX ( DISTINCT 11 ) * - ( + 66 )
----
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT ALL SUM( - 43 ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL SUM ( - 43 ) col2
----
-43

query I rowsort
SELECT ALL + 47 + + 67 AS col0
----
114

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6000
SELECT - - NULLIF ( - 86, - 98 + - CAST( 83 AS DECIMAL ) * - + 56 ) * + 6
----
-516

skipif mysql # not compatible
query I rowsort label-6000
SELECT - - NULLIF ( - 86, - 98 + - CAST ( 83 AS REAL ) * - + 56 ) * + 6
----
-516

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6002
SELECT ALL - + COUNT( * ) + - 5 + + 67 + 74 DIV - MIN( DISTINCT 58 ) + 9
----
69

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL - + COUNT ( * ) + - 5 + + 67 + 74 / - MIN ( DISTINCT 58 ) + 9
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6003
SELECT + 8 AS col2, - 12 * + SUM( DISTINCT ( + - 70 ) ) AS col0
----
8
840

skipif mysql # not compatible
query II rowsort label-6003
SELECT + 8 AS col2, - 12 * + SUM ( DISTINCT ( + - 70 ) ) AS col0
----
8
840

query I rowsort
SELECT DISTINCT 30 + 35
----
65

query I rowsort
SELECT ALL - 76 + - 8 AS col0
----
-84

query I rowsort
SELECT + 4 * + 31 + - 44 - + - 49 AS col0
----
129

query I rowsort
SELECT - 48 + + + 14 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT - 61 + - ( - - MIN( DISTINCT - 57 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-6008
SELECT - 61 + - ( - - MIN ( DISTINCT - 57 ) )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6009
SELECT + NULLIF ( + MAX( - - 41 ), - 21 ) DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-6009
SELECT + NULLIF ( + MAX ( - - 41 ), - 21 ) / - 79
----
0

query I rowsort
SELECT - NULLIF ( 13, + 60 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-6011
SELECT - COUNT( ALL - 58 ), 21 * 78 AS col0
----
-1
1638

skipif mysql # not compatible
query II rowsort label-6011
SELECT - COUNT ( ALL - 58 ), 21 * 78 AS col0
----
-1
1638

onlyif mysql # aggregate syntax: 
query II rowsort label-6012
SELECT + 65 + + - 97 * - 73 * - + 11 * - 94 * - MIN( - 45 ), + 28 - + + 94 + - COALESCE ( + ( - MIN( ALL 88 ) ), 6 * 30, - 90 ) AS col2
----
329478995
22

skipif mysql # not compatible
query II rowsort label-6012
SELECT + 65 + + - 97 * - 73 * - + 11 * - 94 * - MIN ( - 45 ), + 28 - + + 94 + - COALESCE ( + ( - MIN ( ALL 88 ) ), 6 * 30, - 90 ) AS col2
----
329478995
22

query I rowsort
SELECT + 83 * + 51 AS col2
----
4233

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT + 41 + + SUM( DISTINCT - - 82 )
----
123

skipif mysql # not compatible
query I rowsort label-6014
SELECT + 41 + + SUM ( DISTINCT - - 82 )
----
123

query I rowsort
SELECT ALL 47 - + + 98 * 34 col2
----
-3285

onlyif mysql # aggregate syntax: 
query II rowsort label-6016
SELECT DISTINCT SUM( ALL + 64 ), - COUNT( * ) * + + 92 * 55 col2
----
64
-5060

skipif mysql # not compatible
query II rowsort label-6016
SELECT DISTINCT SUM ( ALL + 64 ), - COUNT ( * ) * + + 92 * 55 col2
----
64
-5060

query I rowsort
SELECT + 11 * - 62
----
-682

onlyif mysql # aggregate syntax: 
query II rowsort label-6018
SELECT ( - 18 ) AS col1, 62 - 92 - - + 98 + + + 25 * - - COUNT( * ) + 37 * - 47 AS col2
----
-18
-1646

skipif mysql # not compatible
query II rowsort label-6018
SELECT ( - 18 ) AS col1, 62 - 92 - - + 98 + + + 25 * - - COUNT ( * ) + 37 * - 47 AS col2
----
-18
-1646

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6019
SELECT COUNT( * ) DIV - 13 - 88 + + 69
----
-19

skipif mysql # not compatible
query I rowsort label-6019
SELECT COUNT ( * ) / - 13 - 88 + + 69
----
-19

query II rowsort
SELECT + ( + - 36 ) AS col0, 45 AS col2
----
-36
45

query I rowsort
SELECT ALL + 84 * + 97 + + 60 + + ( - 95 ) * - 82 * 58 * - 6
----
-2702712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6022
SELECT ALL ( + CAST( - + 29 AS SIGNED ) ) * - 16 * + + 97 + - CAST( - COUNT( * ) AS SIGNED )
----
45009

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL ( + CAST ( - + 29 AS INTEGER ) ) * - 16 * + + 97 + - CAST ( - COUNT ( * ) AS INTEGER )
----
45009

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT DISTINCT + 70 * NULLIF ( COUNT( * ), + 10 ) * - - 28 * - 74 * 12 AS col1
----
-1740480

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT + 70 * NULLIF ( COUNT ( * ), + 10 ) * - - 28 * - 74 * 12 AS col1
----
-1740480

query I rowsort
SELECT ALL - 30 * + 68 + + 32 * 82 + + 10 + 23 AS col2
----
617

query II rowsort
SELECT - 72 - + 28 AS col0, 5 + - - 6 AS col2
----
-100
11

query I rowsort
SELECT 32 * + 32 + + 66 + - NULLIF ( 86, + 52 ) AS col0
----
1004

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT - + ( + COUNT( * ) ) * + 46 * - + CASE + - COUNT( * ) WHEN - 28 THEN + 42 ELSE NULL END / - + 14 + + 14 + - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6027
SELECT - + ( + COUNT ( * ) ) * + 46 * - + CASE + - COUNT ( * ) WHEN - 28 THEN + 42 ELSE NULL END / - + 14 + + 14 + - 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ALL 44 * - + 46 + - + COUNT( * ) col0
----
-2025

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL 44 * - + 46 + - + COUNT ( * ) col0
----
-2025

query I rowsort
SELECT + - 40 + 45 * + + ( 81 )
----
3605

onlyif mysql # DIV for integer division: 
query II rowsort label-6030
SELECT DISTINCT - + 2 DIV + + 14 AS col1, 48 + - 7
----
0
41

skipif mysql # not compatible
query II rowsort label-6030
SELECT DISTINCT - + 2 / + + 14 AS col1, 48 + - 7
----
0
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6031
SELECT - 85 * - - 78 + AVG ( ALL 17 ) + + - CAST( NULL AS SIGNED ) + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT - 85 * - - 78 + AVG ( ALL 17 ) + + - CAST ( NULL AS INTEGER ) + + 5
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6032
SELECT + 19 DIV + 81 + + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6032
SELECT + 19 / + 81 + + + COUNT ( * )
----
1

query I rowsort
SELECT ALL + 36 * - ( ( + 55 ) ) * 80 AS col1
----
-158400

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT + COUNT( * ) * - 64 + 93 col0
----
29

skipif mysql # not compatible
query I rowsort label-6034
SELECT + COUNT ( * ) * - 64 + 93 col0
----
29

query I rowsort
SELECT - 2 + - 17 + + - 76
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT - COALESCE ( + 20, + - 25, + + MIN( DISTINCT + 45 ) + + 79 - - - 95 )
----
-20

skipif mysql # not compatible
query I rowsort label-6036
SELECT - COALESCE ( + 20, + - 25, + + MIN ( DISTINCT + 45 ) + + 79 - - - 95 )
----
-20

query I rowsort
SELECT - + ( + - 67 ) * + 19 + - 77 AS col2
----
1196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6038
SELECT ALL CASE 27 WHEN - + NULLIF ( + CAST( NULL AS SIGNED ), + 71 ) THEN 81 + + 51 - - 75 WHEN - 49 - - 21 / 56 THEN 16 + - 9 WHEN 59 THEN - 32 * 94 ELSE COUNT( * ) + 15 * - 26 END
----
-389

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL CASE 27 WHEN - + NULLIF ( + CAST ( NULL AS INTEGER ), + 71 ) THEN 81 + + 51 - - 75 WHEN - 49 - - 21 / 56 THEN 16 + - 9 WHEN 59 THEN - 32 * 94 ELSE COUNT ( * ) + 15 * - 26 END
----
-389

query I rowsort
SELECT DISTINCT - 57 * 93
----
-5301

query II rowsort
SELECT DISTINCT 58 col1, 98
----
58
98

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6042
SELECT - CASE 69 WHEN + 1 / 88 THEN NULL WHEN - COUNT( * ) * - 91 * - 97 * + CAST( NULL AS SIGNED ) * + 95 * + - 17 + + 20 * MIN( - 29 ) THEN 64 ELSE - 69 * - 28 END col1
----
-1932

skipif mysql # not compatible
query I rowsort label-6042
SELECT - CASE 69 WHEN + 1 / 88 THEN NULL WHEN - COUNT ( * ) * - 91 * - 97 * + CAST ( NULL AS INTEGER ) * + 95 * + - 17 + + 20 * MIN ( - 29 ) THEN 64 ELSE - 69 * - 28 END col1
----
-1932

query I rowsort
SELECT - ( - - 85 ) + - 26
----
-111

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

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

query I rowsort
SELECT + 29 * ( 77 )
----
2233

query I rowsort
SELECT DISTINCT - 95 * + 39 AS col0
----
-3705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6047
SELECT ALL SUM( - 75 ) + CAST( NULL AS SIGNED ) * 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL SUM ( - 75 ) + CAST ( NULL AS INTEGER ) * 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT + 93 + - MAX( DISTINCT 96 )
----
-3

skipif mysql # not compatible
query I rowsort label-6048
SELECT + 93 + - MAX ( DISTINCT 96 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT DISTINCT - ( + + 93 ) + 55 + + COUNT( * ) * 45 * 75 + + 68
----
3405

skipif mysql # not compatible
query I rowsort label-6049
SELECT DISTINCT - ( + + 93 ) + 55 + + COUNT ( * ) * 45 * 75 + + 68
----
3405

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT + SUM( 45 ) + - 89 + - 48 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-6050
SELECT + SUM ( 45 ) + - 89 + - 48 AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6051
SELECT NULLIF ( - ( 42 ), + 57 / 36 * 96 * + COUNT( * ) ) * - CAST( 82 AS SIGNED )
----
3444

skipif mysql # not compatible
query I rowsort label-6051
SELECT NULLIF ( - ( 42 ), + 57 / 36 * 96 * + COUNT ( * ) ) * - CAST ( 82 AS INTEGER )
----
3444

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT + 73 * + + COUNT( * ) + + - 20 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-6052
SELECT + 73 * + + COUNT ( * ) + + - 20 AS col0
----
53

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6054
SELECT ALL - + COUNT( * ) AS col0, - 13 * - 0 * + SUM( ALL + - 81 )
----
-1
0

skipif mysql # not compatible
query II rowsort label-6054
SELECT ALL - + COUNT ( * ) AS col0, - 13 * - 0 * + SUM ( ALL + - 81 )
----
-1
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6057
SELECT ALL - 73 AS col2, + CAST( NULL AS SIGNED ) * + 26, + NULLIF ( - CASE + + 80 WHEN 1 THEN - 79 WHEN + 52 THEN + 33 * 45 ELSE NULL END, + COALESCE ( 28, COALESCE ( 24, CAST( 85 AS SIGNED ), + 66 + 21 ) + 52, - ( - 88 ) + 46 ) * 3 - COUNT( * ) ) * + 34 col2
----
-73
NULL
NULL

skipif mysql # not compatible
query III rowsort label-6057
SELECT ALL - 73 AS col2, + CAST ( NULL AS INTEGER ) * + 26, + NULLIF ( - CASE + + 80 WHEN 1 THEN - 79 WHEN + 52 THEN + 33 * 45 ELSE NULL END, + COALESCE ( 28, COALESCE ( 24, CAST ( 85 AS INTEGER ), + 66 + 21 ) + 52, - ( - 88 ) + 46 ) * 3 - COUNT ( * ) ) * + 34 col2
----
-73
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT DISTINCT + - ( COUNT( * ) ) - 4 * + 76
----
-305

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT + - ( COUNT ( * ) ) - 4 * + 76
----
-305

query I rowsort
SELECT DISTINCT - 98 * + - 4 AS col0
----
392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6060
SELECT - - 96 * 17 - - 61 + + - CASE + 55 WHEN + + COUNT( * ) + 51 - - CAST( + 42 AS SIGNED ) THEN + 94 + - 44 ELSE NULL END + - 99 * - MAX( 13 ) * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT - - 96 * 17 - - 61 + + - CASE + 55 WHEN + + COUNT ( * ) + 51 - - CAST ( + 42 AS INTEGER ) THEN + 94 + - 44 ELSE NULL END + - 99 * - MAX ( 13 ) * + 23
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6061
SELECT + 86 DIV - + 21 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6061
SELECT + 86 / - + 21 AS col1
----
-4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6063
SELECT DISTINCT COALESCE ( - + ( - + CAST( - 19 AS SIGNED ) ), NULLIF ( - + 65, + 89 ), - 50 * + 92 )
----
-19

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT COALESCE ( - + ( - + CAST ( - 19 AS INTEGER ) ), NULLIF ( - + 65, + 89 ), - 50 * + 92 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT 82 + - + NULLIF ( - MAX( + 98 ), - 2 - + 94 * - 37 * + 28 - + COUNT( * ) )
----
180

skipif mysql # not compatible
query I rowsort label-6064
SELECT 82 + - + NULLIF ( - MAX ( + 98 ), - 2 - + 94 * - 37 * + 28 - + COUNT ( * ) )
----
180

query II rowsort
SELECT ALL 61 AS col1, 38
----
61
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6066
SELECT ( + ( + 42 ) ) + AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT ( + ( + 42 ) ) + AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 27 - + 9 AS col1
----
18

query I rowsort
SELECT 34 + 22 AS col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6069
SELECT DISTINCT 70 AS col1, CASE - 1 WHEN COUNT( * ) THEN + + 32 + 27 / + + ( 57 ) WHEN NULLIF ( MAX( ALL + 36 ), 47 * COUNT( * ) ) THEN - CASE + 60 WHEN - 44 / - 9 THEN NULL WHEN + COUNT( * ) + + 68 THEN 75 ELSE - 38 END * - SUM( ALL - 69 ) + 21 / 97 ELSE NULL END
----
70
NULL

skipif mysql # not compatible
query II rowsort label-6069
SELECT DISTINCT 70 AS col1, CASE - 1 WHEN COUNT ( * ) THEN + + 32 + 27 / + + ( 57 ) WHEN NULLIF ( MAX ( ALL + 36 ), 47 * COUNT ( * ) ) THEN - CASE + 60 WHEN - 44 / - 9 THEN NULL WHEN + COUNT ( * ) + + 68 THEN 75 ELSE - 38 END * - SUM ( ALL - 69 ) + 21 / 97 ELSE NULL END
----
70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT ALL COUNT( DISTINCT - 76 ) + - ( - MAX( COALESCE ( - 72, 98 + 92 * ( ( - ( 96 ) ) ) + 35 ) ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL COUNT ( DISTINCT - 76 ) + - ( - MAX ( COALESCE ( - 72, 98 + 92 * ( ( - ( 96 ) ) ) + 35 ) ) ) AS col1
----
-71

query I rowsort
SELECT DISTINCT 23 * - 39 * + 94 AS col0
----
-84318

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

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

query II rowsort
SELECT ALL 29 AS col0, - 64 AS col2
----
29
-64

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

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

query I rowsort
SELECT 13 - + ( - 34 ) + - 27
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6076
SELECT 23 DIV + NULLIF ( - - 83, - 97 )
----
0

skipif mysql # not compatible
query I rowsort label-6076
SELECT 23 / + NULLIF ( - - 83, - 97 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6077
SELECT 58 * COUNT( * ), ( + + COUNT( DISTINCT 5 ) ) / CASE + 47 WHEN + 78 + + COALESCE ( + + 35, + - 18 / - ( COUNT( DISTINCT - ( + 14 ) ) * - 40 - 34 ) ) * - 86 THEN NULL WHEN + 32 THEN ( - COUNT( 34 ) ) * 98 END + + 73 AS col2
----
58
NULL

skipif mysql # not compatible
query II rowsort label-6077
SELECT 58 * COUNT ( * ), ( + + COUNT ( DISTINCT 5 ) ) / CASE + 47 WHEN + 78 + + COALESCE ( + + 35, + - 18 / - ( COUNT ( DISTINCT - ( + 14 ) ) * - 40 - 34 ) ) * - 86 THEN NULL WHEN + 32 THEN ( - COUNT ( 34 ) ) * 98 END + + 73 AS col2
----
58
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6078
SELECT DISTINCT - CASE - 8 WHEN - ( + 98 ) * - CAST( - + ( 45 ) AS SIGNED ) + - 93 + + + 79 + + - 3 THEN NULL WHEN 19 * - CAST( NULL AS SIGNED ) THEN 33 END + ( - CAST( - 91 AS SIGNED ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT - CASE - 8 WHEN - ( + 98 ) * - CAST ( - + ( 45 ) AS INTEGER ) + - 93 + + + 79 + + - 3 THEN NULL WHEN 19 * - CAST ( NULL AS INTEGER ) THEN 33 END + ( - CAST ( - 91 AS INTEGER ) ) * + COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT - + 33 AS col1, - 74 AS col1
----
-33
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT + 81 * + 16 - + COUNT( DISTINCT - 26 ) + CASE COUNT( * ) WHEN - COUNT( * ) * - - 27 * + 81 + - - 76 + 89 THEN NULL WHEN + 63 THEN + NULLIF ( 19, COUNT( * ) ) ELSE NULL END / 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6081
SELECT + 81 * + 16 - + COUNT ( DISTINCT - 26 ) + CASE COUNT ( * ) WHEN - COUNT ( * ) * - - 27 * + 81 + - - 76 + 89 THEN NULL WHEN + 63 THEN + NULLIF ( 19, COUNT ( * ) ) ELSE NULL END / 60
----
NULL

query I rowsort
SELECT ALL - 18 - + 41 AS col1
----
-59

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6084
SELECT ALL - COUNT( * ) AS col0, - MAX( + 26 ) AS col2
----
-1
-26

skipif mysql # not compatible
query II rowsort label-6084
SELECT ALL - COUNT ( * ) AS col0, - MAX ( + 26 ) AS col2
----
-1
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-6085
SELECT ALL - + 17 col2, + COUNT( * ) * + 61 * - 74 + - - 10 + + - 41 AS col0
----
-17
-4545

skipif mysql # not compatible
query II rowsort label-6085
SELECT ALL - + 17 col2, + COUNT ( * ) * + 61 * - 74 + - - 10 + + - 41 AS col0
----
-17
-4545

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6086
SELECT 58 DIV + - 37 - - - 51 + + COUNT( * ) + 55 * + 69 + + + 59 * + 24 + - 14 + - 27 col1
----
5119

skipif mysql # not compatible
query I rowsort label-6086
SELECT 58 / + - 37 - - - 51 + + COUNT ( * ) + 55 * + 69 + + + 59 * + 24 + - 14 + - 27 col1
----
5119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6087
SELECT + 1 * 98 * + 26 * - + 25 + + 95 * + - COALESCE ( - COALESCE ( 16, + 70 DIV + 52 + + + 70 * 84, - COUNT( * ) ), 54 ) + CAST( + 2 + 59 DIV - NULLIF ( 76, - 56 DIV 48 + 20 * 23 ) AS SIGNED ) AS col2
----
-62178

skipif mysql # not compatible
query I rowsort label-6087
SELECT + 1 * 98 * + 26 * - + 25 + + 95 * + - COALESCE ( - COALESCE ( 16, + 70 / + 52 + + + 70 * 84, - COUNT ( * ) ), 54 ) + CAST ( + 2 + 59 / - NULLIF ( 76, - 56 / 48 + 20 * 23 ) AS INTEGER ) AS col2
----
-62178

query II rowsort
SELECT ALL - 98, - 31 AS col0
----
-98
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6089
SELECT 87 * - SUM( + - ( - 6 ) ) * - + CAST( - 93 AS SIGNED ) * - + 42 + + 80 - - 61
----
2039073

skipif mysql # not compatible
query I rowsort label-6089
SELECT 87 * - SUM ( + - ( - 6 ) ) * - + CAST ( - 93 AS INTEGER ) * - + 42 + + 80 - - 61
----
2039073

query I rowsort
SELECT + CASE + 25 WHEN + 25 THEN + 64 + + 5 - 1 * 19 WHEN - 51 THEN NULL ELSE - 16 END AS col0
----
50

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6092
SELECT ALL 81 * - + CASE - 61 WHEN - CAST( NULL AS SIGNED ) + - SUM( + - 67 ) + - 82 + + 61 / - + ( - + CASE + 71 WHEN 37 * CAST( NULL AS SIGNED ) + + 80 THEN + 4 ELSE NULL END ) THEN NULL WHEN COUNT( * ) - - 74 THEN NULL ELSE COUNT( * ) + + 18 END + 85
----
-1454

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL 81 * - + CASE - 61 WHEN - CAST ( NULL AS INTEGER ) + - SUM ( + - 67 ) + - 82 + + 61 / - + ( - + CASE + 71 WHEN 37 * CAST ( NULL AS INTEGER ) + + 80 THEN + 4 ELSE NULL END ) THEN NULL WHEN COUNT ( * ) - - 74 THEN NULL ELSE COUNT ( * ) + + 18 END + 85
----
-1454

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6093
SELECT - MIN( + ( - 50 ) ) + 69 AS col1, 17 DIV + 7
----
119
2

skipif mysql # not compatible
query II rowsort label-6093
SELECT - MIN ( + ( - 50 ) ) + 69 AS col1, 17 / + 7
----
119
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6094
SELECT DISTINCT - - COUNT( * ) AS col1, 26
----
1
26

skipif mysql # not compatible
query II rowsort label-6094
SELECT DISTINCT - - COUNT ( * ) AS col1, 26
----
1
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT DISTINCT + 25 * - - 45 * + COUNT( * ) + 54 * + 39 + + 93 * CASE 86 WHEN + 81 / - 89 THEN + - 76 END * 54 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT + 25 * - - 45 * + COUNT ( * ) + 54 * + 39 + + 93 * CASE 86 WHEN + 81 / - 89 THEN + - 76 END * 54 + + COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT - + 42 AS col2, ( + - 58 )
----
-42
-58

query I rowsort
SELECT ALL 24 * - 59 AS col1
----
-1416

query I rowsort
SELECT 37 + 39 - - + 78 AS col1
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6099
SELECT DISTINCT COUNT( * ) + 85 - 86 DIV 23 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT COUNT ( * ) + 85 - 86 / 23 AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6100
SELECT ALL + CASE 73 WHEN 47 THEN - 44 / + 62 * + NULLIF ( AVG ( - NULLIF ( - 60, + + 53 + - CAST( NULL AS DECIMAL ) ) ), + COUNT( * ) ) * 71 END + + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL + CASE 73 WHEN 47 THEN - 44 / + 62 * + NULLIF ( AVG ( - NULLIF ( - 60, + + 53 + - CAST ( NULL AS REAL ) ) ), + COUNT ( * ) ) * 71 END + + 17 AS col2
----
NULL

query I rowsort
SELECT ( + 44 ) * + 67
----
2948

query I rowsort
SELECT DISTINCT + 23 * + 56
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT ALL ( - 17 ) + MAX( - 18 )
----
-35

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL ( - 17 ) + MAX ( - 18 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT + 34 + + NULLIF ( + 56, - COUNT( * ) * - + COUNT( + 58 ) + + - 94 - 33 ) + + 22
----
112

skipif mysql # not compatible
query I rowsort label-6104
SELECT + 34 + + NULLIF ( + 56, - COUNT ( * ) * - + COUNT ( + 58 ) + + - 94 - 33 ) + + 22
----
112

query I rowsort
SELECT + 93 * + + ( + 44 )
----
4092

query I rowsort
SELECT ALL - 78 * + 91
----
-7098

query I rowsort
SELECT - CASE 35 WHEN - + 82 + - 22 * + - 67 * - + 54 THEN 28 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 66 * + 98
----
6468

query I rowsort
SELECT - + 78 + 34
----
-44

query I rowsort
SELECT ALL + 9 * + + 32 col2
----
288

query II rowsort
SELECT ALL + ( 2 ) col0, + 93 col1
----
2
93

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

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

query I rowsort
SELECT ALL - 66 * + 18 + - 26 + - 35 + - - 37 - 62 + + NULLIF ( - - 90, - + 69 ) + + 43
----
-1141

query I rowsort
SELECT ALL + + 82 * - 67
----
-5494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6115
SELECT - 98 * 55 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6116
SELECT + ( COUNT( * ) ) + 64 DIV 22 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6116
SELECT + ( COUNT ( * ) ) + 64 / 22 AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6117
SELECT DISTINCT + 15 * 93, + 35 + 32 * - + NULLIF ( - - MAX( DISTINCT - - 59 ), - + MIN( DISTINCT 0 ) ) AS col1
----
1395
-1853

skipif mysql # not compatible
query II rowsort label-6117
SELECT DISTINCT + 15 * 93, + 35 + 32 * - + NULLIF ( - - MAX ( DISTINCT - - 59 ), - + MIN ( DISTINCT 0 ) ) AS col1
----
1395
-1853

onlyif mysql # DIV for integer division: 
query I rowsort label-6118
SELECT DISTINCT + - 15 DIV - 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT + - 15 / - 47 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT ALL + + MIN( ALL - 16 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL + + MIN ( ALL - 16 ) AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6120
SELECT ALL + + CAST( 55 AS SIGNED ) * - 8
----
-440

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL + + CAST ( 55 AS INTEGER ) * - 8
----
-440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6121
SELECT - - 77 * + 42 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6121
SELECT - - 77 * + 42 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 40 * - 13 AS col0
----
520

query I rowsort
SELECT ALL - - 78 * 5 * + 8 * + + 30
----
93600

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT COALESCE ( + 19, + - 31 * 38 + + + 95 - 0 + + CASE + 5 WHEN + 86 * - NULLIF ( + 72, - 97 ) / - 63 + - 7 - 41 THEN 18 WHEN + 22 + - 69 * 42 THEN 95 ELSE + 17 + 47 END, - 80 * + MIN( - 16 ) )
----
19

skipif mysql # not compatible
query I rowsort label-6124
SELECT COALESCE ( + 19, + - 31 * 38 + + + 95 - 0 + + CASE + 5 WHEN + 86 * - NULLIF ( + 72, - 97 ) / - 63 + - 7 - 41 THEN 18 WHEN + 22 + - 69 * 42 THEN 95 ELSE + 17 + 47 END, - 80 * + MIN ( - 16 ) )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-6125
SELECT + - 27 DIV + + 48 + + - 87 col1
----
-87

skipif mysql # not compatible
query I rowsort label-6125
SELECT + - 27 / + + 48 + + - 87 col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT ALL - 15 * - 20 * - 71 + COUNT( * ) AS col1
----
-21299

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL - 15 * - 20 * - 71 + COUNT ( * ) AS col1
----
-21299

query I rowsort
SELECT + 82 * - 8 - 74 * - - 9
----
-1322

query I rowsort
SELECT + + ( 34 ) * + 64 * + 72 + + 74 AS col2
----
156746

query II rowsort
SELECT ALL + 66 AS col0, 69 AS col0
----
66
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT + ( + NULLIF ( - - 56, COUNT( * ) + 81 - - 97 - 45 ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6130
SELECT + ( + NULLIF ( - - 56, COUNT ( * ) + 81 - - 97 - 45 ) ) AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6131
SELECT DISTINCT - MAX( ALL + CAST( + 66 AS SIGNED ) ) * COUNT( * ) + - 93 + + + COUNT( * ) AS col2, + 8
----
-158
8

skipif mysql # not compatible
query II rowsort label-6131
SELECT DISTINCT - MAX ( ALL + CAST ( + 66 AS INTEGER ) ) * COUNT ( * ) + - 93 + + + COUNT ( * ) AS col2, + 8
----
-158
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6132
SELECT ALL + COUNT( * ) * + + ( 26 ) + - - ( - - 1 ) * 31 AS col1, + 44 + + 31 AS col1
----
57
75

skipif mysql # not compatible
query II rowsort label-6132
SELECT ALL + COUNT ( * ) * + + ( 26 ) + - - ( - - 1 ) * 31 AS col1, + 44 + + 31 AS col1
----
57
75

query I rowsort
SELECT ALL ( 50 ) col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6134
SELECT 81 * + - 48 - CAST( NULL AS SIGNED ) AS col2
----
NULL

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

query I rowsort
SELECT DISTINCT 76 + ( 41 )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT ALL COALESCE ( 8, - COUNT( * ), - COUNT( * ) ) + - - 48 col2
----
56

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL COALESCE ( 8, - COUNT ( * ), - COUNT ( * ) ) + - - 48 col2
----
56

query I rowsort
SELECT - 17 + - + 79 AS col0
----
-96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6139
SELECT + CASE + - ( - - 80 ) WHEN + 40 THEN - CAST( NULL AS SIGNED ) ELSE - 24 * + + ( + 32 ) * - 40 + + + 44 + 94 END - - 18
----
30876

skipif mysql # not compatible
query I rowsort label-6139
SELECT + CASE + - ( - - 80 ) WHEN + 40 THEN - CAST ( NULL AS INTEGER ) ELSE - 24 * + + ( + 32 ) * - 40 + + + 44 + 94 END - - 18
----
30876

query II rowsort
SELECT ALL 83 AS col1, - 28 AS col0
----
83
-28

query II rowsort
SELECT 60 AS col0, - 33
----
60
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-6142
SELECT 68, + ( - - MAX( ALL - - 46 ) ) * COUNT( * ) col0
----
68
46

skipif mysql # not compatible
query II rowsort label-6142
SELECT 68, + ( - - MAX ( ALL - - 46 ) ) * COUNT ( * ) col0
----
68
46

query I rowsort
SELECT ALL 57 - - - 25
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6144
SELECT DISTINCT 45 AS col1, COUNT( * ) * + ( + + 31 ) * MAX( ALL - 97 ) * - 26 * + - COUNT( * )
----
45
-78182

skipif mysql # not compatible
query II rowsort label-6144
SELECT DISTINCT 45 AS col1, COUNT ( * ) * + ( + + 31 ) * MAX ( ALL - 97 ) * - 26 * + - COUNT ( * )
----
45
-78182

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6146
SELECT ALL + 44 - + + CASE COUNT( * ) WHEN - - 56 THEN - ( + + ( - + 43 ) ) + + 8 ELSE NULL END AS col1, - 23
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-6146
SELECT ALL + 44 - + + CASE COUNT ( * ) WHEN - - 56 THEN - ( + + ( - + 43 ) ) + + 8 ELSE NULL END AS col1, - 23
----
NULL
-23

query I rowsort
SELECT + 16 * 45
----
720

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

skipif mysql # not compatible
query I rowsort label-6148
SELECT + 56 + ( - COUNT ( * ) ) AS col1
----
55

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

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

query II rowsort
SELECT - - 7, + 78 AS col1
----
7
78

query I rowsort
SELECT DISTINCT 75 * - + 27 + - ( + ( + + 97 ) ) AS col1
----
-2122

onlyif mysql # aggregate syntax: 
query II rowsort label-6152
SELECT DISTINCT + 4 AS col0, 80 * ( - - NULLIF ( - COUNT( * ), 86 / - 71 + + CASE 71 WHEN - - 45 THEN + - 80 WHEN - AVG ( + 65 ) THEN 59 WHEN 20 THEN 57 ELSE 82 * 59 + + 88 END ) ) AS col2
----
4
-80

skipif mysql # not compatible
query II rowsort label-6152
SELECT DISTINCT + 4 AS col0, 80 * ( - - NULLIF ( - COUNT ( * ), 86 / - 71 + + CASE 71 WHEN - - 45 THEN + - 80 WHEN - AVG ( + 65 ) THEN 59 WHEN 20 THEN 57 ELSE 82 * 59 + + 88 END ) ) AS col2
----
4
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6153
SELECT + CAST( - 48 AS SIGNED ) + COUNT( * ) * 38, 3 + - 20 AS col0
----
-10
-17

skipif mysql # not compatible
query II rowsort label-6153
SELECT + CAST ( - 48 AS INTEGER ) + COUNT ( * ) * 38, 3 + - 20 AS col0
----
-10
-17

query I rowsort
SELECT + ( + 61 ) * 54 + + 62
----
3356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6155
SELECT - - ( + ( - 15 ) ) - 26 + CASE - CAST( NULL AS SIGNED ) WHEN - + MAX( ALL - 77 ) THEN NULL WHEN + ( + + 10 ) THEN - 68 - + 0 + COUNT( * ) ELSE COUNT( DISTINCT 80 ) END
----
-40

skipif mysql # not compatible
query I rowsort label-6155
SELECT - - ( + ( - 15 ) ) - 26 + CASE - CAST ( NULL AS INTEGER ) WHEN - + MAX ( ALL - 77 ) THEN NULL WHEN + ( + + 10 ) THEN - 68 - + 0 + COUNT ( * ) ELSE COUNT ( DISTINCT 80 ) END
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6156
SELECT - CAST( + 67 AS SIGNED ) * - 94 * - - 96 + + 59
----
604667

skipif mysql # not compatible
query I rowsort label-6156
SELECT - CAST ( + 67 AS INTEGER ) * - 94 * - - 96 + + 59
----
604667

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

query II rowsort
SELECT - 77 + + 98 AS col1, + 27 AS col1
----
21
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT ALL + MIN( - - 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL + MIN ( - - 59 ) AS col1
----
59

query I rowsort
SELECT DISTINCT - 14 * + 41 + + 68 AS col2
----
-506

query I rowsort
SELECT ALL - 50 + 4
----
-46

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6163
SELECT COUNT( * ) + + 67 AS col0, 88 col2
----
68
88

skipif mysql # not compatible
query II rowsort label-6163
SELECT COUNT ( * ) + + 67 AS col0, 88 col2
----
68
88

query II rowsort
SELECT 17 * + 27 * - NULLIF ( 58, - 77 ) AS col2, 72 * 75 * + 18 col2
----
-26622
97200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6165
SELECT 33 * CASE 46 WHEN + + COALESCE ( + 14, - - 71 ) THEN + 31 * - 86 * - 42 * + - 41 + - - 66 / - - 88 - + - 17 + + 88 WHEN CASE + 45 WHEN + 34 THEN - 64 + 15 WHEN 29 THEN + COUNT( * ) ELSE 9 * ( - ( + 46 ) ) END THEN NULL WHEN - 12 * - 22 THEN NULL WHEN 29 THEN CAST( NULL AS DECIMAL ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT 33 * CASE 46 WHEN + + COALESCE ( + 14, - - 71 ) THEN + 31 * - 86 * - 42 * + - 41 + - - 66 / - - 88 - + - 17 + + 88 WHEN CASE + 45 WHEN + 34 THEN - 64 + 15 WHEN 29 THEN + COUNT ( * ) ELSE 9 * ( - ( + 46 ) ) END THEN NULL WHEN - 12 * - 22 THEN NULL WHEN 29 THEN CAST ( NULL AS REAL ) END AS col1
----
NULL

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

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

query I rowsort
SELECT 58 + + + 83 * + - 11 AS col1
----
-855

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6168
SELECT ALL + 42 * - 78 AS col2, + 53 * + - ( 94 ) / - CAST( NULL AS DECIMAL ) * + 57 + + - 23 AS col2
----
-3276
NULL

skipif mysql # not compatible
query II rowsort label-6168
SELECT ALL + 42 * - 78 AS col2, + 53 * + - ( 94 ) / - CAST ( NULL AS REAL ) * + 57 + + - 23 AS col2
----
-3276
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6169
SELECT DISTINCT 80 * COUNT( * ), + 40 AS col1
----
80
40

skipif mysql # not compatible
query II rowsort label-6169
SELECT DISTINCT 80 * COUNT ( * ), + 40 AS col1
----
80
40

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6171
SELECT - 14 * + + 22 * + 76 + - + 18, - COUNT( * ) DIV + 2 AS col1
----
-23426
0

skipif mysql # not compatible
query II rowsort label-6171
SELECT - 14 * + + 22 * + 76 + - + 18, - COUNT ( * ) / + 2 AS col1
----
-23426
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL - ( COUNT( * ) ) * ( MAX( DISTINCT 1 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL - ( COUNT ( * ) ) * ( MAX ( DISTINCT 1 ) ) col1
----
-1

query I rowsort
SELECT + 53 * + + 57
----
3021

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6174
SELECT MAX( DISTINCT - COALESCE ( + + 3, + 79 + - 24 DIV - 22 ) ) + 89 * + - COUNT( + 51 )
----
-92

skipif mysql # not compatible
query I rowsort label-6174
SELECT MAX ( DISTINCT - COALESCE ( + + 3, + 79 + - 24 / - 22 ) ) + 89 * + - COUNT ( + 51 )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-6175
SELECT + 80 DIV 32
----
2

skipif mysql # not compatible
query I rowsort label-6175
SELECT + 80 / 32
----
2

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

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL - 21 * - - CAST ( NULL AS INTEGER ) * - 24
----
NULL

query I rowsort
SELECT 39 + + 5 AS col0
----
44

query I rowsort
SELECT DISTINCT - 88 + + 77 + - - 46 AS col2
----
35

query I rowsort
SELECT ALL 73 + 67 - + 81 AS col2
----
59

onlyif mysql # DIV for integer division: 
query II rowsort label-6180
SELECT 32 DIV 58, 60 AS col1
----
0
60

skipif mysql # not compatible
query II rowsort label-6180
SELECT 32 / 58, 60 AS col1
----
0
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT ALL ( - - 28 ) + + - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL ( - - 28 ) + + - COUNT ( * )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6182
SELECT DISTINCT - 38 DIV - NULLIF ( + NULLIF ( - ( + 31 ), 31 ), + 16 ) + ( NULLIF ( 26, 62 * 79 + - ( - 51 ) + 15 ) )
----
25

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT - 38 / - NULLIF ( + NULLIF ( - ( + 31 ), 31 ), + 16 ) + ( NULLIF ( 26, 62 * 79 + - ( - 51 ) + 15 ) )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6183
SELECT + COALESCE ( + COUNT( * ), CAST( + - 42 AS SIGNED ), + 74 DIV + - COUNT( - - 90 ) + - 71 * - 97 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6183
SELECT + COALESCE ( + COUNT ( * ), CAST ( + - 42 AS INTEGER ), + 74 / + - COUNT ( - - 90 ) + - 71 * - 97 ) AS col0
----
1

query I rowsort
SELECT - 94 * + - 94 + 14
----
8850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6185
SELECT ( + + 4 ) DIV 65 DIV + - COUNT( * ) * - 36 + - 84 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-6185
SELECT ( + + 4 ) / 65 / + - COUNT ( * ) * - 36 + - 84 AS col0
----
-84

query I rowsort
SELECT AVG ( DISTINCT - + CASE - - 1 WHEN - 77 THEN + - 1 END ) / - 61 + + AVG ( DISTINCT 24 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6187
SELECT + + COUNT( NULLIF ( + 89, - 2 ) ), 80 * + CAST( NULL AS DECIMAL ) / MAX( - + 11 ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6187
SELECT + + COUNT ( NULLIF ( + 89, - 2 ) ), 80 * + CAST ( NULL AS REAL ) / MAX ( - + 11 ) AS col1
----
1
NULL

query I rowsort
SELECT ALL + 14 + - 95 + 33
----
-48

query II rowsort
SELECT + 48, + 1 col1
----
48
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT DISTINCT - COUNT( - - 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT - COUNT ( - - 51 )
----
-1

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6193
SELECT DISTINCT - 4 AS col0, - COUNT( + 78 ) AS col0
----
-4
-1

skipif mysql # not compatible
query II rowsort label-6193
SELECT DISTINCT - 4 AS col0, - COUNT ( + 78 ) AS col0
----
-4
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT DISTINCT - MIN( 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT - MIN ( 24 )
----
-24

query I rowsort
SELECT 52 * + 28 AS col2
----
1456

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6196
SELECT ALL - COUNT( DISTINCT + - CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL - COUNT ( DISTINCT + - CAST ( NULL AS REAL ) )
----
0

query II rowsort
SELECT + 23, 88 AS col1
----
23
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT ALL - 19 - SUM( DISTINCT - 31 )
----
12

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL - 19 - SUM ( DISTINCT - 31 )
----
12

query I rowsort
SELECT 42 * + 8
----
336

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT + 15 * - 19 - + + COUNT( * )
----
-286

skipif mysql # not compatible
query I rowsort label-6201
SELECT + 15 * - 19 - + + COUNT ( * )
----
-286

query I rowsort
SELECT 61 - - 48 AS col1
----
109

query I rowsort
SELECT ALL - NULLIF ( + + COALESCE ( - 14, + - 85 + + - 90 ), - + 98 ) * - 24 AS col0
----
-336

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

skipif mysql # not compatible
query I rowsort label-6204
SELECT 68 * - - COUNT ( * )
----
68

query I rowsort
SELECT DISTINCT - 1 * 12 AS col2
----
-12

query I rowsort
SELECT ALL + 47 * - + 26
----
-1222

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6208
SELECT - 46 AS col2, 91 * - COUNT( * )
----
-46
-91

skipif mysql # not compatible
query II rowsort label-6208
SELECT - 46 AS col2, 91 * - COUNT ( * )
----
-46
-91

query I rowsort
SELECT + 42 + + 30 * 82 AS col0
----
2502

query I rowsort
SELECT DISTINCT - 92 + + 60
----
-32

query II rowsort
SELECT - + 23 col2, 45 * - + 56 AS col0
----
-23
-2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6212
SELECT ALL 18 + - CAST( NULL AS SIGNED ) * + 8 * MIN( DISTINCT - 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL 18 + - CAST ( NULL AS INTEGER ) * + 8 * MIN ( DISTINCT - 98 ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6214
SELECT - NULLIF ( + COUNT( * ), + 41 - COUNT( * ) + + CAST( + 92 AS SIGNED ) * - - CASE 12 WHEN + + COUNT( + 41 ) THEN + COUNT( * ) END * + 40 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6214
SELECT - NULLIF ( + COUNT ( * ), + 41 - COUNT ( * ) + + CAST ( + 92 AS INTEGER ) * - - CASE 12 WHEN + + COUNT ( + 41 ) THEN + COUNT ( * ) END * + 40 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT ALL - MIN( + 19 ) + MAX( + 39 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL - MIN ( + 19 ) + MAX ( + 39 ) AS col0
----
20

query I rowsort
SELECT ALL - + 71 + - - 28 AS col0
----
-43

query I rowsort
SELECT 77 * 33 + - 16
----
2525

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT + MAX( DISTINCT + - ( + 83 ) ) + - + 99
----
-182

skipif mysql # not compatible
query I rowsort label-6218
SELECT + MAX ( DISTINCT + - ( + 83 ) ) + - + 99
----
-182

query II rowsort
SELECT 1 AS col1, + ( + + 33 ) col0
----
1
33

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT - 50 DIV 35 col1
----
-1

skipif mysql # not compatible
query I rowsort label-6220
SELECT - 50 / 35 col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6221
SELECT COALESCE ( + 16, - + 40 * CAST( NULL AS SIGNED ) * - 52 ) DIV + - 64 - 2 + + 8 + - COUNT( * ) * - 4
----
10

skipif mysql # not compatible
query I rowsort label-6221
SELECT COALESCE ( + 16, - + 40 * CAST ( NULL AS INTEGER ) * - 52 ) / + - 64 - 2 + + 8 + - COUNT ( * ) * - 4
----
10

query I rowsort
SELECT DISTINCT - 32 * + 73
----
-2336

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6224
SELECT ALL 47 DIV + + 11 + + CASE + 41 WHEN - - 96 THEN NULLIF ( + COUNT( * ), + + 44 ) - + - 34 + + + 23 + COUNT( * ) * + + 59 WHEN - 35 + 23 * 56 * 24 THEN NULL WHEN - COUNT( * ) + 39 THEN NULL WHEN - 55 * 53 THEN NULL ELSE + 12 + + 24 END
----
40

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL 47 / + + 11 + + CASE + 41 WHEN - - 96 THEN NULLIF ( + COUNT ( * ), + + 44 ) - + - 34 + + + 23 + COUNT ( * ) * + + 59 WHEN - 35 + 23 * 56 * 24 THEN NULL WHEN - COUNT ( * ) + 39 THEN NULL WHEN - 55 * 53 THEN NULL ELSE + 12 + + 24 END
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6225
SELECT ALL + COUNT( * ) * + 61 - + ( - COUNT( * ) ), 20 AS col1
----
62
20

skipif mysql # not compatible
query II rowsort label-6225
SELECT ALL + COUNT ( * ) * + 61 - + ( - COUNT ( * ) ), 20 AS col1
----
62
20

query II rowsort
SELECT ALL + 66, 8 AS col0
----
66
8

query I rowsort
SELECT DISTINCT 83 * 27 * - + 85 AS col2
----
-190485

query I rowsort
SELECT ALL 81 * + 10 - - 98 AS col1
----
908

query I rowsort
SELECT + NULLIF ( + 37, - 46 ) AS col0
----
37

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6231
SELECT ALL NULLIF ( - MIN( + ( + CAST( NULL AS DECIMAL ) ) ), - + 95 ) / 9
----
NULL

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL NULLIF ( - MIN ( + ( + CAST ( NULL AS REAL ) ) ), - + 95 ) / 9
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT 23 * - + 15 + - MAX( DISTINCT 67 )
----
-412

skipif mysql # not compatible
query I rowsort label-6233
SELECT 23 * - + 15 + - MAX ( DISTINCT 67 )
----
-412

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

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

query I rowsort
SELECT ALL - 27 * - 67 - + 21 AS col2
----
1788

onlyif mysql # aggregate syntax: 
query II rowsort label-6236
SELECT + 70 * + COUNT( * ) AS col2, + MIN( ALL + 68 ) * + - 7 - + - 87 - 12
----
70
-401

skipif mysql # not compatible
query II rowsort label-6236
SELECT + 70 * + COUNT ( * ) AS col2, + MIN ( ALL + 68 ) * + - 7 - + - 87 - 12
----
70
-401

onlyif mysql # DIV for integer division: 
query II rowsort label-6237
SELECT ALL + 78 AS col2, - 35 DIV + 76
----
78
0

skipif mysql # not compatible
query II rowsort label-6237
SELECT ALL + 78 AS col2, - 35 / + 76
----
78
0

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT DISTINCT 5 * COUNT( ALL - 47 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT 5 * COUNT ( ALL - 47 ) AS col0
----
5

query I rowsort
SELECT 60 * - - 27 + - - 24
----
1644

query I rowsort
SELECT - 34 * + 24
----
-816

query I rowsort
SELECT - ( + 5 ) + - + 35 + 22 * 31
----
642

onlyif mysql # aggregate syntax: 
query II rowsort label-6245
SELECT ALL + COUNT( * ) AS col0, 70 * + + 44
----
1
3080

skipif mysql # not compatible
query II rowsort label-6245
SELECT ALL + COUNT ( * ) AS col0, 70 * + + 44
----
1
3080

query I rowsort
SELECT + 80 * + 64 AS col0
----
5120

onlyif mysql # aggregate syntax: 
query II rowsort label-6247
SELECT ALL COUNT( * ), - 63 + 59 AS col2
----
1
-4

skipif mysql # not compatible
query II rowsort label-6247
SELECT ALL COUNT ( * ), - 63 + 59 AS col2
----
1
-4

query I rowsort
SELECT - 5 * - 43
----
215

query I rowsort
SELECT DISTINCT + - 73 * - 18 AS col1
----
1314

query I rowsort
SELECT DISTINCT + 62 + 16
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-6251
SELECT - - 93 + + 79 AS col2, CASE - 23 WHEN + COUNT( * ) THEN + - 65 ELSE CASE - 91 WHEN - MIN( DISTINCT + 5 ) * + - 58 * - 85 + + 57 + + + COUNT( * ) / + 62 THEN - 24 WHEN - 95 + 29 THEN NULL END + 19 * + 26 END
----
172
NULL

skipif mysql # not compatible
query II rowsort label-6251
SELECT - - 93 + + 79 AS col2, CASE - 23 WHEN + COUNT ( * ) THEN + - 65 ELSE CASE - 91 WHEN - MIN ( DISTINCT + 5 ) * + - 58 * - 85 + + 57 + + + COUNT ( * ) / + 62 THEN - 24 WHEN - 95 + 29 THEN NULL END + 19 * + 26 END
----
172
NULL

query I rowsort
SELECT DISTINCT - 88 + ( - + 43 ) AS col1
----
-131

onlyif mysql # aggregate syntax: 
query II rowsort label-6253
SELECT ALL 57 AS col1, + 95 + + - COUNT( * )
----
57
94

skipif mysql # not compatible
query II rowsort label-6253
SELECT ALL 57 AS col1, + 95 + + - COUNT ( * )
----
57
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT DISTINCT + + MIN( 90 ) * 14 AS col0
----
1260

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT + + MIN ( 90 ) * 14 AS col0
----
1260

query I rowsort
SELECT DISTINCT - 7 + + 99 AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6256
SELECT + - 49 * CAST( - 36 AS SIGNED ) AS col2
----
1764

skipif mysql # not compatible
query I rowsort label-6256
SELECT + - 49 * CAST ( - 36 AS INTEGER ) AS col2
----
1764

onlyif mysql # aggregate syntax: 
query II rowsort label-6257
SELECT ALL 41 AS col0, + MIN( - - ( + 66 ) )
----
41
66

skipif mysql # not compatible
query II rowsort label-6257
SELECT ALL 41 AS col0, + MIN ( - - ( + 66 ) )
----
41
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT - 38 + - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-6258
SELECT - 38 + - COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT - + 74 - - + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-6259
SELECT - + 74 - - + COUNT ( * )
----
-73

query II rowsort
SELECT 97 AS col2, + 93 + 57 AS col0
----
97
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT - 21 + - - NULLIF ( + COUNT( + 65 ), + 59 ) + - 61 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-6261
SELECT - 21 + - - NULLIF ( + COUNT ( + 65 ), + 59 ) + - 61 AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT DISTINCT - COUNT( * ) + 73 + 13
----
85

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT - COUNT ( * ) + 73 + 13
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6263
SELECT ALL + CASE CASE + - ( 73 ) WHEN 0 THEN + 23 WHEN - + ( - - 39 ) - + 37 * + + CAST( - 1 AS SIGNED ) + - 63 THEN + - 86 END WHEN + ( + 12 ) + - 39 THEN 78 - 18 END / - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL + CASE CASE + - ( 73 ) WHEN 0 THEN + 23 WHEN - + ( - - 39 ) - + 37 * + + CAST ( - 1 AS INTEGER ) + - 63 THEN + - 86 END WHEN + ( + 12 ) + - 39 THEN 78 - 18 END / - 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT + 35 + - + COUNT( + - 33 ) + + - ( + 21 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6264
SELECT + 35 + - + COUNT ( + - 33 ) + + - ( + 21 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT ALL - + 68 + 55 * + 29 * COUNT( * )
----
1527

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL - + 68 + 55 * + 29 * COUNT ( * )
----
1527

onlyif mysql # aggregate syntax: 
query II rowsort label-6266
SELECT DISTINCT - 86 - - - 63, 22 + - 36 * + MAX( ALL - 10 ) + - - 82 AS col1
----
-149
464

skipif mysql # not compatible
query II rowsort label-6266
SELECT DISTINCT - 86 - - - 63, 22 + - 36 * + MAX ( ALL - 10 ) + - - 82 AS col1
----
-149
464

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT - MAX( + 1 ) * - 87
----
87

skipif mysql # not compatible
query I rowsort label-6268
SELECT - MAX ( + 1 ) * - 87
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-6269
SELECT DISTINCT - COUNT( * ) * 10 AS col0, 14
----
-10
14

skipif mysql # not compatible
query II rowsort label-6269
SELECT DISTINCT - COUNT ( * ) * 10 AS col0, 14
----
-10
14

query I rowsort
SELECT DISTINCT + ( - ( + 75 ) ) * + - 40 + - 37 + + 74 AS col2
----
3037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6271
SELECT + 33 / + + 70 + 40 + + + 90 + - 23 / + - 46 * - - 45 * - - 48 * - + AVG ( DISTINCT 38 ) + + - CAST( NULL AS SIGNED ) - - CASE - - 11 WHEN - - 88 + + 86 * + - 14 + - 75 * 25 THEN 83 * 85 WHEN + 69 THEN 38 END * + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6271
SELECT + 33 / + + 70 + 40 + + + 90 + - 23 / + - 46 * - - 45 * - - 48 * - + AVG ( DISTINCT 38 ) + + - CAST ( NULL AS INTEGER ) - - CASE - - 11 WHEN - - 88 + + 86 * + - 14 + - 75 * 25 THEN 83 * 85 WHEN + 69 THEN 38 END * + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT ALL NULLIF ( + 54, COUNT( * ) ) * 57 AS col1
----
3078

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL NULLIF ( + 54, COUNT ( * ) ) * 57 AS col1
----
3078

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT + 76 + - + COUNT( * ) * - 25
----
101

skipif mysql # not compatible
query I rowsort label-6273
SELECT + 76 + - + COUNT ( * ) * - 25
----
101

query I rowsort
SELECT ALL + ( NULLIF ( ( + 1 ), + 36 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6275
SELECT + NULLIF ( - - 38, - 38 * - + NULLIF ( + 23, + + SUM( ALL - - 70 ) ) - + - 14 * 94 ) * 39 + - + 80 - - + ( 45 ) DIV - 35 + 68 + 94 + + - 45 * + 11 AS col0
----
1068

skipif mysql # not compatible
query I rowsort label-6275
SELECT + NULLIF ( - - 38, - 38 * - + NULLIF ( + 23, + + SUM ( ALL - - 70 ) ) - + - 14 * 94 ) * 39 + - + 80 - - + ( 45 ) / - 35 + 68 + 94 + + - 45 * + 11 AS col0
----
1068

onlyif mysql # DIV for integer division: 
query I rowsort label-6276
SELECT ALL 40 DIV - + 34
----
-1

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL 40 / - + 34
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6277
SELECT ALL COUNT( * ) * - 87 * - 76 DIV - + COUNT( * ) + 41 AS col2
----
-6571

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL COUNT ( * ) * - 87 * - 76 / - + COUNT ( * ) + 41 AS col2
----
-6571

query I rowsort
SELECT + 22 * + - 50 col2
----
-1100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6279
SELECT - 69 * - - 4 + - + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) + - 49 * - 26 * + 58 * 11 AS col0, - 0 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6279
SELECT - 69 * - - 4 + - + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + - 49 * - 26 * + 58 * 11 AS col0, - 0 AS col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ALL 71 * + - 18 * + ( - 9 ) * 32 - 38 + - - 98 + - ( 58 ) * + 33 * COUNT( * )
----
366210

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL 71 * + - 18 * + ( - 9 ) * 32 - 38 + - - 98 + - ( 58 ) * + 33 * COUNT ( * )
----
366210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6281
SELECT ALL + NULLIF ( CAST( NULLIF ( + - 37, COUNT( * ) ) AS SIGNED ), 75 )
----
-37

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL + NULLIF ( CAST ( NULLIF ( + - 37, COUNT ( * ) ) AS INTEGER ), 75 )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6282
SELECT ALL - + 19 * + CAST( - 83 AS SIGNED ) + + 69 + 14
----
1660

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL - + 19 * + CAST ( - 83 AS INTEGER ) + + 69 + 14
----
1660

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT + - 64 - + MAX( - 85 ) + 40
----
61

skipif mysql # not compatible
query I rowsort label-6283
SELECT + - 64 - + MAX ( - 85 ) + 40
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-6284
SELECT ALL - SUM( - ( - 16 ) ) * + 87 + - 88, 76 AS col0
----
-1480
76

skipif mysql # not compatible
query II rowsort label-6284
SELECT ALL - SUM ( - ( - 16 ) ) * + 87 + - 88, 76 AS col0
----
-1480
76

query I rowsort
SELECT ALL + - 99 * 88 * - - 35 * - - 32 + - 78 AS col2
----
-9757518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6286
SELECT + - 52 * + CASE - 54 WHEN - 90 THEN CAST( NULL AS SIGNED ) WHEN 99 / 32 THEN - COUNT( * ) - - + CASE + 25 WHEN + + 52 THEN - NULLIF ( MIN( DISTINCT - 51 ), + 30 / - + 65 + + 23 + - 91 ) END WHEN - 66 THEN COUNT( * ) ELSE NULL END * 18 + 86 / - 57 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT + - 52 * + CASE - 54 WHEN - 90 THEN CAST ( NULL AS INTEGER ) WHEN 99 / 32 THEN - COUNT ( * ) - - + CASE + 25 WHEN + + 52 THEN - NULLIF ( MIN ( DISTINCT - 51 ), + 30 / - + 65 + + 23 + - 91 ) END WHEN - 66 THEN COUNT ( * ) ELSE NULL END * 18 + 86 / - 57 col2
----
NULL

query I rowsort
SELECT - 96 * - 96 - + - 19 col2
----
9235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6288
SELECT ALL 23 - + CASE 23 WHEN ( - CAST( - 8 AS SIGNED ) ) * - MAX( - 89 ) THEN 13 WHEN 17 * CAST( - COUNT( * ) AS SIGNED ) * - CASE WHEN ( NOT - + NULLIF ( - 49, 25 ) < - 78 ) THEN 66 END * 87 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL 23 - + CASE 23 WHEN ( - CAST ( - 8 AS INTEGER ) ) * - MAX ( - 89 ) THEN 13 WHEN 17 * CAST ( - COUNT ( * ) AS INTEGER ) * - CASE WHEN ( NOT - + NULLIF ( - 49, 25 ) < - 78 ) THEN 66 END * 87 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT + + 37 * - 59 + - ( - NULLIF ( - 6, 71 ) ) + 87 + 11 * - - 39 * + 59 * - - COUNT( * )
----
23209

skipif mysql # not compatible
query I rowsort label-6289
SELECT + + 37 * - 59 + - ( - NULLIF ( - 6, 71 ) ) + 87 + 11 * - - 39 * + 59 * - - COUNT ( * )
----
23209

query I rowsort
SELECT ALL + + 3 * - COALESCE ( + + 64, 52 + ( - 18 ) ) AS col2
----
-192

query II rowsort
SELECT ( + + 87 ), + 1 AS col2
----
87
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6292
SELECT DISTINCT 42 - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT 42 - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + 90 + + ( + 11 ) * 49 + 0 * - 18 - + - 10 col1
----
639

query I rowsort
SELECT ALL + 82 * 82 + 1
----
6725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6295
SELECT ALL + CASE + 68 WHEN + 26 * + CAST( + + COUNT( * ) AS SIGNED ) + + + 81 * MAX( DISTINCT + 45 ) * + 70 + - COALESCE ( 55, - - 68 DIV + 49 + + COUNT( * ) DIV - 86 ) * + 29 + - + CAST( NULL AS DECIMAL ) + + MIN( 99 ) THEN - 71 + + 70 DIV + 39 WHEN 32 THEN NULL ELSE 75 - - 61 END * + NULLIF ( 32 - 82, 82 )
----
-6800

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL + CASE + 68 WHEN + 26 * + CAST ( + + COUNT ( * ) AS INTEGER ) + + + 81 * MAX ( DISTINCT + 45 ) * + 70 + - COALESCE ( 55, - - 68 / + 49 + + COUNT ( * ) / - 86 ) * + 29 + - + CAST ( NULL AS REAL ) + + MIN ( 99 ) THEN - 71 + + 70 / + 39 WHEN 32 THEN NULL ELSE 75 - - 61 END * + NULLIF ( 32 - 82, 82 )
----
-6800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6296
SELECT ALL - - CAST( NULL AS SIGNED ) * + - 42, + 8 * - CAST( + 19 AS SIGNED ) AS col2
----
NULL
-152

skipif mysql # not compatible
query II rowsort label-6296
SELECT ALL - - CAST ( NULL AS INTEGER ) * + - 42, + 8 * - CAST ( + 19 AS INTEGER ) AS col2
----
NULL
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT 26 + COALESCE ( 63, + COUNT( * ) * - 5, - 11 ) * - + 71 AS col1
----
-4447

skipif mysql # not compatible
query I rowsort label-6297
SELECT 26 + COALESCE ( 63, + COUNT ( * ) * - 5, - 11 ) * - + 71 AS col1
----
-4447

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6298
SELECT ALL 1 AS col2, + COUNT( DISTINCT - 93 ) DIV - 41 + + ( 64 )
----
1
64

skipif mysql # not compatible
query II rowsort label-6298
SELECT ALL 1 AS col2, + COUNT ( DISTINCT - 93 ) / - 41 + + ( 64 )
----
1
64

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6300
SELECT 42 - + - 81 DIV + + 36 AS col2, - 23 - + - CASE + 2 WHEN + - 91 THEN - - COUNT( ALL + 91 ) ELSE NULLIF ( - + 49, - - COALESCE ( COALESCE ( + NULLIF ( + + 5, 88 ), + 78 - 66 + COALESCE ( - ( AVG ( ALL - 64 ) ), 72 ) * 83 ), + 60 ) ) END
----
44
-72

skipif mysql # not compatible
query II rowsort label-6300
SELECT 42 - + - 81 / + + 36 AS col2, - 23 - + - CASE + 2 WHEN + - 91 THEN - - COUNT ( ALL + 91 ) ELSE NULLIF ( - + 49, - - COALESCE ( COALESCE ( + NULLIF ( + + 5, 88 ), + 78 - 66 + COALESCE ( - ( AVG ( ALL - 64 ) ), 72 ) * 83 ), + 60 ) ) END
----
44
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT 46 DIV + 10 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6301
SELECT 46 / + 10 AS col0
----
4

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

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

query I rowsort
SELECT + 3 * + 80 + - 17 AS col1
----
223

query I rowsort
SELECT ALL 52 * - 10 AS col1
----
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT DISTINCT - COALESCE ( 99, - 64 + 22 + - 37, - + COUNT( * ) * + 45, + 2 + 14 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT - COALESCE ( 99, - 64 + 22 + - 37, - + COUNT ( * ) * + 45, + 2 + 14 ) AS col2
----
-99

query I rowsort
SELECT 42 + 14 AS col0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6307
SELECT + 23 AS col1, MAX( + ( + - 56 ) ) * + + 87 AS col1
----
23
-4872

skipif mysql # not compatible
query II rowsort label-6307
SELECT + 23 AS col1, MAX ( + ( + - 56 ) ) * + + 87 AS col1
----
23
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT COUNT( - 77 ) * + - 46
----
-46

skipif mysql # not compatible
query I rowsort label-6308
SELECT COUNT ( - 77 ) * + - 46
----
-46

query I rowsort
SELECT ALL + 97 + + 89
----
186

query I rowsort
SELECT ALL + 88 * - 10 AS col2
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT ALL + 97 + + + 26 + + 49 - - 70 + 38 + ( + SUM( ALL 71 ) ) + + 28 - + 56 * - 3
----
547

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL + 97 + + + 26 + + 49 - - 70 + 38 + ( + SUM ( ALL 71 ) ) + + 28 - + 56 * - 3
----
547

query I rowsort
SELECT DISTINCT - 43 + 0 - + 51 + - - 50 AS col0
----
-44

query I rowsort
SELECT - 85 * 89 * + NULLIF ( + 90, - NULLIF ( + 83, - 28 ) ) + 8 * 27 AS col2
----
-680634

onlyif mysql # aggregate syntax: 
query II rowsort label-6314
SELECT + 42 AS col1, - 20 + + - MIN( ALL - 4 )
----
42
-16

skipif mysql # not compatible
query II rowsort label-6314
SELECT + 42 AS col1, - 20 + + - MIN ( ALL - 4 )
----
42
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-6315
SELECT ALL 41 DIV 35 + - - 33
----
34

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL 41 / 35 + - - 33
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6316
SELECT ALL - 21 DIV + 22
----
0

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL - 21 / + 22
----
0

query II rowsort
SELECT - - 1, 72 - - + 64 col1
----
1
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6318
SELECT + 94 + 73 * + - CAST( NULL AS SIGNED ) * - 65 / - NULLIF ( - 49, COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT + 94 + 73 * + - CAST ( NULL AS INTEGER ) * - 65 / - NULLIF ( - 49, COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT - - NULLIF ( + + NULLIF ( - - 24, + 21 ), + 88 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT DISTINCT 73 * NULLIF ( - - 92, + 34 * + 88 * 33 * COUNT( * ) * - 94 + + + COUNT( * ) + 41 ) AS col0
----
6716

skipif mysql # not compatible
query I rowsort label-6320
SELECT DISTINCT 73 * NULLIF ( - - 92, + 34 * + 88 * 33 * COUNT ( * ) * - 94 + + + COUNT ( * ) + 41 ) AS col0
----
6716

query I rowsort
SELECT DISTINCT + 19 - - 15
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6322
SELECT ALL + CAST( - NULLIF ( - + 64, + ( - - 18 ) + 73 * + 57 ) AS SIGNED ) * + 29
----
1856

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL + CAST ( - NULLIF ( - + 64, + ( - - 18 ) + 73 * + 57 ) AS INTEGER ) * + 29
----
1856

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT + 61 * + COUNT( * ) * + 45 * - CASE + 18 WHEN + + 80 THEN + 86 / + - COUNT( * ) WHEN - 98 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT + 61 * + COUNT ( * ) * + 45 * - CASE + 18 WHEN + + 80 THEN + 86 / + - COUNT ( * ) WHEN - 98 THEN NULL END AS col1
----
NULL

query II rowsort
SELECT - 16 AS col0, - 46
----
-16
-46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT 1 + - + ( 79 ) + - COUNT( - ( - 7 ) ) + + ( - 16 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-6326
SELECT 1 + - + ( 79 ) + - COUNT ( - ( - 7 ) ) + + ( - 16 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT ALL CASE - - 65 WHEN - 80 THEN + + COUNT( * ) WHEN - 8 * + 13 THEN NULL ELSE + 29 END
----
29

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL CASE - - 65 WHEN - 80 THEN + + COUNT ( * ) WHEN - 8 * + 13 THEN NULL ELSE + 29 END
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-6328
SELECT ALL - 60 AS col0, COUNT( * ) AS col1
----
-60
1

skipif mysql # not compatible
query II rowsort label-6328
SELECT ALL - 60 AS col0, COUNT ( * ) AS col1
----
-60
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6329
SELECT COUNT( * ) * + COUNT( * ) * - - COUNT( * ) AS col0, 49 / CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6329
SELECT COUNT ( * ) * + COUNT ( * ) * - - COUNT ( * ) AS col0, 49 / CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT - 97 * 97 AS col2
----
-9409

query II rowsort
SELECT DISTINCT + 6 AS col0, + 40
----
6
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6332
SELECT 49 - 67 + + + 24 AS col1, COUNT( * ) AS col0
----
6
1

skipif mysql # not compatible
query II rowsort label-6332
SELECT 49 - 67 + + + 24 AS col1, COUNT ( * ) AS col0
----
6
1

query II rowsort
SELECT 75 AS col1, + 72
----
75
72

query I rowsort
SELECT + 19 + - 7 AS col0
----
12

query I rowsort
SELECT ALL 83 * - + 9 AS col2
----
-747

onlyif mysql # DIV for integer division: 
query I rowsort label-6336
SELECT ALL 29 DIV 50 * - - 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL 29 / 50 * - - 46 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT DISTINCT 64 * + - 87 * + - COUNT( * ) AS col0
----
5568

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT 64 * + - 87 * + - COUNT ( * ) AS col0
----
5568

query I rowsort
SELECT ALL 49 * 25 + + NULLIF ( - - 4, + 33 )
----
1229

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

skipif mysql # not compatible
query I rowsort label-6339
SELECT + MIN ( - 98 )
----
-98

query I rowsort
SELECT 51 * - 82 AS col0
----
-4182

query I rowsort
SELECT ALL - COALESCE ( - 44, - 80 )
----
44

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

query I rowsort
SELECT + 86 / CASE 75 WHEN - + 11 + + 42 THEN - 51 END + + + 25 + 7 * 69 + - - 1 + 98 / - 24 * + AVG ( DISTINCT - + 66 ) * + 76
----
NULL

query I rowsort
SELECT ALL 5 * 71 + - 79 + - CASE - 3 WHEN 37 + 13 THEN + 21 + + 72 WHEN - + 64 THEN NULL END / 67 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6345
SELECT 77 * + - NULLIF ( - + CASE CASE + 56 WHEN 87 THEN - CAST( - 53 AS SIGNED ) + + 73 ELSE NULL END WHEN + 31 + + 50 + + - ( NULLIF ( - - 28, 23 ) ) + + COUNT( * ) * - COUNT( * ) / ( CAST( 68 AS SIGNED ) ) THEN NULL WHEN 19 + 64 THEN + 35 ELSE - CAST( - COUNT( * ) AS SIGNED ) * + 18 + - 36 END, 88 ) AS col1
----
-1386

skipif mysql # not compatible
query I rowsort label-6345
SELECT 77 * + - NULLIF ( - + CASE CASE + 56 WHEN 87 THEN - CAST ( - 53 AS INTEGER ) + + 73 ELSE NULL END WHEN + 31 + + 50 + + - ( NULLIF ( - - 28, 23 ) ) + + COUNT ( * ) * - COUNT ( * ) / ( CAST ( 68 AS INTEGER ) ) THEN NULL WHEN 19 + 64 THEN + 35 ELSE - CAST ( - COUNT ( * ) AS INTEGER ) * + 18 + - 36 END, 88 ) AS col1
----
-1386

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT ALL + ( + - 87 ) * - 18 - - + 91 - + + ( - MAX( + 8 ) ) * + 91 * + 77 * + 12
----
674329

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL + ( + - 87 ) * - 18 - - + 91 - + + ( - MAX ( + 8 ) ) * + 91 * + 77 * + 12
----
674329

query I rowsort
SELECT ALL + - 37 - + 16 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT + 95 + - MIN( - 72 )
----
167

skipif mysql # not compatible
query I rowsort label-6351
SELECT + 95 + - MIN ( - 72 )
----
167

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6353
SELECT ALL - - COUNT( CAST( NULL AS DECIMAL ) ) * - 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL - - COUNT ( CAST ( NULL AS REAL ) ) * - 99 AS col0
----
0

query I rowsort
SELECT ( - 51 ) + + - 92 col0
----
-143

query I rowsort
SELECT + 78 * - - ( + 17 )
----
1326

query I rowsort
SELECT ALL - 15 * + 91 - + 51
----
-1416

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6357
SELECT ALL COALESCE ( 48, - MAX( 21 ) + + - 2 + + 6 + 33 DIV ( - - 2 ) - - - ( - 19 ) * 40 DIV COUNT( * ) * + 0 ) AS col2, CASE + 81 WHEN - MAX( - 22 ) THEN NULL ELSE - 69 END
----
48
-69

skipif mysql # not compatible
query II rowsort label-6357
SELECT ALL COALESCE ( 48, - MAX ( 21 ) + + - 2 + + 6 + 33 / ( - - 2 ) - - - ( - 19 ) * 40 / COUNT ( * ) * + 0 ) AS col2, CASE + 81 WHEN - MAX ( - 22 ) THEN NULL ELSE - 69 END
----
48
-69

query I rowsort
SELECT ALL NULLIF ( 69, - 51 * 56 * - 88 + 30 ) AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6359
SELECT - - 60 + - COALESCE ( + + 89, + + 72 DIV - 86 * CASE COUNT( * ) WHEN + 50 + + - 76 * + + 82 THEN 47 + - MAX( ALL + - ( + + CAST( NULL AS SIGNED ) ) ) ELSE NULL END * + - 96 + - COUNT( * ) + + 52 - - 45, 47 ) + + CASE 77 WHEN + 29 THEN 19 + 11 WHEN COUNT( * ) THEN NULL ELSE + 97 END
----
68

skipif mysql # not compatible
query I rowsort label-6359
SELECT - - 60 + - COALESCE ( + + 89, + + 72 / - 86 * CASE COUNT ( * ) WHEN + 50 + + - 76 * + + 82 THEN 47 + - MAX ( ALL + - ( + + CAST ( NULL AS INTEGER ) ) ) ELSE NULL END * + - 96 + - COUNT ( * ) + + 52 - - 45, 47 ) + + CASE 77 WHEN + 29 THEN 19 + 11 WHEN COUNT ( * ) THEN NULL ELSE + 97 END
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6360
SELECT + + 55 DIV + - 95 + - + 39
----
-39

skipif mysql # not compatible
query I rowsort label-6360
SELECT + + 55 / + - 95 + - + 39
----
-39

query I rowsort
SELECT - + 43 * - 90 AS col0
----
3870

query I rowsort
SELECT - + 85 + - + 74 AS col1
----
-159

query I rowsort
SELECT DISTINCT - 16 * + 17 + - 40 * + - 14 AS col0
----
288

query I rowsort
SELECT + + 5 - + - 99 + + - 92 * + 13 * - NULLIF ( - 40, + ( + - 37 ) + + NULLIF ( + 72, - 2 ) ) AS col0
----
-47736

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6365
SELECT - CAST( NULL AS DECIMAL ) / - NULLIF ( + 94, - 25 / 9 + ( + 4 ) + - - 72 * CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT - CAST ( NULL AS REAL ) / - NULLIF ( + 94, - 25 / 9 + ( + 4 ) + - - 72 * CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT ALL 87 + - - 69 - - + MIN( 13 ) * - - 20 AS col1
----
416

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL 87 + - - 69 - - + MIN ( 13 ) * - - 20 AS col1
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT - MIN( 83 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-6367
SELECT - MIN ( 83 ) AS col1
----
-83

query I rowsort
SELECT DISTINCT 18 + - + ( - 75 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-6369
SELECT + 24 + + 43 + - COUNT( - - 90 ) + COUNT( * ) AS col2, 58 * + 68 + + 40 + 72 + - - 55
----
67
4111

skipif mysql # not compatible
query II rowsort label-6369
SELECT + 24 + + 43 + - COUNT ( - - 90 ) + COUNT ( * ) AS col2, 58 * + 68 + + 40 + 72 + - - 55
----
67
4111

query I rowsort
SELECT ALL 35 + 70 AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT - 29 + - 25 * ( + CASE - 10 WHEN - 0 - - 25 THEN - + 34 END ) * - - 46 + ( COUNT( * ) ) * - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6371
SELECT - 29 + - 25 * ( + CASE - 10 WHEN - 0 - - 25 THEN - + 34 END ) * - - 46 + ( COUNT ( * ) ) * - 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT - MIN( ALL + - 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6372
SELECT - MIN ( ALL + - 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6373
SELECT ALL 17, MAX( DISTINCT 38 ) DIV + - MAX( + 92 ) AS col2
----
17
0

skipif mysql # not compatible
query II rowsort label-6373
SELECT ALL 17, MAX ( DISTINCT 38 ) / + - MAX ( + 92 ) AS col2
----
17
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6374
SELECT + 81 + - 45 + - 41 - - 34 + - ( + - 24 ) + - - 37 DIV - + 99 AS col0, CAST( - 10 AS SIGNED ) - - 94 + + + COALESCE ( + 45, - 17 * + 40 - + + COUNT( * ) + - - CASE 45 WHEN + 97 THEN 28 * - 84 WHEN 87 + - ( - 72 ) * 1 THEN 65 END, ( ( 33 ) ) * COUNT( * ) ) * - 84
----
53
-3696

skipif mysql # not compatible
query II rowsort label-6374
SELECT + 81 + - 45 + - 41 - - 34 + - ( + - 24 ) + - - 37 / - + 99 AS col0, CAST ( - 10 AS INTEGER ) - - 94 + + + COALESCE ( + 45, - 17 * + 40 - + + COUNT ( * ) + - - CASE 45 WHEN + 97 THEN 28 * - 84 WHEN 87 + - ( - 72 ) * 1 THEN 65 END, ( ( 33 ) ) * COUNT ( * ) ) * - 84
----
53
-3696

query I rowsort
SELECT + 87 * - + NULLIF ( - 63, - 59 )
----
5481

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT + CASE 79 WHEN + 36 * 26 THEN + 2 + + MIN( ALL - 29 ) + - + AVG ( - 94 ) * COUNT( * ) * + 47 / + 24 END + + - 72 + - 31 + - NULLIF ( - - 11, 89 ) * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT + CASE 79 WHEN + 36 * 26 THEN + 2 + + MIN ( ALL - 29 ) + - + AVG ( - 94 ) * COUNT ( * ) * + 47 / + 24 END + + - 72 + - 31 + - NULLIF ( - - 11, 89 ) * COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL ( + 37 ) * 67 + - 58 - - + 35 + - 43 * + + 54 * + 49 + - 44 col1
----
-111366

query I rowsort
SELECT + ( - + 31 ) + 48 + - 31 AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-6379
SELECT + COALESCE ( - + 58, + 41 * - 27 DIV + ( + 60 ) * + 89 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-6379
SELECT + COALESCE ( - + 58, + 41 * - 27 / + ( + 60 ) * + 89 ) AS col1
----
-58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6381
SELECT ALL + CASE CAST( + 35 AS SIGNED ) WHEN - + 21 THEN 7 + - - COALESCE ( 34, - CAST( + - 4 AS SIGNED ) + + 69, 66 * 38 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL + CASE CAST ( + 35 AS INTEGER ) WHEN - + 21 THEN 7 + - - COALESCE ( 34, - CAST ( + - 4 AS INTEGER ) + + 69, 66 * 38 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6382
SELECT + 57 * - + 58 + - 21 + - + 72 + 91 DIV - - 88 AS col0
----
-3398

skipif mysql # not compatible
query I rowsort label-6382
SELECT + 57 * - + 58 + - 21 + - + 72 + 91 / - - 88 AS col0
----
-3398

query I rowsort
SELECT + 98 * - ( + CASE + - 57 WHEN + 54 THEN - AVG ( DISTINCT + 29 ) END ) AS col2
----
NULL

query I rowsort
SELECT - 4 + - 58 * - 14 + - 86 AS col2
----
722

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT ALL 10 * + SUM( DISTINCT - 49 ) AS col2
----
-490

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL 10 * + SUM ( DISTINCT - 49 ) AS col2
----
-490

query I rowsort
SELECT - 21 * - - COALESCE ( - 98, - 26 )
----
2058

query I rowsort
SELECT DISTINCT 27 * + 66 AS col1
----
1782

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6388
SELECT - 49 + 35 / - CAST( NULL AS SIGNED ), - 6 + - 39 * - + CAST( NULL AS DECIMAL ) + - + 62
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6388
SELECT - 49 + 35 / - CAST ( NULL AS INTEGER ), - 6 + - 39 * - + CAST ( NULL AS REAL ) + - + 62
----
NULL
NULL

query II rowsort
SELECT - 26, 33 AS col1
----
-26
33

query I rowsort
SELECT - + 25 * + 44 * + 28 * + 60 + - 25 + - - 6 AS col0
----
-1848019

query I rowsort
SELECT - 16 + + 37 AS col2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6392
SELECT - COALESCE ( - - 72, + 26 * - - 1 - + + COUNT( * ) - 25 DIV - + MIN( - 14 ) ) + 56
----
-16

skipif mysql # not compatible
query I rowsort label-6392
SELECT - COALESCE ( - - 72, + 26 * - - 1 - + + COUNT ( * ) - 25 / - + MIN ( - 14 ) ) + 56
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6393
SELECT DISTINCT + + 8, - 65 / CASE + 34 WHEN 40 + - + 5 THEN + 82 * + 96 - - - MAX( - 75 ) - - AVG ( ALL CAST( NULL AS SIGNED ) ) + + 95 WHEN - MIN( DISTINCT - 49 ) * + + 81 * - 95 + - 15 - 44 / - 11 + 27 THEN - NULLIF ( + COUNT( * ), 11 ) ELSE NULL END + 99 AS col2
----
8
NULL

skipif mysql # not compatible
query II rowsort label-6393
SELECT DISTINCT + + 8, - 65 / CASE + 34 WHEN 40 + - + 5 THEN + 82 * + 96 - - - MAX ( - 75 ) - - AVG ( ALL CAST ( NULL AS INTEGER ) ) + + 95 WHEN - MIN ( DISTINCT - 49 ) * + + 81 * - 95 + - 15 - 44 / - 11 + 27 THEN - NULLIF ( + COUNT ( * ), 11 ) ELSE NULL END + 99 AS col2
----
8
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6395
SELECT - 5 + + - 41 - + 34 - + 19 - - 60 * - COALESCE ( - 17, 85 / + COUNT( + + 62 ) * - + 33 ) * + - CASE 31 WHEN 47 + MIN( ALL + 87 ) THEN + - 95 - ( + CAST( + 27 AS SIGNED ) ) ELSE NULL END - 80 / ( - 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6395
SELECT - 5 + + - 41 - + 34 - + 19 - - 60 * - COALESCE ( - 17, 85 / + COUNT ( + + 62 ) * - + 33 ) * + - CASE 31 WHEN 47 + MIN ( ALL + 87 ) THEN + - 95 - ( + CAST ( + 27 AS INTEGER ) ) ELSE NULL END - 80 / ( - 67 )
----
NULL

query I rowsort
SELECT - 79 + 59 + + ( - ( + 48 ) )
----
-68

query I rowsort
SELECT ALL - + 17 * 33
----
-561

query I rowsort
SELECT - 18 * - 93 - 26
----
1648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6399
SELECT ALL + 31 * - + 91 + + + COALESCE ( - + 50, 38 * - 41 + - CAST( NULL AS SIGNED ) + + 44, + 96, + COUNT( * ) ) - - + COALESCE ( - 11, - - COUNT( * ) * + 6 + - 3 + - 89 DIV - 56 ) AS col2
----
-2882

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL + 31 * - + 91 + + + COALESCE ( - + 50, 38 * - 41 + - CAST ( NULL AS INTEGER ) + + 44, + 96, + COUNT ( * ) ) - - + COALESCE ( - 11, - - COUNT ( * ) * + 6 + - 3 + - 89 / - 56 ) AS col2
----
-2882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6400
SELECT - COUNT( * ) AS col1, + COUNT( * ) - + + COUNT( * ) + CAST( NULL AS SIGNED ) * + 71 + 38 AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6400
SELECT - COUNT ( * ) AS col1, + COUNT ( * ) - + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * + 71 + 38 AS col0
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6401
SELECT DISTINCT - CAST( + 26 AS SIGNED ) + 13 * - 17 AS col1
----
-247

skipif mysql # not compatible
query I rowsort label-6401
SELECT DISTINCT - CAST ( + 26 AS INTEGER ) + 13 * - 17 AS col1
----
-247

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6403
SELECT - COUNT( * ) * + COALESCE ( 48, + NULLIF ( - CAST( NULL AS SIGNED ), + + 79 ), 84 ), - 10 * - 51 AS col2
----
-48
510

skipif mysql # not compatible
query II rowsort label-6403
SELECT - COUNT ( * ) * + COALESCE ( 48, + NULLIF ( - CAST ( NULL AS INTEGER ), + + 79 ), 84 ), - 10 * - 51 AS col2
----
-48
510

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT - SUM( - 23 ) col2
----
23

skipif mysql # not compatible
query I rowsort label-6404
SELECT - SUM ( - 23 ) col2
----
23

query I rowsort
SELECT - 29 * - 49
----
1421

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

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

query I rowsort
SELECT + 11 + 51 AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6408
SELECT ALL + 38 DIV - MIN( DISTINCT + 77 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL + 38 / - MIN ( DISTINCT + 77 ) col1
----
0

query II rowsort
SELECT DISTINCT 12, - 54 * + - COALESCE ( - + 15, - 75, - 78 * NULLIF ( - 87, 98 ) + + 13 ) - 69 col0
----
12
-879

query I rowsort
SELECT ALL 93 + + ( - 17 ) AS col1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6411
SELECT DISTINCT + 56 DIV + 27 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT + 56 / + 27 AS col2
----
2

query I rowsort
SELECT ALL 70 + + 11 * - 49
----
-469

query I rowsort
SELECT DISTINCT + 20 * 37 col2
----
740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6414
SELECT - SUM( DISTINCT - CAST( - + 88 AS SIGNED ) ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-6414
SELECT - SUM ( DISTINCT - CAST ( - + 88 AS INTEGER ) ) AS col2
----
-88

query II rowsort
SELECT - ( - 59 ) AS col2, + 7
----
59
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT DISTINCT - + MAX( COALESCE ( - - 53, - + ( - 36 ) ) )
----
-53

skipif mysql # not compatible
query I rowsort label-6416
SELECT DISTINCT - + MAX ( COALESCE ( - - 53, - + ( - 36 ) ) )
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6417
SELECT ALL - COUNT( * ), - COALESCE ( + - 89, COALESCE ( COUNT( * ), - 62 DIV - 61 + - + NULLIF ( - 52, - - 46 * - + COUNT( DISTINCT + 80 ) + - + COUNT( ALL + COALESCE ( 47, + 74 ) ) ) + + - 18 ), - COUNT( * ) ) AS col0
----
-1
89

skipif mysql # not compatible
query II rowsort label-6417
SELECT ALL - COUNT ( * ), - COALESCE ( + - 89, COALESCE ( COUNT ( * ), - 62 / - 61 + - + NULLIF ( - 52, - - 46 * - + COUNT ( DISTINCT + 80 ) + - + COUNT ( ALL + COALESCE ( 47, + 74 ) ) ) + + - 18 ), - COUNT ( * ) ) AS col0
----
-1
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT DISTINCT - 43 * MIN( 42 )
----
-1806

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT - 43 * MIN ( 42 )
----
-1806

onlyif mysql # aggregate syntax: 
query II rowsort label-6419
SELECT ( - 9 ) * 70 + - 98 col2, MAX( ALL - 70 ) AS col1
----
-728
-70

skipif mysql # not compatible
query II rowsort label-6419
SELECT ( - 9 ) * 70 + - 98 col2, MAX ( ALL - 70 ) AS col1
----
-728
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-6420
SELECT 7 DIV 67 + + 7 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6420
SELECT 7 / 67 + + 7 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6421
SELECT - 82 * CAST( NULL AS SIGNED ) * + 89 / + CASE + - 1 WHEN 68 - 69 - - - COUNT( * ) * - ( 57 ) + 95 + + COALESCE ( + + 53, - 55 ) * - - 86 THEN NULL ELSE AVG ( ALL - + 32 ) END + + - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6421
SELECT - 82 * CAST ( NULL AS INTEGER ) * + 89 / + CASE + - 1 WHEN 68 - 69 - - - COUNT ( * ) * - ( 57 ) + 95 + + COALESCE ( + + 53, - 55 ) * - - 86 THEN NULL ELSE AVG ( ALL - + 32 ) END + + - 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6422
SELECT 26 AS col0, + CASE 26 WHEN COUNT( * ) THEN NULL ELSE - + 88 END - + 78
----
26
-166

skipif mysql # not compatible
query II rowsort label-6422
SELECT 26 AS col0, + CASE 26 WHEN COUNT ( * ) THEN NULL ELSE - + 88 END - + 78
----
26
-166

query I rowsort
SELECT 55 + 73 * CASE 55 WHEN + 5 THEN - 20 * + + 81 * - - 5 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6424
SELECT 86 DIV 69 * - 61 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-6424
SELECT 86 / 69 * - 61 AS col2
----
-61

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6427
SELECT ALL - ( + + COALESCE ( + 19, - CASE 61 WHEN + ( - - 71 ) THEN - + 1 * ( - + 15 ) * - 49 WHEN 82 + + 21 + - 44 * + 58 * - - 49 + - - ( - 36 ) * + + 73 * - - 91 * - - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) THEN + 20 WHEN - ( - 51 ) THEN 86 * - 21 ELSE NULL END + + 60 ) ) + COUNT( * ) * 42
----
23

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL - ( + + COALESCE ( + 19, - CASE 61 WHEN + ( - - 71 ) THEN - + 1 * ( - + 15 ) * - 49 WHEN 82 + + 21 + - 44 * + 58 * - - 49 + - - ( - 36 ) * + + 73 * - - 91 * - - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN + 20 WHEN - ( - 51 ) THEN 86 * - 21 ELSE NULL END + + 60 ) ) + COUNT ( * ) * 42
----
23

query I rowsort
SELECT ALL + 83 + - 63
----
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT COALESCE ( 27, + + 18 ) + - + SUM( - 63 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6430
SELECT COALESCE ( 27, + + 18 ) + - + SUM ( - 63 ) AS col0
----
90

query I rowsort
SELECT DISTINCT - 15 + - 82 + + 45
----
-52

query I rowsort
SELECT DISTINCT + 52 * + 10 * + 20
----
10400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6433
SELECT ALL + 43 * + 93 * - - CAST( NULL AS SIGNED ) / - - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL + 43 * + 93 * - - CAST ( NULL AS INTEGER ) / - - 20 AS col1
----
NULL

query I rowsort
SELECT ALL 64 * + 6
----
384

query II rowsort
SELECT ALL - 98 - 58 col1, 24 AS col2
----
-156
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT ALL COALESCE ( + ( - - ( + 25 ) ), - - 35 * 42 + 41 + - 54 + CASE 86 WHEN 91 + - ( + MIN( + 39 ) ) THEN + + 53 WHEN - - 51 THEN NULL ELSE - 50 * - 4 END * - + SUM( DISTINCT + 77 ) ) - + - 72 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL COALESCE ( + ( - - ( + 25 ) ), - - 35 * 42 + 41 + - 54 + CASE 86 WHEN 91 + - ( + MIN ( + 39 ) ) THEN + + 53 WHEN - - 51 THEN NULL ELSE - 50 * - 4 END * - + SUM ( DISTINCT + 77 ) ) - + - 72 AS col0
----
97

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

skipif mysql # not compatible
query I rowsort label-6437
SELECT COUNT ( * ) * - - 56
----
56

query I rowsort
SELECT 86 + ( - - 40 ) * - 37 col2
----
-1394

query I rowsort
SELECT 95 + + + 42 + + 84
----
221

query I rowsort
SELECT 2 * + - 98
----
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-6441
SELECT ALL + 8 DIV - + 26 * - 63
----
0

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL + 8 / - + 26 * - 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT + MAX( DISTINCT - + 56 ) * - + 17 + + + 33 AS col2
----
985

skipif mysql # not compatible
query I rowsort label-6442
SELECT + MAX ( DISTINCT - + 56 ) * - + 17 + + + 33 AS col2
----
985

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT ALL - COALESCE ( + 43, 94, - 68 + + + COUNT( * ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL - COALESCE ( + 43, 94, - 68 + + + COUNT ( * ) ) AS col1
----
-43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL - + 38 * + 71 + + COUNT( * ) + + 94 + + - 34 * - + 77 * - 84
----
-222515

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL - + 38 * + 71 + + COUNT ( * ) + + 94 + + - 34 * - + 77 * - 84
----
-222515

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT - SUM( ALL 22 ) * + 21 AS col2
----
-462

skipif mysql # not compatible
query I rowsort label-6446
SELECT - SUM ( ALL 22 ) * + 21 AS col2
----
-462

query I rowsort
SELECT 91 + + 19 AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT NULLIF ( - MAX( 58 ), + 18 / - 11 )
----
-58

skipif mysql # not compatible
query I rowsort label-6448
SELECT NULLIF ( - MAX ( 58 ), + 18 / - 11 )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6449
SELECT ALL COUNT( * ) + - 45 * CAST( - 33 AS SIGNED ) + - - 47 AS col1
----
1533

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL COUNT ( * ) + - 45 * CAST ( - 33 AS INTEGER ) + - - 47 AS col1
----
1533

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT DISTINCT ( - 7 ) + + + COUNT( 70 )
----
-6

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT ( - 7 ) + + + COUNT ( 70 )
----
-6

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

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

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

skipif mysql # not compatible
query I rowsort label-6452
SELECT 70 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 71 + - 21 * - 32
----
601

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT ALL - COUNT( * ) + - 77 + - 69 * 61
----
-4287

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL - COUNT ( * ) + - 77 + - 69 * 61
----
-4287

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT - 79 * - + 32 + - COUNT( * ) - 14 + + 28 + 30 col2
----
2571

skipif mysql # not compatible
query I rowsort label-6456
SELECT - 79 * - + 32 + - COUNT ( * ) - 14 + + 28 + 30 col2
----
2571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6457
SELECT DISTINCT - 93 * + 59 * - + COUNT( * ), - AVG ( - + 41 ) + - - CASE - 78 WHEN 97 THEN 22 + AVG ( DISTINCT + 19 ) WHEN - CASE CASE + - 96 WHEN - 52 - + 62 THEN NULL WHEN - CAST( NULL AS DECIMAL ) + 39 - - 19 THEN + 32 / + 64 * CAST( NULL AS SIGNED ) END WHEN - 7 * 11 - - 60 THEN - ( CAST( 57 AS SIGNED ) ) * - 98 END THEN + AVG ( DISTINCT + ( 76 ) ) END + 18 / + COUNT( * ) AS col1
----
5487
NULL

skipif mysql # not compatible
query II rowsort label-6457
SELECT DISTINCT - 93 * + 59 * - + COUNT ( * ), - AVG ( - + 41 ) + - - CASE - 78 WHEN 97 THEN 22 + AVG ( DISTINCT + 19 ) WHEN - CASE CASE + - 96 WHEN - 52 - + 62 THEN NULL WHEN - CAST ( NULL AS REAL ) + 39 - - 19 THEN + 32 / + 64 * CAST ( NULL AS INTEGER ) END WHEN - 7 * 11 - - 60 THEN - ( CAST ( 57 AS INTEGER ) ) * - 98 END THEN + AVG ( DISTINCT + ( 76 ) ) END + 18 / + COUNT ( * ) AS col1
----
5487
NULL

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

skipif mysql # not compatible
query I rowsort label-6458
SELECT 72 * + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
-72

query I rowsort
SELECT + 63 * + 31 - + + 25 AS col1
----
1928

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

query I rowsort
SELECT ( - 69 ) + - - 78
----
9

query II rowsort
SELECT 7 col0, - 1 + - 91
----
7
-92

query I rowsort
SELECT ALL 64 * + 6 * - 31
----
-11904

onlyif mysql # aggregate syntax: 
query II rowsort label-6464
SELECT 88 AS col0, MAX( ALL + 40 ) col1
----
88
40

skipif mysql # not compatible
query II rowsort label-6464
SELECT 88 AS col0, MAX ( ALL + 40 ) col1
----
88
40

query I rowsort
SELECT DISTINCT - 66 * + 93
----
-6138

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT CASE - - 85 WHEN - - 61 + - + ( + CASE 79 WHEN - CASE + + 19 WHEN + 43 * + 3 + ( - CASE 98 WHEN 77 + + 35 THEN + 41 / - - 66 + + 78 / + ( - 54 ) * - 77 - - AVG ( + + 11 ) ELSE + 19 - - 61 END ) THEN 54 + AVG ( 13 ) ELSE NULL END + + COALESCE ( 27 + + 31, - 20 * 31, + 51 + 88 ) * - 23 THEN 42 * 55 WHEN + 31 * + COUNT( 10 ) THEN NULL END ) - 0 * - 42 THEN - 94 ELSE + 33 END * 7 AS col2
----
231

skipif mysql # not compatible
query I rowsort label-6466
SELECT CASE - - 85 WHEN - - 61 + - + ( + CASE 79 WHEN - CASE + + 19 WHEN + 43 * + 3 + ( - CASE 98 WHEN 77 + + 35 THEN + 41 / - - 66 + + 78 / + ( - 54 ) * - 77 - - AVG ( + + 11 ) ELSE + 19 - - 61 END ) THEN 54 + AVG ( 13 ) ELSE NULL END + + COALESCE ( 27 + + 31, - 20 * 31, + 51 + 88 ) * - 23 THEN 42 * 55 WHEN + 31 * + COUNT ( 10 ) THEN NULL END ) - 0 * - 42 THEN - 94 ELSE + 33 END * 7 AS col2
----
231

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

skipif mysql # not compatible
query I rowsort label-6467
SELECT - SUM ( + - 40 )
----
40

query II rowsort
SELECT 83, ( 32 ) col2
----
83
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT 21 + + - COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-6469
SELECT 21 + + - COUNT ( * ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT ALL + NULLIF ( 59, + COUNT( 26 ) ) * + - 2 AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL + NULLIF ( 59, + COUNT ( 26 ) ) * + - 2 AS col0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT DISTINCT - NULLIF ( - + COUNT( DISTINCT + - 98 ), 19 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT - NULLIF ( - + COUNT ( DISTINCT + - 98 ), 19 ) AS col1
----
1

query II rowsort
SELECT ALL 73, - 38 AS col0
----
73
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6473
SELECT DISTINCT + 10 + CAST( 55 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-6473
SELECT DISTINCT + 10 + CAST ( 55 AS INTEGER )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6474
SELECT + - 51 - - ( + CAST( NULL AS SIGNED ) ) AS col1, 9
----
NULL
9

skipif mysql # not compatible
query II rowsort label-6474
SELECT + - 51 - - ( + CAST ( NULL AS INTEGER ) ) AS col1, 9
----
NULL
9

query II rowsort
SELECT DISTINCT 40 AS col2, 22 col0
----
40
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6476
SELECT - + 77 * + ( CASE 90 WHEN 94 THEN - ( + - 14 ) WHEN - - 16 THEN + ( + + CAST( + 3 AS SIGNED ) ) / + 9 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6476
SELECT - + 77 * + ( CASE 90 WHEN 94 THEN - ( + - 14 ) WHEN - - 16 THEN + ( + + CAST ( + 3 AS INTEGER ) ) / + 9 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT ALL + - 88 * + MIN( ALL 5 ) * - + 98 + - NULLIF ( 72, + + 44 ) + COALESCE ( - 92, + 2 ) * 68 AS col0
----
36792

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL + - 88 * + MIN ( ALL 5 ) * - + 98 + - NULLIF ( 72, + + 44 ) + COALESCE ( - 92, + 2 ) * 68 AS col0
----
36792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6478
SELECT - + COUNT( * ) DIV 66 * + 91 - 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6478
SELECT - + COUNT ( * ) / 66 * + 91 - 42 AS col0
----
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL 10 * + + 85 + + - MAX( DISTINCT - - 40 ) * 97 - + - 61 + + 36 * 72
----
-377

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL 10 * + + 85 + + - MAX ( DISTINCT - - 40 ) * 97 - + - 61 + + 36 * 72
----
-377

query II rowsort
SELECT 18, - 16 col2
----
18
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT + COALESCE ( 17, + COUNT( DISTINCT - - 47 ) + MAX( DISTINCT - + ( 18 ) ) ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-6482
SELECT + COALESCE ( 17, + COUNT ( DISTINCT - - 47 ) + MAX ( DISTINCT - + ( 18 ) ) ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT ALL - - 68 * + COUNT( * ) * + - 24 + + COUNT( * )
----
-1631

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL - - 68 * + COUNT ( * ) * + - 24 + + COUNT ( * )
----
-1631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6484
SELECT DISTINCT + + ( + 31 ) * - 6 / - 68 / 49 + + 95 * + COUNT( + - 15 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT + + ( + 31 ) * - 6 / - 68 / 49 + + 95 * + COUNT ( + - 15 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT ALL 35 * + + COUNT( * ) + - 6
----
29

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL 35 * + + COUNT ( * ) + - 6
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6486
SELECT - 12 DIV - + ( - ( - MAX( ALL - 75 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-6486
SELECT - 12 / - + ( - ( - MAX ( ALL - 75 ) ) )
----
0

query I rowsort
SELECT DISTINCT - + 68 * 80
----
-5440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6488
SELECT ALL + + 6 * - + 36 * - CAST( + 65 AS SIGNED ) DIV COUNT( * )
----
14040

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL + + 6 * - + 36 * - CAST ( + 65 AS INTEGER ) / COUNT ( * )
----
14040

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT ALL - 32 * SUM( - ( 22 ) ) - + 89
----
615

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL - 32 * SUM ( - ( 22 ) ) - + 89
----
615

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

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

query I rowsort
SELECT + + 20 * + 6
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT ALL COUNT( * ) * 33 - 55 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL COUNT ( * ) * 33 - 55 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT + COALESCE ( 39, MIN( ALL + 39 ) * 88 )
----
39

skipif mysql # not compatible
query I rowsort label-6493
SELECT + COALESCE ( 39, MIN ( ALL + 39 ) * 88 )
----
39

query I rowsort
SELECT + 87 + - 66
----
21

query I rowsort
SELECT + 5 * - ( + 68 )
----
-340

query I rowsort
SELECT + 66 * - - 1 + 60
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6497
SELECT DISTINCT 46 * + + CAST( NULL AS SIGNED ) AS col0, 20 AS col2
----
NULL
20

skipif mysql # not compatible
query II rowsort label-6497
SELECT DISTINCT 46 * + + CAST ( NULL AS INTEGER ) AS col0, 20 AS col2
----
NULL
20

query I rowsort
SELECT + 57 - + 73
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6499
SELECT ALL 63 * + - COALESCE ( - 83, + + 80 * + 85 DIV + - 23 * + - 54, + 68 * + COUNT( * ) )
----
5229

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL 63 * + - COALESCE ( - 83, + + 80 * + 85 / + - 23 * + - 54, + 68 * + COUNT ( * ) )
----
5229

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6501
SELECT ALL SUM( + ( + + CAST( 78 AS SIGNED ) ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL SUM ( + ( + + CAST ( 78 AS INTEGER ) ) ) AS col1
----
78

query I rowsort
SELECT + 45 * - + 25
----
-1125

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT + 63 - - SUM( ALL + 15 ) + COUNT( * ) + + - 33 * 18 + 61 + + + COUNT( * ) AS col2
----
-453

skipif mysql # not compatible
query I rowsort label-6504
SELECT + 63 - - SUM ( ALL + 15 ) + COUNT ( * ) + + - 33 * 18 + 61 + + + COUNT ( * ) AS col2
----
-453

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT ALL - COUNT( * ) + + - 11 * - + 10 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL - COUNT ( * ) + + - 11 * - + 10 AS col1
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6506
SELECT + 98 + + 37 + - 51 - + + 26 AS col0, 54 * + 97 + + ( + + CAST( + + NULLIF ( - 71, - SUM( 24 ) ) AS SIGNED ) ) AS col2
----
58
5167

skipif mysql # not compatible
query II rowsort label-6506
SELECT + 98 + + 37 + - 51 - + + 26 AS col0, 54 * + 97 + + ( + + CAST ( + + NULLIF ( - 71, - SUM ( 24 ) ) AS INTEGER ) ) AS col2
----
58
5167

query I rowsort
SELECT + + 80 + - 26
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6508
SELECT ALL - COALESCE ( - 72, - SUM( 44 ) ) + + CAST( + 89 AS SIGNED )
----
161

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL - COALESCE ( - 72, - SUM ( 44 ) ) + + CAST ( + 89 AS INTEGER )
----
161

query I rowsort
SELECT + NULLIF ( - 67, + 26 + 86 + + - 76 ) + + + 12
----
-55

query I rowsort
SELECT - 16 - + + 66 + - - 97
----
15

query I rowsort
SELECT + 60 + - 93 * 57 AS col0
----
-5241

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT DISTINCT - - 8 * - + SUM( + ( - - 78 ) )
----
-624

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT - - 8 * - + SUM ( + ( - - 78 ) )
----
-624

query I rowsort
SELECT - - ( - - 18 ) + + 3 + + 81 - 17
----
85

query I rowsort
SELECT ALL - 59 * - 80 + 38 col0
----
4758

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6515
SELECT DISTINCT CAST( + - 6 AS SIGNED ) * - ( 7 ) * - 40
----
-1680

skipif mysql # not compatible
query I rowsort label-6515
SELECT DISTINCT CAST ( + - 6 AS INTEGER ) * - ( 7 ) * - 40
----
-1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6516
SELECT 15 / - CAST( NULL AS SIGNED ) + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6516
SELECT 15 / - CAST ( NULL AS INTEGER ) + 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6517
SELECT + - COUNT( * ) * - 7, + SUM( - 46 ) + + - 72 AS col1
----
7
-118

skipif mysql # not compatible
query II rowsort label-6517
SELECT + - COUNT ( * ) * - 7, + SUM ( - 46 ) + + - 72 AS col1
----
7
-118

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

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

query I rowsort
SELECT - + 40 + - - 65 col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6520
SELECT - NULLIF ( - 81, 38 * CASE + ( + + COUNT( - + 78 ) ) WHEN - + 44 THEN NULL ELSE + COUNT( ALL + 98 ) END ) + + 44 * + + COUNT( DISTINCT - + 12 ) DIV - + 98
----
81

skipif mysql # not compatible
query I rowsort label-6520
SELECT - NULLIF ( - 81, 38 * CASE + ( + + COUNT ( - + 78 ) ) WHEN - + 44 THEN NULL ELSE + COUNT ( ALL + 98 ) END ) + + 44 * + + COUNT ( DISTINCT - + 12 ) / - + 98
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6521
SELECT ALL - - 91 DIV - 69 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL - - 91 / - 69 col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6522
SELECT ALL + - CASE COALESCE ( + ( - + CAST( + ( + 43 ) AS SIGNED ) ), + 14 ) WHEN + 43 THEN + 69 WHEN + 5 * 22 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL + - CASE COALESCE ( + ( - + CAST ( + ( + 43 ) AS INTEGER ) ), + 14 ) WHEN + 43 THEN + 69 WHEN + 5 * 22 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT DISTINCT - 10 * 35 * + - 43 * 37 + + + MAX( DISTINCT 13 ) - - 81 AS col0
----
556944

skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT - 10 * 35 * + - 43 * 37 + + + MAX ( DISTINCT 13 ) - - 81 AS col0
----
556944

onlyif mysql # DIV for integer division: 
query II rowsort label-6524
SELECT ALL - 84 * 63 * - - 53 AS col1, + 68 DIV - 45
----
-280476
-1

skipif mysql # not compatible
query II rowsort label-6524
SELECT ALL - 84 * 63 * - - 53 AS col1, + 68 / - 45
----
-280476
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT ALL - 11 / + CASE 19 WHEN + 24 + + ( + 82 ) * + - NULLIF ( + + 88, - - 34 ) - ( + MAX( + 93 ) ) THEN + 13 + + 95 * COUNT( * ) / + - 29 WHEN - - 18 THEN NULL END / COUNT( * ) + - - 16 * 27 - + COALESCE ( 86, - 60 * 0 * 79, + ( + 19 ) - + ( + 53 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL - 11 / + CASE 19 WHEN + 24 + + ( + 82 ) * + - NULLIF ( + + 88, - - 34 ) - ( + MAX ( + 93 ) ) THEN + 13 + + 95 * COUNT ( * ) / + - 29 WHEN - - 18 THEN NULL END / COUNT ( * ) + - - 16 * 27 - + COALESCE ( 86, - 60 * 0 * 79, + ( + 19 ) - + ( + 53 ) )
----
NULL

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

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

query I rowsort
SELECT ALL 23 * 1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT - CASE + ( - COUNT( DISTINCT + 34 ) ) WHEN + SUM( + 46 ) THEN NULL WHEN - + 79 + - AVG ( DISTINCT + - 60 ) THEN + 39 * - AVG ( DISTINCT - 66 ) + 0 + + - MIN( 2 ) + COUNT( * ) ELSE NULL END * 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT - CASE + ( - COUNT ( DISTINCT + 34 ) ) WHEN + SUM ( + 46 ) THEN NULL WHEN - + 79 + - AVG ( DISTINCT + - 60 ) THEN + 39 * - AVG ( DISTINCT - 66 ) + 0 + + - MIN ( 2 ) + COUNT ( * ) ELSE NULL END * 27 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6530
SELECT - 5 DIV 91 col1
----
0

skipif mysql # not compatible
query I rowsort label-6530
SELECT - 5 / 91 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6531
SELECT ALL + 75 * + COALESCE ( + 0, NULLIF ( + + 55, COUNT( * ) ), + 42 + COUNT( * ), - 6 + 94 ) AS col2, + 39
----
0
39

skipif mysql # not compatible
query II rowsort label-6531
SELECT ALL + 75 * + COALESCE ( + 0, NULLIF ( + + 55, COUNT ( * ) ), + 42 + COUNT ( * ), - 6 + 94 ) AS col2, + 39
----
0
39

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6533
SELECT NULLIF ( 23, - MIN( DISTINCT 90 ) * - 74 - - - 14 + - AVG ( ALL + COALESCE ( + 54, - 41 ) ) + - NULLIF ( CAST( NULL AS DECIMAL ), + 81 - - - SUM( DISTINCT + 23 ) ) * + 92 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-6533
SELECT NULLIF ( 23, - MIN ( DISTINCT 90 ) * - 74 - - - 14 + - AVG ( ALL + COALESCE ( + 54, - 41 ) ) + - NULLIF ( CAST ( NULL AS REAL ), + 81 - - - SUM ( DISTINCT + 23 ) ) * + 92 ) AS col0
----
23

query I rowsort
SELECT - 93 + - - 48 AS col2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6535
SELECT ALL - 21 * + 75 DIV COUNT( * ) * - - 92
----
-144900

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL - 21 * + 75 / COUNT ( * ) * - - 92
----
-144900

query II rowsort
SELECT DISTINCT 73 AS col2, + 25
----
73
25

query I rowsort
SELECT ALL 57 + + - 53 * 55 * - ( + 24 ) * - + 9 AS col0
----
-629583

query I rowsort
SELECT 11 + - 5
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT ALL COUNT( * ) * 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL COUNT ( * ) * 53 AS col2
----
53

query I rowsort
SELECT 31 + - 76
----
-45

query I rowsort
SELECT ALL - 76 + - 90 AS col1
----
-166

query I rowsort
SELECT 1 * 4
----
4

query II rowsort
SELECT + 8, + 44 AS col0
----
8
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6544
SELECT 30 DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-6544
SELECT 30 / - 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT - COUNT( * ) + + MAX( - 26 )
----
-27

skipif mysql # not compatible
query I rowsort label-6545
SELECT - COUNT ( * ) + + MAX ( - 26 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6546
SELECT ALL + 49 + + CAST( MIN( ALL - + 76 ) AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL + 49 + + CAST ( MIN ( ALL - + 76 ) AS INTEGER )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT - + MIN( ALL + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-6547
SELECT - + MIN ( ALL + 98 )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT ALL - - 39 + - 22 + - + 1 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL - - 39 + - 22 + - + 1 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6549
SELECT DISTINCT + 21 + 90 DIV - 17 AS col2, 20 * - + 17
----
16
-340

skipif mysql # not compatible
query II rowsort label-6549
SELECT DISTINCT + 21 + 90 / - 17 AS col2, 20 * - + 17
----
16
-340

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

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

query I rowsort
SELECT ALL + 99 + 49
----
148

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT ALL + MAX( + 55 ) * - COUNT( * ) - + 47
----
-102

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL + MAX ( + 55 ) * - COUNT ( * ) - + 47
----
-102

query II rowsort
SELECT ALL 37 AS col0, ( 17 )
----
37
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6555
SELECT ALL + - 68 DIV 11
----
-6

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL + - 68 / 11
----
-6

query I rowsort
SELECT - 33 - + + 24 + 33 col1
----
-24

query I rowsort
SELECT 76 * 63
----
4788

query II rowsort
SELECT - + 91, 82 AS col2
----
-91
82

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

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

query I rowsort
SELECT DISTINCT 48 - + + 95 AS col2
----
-47

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

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

query I rowsort
SELECT ALL + 54 * + 30 AS col1
----
1620

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

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

query I rowsort
SELECT 96 * 94
----
9024

query I rowsort
SELECT DISTINCT 35 * 34 * - 12
----
-14280

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL - COALESCE ( + + 98, + COUNT( * ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL - COALESCE ( + + 98, + COUNT ( * ) ) AS col2
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6568
SELECT + COUNT( * ) DIV + 26 + 55 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-6568
SELECT + COUNT ( * ) / + 26 + 55 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT CASE + 94 WHEN COUNT( * ) THEN + 14 + + NULLIF ( - - COALESCE ( 46, - + 36 * + 49 ), + 8 ) WHEN + + CASE - 42 WHEN + - 95 THEN NULL WHEN + 52 THEN - 80 END THEN + 22 END * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6569
SELECT CASE + 94 WHEN COUNT ( * ) THEN + 14 + + NULLIF ( - - COALESCE ( 46, - + 36 * + 49 ), + 8 ) WHEN + + CASE - 42 WHEN + - 95 THEN NULL WHEN + 52 THEN - 80 END THEN + 22 END * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT 89 + 78 * + NULLIF ( - + 30, - 47 * + - AVG ( 64 ) / SUM( + 38 ) ) * 35 AS col1
----
-81811

skipif mysql # not compatible
query I rowsort label-6570
SELECT 89 + 78 * + NULLIF ( - + 30, - 47 * + - AVG ( 64 ) / SUM ( + 38 ) ) * 35 AS col1
----
-81811

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT 53 * + 60 - + 33 * + COUNT( * ) col2
----
3147

skipif mysql # not compatible
query I rowsort label-6571
SELECT 53 * + 60 - + 33 * + COUNT ( * ) col2
----
3147

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT ALL + COALESCE ( + 63, + 71 + - 80, + 16 ) + COUNT( + 26 ) + + COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL + COALESCE ( + 63, + 71 + - 80, + 16 ) + COUNT ( + 26 ) + + COUNT ( * ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT ALL - 90 + + NULLIF ( + - COUNT( * ), 8 ) * + - 94 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL - 90 + + NULLIF ( + - COUNT ( * ), 8 ) * + - 94 AS col2
----
4

query I rowsort
SELECT 53 * + 91 + - - 83 AS col2
----
4906

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6575
SELECT 24 + - COUNT( * ) DIV - + 31 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6575
SELECT 24 + - COUNT ( * ) / - + 31 AS col0
----
24

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

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL COUNT ( + 49 ) AS col1
----
1

query I rowsort
SELECT ALL + 45 + - 85 + + 8
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT ALL - CASE + 73 WHEN + 31 THEN NULL WHEN 72 THEN NULL WHEN - 12 THEN + - COUNT( * ) * + 0 + - 28 * + ( 72 ) - - 79 + - 17 + + + 22 WHEN 77 / - ( 99 ) + - + 65 THEN NULL END + 70 / - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL - CASE + 73 WHEN + 31 THEN NULL WHEN 72 THEN NULL WHEN - 12 THEN + - COUNT ( * ) * + 0 + - 28 * + ( 72 ) - - 79 + - 17 + + + 22 WHEN 77 / - ( 99 ) + - + 65 THEN NULL END + 70 / - 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6579
SELECT - 31, COALESCE ( 17, 91 - + COUNT( * ) ) AS col2
----
-31
17

skipif mysql # not compatible
query II rowsort label-6579
SELECT - 31, COALESCE ( 17, 91 - + COUNT ( * ) ) AS col2
----
-31
17

query I rowsort
SELECT 11 + - 12 AS col2
----
-1

query I rowsort
SELECT 14 * + 78 AS col2
----
1092

onlyif mysql # aggregate syntax: 
query II rowsort label-6582
SELECT ALL 88 AS col1, SUM( DISTINCT + - ( + - 21 ) ) * COUNT( * ) AS col2
----
88
21

skipif mysql # not compatible
query II rowsort label-6582
SELECT ALL 88 AS col1, SUM ( DISTINCT + - ( + - 21 ) ) * COUNT ( * ) AS col2
----
88
21

query II rowsort
SELECT 55 AS col1, 87 - + + 49 AS col0
----
55
38

query I rowsort
SELECT - 89 + 45 AS col0
----
-44

query I rowsort
SELECT ALL - - 91 - 94 + - 34
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6586
SELECT DISTINCT - - 75 * - - 42 AS col0, - CAST( + 79 AS SIGNED )
----
3150
-79

skipif mysql # not compatible
query II rowsort label-6586
SELECT DISTINCT - - 75 * - - 42 AS col0, - CAST ( + 79 AS INTEGER )
----
3150
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-6587
SELECT + 55 * - - ( - COUNT( * ) ) * 62 AS col1, + MAX( - 81 )
----
-3410
-81

skipif mysql # not compatible
query II rowsort label-6587
SELECT + 55 * - - ( - COUNT ( * ) ) * 62 AS col1, + MAX ( - 81 )
----
-3410
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-6588
SELECT DISTINCT - MAX( - 40 ), + 10 AS col2
----
40
10

skipif mysql # not compatible
query II rowsort label-6588
SELECT DISTINCT - MAX ( - 40 ), + 10 AS col2
----
40
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT DISTINCT NULLIF ( 97, 54 ) * - - MAX( DISTINCT 67 )
----
6499

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT NULLIF ( 97, 54 ) * - - MAX ( DISTINCT 67 )
----
6499

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT 1 + + CASE + 23 WHEN - 36 * - 80 * + - 51 * + ( + 40 ) + + 68 THEN NULL WHEN + - COUNT( * ) THEN 91 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6590
SELECT 1 + + CASE + 23 WHEN - 36 * - 80 * + - 51 * + ( + 40 ) + + 68 THEN NULL WHEN + - COUNT ( * ) THEN 91 ELSE NULL END
----
NULL

query I rowsort
SELECT - 22 * - 32 + - 99 AS col0
----
605

onlyif mysql # aggregate syntax: 
query II rowsort label-6592
SELECT - CASE 59 WHEN COUNT( * ) THEN NULL ELSE + MAX( DISTINCT 79 ) END * CASE COALESCE ( - 79, COUNT( * ), + 39 ) WHEN + ( 96 ) THEN 2 END * - 31 col2, 18 - - 10 AS col1
----
NULL
28

skipif mysql # not compatible
query II rowsort label-6592
SELECT - CASE 59 WHEN COUNT ( * ) THEN NULL ELSE + MAX ( DISTINCT 79 ) END * CASE COALESCE ( - 79, COUNT ( * ), + 39 ) WHEN + ( 96 ) THEN 2 END * - 31 col2, 18 - - 10 AS col1
----
NULL
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT - COALESCE ( - 84, + SUM( - 32 ) ) + - 88 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6593
SELECT - COALESCE ( - 84, + SUM ( - 32 ) ) + - 88 AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6594
SELECT ALL CAST( COALESCE ( + - SUM( + 85 ), 93, - 48 + + 70 ) AS SIGNED ) * - - 64 AS col2
----
-5440

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL CAST ( COALESCE ( + - SUM ( + 85 ), 93, - 48 + + 70 ) AS INTEGER ) * - - 64 AS col2
----
-5440

query II rowsort
SELECT ALL + 26 AS col2, 28 * - 64 AS col0
----
26
-1792

query I rowsort
SELECT DISTINCT + 16 * 92 + + 36 + + ( - 98 )
----
1410

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6599
SELECT CASE + 38 WHEN 20 THEN + 38 / COUNT( * ) + + 95 * + 36 ELSE - - 45 END col0, 15
----
45
15

skipif mysql # not compatible
query II rowsort label-6599
SELECT CASE + 38 WHEN 20 THEN + 38 / COUNT ( * ) + + 95 * + 36 ELSE - - 45 END col0, 15
----
45
15

query I rowsort
SELECT - 66 * 51 + + 50 AS col0
----
-3316

query I rowsort
SELECT + NULLIF ( - - 78, 90 * - - ( - 19 ) * + - 93 - 14 + - - 8 * 94 ) AS col0
----
78

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

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

query II rowsort
SELECT - 75 * - + 52 AS col0, + 30 AS col0
----
3900
30

query I rowsort
SELECT ALL + 47 * ( - 80 ) + - 38 + + 63 AS col1
----
-3735

query I rowsort
SELECT - COALESCE ( + + 96, - 68 ) * - 15 AS col0
----
1440

query II rowsort
SELECT - ( - - 2 ), - ( - 37 ) + + 85 + - ( + 31 ) + - 41 * - - 75 AS col0
----
-2
-2984

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT ALL - 59 - 48 + + - COALESCE ( + 76, + COUNT( * ) ) AS col2
----
-183

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL - 59 - 48 + + - COALESCE ( + 76, + COUNT ( * ) ) AS col2
----
-183

query I rowsort
SELECT + 56 * - 4 + + - 16
----
-240

query I rowsort
SELECT - 40 * + 32 + + - 70
----
-1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6610
SELECT ALL + CAST( CASE CASE - ( + + 91 ) WHEN + ( + 54 ) THEN - AVG ( DISTINCT + 67 ) + - NULLIF ( + 12, ( + 24 ) * + - 91 + + ( - - 54 ) / + - 58 ) WHEN - + COUNT( * ) THEN NULL END WHEN 9 THEN - - MIN( ALL 53 ) ELSE NULL END AS SIGNED ) * 44 * 15 * - + ( + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL + CAST ( CASE CASE - ( + + 91 ) WHEN + ( + 54 ) THEN - AVG ( DISTINCT + 67 ) + - NULLIF ( + 12, ( + 24 ) * + - 91 + + ( - - 54 ) / + - 58 ) WHEN - + COUNT ( * ) THEN NULL END WHEN 9 THEN - - MIN ( ALL 53 ) ELSE NULL END AS INTEGER ) * 44 * 15 * - + ( + 15 )
----
NULL

query I rowsort
SELECT - 49 + - 71 * ( - 93 ) AS col1
----
6554

onlyif mysql # DIV for integer division: 
query II rowsort label-6612
SELECT ALL - 72 DIV - - 72 AS col1, + 42 * + 98 col2
----
-1
4116

skipif mysql # not compatible
query II rowsort label-6612
SELECT ALL - 72 / - - 72 AS col1, + 42 * + 98 col2
----
-1
4116

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT - COUNT( ALL - 88 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6613
SELECT - COUNT ( ALL - 88 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT ALL - 39 - - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL - 39 - - COUNT ( * )
----
-38

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6616
SELECT - - 28 * + - 52, - 63 DIV 33 AS col1
----
-1456
-1

skipif mysql # not compatible
query II rowsort label-6616
SELECT - - 28 * + - 52, - 63 / 33 AS col1
----
-1456
-1

query I rowsort
SELECT - + ( + 40 ) * 38 * - + 4 AS col1
----
6080

query I rowsort
SELECT ALL + - 97 * 13
----
-1261

onlyif mysql # DIV for integer division: 
query I rowsort label-6619
SELECT - - 36 + + - 39 DIV + - ( - 48 )
----
36

skipif mysql # not compatible
query I rowsort label-6619
SELECT - - 36 + + - 39 / + - ( - 48 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6620
SELECT DISTINCT CAST( 85 AS SIGNED ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT CAST ( 85 AS INTEGER ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT DISTINCT - COUNT( - 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT - COUNT ( - 83 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT ALL ( + 25 ) + - - MAX( DISTINCT + 62 ) col0
----
87

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL ( + 25 ) + - - MAX ( DISTINCT + 62 ) col0
----
87

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

skipif mysql # not compatible
query I rowsort label-6623
SELECT - MAX ( ALL 90 )
----
-90

query I rowsort
SELECT - 22 * + 52
----
-1144

query II rowsort
SELECT + 92 * + 70 col0, - 96
----
6440
-96

query I rowsort
SELECT - + 15 - - 97 + 85 * 95
----
8157

onlyif mysql # DIV for integer division: 
query I rowsort label-6627
SELECT DISTINCT + + 80 DIV 90 + - 25 + 12 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT + + 80 / 90 + - 25 + 12 AS col0
----
-13

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6629
SELECT ALL - NULLIF ( + 3, + ( - 86 ) ) / - 2 + - CASE + - 33 WHEN - - 74 * 42 + + CAST( NULL AS SIGNED ) THEN 48 * 67 WHEN SUM( - + NULLIF ( + + ( + - 14 ), + 66 * - - 12 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL - NULLIF ( + 3, + ( - 86 ) ) / - 2 + - CASE + - 33 WHEN - - 74 * 42 + + CAST ( NULL AS INTEGER ) THEN 48 * 67 WHEN SUM ( - + NULLIF ( + + ( + - 14 ), + 66 * - - 12 ) ) THEN NULL END
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6632
SELECT ALL - 30 DIV - 91 * MIN( - 28 ) + COUNT( * ) * + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL - 30 / - 91 * MIN ( - 28 ) + COUNT ( * ) * + COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT ALL + COALESCE ( - COUNT( * ), + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL + COALESCE ( - COUNT ( * ), + COUNT ( * ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6634
SELECT ALL 6 DIV + - 40 + + - 74 + - 93 * 8
----
-818

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL 6 / + - 40 + + - 74 + - 93 * 8
----
-818

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT + 99 - MIN( - + 9 ) AS col0
----
108

skipif mysql # not compatible
query I rowsort label-6635
SELECT + 99 - MIN ( - + 9 ) AS col0
----
108

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

skipif mysql # not compatible
query I rowsort label-6636
SELECT + 75 / - 81
----
0

query I rowsort
SELECT 90 * - 2 + + - 2 AS col1
----
-182

query I rowsort
SELECT + 93 * + 84
----
7812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6639
SELECT + 63 + - - 75 + 3 + - + COALESCE ( + COUNT( * ), 10 + + - 90 ) DIV - 3 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-6639
SELECT + 63 + - - 75 + 3 + - + COALESCE ( + COUNT ( * ), 10 + + - 90 ) / - 3 AS col1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT + CASE + 30 WHEN 91 THEN - NULLIF ( + + COUNT( * ), - COUNT( * ) - + 61 ) WHEN 53 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6640
SELECT + CASE + 30 WHEN 91 THEN - NULLIF ( + + COUNT ( * ), - COUNT ( * ) - + 61 ) WHEN 53 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT ALL 11 * + COALESCE ( - 22, + SUM( + 18 ) ) * - + COUNT( * ) * - 77 - 36 AS col0
----
-18670

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL 11 * + COALESCE ( - 22, + SUM ( + 18 ) ) * - + COUNT ( * ) * - 77 - 36 AS col0
----
-18670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6642
SELECT DISTINCT + 78 AS col0, COUNT( ALL - 88 ) DIV + CAST( - 9 AS SIGNED ) * - - 72 + 13
----
78
13

skipif mysql # not compatible
query II rowsort label-6642
SELECT DISTINCT + 78 AS col0, COUNT ( ALL - 88 ) / + CAST ( - 9 AS INTEGER ) * - - 72 + 13
----
78
13

onlyif mysql # aggregate syntax: 
query II rowsort label-6643
SELECT 27 * - COUNT( * ) + + 93 AS col0, - 98
----
66
-98

skipif mysql # not compatible
query II rowsort label-6643
SELECT 27 * - COUNT ( * ) + + 93 AS col0, - 98
----
66
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT ALL 7 * SUM( ALL - 55 ) AS col0
----
-385

skipif mysql # not compatible
query I rowsort label-6644
SELECT ALL 7 * SUM ( ALL - 55 ) AS col0
----
-385

query I rowsort
SELECT + - 32 * + 14
----
-448

onlyif mysql # aggregate syntax: 
query II rowsort label-6646
SELECT + + COUNT( * ) - + 33 + + + 72, - 57 + ( 47 ) AS col2
----
40
-10

skipif mysql # not compatible
query II rowsort label-6646
SELECT + + COUNT ( * ) - + 33 + + + 72, - 57 + ( 47 ) AS col2
----
40
-10

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

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

query I rowsort
SELECT + 99 + - 57 col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT MAX( ALL 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-6649
SELECT MAX ( ALL 50 ) AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6650
SELECT + 13 * - - 0 + + 50 + 48 * + CAST( NULL AS SIGNED ) - - 46 * + 18 * - 44 AS col0, 44 AS col0
----
NULL
44

skipif mysql # not compatible
query II rowsort label-6650
SELECT + 13 * - - 0 + + 50 + 48 * + CAST ( NULL AS INTEGER ) - - 46 * + 18 * - 44 AS col0, 44 AS col0
----
NULL
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT + + 4 * + + NULLIF ( - 3, - + ( - - NULLIF ( + 57, - 15 ) ) + 37 * + 13 * - + 71 ) + - MAX( ALL + 0 )
----
-12

skipif mysql # not compatible
query I rowsort label-6651
SELECT + + 4 * + + NULLIF ( - 3, - + ( - - NULLIF ( + 57, - 15 ) ) + 37 * + 13 * - + 71 ) + - MAX ( ALL + 0 )
----
-12

query II rowsort
SELECT DISTINCT - 5 AS col2, 1 - 12
----
-5
-11

query I rowsort
SELECT + - 80 - 78 col0
----
-158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6654
SELECT + 40 / - CAST( NULL AS SIGNED ) + 13 + + + 39 * 61 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6654
SELECT + 40 / - CAST ( NULL AS INTEGER ) + 13 + + + 39 * 61 col1
----
NULL

query I rowsort
SELECT ALL + 25 + - 47 AS col0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6656
SELECT ALL - + 90 DIV MIN( ALL + 68 )
----
-1

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL - + 90 / MIN ( ALL + 68 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6657
SELECT - COALESCE ( - 57, + - MIN( + 62 ) * + ( + COUNT( * ) ) + - MIN( ALL - 63 ) * 95 * - 60, COUNT( + + 50 ), + 44 * - - 59 * + 77 + + - 28 + - MIN( DISTINCT - 25 ) * 78 ) + - SUM( + 69 ) AS col0, NULLIF ( 67, CAST( NULL AS SIGNED ) - - - 41 ) * + COALESCE ( 33, 2 - - ( 93 ) )
----
-12
2211

skipif mysql # not compatible
query II rowsort label-6657
SELECT - COALESCE ( - 57, + - MIN ( + 62 ) * + ( + COUNT ( * ) ) + - MIN ( ALL - 63 ) * 95 * - 60, COUNT ( + + 50 ), + 44 * - - 59 * + 77 + + - 28 + - MIN ( DISTINCT - 25 ) * 78 ) + - SUM ( + 69 ) AS col0, NULLIF ( 67, CAST ( NULL AS INTEGER ) - - - 41 ) * + COALESCE ( 33, 2 - - ( 93 ) )
----
-12
2211

query I rowsort
SELECT 22 - - 73 * - 27 AS col0
----
-1949

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6659
SELECT - 42 + COUNT( * ) DIV 84 col1
----
-42

skipif mysql # not compatible
query I rowsort label-6659
SELECT - 42 + COUNT ( * ) / 84 col1
----
-42

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6661
SELECT 94 * + - 26 * - 51 + - COUNT( * ) + - + ( + 21 ) * - 57 * COUNT( 61 ) / + 26 - 99 / + + CAST( NULL AS DECIMAL ) * COUNT( * ) - + COUNT( * ) / 47 * + SUM( DISTINCT 60 ) * 61 + 4 + - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6661
SELECT 94 * + - 26 * - 51 + - COUNT ( * ) + - + ( + 21 ) * - 57 * COUNT ( 61 ) / + 26 - 99 / + + CAST ( NULL AS REAL ) * COUNT ( * ) - + COUNT ( * ) / 47 * + SUM ( DISTINCT 60 ) * 61 + 4 + - 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT ALL - 58 + - MIN( 93 ) AS col1
----
-151

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL - 58 + - MIN ( 93 ) AS col1
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT 95 * MIN( ALL - 51 )
----
-4845

skipif mysql # not compatible
query I rowsort label-6663
SELECT 95 * MIN ( ALL - 51 )
----
-4845

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT ALL - CASE WHEN NOT NULL IS NOT NULL THEN NULL WHEN NOT ( NOT + 77 IS NOT NULL ) THEN + + NULLIF ( + COUNT( + 61 ), 96 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL - CASE WHEN NOT NULL IS NOT NULL THEN NULL WHEN NOT ( NOT + 77 IS NOT NULL ) THEN + + NULLIF ( + COUNT ( + 61 ), 96 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6665
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 54 * - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 54 * - 98 AS col0
----
NULL

query I rowsort
SELECT 40 * 8 * - 82
----
-26240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6667
SELECT DISTINCT - ( + + 99 ) AS col0, - 23 / - - ( 17 ) * + - ( AVG ( DISTINCT - 85 ) ) + 14 - CAST( NULL AS SIGNED ) AS col1
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-6667
SELECT DISTINCT - ( + + 99 ) AS col0, - 23 / - - ( 17 ) * + - ( AVG ( DISTINCT - 85 ) ) + 14 - CAST ( NULL AS INTEGER ) AS col1
----
-99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6668
SELECT DISTINCT - NULLIF ( CAST( - + 16 AS SIGNED ), - - 27 ) * + 6
----
96

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT - NULLIF ( CAST ( - + 16 AS INTEGER ), - - 27 ) * + 6
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6669
SELECT CASE + - 57 WHEN + - 70 THEN NULL WHEN - - MAX( ALL - - 6 ) THEN NULL ELSE + - COALESCE ( - 5, 54 ) DIV - + 99 * - MIN( + 44 ) END + - 76 + - ( 82 ) * - 60 + 0
----
4844

skipif mysql # not compatible
query I rowsort label-6669
SELECT CASE + - 57 WHEN + - 70 THEN NULL WHEN - - MAX ( ALL - - 6 ) THEN NULL ELSE + - COALESCE ( - 5, 54 ) / - + 99 * - MIN ( + 44 ) END + - 76 + - ( 82 ) * - 60 + 0
----
4844

onlyif mysql # aggregate syntax: 
query II rowsort label-6670
SELECT ALL - COUNT( DISTINCT - 70 ) AS col1, + SUM( DISTINCT + + 37 ) * - 53
----
-1
-1961

skipif mysql # not compatible
query II rowsort label-6670
SELECT ALL - COUNT ( DISTINCT - 70 ) AS col1, + SUM ( DISTINCT + + 37 ) * - 53
----
-1
-1961

onlyif mysql # DIV for integer division: 
query I rowsort label-6671
SELECT + ( + + 93 ) DIV - 74
----
-1

skipif mysql # not compatible
query I rowsort label-6671
SELECT + ( + + 93 ) / - 74
----
-1

query I rowsort
SELECT - 44 * - 22 + 48
----
1016

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6674
SELECT DISTINCT - COUNT( + - 95 ) DIV - - MAX( 97 )
----
0

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT - COUNT ( + - 95 ) / - - MAX ( 97 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6675
SELECT - COALESCE ( - - COUNT( * ), 63 + COUNT( * ) DIV 25 + - 67 * - 18 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6675
SELECT - COALESCE ( - - COUNT ( * ), 63 + COUNT ( * ) / 25 + - 67 * - 18 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6676
SELECT ALL - NULLIF ( - - 58, - + 74 * - 56 ) + + - CAST( NULL AS SIGNED ) * + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL - NULLIF ( - - 58, - + 74 * - 56 ) + + - CAST ( NULL AS INTEGER ) * + 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6677
SELECT DISTINCT + 28 + + 75, MIN( DISTINCT 58 ) AS col2
----
103
58

skipif mysql # not compatible
query II rowsort label-6677
SELECT DISTINCT + 28 + + 75, MIN ( DISTINCT 58 ) AS col2
----
103
58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6678
SELECT ALL + 65 + - 67 col1, CAST( NULL AS DECIMAL )
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-6678
SELECT ALL + 65 + - 67 col1, CAST ( NULL AS REAL )
----
-2
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6679
SELECT - + COALESCE ( + - 61, + + 64 * - CAST( NULL AS SIGNED ) + - - 20 + + 1 * - - 57 DIV 44 * 42 * 84 * COALESCE ( - 64, - 68 ) + 79 )
----
61

skipif mysql # not compatible
query I rowsort label-6679
SELECT - + COALESCE ( + - 61, + + 64 * - CAST ( NULL AS INTEGER ) + - - 20 + + 1 * - - 57 / 44 * 42 * 84 * COALESCE ( - 64, - 68 ) + 79 )
----
61

query I rowsort
SELECT ALL 43 + - 69 + + - 17 AS col2
----
-43

query II rowsort
SELECT 47 * 84 AS col0, 32
----
3948
32

query I rowsort
SELECT - 83 + - + 8 AS col1
----
-91

query I rowsort
SELECT ALL + NULLIF ( + - 1, - + 13 ) + 44 * - + 1 + 53 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6684
SELECT COUNT( * ) * COUNT( * ) * - 77 AS col1, - 67 * 77
----
-77
-5159

skipif mysql # not compatible
query II rowsort label-6684
SELECT COUNT ( * ) * COUNT ( * ) * - 77 AS col1, - 67 * 77
----
-77
-5159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6685
SELECT ALL - CAST( + 52 AS SIGNED ) * 65 AS col0
----
-3380

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL - CAST ( + 52 AS INTEGER ) * 65 AS col0
----
-3380

query I rowsort
SELECT DISTINCT - NULLIF ( - 42, - 4 ) - - COALESCE ( + 61, + ( 80 ) )
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-6687
SELECT 31 * 37 DIV ( - 97 ) * - 16
----
176

skipif mysql # not compatible
query I rowsort label-6687
SELECT 31 * 37 / ( - 97 ) * - 16
----
176

query I rowsort
SELECT 5 - ( - + 9 ) AS col2
----
14

query I rowsort
SELECT 43 * - 90
----
-3870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6690
SELECT COALESCE ( + 37, - 4, 25 * - 74 * 26, 74 + + ( - 87 ) + 52 + - + COUNT( * ) + + - NULLIF ( + 73, + + 46 DIV 40 ) - - - 23 * - + 35 * - + COUNT( * ) * + 33 * - + 51 DIV - + MAX( 44 ) - - 13 + - COALESCE ( + - 98, - 73 * + 62 * + COUNT( * ) - + NULLIF ( - + 70, - 50 ) DIV + 12, 41 + - ( 35 + + 77 ) ) * - 86, 29 + + COUNT( * ) ) - + 44 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-6690
SELECT COALESCE ( + 37, - 4, 25 * - 74 * 26, 74 + + ( - 87 ) + 52 + - + COUNT ( * ) + + - NULLIF ( + 73, + + 46 / 40 ) - - - 23 * - + 35 * - + COUNT ( * ) * + 33 * - + 51 / - + MAX ( 44 ) - - 13 + - COALESCE ( + - 98, - 73 * + 62 * + COUNT ( * ) - + NULLIF ( - + 70, - 50 ) / + 12, 41 + - ( 35 + + 77 ) ) * - 86, 29 + + COUNT ( * ) ) - + 44 AS col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-6691
SELECT 50 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-6691
SELECT 50 / - 58
----
0

query I rowsort
SELECT 30 * + 37 AS col2
----
1110

query I rowsort
SELECT ALL 63 * + 51 AS col0
----
3213

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT ALL - MAX( - 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL - MAX ( - 91 ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT DISTINCT - MIN( ALL + 95 ) col1
----
-95

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT - MIN ( ALL + 95 ) col1
----
-95

query I rowsort
SELECT 75 * - 9
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT + 68 * - COUNT( * ) + - - COUNT( * ) + + + 63 * 4 * - 53 * 19
----
-253831

skipif mysql # not compatible
query I rowsort label-6697
SELECT + 68 * - COUNT ( * ) + - - COUNT ( * ) + + + 63 * 4 * - 53 * 19
----
-253831

query I rowsort
SELECT 37 + 55 * - 98 AS col2
----
-5353

onlyif mysql # aggregate syntax: 
query II rowsort label-6699
SELECT + + CASE + - 49 WHEN - 36 + + 96 * + - 51 THEN NULL ELSE - + 20 END, ( - 34 ) * + + 45 - 61 + 33 + COUNT( * ) AS col1
----
-20
-1557

skipif mysql # not compatible
query II rowsort label-6699
SELECT + + CASE + - 49 WHEN - 36 + + 96 * + - 51 THEN NULL ELSE - + 20 END, ( - 34 ) * + + 45 - 61 + 33 + COUNT ( * ) AS col1
----
-20
-1557

query II rowsort
SELECT 83 + - 4 * - 35, + 5 * - 94 + + 58 AS col1
----
223
-412

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

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

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

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL + COUNT ( * ) + - - 22 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT ALL - COUNT( * ) + 80 + - 34 + + ( 70 ) AS col1
----
115

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL - COUNT ( * ) + 80 + - 34 + + ( 70 ) AS col1
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6704
SELECT + 7 * + + CAST( NULL AS SIGNED ) + ( - - SUM( + + 31 ) ) + + + COUNT( * ) * + 37 - + ( + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6704
SELECT + 7 * + + CAST ( NULL AS INTEGER ) + ( - - SUM ( + + 31 ) ) + + + COUNT ( * ) * + 37 - + ( + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6705
SELECT - 31 DIV + + 58 + - + 38
----
-38

skipif mysql # not compatible
query I rowsort label-6705
SELECT - 31 / + + 58 + - + 38
----
-38

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6707
SELECT + 84 + - + CASE - COUNT( * ) WHEN 13 THEN NULL ELSE - - COUNT( * ) END AS col2, 60 AS col0
----
83
60

skipif mysql # not compatible
query II rowsort label-6707
SELECT + 84 + - + CASE - COUNT ( * ) WHEN 13 THEN NULL ELSE - - COUNT ( * ) END AS col2, 60 AS col0
----
83
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6708
SELECT COALESCE ( + 71, + + 6 DIV + 39 DIV - - 49 * + - 51 * - 51 * - 4 )
----
71

skipif mysql # not compatible
query I rowsort label-6708
SELECT COALESCE ( + 71, + + 6 / + 39 / - - 49 * + - 51 * - 51 * - 4 )
----
71

query I rowsort
SELECT - + 28 + - 10 * 1 AS col0
----
-38

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

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

query II rowsort
SELECT + - 47 * - - ( - 33 ) AS col0, + 32 * + 77 AS col0
----
1551
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT ALL + MAX( - 84 ) * ( + 1 )
----
-84

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL + MAX ( - 84 ) * ( + 1 )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6713
SELECT ALL + + ( + 54 ) DIV - + 49 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL + + ( + 54 ) / - + 49 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT ALL 77 * - + SUM( + 83 )
----
-6391

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL 77 * - + SUM ( + 83 )
----
-6391

query I rowsort
SELECT ALL 29 - - + 15
----
44

query II rowsort
SELECT ALL 91 AS col2, + 30
----
91
30

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

query II rowsort
SELECT 48, 49 AS col2
----
48
49

query I rowsort
SELECT + 93 * + ( + 77 )
----
7161

query I rowsort
SELECT + 64 + CASE WHEN + 56 IS NULL THEN NULL ELSE + + 20 * + ( + 60 ) - - 83 END
----
1347

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6722
SELECT ALL 6 AS col2, 50 * - CAST( NULL AS SIGNED )
----
6
NULL

skipif mysql # not compatible
query II rowsort label-6722
SELECT ALL 6 AS col2, 50 * - CAST ( NULL AS INTEGER )
----
6
NULL

query I rowsort
SELECT + 40 + - 70 * + + 85 col2
----
-5910

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT + 57 * + MAX( + + 11 )
----
627

skipif mysql # not compatible
query I rowsort label-6724
SELECT + 57 * + MAX ( + + 11 )
----
627

query II rowsort
SELECT DISTINCT 65 AS col1, - 79 AS col0
----
65
-79

query I rowsort
SELECT ALL + 68 * - 74
----
-5032

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT + COUNT( * ) + - 63 + + 19 col1
----
-43

skipif mysql # not compatible
query I rowsort label-6727
SELECT + COUNT ( * ) + - 63 + + 19 col1
----
-43

query II rowsort
SELECT ( 8 ) AS col2, 9 * - 40 + + + 5 AS col0
----
8
-355

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT - CASE + COUNT( * ) WHEN + + 28 * - 25 * + 81 + 63 THEN + + 63 WHEN + 86 / 36 + + + 14 - 70 + + COALESCE ( + - ( - 84 ), - 21 + + COUNT( * ), + + 53 ) + - 44 THEN + CASE WHEN NOT NULL IN ( + 64, - SUM( ALL + + 53 ) + + - 15, + 9 + ( 72 ) + 31 * + 94 * SUM( + ( - 76 ) ) ) THEN NULL ELSE + COUNT( * ) * + 45 END ELSE NULL END + + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT - CASE + COUNT ( * ) WHEN + + 28 * - 25 * + 81 + 63 THEN + + 63 WHEN + 86 / 36 + + + 14 - 70 + + COALESCE ( + - ( - 84 ), - 21 + + COUNT ( * ), + + 53 ) + - 44 THEN + CASE WHEN NOT NULL IN ( + 64, - SUM ( ALL + + 53 ) + + - 15, + 9 + ( 72 ) + 31 * + 94 * SUM ( + ( - 76 ) ) ) THEN NULL ELSE + COUNT ( * ) * + 45 END ELSE NULL END + + 94 AS col1
----
NULL

query I rowsort
SELECT ALL 68 * - - 15 * 31 AS col1
----
31620

query I rowsort
SELECT + ( - 76 ) col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT ALL - 96 * - - SUM( + 92 )
----
-8832

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL - 96 * - - SUM ( + 92 )
----
-8832

query I rowsort
SELECT 58 * - 7 + + 0
----
-406

query I rowsort
SELECT DISTINCT + + NULLIF ( - + 58, + + 1 ) AS col1
----
-58

query I rowsort
SELECT DISTINCT - 13 * + COALESCE ( - 0, - + 1 ) + + - 99
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6736
SELECT DISTINCT + 98 * + - 73 + + CAST( + - NULLIF ( - 50, - ( - + CASE - 78 WHEN + 31 THEN - - COUNT( * ) ELSE + 34 END ) * + - 7 ) AS SIGNED ) DIV COALESCE ( + + 77, - 53 * 1 - 1 + + + MIN( DISTINCT + + 92 ) DIV 32 * ( 46 ) + + AVG ( DISTINCT - 51 ) + - ( - - 37 ) - - 4 * 86 ) AS col1
----
-7154

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT + 98 * + - 73 + + CAST ( + - NULLIF ( - 50, - ( - + CASE - 78 WHEN + 31 THEN - - COUNT ( * ) ELSE + 34 END ) * + - 7 ) AS INTEGER ) / COALESCE ( + + 77, - 53 * 1 - 1 + + + MIN ( DISTINCT + + 92 ) / 32 * ( 46 ) + + AVG ( DISTINCT - 51 ) + - ( - - 37 ) - - 4 * 86 ) AS col1
----
-7154

query I rowsort
SELECT ALL 75 * - 6 * - 56 * + 82 + - 48
----
2066352

onlyif mysql # aggregate syntax: 
query II rowsort label-6738
SELECT DISTINCT + + 80 AS col1, SUM( DISTINCT - - ( - 1 ) ) AS col0
----
80
-1

skipif mysql # not compatible
query II rowsort label-6738
SELECT DISTINCT + + 80 AS col1, SUM ( DISTINCT - - ( - 1 ) ) AS col0
----
80
-1

query I rowsort
SELECT - 20 * + - 29 AS col0
----
580

query II rowsort
SELECT + - 8 AS col2, 11 * - 52
----
-8
-572

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

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

query II rowsort
SELECT + - 97, - 62 * + 65 col0
----
-97
-4030

query I rowsort
SELECT DISTINCT + 98 * 54 + + 0 col0
----
5292

query I rowsort
SELECT ALL + + 71 * + 81 AS col1
----
5751

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

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

query II rowsort
SELECT ALL 53 AS col1, 52 + 10
----
53
62

query I rowsort
SELECT - 18 + - 28 * 1 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT - 36 - - - COUNT( * ) * 40
----
-76

skipif mysql # not compatible
query I rowsort label-6748
SELECT - 36 - - - COUNT ( * ) * 40
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6749
SELECT ALL + 13, 86 + + NULLIF ( - + COUNT( * ), + 94 - - CAST( - + COALESCE ( - 55, - CASE 88 WHEN + 85 THEN - COALESCE ( 78, - MAX( COALESCE ( + 66, 81, + - ( 98 ) ) ) + + ( + - 65 ) * + - 25, - - ( - - 77 ) * + + 61 ) WHEN - 35 - - 23 THEN - CAST( 55 AS SIGNED ) END ) AS SIGNED ) ) * + COUNT( * ) * - 62 col2
----
13
148

skipif mysql # not compatible
query II rowsort label-6749
SELECT ALL + 13, 86 + + NULLIF ( - + COUNT ( * ), + 94 - - CAST ( - + COALESCE ( - 55, - CASE 88 WHEN + 85 THEN - COALESCE ( 78, - MAX ( COALESCE ( + 66, 81, + - ( 98 ) ) ) + + ( + - 65 ) * + - 25, - - ( - - 77 ) * + + 61 ) WHEN - 35 - - 23 THEN - CAST ( 55 AS INTEGER ) END ) AS INTEGER ) ) * + COUNT ( * ) * - 62 col2
----
13
148

query I rowsort
SELECT DISTINCT + - 28 * + 27
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT + MAX( ALL + 22 ) * - - 3 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-6751
SELECT + MAX ( ALL + 22 ) * - - 3 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT + MAX( ALL 7 ) + 54
----
61

skipif mysql # not compatible
query I rowsort label-6752
SELECT + MAX ( ALL 7 ) + 54
----
61

query I rowsort
SELECT - NULLIF ( + + 62, - 56 ) AS col0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6754
SELECT + 29 DIV 37
----
0

skipif mysql # not compatible
query I rowsort label-6754
SELECT + 29 / 37
----
0

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6758
SELECT - 58 DIV + 40
----
-1

skipif mysql # not compatible
query I rowsort label-6758
SELECT - 58 / + 40
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT - MAX( 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-6759
SELECT - MAX ( 87 ) AS col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6760
SELECT ALL CAST( - 56 AS SIGNED ) AS col2, - 92 + + 91
----
-56
-1

skipif mysql # not compatible
query II rowsort label-6760
SELECT ALL CAST ( - 56 AS INTEGER ) AS col2, - 92 + + 91
----
-56
-1

query I rowsort
SELECT DISTINCT 33 + 13 * 21 AS col2
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT - MAX( DISTINCT + - 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-6762
SELECT - MAX ( DISTINCT + - 60 ) AS col0
----
60

onlyif mysql # DIV for integer division: 
query II rowsort label-6763
SELECT - 74 - - + 40 AS col1, 88 DIV + ( 81 ) AS col2
----
-34
1

skipif mysql # not compatible
query II rowsort label-6763
SELECT - 74 - - + 40 AS col1, 88 / + ( 81 ) AS col2
----
-34
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT + MAX( ALL + - 55 ) + + - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-6765
SELECT + MAX ( ALL + - 55 ) + + - COUNT ( * )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-6766
SELECT ALL 75 DIV + - 28 + - 40 * + 29 AS col2
----
-1162

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL 75 / + - 28 + - 40 * + 29 AS col2
----
-1162

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT 74 * + ( - - MIN( ALL 66 ) ) + + 72 - + COUNT( * ) * - 86 * - 33
----
2118

skipif mysql # not compatible
query I rowsort label-6767
SELECT 74 * + ( - - MIN ( ALL 66 ) ) + + 72 - + COUNT ( * ) * - 86 * - 33
----
2118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6768
SELECT ALL - 7 DIV - 86 * 56 * + ( + 53 ) * + - 47 - - COUNT( * ) + + 68, COUNT( * ) AS col2
----
69
1

skipif mysql # not compatible
query II rowsort label-6768
SELECT ALL - 7 / - 86 * 56 * + ( + 53 ) * + - 47 - - COUNT ( * ) + + 68, COUNT ( * ) AS col2
----
69
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6769
SELECT DISTINCT 86 DIV - 33 + + - 83 * - 36
----
2986

skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT 86 / - 33 + + - 83 * - 36
----
2986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6770
SELECT ALL - 23 / ( + NULLIF ( - - 56, - 86 * - 73 + - - 44 ) ) / - - CAST( NULL AS SIGNED ) * - - CASE - COUNT( * ) WHEN + - 67 * - 47 * - 65 + - 74 THEN + SUM( 84 ) WHEN - 23 / - 76 - - 92 + + CASE WHEN CAST( - 14 AS DECIMAL ) >= + - 25 + ( + CASE + ( 6 ) WHEN + 6 * + + 73 THEN + + ( - 64 ) END ) * + ( + 79 ) THEN NULL ELSE + NULLIF ( - 54, - CAST( NULL AS SIGNED ) + + 42 ) + MIN( 84 - 85 ) * 98 END - COUNT( * ) THEN 23 END * AVG ( ALL 8 * + 57 ) + - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL - 23 / ( + NULLIF ( - - 56, - 86 * - 73 + - - 44 ) ) / - - CAST ( NULL AS INTEGER ) * - - CASE - COUNT ( * ) WHEN + - 67 * - 47 * - 65 + - 74 THEN + SUM ( 84 ) WHEN - 23 / - 76 - - 92 + + CASE WHEN CAST ( - 14 AS REAL ) >= + - 25 + ( + CASE + ( 6 ) WHEN + 6 * + + 73 THEN + + ( - 64 ) END ) * + ( + 79 ) THEN NULL ELSE + NULLIF ( - 54, - CAST ( NULL AS INTEGER ) + + 42 ) + MIN ( 84 - 85 ) * 98 END - COUNT ( * ) THEN 23 END * AVG ( ALL 8 * + 57 ) + - 85 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT + - MAX( 2 ) * + 55
----
-110

skipif mysql # not compatible
query I rowsort label-6771
SELECT + - MAX ( 2 ) * + 55
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6772
SELECT ALL - ( - - 49 ) + + 71 AS col2, CAST( NULL AS SIGNED )
----
22
NULL

skipif mysql # not compatible
query II rowsort label-6772
SELECT ALL - ( - - 49 ) + + 71 AS col2, CAST ( NULL AS INTEGER )
----
22
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6773
SELECT + 70 + - COUNT( * ) AS col0, + 99 - - 10
----
69
109

skipif mysql # not compatible
query II rowsort label-6773
SELECT + 70 + - COUNT ( * ) AS col0, + 99 - - 10
----
69
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6774
SELECT 22 * - CASE - 92 WHEN ( + + 11 ) + + + ( + ( - 98 ) ) THEN NULL ELSE - - 75 END - + + 62 + - + 60 DIV - 63 + + COUNT( - - 13 ) * + 21
----
-1691

skipif mysql # not compatible
query I rowsort label-6774
SELECT 22 * - CASE - 92 WHEN ( + + 11 ) + + + ( + ( - 98 ) ) THEN NULL ELSE - - 75 END - + + 62 + - + 60 / - 63 + + COUNT ( - - 13 ) * + 21
----
-1691

onlyif mysql # aggregate syntax: 
query II rowsort label-6775
SELECT DISTINCT + 58 * + + COUNT( * ), 70 - + 92 AS col0
----
58
-22

skipif mysql # not compatible
query II rowsort label-6775
SELECT DISTINCT + 58 * + + COUNT ( * ), 70 - + 92 AS col0
----
58
-22

query I rowsort
SELECT ALL - 67 - + 81 * + - ( - + 90 )
----
-7357

onlyif mysql # DIV for integer division: 
query I rowsort label-6777
SELECT 92 DIV - 24 col2
----
-3

skipif mysql # not compatible
query I rowsort label-6777
SELECT 92 / - 24 col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT - 60 * 36 * COUNT( * ) + + COUNT( * ) + + 13 + 9 + + - ( - 18 ) AS col0
----
-2119

skipif mysql # not compatible
query I rowsort label-6778
SELECT - 60 * 36 * COUNT ( * ) + + COUNT ( * ) + + 13 + 9 + + - ( - 18 ) AS col0
----
-2119

query I rowsort
SELECT + COALESCE ( - - 12, + ( + + 43 ) )
----
12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6781
SELECT 2 + - CASE + - CAST( NULL AS SIGNED ) WHEN + + COUNT( * ) * - + 73 - + 22 - + + COUNT( * ) / - NULLIF ( 62, - CASE 86 WHEN 4 + + COUNT( * ) + - 77 + - 1 / 21 + 15 * 74 THEN NULL WHEN - 14 THEN NULL WHEN + 73 + + 98 THEN - ( AVG ( DISTINCT - ( + 75 ) ) ) ELSE 18 END * + ( 39 ) ) THEN + 30 * + COUNT( ALL + + 20 ) WHEN + - 45 THEN NULL ELSE NULL END / 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6781
SELECT 2 + - CASE + - CAST ( NULL AS INTEGER ) WHEN + + COUNT ( * ) * - + 73 - + 22 - + + COUNT ( * ) / - NULLIF ( 62, - CASE 86 WHEN 4 + + COUNT ( * ) + - 77 + - 1 / 21 + 15 * 74 THEN NULL WHEN - 14 THEN NULL WHEN + 73 + + 98 THEN - ( AVG ( DISTINCT - ( + 75 ) ) ) ELSE 18 END * + ( 39 ) ) THEN + 30 * + COUNT ( ALL + + 20 ) WHEN + - 45 THEN NULL ELSE NULL END / 1 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6783
SELECT 44 * - CASE + 47 WHEN - NULLIF ( 6, 96 ) THEN - + 89 WHEN - - 86 THEN NULL END * - - COALESCE ( + 38, + MAX( ALL + 28 ) + - + 48, 10 * + 98, + NULLIF ( + 32, - COALESCE ( - - MAX( + + 49 ), + 68, + - COUNT( * ) ) + + + MAX( + 72 ) + - CAST( NULL AS SIGNED ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6783
SELECT 44 * - CASE + 47 WHEN - NULLIF ( 6, 96 ) THEN - + 89 WHEN - - 86 THEN NULL END * - - COALESCE ( + 38, + MAX ( ALL + 28 ) + - + 48, 10 * + 98, + NULLIF ( + 32, - COALESCE ( - - MAX ( + + 49 ), + 68, + - COUNT ( * ) ) + + + MAX ( + 72 ) + - CAST ( NULL AS INTEGER ) ) ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6784
SELECT 14 + 64 * - 0, CASE + + 42 WHEN ( - COUNT( * ) ) * - 46 - CAST( - + 42 AS SIGNED ) THEN - 59 WHEN + 16 + + COUNT( * ) + - 25 - - - 25 * 13 THEN 44 + 20 * - + 44 END / - 40 AS col2
----
14
NULL

skipif mysql # not compatible
query II rowsort label-6784
SELECT 14 + 64 * - 0, CASE + + 42 WHEN ( - COUNT ( * ) ) * - 46 - CAST ( - + 42 AS INTEGER ) THEN - 59 WHEN + 16 + + COUNT ( * ) + - 25 - - - 25 * 13 THEN 44 + 20 * - + 44 END / - 40 AS col2
----
14
NULL

query II rowsort
SELECT ALL 45 AS col0, ( 22 ) + 92 AS col1
----
45
114

query I rowsort
SELECT ALL - 68 * + 70 col0
----
-4760

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

query I rowsort
SELECT 49 + - 85
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-6789
SELECT 24 DIV - + 62
----
0

skipif mysql # not compatible
query I rowsort label-6789
SELECT 24 / - + 62
----
0

query II rowsort
SELECT 30 + - - 87 + + + 91, 36 AS col1
----
208
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT SUM( - + ( 1 ) ) + 7 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-6791
SELECT SUM ( - + ( 1 ) ) + 7 AS col1
----
6

query II rowsort
SELECT ALL 70, 70 * - 14 * 55 + 94 col0
----
70
-53806

query I rowsort
SELECT 49 + + ( 46 ) AS col0
----
95

query II rowsort
SELECT 84 - + 39 * + 59, + 75 AS col1
----
-2217
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT 58 + + SUM( DISTINCT 32 ) + - 38
----
52

skipif mysql # not compatible
query I rowsort label-6795
SELECT 58 + + SUM ( DISTINCT 32 ) + - 38
----
52

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

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL + COUNT ( * ) + - 14 AS col0
----
-13

query II rowsort
SELECT DISTINCT 30 AS col2, 78
----
30
78

query I rowsort
SELECT ALL 15 + + 88
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6799
SELECT 74 + - + 0 + + CAST( NULL AS SIGNED ) + + MIN( DISTINCT 7 ) - 80 + - + 35 * - + AVG ( 47 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6799
SELECT 74 + - + 0 + + CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT 7 ) - 80 + - + 35 * - + AVG ( 47 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6800
SELECT COALESCE ( ( - + COUNT( * ) ), 1 ) + + 20 DIV + 55 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6800
SELECT COALESCE ( ( - + COUNT ( * ) ), 1 ) + + 20 / + 55 AS col1
----
-1

query I rowsort
SELECT ALL - 81 * + 89
----
-7209

query II rowsort
SELECT - 19, - 19 AS col1
----
-19
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-6803
SELECT DISTINCT - - 53 AS col0, + 76 + + 78 * 90 * COUNT( * )
----
53
7096

skipif mysql # not compatible
query II rowsort label-6803
SELECT DISTINCT - - 53 AS col0, + 76 + + 78 * 90 * COUNT ( * )
----
53
7096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6804
SELECT ALL - 12 + + SUM( CASE + 55 WHEN - - 81 THEN NULL WHEN 33 THEN + CAST( - 55 AS SIGNED ) DIV - + 80 WHEN + 10 THEN NULL ELSE + 11 END ) * + + 96
----
1044

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL - 12 + + SUM ( CASE + 55 WHEN - - 81 THEN NULL WHEN 33 THEN + CAST ( - 55 AS INTEGER ) / - + 80 WHEN + 10 THEN NULL ELSE + 11 END ) * + + 96
----
1044

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

query I rowsort
SELECT + 2 + + + 3
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6807
SELECT 91 * MAX( + 97 ) AS col0, 16 * + - COUNT( * ) AS col0
----
8827
-16

skipif mysql # not compatible
query II rowsort label-6807
SELECT 91 * MAX ( + 97 ) AS col0, 16 * + - COUNT ( * ) AS col0
----
8827
-16

query I rowsort
SELECT - 11 * 53
----
-583

query II rowsort
SELECT ALL 80 * + 69 + 71 AS col0, 6
----
5591
6

query I rowsort
SELECT - 50 + 37 col0
----
-13

query II rowsort
SELECT DISTINCT - + 3, + 86 AS col1
----
-3
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT ALL + COUNT( * ) * 47 * - - 62 + 53 AS col1
----
2967

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL + COUNT ( * ) * 47 * - - 62 + 53 AS col1
----
2967

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT 37 + - - MIN( + 75 ) + + - 47
----
65

skipif mysql # not compatible
query I rowsort label-6813
SELECT 37 + - - MIN ( + 75 ) + + - 47
----
65

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

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

query I rowsort
SELECT 86 - + 40 * COALESCE ( + + 69, + 54 ) + - 37 AS col2
----
-2711

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT ALL ( MAX( DISTINCT - 67 ) ) * ( - 97 ) AS col2
----
6499

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL ( MAX ( DISTINCT - 67 ) ) * ( - 97 ) AS col2
----
6499

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT DISTINCT MIN( - 0 ) * + - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6817
SELECT DISTINCT MIN ( - 0 ) * + - 58 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT 0 * - - 73 + - 54 - - + 65 + + - 47 * - + 37 * COUNT( * ) * + 65
----
113046

skipif mysql # not compatible
query I rowsort label-6818
SELECT 0 * - - 73 + - 54 - - + 65 + + - 47 * - + 37 * COUNT ( * ) * + 65
----
113046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6819
SELECT ALL CAST( 87 AS SIGNED ) * CAST( 13 AS SIGNED ) AS col1, 59 * 65 * COUNT( * ) AS col1
----
1131
3835

skipif mysql # not compatible
query II rowsort label-6819
SELECT ALL CAST ( 87 AS INTEGER ) * CAST ( 13 AS INTEGER ) AS col1, 59 * 65 * COUNT ( * ) AS col1
----
1131
3835

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT DISTINCT MIN( + + 23 ) + - 42 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT MIN ( + + 23 ) + - 42 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT - MAX( ALL - 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6821
SELECT - MAX ( ALL - 46 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT ALL CASE 4 WHEN + - 20 + + COUNT( * ) * - 77 THEN NULL WHEN 8 + - 74 * COUNT( * ) - + + 1 * + 33 * - 43 THEN SUM( ALL - - 61 ) WHEN + 76 + 11 THEN + 95 END + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6822
SELECT ALL CASE 4 WHEN + - 20 + + COUNT ( * ) * - 77 THEN NULL WHEN 8 + - 74 * COUNT ( * ) - + + 1 * + 33 * - 43 THEN SUM ( ALL - - 61 ) WHEN + 76 + 11 THEN + 95 END + - 91
----
NULL

query I rowsort
SELECT 69 * - - 31 * 7
----
14973

query I rowsort
SELECT 39 * - - 32 * - 87
----
-108576

query I rowsort
SELECT 75 + 15
----
90

query I rowsort
SELECT ALL + 10 + - + ( - 33 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT 84 + 85 + - 24 - - 7 * + COUNT( ALL - - 51 ) + - COUNT( * ) * + ( - 32 ) * + ( + - 17 ) * - 96 AS col0
----
52376

skipif mysql # not compatible
query I rowsort label-6827
SELECT 84 + 85 + - 24 - - 7 * + COUNT ( ALL - - 51 ) + - COUNT ( * ) * + ( - 32 ) * + ( + - 17 ) * - 96 AS col0
----
52376

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

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

query I rowsort
SELECT ALL - 37 + 73 + 78 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT DISTINCT - COUNT( * ) * 41 * + 7
----
-287

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT - COUNT ( * ) * 41 * + 7
----
-287

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT DISTINCT MIN( - + 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT MIN ( - + 0 ) AS col2
----
0

query I rowsort
SELECT DISTINCT + 92 + 93
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6833
SELECT DISTINCT - COUNT( ALL - - 92 ) * + 24 * + 76 - + - 64 + + + 28 DIV + ( - 67 ) AS col1
----
-1760

skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT - COUNT ( ALL - - 92 ) * + 24 * + 76 - + - 64 + + + 28 / + ( - 67 ) AS col1
----
-1760

query I rowsort
SELECT - 39 + 58 * - 40 AS col2
----
-2359

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT + + 6 * - 64 + - NULLIF ( COUNT( * ), + 27 * - 97 )
----
-385

skipif mysql # not compatible
query I rowsort label-6835
SELECT + + 6 * - 64 + - NULLIF ( COUNT ( * ), + 27 * - 97 )
----
-385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6836
SELECT - + CASE + + NULLIF ( - 92, - ( - 61 ) ) WHEN + 32 THEN + COUNT( * ) WHEN - 6 - + - 56 + 61 THEN NULL END / - CAST( - + CAST( NULL AS DECIMAL ) AS DECIMAL ) * - - 77 + - 49 + 29 * - 31 * + 18 AS col1, 18 + - COUNT( * ) - + 97 + - 25 + + COUNT( * ) + 86 + - - CAST( 68 AS SIGNED ) + - ( 96 ), - - ( + - 76 ) * + - 85 AS col1
----
NULL
-46
6460

skipif mysql # not compatible
query III rowsort label-6836
SELECT - + CASE + + NULLIF ( - 92, - ( - 61 ) ) WHEN + 32 THEN + COUNT ( * ) WHEN - 6 - + - 56 + 61 THEN NULL END / - CAST ( - + CAST ( NULL AS REAL ) AS REAL ) * - - 77 + - 49 + 29 * - 31 * + 18 AS col1, 18 + - COUNT ( * ) - + 97 + - 25 + + COUNT ( * ) + 86 + - - CAST ( 68 AS INTEGER ) + - ( 96 ), - - ( + - 76 ) * + - 85 AS col1
----
NULL
-46
6460

onlyif mysql # DIV for integer division: 
query I rowsort label-6837
SELECT 20 DIV - 70 - - + NULLIF ( 7, - - 82 ) col1
----
7

skipif mysql # not compatible
query I rowsort label-6837
SELECT 20 / - 70 - - + NULLIF ( 7, - - 82 ) col1
----
7

query I rowsort
SELECT - + ( + 9 ) - - 20 AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT ALL - + CASE + ( - 18 ) WHEN + - 14 + + 6 THEN + 83 - - 16 ELSE NULL END * + CAST( NULL AS SIGNED ) + 80 / - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL - + CASE + ( - 18 ) WHEN + - 14 + + 6 THEN + 83 - - 16 ELSE NULL END * + CAST ( NULL AS INTEGER ) + 80 / - 97
----
NULL

query II rowsort
SELECT - 41 * + 54 col1, + 92
----
-2214
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT + COALESCE ( - MAX( - 53 ), - 54 * - - 99 * - + 75 * 0 ) * + COUNT( 21 ) * 85 AS col2
----
4505

skipif mysql # not compatible
query I rowsort label-6841
SELECT + COALESCE ( - MAX ( - 53 ), - 54 * - - 99 * - + 75 * 0 ) * + COUNT ( 21 ) * 85 AS col2
----
4505

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT - 92 * 80 - MIN( + 38 )
----
-7398

skipif mysql # not compatible
query I rowsort label-6842
SELECT - 92 * 80 - MIN ( + 38 )
----
-7398

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT - - 93 * - - CASE - MIN( 35 ) WHEN + 69 THEN NULL ELSE - 0 END + - 79 col2
----
-79

skipif mysql # not compatible
query I rowsort label-6843
SELECT - - 93 * - - CASE - MIN ( 35 ) WHEN + 69 THEN NULL ELSE - 0 END + - 79 col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6844
SELECT ALL - MAX( ALL + 98 ) * 92 + CAST( - - CAST( - + 90 AS SIGNED ) AS SIGNED ) + 46 AS col1
----
-9060

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL - MAX ( ALL + 98 ) * 92 + CAST ( - - CAST ( - + 90 AS INTEGER ) AS INTEGER ) + 46 AS col1
----
-9060

query I rowsort
SELECT ALL 8 * + 28 + + + 16 AS col1
----
240

query I rowsort
SELECT + 11 * 53 AS col1
----
583

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT - 99 + - NULLIF ( - - 77, - 5 * + + 78 - - + CASE 93 WHEN - - 66 THEN NULL WHEN + + 98 THEN + - COALESCE ( 58, - 42, COALESCE ( - 29, - 26 + - + COUNT( ALL - ( - 74 ) ) ) ) ELSE NULL END ) * 84
----
-6567

skipif mysql # not compatible
query I rowsort label-6847
SELECT - 99 + - NULLIF ( - - 77, - 5 * + + 78 - - + CASE 93 WHEN - - 66 THEN NULL WHEN + + 98 THEN + - COALESCE ( 58, - 42, COALESCE ( - 29, - 26 + - + COUNT ( ALL - ( - 74 ) ) ) ) ELSE NULL END ) * 84
----
-6567

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT + MAX( ALL NULLIF ( - 4, 13 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-6848
SELECT + MAX ( ALL NULLIF ( - 4, 13 ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT MIN( DISTINCT - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-6849
SELECT MIN ( DISTINCT - 59 )
----
-59

query I rowsort
SELECT + 75 + - - 95 + - 52
----
118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6851
SELECT + CASE + 34 WHEN - + CASE ( + 0 ) WHEN + 69 THEN + 51 ELSE - 27 END THEN 17 WHEN + COALESCE ( + + CASE - - COUNT( * ) WHEN + 51 * - 16 THEN + + NULLIF ( - + COALESCE ( - COALESCE ( - COUNT( + 74 ), - - 59 + - 40 + + - COUNT( * ) ), + 93 * - 49, 32, - 89 + + + 57 ), 64 ) WHEN - COALESCE ( - - 88, - COUNT( * ) ) THEN NULL END, - - COUNT( * ) * + - 89, - 71 ) * 98 + 35 * 52 THEN 43 * + CAST( NULL AS DECIMAL ) END * + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT + CASE + 34 WHEN - + CASE ( + 0 ) WHEN + 69 THEN + 51 ELSE - 27 END THEN 17 WHEN + COALESCE ( + + CASE - - COUNT ( * ) WHEN + 51 * - 16 THEN + + NULLIF ( - + COALESCE ( - COALESCE ( - COUNT ( + 74 ), - - 59 + - 40 + + - COUNT ( * ) ), + 93 * - 49, 32, - 89 + + + 57 ), 64 ) WHEN - COALESCE ( - - 88, - COUNT ( * ) ) THEN NULL END, - - COUNT ( * ) * + - 89, - 71 ) * 98 + 35 * 52 THEN 43 * + CAST ( NULL AS REAL ) END * + 43
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT + COUNT( * ) + 80 * + 39
----
3121

skipif mysql # not compatible
query I rowsort label-6853
SELECT + COUNT ( * ) + 80 * + 39
----
3121

query I rowsort
SELECT ALL 39 + - 41
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT + COALESCE ( - + 69, + 58 * - MIN( 38 ) + + MAX( ALL 25 ), 96 ) * + - 89 - + - 44
----
6185

skipif mysql # not compatible
query I rowsort label-6855
SELECT + COALESCE ( - + 69, + 58 * - MIN ( 38 ) + + MAX ( ALL 25 ), 96 ) * + - 89 - + - 44
----
6185

query I rowsort
SELECT DISTINCT 68 - + 44
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6857
SELECT + ( 29 ) * CAST( NULL AS DECIMAL ) / - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT + ( 29 ) * CAST ( NULL AS REAL ) / - 53
----
NULL

query I rowsort
SELECT + ( 12 ) + - - NULLIF ( - 48, + 86 + 94 ) * - 89 + ( + - 66 ) * - + 93
----
10422

query I rowsort
SELECT ALL 3 - 58
----
-55

query I rowsort
SELECT - CASE - 16 WHEN + 8 THEN NULL ELSE 99 END
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT + 85 + + - 99 + + ( - - 37 ) + - - 72 * + + 78 + 30 + + NULLIF ( - CASE 1 WHEN + + 81 * - COUNT( * ) * + - 56 + + COUNT( * ) / + - COUNT( * ) THEN NULL WHEN + + 56 THEN COUNT( * ) + - ( + + COUNT( * ) ) * - 57 * 98 ELSE - + 74 * - 11 END, + - ( - COUNT( * ) ) + - 97 + 59 * - - 92 ) * + + 92 AS col0
----
-69219

skipif mysql # not compatible
query I rowsort label-6861
SELECT + 85 + + - 99 + + ( - - 37 ) + - - 72 * + + 78 + 30 + + NULLIF ( - CASE 1 WHEN + + 81 * - COUNT ( * ) * + - 56 + + COUNT ( * ) / + - COUNT ( * ) THEN NULL WHEN + + 56 THEN COUNT ( * ) + - ( + + COUNT ( * ) ) * - 57 * 98 ELSE - + 74 * - 11 END, + - ( - COUNT ( * ) ) + - 97 + 59 * - - 92 ) * + + 92 AS col0
----
-69219

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT - 91 * + - 70 * COUNT( ALL - + 77 )
----
6370

skipif mysql # not compatible
query I rowsort label-6862
SELECT - 91 * + - 70 * COUNT ( ALL - + 77 )
----
6370

query I rowsort
SELECT + - 90 + + - ( + 71 ) AS col2
----
-161

query I rowsort
SELECT - - ( + - 32 ) - 80 col2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT + + 15 + + - CASE WHEN NOT NULL > 45 THEN COUNT( * ) ELSE + COUNT( * ) END AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6865
SELECT + + 15 + + - CASE WHEN NOT NULL > 45 THEN COUNT ( * ) ELSE + COUNT ( * ) END AS col2
----
14

query I rowsort
SELECT - + 10 + + - 6 AS col1
----
-16

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6868
SELECT ALL - CAST( NULL AS SIGNED ), 80 AS col2
----
NULL
80

skipif mysql # not compatible
query II rowsort label-6868
SELECT ALL - CAST ( NULL AS INTEGER ), 80 AS col2
----
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT DISTINCT + NULLIF ( - MAX( ALL - 88 ), 39 )
----
88

skipif mysql # not compatible
query I rowsort label-6869
SELECT DISTINCT + NULLIF ( - MAX ( ALL - 88 ), 39 )
----
88

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6871
SELECT - + CASE CAST( + 31 AS SIGNED ) WHEN + 22 THEN NULL ELSE + 83 * + - 77 * + 63 END / + 28 * 42 / + CAST( NULL AS SIGNED ) * - 14 + + MAX( 97 ) + - - 20 * 40 + COUNT( ALL - 37 ) + - 90, 37 AS col1
----
NULL
37

skipif mysql # not compatible
query II rowsort label-6871
SELECT - + CASE CAST ( + 31 AS INTEGER ) WHEN + 22 THEN NULL ELSE + 83 * + - 77 * + 63 END / + 28 * 42 / + CAST ( NULL AS INTEGER ) * - 14 + + MAX ( 97 ) + - - 20 * 40 + COUNT ( ALL - 37 ) + - 90, 37 AS col1
----
NULL
37

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

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

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

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

query I rowsort
SELECT - - 97 + - 80 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT - - COUNT( * ) * - COALESCE ( + ( 37 ), + 53 * COUNT( * ) - + 57 - 76, - SUM( ALL 27 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-6875
SELECT - - COUNT ( * ) * - COALESCE ( + ( 37 ), + 53 * COUNT ( * ) - + 57 - 76, - SUM ( ALL 27 ) )
----
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-6876
SELECT DISTINCT - - 64 DIV - 5 + - 88 AS col0, - ( + - 51 )
----
-100
51

skipif mysql # not compatible
query II rowsort label-6876
SELECT DISTINCT - - 64 / - 5 + - 88 AS col0, - ( + - 51 )
----
-100
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6877
SELECT ALL 36 / + + 63 + + NULLIF ( - CASE 23 WHEN - 40 THEN + 4 END, ( - + CAST( 13 AS SIGNED ) ) * - - 25 * 90 / - 75 * - + COUNT( * ) - + + ( + + 72 ) + + ( 86 ) / SUM( + - 76 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL 36 / + + 63 + + NULLIF ( - CASE 23 WHEN - 40 THEN + 4 END, ( - + CAST ( 13 AS INTEGER ) ) * - - 25 * 90 / - 75 * - + COUNT ( * ) - + + ( + + 72 ) + + ( 86 ) / SUM ( + - 76 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6878
SELECT - COALESCE ( 25, MIN( ALL - 50 ) - - 88 + - ( 10 ) * + 14 - + + 55, + 49 ) + - 44 AS col1, 51 * - - COALESCE ( - 46, ( + 85 ) )
----
-69
-2346

skipif mysql # not compatible
query II rowsort label-6878
SELECT - COALESCE ( 25, MIN ( ALL - 50 ) - - 88 + - ( 10 ) * + 14 - + + 55, + 49 ) + - 44 AS col1, 51 * - - COALESCE ( - 46, ( + 85 ) )
----
-69
-2346

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

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT - 7 * + 85 + - COUNT ( * ) AS col1
----
-596

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6880
SELECT ALL + SUM( ALL + + ( + CAST( NULL AS DECIMAL ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL + SUM ( ALL + + ( + CAST ( NULL AS REAL ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6881
SELECT + 42, - COUNT( + 13 ) * - - 19 AS col0
----
42
-19

skipif mysql # not compatible
query II rowsort label-6881
SELECT + 42, - COUNT ( + 13 ) * - - 19 AS col0
----
42
-19

query I rowsort
SELECT - 88 + + 84 AS col1
----
-4

query I rowsort
SELECT DISTINCT - 64 * 86 * CASE WHEN 41 = NULL THEN NULL ELSE ( + ( - - ( 9 ) ) ) * ( 66 ) END * - 31 col1
----
101350656

query I rowsort
SELECT - 34 - 82 AS col1
----
-116

query I rowsort
SELECT + COALESCE ( 51, 52 ) * - 53 + + 20
----
-2683

query I rowsort
SELECT DISTINCT 16 * - 91 + + 76
----
-1380

query II rowsort
SELECT ALL + 33 AS col1, 27 * ( 50 ) + - 35
----
33
1315

query I rowsort
SELECT + CASE + - 38 WHEN - ( - ( - 95 ) ) THEN + 76 END
----
NULL

query I rowsort
SELECT DISTINCT ( 19 ) * - 96 - + 51
----
-1875

query I rowsort
SELECT ALL - 74 - + - 34 * + 62 AS col0
----
2034

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6891
SELECT 58 * + CAST( NULL AS SIGNED ), 68 AS col2
----
NULL
68

skipif mysql # not compatible
query II rowsort label-6891
SELECT 58 * + CAST ( NULL AS INTEGER ), 68 AS col2
----
NULL
68

query II rowsort
SELECT - 29, 89 AS col2
----
-29
89

query II rowsort
SELECT ALL 30, - 55 col2
----
30
-55

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

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

query II rowsort
SELECT - 38 AS col2, ( + 90 )
----
-38
90

query I rowsort
SELECT ALL 47 - + 57
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-6897
SELECT 74 DIV - 35 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6897
SELECT 74 / - 35 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6898
SELECT DISTINCT + - 55 DIV + + 54 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT + - 55 / + + 54 AS col1
----
-1

query II rowsort
SELECT ALL 88, - 55 AS col0
----
88
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT - 30 * + + MAX( + 10 )
----
-300

skipif mysql # not compatible
query I rowsort label-6900
SELECT - 30 * + + MAX ( + 10 )
----
-300

query II rowsort
SELECT DISTINCT 33, - 52 * 20 col0
----
33
-1040

query I rowsort
SELECT ALL + 73 * + 82 AS col0
----
5986

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6903
SELECT DISTINCT - CAST( ( - 31 ) AS SIGNED ) DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT - CAST ( ( - 31 ) AS INTEGER ) / - 72
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6904
SELECT CASE + 96 WHEN - ( - - CAST( + + 27 AS SIGNED ) ) THEN + 5 ELSE + 22 END
----
22

skipif mysql # not compatible
query I rowsort label-6904
SELECT CASE + 96 WHEN - ( - - CAST ( + + 27 AS INTEGER ) ) THEN + 5 ELSE + 22 END
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT ( - COUNT( * ) ) + - 98 - - - 32 * - 14
----
349

skipif mysql # not compatible
query I rowsort label-6905
SELECT ( - COUNT ( * ) ) + - 98 - - - 32 * - 14
----
349

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT MAX( + 6 ) + - COALESCE ( + 37, 41 ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-6906
SELECT MAX ( + 6 ) + - COALESCE ( + 37, 41 ) col0
----
-31

query I rowsort
SELECT 22 * 82 AS col2
----
1804

query II rowsort
SELECT ALL 7, + 78 AS col2
----
7
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT ALL 16 + - COUNT( * ) * 33
----
-17

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL 16 + - COUNT ( * ) * 33
----
-17

query I rowsort
SELECT ALL + - ( + 82 ) + 6 + - 12 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT + COUNT( DISTINCT - 51 )
----
1

skipif mysql # not compatible
query I rowsort label-6911
SELECT + COUNT ( DISTINCT - 51 )
----
1

query I rowsort
SELECT - 87 + - + 40 AS col2
----
-127

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

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

query I rowsort
SELECT ALL + 23 + + + 52 * - + 38
----
-1953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6915
SELECT MIN( DISTINCT - - 24 ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6915
SELECT MIN ( DISTINCT - - 24 ) * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 5 - - 55 AS col2
----
60

query I rowsort
SELECT 68 * - 82 AS col2
----
-5576

onlyif mysql # DIV for integer division: 
query I rowsort label-6918
SELECT ALL - 78 DIV - + 99
----
0

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL - 78 / - + 99
----
0

query I rowsort
SELECT DISTINCT - 6 - - 78 * 89
----
6936

onlyif mysql # DIV for integer division: 
query I rowsort label-6920
SELECT ALL - 88 DIV - + 4 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL - 88 / - + 4 AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-6921
SELECT 58 * + 64 * COUNT( * ) AS col2, - COUNT( * ) * ( + + 34 ) - + 18 col0
----
3712
-52

skipif mysql # not compatible
query II rowsort label-6921
SELECT 58 * + 64 * COUNT ( * ) AS col2, - COUNT ( * ) * ( + + 34 ) - + 18 col0
----
3712
-52

query I rowsort
SELECT 64 + 6 * 34 AS col1
----
268

query I rowsort
SELECT 68 * - 49 * - - 82 AS col1
----
-273224

onlyif mysql # aggregate syntax: 
query II rowsort label-6924
SELECT ALL + 15 * - COUNT( * ) AS col0, - 65 - 76 + + 28 * - 32 * - + 8 * + ( + 17 ) * COUNT( * )
----
-15
121715

skipif mysql # not compatible
query II rowsort label-6924
SELECT ALL + 15 * - COUNT ( * ) AS col0, - 65 - 76 + + 28 * - 32 * - + 8 * + ( + 17 ) * COUNT ( * )
----
-15
121715

query I rowsort
SELECT 74 + + 11 * - ( - + 97 ) * 88
----
93970

onlyif mysql # aggregate syntax: 
query II rowsort label-6926
SELECT COUNT( * ) - 10 AS col2, - COUNT( * ) * - 19 + + - 9 + - + 58 AS col1
----
-9
-48

skipif mysql # not compatible
query II rowsort label-6926
SELECT COUNT ( * ) - 10 AS col2, - COUNT ( * ) * - 19 + + - 9 + - + 58 AS col1
----
-9
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6927
SELECT COUNT( * ) * 11 DIV - + 90 + + 16
----
16

skipif mysql # not compatible
query I rowsort label-6927
SELECT COUNT ( * ) * 11 / - + 90 + + 16
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6928
SELECT ALL MIN( + CASE - + COALESCE ( + + 88, + - ( 75 ) ) WHEN 97 / 40 THEN - 44 + + 0 END ), NULLIF ( + CAST( 62 AS SIGNED ), - CAST( NULL AS SIGNED ) ) col1
----
NULL
62

skipif mysql # not compatible
query II rowsort label-6928
SELECT ALL MIN ( + CASE - + COALESCE ( + + 88, + - ( 75 ) ) WHEN 97 / 40 THEN - 44 + + 0 END ), NULLIF ( + CAST ( 62 AS INTEGER ), - CAST ( NULL AS INTEGER ) ) col1
----
NULL
62

query I rowsort
SELECT 93 + - 10 AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6930
SELECT ALL + 16 * 64 DIV 16 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL + 16 * 64 / 16 AS col2
----
64

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

query I rowsort
SELECT DISTINCT + 10 + - + ( + 58 ) + - 28 - - 21
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6933
SELECT ALL + 77 + + - 80 DIV COUNT( * ) * + 3
----
-163

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL + 77 + + - 80 / COUNT ( * ) * + 3
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT 60 * + 44 + - 58 * + 71 * - 26 + - COUNT( + 46 )
----
109707

skipif mysql # not compatible
query I rowsort label-6934
SELECT 60 * + 44 + - 58 * + 71 * - 26 + - COUNT ( + 46 )
----
109707

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT - 77 + - - 20 * + 33 * 47 - - ( - MAX( DISTINCT - 78 ) ) + - - 86 * NULLIF ( + 46, NULLIF ( + + 10, + - 75 ) ) * - 35
----
-107439

skipif mysql # not compatible
query I rowsort label-6935
SELECT - 77 + - - 20 * + 33 * 47 - - ( - MAX ( DISTINCT - 78 ) ) + - - 86 * NULLIF ( + 46, NULLIF ( + + 10, + - 75 ) ) * - 35
----
-107439

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6936
SELECT - NULLIF ( - - 56, + 99 ) DIV + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-6936
SELECT - NULLIF ( - - 56, + 99 ) / + COUNT ( * )
----
-56

query I rowsort
SELECT ALL - 17 + 18 + + 20 * - - 80 * - 60 AS col1
----
-95999

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT DISTINCT + 58 + MAX( - ( + 90 ) ) - + 58
----
-90

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT + 58 + MAX ( - ( + 90 ) ) - + 58
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6939
SELECT ALL + CAST( NULL AS DECIMAL ) + 3, - 19 - - 94 + - + 49 AS col1
----
NULL
26

skipif mysql # not compatible
query II rowsort label-6939
SELECT ALL + CAST ( NULL AS REAL ) + 3, - 19 - - 94 + - + 49 AS col1
----
NULL
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6940
SELECT DISTINCT 32 * - CAST( + 45 AS SIGNED ) * - 27 AS col1
----
38880

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT 32 * - CAST ( + 45 AS INTEGER ) * - 27 AS col1
----
38880

query I rowsort
SELECT + 71 + 74 * + - 35
----
-2519

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT ALL + + ( - 99 ) * + COUNT( * ) + + 3 - - 27 * + 94 * + MIN( - - 37 ) * + 44 col1
----
4131768

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL + + ( - 99 ) * + COUNT ( * ) + + 3 - - 27 * + 94 * + MIN ( - - 37 ) * + 44 col1
----
4131768

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT ALL 96 * - MIN( DISTINCT + 46 ) - + COUNT( * ) AS col1
----
-4417

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL 96 * - MIN ( DISTINCT + 46 ) - + COUNT ( * ) AS col1
----
-4417

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT DISTINCT MIN( - 43 ) * - 58 - + 92 + - 43
----
2359

skipif mysql # not compatible
query I rowsort label-6945
SELECT DISTINCT MIN ( - 43 ) * - 58 - + 92 + - 43
----
2359

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

skipif mysql # not compatible
query I rowsort label-6946
SELECT MIN ( ALL 15 )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6947
SELECT ALL - COUNT( * ), - CASE WHEN 73 <> NULL THEN - AVG ( ALL 51 ) END / + 68 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6947
SELECT ALL - COUNT ( * ), - CASE WHEN 73 <> NULL THEN - AVG ( ALL 51 ) END / + 68 AS col2
----
-1
NULL

query I rowsort
SELECT DISTINCT 8 * + 3 - 0 AS col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-6949
SELECT ALL 87 * COUNT( * ) * + 13, + 37 AS col0
----
1131
37

skipif mysql # not compatible
query II rowsort label-6949
SELECT ALL 87 * COUNT ( * ) * + 13, + 37 AS col0
----
1131
37

query I rowsort
SELECT - 98 + + + 73 + 79 * + ( 17 )
----
1318

onlyif mysql # aggregate syntax: 
query II rowsort label-6951
SELECT + 59 col2, - COUNT( * ) col1
----
59
-1

skipif mysql # not compatible
query II rowsort label-6951
SELECT + 59 col2, - COUNT ( * ) col1
----
59
-1

query I rowsort
SELECT DISTINCT 22 * 30
----
660

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

skipif mysql # not compatible
query I rowsort label-6953
SELECT + 45 / - - 92 * - COUNT ( * )
----
0

query I rowsort
SELECT - 51 * - 86 AS col2
----
4386

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT 11 * - + 42 * - - 53 + - MAX( ALL - 68 )
----
-24418

skipif mysql # not compatible
query I rowsort label-6955
SELECT 11 * - + 42 * - - 53 + - MAX ( ALL - 68 )
----
-24418

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT SUM( ALL 77 ) col2
----
77

skipif mysql # not compatible
query I rowsort label-6956
SELECT SUM ( ALL 77 ) col2
----
77

query I rowsort
SELECT - 15 * 56
----
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6958
SELECT DISTINCT + COUNT( * ) AS col0, CAST( - 90 AS DECIMAL ) - + - 66 + AVG ( - CAST( NULL AS SIGNED ) ) + 89
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6958
SELECT DISTINCT + COUNT ( * ) AS col0, CAST ( - 90 AS REAL ) - + - 66 + AVG ( - CAST ( NULL AS INTEGER ) ) + 89
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT - 91 * + COALESCE ( + COUNT( * ), - + 95 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-6959
SELECT - 91 * + COALESCE ( + COUNT ( * ), - + 95 ) AS col1
----
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT - ( MIN( - + 83 ) ) * - 95
----
-7885

skipif mysql # not compatible
query I rowsort label-6961
SELECT - ( MIN ( - + 83 ) ) * - 95
----
-7885

query I rowsort
SELECT ALL + - 25 + - 57
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6963
SELECT - CAST( - 1 AS SIGNED ) - 15 AS col2, + ( + 33 ) AS col2
----
-14
33

skipif mysql # not compatible
query II rowsort label-6963
SELECT - CAST ( - 1 AS INTEGER ) - 15 AS col2, + ( + 33 ) AS col2
----
-14
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT ALL - NULLIF ( + - COUNT( * ), + 46 * 32 + + ( + 62 ) + + 7 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL - NULLIF ( + - COUNT ( * ), + 46 * 32 + + ( + 62 ) + + 7 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6965
SELECT - CAST( NULL AS SIGNED ) * - 40 + - - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6965
SELECT - CAST ( NULL AS INTEGER ) * - 40 + - - 19 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6966
SELECT ALL - 54 * + CAST( ( - 69 ) AS SIGNED ) * - 2
----
-7452

skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL - 54 * + CAST ( ( - 69 ) AS INTEGER ) * - 2
----
-7452

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT ALL + CASE + - 83 WHEN 71 - + 50 + ( + COUNT( * ) ) + + ( + NULLIF ( + 81, + 31 ) ) + 20 * + 40 / + 49 THEN + 3 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL + CASE + - 83 WHEN 71 - + 50 + ( + COUNT ( * ) ) + + ( + NULLIF ( + 81, + 31 ) ) + 20 * + 40 / + 49 THEN + 3 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 8 + + - 98
----
-106

query II rowsort
SELECT - 31 AS col2, 98 + + - 26
----
-31
72

query I rowsort
SELECT ALL - 5 - + 72
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT - COUNT( * ) + + 28 * 4 * - - MAX( ALL 93 ) AS col2
----
10415

skipif mysql # not compatible
query I rowsort label-6971
SELECT - COUNT ( * ) + + 28 * 4 * - - MAX ( ALL 93 ) AS col2
----
10415

query II rowsort
SELECT + 78 * - 19 + + 67, - 10 AS col0
----
-1415
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT - MIN( ALL + 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-6973
SELECT - MIN ( ALL + 50 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT ALL - 23 - COUNT( ALL 15 ) + - - 63 * 15 * - 70 col0
----
-66174

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL - 23 - COUNT ( ALL 15 ) + - - 63 * 15 * - 70 col0
----
-66174

query I rowsort
SELECT DISTINCT 40 * - 82 AS col1
----
-3280

onlyif mysql # aggregate syntax: 
query II rowsort label-6976
SELECT DISTINCT - 5 * COUNT( * ), 76 + + 48 AS col0
----
-5
124

skipif mysql # not compatible
query II rowsort label-6976
SELECT DISTINCT - 5 * COUNT ( * ), 76 + + 48 AS col0
----
-5
124

onlyif mysql # DIV for integer division: 
query I rowsort label-6977
SELECT ( + + 92 ) DIV 45 * ( + 8 ) + 26 + - 5 * - + 77 * - 5 * 24 AS col0
----
-46158

skipif mysql # not compatible
query I rowsort label-6977
SELECT ( + + 92 ) / 45 * ( + 8 ) + 26 + - 5 * - + 77 * - 5 * 24 AS col0
----
-46158

query I rowsort
SELECT ALL - 88 * + 29 AS col2
----
-2552

query I rowsort
SELECT DISTINCT 46 * 51
----
2346

query I rowsort
SELECT DISTINCT 4 * - 25
----
-100

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6983
SELECT ( - 91 ) col2, - 50 * - NULLIF ( + 14, - COUNT( * ) * 3 ) + 22
----
-91
722

skipif mysql # not compatible
query II rowsort label-6983
SELECT ( - 91 ) col2, - 50 * - NULLIF ( + 14, - COUNT ( * ) * 3 ) + 22
----
-91
722

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT ALL - 67 * - COUNT( * ) + 7
----
74

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL - 67 * - COUNT ( * ) + 7
----
74

query I rowsort
SELECT + 9 - 45 - + 96
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6986
SELECT + CAST( - NULLIF ( + COUNT( * ), - + 36 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6986
SELECT + CAST ( - NULLIF ( + COUNT ( * ), - + 36 ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6987
SELECT - 23 * - ( - 44 ) + + + ( - - 0 ) DIV + MIN( DISTINCT - 26 ) AS col0
----
-1012

skipif mysql # not compatible
query I rowsort label-6987
SELECT - 23 * - ( - 44 ) + + + ( - - 0 ) / + MIN ( DISTINCT - 26 ) AS col0
----
-1012

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

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

query I rowsort
SELECT DISTINCT + 94 * - 4
----
-376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6990
SELECT - - 25 - CAST( 3 AS SIGNED ) + - 86 + + 74 - + 74 * - ( 48 )
----
3562

skipif mysql # not compatible
query I rowsort label-6990
SELECT - - 25 - CAST ( 3 AS INTEGER ) + - 86 + + 74 - + 74 * - ( 48 )
----
3562

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT + - 80 + + COUNT( * ) + + - 43 AS col0
----
-122

skipif mysql # not compatible
query I rowsort label-6991
SELECT + - 80 + + COUNT ( * ) + + - 43 AS col0
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6992
SELECT - 12 + - + 3 * 75 - - - CAST( NULL AS SIGNED ) + + ( + 58 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6992
SELECT - 12 + - + 3 * 75 - - - CAST ( NULL AS INTEGER ) + + ( + 58 ) AS col2
----
NULL

query I rowsort
SELECT - + NULLIF ( + 91, + 70 ) col1
----
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT - ( - - 67 ) + + 4 * - + 27 * - - COUNT( * )
----
-175

skipif mysql # not compatible
query I rowsort label-6995
SELECT - ( - - 67 ) + + 4 * - + 27 * - - COUNT ( * )
----
-175

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6997
SELECT DISTINCT + 67 DIV + 71 col1
----
0

skipif mysql # not compatible
query I rowsort label-6997
SELECT DISTINCT + 67 / + 71 col1
----
0

query I rowsort
SELECT ALL - 9 - - 22 + + + 84 col0
----
97

query I rowsort
SELECT - + NULLIF ( 76, 79 / - 10 + - + 40 - + - 97 ) col2
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-7000
SELECT ALL + - 18 * + + COUNT( * ), 34 AS col2
----
-18
34

skipif mysql # not compatible
query II rowsort label-7000
SELECT ALL + - 18 * + + COUNT ( * ), 34 AS col2
----
-18
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7001
SELECT + - NULLIF ( + + 9, - 32 + - ( + ( - 20 ) ) + + 83 ) DIV + + 23
----
0

skipif mysql # not compatible
query I rowsort label-7001
SELECT + - NULLIF ( + + 9, - 32 + - ( + ( - 20 ) ) + + 83 ) / + + 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT - - NULLIF ( COALESCE ( - - COUNT( * ), COUNT( * ) ), - COUNT( * ) ) * 83
----
83

skipif mysql # not compatible
query I rowsort label-7002
SELECT - - NULLIF ( COALESCE ( - - COUNT ( * ), COUNT ( * ) ), - COUNT ( * ) ) * 83
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7003
SELECT - 67 + COUNT( ALL - + ( - 58 ) ) col2, + 86 - - + 56
----
-66
142

skipif mysql # not compatible
query II rowsort label-7003
SELECT - 67 + COUNT ( ALL - + ( - 58 ) ) col2, + 86 - - + 56
----
-66
142

query II rowsort
SELECT - + 48 + + + 50, + 72 AS col2
----
2
72

onlyif mysql # aggregate syntax: 
query II rowsort label-7005
SELECT ALL - + 6 * + - 84 AS col0, - 23 * - COUNT( * ) AS col0
----
504
23

skipif mysql # not compatible
query II rowsort label-7005
SELECT ALL - + 6 * + - 84 AS col0, - 23 * - COUNT ( * ) AS col0
----
504
23

query I rowsort
SELECT COALESCE ( 7, + 53 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7007
SELECT 20, 58 * + 23 + - + CASE 97 WHEN COUNT( * ) / - + 53 * COUNT( * ) * COALESCE ( + - 47, + AVG ( ALL 60 ), - - 32 ) THEN NULL WHEN + 6 * COUNT( * ) / + + 57 + - - 1 / + 38 + 94 * - 13 + + - 0 - + MAX( DISTINCT + - 58 ) * - + 51 + + - CASE COUNT( * ) WHEN + - CASE + 89 WHEN - 25 THEN - - 15 END THEN NULL WHEN 74 + - COALESCE ( + 32, COUNT( ALL - + 7 ) ) THEN ( + ( + NULLIF ( - 68, - + ( 65 ) + 6 ) ) ) END THEN + 72 ELSE NULL END AS col1
----
20
NULL

skipif mysql # not compatible
query II rowsort label-7007
SELECT 20, 58 * + 23 + - + CASE 97 WHEN COUNT ( * ) / - + 53 * COUNT ( * ) * COALESCE ( + - 47, + AVG ( ALL 60 ), - - 32 ) THEN NULL WHEN + 6 * COUNT ( * ) / + + 57 + - - 1 / + 38 + 94 * - 13 + + - 0 - + MAX ( DISTINCT + - 58 ) * - + 51 + + - CASE COUNT ( * ) WHEN + - CASE + 89 WHEN - 25 THEN - - 15 END THEN NULL WHEN 74 + - COALESCE ( + 32, COUNT ( ALL - + 7 ) ) THEN ( + ( + NULLIF ( - 68, - + ( 65 ) + 6 ) ) ) END THEN + 72 ELSE NULL END AS col1
----
20
NULL

query I rowsort
SELECT ALL - 19 * 97
----
-1843

query I rowsort
SELECT 58 * + 31 AS col1
----
1798

query I rowsort
SELECT 94 * - 20
----
-1880

query I rowsort
SELECT 68 - 65 * 4 + - - 59 AS col2
----
-133

query I rowsort
SELECT ALL + 56 * - 66
----
-3696

query I rowsort
SELECT 84 * 89
----
7476

query I rowsort
SELECT ALL + 84 + - 38
----
46

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

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT + 75 / + COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT ALL + MAX( DISTINCT + + 78 ) * + 11
----
858

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + MAX ( DISTINCT + + 78 ) * + 11
----
858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7017
SELECT DISTINCT + 39 + - NULLIF ( - 45, - 96 + CAST( - ( COUNT( DISTINCT - 23 ) ) AS SIGNED ) + + - 42 * + 39 * 55 ) + 5 * + 9
----
129

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT + 39 + - NULLIF ( - 45, - 96 + CAST ( - ( COUNT ( DISTINCT - 23 ) ) AS INTEGER ) + + - 42 * + 39 * 55 ) + 5 * + 9
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7018
SELECT + 80 col1, - CAST( + - 16 AS SIGNED )
----
80
16

skipif mysql # not compatible
query II rowsort label-7018
SELECT + 80 col1, - CAST ( + - 16 AS INTEGER )
----
80
16

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

query I rowsort
SELECT - 42 * 47 + 22 AS col2
----
-1952

query I rowsort
SELECT ALL - + ( - + 8 ) col1
----
8

query II rowsort
SELECT DISTINCT - 32 + + ( - 54 ) AS col0, 70 col2
----
-86
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT DISTINCT - COUNT( * ) + + + 78 - - - 8 * - CASE + MIN( + 70 ) WHEN + + 62 / 36 THEN - + 83 + + 23 WHEN - 66 + + 9 THEN NULL END * COUNT( DISTINCT + 9 ) * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7023
SELECT DISTINCT - COUNT ( * ) + + + 78 - - - 8 * - CASE + MIN ( + 70 ) WHEN + + 62 / 36 THEN - + 83 + + 23 WHEN - 66 + + 9 THEN NULL END * COUNT ( DISTINCT + 9 ) * - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT ALL COUNT( * ) - - 96 * COUNT( * ) - 86 * ( - + 44 ) * + + 43 AS col0
----
162809

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL COUNT ( * ) - - 96 * COUNT ( * ) - 86 * ( - + 44 ) * + + 43 AS col0
----
162809

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7025
SELECT - CAST( + 39 AS SIGNED ) * 65 AS col1
----
-2535

skipif mysql # not compatible
query I rowsort label-7025
SELECT - CAST ( + 39 AS INTEGER ) * 65 AS col1
----
-2535

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT DISTINCT - SUM( ALL - 14 )
----
14

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT - SUM ( ALL - 14 )
----
14

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

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

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

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

query I rowsort
SELECT ALL - 38 - - 34 AS col0
----
-4

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

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

query II rowsort
SELECT ALL 77 AS col2, + NULLIF ( 29, - - CASE - 76 WHEN + 7 THEN + 27 ELSE NULL END )
----
77
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT DISTINCT + NULLIF ( 39, ( + NULLIF ( - ( 38 ), - - 54 ) ) * - 55 - - MIN( DISTINCT + 69 ) ) * 55
----
2145

skipif mysql # not compatible
query I rowsort label-7032
SELECT DISTINCT + NULLIF ( 39, ( + NULLIF ( - ( 38 ), - - 54 ) ) * - 55 - - MIN ( DISTINCT + 69 ) ) * 55
----
2145

query I rowsort
SELECT 53 * 54
----
2862

query I rowsort
SELECT 49 * + 52
----
2548

query I rowsort
SELECT 87 * + 65 * 4 * + ( - 57 )
----
-1289340

onlyif mysql # aggregate syntax: 
query II rowsort label-7036
SELECT ALL 64 / + + CASE COUNT( * ) WHEN - + 9 * - + 73 THEN - + ( - 95 ) - + 96 * - 49 ELSE NULL END, 5 AS col2
----
NULL
5

skipif mysql # not compatible
query II rowsort label-7036
SELECT ALL 64 / + + CASE COUNT ( * ) WHEN - + 9 * - + 73 THEN - + ( - 95 ) - + 96 * - 49 ELSE NULL END, 5 AS col2
----
NULL
5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7038
SELECT 94 DIV + + 18 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7038
SELECT 94 / + + 18 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT MIN( DISTINCT - 25 ) + + 71
----
46

skipif mysql # not compatible
query I rowsort label-7039
SELECT MIN ( DISTINCT - 25 ) + + 71
----
46

query II rowsort
SELECT ALL 48, + 66 + - 25 AS col1
----
48
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7041
SELECT ALL - 34 + - CASE + ( + + ( - SUM( ALL - + 48 ) ) ) WHEN + - CAST( NULL AS SIGNED ) - - + COUNT( * ) THEN - + 83 END * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL - 34 + - CASE + ( + + ( - SUM ( ALL - + 48 ) ) ) WHEN + - CAST ( NULL AS INTEGER ) - - + COUNT ( * ) THEN - + 83 END * - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT 77 + + MAX( DISTINCT 66 ) col0
----
143

skipif mysql # not compatible
query I rowsort label-7042
SELECT 77 + + MAX ( DISTINCT 66 ) col0
----
143

query I rowsort
SELECT 13 - 21 - 99 AS col0
----
-107

onlyif mysql # aggregate syntax: 
query II rowsort label-7044
SELECT ALL 4 + 11 col2, COALESCE ( - MIN( ALL 26 ), + - 64 )
----
15
-26

skipif mysql # not compatible
query II rowsort label-7044
SELECT ALL 4 + 11 col2, COALESCE ( - MIN ( ALL 26 ), + - 64 )
----
15
-26

query II rowsort
SELECT DISTINCT 7, 84 * + 66 AS col1
----
7
5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7046
SELECT ALL 22 + 76 * - 72 + - 85 * - + 76 + CAST( - - COALESCE ( ( 83 ), 71 ) AS SIGNED ) AS col0
----
1093

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL 22 + 76 * - 72 + - 85 * - + 76 + CAST ( - - COALESCE ( ( 83 ), 71 ) AS INTEGER ) AS col0
----
1093

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT DISTINCT - 16 + ( + 37 ) - - 56 * - - 11 * - 0 + + MAX( + 29 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-7047
SELECT DISTINCT - 16 + ( + 37 ) - - 56 * - - 11 * - 0 + + MAX ( + 29 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-7048
SELECT SUM( DISTINCT - + 61 ) AS col2, COUNT( * ) * + + ( 38 ) AS col0
----
-61
38

skipif mysql # not compatible
query II rowsort label-7048
SELECT SUM ( DISTINCT - + 61 ) AS col2, COUNT ( * ) * + + ( 38 ) AS col0
----
-61
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT ALL - SUM( 79 ) + 38
----
-41

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL - SUM ( 79 ) + 38
----
-41

query I rowsort
SELECT 99 - - 70 + - ( 92 ) * + 40 AS col2
----
-3511

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT ALL - ( + MIN( 81 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL - ( + MIN ( 81 ) )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7053
SELECT - NULLIF ( - - 32, - SUM( ALL - 37 ) ) * 28 + - 49 + + 80 DIV 19 AS col0
----
-941

skipif mysql # not compatible
query I rowsort label-7053
SELECT - NULLIF ( - - 32, - SUM ( ALL - 37 ) ) * 28 + - 49 + + 80 / 19 AS col0
----
-941

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT DISTINCT + + ( - 98 ) * + 88 * - CASE + 6 WHEN - 65 + 89 * - ( - 26 ) THEN - 81 WHEN - - 85 + 98 THEN - COUNT( * ) + 4 WHEN + ( COUNT( * ) ) * + 92 THEN + + 65 END * - + 35 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT + + ( - 98 ) * + 88 * - CASE + 6 WHEN - 65 + 89 * - ( - 26 ) THEN - 81 WHEN - - 85 + 98 THEN - COUNT ( * ) + 4 WHEN + ( COUNT ( * ) ) * + 92 THEN + + 65 END * - + 35 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7055
SELECT ALL - + 6 - - 17 * MIN( - - 4 ) AS col2, 49 col0
----
62
49

skipif mysql # not compatible
query II rowsort label-7055
SELECT ALL - + 6 - - 17 * MIN ( - - 4 ) AS col2, 49 col0
----
62
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7056
SELECT ALL + COUNT( * ) / COUNT( - 45 ) * + + 22 / - - CAST( NULL AS SIGNED ) + 61 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL + COUNT ( * ) / COUNT ( - 45 ) * + + 22 / - - CAST ( NULL AS INTEGER ) + 61 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT DISTINCT + - 77 * - + 43 + + ( - NULLIF ( + COUNT( * ), - COUNT( * ) / + COUNT( * ) + - 24 ) ) - 46 AS col2
----
3264

skipif mysql # not compatible
query I rowsort label-7057
SELECT DISTINCT + - 77 * - + 43 + + ( - NULLIF ( + COUNT ( * ), - COUNT ( * ) / + COUNT ( * ) + - 24 ) ) - 46 AS col2
----
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT ALL - COUNT( * ) - + 31 + 53 col2
----
21

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL - COUNT ( * ) - + 31 + 53 col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7059
SELECT - 47 + - + 87 + - CASE - + 83 WHEN + COUNT( * ) THEN NULL WHEN - 77 * - 27 * MIN( DISTINCT + CAST( NULL AS SIGNED ) ) THEN - 23 + SUM( ALL 26 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7059
SELECT - 47 + - + 87 + - CASE - + 83 WHEN + COUNT ( * ) THEN NULL WHEN - 77 * - 27 * MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN - 23 + SUM ( ALL 26 ) END AS col1
----
NULL

query II rowsort
SELECT 74 AS col0, ( 78 ) AS col1
----
74
78

query I rowsort
SELECT - 61 + - + 32
----
-93

query I rowsort
SELECT - 31 * - + 86
----
2666

query I rowsort
SELECT NULLIF ( - - 11, + 46 ) * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT ALL - - NULLIF ( ( MAX( ALL 42 ) ), + - 0 )
----
42

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL - - NULLIF ( ( MAX ( ALL 42 ) ), + - 0 )
----
42

query I rowsort
SELECT - 43 * - - 38 + 77
----
-1557

query I rowsort
SELECT - ( + 3 ) - - 21 + + 21
----
39

query II rowsort
SELECT ALL + + 72 * - + 31 col1, 97 * - 30 * - 8
----
-2232
23280

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

skipif mysql # not compatible
query I rowsort label-7068
SELECT + 97 * ( COUNT ( * ) ) / - 52
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7069
SELECT DISTINCT 66 AS col0, - 51 + - - COUNT( * ) + - COUNT( * )
----
66
-51

skipif mysql # not compatible
query II rowsort label-7069
SELECT DISTINCT 66 AS col0, - 51 + - - COUNT ( * ) + - COUNT ( * )
----
66
-51

query I rowsort
SELECT + - 46 + - 17 * - 53
----
855

query I rowsort
SELECT + + 71 + + 80 * 75
----
6071

query I rowsort
SELECT ALL + ( + + 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT + SUM( ALL + 35 ) + 92 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-7073
SELECT + SUM ( ALL + 35 ) + 92 AS col1
----
127

query I rowsort
SELECT DISTINCT 23 * + + 81 AS col2
----
1863

query I rowsort
SELECT ALL 17 + ( 49 )
----
66

query I rowsort
SELECT DISTINCT 87 * + 75 * - 22 AS col0
----
-143550

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7077
SELECT ALL 10 + COALESCE ( + - 39, - + ( COUNT( * ) ) * + + MAX( DISTINCT - 64 ) * + ( + 56 ) DIV + 0 ), - 60 * - - 15 AS col2
----
-29
-900

skipif mysql # not compatible
query II rowsort label-7077
SELECT ALL 10 + COALESCE ( + - 39, - + ( COUNT ( * ) ) * + + MAX ( DISTINCT - 64 ) * + ( + 56 ) / + 0 ), - 60 * - - 15 AS col2
----
-29
-900

query I rowsort
SELECT - COALESCE ( CASE 20 WHEN - 1 THEN + 14 * - + 5 + 29 ELSE NULL END, + 78 ) AS col2
----
-78

query I rowsort
SELECT ALL 22 * + 79 * - 72 * - 55 AS col0
----
6882480

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

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

skipif mysql # not compatible
query I rowsort label-7081
SELECT DISTINCT - COUNT ( * ) / CAST ( - + ( 69 ) AS INTEGER )
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7083
SELECT DISTINCT 16 + 67, MIN( + 58 ) AS col0
----
83
58

skipif mysql # not compatible
query II rowsort label-7083
SELECT DISTINCT 16 + 67, MIN ( + 58 ) AS col0
----
83
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT ALL SUM( DISTINCT - 15 ) + 88 col0
----
73

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL SUM ( DISTINCT - 15 ) + 88 col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7085
SELECT DISTINCT 9 DIV + 87 * + 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT 9 / + 87 * + 76 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7087
SELECT DISTINCT NULLIF ( 16, + 56 ) * + COUNT( * ) DIV - COALESCE ( + 60, + MIN( + + 71 ), COUNT( * ) * 10 ) + + 45 + 86
----
131

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT NULLIF ( 16, + 56 ) * + COUNT ( * ) / - COALESCE ( + 60, + MIN ( + + 71 ), COUNT ( * ) * 10 ) + + 45 + 86
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT - SUM( DISTINCT + - 93 ) + - + 16
----
77

skipif mysql # not compatible
query I rowsort label-7088
SELECT - SUM ( DISTINCT + - 93 ) + - + 16
----
77

query I rowsort
SELECT - 92 + + 22
----
-70

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

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

query II rowsort
SELECT + 36 * + 20 * - 42, 1 + + ( 93 ) AS col0
----
-30240
94

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

skipif mysql # not compatible
query I rowsort label-7092
SELECT + + MIN ( + - ( + + 85 ) )
----
-85

query I rowsort
SELECT + 95 * - NULLIF ( - 46, 0 * - 68 * - + 43 ) + 34 * - - 57 - + + 76 * 24 * - 5 AS col0
----
15428

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT DISTINCT + + NULLIF ( - 72, - 89 * - 71 - - 51 + 1 + 37 + + + COUNT( * ) - - 98 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT + + NULLIF ( - 72, - 89 * - 71 - - 51 + 1 + 37 + + + COUNT ( * ) - - 98 ) AS col0
----
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT DISTINCT - 39 * - MIN( ALL - 7 ) - - - 92 AS col2
----
-365

skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT - 39 * - MIN ( ALL - 7 ) - - - 92 AS col2
----
-365

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

skipif mysql # not compatible
query I rowsort label-7097
SELECT - + COUNT ( * ) / - 92 * - - 99
----
0

query I rowsort
SELECT ALL 24 * - 98 * 71 + + + 94 col0
----
-166898

query I rowsort
SELECT - 8 * + 72 AS col0
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT ALL - 95 * + COUNT( * ) * 59 * 12 AS col2
----
-67260

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL - 95 * + COUNT ( * ) * 59 * 12 AS col2
----
-67260

query I rowsort
SELECT DISTINCT - + ( + + 95 ) * - 48 AS col1
----
4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7102
SELECT DISTINCT - 99 * - CASE + 32 WHEN SUM( - 45 ) + - 36 * CAST( NULL AS SIGNED ) THEN NULL ELSE - 33 * - COUNT( * ) END + + CAST( NULL AS DECIMAL ) + 64 + + COUNT( * ) AS col2, 40 * - ( + 30 )
----
NULL
-1200

skipif mysql # not compatible
query II rowsort label-7102
SELECT DISTINCT - 99 * - CASE + 32 WHEN SUM ( - 45 ) + - 36 * CAST ( NULL AS INTEGER ) THEN NULL ELSE - 33 * - COUNT ( * ) END + + CAST ( NULL AS REAL ) + 64 + + COUNT ( * ) AS col2, 40 * - ( + 30 )
----
NULL
-1200

query I rowsort
SELECT ALL - 33 + 74
----
41

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7105
SELECT - ( + - CAST( 26 AS SIGNED ) ) - 36 + + + 83 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7105
SELECT - ( + - CAST ( 26 AS INTEGER ) ) - 36 + + + 83 AS col2
----
73

query I rowsort
SELECT DISTINCT + 88 + + + 90
----
178

query I rowsort
SELECT ALL ( - + ( + 50 ) ) AS col0
----
-50

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

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT COUNT ( * ) + + 82 AS col2
----
83

query I rowsort
SELECT DISTINCT - 16 + + 67 + - 7 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT + 69 - 91 * 21 * - 88 + + + 95 * COUNT( * )
----
168332

skipif mysql # not compatible
query I rowsort label-7110
SELECT + 69 - 91 * 21 * - 88 + + + 95 * COUNT ( * )
----
168332

query II rowsort
SELECT ALL 55, ( 75 ) AS col1
----
55
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7112
SELECT - 39 + + 81 + - 83 AS col2, - ( + + 91 ) + - - COUNT( * ) + + + 51 - + - 81 * 20 * - 33 * + 95 * + + COUNT( ALL - 17 )
----
-41
-5078739

skipif mysql # not compatible
query II rowsort label-7112
SELECT - 39 + + 81 + - 83 AS col2, - ( + + 91 ) + - - COUNT ( * ) + + + 51 - + - 81 * 20 * - 33 * + 95 * + + COUNT ( ALL - 17 )
----
-41
-5078739

query I rowsort
SELECT + 45 * - + 8
----
-360

query II rowsort
SELECT - 57 * - + 88 * + 96 AS col0, 81 AS col1
----
481536
81

query I rowsort
SELECT ALL 68 * 29
----
1972

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT + 33 + - + CASE - 55 WHEN - 72 * + - 11 * - COUNT( * ) + + 92 THEN NULL ELSE + - 11 END col1
----
44

skipif mysql # not compatible
query I rowsort label-7116
SELECT + 33 + - + CASE - 55 WHEN - 72 * + - 11 * - COUNT ( * ) + + 92 THEN NULL ELSE + - 11 END col1
----
44

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

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

query I rowsort
SELECT ALL 21 * + 46 * - - 3 AS col0
----
2898

onlyif mysql # aggregate syntax: 
query II rowsort label-7119
SELECT ALL 32 * 59 * COUNT( * ) AS col2, 79
----
1888
79

skipif mysql # not compatible
query II rowsort label-7119
SELECT ALL 32 * 59 * COUNT ( * ) AS col2, 79
----
1888
79

query II rowsort
SELECT ALL + 63, 99 AS col2
----
63
99

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

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL 67 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7122
SELECT DISTINCT - 71 DIV + 38 - + 39
----
-40

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT - 71 / + 38 - + 39
----
-40

query II rowsort
SELECT + - 41 AS col0, + 13
----
-41
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT + - COUNT( * ) + - 99 * 5
----
-496

skipif mysql # not compatible
query I rowsort label-7124
SELECT + - COUNT ( * ) + - 99 * 5
----
-496

query II rowsort
SELECT 45 * + 39 + - - 97 AS col2, 46 AS col2
----
1852
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT - COALESCE ( COUNT( * ), - 52 ) * - 69
----
69

skipif mysql # not compatible
query I rowsort label-7126
SELECT - COALESCE ( COUNT ( * ), - 52 ) * - 69
----
69

query I rowsort
SELECT ALL - - 97 * + 8 * - - 65 + 47 AS col0
----
50487

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7128
SELECT CAST( + 21 AS SIGNED ) * + + 51 + 39 AS col1
----
1110

skipif mysql # not compatible
query I rowsort label-7128
SELECT CAST ( + 21 AS INTEGER ) * + + 51 + 39 AS col1
----
1110

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT ALL + 15 + - - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL + 15 + - - COUNT ( * )
----
16

query I rowsort
SELECT ALL - 10 + + 34
----
24

query I rowsort
SELECT 89 - + 68
----
21

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

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

query I rowsort
SELECT ALL + + 84 + - 25 AS col0
----
59

query I rowsort
SELECT + 76 * - 96 + - + 51 AS col2
----
-7347

query I rowsort
SELECT ALL ( ( - 9 ) ) + + 10
----
1

query II rowsort
SELECT 38 * 67 + + 50 AS col1, 81 - - 26
----
2596
107

query I rowsort
SELECT 54 * + + 78 + + 67 + - 47
----
4232

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT ALL + + ( - - COUNT( * ) ) + + 62
----
63

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL + + ( - - COUNT ( * ) ) + + 62
----
63

query I rowsort
SELECT + 59 + + 53 + - + 0 * + 82
----
112

query I rowsort
SELECT 59 - + 97
----
-38

query I rowsort
SELECT ALL - ( - 88 ) + 39 * + - ( - + 16 ) + - 1 - + 80 AS col2
----
631

query I rowsort
SELECT 3 + - 81 * 98
----
-7935

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7145
SELECT COUNT( * ) + NULLIF ( + 88, - + 85 * AVG ( - 87 ) - + - 33 / + ( - - 7 ) * 24 * CASE - - 14 WHEN + 25 + - 48 THEN + 6 WHEN - CASE + + CASE + 27 WHEN - 78 + + 42 THEN 9 - - + 29 ELSE NULL END WHEN COUNT( * ) THEN - - CAST( COALESCE ( 10, + 14 * + 51 ) AS SIGNED ) * + + COUNT( * ) END THEN 46 END * + CASE COUNT( * ) WHEN + CAST( - + 93 AS SIGNED ) THEN NULL ELSE + - 8 + - COUNT( * ) END - + COUNT( * ) + - 35 )
----
89

skipif mysql # not compatible
query I rowsort label-7145
SELECT COUNT ( * ) + NULLIF ( + 88, - + 85 * AVG ( - 87 ) - + - 33 / + ( - - 7 ) * 24 * CASE - - 14 WHEN + 25 + - 48 THEN + 6 WHEN - CASE + + CASE + 27 WHEN - 78 + + 42 THEN 9 - - + 29 ELSE NULL END WHEN COUNT ( * ) THEN - - CAST ( COALESCE ( 10, + 14 * + 51 ) AS INTEGER ) * + + COUNT ( * ) END THEN 46 END * + CASE COUNT ( * ) WHEN + CAST ( - + 93 AS INTEGER ) THEN NULL ELSE + - 8 + - COUNT ( * ) END - + COUNT ( * ) + - 35 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7146
SELECT ALL + MAX( + 77 ) + 77 + + - 17 * 44 + + + 25 + + + 59, - 79 * - SUM( DISTINCT - 73 ) AS col2
----
-510
-5767

skipif mysql # not compatible
query II rowsort label-7146
SELECT ALL + MAX ( + 77 ) + 77 + + - 17 * 44 + + + 25 + + + 59, - 79 * - SUM ( DISTINCT - 73 ) AS col2
----
-510
-5767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7147
SELECT DISTINCT + 12 * COUNT( * ) DIV COALESCE ( - 46, - 99 )
----
0

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT + 12 * COUNT ( * ) / COALESCE ( - 46, - 99 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7148
SELECT 22 + - COUNT( * ) + + CAST( NULL AS SIGNED ) + COALESCE ( - COALESCE ( + 26, + - 18 ), + + 11 + + + 21 + + ( + 41 ) + 47 + + 83 * + 10 + + + CAST( NULL AS SIGNED ) * - ( - + 88 ) * 78, + AVG ( - 79 ) * - COUNT( * ) - + NULLIF ( + 67, - CAST( ( + COUNT( * ) ) AS SIGNED ) ) + - 92 + - 9 * + COUNT( DISTINCT + 61 ) * - + 67 ) * + ( + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7148
SELECT 22 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + COALESCE ( - COALESCE ( + 26, + - 18 ), + + 11 + + + 21 + + ( + 41 ) + 47 + + 83 * + 10 + + + CAST ( NULL AS INTEGER ) * - ( - + 88 ) * 78, + AVG ( - 79 ) * - COUNT ( * ) - + NULLIF ( + 67, - CAST ( ( + COUNT ( * ) ) AS INTEGER ) ) + - 92 + - 9 * + COUNT ( DISTINCT + 61 ) * - + 67 ) * + ( + 24 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT 28 * - + COALESCE ( + - COUNT( * ), + 66 )
----
28

skipif mysql # not compatible
query I rowsort label-7149
SELECT 28 * - + COALESCE ( + - COUNT ( * ), + 66 )
----
28

query II rowsort
SELECT ALL - 39 * - + 94 AS col2, 17
----
3666
17

query I rowsort
SELECT ALL - COALESCE ( + ( + 34 ), + 86 ) * ( + 18 ) * + 99
----
-60588

query I rowsort
SELECT 28 * 35
----
980

query I rowsort
SELECT + 91 * - 12 AS col2
----
-1092

query I rowsort
SELECT - CASE + - COALESCE ( - 49, + 19 ) WHEN - 67 THEN NULL ELSE 14 END
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7155
SELECT - - 28 / - MAX( 27 ) * - - ( 12 ) + + + 69 * + CAST( NULL AS SIGNED ) + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT - - 28 / - MAX ( 27 ) * - - ( 12 ) + + + 69 * + CAST ( NULL AS INTEGER ) + - 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7156
SELECT 48 DIV - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7156
SELECT 48 / - 78 AS col0
----
0

query I rowsort
SELECT 35 * 61
----
2135

query I rowsort
SELECT DISTINCT - - 90 * + 68 AS col1
----
6120

query I rowsort
SELECT ALL + 61 * - + 23
----
-1403

query I rowsort
SELECT ALL 94 + + - 68 AS col1
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7161
SELECT + + 34 DIV - + 72 + + 96 col2
----
96

skipif mysql # not compatible
query I rowsort label-7161
SELECT + + 34 / - + 72 + + 96 col2
----
96

query I rowsort
SELECT 4 + - 31 * + - 82 AS col1
----
2546

query I rowsort
SELECT + 73 * + + 67 - 54
----
4837

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT ALL + CASE - SUM( ALL - 92 ) WHEN - ( - 17 ) / + COUNT( * ) THEN 76 * + 80 END + - 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL + CASE - SUM ( ALL - 92 ) WHEN - ( - 17 ) / + COUNT ( * ) THEN 76 * + 80 END + - 0 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT ALL - COUNT( * ) + - - 26 + NULLIF ( COUNT( * ), + 69 )
----
26

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL - COUNT ( * ) + - - 26 + NULLIF ( COUNT ( * ), + 69 )
----
26

query I rowsort
SELECT + ( + + 88 ) * - 54
----
-4752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7168
SELECT + MAX( DISTINCT ( + 35 ) ) DIV 89 * 14
----
0

skipif mysql # not compatible
query I rowsort label-7168
SELECT + MAX ( DISTINCT ( + 35 ) ) / 89 * 14
----
0

query I rowsort
SELECT ALL 96 + - + 78 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT ALL - 54 * - MIN( - 48 )
----
-2592

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL - 54 * - MIN ( - 48 )
----
-2592

query I rowsort
SELECT DISTINCT + - 15 * 85 AS col0
----
-1275

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

skipif mysql # not compatible
query I rowsort label-7172
SELECT + COUNT ( ALL + - 14 ) AS col0
----
1

query II rowsort
SELECT ALL - 38 col1, 56
----
-38
56

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

query I rowsort
SELECT 12 * + + 86
----
1032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7176
SELECT CAST( + 70 AS SIGNED ) - 10 + - MIN( 85 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-7176
SELECT CAST ( + 70 AS INTEGER ) - 10 + - MIN ( 85 ) AS col1
----
-25

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

skipif mysql # not compatible
query II rowsort label-7177
SELECT 17 AS col2, + COUNT ( * ) / 19 + + 35 AS col1
----
17
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT - 91 * + 98 - - 91 - COUNT( * ) * + ( - + 35 )
----
-8792

skipif mysql # not compatible
query I rowsort label-7178
SELECT - 91 * + 98 - - 91 - COUNT ( * ) * + ( - + 35 )
----
-8792

query I rowsort
SELECT 38 * 10 col2
----
380

query I rowsort
SELECT 12 + + + 50 AS col2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT DISTINCT + ( - 68 ) DIV 18 * + 54 AS col1
----
-162

skipif mysql # not compatible
query I rowsort label-7181
SELECT DISTINCT + ( - 68 ) / 18 * + 54 AS col1
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT 28 * SUM( + 2 )
----
56

skipif mysql # not compatible
query I rowsort label-7182
SELECT 28 * SUM ( + 2 )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-7183
SELECT DISTINCT + 90 DIV + - 7 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT + 90 / + - 7 AS col1
----
-12

query I rowsort
SELECT DISTINCT + 54 * 75
----
4050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7185
SELECT DISTINCT + MAX( - - 69 ) DIV + 85 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT + MAX ( - - 69 ) / + 85 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT ( + - 18 ) + + + 3 + + 77 * + + COUNT( * ) col1
----
62

skipif mysql # not compatible
query I rowsort label-7186
SELECT ( + - 18 ) + + + 3 + + 77 * + + COUNT ( * ) col1
----
62

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

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

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

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

query II rowsort
SELECT DISTINCT + ( + 79 ) * + 36 AS col0, - 88 * - + 82
----
2844
7216

onlyif mysql # DIV for integer division: 
query I rowsort label-7190
SELECT 4 DIV + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7190
SELECT 4 / + 84 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT + COUNT( - ( 29 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7191
SELECT + COUNT ( - ( 29 ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT ALL + ( + + 89 ) * - SUM( - + 27 ) + + 86 AS col0
----
2489

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL + ( + + 89 ) * - SUM ( - + 27 ) + + 86 AS col0
----
2489

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT ALL + 1 * 53 * - ( + 7 ) + + COUNT( * ) AS col0
----
-370

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL + 1 * 53 * - ( + 7 ) + + COUNT ( * ) AS col0
----
-370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7194
SELECT DISTINCT 50 * - - 42 * MAX( + 98 ) + - 79 * 76 + + COUNT( * ) * ( - + CAST( - ( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT 50 * - - 42 * MAX ( + 98 ) + - 79 * 76 + + COUNT ( * ) * ( - + CAST ( - ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT ALL - 8 * + - 81 + + + 28 + + COUNT( * ) * + + 48 AS col2
----
724

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL - 8 * + - 81 + + + 28 + + COUNT ( * ) * + + 48 AS col2
----
724

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7196
SELECT ALL - 72 * COUNT( * ) * + 91 * + 80 + + 11 + + - COUNT( * ) DIV + + 62 + + 70
----
-524079

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL - 72 * COUNT ( * ) * + 91 * + 80 + + 11 + + - COUNT ( * ) / + + 62 + + 70
----
-524079

query I rowsort
SELECT DISTINCT 67 * 8 * - 72 * 85
----
-3280320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7198
SELECT + 17 DIV + 81 * + - COUNT( * ) + + 49 + + 0 * 73 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7198
SELECT + 17 / + 81 * + - COUNT ( * ) + + 49 + + 0 * 73 AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7199
SELECT ALL 8 * + + SUM( DISTINCT - + 20 ) + + + 96 + + 16 DIV 77 AS col0, - 8
----
-64
-8

skipif mysql # not compatible
query II rowsort label-7199
SELECT ALL 8 * + + SUM ( DISTINCT - + 20 ) + + + 96 + + 16 / 77 AS col0, - 8
----
-64
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7200
SELECT ALL - + 49 * + MAX( DISTINCT 92 ) + - 61 * - - CAST( NULL AS SIGNED ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL - + 49 * + MAX ( DISTINCT 92 ) + - 61 * - - CAST ( NULL AS INTEGER ) - - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 55 * - 33 * - + 11 AS col0
----
19965

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7202
SELECT + 93 - - 59 - - + ( 47 ) * + 39 + + + 90 DIV - COUNT( * )
----
1895

skipif mysql # not compatible
query I rowsort label-7202
SELECT + 93 - - 59 - - + ( 47 ) * + 39 + + + 90 / - COUNT ( * )
----
1895

query II rowsort
SELECT DISTINCT + 38 col2, ( - + 17 ) col1
----
38
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-7204
SELECT ALL + 42 AS col0, 32 * + 2 + + + COUNT( * ) + 85 AS col0
----
42
150

skipif mysql # not compatible
query II rowsort label-7204
SELECT ALL + 42 AS col0, 32 * + 2 + + + COUNT ( * ) + 85 AS col0
----
42
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7205
SELECT - 82 * 94 + + 65 + - COUNT( * ) DIV - 26 * 18 * + + 19
----
-7643

skipif mysql # not compatible
query I rowsort label-7205
SELECT - 82 * 94 + + 65 + - COUNT ( * ) / - 26 * 18 * + + 19
----
-7643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7206
SELECT - CAST( + 87 AS SIGNED ) * + 3 col2
----
-261

skipif mysql # not compatible
query I rowsort label-7206
SELECT - CAST ( + 87 AS INTEGER ) * + 3 col2
----
-261

query I rowsort
SELECT 75 * + 79 + - 63 AS col1
----
5862

query II rowsort
SELECT ALL + 57 AS col2, 52 AS col1
----
57
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT + NULLIF ( + 52, - + COUNT( * ) * + - COUNT( * ) * + 59 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-7209
SELECT + NULLIF ( + 52, - + COUNT ( * ) * + - COUNT ( * ) * + 59 ) AS col1
----
52

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

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

query I rowsort
SELECT + 34 + - 1 AS col2
----
33

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

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL CAST ( NULL AS INTEGER ) / - - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT - 25 * 28 * SUM( DISTINCT + 26 ) + 79 * - - 8 + - COUNT( * ) * - 17
----
-17551

skipif mysql # not compatible
query I rowsort label-7213
SELECT - 25 * 28 * SUM ( DISTINCT + 26 ) + 79 * - - 8 + - COUNT ( * ) * - 17
----
-17551

query I rowsort
SELECT + 27 * + - 11 * 59 * + 77
----
-1349271

query I rowsort
SELECT + 86 + - 6
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7216
SELECT + 4 DIV 85 * SUM( DISTINCT - 69 )
----
0

skipif mysql # not compatible
query I rowsort label-7216
SELECT + 4 / 85 * SUM ( DISTINCT - 69 )
----
0

query I rowsort
SELECT ALL + 76 * - - 59 AS col2
----
4484

query I rowsort
SELECT + 80 + 70 AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT - NULLIF ( - 49, + - COUNT( * ) + + 75 + + 56 / + COUNT( * ) * - COALESCE ( - 24, - 69, + 94 ) )
----
49

skipif mysql # not compatible
query I rowsort label-7219
SELECT - NULLIF ( - 49, + - COUNT ( * ) + + 75 + + 56 / + COUNT ( * ) * - COALESCE ( - 24, - 69, + 94 ) )
----
49

query II rowsort
SELECT - 20 col0, 73 AS col2
----
-20
73

query I rowsort
SELECT DISTINCT 79 + + 98 + - 41
----
136

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

query I rowsort
SELECT + + ( - - 65 ) + - 18 AS col2
----
47

query II rowsort
SELECT DISTINCT + 52 + - 67, ( + + 57 ) * 51 * + - 1 + 28 * - 83 AS col1
----
-15
-5231

onlyif mysql # DIV for integer division: 
query I rowsort label-7225
SELECT ALL 70 + 2 DIV + - 10 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL 70 + 2 / + - 10 AS col1
----
70

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

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT - COUNT ( * ) + - - 68 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT DISTINCT + 72 + 47 + + 48 + + CASE + COUNT( * ) WHEN + + ( + - 46 ) + - - 21 / - 51 + + 29 THEN NULL WHEN - + 34 / - 61 THEN NULL ELSE COUNT( * ) + + 94 END * - 49 * + 65
----
-302408

skipif mysql # not compatible
query I rowsort label-7227
SELECT DISTINCT + 72 + 47 + + 48 + + CASE + COUNT ( * ) WHEN + + ( + - 46 ) + - - 21 / - 51 + + 29 THEN NULL WHEN - + 34 / - 61 THEN NULL ELSE COUNT ( * ) + + 94 END * - 49 * + 65
----
-302408

query II rowsort
SELECT + 52 AS col2, 78 * NULLIF ( - ( + - ( - ( + 84 ) ) ), + - 45 )
----
52
-6552

query I rowsort
SELECT ALL - COALESCE ( - 13, + 16 )
----
13

query I rowsort
SELECT ALL + + 90 + 72 AS col1
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7231
SELECT - - 33 * + 29 + CAST( NULL AS SIGNED ) / 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7231
SELECT - - 33 * + 29 + CAST ( NULL AS INTEGER ) / 49 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7232
SELECT ALL - 28 DIV - + 96 * - - 98
----
0

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL - 28 / - + 96 * - - 98
----
0

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

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

query I rowsort
SELECT - 45 + + 1
----
-44

query I rowsort
SELECT DISTINCT + 11 + 86 AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7236
SELECT - CAST( 99 AS SIGNED ) + 19 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-7236
SELECT - CAST ( 99 AS INTEGER ) + 19 AS col0
----
-80

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

skipif mysql # not compatible
query I rowsort label-7237
SELECT + 3 * + + COUNT ( DISTINCT - - 17 ) AS col1
----
3

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

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

query II rowsort
SELECT - 9 AS col2, 90
----
-9
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT ALL + COALESCE ( - + MAX( - 72 ), + COALESCE ( - - COALESCE ( 54, + 13 * 65 * - + 54 ), + 72 * - - 92 ) * - - 45 * + COUNT( * ) + - ( 26 ) + - 24 + + 88, - + COUNT( ALL 45 ) ) col1
----
72

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL + COALESCE ( - + MAX ( - 72 ), + COALESCE ( - - COALESCE ( 54, + 13 * 65 * - + 54 ), + 72 * - - 92 ) * - - 45 * + COUNT ( * ) + - ( 26 ) + - 24 + + 88, - + COUNT ( ALL 45 ) ) col1
----
72

query I rowsort
SELECT DISTINCT + - NULLIF ( 22, - 68 ) col2
----
-22

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

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

query I rowsort
SELECT ( COALESCE ( 39, + 68 ) ) AS col2
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT 71 * - - 69 * 14 + COUNT( * ) col2
----
68587

skipif mysql # not compatible
query I rowsort label-7245
SELECT 71 * - - 69 * 14 + COUNT ( * ) col2
----
68587

onlyif mysql # aggregate syntax: 
query II rowsort label-7246
SELECT DISTINCT + MIN( - 28 ), + 34 * - - 76 AS col2
----
-28
2584

skipif mysql # not compatible
query II rowsort label-7246
SELECT DISTINCT + MIN ( - 28 ), + 34 * - - 76 AS col2
----
-28
2584

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

skipif mysql # not compatible
query II rowsort label-7247
SELECT ALL CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) + 54 AS col0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7248
SELECT ALL + 8 DIV + - 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL + 8 / + - 57 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT + CASE - 3 WHEN - 15 * + 17 + - + 50 + - MIN( + 35 ) * 34 THEN + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT + CASE - 3 WHEN - 15 * + 17 + - + 50 + - MIN ( + 35 ) * 34 THEN + 52 END
----
NULL

query I rowsort
SELECT + NULLIF ( - + 85, + 63 * 45 )
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7252
SELECT ALL + CASE 31 WHEN + NULLIF ( 79, + 49 ) THEN - 31 WHEN + 36 THEN + + 20 * 59 * + 27 WHEN + 89 * + - 45 + - 62 * + COUNT( * ) + - + 49 * - 91 THEN NULL ELSE + COALESCE ( ( NULLIF ( COUNT( * ), + 53 ) ), - MIN( DISTINCT 51 ) DIV + - ( + 72 ), 67 ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL + CASE 31 WHEN + NULLIF ( 79, + 49 ) THEN - 31 WHEN + 36 THEN + + 20 * 59 * + 27 WHEN + 89 * + - 45 + - 62 * + COUNT ( * ) + - + 49 * - 91 THEN NULL ELSE + COALESCE ( ( NULLIF ( COUNT ( * ), + 53 ) ), - MIN ( DISTINCT 51 ) / + - ( + 72 ), 67 ) END AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7253
SELECT COALESCE ( - 20, CAST( NULL AS SIGNED ) )
----
-20

skipif mysql # not compatible
query I rowsort label-7253
SELECT COALESCE ( - 20, CAST ( NULL AS INTEGER ) )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-7254
SELECT - 27 DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-7254
SELECT - 27 / - 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT ALL - 12 * CASE - + 50 WHEN - + 40 THEN NULL ELSE - COUNT( * ) END + 97
----
109

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL - 12 * CASE - + 50 WHEN - + 40 THEN NULL ELSE - COUNT ( * ) END + 97
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT CASE 55 WHEN - 49 * 52 + - MAX( DISTINCT - - 68 ) * - - 82 THEN - 93 WHEN - 38 / + COUNT( * ) THEN + 47 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7256
SELECT CASE 55 WHEN - 49 * 52 + - MAX ( DISTINCT - - 68 ) * - - 82 THEN - 93 WHEN - 38 / + COUNT ( * ) THEN + 47 END AS col1
----
NULL

query II rowsort
SELECT + 20 - - - 69, - 67 AS col2
----
-49
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7258
SELECT ALL 38 * - 73 + - - 33 * 35 + + 30 * CASE - 6 WHEN NULLIF ( - 21, + - 35 ) + - 1 THEN - 56 WHEN - 79 / + COALESCE ( - - 14, - 63 * - 46 * 82 ) - + + 65 * - - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) / + + 87 * 97 * 12 + - 87 + 79 + + 93 THEN + - ( + 20 ) WHEN - 20 THEN - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL 38 * - 73 + - - 33 * 35 + + 30 * CASE - 6 WHEN NULLIF ( - 21, + - 35 ) + - 1 THEN - 56 WHEN - 79 / + COALESCE ( - - 14, - 63 * - 46 * 82 ) - + + 65 * - - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) / + + 87 * 97 * 12 + - 87 + 79 + + 93 THEN + - ( + 20 ) WHEN - 20 THEN - + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7259
SELECT ALL - 46 + - ( 0 ) col2, CASE - CAST( + 54 AS SIGNED ) WHEN - 10 THEN - 78 * - 67 + 79 + - 80 * + - 12 ELSE NULL END AS col2
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-7259
SELECT ALL - 46 + - ( 0 ) col2, CASE - CAST ( + 54 AS INTEGER ) WHEN - 10 THEN - 78 * - 67 + 79 + - 80 * + - 12 ELSE NULL END AS col2
----
-46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT COUNT( * ) + + 86 * ( - - 12 ) AS col1
----
1033

skipif mysql # not compatible
query I rowsort label-7260
SELECT COUNT ( * ) + + 86 * ( - - 12 ) AS col1
----
1033

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

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL + COUNT ( * ) + + - 19 AS col2
----
-18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7263
SELECT ALL - CAST( + MIN( ALL 27 ) AS SIGNED ) + + COUNT( * ) DIV 7 col2
----
-27

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL - CAST ( + MIN ( ALL 27 ) AS INTEGER ) + + COUNT ( * ) / 7 col2
----
-27

query II rowsort
SELECT ( + 85 ) AS col0, - 99
----
85
-99

query I rowsort
SELECT ALL 4 * - + 27 + + - ( 90 )
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT 72 + - COUNT( - ( 80 ) ) + + + 6 * + 71
----
497

skipif mysql # not compatible
query I rowsort label-7266
SELECT 72 + - COUNT ( - ( 80 ) ) + + + 6 * + 71
----
497

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

query I rowsort
SELECT - 1 + - 99 col0
----
-100

query I rowsort
SELECT 48 * - - 74 AS col2
----
3552

query II rowsort
SELECT - ( 13 ) AS col2, - 81 col0
----
-13
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7271
SELECT ALL + CAST( NULL AS SIGNED ) - + + ( - COUNT( * ) ) + 49 + - - MAX( ALL + - 43 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL + CAST ( NULL AS INTEGER ) - + + ( - COUNT ( * ) ) + 49 + - - MAX ( ALL + - 43 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7272
SELECT DISTINCT - COUNT( * ) * 67, + CAST( - 44 AS SIGNED ) AS col2
----
-67
-44

skipif mysql # not compatible
query II rowsort label-7272
SELECT DISTINCT - COUNT ( * ) * 67, + CAST ( - 44 AS INTEGER ) AS col2
----
-67
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7273
SELECT 61 + + - 93 DIV NULLIF ( + 41, - 23 * - 10 * CASE - 90 WHEN + 21 THEN - - 89 END + + 87 * + + 54 ) DIV - + MIN( DISTINCT - 38 )
----
61

skipif mysql # not compatible
query I rowsort label-7273
SELECT 61 + + - 93 / NULLIF ( + 41, - 23 * - 10 * CASE - 90 WHEN + 21 THEN - - 89 END + + 87 * + + 54 ) / - + MIN ( DISTINCT - 38 )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7274
SELECT 20 + + 36 col0, MIN( ALL 40 ) * 91 AS col1
----
56
3640

skipif mysql # not compatible
query II rowsort label-7274
SELECT 20 + + 36 col0, MIN ( ALL 40 ) * 91 AS col1
----
56
3640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7275
SELECT 7 * - CASE + CAST( NULL AS SIGNED ) WHEN 54 THEN - - 34 WHEN - 58 THEN + + 41 * + - 41 ELSE - 16 END / CAST( NULL AS SIGNED ) * - NULLIF ( + CAST( + + 36 AS SIGNED ), + 27 / 73 * + - 77 ) + + + SUM( DISTINCT + 73 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7275
SELECT 7 * - CASE + CAST ( NULL AS INTEGER ) WHEN 54 THEN - - 34 WHEN - 58 THEN + + 41 * + - 41 ELSE - 16 END / CAST ( NULL AS INTEGER ) * - NULLIF ( + CAST ( + + 36 AS INTEGER ), + 27 / 73 * + - 77 ) + + + SUM ( DISTINCT + 73 ) col1
----
NULL

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

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

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

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

query I rowsort
SELECT - 73 * + + 81 + + - NULLIF ( + 21, + 43 ) - 11 + + 37 * - 55
----
-7980

query II rowsort
SELECT 33 AS col1, 42
----
33
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT 41 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-7280
SELECT 41 / + 89
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7281
SELECT 12 DIV - + ( + - 35 ) + + 29 - + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-7281
SELECT 12 / - + ( + - 35 ) + + 29 - + COUNT ( * )
----
28

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

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

query I rowsort
SELECT DISTINCT 34 * - 37
----
-1258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7284
SELECT ALL - CAST( - 71 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL - CAST ( - 71 AS INTEGER )
----
71

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7286
SELECT 31 DIV + + ( - + 59 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7286
SELECT 31 / + + ( - + 59 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7287
SELECT DISTINCT + 95 + - NULLIF ( + ( - 54 ), MAX( ALL + + 98 ) * + ( - + CAST( - 91 AS SIGNED ) ) / - - 62 + ( + + 56 ) * + 55 ) * 38
----
2147

skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT + 95 + - NULLIF ( + ( - 54 ), MAX ( ALL + + 98 ) * + ( - + CAST ( - 91 AS INTEGER ) ) / - - 62 + ( + + 56 ) * + 55 ) * 38
----
2147

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7289
SELECT 13 * COUNT( * ) DIV - - 22 * - 76 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7289
SELECT 13 * COUNT ( * ) / - - 22 * - 76 + COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7290
SELECT ALL - CASE 63 WHEN + 58 - ( ( + - CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) ) ) - 88 * 99 * + + 86 + COUNT( * ) + - ( 39 ) + - 13 * + COUNT( * ) THEN NULL WHEN - 59 THEN 55 END + - COUNT( - 88 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL - CASE 63 WHEN + 58 - ( ( + - CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) ) ) - 88 * 99 * + + 86 + COUNT ( * ) + - ( 39 ) + - 13 * + COUNT ( * ) THEN NULL WHEN - 59 THEN 55 END + - COUNT ( - 88 ) AS col0
----
NULL

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

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

query II rowsort
SELECT 27 + 72 * - - 95 AS col2, + 80 * + 44 AS col2
----
6867
3520

query II rowsort
SELECT + 61 AS col2, 49
----
61
49

query I rowsort
SELECT ALL - 50 + 24 AS col1
----
-26

query I rowsort
SELECT 72 - - 97
----
169

query II rowsort
SELECT ALL + 86 + - - 41 * 48 AS col0, - 15 + - 14
----
2054
-29

onlyif mysql # DIV for integer division: 
query II rowsort label-7297
SELECT 38, 29 DIV - 80 AS col0
----
38
0

skipif mysql # not compatible
query II rowsort label-7297
SELECT 38, 29 / - 80 AS col0
----
38
0

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

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL 85 + + + COUNT ( * ) AS col1
----
86

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

skipif mysql # not compatible
query I rowsort label-7299
SELECT 62 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 86 AS col2, - 78 AS col2
----
86
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT DISTINCT + - ( + 56 ) + - 62 + + - 58 + - COUNT( - COALESCE ( 0, 51, + ( 43 ), - - 78 ) ) * 91
----
-267

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT + - ( + 56 ) + - 62 + + - 58 + - COUNT ( - COALESCE ( 0, 51, + ( 43 ), - - 78 ) ) * 91
----
-267

query I rowsort
SELECT ALL - - 6 + 61
----
67

query I rowsort
SELECT - 32 + + + 85 + - 11
----
42

query II rowsort
SELECT DISTINCT + 99, - 3 AS col2
----
99
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7305
SELECT ALL + 61 DIV 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL + 61 / 68 AS col0
----
0

query I rowsort
SELECT 4 + 89 * + 17 AS col0
----
1517

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7307
SELECT DISTINCT + + 64 / 30 + ( 17 ) + - 97 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7307
SELECT DISTINCT + + 64 / 30 + ( 17 ) + - 97 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT ALL 51 - - MIN( + 12 ) col2
----
63

skipif mysql # not compatible
query I rowsort label-7308
SELECT ALL 51 - - MIN ( + 12 ) col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7309
SELECT 96 DIV + 59
----
1

skipif mysql # not compatible
query I rowsort label-7309
SELECT 96 / + 59
----
1

query II rowsort
SELECT DISTINCT 49 AS col1, 82 * NULLIF ( + + 25, 73 ) AS col1
----
49
2050

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT 73 + - MAX( ALL + 98 ) * - COALESCE ( - 54, + + 43 ) - NULLIF ( + + 94, ( + 83 ) / 28 * + - COUNT( * ) / 14 - + + 96 + 87 + + 84 + - 55 + 45 * - 94 * - 83 + + 16 - + 31 * 11 ) + + 82 + - SUM( ALL + + 76 ) + 88 * - + 29
----
-7859

skipif mysql # not compatible
query I rowsort label-7311
SELECT 73 + - MAX ( ALL + 98 ) * - COALESCE ( - 54, + + 43 ) - NULLIF ( + + 94, ( + 83 ) / 28 * + - COUNT ( * ) / 14 - + + 96 + 87 + + 84 + - 55 + 45 * - 94 * - 83 + + 16 - + 31 * 11 ) + + 82 + - SUM ( ALL + + 76 ) + 88 * - + 29
----
-7859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7312
SELECT + 1 * - CASE - + 97 WHEN + 56 * 46 THEN NULL WHEN ( + + 12 ) * + + 56 THEN CAST( - ( 73 ) AS SIGNED ) + ( + + ( + - 84 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT + 1 * - CASE - + 97 WHEN + 56 * 46 THEN NULL WHEN ( + + 12 ) * + + 56 THEN CAST ( - ( 73 ) AS INTEGER ) + ( + + ( + - 84 ) ) END
----
NULL

query I rowsort
SELECT 66 * - 12
----
-792

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT DISTINCT - COUNT( - 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT - COUNT ( - 10 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7316
SELECT COUNT( * ) DIV - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7316
SELECT COUNT ( * ) / - 71 AS col1
----
0

query I rowsort
SELECT 47 * + + 21 * 47
----
46389

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT MIN( + 69 ) col2
----
69

skipif mysql # not compatible
query I rowsort label-7318
SELECT MIN ( + 69 ) col2
----
69

query I rowsort
SELECT ALL 87 * - 18 * 93 * - + 47 + - 14 AS col0
----
6844972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7320
SELECT + 12 * + ( CAST( - - 23 AS SIGNED ) ) + - 31 AS col1
----
245

skipif mysql # not compatible
query I rowsort label-7320
SELECT + 12 * + ( CAST ( - - 23 AS INTEGER ) ) + - 31 AS col1
----
245

query II rowsort
SELECT + 97 * 43 * + ( - 6 ) AS col1, 23 col0
----
-25026
23

query I rowsort
SELECT ALL - 46 + + + 19 + + - 92 + + 57
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7323
SELECT DISTINCT + 73 DIV - MAX( DISTINCT 83 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT + 73 / - MAX ( DISTINCT 83 ) AS col1
----
0

query I rowsort
SELECT ALL - 19 + - ( + - 97 ) AS col1
----
78

query I rowsort
SELECT - 67 * + - 3 AS col1
----
201

onlyif mysql # aggregate syntax: 
query II rowsort label-7326
SELECT MAX( + 44 ) AS col1, 14 + - 60
----
44
-46

skipif mysql # not compatible
query II rowsort label-7326
SELECT MAX ( + 44 ) AS col1, 14 + - 60
----
44
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT - CASE 32 WHEN + 10 + - 61 THEN + 0 * + - COUNT( * ) * + 76 + + - 26 - - ( + - MAX( DISTINCT + 30 ) ) * + + 53 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT - CASE 32 WHEN + 10 + - 61 THEN + 0 * + - COUNT ( * ) * + 76 + + - 26 - - ( + - MAX ( DISTINCT + 30 ) ) * + + 53 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7328
SELECT + COUNT( DISTINCT 44 ) * + 95 - + - 42, 68 DIV - 2 AS col0
----
137
-34

skipif mysql # not compatible
query II rowsort label-7328
SELECT + COUNT ( DISTINCT 44 ) * + 95 - + - 42, 68 / - 2 AS col0
----
137
-34

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

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

query I rowsort
SELECT ALL COALESCE ( + + 76, + - 74 ) AS col1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7331
SELECT - CAST( + 32 AS SIGNED ) + 19
----
-13

skipif mysql # not compatible
query I rowsort label-7331
SELECT - CAST ( + 32 AS INTEGER ) + 19
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT ALL - 99 * + 85 * + COUNT( * )
----
-8415

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL - 99 * + 85 * + COUNT ( * )
----
-8415

query I rowsort
SELECT - 92 * + + 42 * - - 28
----
-108192

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT ALL - SUM( DISTINCT - - CASE + 65 WHEN + 30 THEN + + 59 * + + 75 END ) * 51 * COUNT( * ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL - SUM ( DISTINCT - - CASE + 65 WHEN + 30 THEN + + 59 * + + 75 END ) * 51 * COUNT ( * ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7335
SELECT ALL - CAST( - MIN( DISTINCT 42 ) AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL - CAST ( - MIN ( DISTINCT 42 ) AS INTEGER )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7336
SELECT ALL + COALESCE ( 6, + 88 * - 1 + + + CAST( NULL AS SIGNED ), - 17 * + + 94 + + + 69 ) * CASE 39 WHEN - + 45 + - + 83 - + - 53 + - 58 / 23 THEN + - 64 ELSE + + 99 END
----
594

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL + COALESCE ( 6, + 88 * - 1 + + + CAST ( NULL AS INTEGER ), - 17 * + + 94 + + + 69 ) * CASE 39 WHEN - + 45 + - + 83 - + - 53 + - 58 / 23 THEN + - 64 ELSE + + 99 END
----
594

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

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

query II rowsort
SELECT + + 69 - + 62, 24 AS col0
----
7
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7339
SELECT + - 95 + + + 4 AS col2, 22 - CASE + ( 33 ) WHEN - 49 - - - 60 * - - COUNT( * ) + - 97 THEN NULL ELSE 0 END col2
----
-91
22

skipif mysql # not compatible
query II rowsort label-7339
SELECT + - 95 + + + 4 AS col2, 22 - CASE + ( 33 ) WHEN - 49 - - - 60 * - - COUNT ( * ) + - 97 THEN NULL ELSE 0 END col2
----
-91
22

onlyif mysql # DIV for integer division: 
query I rowsort label-7340
SELECT + 55 DIV + ( - 43 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7340
SELECT + 55 / + ( - 43 ) AS col1
----
-1

query II rowsort
SELECT - 94 * + 76, - 73 AS col0
----
-7144
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT - - COUNT( * ) + 90 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-7342
SELECT - - COUNT ( * ) + 90 AS col2
----
91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7344
SELECT + 87 DIV - 28 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7344
SELECT + 87 / - 28 AS col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7345
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 60 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 60 * 0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7346
SELECT ALL 75 + - - 81 + + 56 * + + CAST( + 5 AS SIGNED ) AS col0
----
436

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL 75 + - - 81 + + 56 * + + CAST ( + 5 AS INTEGER ) AS col0
----
436

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

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

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

query I rowsort
SELECT ALL - 80 * - 25 + - + 62
----
1938

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT + MAX( - 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-7350
SELECT + MAX ( - 7 ) AS col2
----
-7

query I rowsort
SELECT ( ( - 25 ) )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7352
SELECT 50 * CASE - 31 WHEN CAST( 32 AS SIGNED ) + + 14 * - 10 * + 83 + 21 * SUM( + 82 ) THEN NULL WHEN + 2 THEN - NULLIF ( - 24, - 90 ) ELSE NULL END + + 39 + + - COALESCE ( 22, - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7352
SELECT 50 * CASE - 31 WHEN CAST ( 32 AS INTEGER ) + + 14 * - 10 * + 83 + 21 * SUM ( + 82 ) THEN NULL WHEN + 2 THEN - NULLIF ( - 24, - 90 ) ELSE NULL END + + 39 + + - COALESCE ( 22, - 30 )
----
NULL

query I rowsort
SELECT ALL + ( + 8 ) * + + ( + - 76 ) + - 53 AS col2
----
-661

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7354
SELECT - CAST( NULL AS DECIMAL ) / - 53 * + CAST( + 66 AS DECIMAL ) + + 9 + - + 93 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7354
SELECT - CAST ( NULL AS REAL ) / - 53 * + CAST ( + 66 AS REAL ) + + 9 + - + 93 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL + 21 AS col0, NULLIF ( - ( - 15 ), 36 * - 80 + + 50 )
----
21
15

query I rowsort
SELECT + 74 + + 35
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7357
SELECT DISTINCT - 70 * - + 56 * + COUNT( * ) - - + 12 * + - CASE - CAST( NULL AS SIGNED ) WHEN - 11 THEN - COUNT( * ) ELSE + NULLIF ( 24, + 45 * - 47 + + 27 ) END * CASE 93 WHEN 19 THEN + 17 WHEN - 12 + 97 THEN 23 * + 93 + - 78 * + 80 END * + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT - 70 * - + 56 * + COUNT ( * ) - - + 12 * + - CASE - CAST ( NULL AS INTEGER ) WHEN - 11 THEN - COUNT ( * ) ELSE + NULLIF ( 24, + 45 * - 47 + + 27 ) END * CASE 93 WHEN 19 THEN + 17 WHEN - 12 + 97 THEN 23 * + 93 + - 78 * + 80 END * + + 75
----
NULL

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

query I rowsort
SELECT ALL + 87 * - 64 AS col1
----
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT + CASE - + 66 WHEN + + AVG ( - 93 ) + + 42 - COUNT( * ) THEN NULL WHEN - AVG ( DISTINCT + 1 ) THEN + 63 / + + 97 + + 54 WHEN + SUM( ALL 24 ) * + + 18 + 27 THEN NULL ELSE NULL END + + + COUNT( - 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7360
SELECT + CASE - + 66 WHEN + + AVG ( - 93 ) + + 42 - COUNT ( * ) THEN NULL WHEN - AVG ( DISTINCT + 1 ) THEN + 63 / + + 97 + + 54 WHEN + SUM ( ALL 24 ) * + + 18 + 27 THEN NULL ELSE NULL END + + + COUNT ( - 7 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT COUNT( ALL + + ( 88 ) ) * 30 * - + COUNT( * ) * - + 37 + 52 + 29 AS col2
----
1191

skipif mysql # not compatible
query I rowsort label-7361
SELECT COUNT ( ALL + + ( 88 ) ) * 30 * - + COUNT ( * ) * - + 37 + 52 + 29 AS col2
----
1191

query I rowsort
SELECT - ( 59 ) + + 29 AS col2
----
-30

query I rowsort
SELECT ALL 26 * - 70 AS col0
----
-1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7364
SELECT + COALESCE ( 37, + 7, 46 * - 41 + 69 ) + + CAST( COUNT( + 50 ) + - COUNT( * ) AS SIGNED ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7364
SELECT + COALESCE ( 37, + 7, 46 * - 41 + 69 ) + + CAST ( COUNT ( + 50 ) + - COUNT ( * ) AS INTEGER ) AS col1
----
37

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

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

query I rowsort
SELECT - 96 + - 60 AS col1
----
-156

query I rowsort
SELECT 88 * 53 + 10
----
4674

query I rowsort
SELECT DISTINCT 72 * - 27 AS col1
----
-1944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7369
SELECT + CAST( + 30 AS SIGNED ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-7369
SELECT + CAST ( + 30 AS INTEGER ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT ALL + MIN( - 67 ) * 74 - NULLIF ( + 7, 91 )
----
-4965

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL + MIN ( - 67 ) * 74 - NULLIF ( + 7, 91 )
----
-4965

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

skipif mysql # not compatible
query I rowsort label-7371
SELECT + CAST ( NULL AS INTEGER ) / + 30 AS col2
----
NULL

query I rowsort
SELECT ALL 66 * 47 AS col1
----
3102

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7374
SELECT - 54 + COUNT( * ) DIV + 18
----
-54

skipif mysql # not compatible
query I rowsort label-7374
SELECT - 54 + COUNT ( * ) / + 18
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-7375
SELECT + 65 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-7375
SELECT + 65 / 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7376
SELECT MIN( ALL CAST( 39 AS SIGNED ) )
----
39

skipif mysql # not compatible
query I rowsort label-7376
SELECT MIN ( ALL CAST ( 39 AS INTEGER ) )
----
39

query I rowsort
SELECT - 30 + 98 AS col1
----
68

query I rowsort
SELECT - 47 * 57
----
-2679

query I rowsort
SELECT - 35 + + 34 * + 76
----
2549

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

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

query I rowsort
SELECT - 11 + - 51
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT ALL COUNT( * ) + - COUNT( * ) * + 60
----
-59

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL COUNT ( * ) + - COUNT ( * ) * + 60
----
-59

query I rowsort
SELECT ALL 75 + 61 AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT - COUNT( 22 ) + - COALESCE ( 92, 41 * + 2, - COUNT( DISTINCT 58 ) - - 93 * 38 ) * COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-7384
SELECT - COUNT ( 22 ) + - COALESCE ( 92, 41 * + 2, - COUNT ( DISTINCT 58 ) - - 93 * 38 ) * COUNT ( * )
----
-93

query I rowsort
SELECT DISTINCT + 36 * + 33
----
1188

query I rowsort
SELECT - COALESCE ( 18, 37 ) * 39 AS col2
----
-702

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

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL + COUNT ( * ) + - 78 AS col2
----
-77

query I rowsort
SELECT - 45 * - 94 AS col2
----
4230

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7390
SELECT ALL 92 DIV - MIN( DISTINCT + 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL 92 / - MIN ( DISTINCT + 60 )
----
-1

query I rowsort
SELECT DISTINCT 27 * - 70
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT DISTINCT - COUNT( * ) - 25
----
-26

skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT - COUNT ( * ) - 25
----
-26

query I rowsort
SELECT ALL 62 * + 88 col2
----
5456

query I rowsort
SELECT DISTINCT 91 * + 36 AS col0
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT + COALESCE ( 46, 87 ) * + 51 - + 24 * + COUNT( * ) AS col2
----
2322

skipif mysql # not compatible
query I rowsort label-7395
SELECT + COALESCE ( 46, 87 ) * + 51 - + 24 * + COUNT ( * ) AS col2
----
2322

query I rowsort
SELECT DISTINCT 85 - 65
----
20

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

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

query I rowsort
SELECT ( + 97 ) * + 54 AS col2
----
5238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7399
SELECT ALL - CASE WHEN + 36 NOT IN ( CAST( NULL AS SIGNED ) ) THEN NULL ELSE + NULLIF ( - ( - NULLIF ( ( - 57 ), COUNT( * ) ) ), CASE 34 WHEN + 3 * + 9 THEN + 98 / 49 + 76 ELSE NULL END - 83 ) + - COALESCE ( - 80, - 31 ) END AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-7399
SELECT ALL - CASE WHEN + 36 NOT IN ( CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + NULLIF ( - ( - NULLIF ( ( - 57 ), COUNT ( * ) ) ), CASE 34 WHEN + 3 * + 9 THEN + 98 / 49 + 76 ELSE NULL END - 83 ) + - COALESCE ( - 80, - 31 ) END AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT SUM( ALL 53 ) * SUM( - 7 )
----
-371

skipif mysql # not compatible
query I rowsort label-7400
SELECT SUM ( ALL 53 ) * SUM ( - 7 )
----
-371

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT ALL - + COALESCE ( - 11, 68 + ( 38 ), - COUNT( + 17 ) ) col0
----
11

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL - + COALESCE ( - 11, 68 + ( 38 ), - COUNT ( + 17 ) ) col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT + ( - COUNT( * ) ) * - COUNT( * ) - 83 * COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-7402
SELECT + ( - COUNT ( * ) ) * - COUNT ( * ) - 83 * COUNT ( * )
----
-82

query I rowsort
SELECT + 18 + 16
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT + - 39 * 62 + SUM( ALL 33 ) AS col0
----
-2385

skipif mysql # not compatible
query I rowsort label-7404
SELECT + - 39 * 62 + SUM ( ALL 33 ) AS col0
----
-2385

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7406
SELECT + 10 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-7406
SELECT + 10 / 77
----
0

query I rowsort
SELECT ALL CASE - 93 WHEN 2 - 77 THEN ( - 67 ) + ( + 51 ) WHEN - 90 THEN NULL ELSE NULL END + - 55 * 1
----
NULL

query I rowsort
SELECT + 24 * + ( + 3 ) + 44 AS col0
----
116

query I rowsort
SELECT ALL - 56 * 14
----
-784

query I rowsort
SELECT DISTINCT 46 + 82 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT ALL + MIN( DISTINCT - 55 ) + ( COUNT( * ) )
----
-54

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL + MIN ( DISTINCT - 55 ) + ( COUNT ( * ) )
----
-54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT ALL - 6 + - ( + 74 + COUNT( ALL 65 ) ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL - 6 + - ( + 74 + COUNT ( ALL 65 ) ) AS col2
----
-81

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

skipif mysql # not compatible
query I rowsort label-7414
SELECT - NULLIF ( + 68, 46 ) * + COUNT ( * )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7415
SELECT CAST( 73 AS SIGNED ) + - COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7415
SELECT CAST ( 73 AS INTEGER ) + - COUNT ( * ) AS col0
----
72

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

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

query I rowsort
SELECT DISTINCT ( - 71 ) + ( 97 )
----
26

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

skipif mysql # not compatible
query I rowsort label-7418
SELECT CAST ( NULL AS INTEGER ) * 34 * COUNT ( ALL + 47 ) col0
----
NULL

query I rowsort
SELECT 40 + + 79 - ( 35 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT DISTINCT + 4 * + MAX( ALL - 24 )
----
-96

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT + 4 * + MAX ( ALL - 24 )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7421
SELECT ALL CAST( 86 AS SIGNED ) - 77 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL CAST ( 86 AS INTEGER ) - 77 AS col2
----
9

query I rowsort
SELECT ALL - 87 * + 59 * - ( + 15 ) AS col1
----
76995

query I rowsort
SELECT + 74 * - + 65 + ( - 46 ) AS col1
----
-4856

onlyif mysql # DIV for integer division: 
query I rowsort label-7424
SELECT 65 DIV - + 95
----
0

skipif mysql # not compatible
query I rowsort label-7424
SELECT 65 / - + 95
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7425
SELECT 1 * + COALESCE ( - 98, - CASE 86 WHEN 72 + - 28 THEN + 7 END DIV + 79 + - 4, 85 * + 73, 46 + 57 ) * COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-7425
SELECT 1 * + COALESCE ( - 98, - CASE 86 WHEN 72 + - 28 THEN + 7 END / + 79 + - 4, 85 * + 73, 46 + 57 ) * COUNT ( * ) AS col1
----
-98

query I rowsort
SELECT 24 * - + 97 * ( - ( - 47 ) ) + + 80
----
-109336

onlyif mysql # DIV for integer division: 
query I rowsort label-7427
SELECT ALL - 51 DIV 55 * - 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL - 51 / 55 * - 45 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT DISTINCT - + NULLIF ( + + 49, COUNT( * ) + + 4 )
----
-49

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT - + NULLIF ( + + 49, COUNT ( * ) + + 4 )
----
-49

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

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

query I rowsort
SELECT ALL 88 * 65
----
5720

onlyif mysql # DIV for integer division: 
query I rowsort label-7431
SELECT ALL - - 55 DIV - + 71 + 14 col0
----
14

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL - - 55 / - + 71 + 14 col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT ALL - - 80 + + 19 + COUNT( * ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL - - 80 + + 19 + COUNT ( * ) AS col0
----
100

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

skipif mysql # not compatible
query I rowsort label-7433
SELECT + COUNT ( ALL - 44 ) AS col2
----
1

query I rowsort
SELECT ALL - ( + 38 ) * 37
----
-1406

query I rowsort
SELECT DISTINCT - + 50 + - 39 * + 26
----
-1064

query I rowsort
SELECT + 65 * 38 col2
----
2470

query I rowsort
SELECT ALL - 16 + + 55 AS col2
----
39

query I rowsort
SELECT DISTINCT 13 + + 14 * 40 AS col2
----
573

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT - COUNT( * ) * - 14 + - 28 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-7439
SELECT - COUNT ( * ) * - 14 + - 28 AS col2
----
-14

query I rowsort
SELECT - + CASE + ( + 87 ) WHEN 91 THEN - ( - 50 ) WHEN - 23 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - 52 ) + 97
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7442
SELECT ALL - 75 + - - MIN( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL - 75 + - - MIN ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7443
SELECT 93, CAST( + ( COUNT( 61 ) ) AS SIGNED ) AS col0
----
93
1

skipif mysql # not compatible
query II rowsort label-7443
SELECT 93, CAST ( + ( COUNT ( 61 ) ) AS INTEGER ) AS col0
----
93
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT + 5 * + - 69 * + COUNT( * ) AS col1
----
-345

skipif mysql # not compatible
query I rowsort label-7444
SELECT + 5 * + - 69 * + COUNT ( * ) AS col1
----
-345

query I rowsort
SELECT + 11 * - 81 AS col0
----
-891

query I rowsort
SELECT ALL 16 * + 49 AS col1
----
784

onlyif mysql # DIV for integer division: 
query I rowsort label-7447
SELECT DISTINCT 28 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT 28 / + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT - MIN( DISTINCT - 26 ) col1
----
26

skipif mysql # not compatible
query I rowsort label-7448
SELECT - MIN ( DISTINCT - 26 ) col1
----
26

query I rowsort
SELECT + 75 * 34
----
2550

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

query I rowsort
SELECT ALL 57 * 24 AS col1
----
1368

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT + 39 * - 50 * + - CASE - 41 WHEN 15 + + 77 THEN NULL WHEN - 35 * - 65 THEN SUM( DISTINCT + ( + 96 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7453
SELECT + 39 * - 50 * + - CASE - 41 WHEN 15 + + 77 THEN NULL WHEN - 35 * - 65 THEN SUM ( DISTINCT + ( + 96 ) ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7454
SELECT + 15 * + 2 DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-7454
SELECT + 15 * + 2 / 35
----
0

query II rowsort
SELECT - 8 AS col2, 46
----
-8
46

query I rowsort
SELECT - COALESCE ( + - 58, 82 * + 78 )
----
58

query I rowsort
SELECT - 85 * 85 AS col2
----
-7225

query I rowsort
SELECT ALL + - 64 * NULLIF ( + 2, 6 ) + 69 AS col1
----
-59

query I rowsort
SELECT DISTINCT - 83 * - - ( 97 )
----
-8051

query I rowsort
SELECT ALL - 72 * + 95 * NULLIF ( + 58, 29 * 74 + - 25 * 73 ) + 65 AS col1
----
-396655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7461
SELECT + - MIN( - - 72 ) * - 65 + + CAST( + 12 AS SIGNED )
----
4692

skipif mysql # not compatible
query I rowsort label-7461
SELECT + - MIN ( - - 72 ) * - 65 + + CAST ( + 12 AS INTEGER )
----
4692

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT - + CASE COUNT( * ) WHEN + 28 THEN - 10 ELSE NULL END * + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT - + CASE COUNT ( * ) WHEN + 28 THEN - 10 ELSE NULL END * + 94 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT ALL - COUNT( * ) * - 56 + COALESCE ( + 95, 47 + 88 ) + + 24
----
175

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL - COUNT ( * ) * - 56 + COALESCE ( + 95, 47 + 88 ) + + 24
----
175

query I rowsort
SELECT + 32 * - 66 - - 87 AS col1
----
-2025

onlyif mysql # DIV for integer division: 
query I rowsort label-7466
SELECT + 44 DIV - - 19 - + 40 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7466
SELECT + 44 / - - 19 - + 40 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT ALL + - 47 * - - COUNT( * ) * - + COUNT( * ) - - SUM( DISTINCT 5 ) * 6 + + NULLIF ( + COUNT( * ), ( - 27 ) ) * + 45
----
122

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL + - 47 * - - COUNT ( * ) * - + COUNT ( * ) - - SUM ( DISTINCT 5 ) * 6 + + NULLIF ( + COUNT ( * ), ( - 27 ) ) * + 45
----
122

query I rowsort
SELECT ALL - 88 * - 83 + 37
----
7341

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7469
SELECT - COALESCE ( 18, - 17, 34 ) DIV + COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-7469
SELECT - COALESCE ( 18, - 17, 34 ) / + COUNT ( * ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT ALL + - 15 * + COUNT( * ) + + + ( - 76 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL + - 15 * + COUNT ( * ) + + + ( - 76 ) AS col0
----
-91

query I rowsort
SELECT - 58 * 69 AS col0
----
-4002

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT ALL + COUNT( * ) * COUNT( * ) + + CASE - 52 WHEN CASE - COALESCE ( + 94, COUNT( DISTINCT - 20 ) + 82, MIN( - CASE ( ( - 71 ) ) WHEN + 6 + 20 * - 42 THEN 70 + + 91 WHEN 86 THEN NULL ELSE + 80 - + ( 75 ) END ) ) WHEN + 72 THEN + 97 - 32 * + 15 WHEN + ( 52 ) THEN NULL END THEN - COUNT( * ) * COUNT( * ) END * - 91 + - 53 / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL + COUNT ( * ) * COUNT ( * ) + + CASE - 52 WHEN CASE - COALESCE ( + 94, COUNT ( DISTINCT - 20 ) + 82, MIN ( - CASE ( ( - 71 ) ) WHEN + 6 + 20 * - 42 THEN 70 + + 91 WHEN 86 THEN NULL ELSE + 80 - + ( 75 ) END ) ) WHEN + 72 THEN + 97 - 32 * + 15 WHEN + ( 52 ) THEN NULL END THEN - COUNT ( * ) * COUNT ( * ) END * - 91 + - 53 / 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT ALL + + CASE + 80 WHEN - - NULLIF ( 30, - 82 ) * + 89 THEN 1 * + 15 WHEN - 48 THEN - 54 * 48 + - ( + COUNT( * ) ) END / + COALESCE ( 92, - 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL + + CASE + 80 WHEN - - NULLIF ( 30, - 82 ) * + 89 THEN 1 * + 15 WHEN - 48 THEN - 54 * 48 + - ( + COUNT ( * ) ) END / + COALESCE ( 92, - 36 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7474
SELECT - COUNT( * ) + + MAX( + 21 ) DIV + 77 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7474
SELECT - COUNT ( * ) + + MAX ( + 21 ) / + 77 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7475
SELECT - - ( - 21 ) DIV - CAST( 55 AS SIGNED ) * 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7475
SELECT - - ( - 21 ) / - CAST ( 55 AS INTEGER ) * 78 AS col1
----
0

query I rowsort
SELECT - - 73 * - + 15 - - 10 AS col2
----
-1085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7477
SELECT - CASE + 84 WHEN - + COALESCE ( + 92, 26 ) THEN CAST( 94 AS SIGNED ) + - COUNT( * ) ELSE - 77 END col2
----
77

skipif mysql # not compatible
query I rowsort label-7477
SELECT - CASE + 84 WHEN - + COALESCE ( + 92, 26 ) THEN CAST ( 94 AS INTEGER ) + - COUNT ( * ) ELSE - 77 END col2
----
77

query I rowsort
SELECT ALL - - ( - - 93 ) * + 52 * + 34 - + 13 AS col1
----
164411

query II rowsort
SELECT - 92 AS col1, + 60
----
-92
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT - + 22 * + COUNT( * ) + - - 58 - + 83 * + MAX( - 94 * 0 )
----
36

skipif mysql # not compatible
query I rowsort label-7480
SELECT - + 22 * + COUNT ( * ) + - - 58 - + 83 * + MAX ( - 94 * 0 )
----
36

query I rowsort
SELECT ALL 75 * + 92 * + 17 col1
----
117300

query I rowsort
SELECT - 81 + - + 7
----
-88

query I rowsort
SELECT DISTINCT - 14 * + 15 AS col1
----
-210

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7484
SELECT ALL ( - 47 ), 72 - 86 - + CAST( + 8 AS SIGNED ) * COALESCE ( - 81 DIV 61, 58 DIV - AVG ( DISTINCT - 55 * + 37 ) ) col1
----
-47
-6

skipif mysql # not compatible
query II rowsort label-7484
SELECT ALL ( - 47 ), 72 - 86 - + CAST ( + 8 AS INTEGER ) * COALESCE ( - 81 / 61, 58 / - AVG ( DISTINCT - 55 * + 37 ) ) col1
----
-47
-6

query I rowsort
SELECT + 51 * + 6 AS col0
----
306

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7486
SELECT - COALESCE ( 22, - 16 DIV + CAST( NULL AS SIGNED ) * CAST( 53 AS SIGNED ) + + 87, - 64 )
----
-22

skipif mysql # not compatible
query I rowsort label-7486
SELECT - COALESCE ( 22, - 16 / + CAST ( NULL AS INTEGER ) * CAST ( 53 AS INTEGER ) + + 87, - 64 )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7487
SELECT + CAST( NULL AS SIGNED ) + - 59 * - 90 * - 11 * - 52 + - AVG ( - ( + 38 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT + CAST ( NULL AS INTEGER ) + - 59 * - 90 * - 11 * - 52 + - AVG ( - ( + 38 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7488
SELECT ALL 9 DIV + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL 9 / + 81 AS col1
----
0

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

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

query I rowsort
SELECT + COALESCE ( - - 93, + - ( 81 ) * 92 ) * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT + COUNT( * ) - - COALESCE ( + - 93, - ( ( - COUNT( DISTINCT - 54 ) ) ) * 29 )
----
-92

skipif mysql # not compatible
query I rowsort label-7491
SELECT + COUNT ( * ) - - COALESCE ( + - 93, - ( ( - COUNT ( DISTINCT - 54 ) ) ) * 29 )
----
-92

query I rowsort
SELECT - COALESCE ( - + 72, 74 + 24, 46 - - 47 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT + CASE COUNT( * ) WHEN - + 25 THEN COUNT( * ) + 82 * + 50 ELSE NULL END * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT + CASE COUNT ( * ) WHEN - + 25 THEN COUNT ( * ) + 82 * + 50 ELSE NULL END * 39
----
NULL

query I rowsort
SELECT + 79 - - + 99
----
178

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7495
SELECT ALL - CAST( + 51 AS SIGNED ) DIV 15 + 41 + + ( 3 ) DIV 19 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL - CAST ( + 51 AS INTEGER ) / 15 + 41 + + ( 3 ) / 19 AS col0
----
38

query I rowsort
SELECT + + 15 * - 75
----
-1125

query I rowsort
SELECT + ( - 65 ) + - + 17 AS col2
----
-82

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

query I rowsort
SELECT + 4 * + 84 + - 74 col1
----
262

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7500
SELECT - MAX( ALL + 59 ) - 60 + 65 DIV ( - NULLIF ( COUNT( * ), 48 - MAX( DISTINCT 35 ) ) * + 47 ) AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-7500
SELECT - MAX ( ALL + 59 ) - 60 + 65 / ( - NULLIF ( COUNT ( * ), 48 - MAX ( DISTINCT 35 ) ) * + 47 ) AS col0
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-7501
SELECT + 17 DIV + + ( + - 12 ) + - 59
----
-60

skipif mysql # not compatible
query I rowsort label-7501
SELECT + 17 / + + ( + - 12 ) + - 59
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT + 33 + + - MAX( DISTINCT - - 74 )
----
-41

skipif mysql # not compatible
query I rowsort label-7502
SELECT + 33 + + - MAX ( DISTINCT - - 74 )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7503
SELECT ALL + + 38 / + 42 + CAST( NULL AS SIGNED ) * - - CASE 99 WHEN + COUNT( * ) + + 63 * 28 THEN + CAST( 49 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL + + 38 / + 42 + CAST ( NULL AS INTEGER ) * - - CASE 99 WHEN + COUNT ( * ) + + 63 * 28 THEN + CAST ( 49 AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7504
SELECT + - CASE 29 WHEN - 47 THEN - + 96 WHEN NULLIF ( ( + 6 ), + 80 * - ( CAST( NULL AS SIGNED ) * + 15 ) + + 70 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN 46 ELSE + 5 * 3 - - COUNT( * ) END
----
-16

skipif mysql # not compatible
query I rowsort label-7504
SELECT + - CASE 29 WHEN - 47 THEN - + 96 WHEN NULLIF ( ( + 6 ), + 80 * - ( CAST ( NULL AS INTEGER ) * + 15 ) + + 70 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN 46 ELSE + 5 * 3 - - COUNT ( * ) END
----
-16

query I rowsort
SELECT DISTINCT + + 12 col0
----
12

query I rowsort
SELECT ALL + NULLIF ( - 9, 90 ) AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7507
SELECT DISTINCT COALESCE ( + + 55, - CAST( NULL AS SIGNED ) * - 65 + - 7 ) * - 38 AS col1
----
-2090

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT COALESCE ( + + 55, - CAST ( NULL AS INTEGER ) * - 65 + - 7 ) * - 38 AS col1
----
-2090

onlyif mysql # DIV for integer division: 
query I rowsort label-7508
SELECT ALL - 40 DIV + 7 - 82 + 6 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL - 40 / + 7 - 82 + 6 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-7509
SELECT DISTINCT + MIN( DISTINCT - - 13 ) AS col1, NULLIF ( ( + 33 ), 0 - 4 ) + - 38
----
13
-5

skipif mysql # not compatible
query II rowsort label-7509
SELECT DISTINCT + MIN ( DISTINCT - - 13 ) AS col1, NULLIF ( ( + 33 ), 0 - 4 ) + - 38
----
13
-5

query I rowsort
SELECT ALL 19 - ( 87 )
----
-68

query I rowsort
SELECT 47 * - - ( - - 95 )
----
4465

onlyif mysql # DIV for integer division: 
query I rowsort label-7512
SELECT DISTINCT + 45 DIV - 35
----
-1

skipif mysql # not compatible
query I rowsort label-7512
SELECT DISTINCT + 45 / - 35
----
-1

query II rowsort
SELECT 31 AS col0, 64 * - + 58
----
31
-3712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7514
SELECT DISTINCT + 55 DIV COUNT( * ) * 98 * 76 AS col1
----
409640

skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT + 55 / COUNT ( * ) * 98 * 76 AS col1
----
409640

query I rowsort
SELECT 46 * 53 AS col1
----
2438

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT ALL + 28 * COUNT( * ) * + 79
----
2212

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL + 28 * COUNT ( * ) * + 79
----
2212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7517
SELECT 65 - + COALESCE ( - - 34, 9, + MAX( ALL 93 ) ) + - 63 DIV + NULLIF ( 15, - 19 + + 37 * 22 ) * CAST( COUNT( * ) AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-7517
SELECT 65 - + COALESCE ( - - 34, 9, + MAX ( ALL 93 ) ) + - 63 / + NULLIF ( 15, - 19 + + 37 * 22 ) * CAST ( COUNT ( * ) AS INTEGER )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-7518
SELECT 72 + + COUNT( * ) + + 55 AS col2, 64
----
128
64

skipif mysql # not compatible
query II rowsort label-7518
SELECT 72 + + COUNT ( * ) + + 55 AS col2, 64
----
128
64

query II rowsort
SELECT - 3 col0, - 30 AS col1
----
-3
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7520
SELECT ALL + 65 + 47 + - 85 / - CAST( NULL AS SIGNED ) + + 53 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL + 65 + 47 + - 85 / - CAST ( NULL AS INTEGER ) + + 53 col1
----
NULL

query I rowsort
SELECT DISTINCT - 11 + - 13 + - + 29 + + CASE + 44 WHEN 5 * + 64 + 62 THEN + ( + 19 ) * - 6 + - 54 * 80 END * + ( + ( + 99 ) + AVG ( 87 ) )
----
NULL

query I rowsort
SELECT 7 + + 8
----
15

query I rowsort
SELECT DISTINCT - 93 + + 98
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT NULLIF ( + 87, 49 * - 11 + 77 * MIN( + 33 ) ) + 70 col2
----
157

skipif mysql # not compatible
query I rowsort label-7524
SELECT NULLIF ( + 87, 49 * - 11 + 77 * MIN ( + 33 ) ) + 70 col2
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT DISTINCT + 22 / + CASE - 54 WHEN + COUNT( DISTINCT - + 19 ) THEN SUM( + 92 ) WHEN - 94 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT + 22 / + CASE - 54 WHEN + COUNT ( DISTINCT - + 19 ) THEN SUM ( + 92 ) WHEN - 94 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7526
SELECT ALL COALESCE ( 71, 17, - COUNT( * ) + 44, 68 + COALESCE ( + 36 + ( 52 ), - 44 DIV - 27 ) ) + 62 * + 41
----
2613

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL COALESCE ( 71, 17, - COUNT ( * ) + 44, 68 + COALESCE ( + 36 + ( 52 ), - 44 / - 27 ) ) + 62 * + 41
----
2613

query II rowsort
SELECT - 86, 88 - - ( 76 ) * + 94 col0
----
-86
7232

query I rowsort
SELECT - 95 * 78
----
-7410

query I rowsort
SELECT DISTINCT + 72 + - - 27 - - 42 * 66 * 23
----
63855

query I rowsort
SELECT DISTINCT + 70 - + NULLIF ( ( + 57 ), 39 ) col0
----
13

query I rowsort
SELECT ALL 23 - - 89
----
112

query I rowsort
SELECT 20 * + 40 AS col1
----
800

onlyif mysql # aggregate syntax: 
query II rowsort label-7533
SELECT + 85 * - 57 - + 6, + COUNT( * ) AS col0
----
-4851
1

skipif mysql # not compatible
query II rowsort label-7533
SELECT + 85 * - 57 - + 6, + COUNT ( * ) AS col0
----
-4851
1

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

skipif mysql # not compatible
query I rowsort label-7534
SELECT + 76 / + - 81
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7535
SELECT DISTINCT - 46 / - 19 / - + 6 / + - 30 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT DISTINCT - 46 / - 19 / - + 6 / + - 30 / CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7536
SELECT + COUNT ( * ) - - 41 / - 23 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT COUNT( * ) * + 62 + 38 + - - NULLIF ( + COUNT( * ), 31 ) * - 38
----
62

skipif mysql # not compatible
query I rowsort label-7537
SELECT COUNT ( * ) * + 62 + 38 + - - NULLIF ( + COUNT ( * ), 31 ) * - 38
----
62

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

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

query I rowsort
SELECT 20 * - + ( + 3 ) col0
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-7540
SELECT + COUNT( * ) AS col2, - COALESCE ( + SUM( 3 ), - 69 ) AS col1
----
1
-3

skipif mysql # not compatible
query II rowsort label-7540
SELECT + COUNT ( * ) AS col2, - COALESCE ( + SUM ( 3 ), - 69 ) AS col1
----
1
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7541
SELECT DISTINCT - 98 AS col0, + 23 + 26 - + 31 + + + 81 + + COUNT( * ) * 86 AS col0
----
-98
185

skipif mysql # not compatible
query II rowsort label-7541
SELECT DISTINCT - 98 AS col0, + 23 + 26 - + 31 + + + 81 + + COUNT ( * ) * 86 AS col0
----
-98
185

query I rowsort
SELECT 75 - 66
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT 82 * + SUM( + 0 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7543
SELECT 82 * + SUM ( + 0 ) col1
----
0

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

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL + 42 + COUNT ( * ) * - - 89 * - 43 + - 68
----
-3853

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7545
SELECT ALL 98 * + 76 AS col2, - 19 * - CAST( - + 90 AS SIGNED )
----
7448
-1710

skipif mysql # not compatible
query II rowsort label-7545
SELECT ALL 98 * + 76 AS col2, - 19 * - CAST ( - + 90 AS INTEGER )
----
7448
-1710

query I rowsort
SELECT 75 + + + 16 AS col1
----
91

query II rowsort
SELECT 9 col1, 69 AS col2
----
9
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT ALL - CASE - COUNT( * ) WHEN + 61 THEN - - 87 END + - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL - CASE - COUNT ( * ) WHEN + 61 THEN - - 87 END + - 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT DISTINCT - 24 + - 21 - 92 * MIN( DISTINCT + 63 ) * 27
----
-156537

skipif mysql # not compatible
query I rowsort label-7550
SELECT DISTINCT - 24 + - 21 - 92 * MIN ( DISTINCT + 63 ) * 27
----
-156537

query I rowsort
SELECT 7 * + 23
----
161

query I rowsort
SELECT 10 + + 93 col1
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT ALL - 6 DIV 76 DIV + + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL - 6 / 76 / + + 75 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7554
SELECT 19 + - 67 DIV - 73 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-7554
SELECT 19 + - 67 / - 73 AS col2
----
19

query I rowsort
SELECT ALL + 34 * - 99
----
-3366

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT 97 + - - 49 + - ( - COUNT( * ) ) * + 82 AS col0
----
228

skipif mysql # not compatible
query I rowsort label-7556
SELECT 97 + - - 49 + - ( - COUNT ( * ) ) * + 82 AS col0
----
228

query II rowsort
SELECT DISTINCT 86, 12 AS col2
----
86
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT DISTINCT - 2 - - 46 + - + NULLIF ( - + 80, + MIN( + 10 ) )
----
124

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT - 2 - - 46 + - + NULLIF ( - + 80, + MIN ( + 10 ) )
----
124

query II rowsort
SELECT ALL - 20, 34 AS col0
----
-20
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7560
SELECT CASE + - 26 WHEN - 81 * - COUNT( * ) - + - CAST( NULL AS SIGNED ) + - - 1 + + 53 + + 42 THEN MAX( + ( 87 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT CASE + - 26 WHEN - 81 * - COUNT ( * ) - + - CAST ( NULL AS INTEGER ) + - - 1 + + 53 + + 42 THEN MAX ( + ( 87 ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7561
SELECT ALL + - 41 * CAST( NULL AS SIGNED ) / - COUNT( * ) * + + NULLIF ( 58, - 84 + 3 ) + 26 * 43 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL + - 41 * CAST ( NULL AS INTEGER ) / - COUNT ( * ) * + + NULLIF ( 58, - 84 + 3 ) + 26 * 43 col2
----
NULL

query I rowsort
SELECT DISTINCT + ( - 69 ) * 54 + + 5 AS col0
----
-3721

query II rowsort
SELECT DISTINCT + 84 AS col1, ( + 40 ) AS col0
----
84
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7564
SELECT MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) + - 17 + + - 64 * - + 96 * + + 23 * ( 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7564
SELECT MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + - 17 + + - 64 * - + 96 * + + 23 * ( 40 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7565
SELECT - - 86 + - COUNT( * ) col0, + 73 col2
----
85
73

skipif mysql # not compatible
query II rowsort label-7565
SELECT - - 86 + - COUNT ( * ) col0, + 73 col2
----
85
73

query I rowsort
SELECT - 95 * 57 AS col2
----
-5415

query I rowsort
SELECT + 58 * + 75 + + 92 AS col0
----
4442

query II rowsort
SELECT ALL + 24 AS col2, - 64
----
24
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7569
SELECT - 70 DIV + - 52 + + + 21 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-7569
SELECT - 70 / + - 52 + + + 21 AS col1
----
22

query I rowsort
SELECT ALL + 67 * - + 33 + - 83 AS col1
----
-2294

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT + - 61 + + COUNT( * ) + 67 * + + 59 * + 46 * + - 72 + 34 * NULLIF ( + 23 * - 41, 47 ) AS col2
----
-13124458

skipif mysql # not compatible
query I rowsort label-7571
SELECT + - 61 + + COUNT ( * ) + 67 * + + 59 * + 46 * + - 72 + 34 * NULLIF ( + 23 * - 41, 47 ) AS col2
----
-13124458

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT ALL - 56 * + 15 * + + 19 * + + 57 * COUNT( * ) * + COUNT( DISTINCT ( ( + 32 ) ) ) AS col0
----
-909720

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL - 56 * + 15 * + + 19 * + + 57 * COUNT ( * ) * + COUNT ( DISTINCT ( ( + 32 ) ) ) AS col0
----
-909720

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7573
SELECT ALL + - ( - CAST( NULL AS SIGNED ) ) AS col2, + 98 DIV - COALESCE ( 95, 41 * + 4 )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7573
SELECT ALL + - ( - CAST ( NULL AS INTEGER ) ) AS col2, + 98 / - COALESCE ( 95, 41 * + 4 )
----
NULL
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7574
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( DISTINCT - 79 ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT 73 * 60 * MIN( DISTINCT - CASE - - 80 WHEN + - 43 + 6 THEN - 94 ELSE NULL END ) + 51 * 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT 73 * 60 * MIN ( DISTINCT - CASE - - 80 WHEN + - 43 + 6 THEN - 94 ELSE NULL END ) + 51 * 58 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7576
SELECT + MIN( ( NULLIF ( + 45, + 90 ) ) ) * + NULLIF ( + 35, - 11 * + 63 + CAST( NULL AS DECIMAL ) ) * - COUNT( * ) AS col1
----
-1575

skipif mysql # not compatible
query I rowsort label-7576
SELECT + MIN ( ( NULLIF ( + 45, + 90 ) ) ) * + NULLIF ( + 35, - 11 * + 63 + CAST ( NULL AS REAL ) ) * - COUNT ( * ) AS col1
----
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT COUNT( ALL - 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7577
SELECT COUNT ( ALL - 27 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT + MIN( ALL + 55 ) + + 68 AS col2
----
123

skipif mysql # not compatible
query I rowsort label-7578
SELECT + MIN ( ALL + 55 ) + + 68 AS col2
----
123

query I rowsort
SELECT ALL 67 * 14 * + - ( + - 34 ) + + 45
----
31937

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT ALL 4 * + + MIN( ALL - 91 ) + + 98 + 20 * - - 44 AS col2
----
614

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL 4 * + + MIN ( ALL - 91 ) + + 98 + 20 * - - 44 AS col2
----
614

query II rowsort
SELECT ALL - 11 + - 21, 95 AS col2
----
-32
95

query I rowsort
SELECT ALL 44 * + 26 * 54
----
61776

query I rowsort
SELECT - CASE ( ( + + ( + ( - 90 ) ) ) ) WHEN + + 56 THEN 20 END AS col0
----
NULL

query I rowsort
SELECT + 2 * + 44
----
88

query I rowsort
SELECT + 20 + - 34
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-7586
SELECT DISTINCT 43 * + 16, + MIN( ALL - ( 93 ) ) * ( + 12 ) * - 18 AS col0
----
688
20088

skipif mysql # not compatible
query II rowsort label-7586
SELECT DISTINCT 43 * + 16, + MIN ( ALL - ( 93 ) ) * ( + 12 ) * - 18 AS col0
----
688
20088

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT - + 76 + + - 24 * - 0 + + + ( - 62 ) + 56 * 83 + 68 * COUNT( * ) AS col1
----
4578

skipif mysql # not compatible
query I rowsort label-7587
SELECT - + 76 + + - 24 * - 0 + + + ( - 62 ) + 56 * 83 + 68 * COUNT ( * ) AS col1
----
4578

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7588
SELECT ALL - NULLIF ( + + 85, + + CAST( - 29 AS SIGNED ) ) DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL - NULLIF ( + + 85, + + CAST ( - 29 AS INTEGER ) ) / 86
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT - CASE 82 WHEN - 13 THEN - COUNT( DISTINCT - 82 ) * - + 20 + - COUNT( * ) ELSE 2 END AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7590
SELECT - CASE 82 WHEN - 13 THEN - COUNT ( DISTINCT - 82 ) * - + 20 + - COUNT ( * ) ELSE 2 END AS col0
----
-2

query I rowsort
SELECT - + 26 + + + 37 + - 90 + - - 16
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-7592
SELECT - - 57 DIV - 28 AS col0, ( - 36 )
----
-2
-36

skipif mysql # not compatible
query II rowsort label-7592
SELECT - - 57 / - 28 AS col0, ( - 36 )
----
-2
-36

query II rowsort
SELECT - - 51 * + 57, 31 AS col0
----
2907
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT DISTINCT + - 64 * MIN( ALL - 24 ) AS col2
----
1536

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT + - 64 * MIN ( ALL - 24 ) AS col2
----
1536

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

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

query I rowsort
SELECT DISTINCT + 18 * + 31 AS col1
----
558

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7598
SELECT DISTINCT - + 72 * - + SUM( + 36 ) + - + CASE - 77 WHEN CAST( NULL AS SIGNED ) + 99 THEN + COUNT( * ) + - COALESCE ( 10, - 74 + 82 ) * - 52 WHEN COUNT( - 93 ) + 6 THEN 19 * - 1 ELSE NULL END + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT - + 72 * - + SUM ( + 36 ) + - + CASE - 77 WHEN CAST ( NULL AS INTEGER ) + 99 THEN + COUNT ( * ) + - COALESCE ( 10, - 74 + 82 ) * - 52 WHEN COUNT ( - 93 ) + 6 THEN 19 * - 1 ELSE NULL END + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + CASE + 14 WHEN - 94 THEN + AVG ( + - 64 ) END AS col2
----
NULL

query I rowsort
SELECT + 5 * + + 97
----
485

onlyif mysql # DIV for integer division: 
query I rowsort label-7601
SELECT ALL 88 DIV - 16 + + 83 col0
----
78

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL 88 / - 16 + + 83 col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7602
SELECT 5 * 62 - - + 58 + 46 DIV - NULLIF ( + 67, ( - NULLIF ( + 60, 88 ) ) + - 77 ) - 61 AS col1
----
307

skipif mysql # not compatible
query I rowsort label-7602
SELECT 5 * 62 - - + 58 + 46 / - NULLIF ( + 67, ( - NULLIF ( + 60, 88 ) ) + - 77 ) - 61 AS col1
----
307

onlyif mysql # aggregate syntax: 
query II rowsort label-7603
SELECT ( + SUM( DISTINCT - 97 ) ) AS col0, - ( - 74 ) * - + ( - 60 ) AS col1
----
-97
4440

skipif mysql # not compatible
query II rowsort label-7603
SELECT ( + SUM ( DISTINCT - 97 ) ) AS col0, - ( - 74 ) * - + ( - 60 ) AS col1
----
-97
4440

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7604
SELECT - CASE - - 3 WHEN + ( 89 ) THEN + ( ( - CASE + + 0 WHEN 56 THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN + 47 + - 81 WHEN + ( 66 ) THEN CAST( + 54 AS DECIMAL ) * 53 ELSE NULL END ) ) * 90 END - 98 * - ( + 9 - - 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT - CASE - - 3 WHEN + ( 89 ) THEN + ( ( - CASE + + 0 WHEN 56 THEN NULL WHEN CAST ( NULL AS REAL ) THEN + 47 + - 81 WHEN + ( 66 ) THEN CAST ( + 54 AS REAL ) * 53 ELSE NULL END ) ) * 90 END - 98 * - ( + 9 - - 95 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7605
SELECT DISTINCT + 4 AS col1, + MAX( DISTINCT - 62 ) + - 45 DIV + - 59 AS col1
----
4
-62

skipif mysql # not compatible
query II rowsort label-7605
SELECT DISTINCT + 4 AS col1, + MAX ( DISTINCT - 62 ) + - 45 / + - 59 AS col1
----
4
-62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT + CASE ( + COALESCE ( + - 6, - 66 * - 47 + - 65 * + 73 ) ) WHEN + 80 / COUNT( * ) THEN COALESCE ( ( + 65 ), 69 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT + CASE ( + COALESCE ( + - 6, - 66 * - 47 + - 65 * + 73 ) ) WHEN + 80 / COUNT ( * ) THEN COALESCE ( ( + 65 ), 69 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 0 * + 26 + - - 77
----
77

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7610
SELECT 42 * + - CAST( NULL AS SIGNED ) - + ( - - 59 ) + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7610
SELECT 42 * + - CAST ( NULL AS INTEGER ) - + ( - - 59 ) + + 51
----
NULL

query I rowsort
SELECT NULLIF ( - 67, + 41 ) AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7612
SELECT NULLIF ( - 42, - 82 ) AS col1, - SUM( ALL + 11 ) * + 93 + 15 - - - COUNT( * ) * ( + NULLIF ( - ( 35 ), - 98 - CAST( NULL AS SIGNED ) ) - ( 2 ) ) AS col1
----
-42
-971

skipif mysql # not compatible
query II rowsort label-7612
SELECT NULLIF ( - 42, - 82 ) AS col1, - SUM ( ALL + 11 ) * + 93 + 15 - - - COUNT ( * ) * ( + NULLIF ( - ( 35 ), - 98 - CAST ( NULL AS INTEGER ) ) - ( 2 ) ) AS col1
----
-42
-971

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

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

query I rowsort
SELECT + 9 * + ( - - 91 )
----
819

query I rowsort
SELECT ALL NULLIF ( + 90, + 1 / + - 59 * + + ( + - 42 ) ) * + - 33 - 48 * - 99 AS col1
----
1782

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7617
SELECT + - COUNT( * ) * + 10 * 15 AS col2, 88
----
-150
88

skipif mysql # not compatible
query II rowsort label-7617
SELECT + - COUNT ( * ) * + 10 * 15 AS col2, 88
----
-150
88

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

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL MAX ( ALL 17 )
----
17

query I rowsort
SELECT 39 + + 81
----
120

query I rowsort
SELECT 26 * + - 48
----
-1248

query I rowsort
SELECT ALL 90 * + 84 AS col0
----
7560

query I rowsort
SELECT - 73 + + 20 * 83
----
1587

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7623
SELECT 49 + - 76 + + MAX( ALL - ( + - 5 ) ) * 69 + + 72 DIV 59 DIV ( SUM( - 65 ) * - 54 ) AS col0
----
318

skipif mysql # not compatible
query I rowsort label-7623
SELECT 49 + - 76 + + MAX ( ALL - ( + - 5 ) ) * 69 + + 72 / 59 / ( SUM ( - 65 ) * - 54 ) AS col0
----
318

query I rowsort
SELECT DISTINCT + 67 + 53
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-7625
SELECT ( - - COUNT( DISTINCT - 91 ) ) + + - 45, 69 AS col0
----
-44
69

skipif mysql # not compatible
query II rowsort label-7625
SELECT ( - - COUNT ( DISTINCT - 91 ) ) + + - 45, 69 AS col0
----
-44
69

query I rowsort
SELECT + ( - 6 ) - + 15 AS col1
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7627
SELECT 64 DIV + - 52 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7627
SELECT 64 / + - 52 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7628
SELECT + COUNT( * ) DIV 18 + + 9
----
9

skipif mysql # not compatible
query I rowsort label-7628
SELECT + COUNT ( * ) / 18 + + 9
----
9

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

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

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

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

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

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

query II rowsort
SELECT ALL - 38 * - - 80 AS col0, + 6
----
-3040
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7633
SELECT - 90 * + NULLIF ( - - NULLIF ( + CAST( NULL AS SIGNED ), - + NULLIF ( + 1, COUNT( * ) ) * + + 46 ), + 24 * - MIN( - 53 * + 0 + + COALESCE ( 89, - 32 + + 23 ) * - 69 ) ) + 91 * 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7633
SELECT - 90 * + NULLIF ( - - NULLIF ( + CAST ( NULL AS INTEGER ), - + NULLIF ( + 1, COUNT ( * ) ) * + + 46 ), + 24 * - MIN ( - 53 * + 0 + + COALESCE ( 89, - 32 + + 23 ) * - 69 ) ) + 91 * 1 AS col0
----
NULL

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

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

query I rowsort
SELECT 81 * 6
----
486

query I rowsort
SELECT COALESCE ( - 38, + 5, - 35 ) + + + 73 AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7637
SELECT ALL - NULLIF ( - COUNT( * ), 66 ) - - - 36 - + 84 * + 61 - CAST( NULL AS SIGNED ) + - 72 + + 66 + 16 * MAX( + 28 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL - NULLIF ( - COUNT ( * ), 66 ) - - - 36 - + 84 * + 61 - CAST ( NULL AS INTEGER ) + - 72 + + 66 + 16 * MAX ( + 28 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7638
SELECT 0 DIV - COUNT( * ), + MIN( DISTINCT ( + 75 ) ) * + 32 + + 40 * 70 AS col1
----
0
5200

skipif mysql # not compatible
query II rowsort label-7638
SELECT 0 / - COUNT ( * ), + MIN ( DISTINCT ( + 75 ) ) * + 32 + + 40 * 70 AS col1
----
0
5200

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

skipif mysql # not compatible
query I rowsort label-7639
SELECT 6 + - CAST ( NULL AS INTEGER ) * - + 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7640
SELECT DISTINCT + 94 DIV + 5 col2, - CAST( NULL AS DECIMAL ) + + COUNT( * ) + + 39 * + - 91 DIV 29 + + 80 AS col1
----
18
NULL

skipif mysql # not compatible
query II rowsort label-7640
SELECT DISTINCT + 94 / + 5 col2, - CAST ( NULL AS REAL ) + + COUNT ( * ) + + 39 * + - 91 / 29 + + 80 AS col1
----
18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ALL ( + 78 ) * + MIN( DISTINCT 66 ) col0
----
5148

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL ( + 78 ) * + MIN ( DISTINCT 66 ) col0
----
5148

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

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

query I rowsort
SELECT 96 * - 53
----
-5088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7644
SELECT DISTINCT + 12 * - 43 - - ( + CAST( - - 96 AS SIGNED ) )
----
-420

skipif mysql # not compatible
query I rowsort label-7644
SELECT DISTINCT + 12 * - 43 - - ( + CAST ( - - 96 AS INTEGER ) )
----
-420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7645
SELECT - CAST( - CASE 82 WHEN 51 THEN + - COUNT( * ) WHEN - + 32 / 40 + + + 41 * + 42 THEN NULL ELSE + 14 END AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-7645
SELECT - CAST ( - CASE 82 WHEN 51 THEN + - COUNT ( * ) WHEN - + 32 / 40 + + + 41 * + 42 THEN NULL ELSE + 14 END AS INTEGER )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7646
SELECT NULLIF ( + - 22, - COUNT( * ) * 34 ), - 48 AS col2
----
-22
-48

skipif mysql # not compatible
query II rowsort label-7646
SELECT NULLIF ( + - 22, - COUNT ( * ) * 34 ), - 48 AS col2
----
-22
-48

query I rowsort
SELECT 84 * 93 AS col0
----
7812

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT DISTINCT - - 30 * 5 * - - 27 * - - 84 * + + COALESCE ( - 28, + 31 * - 33 * 81 - + ( + ( - 68 ) + + COUNT( * ) ) ) * + 9
----
-85730400

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT - - 30 * 5 * - - 27 * - - 84 * + + COALESCE ( - 28, + 31 * - 33 * 81 - + ( + ( - 68 ) + + COUNT ( * ) ) ) * + 9
----
-85730400

query I rowsort
SELECT ALL + 18 + - 12
----
6

query I rowsort
SELECT ALL COALESCE ( 47, 55 ) AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7651
SELECT DISTINCT + + 17 DIV + + 83 col2
----
0

skipif mysql # not compatible
query I rowsort label-7651
SELECT DISTINCT + + 17 / + + 83 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT ALL NULLIF ( + - 89, + 94 * + SUM( ALL - ( - - 15 ) ) + + - 49 + + - CASE 34 WHEN - 9 THEN NULL ELSE - COUNT( * ) * ( COUNT( * ) ) END + + 63 * + 23 * COALESCE ( - 33 * + ( - COUNT( * ) / 32 ), + 22, - 58 ) + - 63 ) + - 24 * - 29 col2
----
607

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL NULLIF ( + - 89, + 94 * + SUM ( ALL - ( - - 15 ) ) + + - 49 + + - CASE 34 WHEN - 9 THEN NULL ELSE - COUNT ( * ) * ( COUNT ( * ) ) END + + 63 * + 23 * COALESCE ( - 33 * + ( - COUNT ( * ) / 32 ), + 22, - 58 ) + - 63 ) + - 24 * - 29 col2
----
607

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT ALL - SUM( 82 ) + + + MIN( + 87 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL - SUM ( 82 ) + + + MIN ( + 87 ) AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7654
SELECT 43 * + + CAST( NULL AS SIGNED ) * 92 + + + 58 * + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7654
SELECT 43 * + + CAST ( NULL AS INTEGER ) * 92 + + + 58 * + - 95
----
NULL

query II rowsort
SELECT - 20 + + 53 - - + 84 * + + 99, COALESCE ( CASE + 70 WHEN - 4 THEN 39 WHEN 79 - 65 THEN NULL ELSE 50 * 76 END, + ( 55 ) * - 25, 69 * + 39 ) AS col1
----
8349
3800

query I rowsort
SELECT ALL 90 + 2 * + 98 + - - 39 + - 41 AS col1
----
284

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

query I rowsort
SELECT ALL - 17 + + - 4 + + 79 - ( + - 88 ) AS col0
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-7659
SELECT ALL + MAX( DISTINCT - + 23 ) AS col0, + 17 + COUNT( * ) col1
----
-23
18

skipif mysql # not compatible
query II rowsort label-7659
SELECT ALL + MAX ( DISTINCT - + 23 ) AS col0, + 17 + COUNT ( * ) col1
----
-23
18

query I rowsort
SELECT ALL 75 + - 70 * 78
----
-5385

onlyif mysql # aggregate syntax: 
query II rowsort label-7661
SELECT DISTINCT - 17 AS col0, MAX( + - 16 ) AS col1
----
-17
-16

skipif mysql # not compatible
query II rowsort label-7661
SELECT DISTINCT - 17 AS col0, MAX ( + - 16 ) AS col1
----
-17
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT CAST( ( - - 5 ) AS SIGNED ) * - + 68 AS col0
----
-340

skipif mysql # not compatible
query I rowsort label-7662
SELECT CAST ( ( - - 5 ) AS INTEGER ) * - + 68 AS col0
----
-340

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT 65 + + 12 - - COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-7664
SELECT 65 + + 12 - - COUNT ( * ) AS col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7665
SELECT + SUM( CAST( + 80 AS SIGNED ) ) AS col1, 30 + - - 95 AS col0
----
80
125

skipif mysql # not compatible
query II rowsort label-7665
SELECT + SUM ( CAST ( + 80 AS INTEGER ) ) AS col1, 30 + - - 95 AS col0
----
80
125

query I rowsort
SELECT ALL 35 * - 87 - - 66 + - ( - 11 ) * + - 4
----
-3023

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT ALL ( + + 7 ) * + 76 * - 2 - + 98 + - - 62 * - 49 + - 30 * + NULLIF ( - 82, - 4 * 23 + - COUNT( ALL - 62 ) ) + - 50
----
-1790

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL ( + + 7 ) * + 76 * - 2 - + 98 + - - 62 * - 49 + - 30 * + NULLIF ( - 82, - 4 * 23 + - COUNT ( ALL - 62 ) ) + - 50
----
-1790

query I rowsort
SELECT DISTINCT 20 * - 55 AS col1
----
-1100

onlyif mysql # DIV for integer division: 
query I rowsort label-7669
SELECT ( + 64 ) + - 57 DIV 48
----
63

skipif mysql # not compatible
query I rowsort label-7669
SELECT ( + 64 ) + - 57 / 48
----
63

query I rowsort
SELECT - 16 * - + 25 - - - 78 + 91 AS col1
----
413

query I rowsort
SELECT + 37 * + 32 AS col2
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT - COUNT( * ) * + 54 * - 37 * 42 AS col0
----
83916

skipif mysql # not compatible
query I rowsort label-7672
SELECT - COUNT ( * ) * + 54 * - 37 * 42 AS col0
----
83916

query I rowsort
SELECT - 93 * - + 44 AS col0
----
4092

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT + - NULLIF ( + - 38, + 74 - 9 + COUNT( DISTINCT + 33 ) + + 90 * + ( 54 ) - - 93 )
----
38

skipif mysql # not compatible
query I rowsort label-7674
SELECT + - NULLIF ( + - 38, + 74 - 9 + COUNT ( DISTINCT + 33 ) + + 90 * + ( 54 ) - - 93 )
----
38

query I rowsort
SELECT + COALESCE ( 69, - 87 ) AS col0
----
69

query I rowsort
SELECT DISTINCT - 80 + - 4
----
-84

query I rowsort
SELECT - + 94 + - + 23
----
-117

query I rowsort
SELECT ALL + 89 + - 28 + - + 14 AS col1
----
47

query II rowsort
SELECT + 23, 50 AS col0
----
23
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7680
SELECT ALL + 9 + - - 32 * 39 * + NULLIF ( + 4, + 32 * CAST( + 65 AS SIGNED ) * 85 * 64 + 28 * - ( 66 ) )
----
5001

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL + 9 + - - 32 * 39 * + NULLIF ( + 4, + 32 * CAST ( + 65 AS INTEGER ) * 85 * 64 + 28 * - ( 66 ) )
----
5001

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT DISTINCT + 50 * - 80 - - 38 - + 88 + COUNT( * ) * - 84 * + - 18 * NULLIF ( 89, + 79 * COUNT( * ) ) col2
----
130518

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT + 50 * - 80 - - 38 - + 88 + COUNT ( * ) * - 84 * + - 18 * NULLIF ( 89, + 79 * COUNT ( * ) ) col2
----
130518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7682
SELECT - ( + - 59 ) + + - COUNT( * ) * CAST( - 32 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-7682
SELECT - ( + - 59 ) + + - COUNT ( * ) * CAST ( - 32 AS INTEGER )
----
91

query I rowsort
SELECT + 96 * + 77
----
7392

query I rowsort
SELECT - 35 + + 16
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT + + 12 DIV - 79 * 38
----
0

skipif mysql # not compatible
query I rowsort label-7685
SELECT + + 12 / - 79 * 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT - - NULLIF ( + 58, + + CASE - COUNT( ALL + + 50 ) WHEN + 73 - 5 THEN + COUNT( * ) END * 97 ) + - 34 + 92
----
116

skipif mysql # not compatible
query I rowsort label-7686
SELECT - - NULLIF ( + 58, + + CASE - COUNT ( ALL + + 50 ) WHEN + 73 - 5 THEN + COUNT ( * ) END * 97 ) + - 34 + 92
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT - - 68 * + COALESCE ( - 82, + - 3 + + - 58, + MIN( ALL + + 33 ) + - - SUM( + + 38 ) + + - MIN( + ( - 62 ) ) ) col0
----
-5576

skipif mysql # not compatible
query I rowsort label-7687
SELECT - - 68 * + COALESCE ( - 82, + - 3 + + - 58, + MIN ( ALL + + 33 ) + - - SUM ( + + 38 ) + + - MIN ( + ( - 62 ) ) ) col0
----
-5576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7688
SELECT ALL + CASE + 65 WHEN + 69 THEN COUNT( * ) WHEN - 28 THEN + 8 WHEN - AVG ( DISTINCT 41 ) - CAST( NULL AS SIGNED ) THEN - 51 + COUNT( * ) * + 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL + CASE + 65 WHEN + 69 THEN COUNT ( * ) WHEN - 28 THEN + 8 WHEN - AVG ( DISTINCT 41 ) - CAST ( NULL AS INTEGER ) THEN - 51 + COUNT ( * ) * + 10 END
----
NULL

query I rowsort
SELECT - + 51 + - 6
----
-57

query II rowsort
SELECT + - ( - 89 ) + + - 36, 50 AS col1
----
53
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT ALL COUNT( * ) - + + NULLIF ( - - 16, + 7 + COALESCE ( 93, - 42 * + NULLIF ( + COUNT( * ), COUNT( * ) * - 29 ) ) * MAX( DISTINCT 65 ) ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL COUNT ( * ) - + + NULLIF ( - - 16, + 7 + COALESCE ( 93, - 42 * + NULLIF ( + COUNT ( * ), COUNT ( * ) * - 29 ) ) * MAX ( DISTINCT 65 ) ) AS col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7692
SELECT ALL - + ( - - 69 ) DIV + 95 * - ( 73 )
----
0

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL - + ( - - 69 ) / + 95 * - ( 73 )
----
0

query I rowsort
SELECT + 63 - 75 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT - CASE - 80 WHEN - 25 THEN + 54 - + CASE NULLIF ( + SUM( - + CASE WHEN NOT - 25 IS NOT NULL THEN + + 29 + 69 END ), COUNT( 55 ) ) WHEN 93 / 5 THEN - 42 * - 69 + - 45 WHEN + 26 THEN 7 WHEN 22 THEN - 20 * + 1 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT - CASE - 80 WHEN - 25 THEN + 54 - + CASE NULLIF ( + SUM ( - + CASE WHEN NOT - 25 IS NOT NULL THEN + + 29 + 69 END ), COUNT ( 55 ) ) WHEN 93 / 5 THEN - 42 * - 69 + - 45 WHEN + 26 THEN 7 WHEN 22 THEN - 20 * + 1 ELSE NULL END END
----
NULL

query I rowsort
SELECT + 40 + - - 37 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ALL COUNT( * ) - - + MAX( DISTINCT + 84 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL COUNT ( * ) - - + MAX ( DISTINCT + 84 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT + 16 + COUNT( * ) * - - CASE - - ( + + 25 ) WHEN + + AVG ( DISTINCT - 94 ) + - 58 + - + 48 * - - 86 * - CASE - 1 WHEN + 64 + ( ( 12 ) ) / 1 THEN - 20 * 27 ELSE NULL END THEN NULL ELSE 35 END col1
----
51

skipif mysql # not compatible
query I rowsort label-7697
SELECT + 16 + COUNT ( * ) * - - CASE - - ( + + 25 ) WHEN + + AVG ( DISTINCT - 94 ) + - 58 + - + 48 * - - 86 * - CASE - 1 WHEN + 64 + ( ( 12 ) ) / 1 THEN - 20 * 27 ELSE NULL END THEN NULL ELSE 35 END col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7698
SELECT + CAST( + 82 AS SIGNED ) * + - 63 * - 26 / + - COUNT( * ) / + ( - ( - ( CAST( NULL AS SIGNED ) ) ) ), COUNT( * ) * - 48 * + 45 col0
----
NULL
-2160

skipif mysql # not compatible
query II rowsort label-7698
SELECT + CAST ( + 82 AS INTEGER ) * + - 63 * - 26 / + - COUNT ( * ) / + ( - ( - ( CAST ( NULL AS INTEGER ) ) ) ), COUNT ( * ) * - 48 * + 45 col0
----
NULL
-2160

query I rowsort
SELECT + 92 + + - 86
----
6

query I rowsort
SELECT + 81 * + - 37 * + 61 + - 39 + + - 82
----
-182938

query I rowsort
SELECT + 9 * 38
----
342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7702
SELECT DISTINCT COALESCE ( 73, - - CAST( NULL AS SIGNED ) * + - COUNT( * ), 21 + + 57 + + 3 ) * - 21 + CAST( NULL AS SIGNED ) * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT COALESCE ( 73, - - CAST ( NULL AS INTEGER ) * + - COUNT ( * ), 21 + + 57 + + 3 ) * - 21 + CAST ( NULL AS INTEGER ) * + 80
----
NULL

query II rowsort
SELECT ALL + 65 AS col0, 72 * + 33
----
65
2376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7704
SELECT 84 * - + CAST( NULL AS SIGNED ) * - + 52 + 48 + 73 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7704
SELECT 84 * - + CAST ( NULL AS INTEGER ) * - + 52 + 48 + 73 col0
----
NULL

query II rowsort
SELECT ALL + 35 AS col1, - 75
----
35
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT + 56 + + + COUNT( 47 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-7706
SELECT + 56 + + + COUNT ( 47 ) AS col2
----
57

query I rowsort
SELECT + 73 * + 68 AS col1
----
4964

query I rowsort
SELECT 85 * + 22 + + - CASE - + 52 WHEN 67 * - 23 + 51 - - 34 + + 91 THEN NULL WHEN - + 32 + + 68 + + 46 * + 70 THEN - 36 ELSE 1 END * + 64
----
1806

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7709
SELECT CASE + - 85 WHEN 1 THEN NULL WHEN - 5 / + COALESCE ( + 3, - + 75 ) + 91 THEN NULL WHEN COUNT( * ) + - 82 * 40 * 43 THEN 3 WHEN 27 + CAST( 85 AS DECIMAL ) THEN 46 * - NULLIF ( + MAX( 27 ) / + COUNT( * ), - 34 + + 36 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT CASE + - 85 WHEN 1 THEN NULL WHEN - 5 / + COALESCE ( + 3, - + 75 ) + 91 THEN NULL WHEN COUNT ( * ) + - 82 * 40 * 43 THEN 3 WHEN 27 + CAST ( 85 AS REAL ) THEN 46 * - NULLIF ( + MAX ( 27 ) / + COUNT ( * ), - 34 + + 36 ) END AS col2
----
NULL

query I rowsort
SELECT - 78 + + 97 - NULLIF ( 36, - 90 ) AS col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7711
SELECT ALL - + MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) * - 66 + + - 58 AS col2, + SUM( 65 ) + - CAST( COALESCE ( - COUNT( * ), 72 * - 24 - 33 * + 46 ) AS SIGNED ) * + 56 AS col1
----
NULL
121

skipif mysql # not compatible
query II rowsort label-7711
SELECT ALL - + MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * - 66 + + - 58 AS col2, + SUM ( 65 ) + - CAST ( COALESCE ( - COUNT ( * ), 72 * - 24 - 33 * + 46 ) AS INTEGER ) * + 56 AS col1
----
NULL
121

query II rowsort
SELECT ALL + + 0 col2, 93 col2
----
0
93

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

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

query II rowsort
SELECT ALL - 82 * + + 44 + ( - 74 ) AS col0, - 21 AS col1
----
-3682
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7715
SELECT 60 AS col0, + CAST( 35 AS SIGNED ) * + 49
----
60
1715

skipif mysql # not compatible
query II rowsort label-7715
SELECT 60 AS col0, + CAST ( 35 AS INTEGER ) * + 49
----
60
1715

onlyif mysql # aggregate syntax: 
query II rowsort label-7716
SELECT - 80 AS col0, COUNT( * ) AS col0
----
-80
1

skipif mysql # not compatible
query II rowsort label-7716
SELECT - 80 AS col0, COUNT ( * ) AS col0
----
-80
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7717
SELECT ALL CASE 56 WHEN + 14 * - MIN( + + 63 ) + 22 * + 9 + + - 3 THEN - - 70 + + NULLIF ( + CAST( NULL AS SIGNED ), + 17 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL CASE 56 WHEN + 14 * - MIN ( + + 63 ) + 22 * + 9 + + - 3 THEN - - 70 + + NULLIF ( + CAST ( NULL AS INTEGER ), + 17 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7718
SELECT - - 41 + + 51 DIV - 30 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7718
SELECT - - 41 + + 51 / - 30 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7719
SELECT - 93 * - CAST( 91 AS SIGNED ) + + COUNT( * ) AS col0
----
8464

skipif mysql # not compatible
query I rowsort label-7719
SELECT - 93 * - CAST ( 91 AS INTEGER ) + + COUNT ( * ) AS col0
----
8464

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT - + 66 + - - ( + COUNT( * ) ) - - + 22 / - CASE - + 62 WHEN + 8 THEN + 7 END - 39 + + + 40 - - 3 / 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7720
SELECT - + 66 + - - ( + COUNT ( * ) ) - - + 22 / - CASE - + 62 WHEN + 8 THEN + 7 END - 39 + + + 40 - - 3 / 38 col0
----
NULL

query II rowsort
SELECT DISTINCT - 24, - 75 col1
----
-24
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7722
SELECT DISTINCT - + COUNT( * ) DIV - - 69 * 41
----
0

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT - + COUNT ( * ) / - - 69 * 41
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7723
SELECT DISTINCT - 1 col1, - COUNT( - 28 ) + 45 + 3 + + 67
----
-1
114

skipif mysql # not compatible
query II rowsort label-7723
SELECT DISTINCT - 1 col1, - COUNT ( - 28 ) + 45 + 3 + + 67
----
-1
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7724
SELECT ALL - MIN( DISTINCT + 6 ) * + + 73 * + ( 60 ) + - COUNT( + CAST( NULL AS SIGNED ) )
----
-26280

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL - MIN ( DISTINCT + 6 ) * + + 73 * + ( 60 ) + - COUNT ( + CAST ( NULL AS INTEGER ) )
----
-26280

query I rowsort
SELECT - 86 * - 34 AS col1
----
2924

query I rowsort
SELECT + 92 * + NULLIF ( - 61, + 78 + - 82 )
----
-5612

onlyif mysql # DIV for integer division: 
query I rowsort label-7727
SELECT + 10 DIV - NULLIF ( - ( + - 46 ), + 31 )
----
0

skipif mysql # not compatible
query I rowsort label-7727
SELECT + 10 / - NULLIF ( - ( + - 46 ), + 31 )
----
0

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

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT CAST ( + 90 AS INTEGER ) AS col1
----
90

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7730
SELECT DISTINCT - NULLIF ( 21, 44 + + 53 ) DIV 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT - NULLIF ( 21, 44 + + 53 ) / 39 AS col0
----
0

query I rowsort
SELECT + 58 * - + 34 * + 82 + + - 71 AS col2
----
-161775

query I rowsort
SELECT DISTINCT 26 + + 13 AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7733
SELECT 34 + - 98 * - + COUNT( * ) DIV COUNT( * )
----
132

skipif mysql # not compatible
query I rowsort label-7733
SELECT 34 + - 98 * - + COUNT ( * ) / COUNT ( * )
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT DISTINCT - + 23 + - 16 * COUNT( * ) * - + 70 * + COALESCE ( - ( - 28 ), + - SUM( - + 43 ) ) AS col2
----
31337

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT - + 23 + - 16 * COUNT ( * ) * - + 70 * + COALESCE ( - ( - 28 ), + - SUM ( - + 43 ) ) AS col2
----
31337

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT ALL 11 + - + COUNT( - 20 ) * + 32
----
-21

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL 11 + - + COUNT ( - 20 ) * + 32
----
-21

query I rowsort
SELECT + 64 - ( 51 ) + - - 98 * ( + 74 ) + + 53 + + 12
----
7330

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7738
SELECT ALL 56 DIV - + COUNT( * ) + - - 23 * + 14 + + + 46 AS col1
----
312

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL 56 / - + COUNT ( * ) + - - 23 * + 14 + + + 46 AS col1
----
312

onlyif mysql # aggregate syntax: 
query II rowsort label-7739
SELECT + + MIN( + + NULLIF ( + - ( + 93 ), - 34 ) ) AS col0, - 1
----
-93
-1

skipif mysql # not compatible
query II rowsort label-7739
SELECT + + MIN ( + + NULLIF ( + - ( + 93 ), - 34 ) ) AS col0, - 1
----
-93
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT 87 + + COUNT( * ) + - - COUNT( * ) * - 95 + + - 9 * 63 AS col1
----
-574

skipif mysql # not compatible
query I rowsort label-7740
SELECT 87 + + COUNT ( * ) + - - COUNT ( * ) * - 95 + + - 9 * 63 AS col1
----
-574

onlyif mysql # DIV for integer division: 
query I rowsort label-7741
SELECT ALL 14 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL 14 / 70
----
0

query I rowsort
SELECT ALL - - ( - 49 ) * + 94
----
-4606

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ALL - 5 * - 57 * - CASE - 49 WHEN + 19 THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL - 5 * - 57 * - CASE - 49 WHEN + 19 THEN COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7747
SELECT + 33 + 36 - + 4 DIV + 42 * + 61, CAST( - NULLIF ( - 54, + + 21 ) AS SIGNED ) AS col2
----
69
54

skipif mysql # not compatible
query II rowsort label-7747
SELECT + 33 + 36 - + 4 / + 42 * + 61, CAST ( - NULLIF ( - 54, + + 21 ) AS INTEGER ) AS col2
----
69
54

onlyif mysql # aggregate syntax: 
query II rowsort label-7748
SELECT - 72 col2, NULLIF ( + 28, + COUNT( * ) / - 59 ) * + ( 25 ) * + + 13 * + 16 + 50 * - 65 - 79 AS col1
----
-72
142271

skipif mysql # not compatible
query II rowsort label-7748
SELECT - 72 col2, NULLIF ( + 28, + COUNT ( * ) / - 59 ) * + ( 25 ) * + + 13 * + 16 + 50 * - 65 - 79 AS col1
----
-72
142271

onlyif mysql # aggregate syntax: 
query II rowsort label-7749
SELECT ALL 74 AS col0, COUNT( 4 )
----
74
1

skipif mysql # not compatible
query II rowsort label-7749
SELECT ALL 74 AS col0, COUNT ( 4 )
----
74
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7750
SELECT CAST( - - MIN( 42 ) AS SIGNED ) + MIN( - 35 ) * 87 AS col1
----
-3003

skipif mysql # not compatible
query I rowsort label-7750
SELECT CAST ( - - MIN ( 42 ) AS INTEGER ) + MIN ( - 35 ) * 87 AS col1
----
-3003

query I rowsort
SELECT 94 * - - 16 AS col2
----
1504

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7752
SELECT DISTINCT 32 AS col2, 86 + - - CAST( 52 AS SIGNED ) + + 50 AS col1
----
32
188

skipif mysql # not compatible
query II rowsort label-7752
SELECT DISTINCT 32 AS col2, 86 + - - CAST ( 52 AS INTEGER ) + + 50 AS col1
----
32
188

query I rowsort
SELECT 10 + + 42 AS col1
----
52

query I rowsort
SELECT ALL - 30 * 58 AS col1
----
-1740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7755
SELECT 19 + + 59 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT 19 + + 59 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7756
SELECT ALL - 57 + - 64 * 33 + MAX( - + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL - 57 + - 64 * 33 + MAX ( - + CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7757
SELECT DISTINCT - COUNT( * ) * + 3 * - 6 AS col2, + 7 * 13
----
18
91

skipif mysql # not compatible
query II rowsort label-7757
SELECT DISTINCT - COUNT ( * ) * + 3 * - 6 AS col2, + 7 * 13
----
18
91

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

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

query II rowsort
SELECT ALL 97 AS col0, NULLIF ( + + COALESCE ( 95, - 15 + + + 71 ), - 18 )
----
97
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7760
SELECT 9 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7760
SELECT 9 / + 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT 22 * 75 + + + 43 + - + CASE + 51 WHEN + 51 - + COUNT( * ) + - 52 + + 67 / - 85 * - 19 THEN - 10 WHEN 93 * 85 + - 86 THEN + ( - 15 ) * 61 ELSE 24 END
----
1669

skipif mysql # not compatible
query I rowsort label-7761
SELECT 22 * 75 + + + 43 + - + CASE + 51 WHEN + 51 - + COUNT ( * ) + - 52 + + 67 / - 85 * - 19 THEN - 10 WHEN 93 * 85 + - 86 THEN + ( - 15 ) * 61 ELSE 24 END
----
1669

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7763
SELECT - COUNT( * ) DIV COUNT( * ) + + 20 + - 50 + + - 91 DIV 77 + COALESCE ( 65, + 84 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7763
SELECT - COUNT ( * ) / COUNT ( * ) + + 20 + - 50 + + - 91 / 77 + COALESCE ( 65, + 84 ) AS col1
----
33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT ALL - MIN( DISTINCT - - 36 ) + - - 76 - - - 37
----
3

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL - MIN ( DISTINCT - - 36 ) + - - 76 - - - 37
----
3

query II rowsort
SELECT + 19 col2, + 4
----
19
4

query I rowsort
SELECT DISTINCT - 43 + + - 59 AS col1
----
-102

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT + ( + MIN( 69 ) ) * + 40 * - + 71 AS col2
----
-195960

skipif mysql # not compatible
query I rowsort label-7769
SELECT + ( + MIN ( 69 ) ) * + 40 * - + 71 AS col2
----
-195960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7770
SELECT - 29 * - 59 * 57 + - - ( 23 ) + + 98 - - 77 * - + CAST( NULL AS SIGNED ) * 10 + + + 43 / + 67 * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7770
SELECT - 29 * - 59 * 57 + - - ( 23 ) + + 98 - - 77 * - + CAST ( NULL AS INTEGER ) * 10 + + + 43 / + 67 * 45
----
NULL

query II rowsort
SELECT DISTINCT - + 23 AS col1, 90
----
-23
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7772
SELECT DISTINCT - 5, COUNT( * ) + - - COUNT( ALL 53 ) AS col1
----
-5
2

skipif mysql # not compatible
query II rowsort label-7772
SELECT DISTINCT - 5, COUNT ( * ) + - - COUNT ( ALL 53 ) AS col1
----
-5
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7773
SELECT ALL 45 * - COUNT( * ) * + 96 * + 47 AS col0, COUNT( * ) * + 21 * - 47 DIV + + COUNT( * ) AS col0
----
-203040
-987

skipif mysql # not compatible
query II rowsort label-7773
SELECT ALL 45 * - COUNT ( * ) * + 96 * + 47 AS col0, COUNT ( * ) * + 21 * - 47 / + + COUNT ( * ) AS col0
----
-203040
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT - 15 * - 87 * - COALESCE ( - NULLIF ( - SUM( DISTINCT + - 65 ), + 59 ), - CASE - + 32 WHEN - 31 THEN - 21 ELSE + COUNT( * ) END * - - 93 * + 21 ) * - 7 AS col2
----
-593775

skipif mysql # not compatible
query I rowsort label-7774
SELECT - 15 * - 87 * - COALESCE ( - NULLIF ( - SUM ( DISTINCT + - 65 ), + 59 ), - CASE - + 32 WHEN - 31 THEN - 21 ELSE + COUNT ( * ) END * - - 93 * + 21 ) * - 7 AS col2
----
-593775

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

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT - - COUNT ( ALL - 75 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7776
SELECT + + 56, CASE - - 74 WHEN + - COUNT( * ) THEN + - 73 * - + CAST( + 58 AS SIGNED ) + - - 5 + MIN( ALL + 17 ) * - 51 END col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-7776
SELECT + + 56, CASE - - 74 WHEN + - COUNT ( * ) THEN + - 73 * - + CAST ( + 58 AS INTEGER ) + - - 5 + MIN ( ALL + 17 ) * - 51 END col0
----
56
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7778
SELECT ALL - 0 * + + 73 DIV - - 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL - 0 * + + 73 / - - 16 AS col1
----
0

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

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

query I rowsort
SELECT - 74 + - - 99
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT - + COALESCE ( 63, + COUNT( * ) ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-7781
SELECT - + COALESCE ( 63, + COUNT ( * ) ) AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7782
SELECT ALL 60 AS col1, + ( + CAST( - 18 AS SIGNED ) ) - ( SUM( 4 ) ) AS col2
----
60
-22

skipif mysql # not compatible
query II rowsort label-7782
SELECT ALL 60 AS col1, + ( + CAST ( - 18 AS INTEGER ) ) - ( SUM ( 4 ) ) AS col2
----
60
-22

query II rowsort
SELECT - - 71 AS col0, + 18 * + 81 AS col0
----
71
1458

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7784
SELECT 2 + + CAST( - 96 AS SIGNED ) AS col0, - 86 + + 83 AS col1
----
-94
-3

skipif mysql # not compatible
query II rowsort label-7784
SELECT 2 + + CAST ( - 96 AS INTEGER ) AS col0, - 86 + + 83 AS col1
----
-94
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7786
SELECT DISTINCT 28 + CASE - 3 WHEN - + COUNT( * ) THEN - + 96 + - 24 WHEN 82 THEN NULL ELSE - - NULLIF ( 2, - CAST( + 99 AS SIGNED ) ) END
----
30

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT 28 + CASE - 3 WHEN - + COUNT ( * ) THEN - + 96 + - 24 WHEN 82 THEN NULL ELSE - - NULLIF ( 2, - CAST ( + 99 AS INTEGER ) ) END
----
30

query I rowsort
SELECT 3 - + COALESCE ( - + 55, + - 55 * + + 88 + COALESCE ( - 34, - 27 ) + - - ( + 23 ) )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7788
SELECT DISTINCT COUNT( * ) DIV 75 AS col0, ( 71 ) * COALESCE ( - + 6, + 1 ) * 85
----
0
-36210

skipif mysql # not compatible
query II rowsort label-7788
SELECT DISTINCT COUNT ( * ) / 75 AS col0, ( 71 ) * COALESCE ( - + 6, + 1 ) * 85
----
0
-36210

onlyif mysql # DIV for integer division: 
query I rowsort label-7789
SELECT ALL 63 + - 29 + - - 70 DIV - + 82 col0
----
34

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL 63 + - 29 + - - 70 / - + 82 col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7790
SELECT CAST( NULL AS SIGNED ) / - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7790
SELECT CAST ( NULL AS INTEGER ) / - 17
----
NULL

query I rowsort
SELECT ALL 15 + - 63 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT + 21 * NULLIF ( 43, + - ( - - SUM( - 20 ) ) )
----
903

skipif mysql # not compatible
query I rowsort label-7792
SELECT + 21 * NULLIF ( 43, + - ( - - SUM ( - 20 ) ) )
----
903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7793
SELECT ALL CAST( NULL AS SIGNED ) + + 86 + - COUNT( * ) + 4 * - - CAST( - 52 AS SIGNED ) * 70 * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL CAST ( NULL AS INTEGER ) + + 86 + - COUNT ( * ) + 4 * - - CAST ( - 52 AS INTEGER ) * 70 * - 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7794
SELECT ALL + CAST( NULL AS SIGNED ) + + + 92 + + COALESCE ( - 82, + - ( + 9 ) * + - SUM( - 60 ) * - 48 * - 91 * + COUNT( 23 ) * + 95 + + + ( ( + COUNT( * ) ) ) + - CAST( NULL AS SIGNED ), 68 / - 36 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 92 + + COALESCE ( - 82, + - ( + 9 ) * + - SUM ( - 60 ) * - 48 * - 91 * + COUNT ( 23 ) * + 95 + + + ( ( + COUNT ( * ) ) ) + - CAST ( NULL AS INTEGER ), 68 / - 36 ) AS col1
----
NULL

query I rowsort
SELECT + 91 * + + 51 * + ( + 30 ) AS col0
----
139230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7796
SELECT ALL MIN( ALL - CAST( NULL AS SIGNED ) ) * + 23 + + 10, 19 AS col0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-7796
SELECT ALL MIN ( ALL - CAST ( NULL AS INTEGER ) ) * + 23 + + 10, 19 AS col0
----
NULL
19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT ALL + 99 * - CAST( - - 87 AS SIGNED )
----
-8613

skipif mysql # not compatible
query I rowsort label-7798
SELECT ALL + 99 * - CAST ( - - 87 AS INTEGER )
----
-8613

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT - MIN( - 21 ) * + 63
----
1323

skipif mysql # not compatible
query I rowsort label-7799
SELECT - MIN ( - 21 ) * + 63
----
1323

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT DISTINCT + 81 * CASE + 10 WHEN - 66 THEN + - CASE - 8 WHEN + 1 THEN - 68 END + + NULLIF ( + 40, - - COUNT( * ) ) ELSE NULL END * + ( - - COALESCE ( - - 51, COUNT( ALL 39 ) - - 42 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT + 81 * CASE + 10 WHEN - 66 THEN + - CASE - 8 WHEN + 1 THEN - 68 END + + NULLIF ( + 40, - - COUNT ( * ) ) ELSE NULL END * + ( - - COALESCE ( - - 51, COUNT ( ALL 39 ) - - 42 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7801
SELECT - ( + 88 ) DIV + 42 + + 9 - 44 * + NULLIF ( + + 40, - 57 * ( 66 ) ) + - MAX( DISTINCT - 76 ) + - 91 + 50 * 71 * + 8
----
26632

skipif mysql # not compatible
query I rowsort label-7801
SELECT - ( + 88 ) / + 42 + + 9 - 44 * + NULLIF ( + + 40, - 57 * ( 66 ) ) + - MAX ( DISTINCT - 76 ) + - 91 + 50 * 71 * + 8
----
26632

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT + NULLIF ( 66, - COUNT( * ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-7802
SELECT + NULLIF ( 66, - COUNT ( * ) ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7803
SELECT + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / 10 / - COUNT( * ) + - - 16 - + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7803
SELECT + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / 10 / - COUNT ( * ) + - - 16 - + 84 AS col1
----
NULL

query I rowsort
SELECT ALL + 79 * - - 7
----
553

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT DISTINCT + SUM( + - CASE 11 WHEN + - 27 * 66 THEN - 80 WHEN 0 THEN NULL ELSE NULL END ) * + 58 - - CASE + ( + COALESCE ( 48, COUNT( * ) * + ( + 71 ) ) ) WHEN 98 * + 90 THEN NULL ELSE 23 + 67 END * - AVG ( - 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT + SUM ( + - CASE 11 WHEN + - 27 * 66 THEN - 80 WHEN 0 THEN NULL ELSE NULL END ) * + 58 - - CASE + ( + COALESCE ( 48, COUNT ( * ) * + ( + 71 ) ) ) WHEN 98 * + 90 THEN NULL ELSE 23 + 67 END * - AVG ( - 51 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7806
SELECT DISTINCT + - 31 DIV + 2
----
-15

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT + - 31 / + 2
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7807
SELECT + - 54 * + CAST( NULL AS DECIMAL ) * + 10 + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT + - 54 * + CAST ( NULL AS REAL ) * + 10 + 80 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT DISTINCT + NULLIF ( - NULLIF ( - CASE COALESCE ( COALESCE ( + 21, 8 ), - - 28 * - COUNT( * ) + + 68 * + ( - 58 ) ) WHEN 60 THEN + 39 WHEN + 35 THEN COUNT( * ) * + 84 END, SUM( 10 ) * + 55 ), 46 + ( 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT + NULLIF ( - NULLIF ( - CASE COALESCE ( COALESCE ( + 21, 8 ), - - 28 * - COUNT ( * ) + + 68 * + ( - 58 ) ) WHEN 60 THEN + 39 WHEN + 35 THEN COUNT ( * ) * + 84 END, SUM ( 10 ) * + 55 ), 46 + ( 25 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT DISTINCT 75 DIV - 12 + + - 45
----
-51

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT 75 / - 12 + + - 45
----
-51

query I rowsort
SELECT - 79 + 95
----
16

query I rowsort
SELECT - 49 * 54
----
-2646

onlyif mysql # DIV for integer division: 
query I rowsort label-7812
SELECT DISTINCT - - 39 DIV - 73 + 59
----
59

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT - - 39 / - 73 + 59
----
59

query I rowsort
SELECT + 62 - + 8 AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7814
SELECT - COALESCE ( + + 8, + + 51 DIV + 12 DIV + COUNT( * ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-7814
SELECT - COALESCE ( + + 8, + + 51 / + 12 / + COUNT ( * ) ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-7815
SELECT DISTINCT + MIN( 92 ) AS col1, - 47 + + 93 * + - 39 * + 21 AS col2
----
92
-76214

skipif mysql # not compatible
query II rowsort label-7815
SELECT DISTINCT + MIN ( 92 ) AS col1, - 47 + + 93 * + - 39 * + 21 AS col2
----
92
-76214

query I rowsort
SELECT + + ( + 64 ) * + 36 AS col0
----
2304

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

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

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

query I rowsort
SELECT DISTINCT 97 * + 83 + 96
----
8147

query I rowsort
SELECT + 57 * - 79
----
-4503

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7821
SELECT ALL COUNT( * ) * 53 + - CAST( - 80 AS SIGNED ) * 68 col1
----
5493

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL COUNT ( * ) * 53 + - CAST ( - 80 AS INTEGER ) * 68 col1
----
5493

query I rowsort
SELECT ALL 45 + + 14
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT - CASE - + MIN( DISTINCT - 57 ) WHEN + + 68 THEN + + 96 WHEN + 23 THEN NULL ELSE - 8 + - - ( - COUNT( * ) ) END AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7823
SELECT - CASE - + MIN ( DISTINCT - 57 ) WHEN + + 68 THEN + + 96 WHEN + 23 THEN NULL ELSE - 8 + - - ( - COUNT ( * ) ) END AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7824
SELECT + COUNT( * ) * + CAST( + 16 AS SIGNED ) * 62 + - 21
----
971

skipif mysql # not compatible
query I rowsort label-7824
SELECT + COUNT ( * ) * + CAST ( + 16 AS INTEGER ) * 62 + - 21
----
971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7825
SELECT + 86 + + - MAX( + 25 ) - 91 * - 76, + 14 * + + CAST( NULL AS SIGNED ) AS col1
----
6977
NULL

skipif mysql # not compatible
query II rowsort label-7825
SELECT + 86 + + - MAX ( + 25 ) - 91 * - 76, + 14 * + + CAST ( NULL AS INTEGER ) AS col1
----
6977
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7827
SELECT + 67 + - - COUNT( * ) DIV COUNT( * ) * COUNT( * ) DIV COUNT( * ), - 0 AS col1
----
68
0

skipif mysql # not compatible
query II rowsort label-7827
SELECT + 67 + - - COUNT ( * ) / COUNT ( * ) * COUNT ( * ) / COUNT ( * ), - 0 AS col1
----
68
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7828
SELECT ALL MIN( + - 47 ) + 92 * + - COALESCE ( CASE - - 47 WHEN - 34 THEN - ( NULLIF ( - CAST( NULL AS SIGNED ), + 31 ) ) WHEN 59 THEN NULL END, + 5 ) * - + 44 * + - 7 + COUNT( * ) AS col0
----
-141726

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL MIN ( + - 47 ) + 92 * + - COALESCE ( CASE - - 47 WHEN - 34 THEN - ( NULLIF ( - CAST ( NULL AS INTEGER ), + 31 ) ) WHEN 59 THEN NULL END, + 5 ) * - + 44 * + - 7 + COUNT ( * ) AS col0
----
-141726

query I rowsort
SELECT ALL 38 * + + 54 AS col2
----
2052

query I rowsort
SELECT + 44 + - - ( + 94 ) AS col1
----
138

query I rowsort
SELECT ALL 49 + + - 24
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7832
SELECT DISTINCT NULLIF ( - 42, CAST( NULL AS SIGNED ) ) - CASE 17 WHEN + ( - 7 ) THEN + 88 WHEN - 32 + 17 + 87 THEN NULL WHEN 25 / - 16 + - COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT DISTINCT NULLIF ( - 42, CAST ( NULL AS INTEGER ) ) - CASE 17 WHEN + ( - 7 ) THEN + 88 WHEN - 32 + 17 + 87 THEN NULL WHEN 25 / - 16 + - COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 67 * + 9
----
603

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT - CASE - 30 WHEN COUNT( * ) + - 96 THEN - + ( + ( - 93 ) ) * - 59 + 75 + + ( - MIN( DISTINCT 37 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7834
SELECT - CASE - 30 WHEN COUNT ( * ) + - 96 THEN - + ( + ( - 93 ) ) * - 59 + 75 + + ( - MIN ( DISTINCT 37 ) ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7836
SELECT ALL ( - - CASE + - 83 WHEN + - 81 * + - 1 THEN NULL ELSE - - 29 * - COALESCE ( + 55, COUNT( * ) + - 7 DIV + 2 * 96 DIV 12 ) END ) * + + 19 + - 2 + 7 * ( 42 )
----
-30013

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL ( - - CASE + - 83 WHEN + - 81 * + - 1 THEN NULL ELSE - - 29 * - COALESCE ( + 55, COUNT ( * ) + - 7 / + 2 * 96 / 12 ) END ) * + + 19 + - 2 + 7 * ( 42 )
----
-30013

onlyif mysql # DIV for integer division: 
query I rowsort label-7837
SELECT DISTINCT 61 * 80 DIV - 24 AS col2
----
-203

skipif mysql # not compatible
query I rowsort label-7837
SELECT DISTINCT 61 * 80 / - 24 AS col2
----
-203

onlyif mysql # DIV for integer division: 
query I rowsort label-7838
SELECT + 25 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-7838
SELECT + 25 / - 84
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7839
SELECT DISTINCT 48, COALESCE ( + COUNT( * ), + - 66 ) * + - 57 AS col0
----
48
-57

skipif mysql # not compatible
query II rowsort label-7839
SELECT DISTINCT 48, COALESCE ( + COUNT ( * ), + - 66 ) * + - 57 AS col0
----
48
-57

query I rowsort
SELECT - + 83 * 68
----
-5644

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7842
SELECT COUNT( * ) * - - 68 * 23 + - 43 + + - 57 * + AVG ( DISTINCT + 74 ) + - 2 + - ( + SUM( ALL + - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7842
SELECT COUNT ( * ) * - - 68 * 23 + - 43 + + - 57 * + AVG ( DISTINCT + 74 ) + - 2 + - ( + SUM ( ALL + - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL + 50 * - - ( 41 ) + 60 + + + 22 - ( 11 ) * + COALESCE ( + - 93, - 43 )
----
3155

query I rowsort
SELECT + 6 * - 70 col1
----
-420

query I rowsort
SELECT DISTINCT + 11 * 6
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7846
SELECT DISTINCT + + CASE + - 9 WHEN + - ( + 94 ) THEN - 5 + - 6 - - AVG ( ALL - 87 ) WHEN + + CAST( - 89 AS DECIMAL ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT + + CASE + - 9 WHEN + - ( + 94 ) THEN - 5 + - 6 - - AVG ( ALL - 87 ) WHEN + + CAST ( - 89 AS REAL ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT - 33 + 97 * - 42 * + - COUNT( + 41 ) - + + 38
----
4003

skipif mysql # not compatible
query I rowsort label-7847
SELECT - 33 + 97 * - 42 * + - COUNT ( + 41 ) - + + 38
----
4003

onlyif mysql # DIV for integer division: 
query I rowsort label-7848
SELECT ALL - 67 DIV + 45
----
-1

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL - 67 / + 45
----
-1

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

query I rowsort
SELECT + 90 * + 81
----
7290

query I rowsort
SELECT ALL - 17 * - + 10 AS col0
----
170

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7852
SELECT + CAST( NULL AS DECIMAL ), - 13 * - 58 col1
----
NULL
754

skipif mysql # not compatible
query II rowsort label-7852
SELECT + CAST ( NULL AS REAL ), - 13 * - 58 col1
----
NULL
754

onlyif mysql # DIV for integer division: 
query I rowsort label-7853
SELECT ALL + 99 DIV + 16 + 2 DIV 1 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL + 99 / + 16 + 2 / 1 AS col1
----
8

query I rowsort
SELECT - 22 + - 31 + + + 0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT DISTINCT 57 * + COUNT( * ) + 75 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-7855
SELECT DISTINCT 57 * + COUNT ( * ) + 75 AS col1
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7856
SELECT DISTINCT + - COALESCE ( - COUNT( * ), CAST( NULL AS SIGNED ) ) * - 42 * + 65 + 25 * COUNT( * )
----
-2705

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT + - COALESCE ( - COUNT ( * ), CAST ( NULL AS INTEGER ) ) * - 42 * + 65 + 25 * COUNT ( * )
----
-2705

query I rowsort
SELECT ( + + 82 ) * - ( 90 ) AS col0
----
-7380

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT 71 * MIN( DISTINCT - + 13 ) - - 76
----
-847

skipif mysql # not compatible
query I rowsort label-7858
SELECT 71 * MIN ( DISTINCT - + 13 ) - - 76
----
-847

query I rowsort
SELECT 29 * + 67 col0
----
1943

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7860
SELECT DISTINCT + NULLIF ( + CASE + - 29 WHEN + + 13 / 22 THEN NULL ELSE - 15 END, COUNT( * ) ) + 95 * CAST( + 55 AS SIGNED ) col2
----
5210

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT + NULLIF ( + CASE + - 29 WHEN + + 13 / 22 THEN NULL ELSE - 15 END, COUNT ( * ) ) + 95 * CAST ( + 55 AS INTEGER ) col2
----
5210

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT COUNT( * ) + + + 26 - COUNT( * ) col2
----
26

skipif mysql # not compatible
query I rowsort label-7861
SELECT COUNT ( * ) + + + 26 - COUNT ( * ) col2
----
26

query I rowsort
SELECT ALL + 26 + + 77 * + 36 AS col0
----
2798

query I rowsort
SELECT ALL - ( + 4 ) + + - 85 AS col1
----
-89

query I rowsort
SELECT DISTINCT + 44 + + 48 col0
----
92

query I rowsort
SELECT 28 * + - 11 AS col0
----
-308

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7867
SELECT DISTINCT 51 AS col2, 58 DIV + 87 * + 37 + - - 9 * + COUNT( * )
----
51
9

skipif mysql # not compatible
query II rowsort label-7867
SELECT DISTINCT 51 AS col2, 58 / + 87 * + 37 + - - 9 * + COUNT ( * )
----
51
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7868
SELECT ALL - 99 * CAST( NULL AS SIGNED ) * - 39 / + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL - 99 * CAST ( NULL AS INTEGER ) * - 39 / + 73
----
NULL

query I rowsort
SELECT ALL 20 - + + 80 - - 69 * + ( - 38 ) AS col2
----
-2682

query II rowsort
SELECT + 33 col0, 10 * 3
----
33
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7871
SELECT + 30 / - + 31 - - 45 - - 22 - CAST( NULL AS SIGNED ) + + - 90 / - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7871
SELECT + 30 / - + 31 - - 45 - - 22 - CAST ( NULL AS INTEGER ) + + - 90 / - 13
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT + - CASE + 74 WHEN + - COALESCE ( 28, - 29 * + - CASE - AVG ( - NULLIF ( - 78, + ( - 35 ) ) ) WHEN - - 39 THEN SUM( ALL 3 ) END * - 79 + - 6 * 79 + + 59 * - CASE + 41 * - COUNT( * ) + COUNT( * ) * 69 WHEN - 52 THEN NULLIF ( 52, 24 + 54 * - 2 ) END, 69 ) THEN 50 * + 23 WHEN + 97 * 76 THEN NULL WHEN 47 * 44 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7873
SELECT + - CASE + 74 WHEN + - COALESCE ( 28, - 29 * + - CASE - AVG ( - NULLIF ( - 78, + ( - 35 ) ) ) WHEN - - 39 THEN SUM ( ALL 3 ) END * - 79 + - 6 * 79 + + 59 * - CASE + 41 * - COUNT ( * ) + COUNT ( * ) * 69 WHEN - 52 THEN NULLIF ( 52, 24 + 54 * - 2 ) END, 69 ) THEN 50 * + 23 WHEN + 97 * 76 THEN NULL WHEN 47 * 44 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 46 + - 52 * - 65
----
3426

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

query I rowsort
SELECT DISTINCT - 19 + + + 49 + 3
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7877
SELECT + COUNT( * ) * - - ( - COUNT( * ) ) + 46, - 62 AS col0
----
45
-62

skipif mysql # not compatible
query II rowsort label-7877
SELECT + COUNT ( * ) * - - ( - COUNT ( * ) ) + 46, - 62 AS col0
----
45
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7878
SELECT DISTINCT + ( CASE + + 3 WHEN COUNT( DISTINCT 6 ) THEN - - 79 WHEN - + 86 THEN NULL WHEN - COUNT( * ) / 43 THEN - COUNT( DISTINCT - ( 84 ) ) ELSE CAST( 57 AS SIGNED ) - + + 68 END ) + + + 96 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT + ( CASE + + 3 WHEN COUNT ( DISTINCT 6 ) THEN - - 79 WHEN - + 86 THEN NULL WHEN - COUNT ( * ) / 43 THEN - COUNT ( DISTINCT - ( 84 ) ) ELSE CAST ( 57 AS INTEGER ) - + + 68 END ) + + + 96 AS col1
----
85

query I rowsort
SELECT 17 * - 68 + + - 89 * 80
----
-8276

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

skipif mysql # not compatible
query I rowsort label-7880
SELECT + MAX ( - 11 )
----
-11

query I rowsort
SELECT + 73 * - 4 * - 88
----
25696

query I rowsort
SELECT 36 + + 6
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7883
SELECT DISTINCT 75 * + 12 AS col1, + CAST( + 85 AS SIGNED ) * - 77 + 82 * + 75 AS col0
----
900
-395

skipif mysql # not compatible
query II rowsort label-7883
SELECT DISTINCT 75 * + 12 AS col1, + CAST ( + 85 AS INTEGER ) * - 77 + 82 * + 75 AS col0
----
900
-395

query I rowsort
SELECT 38 + - 63 * 0 * - 13 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT ALL 92 * CASE - COUNT( * ) WHEN - ( - ( - 26 ) ) * + + 34 * - - ( 27 ) THEN - 31 * + COUNT( * ) + + + COUNT( * ) WHEN + 83 THEN NULL ELSE + + 79 * 35 * + + ( + SUM( 40 ) ) + 92 END AS col1
----
10183664

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL 92 * CASE - COUNT ( * ) WHEN - ( - ( - 26 ) ) * + + 34 * - - ( 27 ) THEN - 31 * + COUNT ( * ) + + + COUNT ( * ) WHEN + 83 THEN NULL ELSE + + 79 * 35 * + + ( + SUM ( 40 ) ) + 92 END AS col1
----
10183664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT ALL - CASE + + 22 WHEN + 84 THEN NULL ELSE - - 32 * 98 * 36 + + 28 + CASE + 16 WHEN + + 87 + 89 THEN - 79 WHEN + 68 THEN NULL ELSE 70 - - + CAST( - 84 AS SIGNED ) - - CAST( NULL AS SIGNED ) END + - 29 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL - CASE + + 22 WHEN + 84 THEN NULL ELSE - - 32 * 98 * 36 + + 28 + CASE + 16 WHEN + + 87 + 89 THEN - 79 WHEN + 68 THEN NULL ELSE 70 - - + CAST ( - 84 AS INTEGER ) - - CAST ( NULL AS INTEGER ) END + - 29 END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7888
SELECT DISTINCT - 58 - - 27 * + + CAST( MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT - 58 - - 27 * + + CAST ( MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7889
SELECT DISTINCT COUNT( + 29 ) * + COUNT( * ) DIV + 80 + + COUNT( * ) DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT COUNT ( + 29 ) * + COUNT ( * ) / + 80 + + COUNT ( * ) / - 69
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7890
SELECT ALL - 40 DIV - + 36
----
1

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL - 40 / - + 36
----
1

query I rowsort
SELECT 54 * - 41
----
-2214

query I rowsort
SELECT 60 - + 48 * 27
----
-1236

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT 34 + - - SUM( DISTINCT - + 31 )
----
3

skipif mysql # not compatible
query I rowsort label-7893
SELECT 34 + - - SUM ( DISTINCT - + 31 )
----
3

query I rowsort
SELECT 44 * - + 42 AS col1
----
-1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7895
SELECT 79 * + 11 * + CASE WHEN + CAST( NULL AS SIGNED ) IN ( - 6 ) THEN COUNT( * ) - + + 1 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT 79 * + 11 * + CASE WHEN + CAST ( NULL AS INTEGER ) IN ( - 6 ) THEN COUNT ( * ) - + + 1 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT 50 + - COUNT( * ) + - 90
----
-41

skipif mysql # not compatible
query I rowsort label-7896
SELECT 50 + - COUNT ( * ) + - 90
----
-41

query II rowsort
SELECT 53 * - - 46 AS col0, - 48 AS col2
----
2438
-48

query I rowsort
SELECT ALL - 68 * 96 * 27
----
-176256

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT 76 + + SUM( 70 ) - + 28
----
118

skipif mysql # not compatible
query I rowsort label-7899
SELECT 76 + + SUM ( 70 ) - + 28
----
118

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT ALL + COUNT( * ) + - - COUNT( - - 85 ) col1
----
2

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL + COUNT ( * ) + - - COUNT ( - - 85 ) col1
----
2

query I rowsort
SELECT - ( + NULLIF ( + 18, + + 29 ) )
----
-18

query I rowsort
SELECT 53 + - + 82 + - - 3 - 19
----
-45

query I rowsort
SELECT ( + + 61 ) * - 86 * - 72 - + 86
----
377626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7905
SELECT - CAST( NULL AS SIGNED ) + + - NULLIF ( 18, 12 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7905
SELECT - CAST ( NULL AS INTEGER ) + + - NULLIF ( 18, 12 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7906
SELECT ALL - - CASE - CASE - COUNT( ALL 89 ) WHEN - + 93 + - CAST( NULL AS SIGNED ) * - - 69 + + 2 + - + 61 * + ( 93 ) THEN - 38 * + COUNT( * ) / + 45 + - 46 ELSE NULL END WHEN ( + 91 ) THEN 85 + + 68 ELSE COUNT( * ) - 4 * + 88 END + ( - CAST( + 32 AS SIGNED ) )
----
-383

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL - - CASE - CASE - COUNT ( ALL 89 ) WHEN - + 93 + - CAST ( NULL AS INTEGER ) * - - 69 + + 2 + - + 61 * + ( 93 ) THEN - 38 * + COUNT ( * ) / + 45 + - 46 ELSE NULL END WHEN ( + 91 ) THEN 85 + + 68 ELSE COUNT ( * ) - 4 * + 88 END + ( - CAST ( + 32 AS INTEGER ) )
----
-383

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT 46 + SUM( DISTINCT + + 96 ) + 24 AS col2
----
166

skipif mysql # not compatible
query I rowsort label-7908
SELECT 46 + SUM ( DISTINCT + + 96 ) + 24 AS col2
----
166

query I rowsort
SELECT DISTINCT - + 7 col0
----
-7

query I rowsort
SELECT ALL + 34 * - + 51 + - 74 + - 51
----
-1859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7911
SELECT - CAST( - ( 0 ) AS SIGNED ) * + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7911
SELECT - CAST ( - ( 0 ) AS INTEGER ) * + 92 AS col2
----
0

query I rowsort
SELECT ALL - NULLIF ( + 91, - 32 ) col1
----
-91

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7914
SELECT ALL 87 * 73, - COUNT( * ) AS col2
----
6351
-1

skipif mysql # not compatible
query II rowsort label-7914
SELECT ALL 87 * 73, - COUNT ( * ) AS col2
----
6351
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT ALL + + COUNT( * ) * - + 27 + - MAX( 52 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL + + COUNT ( * ) * - + 27 + - MAX ( 52 ) AS col2
----
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7916
SELECT + 75 * - + CAST( NULL AS DECIMAL ) / + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT + 75 * - + CAST ( NULL AS REAL ) / + 66 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT COUNT( ALL - 86 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7918
SELECT COUNT ( ALL - 86 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT + 97 * + MAX( ALL 28 )
----
2716

skipif mysql # not compatible
query I rowsort label-7919
SELECT + 97 * + MAX ( ALL 28 )
----
2716

query I rowsort
SELECT + 9 * - 17 AS col1
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7921
SELECT - COUNT( * ) + + CAST( COUNT( * ) AS SIGNED ) + - 3 + 59
----
56

skipif mysql # not compatible
query I rowsort label-7921
SELECT - COUNT ( * ) + + CAST ( COUNT ( * ) AS INTEGER ) + - 3 + 59
----
56

query I rowsort
SELECT DISTINCT 20 * - 52
----
-1040

query I rowsort
SELECT - CASE + 88 WHEN 1 THEN + 45 END AS col0
----
NULL

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

query I rowsort
SELECT ALL + 37 * + 17 AS col0
----
629

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT ALL CASE + 72 WHEN + ( - + 85 ) + ( 46 ) THEN NULL ELSE 80 - - SUM( - 45 ) END
----
35

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL CASE + 72 WHEN + ( - + 85 ) + ( 46 ) THEN NULL ELSE 80 - - SUM ( - 45 ) END
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7927
SELECT - COALESCE ( - NULLIF ( + - 22, 68 ), 61 DIV + 10 ) DIV - 62 DIV 48 * + MIN( 91 )
----
0

skipif mysql # not compatible
query I rowsort label-7927
SELECT - COALESCE ( - NULLIF ( + - 22, 68 ), 61 / + 10 ) / - 62 / 48 * + MIN ( 91 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7928
SELECT - 28 AS col1, CAST( NULL AS SIGNED )
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-7928
SELECT - 28 AS col1, CAST ( NULL AS INTEGER )
----
-28
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7929
SELECT ALL - - SUM( - 92 ) + + 99, 3 + COUNT( * ) + - + 97 - CAST( NULL AS SIGNED ) * 89 col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-7929
SELECT ALL - - SUM ( - 92 ) + + 99, 3 + COUNT ( * ) + - + 97 - CAST ( NULL AS INTEGER ) * 89 col1
----
7
NULL

query I rowsort
SELECT DISTINCT + + 5 + 21 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT + CASE - - ( - 25 ) WHEN - + COUNT( * ) THEN 23 WHEN 89 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT + CASE - - ( - 25 ) WHEN - + COUNT ( * ) THEN 23 WHEN 89 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7932
SELECT + 30 DIV + MIN( DISTINCT + 44 ) * 5 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7932
SELECT + 30 / + MIN ( DISTINCT + 44 ) * 5 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT - MIN( 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7933
SELECT - MIN ( 12 ) AS col1
----
-12

query I rowsort
SELECT - - 99 - + 27 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL + 30 + - + 77 + + + 22 * - + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL + 30 + - + 77 + + + 22 * - + COUNT ( * )
----
-69

query I rowsort
SELECT DISTINCT - - 17 + 76 + 16 AS col0
----
109

query I rowsort
SELECT ALL - 39 * - 53 * - + 85
----
-175695

onlyif mysql # aggregate syntax: 
query II rowsort label-7938
SELECT ALL COUNT( * ) AS col0, ( + + MAX( + - 12 ) ) AS col1
----
1
-12

skipif mysql # not compatible
query II rowsort label-7938
SELECT ALL COUNT ( * ) AS col0, ( + + MAX ( + - 12 ) ) AS col1
----
1
-12

query II rowsort
SELECT - 52, + 59 + + ( + 1 ) AS col2
----
-52
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7940
SELECT - 46 + + 63 DIV - + 60 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-7940
SELECT - 46 + + 63 / - + 60 AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7941
SELECT 68, CAST( + COUNT( * ) AS SIGNED ) col1
----
68
1

skipif mysql # not compatible
query II rowsort label-7941
SELECT 68, CAST ( + COUNT ( * ) AS INTEGER ) col1
----
68
1

query II rowsort
SELECT DISTINCT + 37, 91 + - 54 AS col2
----
37
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7943
SELECT - 51 + - - ( + 18 ) * + + COUNT( * ) + ( - 67 ) - + - ( - NULLIF ( + CASE - ( - - 3 ) WHEN + + 87 THEN + CAST( NULL AS SIGNED ) + 6 * - 77 * + 4 END, 57 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7943
SELECT - 51 + - - ( + 18 ) * + + COUNT ( * ) + ( - 67 ) - + - ( - NULLIF ( + CASE - ( - - 3 ) WHEN + + 87 THEN + CAST ( NULL AS INTEGER ) + 6 * - 77 * + 4 END, 57 ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT DISTINCT + CASE - 40 WHEN + 29 * CASE + 2 WHEN - 91 - + - 71 + COUNT( * ) / MIN( 62 ) + + 3 THEN NULL WHEN + 36 THEN NULL ELSE + 32 END THEN NULL ELSE CASE - - ( - - 65 ) WHEN COALESCE ( - 97, 3 ) * - COUNT( * ) THEN - 52 WHEN 50 THEN NULL ELSE NULL END * COALESCE ( + ( - 27 ), + COALESCE ( 64, 81 + 22 ) * + 97, + ( - 55 ) * + 43 + - 80 ) + 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT + CASE - 40 WHEN + 29 * CASE + 2 WHEN - 91 - + - 71 + COUNT ( * ) / MIN ( 62 ) + + 3 THEN NULL WHEN + 36 THEN NULL ELSE + 32 END THEN NULL ELSE CASE - - ( - - 65 ) WHEN COALESCE ( - 97, 3 ) * - COUNT ( * ) THEN - 52 WHEN 50 THEN NULL ELSE NULL END * COALESCE ( + ( - 27 ), + COALESCE ( 64, 81 + 22 ) * + 97, + ( - 55 ) * + 43 + - 80 ) + 9 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7945
SELECT - 73 * + MAX( DISTINCT - + 60 ) + - + 33 AS col2, - 52 AS col1
----
4347
-52

skipif mysql # not compatible
query II rowsort label-7945
SELECT - 73 * + MAX ( DISTINCT - + 60 ) + - + 33 AS col2, - 52 AS col1
----
4347
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7946
SELECT ALL 39 * + 89 * - CAST( + 0 AS SIGNED ) * + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL 39 * + 89 * - CAST ( + 0 AS INTEGER ) * + 75 AS col2
----
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7948
SELECT ALL + CAST( NULL AS DECIMAL ) * 93, - 94 AS col1
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-7948
SELECT ALL + CAST ( NULL AS REAL ) * 93, - 94 AS col1
----
NULL
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7949
SELECT + CAST( NULL AS SIGNED ) * + 46 / 82 + - + 67 + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT + CAST ( NULL AS INTEGER ) * + 46 / 82 + - + 67 + 41
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7950
SELECT - COUNT( * ) * + CAST( + 54 AS SIGNED ) / - - CASE MAX( ALL - - 0 ) WHEN 5 THEN + + 67 WHEN COALESCE ( - 14, + 60 * COALESCE ( + 16, COALESCE ( CAST( - NULLIF ( NULLIF ( + CAST( NULL AS SIGNED ), - 94 - COUNT( * ) * + 77 ), 48 ) AS SIGNED ), + MAX( ALL 88 ) / COUNT( * ) + 53 ), - MAX( DISTINCT 29 ) ) * AVG ( DISTINCT 27 ), 0 ) + 56 THEN 91 * COUNT( * ) + + 9 * - 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7950
SELECT - COUNT ( * ) * + CAST ( + 54 AS INTEGER ) / - - CASE MAX ( ALL - - 0 ) WHEN 5 THEN + + 67 WHEN COALESCE ( - 14, + 60 * COALESCE ( + 16, COALESCE ( CAST ( - NULLIF ( NULLIF ( + CAST ( NULL AS INTEGER ), - 94 - COUNT ( * ) * + 77 ), 48 ) AS INTEGER ), + MAX ( ALL 88 ) / COUNT ( * ) + 53 ), - MAX ( DISTINCT 29 ) ) * AVG ( DISTINCT 27 ), 0 ) + 56 THEN 91 * COUNT ( * ) + + 9 * - 49 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 79 * - 32
----
-2528

query I rowsort
SELECT ALL 97 * + + 22
----
2134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7953
SELECT + CASE 16 WHEN + COUNT( * ) / + NULLIF ( COUNT( * ), 55 + + 33 ) THEN - - 29 * + 82 - - - AVG ( ALL 15 ) + + 53 + + - 82 * - + NULLIF ( - 54, - - CAST( - 90 AS SIGNED ) ) * + - 33 WHEN - - 34 + - 63 * - 26 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7953
SELECT + CASE 16 WHEN + COUNT ( * ) / + NULLIF ( COUNT ( * ), 55 + + 33 ) THEN - - 29 * + 82 - - - AVG ( ALL 15 ) + + 53 + + - 82 * - + NULLIF ( - 54, - - CAST ( - 90 AS INTEGER ) ) * + - 33 WHEN - - 34 + - 63 * - 26 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7954
SELECT CASE 70 WHEN 86 + 55 THEN NULL WHEN + + 71 THEN + + 3 + - 71 ELSE 58 + - 91 + + + CAST( + - 26 AS SIGNED ) END AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-7954
SELECT CASE 70 WHEN 86 + 55 THEN NULL WHEN + + 71 THEN + + 3 + - 71 ELSE 58 + - 91 + + + CAST ( + - 26 AS INTEGER ) END AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT ALL 22 * + COUNT( * ) + - 51 col0
----
-29

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL 22 * + COUNT ( * ) + - 51 col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7956
SELECT - CAST( + COALESCE ( + COUNT( DISTINCT - + 57 ), 79, - 39, 23 * - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7956
SELECT - CAST ( + COALESCE ( + COUNT ( DISTINCT - + 57 ), 79, - 39, 23 * - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT + - ( + 42 ) - 20 AS col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7958
SELECT + ( - CAST( NULL AS SIGNED ) ) + MAX( 86 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT + ( - CAST ( NULL AS INTEGER ) ) + MAX ( 86 ) col0
----
NULL

query I rowsort
SELECT + + 28 + + - 25 AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7960
SELECT DISTINCT 6 DIV COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT 6 / COUNT ( * ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7961
SELECT ALL + ( - 24 ) + CAST( - 31 AS SIGNED ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL + ( - 24 ) + CAST ( - 31 AS INTEGER ) AS col1
----
-55

query I rowsort
SELECT + - 54 + + 67
----
13

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

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

query I rowsort
SELECT ALL + - 27 + + 94 + + 69 AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT - 57 * + MIN( + 22 )
----
-1254

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT - 57 * + MIN ( + 22 )
----
-1254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7966
SELECT 54 * - + 67 DIV + COUNT( * )
----
-3618

skipif mysql # not compatible
query I rowsort label-7966
SELECT 54 * - + 67 / + COUNT ( * )
----
-3618

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT DISTINCT + 65 - - + COUNT( * ) * 56 + - 79 * + COUNT( * ) * - 12 * - 6
----
-5567

skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT + 65 - - + COUNT ( * ) * 56 + - 79 * + COUNT ( * ) * - 12 * - 6
----
-5567

query I rowsort
SELECT ALL NULLIF ( - 6, + 85 )
----
-6

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

query II rowsort
SELECT ( 63 ), 35 AS col1
----
63
35

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT + CAST( NULL AS SIGNED ) + - + 5 * + 99 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7972
SELECT + CAST ( NULL AS INTEGER ) + - + 5 * + 99 col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT ALL + ( - 65 ) * - SUM( 51 )
----
3315

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL + ( - 65 ) * - SUM ( 51 )
----
3315

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

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

query I rowsort
SELECT DISTINCT + 54 * + + 43
----
2322

query I rowsort
SELECT ALL + 81 * + 61
----
4941

query I rowsort
SELECT 25 * - 88 AS col2
----
-2200

query I rowsort
SELECT DISTINCT + 54 * 8
----
432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7981
SELECT 37 * - - NULLIF ( 70, MAX( ALL + - 31 ) ) * + CASE - - MIN( ALL + + 23 ) WHEN COUNT( * ) THEN - 52 WHEN + + COUNT( + 46 ) THEN - + COUNT( + 17 ) * + - 56 - CASE + CAST( + ( - 62 ) AS SIGNED ) WHEN 17 THEN NULL ELSE 55 / 44 END * NULLIF ( - 78 + + ( 21 ), + COUNT( * ) ) - COUNT( * ) END + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT 37 * - - NULLIF ( 70, MAX ( ALL + - 31 ) ) * + CASE - - MIN ( ALL + + 23 ) WHEN COUNT ( * ) THEN - 52 WHEN + + COUNT ( + 46 ) THEN - + COUNT ( + 17 ) * + - 56 - CASE + CAST ( + ( - 62 ) AS INTEGER ) WHEN 17 THEN NULL ELSE 55 / 44 END * NULLIF ( - 78 + + ( 21 ), + COUNT ( * ) ) - COUNT ( * ) END + 22
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7982
SELECT 44 DIV - + 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7982
SELECT 44 / - + 78 AS col0
----
0

query I rowsort
SELECT ALL + 36 + - 50 AS col1
----
-14

query I rowsort
SELECT DISTINCT + 64 * COALESCE ( 50, 59 + + 69, + 77 )
----
3200

query I rowsort
SELECT 60 + - NULLIF ( + 69, + 94 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7986
SELECT + COUNT( * ) * - + 60 + + 10 AS col0, 25 AS col2
----
-50
25

skipif mysql # not compatible
query II rowsort label-7986
SELECT + COUNT ( * ) * - + 60 + + 10 AS col0, 25 AS col2
----
-50
25

query I rowsort
SELECT ALL + 37 + + - 53 + + + 13 + 80
----
77

query I rowsort
SELECT ALL 43 + 56 + + 77 col1
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-7989
SELECT 59 DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-7989
SELECT 59 / - 40
----
-1

query I rowsort
SELECT DISTINCT - 1 + 65 AS col0
----
64

query I rowsort
SELECT DISTINCT - 92 + + ( + 57 ) AS col2
----
-35

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7993
SELECT CAST( - 35 AS SIGNED ) + 73 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7993
SELECT CAST ( - 35 AS INTEGER ) + 73 AS col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7994
SELECT 39 DIV + ( + 38 ) + 19
----
20

skipif mysql # not compatible
query I rowsort label-7994
SELECT 39 / + ( + 38 ) + 19
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT - COALESCE ( - 98, - 5 * - 81 ) * - NULLIF ( + 43, - + ( 72 ) * COUNT( * ) )
----
-4214

skipif mysql # not compatible
query I rowsort label-7995
SELECT - COALESCE ( - 98, - 5 * - 81 ) * - NULLIF ( + 43, - + ( 72 ) * COUNT ( * ) )
----
-4214

query I rowsort
SELECT ALL + 22 - + + 29 AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7997
SELECT CAST( NULL AS SIGNED ) * - - ( - 88 ) + - - NULLIF ( 4, - 24 ) + 79 * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT CAST ( NULL AS INTEGER ) * - - ( - 88 ) + - - NULLIF ( 4, - 24 ) + 79 * + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT ALL COUNT( ALL - 18 )
----
1

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL COUNT ( ALL - 18 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT 87 * MAX( 98 ) * + ( + COUNT( * ) )
----
8526

skipif mysql # not compatible
query I rowsort label-7999
SELECT 87 * MAX ( 98 ) * + ( + COUNT ( * ) )
----
8526

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT CASE + 90 WHEN NULLIF ( + - 89, - 60 ) THEN - + MIN( - 46 ) * - - 99 WHEN - 11 * - 27 * - + 58 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT CASE + 90 WHEN NULLIF ( + - 89, - 60 ) THEN - + MIN ( - 46 ) * - - 99 WHEN - 11 * - 27 * - + 58 THEN NULL END
----
NULL

query I rowsort
SELECT - - NULLIF ( - 46, + 15 )
----
-46

query I rowsort
SELECT - 50 - + + 18
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8003
SELECT 79 - 75 + - CAST( 41 AS SIGNED ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-8003
SELECT 79 - 75 + - CAST ( 41 AS INTEGER ) AS col1
----
-37

query I rowsort
SELECT DISTINCT + 84 * + 16
----
1344

query I rowsort
SELECT ALL 10 * - 79 AS col1
----
-790

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

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

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

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

query I rowsort
SELECT 63 - - - 0 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT ( COUNT( * ) ) * 99 * - + 49
----
-4851

skipif mysql # not compatible
query I rowsort label-8009
SELECT ( COUNT ( * ) ) * 99 * - + 49
----
-4851

onlyif mysql # DIV for integer division: 
query I rowsort label-8010
SELECT 86 DIV - + 99 * 7 * + 13 + 37
----
37

skipif mysql # not compatible
query I rowsort label-8010
SELECT 86 / - + 99 * 7 * + 13 + 37
----
37

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8012
SELECT 79 DIV - - 24 AS col2, + 34
----
3
34

skipif mysql # not compatible
query II rowsort label-8012
SELECT 79 / - - 24 AS col2, + 34
----
3
34

query I rowsort
SELECT DISTINCT 34 * + 55 + - 10 AS col2
----
1860

query I rowsort
SELECT ALL 2 * 98 + + 22 col2
----
218

onlyif mysql # DIV for integer division: 
query I rowsort label-8015
SELECT + 15 DIV - 6 + - 48 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-8015
SELECT + 15 / - 6 + - 48 AS col2
----
-50

query II rowsort
SELECT ALL - 89 AS col1, 81 col2
----
-89
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT DISTINCT - 56 * + COUNT( * ) + - 57
----
-113

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT - 56 * + COUNT ( * ) + - 57
----
-113

query II rowsort
SELECT 63 + 59 + - + 85 * - 94 AS col0, 76 * + + 20
----
8112
1520

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

skipif mysql # not compatible
query II rowsort label-8019
SELECT COUNT ( * ), ( 60 ) AS col1
----
1
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL 39 * - 12 + - 47 + 91 * - + 38 * + COUNT( * ) - - 36 * + + COUNT( * ) AS col1
----
-3937

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL 39 * - 12 + - 47 + 91 * - + 38 * + COUNT ( * ) - - 36 * + + COUNT ( * ) AS col1
----
-3937

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8021
SELECT COUNT( * ) AS col2, 83 * - 27 DIV + 27
----
1
-83

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8022
SELECT DISTINCT + 5 + 74 DIV 98 * 17 col2
----
5

skipif mysql # not compatible
query I rowsort label-8022
SELECT DISTINCT + 5 + 74 / 98 * 17 col2
----
5

query I rowsort
SELECT DISTINCT - 33 * 40
----
-1320

onlyif mysql # aggregate syntax: 
query II rowsort label-8024
SELECT + MIN( - + 34 ) AS col0, - 56 + - CASE + 27 WHEN 44 THEN NULL WHEN - ( + 92 ) * - - 13 - + COUNT( DISTINCT 56 ) + + 54 THEN 4 ELSE NULL END
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-8024
SELECT + MIN ( - + 34 ) AS col0, - 56 + - CASE + 27 WHEN 44 THEN NULL WHEN - ( + 92 ) * - - 13 - + COUNT ( DISTINCT 56 ) + + 54 THEN 4 ELSE NULL END
----
-34
NULL

query I rowsort
SELECT 62 * + + 10
----
620

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT ALL - COUNT( * ) * + 8 * + + COUNT( * ) * 72 * - 81
----
46656

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL - COUNT ( * ) * + 8 * + + COUNT ( * ) * 72 * - 81
----
46656

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

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT - 6 + COUNT ( * ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8029
SELECT + 62 AS col0, SUM( DISTINCT + 19 ) AS col1
----
62
19

skipif mysql # not compatible
query II rowsort label-8029
SELECT + 62 AS col0, SUM ( DISTINCT + 19 ) AS col1
----
62
19

onlyif mysql # DIV for integer division: 
query II rowsort label-8030
SELECT ALL - COALESCE ( - + 54, - 59 DIV + 13 ) AS col0, - 56 col2
----
54
-56

skipif mysql # not compatible
query II rowsort label-8030
SELECT ALL - COALESCE ( - + 54, - 59 / + 13 ) AS col0, - 56 col2
----
54
-56

query I rowsort
SELECT - 10 * - 49 AS col1
----
490

query I rowsort
SELECT ALL - + 69 * + 19
----
-1311

query II rowsort
SELECT ALL + 56 AS col0, + 28 AS col2
----
56
28

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

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

query I rowsort
SELECT ALL - + 94 - - 72 * + 2
----
50

query I rowsort
SELECT - - 62 * - 24 AS col0
----
-1488

query I rowsort
SELECT - - 51 + - 63 AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8038
SELECT DISTINCT - - 43 DIV - 95 col1
----
0

skipif mysql # not compatible
query I rowsort label-8038
SELECT DISTINCT - - 43 / - 95 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8039
SELECT + - 13 DIV 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8039
SELECT + - 13 / 34 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT + COUNT( DISTINCT + 15 ) + + 57
----
58

skipif mysql # not compatible
query I rowsort label-8041
SELECT + COUNT ( DISTINCT + 15 ) + + 57
----
58

query I rowsort
SELECT - 35 + 53 - 68 + + 82 AS col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8043
SELECT - 39 DIV - - 88 * - 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8043
SELECT - 39 / - - 88 * - 49 AS col0
----
0

query I rowsort
SELECT ALL - + 1 * - 11 * 25 AS col1
----
275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8045
SELECT ALL - COUNT( * ) DIV - - 80 AS col0, CAST( + + 55 AS SIGNED ) col0
----
0
55

skipif mysql # not compatible
query II rowsort label-8045
SELECT ALL - COUNT ( * ) / - - 80 AS col0, CAST ( + + 55 AS INTEGER ) col0
----
0
55

query II rowsort
SELECT ALL 16 col0, 29 + 77 AS col2
----
16
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT + - ( + 93 ) + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-8047
SELECT + - ( + 93 ) + COUNT ( * )
----
-92

query I rowsort
SELECT ALL 86 + - 72 * + - 57 AS col2
----
4190

query I rowsort
SELECT - 92 * 67
----
-6164

query I rowsort
SELECT + 98 + - - 92 - - 80
----
270

query I rowsort
SELECT DISTINCT 21 + - 19 - + + 56
----
-54

query I rowsort
SELECT ALL 80 + - 56 AS col0
----
24

query I rowsort
SELECT + 45 * - NULLIF ( - 27, - + 60 )
----
1215

query II rowsort
SELECT + 51 + - - 8, 30 AS col0
----
59
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8055
SELECT ALL 74 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL 74 * CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + CASE + 31 WHEN 74 THEN + ( - - 59 ) + - 95 * - 43 END col0, - 97 + - 40 col1
----
NULL
-137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8057
SELECT + 15 * + COUNT( * ) DIV - - COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8057
SELECT + 15 * + COUNT ( * ) / - - COUNT ( * ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT ALL 67 * - 15 + - - MAX( - 21 ) + - - 30
----
-996

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL 67 * - 15 + - - MAX ( - 21 ) + - - 30
----
-996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8059
SELECT + ( 79 ), 77 + + + MAX( DISTINCT CAST( - 11 AS SIGNED ) ) AS col1
----
79
66

skipif mysql # not compatible
query II rowsort label-8059
SELECT + ( 79 ), 77 + + + MAX ( DISTINCT CAST ( - 11 AS INTEGER ) ) AS col1
----
79
66

query I rowsort
SELECT - 41 * - + 93 + + 42 + - 3 * + - 36 + 51 * - ( 62 ) - - 42 AS col1
----
843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8061
SELECT DISTINCT 53 * + - 52 / + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT 53 * + - 52 / + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8062
SELECT CASE - + 97 WHEN CAST( + COUNT( * ) AS DECIMAL ) * 72 + - + COUNT( + - 8 ) * + ( - 80 ) - + 72 THEN - ( 82 ) + - ( COUNT( * ) ) WHEN + CASE + 54 WHEN - 86 THEN + + 46 + - ( - + 24 ) + + 65 END * + 26 * COUNT( * ) - COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8062
SELECT CASE - + 97 WHEN CAST ( + COUNT ( * ) AS REAL ) * 72 + - + COUNT ( + - 8 ) * + ( - 80 ) - + 72 THEN - ( 82 ) + - ( COUNT ( * ) ) WHEN + CASE + 54 WHEN - 86 THEN + + 46 + - ( - + 24 ) + + 65 END * + 26 * COUNT ( * ) - COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL - 31 * - 20 - + 74 + + SUM( - 4 ) col0
----
542

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL - 31 * - 20 - + 74 + + SUM ( - 4 ) col0
----
542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8064
SELECT + NULLIF ( ( SUM( + 12 ) ), - COALESCE ( 90, COUNT( * ), - 23 + + 97 * - 36 ) ) * - CAST( + + 2 AS SIGNED ) * 68 AS col1
----
-1632

skipif mysql # not compatible
query I rowsort label-8064
SELECT + NULLIF ( ( SUM ( + 12 ) ), - COALESCE ( 90, COUNT ( * ), - 23 + + 97 * - 36 ) ) * - CAST ( + + 2 AS INTEGER ) * 68 AS col1
----
-1632

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT + ( 64 ) + - - 25 + + COUNT( * ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-8066
SELECT + ( 64 ) + - - 25 + + COUNT ( * ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT DISTINCT + + 35 * + ( - 43 ) - + + COUNT( * ) AS col2
----
-1506

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT + + 35 * + ( - 43 ) - + + COUNT ( * ) AS col2
----
-1506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8068
SELECT + CAST( - 83 AS SIGNED ) AS col2, + CASE - CASE COUNT( * ) WHEN + 77 THEN - 46 END WHEN - + 52 + 79 + + 61 * 18 / - 37 * 72 + 4 * ( - - 1 ) THEN + - 30 + + 26 END
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-8068
SELECT + CAST ( - 83 AS INTEGER ) AS col2, + CASE - CASE COUNT ( * ) WHEN + 77 THEN - 46 END WHEN - + 52 + 79 + + 61 * 18 / - 37 * 72 + 4 * ( - - 1 ) THEN + - 30 + + 26 END
----
-83
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8069
SELECT 22 * - + COUNT( * ) DIV - ( + + 90 ) + + 71 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8069
SELECT 22 * - + COUNT ( * ) / - ( + + 90 ) + + 71 AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT - - 16 * + - CAST( + 23 AS SIGNED ) AS col0
----
-368

skipif mysql # not compatible
query I rowsort label-8070
SELECT - - 16 * + - CAST ( + 23 AS INTEGER ) AS col0
----
-368

query I rowsort
SELECT ALL - 11 * 57 * + 24
----
-15048

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

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

query II rowsort
SELECT - - ( - 87 ) AS col1, - 67 * + + ( CASE + 11 WHEN + ( + 7 ) THEN 87 END )
----
-87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT - + MIN( ALL 90 ) * - - 56 col0
----
-5040

skipif mysql # not compatible
query I rowsort label-8074
SELECT - + MIN ( ALL 90 ) * - - 56 col0
----
-5040

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT ALL + + 74 + + NULLIF ( - MIN( 37 ), 55 * 96 )
----
37

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL + + 74 + + NULLIF ( - MIN ( 37 ), 55 * 96 )
----
37

query I rowsort
SELECT - 12 + + 63
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT - 82 * 11 + + - 33 * - ( + COALESCE ( MIN( ALL - 37 ), + 3, - ( 70 ) * - 97 ) )
----
-2123

skipif mysql # not compatible
query I rowsort label-8077
SELECT - 82 * 11 + + - 33 * - ( + COALESCE ( MIN ( ALL - 37 ), + 3, - ( 70 ) * - 97 ) )
----
-2123

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT DISTINCT + 4 + - CASE 5 WHEN + + COUNT( * ) THEN - 43 ELSE NULL END * - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT + 4 + - CASE 5 WHEN + + COUNT ( * ) THEN - 43 ELSE NULL END * - 9
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8079
SELECT ALL - 50 + + COUNT( * ) * CASE + 73 WHEN + 28 THEN NULL WHEN - 70 + + 58 THEN - - 96 ELSE + + COUNT( * ) + + + 19 DIV - 99 * + + COUNT( * ) END
----
-49

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL - 50 + + COUNT ( * ) * CASE + 73 WHEN + 28 THEN NULL WHEN - 70 + + 58 THEN - - 96 ELSE + + COUNT ( * ) + + + 19 / - 99 * + + COUNT ( * ) END
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT DISTINCT + 95 * COUNT( * ) * + CASE + COUNT( * ) WHEN + + COUNT( * ) THEN NULL ELSE 68 + 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT + 95 * COUNT ( * ) * + CASE + COUNT ( * ) WHEN + + COUNT ( * ) THEN NULL ELSE 68 + 2 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT ALL + COUNT( * ) + - ( + - 49 ) + - 58 - - ( + + NULLIF ( + 88, + COUNT( * ) * + - 24 ) ) * + 72 col1
----
6328

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL + COUNT ( * ) + - ( + - 49 ) + - 58 - - ( + + NULLIF ( + 88, + COUNT ( * ) * + - 24 ) ) * + 72 col1
----
6328

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT - MIN( ALL - 10 ) - MIN( - ( 30 ) ) col1
----
40

skipif mysql # not compatible
query I rowsort label-8082
SELECT - MIN ( ALL - 10 ) - MIN ( - ( 30 ) ) col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8083
SELECT DISTINCT 74, + 96 + - 97 * + + COUNT( * ) + + + ( CAST( NULL AS SIGNED ) ) - - 87 AS col1
----
74
NULL

skipif mysql # not compatible
query II rowsort label-8083
SELECT DISTINCT 74, + 96 + - 97 * + + COUNT ( * ) + + + ( CAST ( NULL AS INTEGER ) ) - - 87 AS col1
----
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT - 39 - + - 66 + + 11 - + 5 + + 18 * - 3 + - 16 * + COALESCE ( + COUNT( 83 ), + + 41 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8084
SELECT - 39 - + - 66 + + 11 - + 5 + + 18 * - 3 + - 16 * + COALESCE ( + COUNT ( 83 ), + + 41 ) AS col2
----
-37

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

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL COUNT ( * ) + - 18 AS col1
----
-17

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8087
SELECT + 19 * - 23 + - + 54 + + - 31 - - 76 * 55 * - 39 * - - CAST( NULL AS SIGNED ) + - 38 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT + 19 * - 23 + - + 54 + + - 31 - - 76 * 55 * - 39 * - - CAST ( NULL AS INTEGER ) + - 38 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8088
SELECT 24 * 38 - COUNT( * ), COUNT( * ) + NULLIF ( + + COUNT( * ), 8 / 77 ) AS col2
----
911
2

skipif mysql # not compatible
query II rowsort label-8088
SELECT 24 * 38 - COUNT ( * ), COUNT ( * ) + NULLIF ( + + COUNT ( * ), 8 / 77 ) AS col2
----
911
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8089
SELECT ALL ( + 49 ) DIV MIN( 13 ) - NULLIF ( + 17, - 20 + 49 ) DIV - 88 + 2 * 34 + + - 56 + - 34 * + + COUNT( * ) - - 74
----
55

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL ( + 49 ) / MIN ( 13 ) - NULLIF ( + 17, - 20 + 49 ) / - 88 + 2 * 34 + + - 56 + - 34 * + + COUNT ( * ) - - 74
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8090
SELECT - MIN( ALL - 27 ) * + NULLIF ( 67, - CAST( NULL AS SIGNED ) )
----
1809

skipif mysql # not compatible
query I rowsort label-8090
SELECT - MIN ( ALL - 27 ) * + NULLIF ( 67, - CAST ( NULL AS INTEGER ) )
----
1809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8091
SELECT MAX( - CAST( NULL AS SIGNED ) ) + + - COUNT( * ) * + SUM( ALL COALESCE ( - 34, - 97 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8091
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) * + SUM ( ALL COALESCE ( - 34, - 97 ) )
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-8093
SELECT NULLIF ( + - COUNT ( * ), 17 ) * + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT 61 * + 41 + COUNT( * ) * - ( CASE 9 WHEN - 40 THEN - 67 END ) * + - COALESCE ( - ( + 26 ), - 44 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT 61 * + 41 + COUNT ( * ) * - ( CASE 9 WHEN - 40 THEN - 67 END ) * + - COALESCE ( - ( + 26 ), - 44 ) col2
----
NULL

query II rowsort
SELECT ALL - 26 AS col2, 80 col1
----
-26
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT + COALESCE ( - + 27, - - 93 * + - 95 + 39, 20 DIV + 68 )
----
-27

skipif mysql # not compatible
query I rowsort label-8096
SELECT + COALESCE ( - + 27, - - 93 * + - 95 + 39, 20 / + 68 )
----
-27

query I rowsort
SELECT 75 + 95 AS col1
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8098
SELECT CASE 44 WHEN - + 21 THEN + CAST( 64 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT CASE 44 WHEN - + 21 THEN + CAST ( 64 AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT + - COALESCE ( - 91, - 15 ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8100
SELECT ALL - + COUNT( * ), + 98 AS col0
----
-1
98

skipif mysql # not compatible
query II rowsort label-8100
SELECT ALL - + COUNT ( * ), + 98 AS col0
----
-1
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8101
SELECT + 94 DIV - - 6
----
15

skipif mysql # not compatible
query I rowsort label-8101
SELECT + 94 / - - 6
----
15

query II rowsort
SELECT + 56 AS col0, + 61 + - - 2
----
56
63

onlyif mysql # aggregate syntax: 
query II rowsort label-8103
SELECT ALL - + COUNT( * ) AS col1, 77 * + 59
----
-1
4543

skipif mysql # not compatible
query II rowsort label-8103
SELECT ALL - + COUNT ( * ) AS col1, 77 * + 59
----
-1
4543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8104
SELECT + 5 * + MAX( ALL CAST( + 71 AS SIGNED ) ) + - 78 DIV - COALESCE ( + COUNT( * ), CASE - 8 WHEN ( + 96 ) * - 25 DIV - 7 * 10 * + + 78 + 28 THEN COUNT( * ) ELSE 67 * 34 + AVG ( + + 9 ) + + - COUNT( * ) * 91 DIV - SUM( - 31 ) + 28 END ) + - 18
----
415

skipif mysql # not compatible
query I rowsort label-8104
SELECT + 5 * + MAX ( ALL CAST ( + 71 AS INTEGER ) ) + - 78 / - COALESCE ( + COUNT ( * ), CASE - 8 WHEN ( + 96 ) * - 25 / - 7 * 10 * + + 78 + 28 THEN COUNT ( * ) ELSE 67 * 34 + AVG ( + + 9 ) + + - COUNT ( * ) * 91 / - SUM ( - 31 ) + 28 END ) + - 18
----
415

query I rowsort
SELECT ALL - - 86 col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8106
SELECT ALL - COUNT( * ) DIV COUNT( ALL + 1 ) AS col2, 45
----
-1
45

skipif mysql # not compatible
query II rowsort label-8106
SELECT ALL - COUNT ( * ) / COUNT ( ALL + 1 ) AS col2, 45
----
-1
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8107
SELECT - 30 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-8107
SELECT - 30 / 43
----
0

query I rowsort
SELECT ALL + - 1 + + 84
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8109
SELECT - ( 41 ) * - 70 + ( 22 ) DIV - 92 + 13 * + 14 AS col1, NULLIF ( - - ( 37 ), 67 ) + + 24 - + - 83 * + MIN( - 11 ) + - CASE 53 WHEN - - 68 THEN - 65 WHEN - - 77 THEN NULL END AS col0
----
3052
NULL

skipif mysql # not compatible
query II rowsort label-8109
SELECT - ( 41 ) * - 70 + ( 22 ) / - 92 + 13 * + 14 AS col1, NULLIF ( - - ( 37 ), 67 ) + + 24 - + - 83 * + MIN ( - 11 ) + - CASE 53 WHEN - - 68 THEN - 65 WHEN - - 77 THEN NULL END AS col0
----
3052
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT - 97 + - + MIN( 25 ) + - 61 AS col0
----
-183

skipif mysql # not compatible
query I rowsort label-8111
SELECT - 97 + - + MIN ( 25 ) + - 61 AS col0
----
-183

query I rowsort
SELECT + 10 * - - 54 AS col1
----
540

query II rowsort
SELECT ALL + 72 + - + 33 + + 62 AS col0, + 85
----
101
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT + COUNT( * ) + - 69 - + 39 AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-8114
SELECT + COUNT ( * ) + - 69 - + 39 AS col1
----
-107

query I rowsort
SELECT ALL 51 + - 56 * + 58
----
-3197

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT 63 + + ( - 49 ) + SUM( DISTINCT - - 82 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8116
SELECT 63 + + ( - 49 ) + SUM ( DISTINCT - - 82 ) AS col1
----
96

query I rowsort
SELECT 73 + + 70
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-8118
SELECT ALL - 19 + - 28 AS col1, + 85 * 63 * + + 29 * + 53 * - COUNT( * ) AS col2
----
-47
-8230635

skipif mysql # not compatible
query II rowsort label-8118
SELECT ALL - 19 + - 28 AS col1, + 85 * 63 * + + 29 * + 53 * - COUNT ( * ) AS col2
----
-47
-8230635

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8119
SELECT CAST( 2 AS SIGNED ) DIV - 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8119
SELECT CAST ( 2 AS INTEGER ) / - 56 AS col0
----
0

query I rowsort
SELECT 88 + + 45 AS col1
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8121
SELECT ALL + SUM( ALL - 24 ) - - CAST( - 24 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL + SUM ( ALL - 24 ) - - CAST ( - 24 AS INTEGER )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT 78 * - - MAX( - 89 ) * 68 AS col2
----
-472056

skipif mysql # not compatible
query I rowsort label-8122
SELECT 78 * - - MAX ( - 89 ) * 68 AS col2
----
-472056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8123
SELECT DISTINCT + COUNT( * ) * MIN( DISTINCT + 6 ) DIV - 96 * - 14 + - - 11 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT + COUNT ( * ) * MIN ( DISTINCT + 6 ) / - 96 * - 14 + - - 11 AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8124
SELECT DISTINCT + 74 * COALESCE ( + - 60, + 58 * + 53 * + COALESCE ( + 73, - - 76 DIV 11 ) + + 60 + + + ( COUNT( * ) ) ) col2, ( + COUNT( * ) ) * + 56
----
-4440
56

skipif mysql # not compatible
query II rowsort label-8124
SELECT DISTINCT + 74 * COALESCE ( + - 60, + 58 * + 53 * + COALESCE ( + 73, - - 76 / 11 ) + + 60 + + + ( COUNT ( * ) ) ) col2, ( + COUNT ( * ) ) * + 56
----
-4440
56

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8126
SELECT DISTINCT 54 DIV 81 col2
----
0

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT 54 / 81 col2
----
0

query I rowsort
SELECT 13 * + 22 * 82 * + 72
----
1688544

query I rowsort
SELECT ALL - NULLIF ( - 80, + 0 )
----
80

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

skipif mysql # not compatible
query I rowsort label-8129
SELECT + 91 / 30 - + - COUNT ( * )
----
4

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8131
SELECT SUM( DISTINCT + CAST( + 45 AS SIGNED ) )
----
45

skipif mysql # not compatible
query I rowsort label-8131
SELECT SUM ( DISTINCT + CAST ( + 45 AS INTEGER ) )
----
45

query I rowsort
SELECT ALL 31 * + 64
----
1984

query II rowsort
SELECT + 3 * 59 - - 73 + 6 * - - 9 AS col2, 4 AS col2
----
304
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8134
SELECT DISTINCT - COALESCE ( - 46, - - COALESCE ( ( CAST( NULL AS SIGNED ) ), - 39 ) + - + SUM( DISTINCT + 98 ) ) + + COUNT( * ) + + CAST( NULL AS SIGNED ) * - + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT - COALESCE ( - 46, - - COALESCE ( ( CAST ( NULL AS INTEGER ) ), - 39 ) + - + SUM ( DISTINCT + 98 ) ) + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - + 39
----
NULL

query I rowsort
SELECT + 67 * + - 84 col1
----
-5628

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT - 11 * ( - - 88 ) + + 19 - 51 + 55 * - + 56 + + COUNT( * ) + - 80 + - 18 col1
----
-4177

skipif mysql # not compatible
query I rowsort label-8136
SELECT - 11 * ( - - 88 ) + + 19 - 51 + 55 * - + 56 + + COUNT ( * ) + - 80 + - 18 col1
----
-4177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8137
SELECT + CASE - + 12 WHEN + NULLIF ( + + 81, - 67 * + + COUNT( * ) * + + 75 * - + 19 - - CASE + 47 WHEN - + AVG ( 92 ) * + 68 THEN NULL WHEN + 3 * - + 54 THEN NULL ELSE + COUNT( + - 39 ) * 32 * - + CAST( - 74 AS SIGNED ) END * + 94 + + + 45 ) * + 35 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN 92 THEN NULL ELSE 81 * + 84 END
----
6804

skipif mysql # not compatible
query I rowsort label-8137
SELECT + CASE - + 12 WHEN + NULLIF ( + + 81, - 67 * + + COUNT ( * ) * + + 75 * - + 19 - - CASE + 47 WHEN - + AVG ( 92 ) * + 68 THEN NULL WHEN + 3 * - + 54 THEN NULL ELSE + COUNT ( + - 39 ) * 32 * - + CAST ( - 74 AS INTEGER ) END * + 94 + + + 45 ) * + 35 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN 92 THEN NULL ELSE 81 * + 84 END
----
6804

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT + 51 + + 92 * 59 + - 3 - 86 - + NULLIF ( - - 0, - 58 * - + 22 + 49 / 89 + - 21 + 57 + + ( + 38 ) * - AVG ( DISTINCT 22 ) * + - COUNT( * ) / + - 16 + 66 / + 42 * + - 71 )
----
5390

skipif mysql # not compatible
query I rowsort label-8138
SELECT + 51 + + 92 * 59 + - 3 - 86 - + NULLIF ( - - 0, - 58 * - + 22 + 49 / 89 + - 21 + 57 + + ( + 38 ) * - AVG ( DISTINCT 22 ) * + - COUNT ( * ) / + - 16 + 66 / + 42 * + - 71 )
----
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT + + COALESCE ( 71, COUNT( * ) * + 41 + - 80 - - 45 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-8139
SELECT + + COALESCE ( 71, COUNT ( * ) * + 41 + - 80 - - 45 ) AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8140
SELECT CAST( + 79 AS SIGNED ) + + MIN( DISTINCT + + 56 ) + + + 90 AS col0
----
225

skipif mysql # not compatible
query I rowsort label-8140
SELECT CAST ( + 79 AS INTEGER ) + + MIN ( DISTINCT + + 56 ) + + + 90 AS col0
----
225

query I rowsort
SELECT - 3 * + - 32 col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT CASE + 58 WHEN + 13 THEN COUNT( * ) * - 57 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8142
SELECT CASE + 58 WHEN + 13 THEN COUNT ( * ) * - 57 END AS col2
----
NULL

query I rowsort
SELECT ALL 47 + - ( 87 ) AS col0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8144
SELECT 63 DIV NULLIF ( + COUNT( * ), + 65 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8144
SELECT 63 / NULLIF ( + COUNT ( * ), + 65 ) AS col2
----
63

query I rowsort
SELECT ALL 51 * + - 35 AS col0
----
-1785

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8146
SELECT DISTINCT 63 DIV + - SUM( 13 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-8146
SELECT DISTINCT 63 / + - SUM ( 13 ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT ALL + 87 - + MAX( ALL - 68 ) * + 96
----
6615

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL + 87 - + MAX ( ALL - 68 ) * + 96
----
6615

query I rowsort
SELECT 53 + - 5 col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT ( - 41 ) + + + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-8149
SELECT ( - 41 ) + + + COUNT ( * )
----
-40

query II rowsort
SELECT 8 col0, 71 * + 50
----
8
3550

onlyif mysql # DIV for integer division: 
query II rowsort label-8151
SELECT ALL 91 - - - 89 DIV - 44, - 9 * + COALESCE ( + ( - 80 ), + - 16 ) AS col1
----
93
720

skipif mysql # not compatible
query II rowsort label-8151
SELECT ALL 91 - - - 89 / - 44, - 9 * + COALESCE ( + ( - 80 ), + - 16 ) AS col1
----
93
720

query I rowsort
SELECT ( - 24 ) * - 57
----
1368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8153
SELECT CAST( 90 AS SIGNED ) * - - 7 * - NULLIF ( + CASE 73 WHEN + 69 THEN 8 * 84 + + + ( - - 16 ) - - - 83 * + 68 / 13 + - + 6 * + CAST( NULL AS DECIMAL ) WHEN + 56 THEN - 66 WHEN COUNT( * ) * 19 THEN NULL END, - 56 * - 90 * + - SUM( ALL + - 91 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8153
SELECT CAST ( 90 AS INTEGER ) * - - 7 * - NULLIF ( + CASE 73 WHEN + 69 THEN 8 * 84 + + + ( - - 16 ) - - - 83 * + 68 / 13 + - + 6 * + CAST ( NULL AS REAL ) WHEN + 56 THEN - 66 WHEN COUNT ( * ) * 19 THEN NULL END, - 56 * - 90 * + - SUM ( ALL + - 91 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT ALL MIN( - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL MIN ( - 54 )
----
-54

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

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

query I rowsort
SELECT ALL 55 * - 2 AS col2
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT - COALESCE ( - 22, + COUNT( DISTINCT 66 ), COUNT( * ) * - + 57 - + - 91 - + 89 ) - - 90
----
112

skipif mysql # not compatible
query I rowsort label-8157
SELECT - COALESCE ( - 22, + COUNT ( DISTINCT 66 ), COUNT ( * ) * - + 57 - + - 91 - + 89 ) - - 90
----
112

query I rowsort
SELECT - 2 + + 64 * - 34
----
-2178

onlyif mysql # DIV for integer division: 
query I rowsort label-8159
SELECT ALL - 25 DIV - - ( - 80 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL - 25 / - - ( - 80 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8160
SELECT - 19 DIV + 43 * - MAX( DISTINCT 24 ) DIV COUNT( * ) - + + 73 col0, 61
----
-73
61

skipif mysql # not compatible
query II rowsort label-8160
SELECT - 19 / + 43 * - MAX ( DISTINCT 24 ) / COUNT ( * ) - + + 73 col0, 61
----
-73
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT ( - COUNT( * ) ) * COUNT( * ) + 31 + + ( - ( 21 ) ) col2
----
9

skipif mysql # not compatible
query I rowsort label-8161
SELECT ( - COUNT ( * ) ) * COUNT ( * ) + 31 + + ( - ( 21 ) ) col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT ALL - + 34 * - + MAX( DISTINCT - - 80 ) AS col0
----
2720

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL - + 34 * - + MAX ( DISTINCT - - 80 ) AS col0
----
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT - COUNT( * ) * 37 * + 58 * + 20 AS col0
----
-42920

skipif mysql # not compatible
query I rowsort label-8163
SELECT - COUNT ( * ) * 37 * + 58 * + 20 AS col0
----
-42920

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT - - COUNT( * ) * 5 + 3 - - 74 + + 44 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-8164
SELECT - - COUNT ( * ) * 5 + 3 - - 74 + + 44 AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT ALL - NULLIF ( CASE NULLIF ( - 40, + ( + 23 ) ) WHEN + SUM( + 45 ) THEN NULL ELSE + ( - - 84 ) END, - 55 ) * + 14 + + CASE + + 32 WHEN 18 * + + 47 + - - AVG ( - 69 ) THEN + COUNT( * ) + + 39 * ( + 2 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL - NULLIF ( CASE NULLIF ( - 40, + ( + 23 ) ) WHEN + SUM ( + 45 ) THEN NULL ELSE + ( - - 84 ) END, - 55 ) * + 14 + + CASE + + 32 WHEN 18 * + + 47 + - - AVG ( - 69 ) THEN + COUNT ( * ) + + 39 * ( + 2 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - ( - + 98 ) + + 77 * + - 42 AS col0
----
-3136

onlyif mysql # DIV for integer division: 
query I rowsort label-8167
SELECT - - 52 DIV - 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8167
SELECT - - 52 / - 57 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT - 90 + + + MIN( ( - 5 ) ) * - 44 + 14
----
144

skipif mysql # not compatible
query I rowsort label-8168
SELECT - 90 + + + MIN ( ( - 5 ) ) * - 44 + 14
----
144

query I rowsort
SELECT DISTINCT - ( + 42 ) * - - 38 / 6 * CASE 31 WHEN + - COALESCE ( + 92, 54 + + 61 ) THEN - - 56 WHEN + + 5 THEN NULL ELSE NULL END - - + 57
----
NULL

query I rowsort
SELECT ALL - + 66 * - - 30 + - 48 * + 4 * + 14 col1
----
-4668

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8171
SELECT ALL + COUNT( * ) DIV + + COALESCE ( 48, + COUNT( * ) * - - COUNT( * ) + 62 - + + 61 - - + COALESCE ( + - 68, 41 + + + 88 ) * + 45 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL + COUNT ( * ) / + + COALESCE ( 48, + COUNT ( * ) * - - COUNT ( * ) + 62 - + + 61 - - + COALESCE ( + - 68, 41 + + + 88 ) * + 45 ) AS col1
----
0

query I rowsort
SELECT 91 * + 85 * - - 23 * 67 + + 60 + - - 69 * - - 76 col1
----
11924939

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

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

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

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

query I rowsort
SELECT DISTINCT + - 16 * 70 + + + 17
----
-1103

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT DISTINCT COUNT( * ) * - 13 * + + 76 - 70
----
-1058

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT COUNT ( * ) * - 13 * + + 76 - 70
----
-1058

query I rowsort
SELECT + - 1 + - - ( + 92 ) * - - ( 95 )
----
8739

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

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL - 91 * - 95 * - 27 / - COUNT ( * ) AS col0
----
233415

query II rowsort
SELECT - CASE WHEN 33 IS NULL THEN 16 ELSE NULL END AS col2, 79
----
NULL
79

query I rowsort
SELECT + 68 * + 68
----
4624

query I rowsort
SELECT + 32 * - 10 AS col0
----
-320

onlyif mysql # DIV for integer division: 
query I rowsort label-8182
SELECT ALL 44 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL 44 / + 45
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8183
SELECT + COUNT( DISTINCT - 37 ) + - ( - + 27 ) DIV 86 + + 28 col1
----
29

skipif mysql # not compatible
query I rowsort label-8183
SELECT + COUNT ( DISTINCT - 37 ) + - ( - + 27 ) / 86 + + 28 col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT ALL SUM( + - 71 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL SUM ( + - 71 ) AS col1
----
-71

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8186
SELECT - COALESCE ( + CAST( NULL AS SIGNED ), - 28 * + ( 15 ) * + COUNT( * ) + + - 16 + - 21 )
----
457

skipif mysql # not compatible
query I rowsort label-8186
SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), - 28 * + ( 15 ) * + COUNT ( * ) + + - 16 + - 21 )
----
457

query II rowsort
SELECT ALL 2 AS col0, 90 * + 18 AS col2
----
2
1620

onlyif mysql # aggregate syntax: 
query II rowsort label-8188
SELECT 66 col1, - SUM( 55 )
----
66
-55

skipif mysql # not compatible
query II rowsort label-8188
SELECT 66 col1, - SUM ( 55 )
----
66
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT DISTINCT 37 * - CASE COUNT( * ) WHEN SUM( 56 ) THEN - NULLIF ( 64, - 35 ) * 66 WHEN - - 54 THEN NULL WHEN COUNT( * ) + 41 * - 29 * - 44 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT 37 * - CASE COUNT ( * ) WHEN SUM ( 56 ) THEN - NULLIF ( 64, - 35 ) * 66 WHEN - - 54 THEN NULL WHEN COUNT ( * ) + 41 * - 29 * - 44 THEN NULL END
----
NULL

query I rowsort
SELECT + 42 * - 66
----
-2772

query I rowsort
SELECT - 48 + - - 92 AS col2
----
44

query I rowsort
SELECT ALL + 3 + + 3
----
6

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8195
SELECT DISTINCT 35 + MIN( ALL ( - - 69 ) ) AS col0, - 29 + + 58
----
104
29

skipif mysql # not compatible
query II rowsort label-8195
SELECT DISTINCT 35 + MIN ( ALL ( - - 69 ) ) AS col0, - 29 + + 58
----
104
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8196
SELECT + + 23 * COUNT( * ) DIV - - MIN( ALL + 72 ) AS col0, + 20 + 4 AS col0
----
0
24

skipif mysql # not compatible
query II rowsort label-8196
SELECT + + 23 * COUNT ( * ) / - - MIN ( ALL + 72 ) AS col0, + 20 + 4 AS col0
----
0
24

query I rowsort
SELECT + NULLIF ( + 47, - 98 + + ( + 61 ) )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8198
SELECT ALL + - 23 DIV + 17 + - 22 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL + - 23 / + 17 + - 22 AS col0
----
-23

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8200
SELECT + 32 DIV - COALESCE ( + - 30, 16 * + 69 + 36 + ( 87 ) + + + 94 ) - + 56 col1
----
-55

skipif mysql # not compatible
query I rowsort label-8200
SELECT + 32 / - COALESCE ( + - 30, 16 * + 69 + 36 + ( 87 ) + + + 94 ) - + 56 col1
----
-55

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

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

query II rowsort
SELECT ALL + - 80 AS col2, 96 AS col1
----
-80
96

query I rowsort
SELECT - 19 + - + 77 * ( - ( 51 ) ) + 71
----
3979

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT + 11 * + + 41 * - ( + 70 ) + 22 + ( - + 2 ) DIV - 21 + + 56 AS col2
----
-31492

skipif mysql # not compatible
query I rowsort label-8204
SELECT + 11 * + + 41 * - ( + 70 ) + 22 + ( - + 2 ) / - 21 + + 56 AS col2
----
-31492

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8205
SELECT + + 1 * - + 39 DIV + - 3 + - COALESCE ( - 18, 79, + - NULLIF ( - 88, + 60 ) + - + 14 ) - - COUNT( * ) * 81 AS col1, 17
----
112
17

skipif mysql # not compatible
query II rowsort label-8205
SELECT + + 1 * - + 39 / + - 3 + - COALESCE ( - 18, 79, + - NULLIF ( - 88, + 60 ) + - + 14 ) - - COUNT ( * ) * 81 AS col1, 17
----
112
17

query I rowsort
SELECT DISTINCT + 57 * - + 64 AS col0
----
-3648

onlyif mysql # aggregate syntax: 
query II rowsort label-8207
SELECT ALL + MIN( 23 ) AS col0, 65 AS col2
----
23
65

skipif mysql # not compatible
query II rowsort label-8207
SELECT ALL + MIN ( 23 ) AS col0, 65 AS col2
----
23
65

query I rowsort
SELECT ALL + + 23 * - 74
----
-1702

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT ALL + COUNT( * ) * - + 18 * - 81 + + 79 - + COUNT( DISTINCT 79 ) AS col1
----
1536

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL + COUNT ( * ) * - + 18 * - 81 + + 79 - + COUNT ( DISTINCT 79 ) AS col1
----
1536

query I rowsort
SELECT + - 61 * + - 88 + - 7 + - 19 AS col2
----
5342

onlyif mysql # aggregate syntax: 
query II rowsort label-8211
SELECT ( 77 ) col0, 40 * - COUNT( * ) * - + 84
----
77
3360

skipif mysql # not compatible
query II rowsort label-8211
SELECT ( 77 ) col0, 40 * - COUNT ( * ) * - + 84
----
77
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT 23 * 45 + - MIN( ALL - 54 ) AS col2
----
1089

skipif mysql # not compatible
query I rowsort label-8212
SELECT 23 * 45 + - MIN ( ALL - 54 ) AS col2
----
1089

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

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

query I rowsort
SELECT 5 * - 96 - + - 94 + + + 33 - + 5 - - 57 * 47 AS col0
----
2321

query II rowsort
SELECT DISTINCT 3 * + 25 AS col0, 31 * + - 3 AS col2
----
75
-93

query I rowsort
SELECT 17 * + - 99 * 68 * + 71 AS col1
----
-8125524

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8217
SELECT 88 + + COUNT( * ) + 78 DIV 84 - + 96 + - ( + ( + 38 ) ), 63 * + 9 AS col0
----
-45
567

skipif mysql # not compatible
query II rowsort label-8217
SELECT 88 + + COUNT ( * ) + 78 / 84 - + 96 + - ( + ( + 38 ) ), 63 * + 9 AS col0
----
-45
567

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT ALL ( - COUNT( * ) ) + + - 1 + 82 * 83 * + 9 * - - 95
----
5819128

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL ( - COUNT ( * ) ) + + - 1 + 82 * 83 * + 9 * - - 95
----
5819128

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT SUM( + 4 ) + + 13
----
17

skipif mysql # not compatible
query I rowsort label-8219
SELECT SUM ( + 4 ) + + 13
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8220
SELECT COUNT( * ) * - CAST( ( - 28 ) AS SIGNED ) AS col0
----
28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT ALL + COUNT( * ) * - 38 * + 88
----
-3344

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL + COUNT ( * ) * - 38 * + 88
----
-3344

query I rowsort
SELECT DISTINCT - 5 + ( + 5 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8223
SELECT + 72 + + 35 DIV + 30
----
73

skipif mysql # not compatible
query I rowsort label-8223
SELECT + 72 + + 35 / + 30
----
73

query I rowsort
SELECT - 11 + - - 82 * + 54 + + 74 AS col1
----
4491

onlyif mysql # aggregate syntax: 
query II rowsort label-8225
SELECT 54 + - NULLIF ( + 48, + + 16 + - 32 * - - 43 + + 41 / + ( - 34 ) ) + + 51 AS col0, + ( + COUNT( * ) ) AS col0
----
57
1

skipif mysql # not compatible
query II rowsort label-8225
SELECT 54 + - NULLIF ( + 48, + + 16 + - 32 * - - 43 + + 41 / + ( - 34 ) ) + + 51 AS col0, + ( + COUNT ( * ) ) AS col0
----
57
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT - 38 + - MAX( + + 29 )
----
-67

skipif mysql # not compatible
query I rowsort label-8227
SELECT - 38 + - MAX ( + + 29 )
----
-67

query I rowsort
SELECT 44 - + 61 AS col0
----
-17

query I rowsort
SELECT CASE 5 WHEN - + 71 * + - 74 THEN + + 63 + 7 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8230
SELECT DISTINCT + 89 * - + 67 * + CASE - AVG ( ALL + + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) WHEN + COUNT( * ) THEN + 98 * + CAST( - ( - 94 ) AS SIGNED ) * + CASE + 32 WHEN + - 82 THEN + 36 ELSE NULL END - + 24 WHEN + + CAST( NULL AS SIGNED ) * - - COUNT( * ) THEN + 81 + + 75 * - - 55 ELSE - + 96 END * - 49 / CASE ( + + 80 ) WHEN 55 + AVG ( ALL 68 ) * 65 THEN NULLIF ( + ( COUNT( * ) ), - 41 ) * CASE - 74 WHEN - COUNT( * ) + - 29 THEN 66 WHEN 56 THEN NULL ELSE NULL END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT + 89 * - + 67 * + CASE - AVG ( ALL + + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) WHEN + COUNT ( * ) THEN + 98 * + CAST ( - ( - 94 ) AS INTEGER ) * + CASE + 32 WHEN + - 82 THEN + 36 ELSE NULL END - + 24 WHEN + + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) THEN + 81 + + 75 * - - 55 ELSE - + 96 END * - 49 / CASE ( + + 80 ) WHEN 55 + AVG ( ALL 68 ) * 65 THEN NULLIF ( + ( COUNT ( * ) ), - 41 ) * CASE - 74 WHEN - COUNT ( * ) + - 29 THEN 66 WHEN 56 THEN NULL ELSE NULL END END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL + COUNT ( * ) - 19 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT 24 + 87 * SUM( ALL 25 ) * - 27 AS col2
----
-58701

skipif mysql # not compatible
query I rowsort label-8232
SELECT 24 + 87 * SUM ( ALL 25 ) * - 27 AS col2
----
-58701

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8234
SELECT DISTINCT CAST( + 80 AS SIGNED ) * + 84, + NULLIF ( - 58, - NULLIF ( 55, MAX( DISTINCT - - 0 ) ) ) AS col2
----
6720
-58

skipif mysql # not compatible
query II rowsort label-8234
SELECT DISTINCT CAST ( + 80 AS INTEGER ) * + 84, + NULLIF ( - 58, - NULLIF ( 55, MAX ( DISTINCT - - 0 ) ) ) AS col2
----
6720
-58

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

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL - + COUNT ( - 33 ) AS col0
----
-1

query I rowsort
SELECT 3 * + ( + 91 )
----
273

query I rowsort
SELECT 47 * - 28 * 52
----
-68432

query I rowsort
SELECT ( + COALESCE ( + 21, 79 + 37, + - 99 + 96 + + 96 ) ) * - 91 AS col1
----
-1911

onlyif mysql # DIV for integer division: 
query I rowsort label-8239
SELECT DISTINCT 80 DIV - - 67 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT 80 / - - 67 AS col0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT + 11 * 8 + + 36 * COUNT( * ) AS col1
----
124

skipif mysql # not compatible
query I rowsort label-8241
SELECT + 11 * 8 + + 36 * COUNT ( * ) AS col1
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8242
SELECT 7 + CAST( NULL AS SIGNED ) - + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8242
SELECT 7 + CAST ( NULL AS INTEGER ) - + 73 AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT NULLIF ( 90, + - 55 ) + 89 AS col2
----
179

query I rowsort
SELECT 13 + + 99
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8247
SELECT 22 + - COALESCE ( + 64, - + 50 * - 99 + + 67 DIV 9 * - 58, - 72 * + MAX( 86 ) ) + + - 34
----
-76

skipif mysql # not compatible
query I rowsort label-8247
SELECT 22 + - COALESCE ( + 64, - + 50 * - 99 + + 67 / 9 * - 58, - 72 * + MAX ( 86 ) ) + + - 34
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT DISTINCT + COUNT( * ) + + 41 - + - 35 * + - 58 AS col1
----
-1988

skipif mysql # not compatible
query I rowsort label-8248
SELECT DISTINCT + COUNT ( * ) + + 41 - + - 35 * + - 58 AS col1
----
-1988

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT - COALESCE ( - 99, + + ( MAX( + + 51 ) ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8250
SELECT - COALESCE ( - 99, + + ( MAX ( + + 51 ) ) ) AS col1
----
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT - CASE + - COUNT( * ) WHEN COUNT( 15 ) THEN NULL WHEN - - 82 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN 75 * 50 THEN NULL ELSE 40 END * COALESCE ( - 16, + MIN( ALL + + 86 ) * + - 87, - - 79 * - 24 * - 21 + COALESCE ( 45, - ( - 88 ), + - MAX( DISTINCT - 45 ) + + COUNT( DISTINCT + + 40 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8252
SELECT - CASE + - COUNT ( * ) WHEN COUNT ( 15 ) THEN NULL WHEN - - 82 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN 75 * 50 THEN NULL ELSE 40 END * COALESCE ( - 16, + MIN ( ALL + + 86 ) * + - 87, - - 79 * - 24 * - 21 + COALESCE ( 45, - ( - 88 ), + - MAX ( DISTINCT - 45 ) + + COUNT ( DISTINCT + + 40 ) ) ) AS col1
----
NULL

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

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

query I rowsort
SELECT + 79 + 72
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-8255
SELECT ALL 98 DIV - + 30 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL 98 / - + 30 AS col0
----
-3

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

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

query I rowsort
SELECT + 85 / - 40 - 8 + - 93 + - CASE - - 41 WHEN 11 + + 61 THEN 9 * + 12 ELSE NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT 87 * 16 * + - 20 AS col1
----
-27840

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT - 64 * + 48 * + COALESCE ( COUNT( * ), 39, 18 ) + + 0
----
-3072

skipif mysql # not compatible
query I rowsort label-8260
SELECT - 64 * + 48 * + COALESCE ( COUNT ( * ), 39, 18 ) + + 0
----
-3072

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8262
SELECT SUM( ALL + 41 ), COUNT( * ) DIV + 19 - 12 AS col2
----
41
-12

skipif mysql # not compatible
query II rowsort label-8262
SELECT SUM ( ALL + 41 ), COUNT ( * ) / + 19 - 12 AS col2
----
41
-12

query I rowsort
SELECT ALL 39 * - - 53
----
2067

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT 42 * + COUNT( * ) - - + 47 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-8264
SELECT 42 * + COUNT ( * ) - - + 47 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT + 89 * - + 97 + + 65 + 61 * 4 * + NULLIF ( - + 61, - COUNT( * ) * - - 1 ) col2
----
-23452

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT + 89 * - + 97 + + 65 + 61 * 4 * + NULLIF ( - + 61, - COUNT ( * ) * - - 1 ) col2
----
-23452

query I rowsort
SELECT ALL 91 * + 51 * - 20 AS col0
----
-92820

onlyif mysql # aggregate syntax: 
query II rowsort label-8267
SELECT + 3 * - + 83 col1, - COUNT( * ) AS col0
----
-249
-1

skipif mysql # not compatible
query II rowsort label-8267
SELECT + 3 * - + 83 col1, - COUNT ( * ) AS col0
----
-249
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT MAX( DISTINCT 4 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8268
SELECT MAX ( DISTINCT 4 ) AS col2
----
4

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

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

query I rowsort
SELECT + NULLIF ( 5, - 41 )
----
5

query I rowsort
SELECT ALL NULLIF ( + 77, 18 + + 16 ) / - - CASE + + 46 WHEN + 64 + - 26 / - 19 THEN 65 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT DISTINCT 84 + - 94 * + - 5 - + NULLIF ( + 91, 46 ) - - - COUNT( * ) + 65 * 43
----
3257

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT 84 + - 94 * + - 5 - + NULLIF ( + 91, 46 ) - - - COUNT ( * ) + 65 * 43
----
3257

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT ALL COUNT( 92 )
----
1

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL COUNT ( 92 )
----
1

query I rowsort
SELECT - 13 * - 12 AS col0
----
156

query I rowsort
SELECT DISTINCT 78 * - 80 AS col0
----
-6240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8276
SELECT + 1 + - COUNT( * ) + - 72 + + 40 * - - NULLIF ( + MAX( + 40 ), + COUNT( DISTINCT - 68 ) ) DIV - COUNT( * )
----
-1672

skipif mysql # not compatible
query I rowsort label-8276
SELECT + 1 + - COUNT ( * ) + - 72 + + 40 * - - NULLIF ( + MAX ( + 40 ), + COUNT ( DISTINCT - 68 ) ) / - COUNT ( * )
----
-1672

query I rowsort
SELECT ALL + - 21 * + 83 + + 72 AS col2
----
-1671

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT + - 75 + + 81 + + 18 - 25 * MAX( - 59 ) * + - 71 + - + 28
----
-104729

skipif mysql # not compatible
query I rowsort label-8278
SELECT + - 75 + + 81 + + 18 - 25 * MAX ( - 59 ) * + - 71 + - + 28
----
-104729

query II rowsort
SELECT + ( + + 59 ) col1, - 8
----
59
-8

query I rowsort
SELECT ALL - 64 - + + 95 AS col2
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8281
SELECT - 29 - + CAST( + 4 AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-8281
SELECT - 29 - + CAST ( + 4 AS INTEGER )
----
-33

query II rowsort
SELECT - - ( 78 ) col2, + 11
----
78
11

query I rowsort
SELECT ALL + 79 * + 34 AS col2
----
2686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8284
SELECT - - 68 - + CASE - 84 WHEN CAST( 95 AS SIGNED ) THEN NULL WHEN + - 12 / 55 * + 59 THEN 12 + + 44 - - - CAST( NULLIF ( - ( - CASE + + 38 WHEN - - MIN( - 34 ) + - 54 * - 49 / - - 15 THEN NULL WHEN + MAX( DISTINCT ( - 82 ) ) THEN + - 57 / 97 * - + COUNT( * ) + - 98 * 33 END ), - 85 * 74 ) AS SIGNED ) END - ( - 32 + - ( + 48 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT - - 68 - + CASE - 84 WHEN CAST ( 95 AS INTEGER ) THEN NULL WHEN + - 12 / 55 * + 59 THEN 12 + + 44 - - - CAST ( NULLIF ( - ( - CASE + + 38 WHEN - - MIN ( - 34 ) + - 54 * - 49 / - - 15 THEN NULL WHEN + MAX ( DISTINCT ( - 82 ) ) THEN + - 57 / 97 * - + COUNT ( * ) + - 98 * 33 END ), - 85 * 74 ) AS INTEGER ) END - ( - 32 + - ( + 48 ) )
----
NULL

query I rowsort
SELECT - 32 * - 7 AS col2
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT + COUNT( * ) * - - 47 - - + 33 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-8286
SELECT + COUNT ( * ) * - - 47 - - + 33 AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8287
SELECT ALL 62 DIV - 25 + + - 54
----
-56

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL 62 / - 25 + + - 54
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-8288
SELECT DISTINCT + + CASE - NULLIF ( ( - 8 ), - - 56 ) WHEN - + 47 * 89 THEN - - 2 WHEN CASE - 67 WHEN + + 60 THEN NULL WHEN + 66 THEN + COUNT( * ) WHEN + 87 THEN NULL ELSE NULL END THEN - + COUNT( * ) + + 70 * - 44 ELSE - 73 + + - 68 END, 16 AS col2
----
-141
16

skipif mysql # not compatible
query II rowsort label-8288
SELECT DISTINCT + + CASE - NULLIF ( ( - 8 ), - - 56 ) WHEN - + 47 * 89 THEN - - 2 WHEN CASE - 67 WHEN + + 60 THEN NULL WHEN + 66 THEN + COUNT ( * ) WHEN + 87 THEN NULL ELSE NULL END THEN - + COUNT ( * ) + + 70 * - 44 ELSE - 73 + + - 68 END, 16 AS col2
----
-141
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8289
SELECT ALL - + 81 DIV + + 46 + - 48
----
-49

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL - + 81 / + + 46 + - 48
----
-49

query I rowsort
SELECT - + 90 * + 98 col1
----
-8820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8291
SELECT DISTINCT 72 DIV + MIN( ALL - 71 ) + + + NULLIF ( + 50, - - 6 ) col2
----
49

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT 72 / + MIN ( ALL - 71 ) + + + NULLIF ( + 50, - - 6 ) col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8292
SELECT ALL 47 / - + 18 + MAX( ALL 71 ) + + CAST( NULL AS SIGNED ) * + 45 / + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL 47 / - + 18 + MAX ( ALL 71 ) + + CAST ( NULL AS INTEGER ) * + 45 / + 72 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8294
SELECT 65 * - COUNT( * ) + - 46 * COUNT( * ) DIV - + SUM( 86 )
----
-65

skipif mysql # not compatible
query I rowsort label-8294
SELECT 65 * - COUNT ( * ) + - 46 * COUNT ( * ) / - + SUM ( 86 )
----
-65

query I rowsort
SELECT ( - + 7 ) col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT + CASE + 74 WHEN + COUNT( * ) * + COUNT( * ) THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT + CASE + 74 WHEN + COUNT ( * ) * + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8297
SELECT + 3 DIV + + 37 + + 24 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8297
SELECT + 3 / + + 37 + + 24 AS col0
----
24

query I rowsort
SELECT + 56 * + 42
----
2352

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

skipif mysql # not compatible
query I rowsort label-8299
SELECT - MAX ( 78 ) + COUNT ( * ) + COUNT ( * ) AS col2
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8300
SELECT + 73 DIV - 44
----
-1

skipif mysql # not compatible
query I rowsort label-8300
SELECT + 73 / - 44
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT ALL + 35 * - COUNT( * ) + + 91
----
56

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL + 35 * - COUNT ( * ) + + 91
----
56

query I rowsort
SELECT ALL ( 25 ) * + 71 AS col1
----
1775

query I rowsort
SELECT + NULLIF ( - + 58, - 50 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT + COUNT( * ) + + NULLIF ( - COUNT( * ), + 14 * - + 52 * + 93 / - 88 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8304
SELECT + COUNT ( * ) + + NULLIF ( - COUNT ( * ), + 14 * - + 52 * + 93 / - 88 ) col1
----
0

query I rowsort
SELECT ALL 89 * - 22 - 90 AS col0
----
-2048

query I rowsort
SELECT + 7 + + + 75
----
82

query I rowsort
SELECT + 66 * + 98
----
6468

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT - NULLIF ( + - MAX( ALL + + 2 ), - 85 )
----
2

skipif mysql # not compatible
query I rowsort label-8308
SELECT - NULLIF ( + - MAX ( ALL + + 2 ), - 85 )
----
2

query I rowsort
SELECT + 83 + 11
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-8310
SELECT COUNT( * ) AS col0, - 70 + + - 3 * - + 92 AS col0
----
1
206

skipif mysql # not compatible
query II rowsort label-8310
SELECT COUNT ( * ) AS col0, - 70 + + - 3 * - + 92 AS col0
----
1
206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8311
SELECT + + CAST( NULL AS SIGNED ) * + 52 * + - 43 * - - 42 + COUNT( * ) + + COUNT( ALL - + 74 ) * - COUNT( + 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT + + CAST ( NULL AS INTEGER ) * + 52 * + - 43 * - - 42 + COUNT ( * ) + + COUNT ( ALL - + 74 ) * - COUNT ( + 22 )
----
NULL

query II rowsort
SELECT NULLIF ( - 8, 50 ) AS col2, 68
----
-8
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT + 5 * MIN( - - 42 ) + + 75 - - 69 AS col0
----
354

skipif mysql # not compatible
query I rowsort label-8313
SELECT + 5 * MIN ( - - 42 ) + + 75 - - 69 AS col0
----
354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8314
SELECT DISTINCT - COALESCE ( + - MIN( ALL 53 ), + - CASE + + 5 WHEN - + 3 THEN NULL WHEN - 10 THEN - 85 END + - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) )
----
53

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT - COALESCE ( + - MIN ( ALL 53 ), + - CASE + + 5 WHEN - + 3 THEN NULL WHEN - 10 THEN - 85 END + - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) )
----
53

query I rowsort
SELECT DISTINCT - + 56 * + + 28
----
-1568

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

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL COUNT ( ALL - + 87 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT - CASE 90 WHEN - + 48 THEN - + MAX( - + 94 ) + - 51 + + 77 + - 9 WHEN - + 71 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8317
SELECT - CASE 90 WHEN - + 48 THEN - + MAX ( - + 94 ) + - 51 + + 77 + - 9 WHEN - + 71 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8318
SELECT - 50 DIV 29
----
-1

skipif mysql # not compatible
query I rowsort label-8318
SELECT - 50 / 29
----
-1

query I rowsort
SELECT DISTINCT 19 * 53 AS col1
----
1007

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8321
SELECT + 16 DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-8321
SELECT + 16 / + 38
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8322
SELECT - 90 + - + 51 + + + NULLIF ( + 39, - + 7 ) + + + 11 * - + 63 - + CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL ) + + COUNT( * ) + ( + 51 ) * + - 56 * + 92 * + 31 * 23 * 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8322
SELECT - 90 + - + 51 + + + NULLIF ( + 39, - + 7 ) + + + 11 * - + 63 - + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL ) + + COUNT ( * ) + ( + 51 ) * + - 56 * + 92 * + 31 * 23 * 0 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT ALL CAST( NULL AS SIGNED ) + + 16 + 88 * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL CAST ( NULL AS INTEGER ) + + 16 + 88 * 59
----
NULL

query I rowsort
SELECT DISTINCT - 89 + + - NULLIF ( - 99, + - 79 ) AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8326
SELECT ALL - + ( CASE 41 WHEN - 69 THEN NULL WHEN 43 - 93 * - 53 THEN NULL ELSE + - CAST( 51 AS SIGNED ) END ) + + 2 * - 83 * + 90 * 23
----
-343569

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL - + ( CASE 41 WHEN - 69 THEN NULL WHEN 43 - 93 * - 53 THEN NULL ELSE + - CAST ( 51 AS INTEGER ) END ) + + 2 * - 83 * + 90 * 23
----
-343569

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8328
SELECT DISTINCT - 34 + 7 * 54 + + - 56 - COUNT( * ) DIV - 23 AS col1
----
288

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT - 34 + 7 * 54 + + - 56 - COUNT ( * ) / - 23 AS col1
----
288

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

query II rowsort
SELECT + 72 AS col1, + 86 * 29 * - - NULLIF ( + + 43, + 64 ) col0
----
72
107242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8331
SELECT - COALESCE ( - ( 95 ), 18 / + 17, + 20 * - - ( - - 41 ) ) * 52 * + COUNT( DISTINCT + 45 ) / + - 76 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8331
SELECT - COALESCE ( - ( 95 ), 18 / + 17, + 20 * - - ( - - 41 ) ) * 52 * + COUNT ( DISTINCT + 45 ) / + - 76 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT 36 * NULLIF ( - - 10, 89 - 5 * + + COUNT( * ) ) * + 92 + MAX( ALL + 18 ) + - - 15
----
33153

skipif mysql # not compatible
query I rowsort label-8332
SELECT 36 * NULLIF ( - - 10, 89 - 5 * + + COUNT ( * ) ) * + 92 + MAX ( ALL + 18 ) + - - 15
----
33153

onlyif mysql # aggregate syntax: 
query II rowsort label-8333
SELECT DISTINCT - ( + - NULLIF ( 66, 73 ) ) AS col1, - MAX( ALL - 27 ) * - 40 AS col1
----
66
-1080

skipif mysql # not compatible
query II rowsort label-8333
SELECT DISTINCT - ( + - NULLIF ( 66, 73 ) ) AS col1, - MAX ( ALL - 27 ) * - 40 AS col1
----
66
-1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8334
SELECT DISTINCT - COUNT( ALL + 88 ) * - 62 DIV ( - 93 ) + + - 76 * - COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT - COUNT ( ALL + 88 ) * - 62 / ( - 93 ) + + - 76 * - COUNT ( * ) AS col2
----
76

query I rowsort
SELECT 51 * + 49 AS col0
----
2499

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8336
SELECT ALL + CAST( NULL AS DECIMAL ) - - SUM( DISTINCT + 12 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL + CAST ( NULL AS REAL ) - - SUM ( DISTINCT + 12 ) AS col1
----
NULL

query II rowsort
SELECT 72, 82 col2
----
72
82

query I rowsort
SELECT 38 * - 95
----
-3610

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT ALL - CASE - 25 WHEN COUNT( 95 ) * - 24 THEN 73 * + 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL - CASE - 25 WHEN COUNT ( 95 ) * - 24 THEN 73 * + 71 END
----
NULL

query II rowsort
SELECT DISTINCT - - 63 AS col1, + NULLIF ( + 57, + 49 )
----
63
57

query II rowsort
SELECT ALL - 95 AS col2, + NULLIF ( + 71, + 61 + 47 ) * + 65 AS col2
----
-95
4615

query II rowsort
SELECT ALL 33, + 88 * ( + - 29 ) + + + 29 col0
----
33
-2523

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

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

query I rowsort
SELECT + NULLIF ( - - 13, - + 99 * 17 * + + 15 + + - 22 ) * 90 + 60 - + 34 + - - 61
----
1257

query I rowsort
SELECT ALL 8 + + - 25
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8346
SELECT 77 + - MAX( ALL - 41 ) + - - CAST( - 39 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-8346
SELECT 77 + - MAX ( ALL - 41 ) + - - CAST ( - 39 AS INTEGER )
----
79

query II rowsort
SELECT + 45 AS col1, - 23
----
45
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8348
SELECT COALESCE ( - 87, + 41 * - 18 + - COALESCE ( - 85, 20, + - ( CASE WHEN NOT NULL IS NULL THEN 95 END ) ) + - - 58 + 9 * - + 63 * - 72 ) * + - COUNT( + CAST( 0 AS SIGNED ) ) * + - 76
----
-6612

skipif mysql # not compatible
query I rowsort label-8348
SELECT COALESCE ( - 87, + 41 * - 18 + - COALESCE ( - 85, 20, + - ( CASE WHEN NOT NULL IS NULL THEN 95 END ) ) + - - 58 + 9 * - + 63 * - 72 ) * + - COUNT ( + CAST ( 0 AS INTEGER ) ) * + - 76
----
-6612

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8349
SELECT DISTINCT 23 AS col2, NULLIF ( + 69, + 72 / ( - - CAST( NULL AS SIGNED ) ) ) + 46
----
23
115

skipif mysql # not compatible
query II rowsort label-8349
SELECT DISTINCT 23 AS col2, NULLIF ( + 69, + 72 / ( - - CAST ( NULL AS INTEGER ) ) ) + 46
----
23
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT 16 + + - 81 + - ( + MAX( 39 ) )
----
-104

skipif mysql # not compatible
query I rowsort label-8350
SELECT 16 + + - 81 + - ( + MAX ( 39 ) )
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT DISTINCT CASE + 17 WHEN 17 THEN COUNT( * ) END + 30 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8351
SELECT DISTINCT CASE + 17 WHEN 17 THEN COUNT ( * ) END + 30 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8352
SELECT ALL - COUNT( DISTINCT - + 43 ) + - 55 * - + CASE - 87 WHEN 63 + 88 + + - COUNT( * ) * + - COALESCE ( + COUNT( * ), + + 74, 85 * 39 ) + + COUNT( * ) - - 92 THEN NULL WHEN 54 THEN NULL ELSE CASE + 13 WHEN 58 * - CAST( NULL AS SIGNED ) + ( - COUNT( * ) ) + ( - - 78 ) * 2 THEN - - 68 WHEN + 68 THEN NULL ELSE - + 52 END END * 82 AS col2
----
-234521

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL - COUNT ( DISTINCT - + 43 ) + - 55 * - + CASE - 87 WHEN 63 + 88 + + - COUNT ( * ) * + - COALESCE ( + COUNT ( * ), + + 74, 85 * 39 ) + + COUNT ( * ) - - 92 THEN NULL WHEN 54 THEN NULL ELSE CASE + 13 WHEN 58 * - CAST ( NULL AS INTEGER ) + ( - COUNT ( * ) ) + ( - - 78 ) * 2 THEN - - 68 WHEN + 68 THEN NULL ELSE - + 52 END END * 82 AS col2
----
-234521

onlyif mysql # DIV for integer division: 
query I rowsort label-8353
SELECT ALL - 85 DIV - + 34
----
2

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL - 85 / - + 34
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT SUM( + - 84 ) + - 97 AS col2
----
-181

skipif mysql # not compatible
query I rowsort label-8355
SELECT SUM ( + - 84 ) + - 97 AS col2
----
-181

query I rowsort
SELECT 17 * - 19 AS col1
----
-323

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT 91 + MIN( ALL + 51 ) * 17 AS col2
----
958

skipif mysql # not compatible
query I rowsort label-8357
SELECT 91 + MIN ( ALL + 51 ) * 17 AS col2
----
958

query I rowsort
SELECT 26 + - 25 AS col0
----
1

query I rowsort
SELECT 36 + 2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL - CASE + SUM( 27 ) WHEN - ( + COUNT( ALL + - ( 37 ) ) ) THEN + COUNT( * ) * 38 ELSE - + 96 END AS col0
----
96

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL - CASE + SUM ( 27 ) WHEN - ( + COUNT ( ALL + - ( 37 ) ) ) THEN + COUNT ( * ) * 38 ELSE - + 96 END AS col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8361
SELECT DISTINCT - CASE 84 WHEN + COUNT( DISTINCT 96 ) THEN - + 12 * + COUNT( * ) / + + 54 END AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8361
SELECT DISTINCT - CASE 84 WHEN + COUNT ( DISTINCT 96 ) THEN - + 12 * + COUNT ( * ) / + + 54 END AS col0, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT COUNT( * ) * - 81 col1
----
-81

skipif mysql # not compatible
query I rowsort label-8362
SELECT COUNT ( * ) * - 81 col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8363
SELECT 39 * + - ( + + 86 ) + + 86 + - 17 + CAST( NULL AS SIGNED ) * - 40 * + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT 39 * + - ( + + 86 ) + + 86 + - 17 + CAST ( NULL AS INTEGER ) * - 40 * + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8364
SELECT + MIN( + 79 ) * + COUNT( - - 10 ) + + 17 - + COUNT( * ) * + COUNT( * ) * + 70 DIV + 47 + - + 64 * + - 73 AS col2
----
4767

skipif mysql # not compatible
query I rowsort label-8364
SELECT + MIN ( + 79 ) * + COUNT ( - - 10 ) + + 17 - + COUNT ( * ) * + COUNT ( * ) * + 70 / + 47 + - + 64 * + - 73 AS col2
----
4767

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8366
SELECT 51 DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-8366
SELECT 51 / - 53
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8368
SELECT - 53 DIV - - 69
----
0

skipif mysql # not compatible
query I rowsort label-8368
SELECT - 53 / - - 69
----
0

query I rowsort
SELECT - 23 + - 28
----
-51

query I rowsort
SELECT ALL + 41 + - 59
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8371
SELECT - - MAX( 23 ) DIV 90 * - MAX( + ( + 33 ) ) * + - COALESCE ( - 96, 65 )
----
0

skipif mysql # not compatible
query I rowsort label-8371
SELECT - - MAX ( 23 ) / 90 * - MAX ( + ( + 33 ) ) * + - COALESCE ( - 96, 65 )
----
0

query I rowsort
SELECT - + 76 * - 86 + - 72 + + 22
----
6486

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT + SUM( DISTINCT 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8373
SELECT + SUM ( DISTINCT 7 ) AS col2
----
7

query I rowsort
SELECT DISTINCT COALESCE ( - NULLIF ( + + 86, + - 27 ), + + 61 ) + 98
----
12

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

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

query I rowsort
SELECT DISTINCT + 67 + 73 * + 59
----
4374

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT DISTINCT - 56 * + + 90 * COUNT( + 2 ) AS col2
----
-5040

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT - 56 * + + 90 * COUNT ( + 2 ) AS col2
----
-5040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8378
SELECT DISTINCT + 98 + - 40 AS col1, COUNT( ALL 51 ) + + + ( + 7 ) * + CAST( - ( - AVG ( ALL + 20 ) ) AS SIGNED ) AS col0
----
58
141

skipif mysql # not compatible
query II rowsort label-8378
SELECT DISTINCT + 98 + - 40 AS col1, COUNT ( ALL 51 ) + + + ( + 7 ) * + CAST ( - ( - AVG ( ALL + 20 ) ) AS INTEGER ) AS col0
----
58
141

query I rowsort
SELECT COALESCE ( + 25, + 0 ) AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8380
SELECT ALL CAST( NULL AS SIGNED ) + 53 * 66 * - + COUNT( * ) * + - 26 + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL CAST ( NULL AS INTEGER ) + 53 * 66 * - + COUNT ( * ) * + - 26 + 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8381
SELECT - - COALESCE ( - 45, NULLIF ( + 94, + - 92 - - - 61 + 19 * COUNT( * ) * + - 36 * - 64 / - + 67 * ( + 58 ) / COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) ) * + 59, + 63 )
----
-45

skipif mysql # not compatible
query I rowsort label-8381
SELECT - - COALESCE ( - 45, NULLIF ( + 94, + - 92 - - - 61 + 19 * COUNT ( * ) * + - 36 * - 64 / - + 67 * ( + 58 ) / COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) * + 59, + 63 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT - - 84 * - 45 * - - CASE - 72 WHEN 91 THEN COUNT( * ) WHEN + 31 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT - - 84 * - 45 * - - CASE - 72 WHEN 91 THEN COUNT ( * ) WHEN + 31 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT + + 79 * + - 1 * MAX( - 77 ) + + NULLIF ( - 61, + + ( 22 ) ) * - 47
----
8950

skipif mysql # not compatible
query I rowsort label-8383
SELECT + + 79 * + - 1 * MAX ( - 77 ) + + NULLIF ( - 61, + + ( 22 ) ) * - 47
----
8950

onlyif mysql # aggregate syntax: 
query II rowsort label-8384
SELECT ALL 59 col2, COALESCE ( - COUNT( * ), - - 51 * - - 39 + 33 * - 96 * - - ( + CASE + + 32 WHEN 65 - COUNT( * ) + - 19 * - ( - 86 ) THEN NULL WHEN - 31 + + - 3 THEN NULL ELSE - 79 END ) * + - 63 * - 98 * - ( + 71 ) ) + 45 + + 97
----
59
141

skipif mysql # not compatible
query II rowsort label-8384
SELECT ALL 59 col2, COALESCE ( - COUNT ( * ), - - 51 * - - 39 + 33 * - 96 * - - ( + CASE + + 32 WHEN 65 - COUNT ( * ) + - 19 * - ( - 86 ) THEN NULL WHEN - 31 + + - 3 THEN NULL ELSE - 79 END ) * + - 63 * - 98 * - ( + 71 ) ) + 45 + + 97
----
59
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8385
SELECT - NULLIF ( - 6, 2 * - - 96 / + 78 / 63 + + - 48 * - + 1 / + 89 + CAST( + 76 AS SIGNED ) )
----
6

skipif mysql # not compatible
query I rowsort label-8385
SELECT - NULLIF ( - 6, 2 * - - 96 / + 78 / 63 + + - 48 * - + 1 / + 89 + CAST ( + 76 AS INTEGER ) )
----
6

query I rowsort
SELECT ALL COALESCE ( + + 37, 48 ) - ( - - 54 )
----
-17

query I rowsort
SELECT + 21 * 23
----
483

onlyif mysql # aggregate syntax: 
query II rowsort label-8388
SELECT ALL 70 AS col0, - 3 * COUNT( * ) * - COUNT( ALL + 89 ) + - 34 AS col2
----
70
-31

skipif mysql # not compatible
query II rowsort label-8388
SELECT ALL 70 AS col0, - 3 * COUNT ( * ) * - COUNT ( ALL + 89 ) + - 34 AS col2
----
70
-31

query I rowsort
SELECT - NULLIF ( - 74, + 82 ) AS col1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8390
SELECT + 85 DIV + 62 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8390
SELECT + 85 / + 62 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT + COUNT( ALL - + 94 ) * COUNT( * ) * + MIN( + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-8391
SELECT + COUNT ( ALL - + 94 ) * COUNT ( * ) * + MIN ( + 44 )
----
44

query I rowsort
SELECT 53 * + 62 + 43 * + 43
----
5135

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

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

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

skipif mysql # not compatible
query I rowsort label-8394
SELECT + NULLIF ( + COUNT ( * ), + + ( 1 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT - 84 + - - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-8395
SELECT - 84 + - - COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT ALL + MIN( + + 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL + MIN ( + + 93 ) AS col0
----
93

query II rowsort
SELECT + 44 AS col2, 3 * - + 92
----
44
-276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8398
SELECT + CAST( NULL AS SIGNED ) * + + 25 * - 62 * + 19 - + CAST( MIN( + 27 ) AS SIGNED ) + - 49 + + 27 * - CAST( NULL AS SIGNED ) + - ( - + CAST( + 91 AS SIGNED ) ) * - COUNT( * ) * - - 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8398
SELECT + CAST ( NULL AS INTEGER ) * + + 25 * - 62 * + 19 - + CAST ( MIN ( + 27 ) AS INTEGER ) + - 49 + + 27 * - CAST ( NULL AS INTEGER ) + - ( - + CAST ( + 91 AS INTEGER ) ) * - COUNT ( * ) * - - 43 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8399
SELECT DISTINCT - 17 * + 30 + - 47 * + CAST( + 94 AS SIGNED )
----
-4928

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT - 17 * + 30 + - 47 * + CAST ( + 94 AS INTEGER )
----
-4928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8400
SELECT ALL MIN( - 20 ) * + CASE 21 WHEN + 41 * + 48 * - + 87 + - COUNT( * ) + + 64 + + 28 + 87 + 81 * 93 * 95 THEN + 64 + + MAX( ALL - - 51 ) - + 66 END + + + CAST( NULL AS SIGNED ) + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL MIN ( - 20 ) * + CASE 21 WHEN + 41 * + 48 * - + 87 + - COUNT ( * ) + + 64 + + 28 + 87 + 81 * 93 * 95 THEN + 64 + + MAX ( ALL - - 51 ) - + 66 END + + + CAST ( NULL AS INTEGER ) + 47
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8401
SELECT + + 64 - 73 / - CASE - NULLIF ( 71, + - COALESCE ( ( 55 ), 20 - 8 + ( + COUNT( * ) ) + NULLIF ( + - 20, - 34 ) ) * 15 * - 25 + + - 48 - + + 65 + + 13 + - + 57 + CAST( 3 AS SIGNED ) / + NULLIF ( + + COUNT( - 74 ), - - 97 + 69 ) ) WHEN - 82 * - - 85 + - 16 * + 33 * + CASE COALESCE ( + 13, CAST( NULL AS SIGNED ) ) WHEN - 70 THEN NULL ELSE ( 99 ) END + COALESCE ( - 9, AVG ( + 50 ), 73, - 71 * 58 ) THEN 40 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8401
SELECT + + 64 - 73 / - CASE - NULLIF ( 71, + - COALESCE ( ( 55 ), 20 - 8 + ( + COUNT ( * ) ) + NULLIF ( + - 20, - 34 ) ) * 15 * - 25 + + - 48 - + + 65 + + 13 + - + 57 + CAST ( 3 AS INTEGER ) / + NULLIF ( + + COUNT ( - 74 ), - - 97 + 69 ) ) WHEN - 82 * - - 85 + - 16 * + 33 * + CASE COALESCE ( + 13, CAST ( NULL AS INTEGER ) ) WHEN - 70 THEN NULL ELSE ( 99 ) END + COALESCE ( - 9, AVG ( + 50 ), 73, - 71 * 58 ) THEN 40 END AS col2
----
NULL

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

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

query II rowsort
SELECT DISTINCT + - 86 AS col0, + 30 AS col1
----
-86
30

query I rowsort
SELECT DISTINCT - 86 * 17 * 39 + + ( + 34 ) AS col1
----
-56984

query I rowsort
SELECT ALL 94 * - + 83 + 17 + - 14
----
-7799

query I rowsort
SELECT - ( + 59 ) - - 35
----
-24

query I rowsort
SELECT ALL 66 * 5 + + - 68
----
262

query I rowsort
SELECT - - 57 * - + 57
----
-3249

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

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

query I rowsort
SELECT - - CASE 73 WHEN + + 22 THEN + 50 + + 28 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8411
SELECT ALL - CAST( 87 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL - CAST ( 87 AS INTEGER )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT - COUNT( DISTINCT - 38 ) * + + ( + 75 ) * + 35
----
-2625

skipif mysql # not compatible
query I rowsort label-8412
SELECT - COUNT ( DISTINCT - 38 ) * + + ( + 75 ) * + 35
----
-2625

query I rowsort
SELECT - + 38 + + 86
----
48

query I rowsort
SELECT ALL CASE - 18 WHEN - 77 THEN - + 64 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL ( 66 ) col0
----
66

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

query I rowsort
SELECT DISTINCT + 75 * - - 30 * 99 * + ( ( + 6 ) )
----
1336500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8418
SELECT + COUNT( ALL 60 ) * - 31 * SUM( ALL + 92 ) DIV 47
----
-60

skipif mysql # not compatible
query I rowsort label-8418
SELECT + COUNT ( ALL 60 ) * - 31 * SUM ( ALL + 92 ) / 47
----
-60

query I rowsort
SELECT - 79 * - ( + 15 )
----
1185

query I rowsort
SELECT + 43 + + 90 col0
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT + ( 71 ) + - 80 + 56 * - + MIN( ( 2 ) )
----
-121

skipif mysql # not compatible
query I rowsort label-8421
SELECT + ( 71 ) + - 80 + 56 * - + MIN ( ( 2 ) )
----
-121

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8423
SELECT DISTINCT - ( 48 ) / + CASE 54 WHEN 73 THEN 94 * + 91 END * + - 61 * ( COALESCE ( + 9, - 82 - - - NULLIF ( - + 96, + COUNT( * ) - 95 / + 25 / + - AVG ( + 25 ) ), + - 13 + + CAST( - - NULLIF ( + 65, + 2 + 33 ) AS SIGNED ), - 86 ) ) + 21 * - - 75 * + 75 * + 76 * + COUNT( * ) - - ( - ( + + 43 ) ) + - COUNT( * ) + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT - ( 48 ) / + CASE 54 WHEN 73 THEN 94 * + 91 END * + - 61 * ( COALESCE ( + 9, - 82 - - - NULLIF ( - + 96, + COUNT ( * ) - 95 / + 25 / + - AVG ( + 25 ) ), + - 13 + + CAST ( - - NULLIF ( + 65, + 2 + 33 ) AS INTEGER ), - 86 ) ) + 21 * - - 75 * + 75 * + 76 * + COUNT ( * ) - - ( - ( + + 43 ) ) + - COUNT ( * ) + 88
----
NULL

query I rowsort
SELECT ALL 95 * + 97
----
9215

onlyif mysql # DIV for integer division: 
query I rowsort label-8425
SELECT ALL 85 DIV + - 85 + 27
----
26

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL 85 / + - 85 + 27
----
26

query I rowsort
SELECT + CASE 22 WHEN 42 THEN - COALESCE ( + 91, + 36 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8427
SELECT - - COUNT( * ) * - 84 + - 7 DIV 64 + 26 + - + CASE ( + - COUNT( * ) ) WHEN + 37 + COUNT( * ) + + 40 + 24 + - 27 * + 45 * - 21 THEN + + ( COUNT( * ) ) * COALESCE ( + 56, 41, + 32 DIV - 64 ) DIV + ( + - NULLIF ( COUNT( * ), - 62 ) ) ELSE 96 * COUNT( * ) * - 74 END AS col1
----
7046

skipif mysql # not compatible
query I rowsort label-8427
SELECT - - COUNT ( * ) * - 84 + - 7 / 64 + 26 + - + CASE ( + - COUNT ( * ) ) WHEN + 37 + COUNT ( * ) + + 40 + 24 + - 27 * + 45 * - 21 THEN + + ( COUNT ( * ) ) * COALESCE ( + 56, 41, + 32 / - 64 ) / + ( + - NULLIF ( COUNT ( * ), - 62 ) ) ELSE 96 * COUNT ( * ) * - 74 END AS col1
----
7046

query I rowsort
SELECT + 0 - - + 68 + 48 AS col2
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8429
SELECT DISTINCT CASE - 21 WHEN 23 * + COUNT( * ) THEN - + 92 * 42 + - ( - COUNT( * ) ) END * - CASE - 98 WHEN 7 * + 60 + - 32 THEN - COUNT( * ) WHEN 12 + + 91 * - 7 THEN - - 63 * - + COUNT( * ) * + CAST( NULL AS SIGNED ) * + 8 - 9 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT CASE - 21 WHEN 23 * + COUNT ( * ) THEN - + 92 * 42 + - ( - COUNT ( * ) ) END * - CASE - 98 WHEN 7 * + 60 + - 32 THEN - COUNT ( * ) WHEN 12 + + 91 * - 7 THEN - - 63 * - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 8 - 9 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8430
SELECT ALL + ( + - COUNT( * ) ) * 7 * + 95, 73 + 15 * + 12 AS col1
----
-665
253

skipif mysql # not compatible
query II rowsort label-8430
SELECT ALL + ( + - COUNT ( * ) ) * 7 * + 95, 73 + 15 * + 12 AS col1
----
-665
253

query I rowsort
SELECT - 44 + + 51 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8432
SELECT + 67 + - - CAST( - - 16 AS SIGNED ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8432
SELECT + 67 + - - CAST ( - - 16 AS INTEGER ) AS col2
----
83

query I rowsort
SELECT DISTINCT + 22 * 62
----
1364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8434
SELECT MIN( - 36 ) * COALESCE ( + 46, + COUNT( * ) * + 11 DIV + ( + 6 ) ) DIV - 20 + 99
----
181

skipif mysql # not compatible
query I rowsort label-8434
SELECT MIN ( - 36 ) * COALESCE ( + 46, + COUNT ( * ) * + 11 / + ( + 6 ) ) / - 20 + 99
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT DISTINCT - NULLIF ( COUNT( * ), - 97 + - + AVG ( ALL - + 94 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT - NULLIF ( COUNT ( * ), - 97 + - + AVG ( ALL - + 94 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT + + NULLIF ( 62, + ( + - 82 ) ) * - 33 + - COUNT( * ) + - SUM( - 48 ) AS col0
----
-1999

skipif mysql # not compatible
query I rowsort label-8436
SELECT + + NULLIF ( 62, + ( + - 82 ) ) * - 33 + - COUNT ( * ) + - SUM ( - 48 ) AS col0
----
-1999

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT ALL + 72 + - SUM( DISTINCT - + 73 ) * - - 37 + - NULLIF ( - 50, - 64 + 74 ) * + + 97 * 46 AS col2
----
225873

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL + 72 + - SUM ( DISTINCT - + 73 ) * - - 37 + - NULLIF ( - 50, - 64 + 74 ) * + + 97 * 46 AS col2
----
225873

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8438
SELECT + 7 + + 37 AS col0, - ( - + COUNT( * ) ) * 39 DIV 69 col1
----
44
0

skipif mysql # not compatible
query II rowsort label-8438
SELECT + 7 + + 37 AS col0, - ( - + COUNT ( * ) ) * 39 / 69 col1
----
44
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8439
SELECT + + COALESCE ( - 41, + CASE + - AVG ( - 16 ) WHEN + COUNT( * ) THEN + 99 END ) AS col0, - COUNT( * ) AS col1
----
-41
-1

skipif mysql # not compatible
query II rowsort label-8439
SELECT + + COALESCE ( - 41, + CASE + - AVG ( - 16 ) WHEN + COUNT ( * ) THEN + 99 END ) AS col0, - COUNT ( * ) AS col1
----
-41
-1

query I rowsort
SELECT - 60 * + 89 * + 73 AS col0
----
-389820

query I rowsort
SELECT 21 + + 96 AS col0
----
117

query I rowsort
SELECT ALL 99 * - 59 + 28
----
-5813

query I rowsort
SELECT ALL - 57 * + 86
----
-4902

query I rowsort
SELECT 1 * + 15 * 86
----
1290

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

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

query I rowsort
SELECT ALL 86 * - 45 AS col1
----
-3870

query I rowsort
SELECT 32 * NULLIF ( + 15, - 90 * - 53 )
----
480

query II rowsort
SELECT 22 AS col0, + 50 AS col0
----
22
50

query I rowsort
SELECT ( 87 ) - 8 * ( 51 ) + - 80 - 80 AS col0
----
-481

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

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

query I rowsort
SELECT 32 * - + 29
----
-928

onlyif mysql # aggregate syntax: 
query II rowsort label-8452
SELECT - 80 col1, + 45 * - - COUNT( * ) + + 75
----
-80
120

skipif mysql # not compatible
query II rowsort label-8452
SELECT - 80 col1, + 45 * - - COUNT ( * ) + + 75
----
-80
120

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

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL - COUNT ( * ) / - 17 * - + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT 51 - + - MAX( 60 ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-8454
SELECT 51 - + - MAX ( 60 ) AS col0
----
111

query I rowsort
SELECT ALL 19 + - 60 - - + 28
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT MAX( DISTINCT COALESCE ( - 81, - 85 - + 61 * - 74 ) ) + COUNT( * ) + + NULLIF ( + ( - 10 ), + 26 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-8456
SELECT MAX ( DISTINCT COALESCE ( - 81, - 85 - + 61 * - 74 ) ) + COUNT ( * ) + + NULLIF ( + ( - 10 ), + 26 ) AS col2
----
-90

query I rowsort
SELECT ALL + 27 + - 82 * 46 + 43 AS col0
----
-3702

query II rowsort
SELECT 17 AS col2, - 80
----
17
-80

query I rowsort
SELECT ALL - 18 + - 24
----
-42

query II rowsort
SELECT + 56 AS col1, - 86 * 24
----
56
-2064

query I rowsort
SELECT ALL - 62 + 39
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-8462
SELECT DISTINCT - NULLIF ( 33, + COUNT( * ) * + + MIN( ALL + 94 ) ) AS col0, 16 AS col1
----
-33
16

skipif mysql # not compatible
query II rowsort label-8462
SELECT DISTINCT - NULLIF ( 33, + COUNT ( * ) * + + MIN ( ALL + 94 ) ) AS col0, 16 AS col1
----
-33
16

query I rowsort
SELECT ALL - 13 * 22
----
-286

query I rowsort
SELECT ALL - - 11 - + + 34 AS col1
----
-23

query I rowsort
SELECT ALL - COALESCE ( + 22, - 64 ) AS col0
----
-22

query I rowsort
SELECT DISTINCT + 79 * + + 14
----
1106

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

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

query I rowsort
SELECT - 5 * - 5
----
25

query I rowsort
SELECT 47 - 41 AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8470
SELECT - ( + 97 ) DIV + 89 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8470
SELECT - ( + 97 ) / + 89 AS col2
----
-1

query I rowsort
SELECT ALL 88 * - + 10
----
-880

query I rowsort
SELECT - 71 * + NULLIF ( + 53, - 58 ) AS col0
----
-3763

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8474
SELECT + ( - 87 ) DIV - ( - 65 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8474
SELECT + ( - 87 ) / - ( - 65 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 75 * 79
----
-5925

query I rowsort
SELECT ALL - 16 * + 18 * - + 41 AS col2
----
11808

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT COUNT( * ) - - 32 + + - COUNT( + + 63 )
----
32

skipif mysql # not compatible
query I rowsort label-8477
SELECT COUNT ( * ) - - 32 + + - COUNT ( + + 63 )
----
32

query I rowsort
SELECT + ( - - 83 ) - - - 20 * ( - 4 ) * - + 79
----
-6237

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT 21 * 98 + 79 * - COUNT( * ) * 49 AS col1
----
-1813

skipif mysql # not compatible
query I rowsort label-8479
SELECT 21 * 98 + 79 * - COUNT ( * ) * 49 AS col1
----
-1813

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT 42 * + SUM( DISTINCT 12 )
----
504

skipif mysql # not compatible
query I rowsort label-8480
SELECT 42 * + SUM ( DISTINCT 12 )
----
504

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8482
SELECT COALESCE ( + 27, COALESCE ( - 42, - - 20, - CAST( 56 AS SIGNED ) ) + - 50 * + 6 ) + + 72 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8482
SELECT COALESCE ( + 27, COALESCE ( - 42, - - 20, - CAST ( 56 AS INTEGER ) ) + - 50 * + 6 ) + + 72 AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT + 40 * + 40 * - 18 - + 90 + - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8483
SELECT + 40 * + 40 * - 18 - + 90 + - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + 55 AS col1
----
NULL

query II rowsort
SELECT 75 AS col1, 71 col0
----
75
71

query I rowsort
SELECT ALL 50 * + 40 col0
----
2000

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT ALL + 58 + - COUNT( 19 ) col2
----
57

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL + 58 + - COUNT ( 19 ) col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8487
SELECT ALL 96 + - 20 + - 41 + + 49 * - 16 * CAST( 7 AS SIGNED ) AS col2
----
-5453

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL 96 + - 20 + - 41 + + 49 * - 16 * CAST ( 7 AS INTEGER ) AS col2
----
-5453

onlyif mysql # aggregate syntax: 
query II rowsort label-8488
SELECT ALL + 31 + + ( + 22 ) + - 28 - - COUNT( * ) * ( - - 31 ) AS col2, 18 * - 35 + + 8
----
56
-622

skipif mysql # not compatible
query II rowsort label-8488
SELECT ALL + 31 + + ( + 22 ) + - 28 - - COUNT ( * ) * ( - - 31 ) AS col2, 18 * - 35 + + 8
----
56
-622

query I rowsort
SELECT 70 + - 50
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8490
SELECT COUNT( * ) * + 10 DIV + 35 col2
----
0

skipif mysql # not compatible
query I rowsort label-8490
SELECT COUNT ( * ) * + 10 / + 35 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8491
SELECT COUNT( * ) + 11 + 52 * + MIN( - NULLIF ( + 82, 76 + 60 ) ) * - 23 AS col1, 49 AS col1
----
98084
49

skipif mysql # not compatible
query II rowsort label-8491
SELECT COUNT ( * ) + 11 + 52 * + MIN ( - NULLIF ( + 82, 76 + 60 ) ) * - 23 AS col1, 49 AS col1
----
98084
49

query II rowsort
SELECT - 98 AS col1, 22
----
-98
22

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT DISTINCT - 14 + + - 60 + + + 26 DIV + - 67 + 47 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT - 14 + + - 60 + + + 26 / + - 67 + 47 AS col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-8495
SELECT ALL + 59 DIV + - 14
----
-4

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL + 59 / + - 14
----
-4

query II rowsort
SELECT 7 AS col0, + 31 AS col1
----
7
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8497
SELECT DISTINCT + 64 DIV 79 col2
----
0

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT + 64 / 79 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8498
SELECT + 79 DIV - 25 + - + COUNT( * ) + - 31
----
-35

skipif mysql # not compatible
query I rowsort label-8498
SELECT + 79 / - 25 + - + COUNT ( * ) + - 31
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-8499
SELECT ALL + - 36 AS col2, CASE - 18 WHEN - 69 * - ( - - SUM( DISTINCT 69 ) ) / - 99 * - 78 THEN + 23 END AS col2
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-8499
SELECT ALL + - 36 AS col2, CASE - 18 WHEN - 69 * - ( - - SUM ( DISTINCT 69 ) ) / - 99 * - 78 THEN + 23 END AS col2
----
-36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT DISTINCT - + 58 * - COUNT( * ) * 19 * 15 * + - 53 AS col1
----
-876090

skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT - + 58 * - COUNT ( * ) * 19 * 15 * + - 53 AS col1
----
-876090

query II rowsort
SELECT ALL + 72 col1, - 62
----
72
-62

query I rowsort
SELECT + 87 / ( - 76 ) + - - CASE + - ( 68 ) WHEN - 22 * + 73 + - 81 + + 9 THEN - 16 ELSE NULL END * 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8503
SELECT + COUNT( * ) * - 72 * + CAST( 5 AS SIGNED ), 29 * - CAST( NULL AS DECIMAL ) / 73 * + - 26 + AVG ( ALL - ( - 0 ) ) AS col1
----
-360
NULL

skipif mysql # not compatible
query II rowsort label-8503
SELECT + COUNT ( * ) * - 72 * + CAST ( 5 AS INTEGER ), 29 * - CAST ( NULL AS REAL ) / 73 * + - 26 + AVG ( ALL - ( - 0 ) ) AS col1
----
-360
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8505
SELECT - 91 * + 10 * - 75 - + + MIN( DISTINCT + - 41 ) + + - 55 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8505
SELECT - 91 * + 10 * - 75 - + + MIN ( DISTINCT + - 41 ) + + - 55 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8506
SELECT - 65 + CAST( - 96 AS SIGNED ) col2
----
-161

skipif mysql # not compatible
query I rowsort label-8506
SELECT - 65 + CAST ( - 96 AS INTEGER ) col2
----
-161

onlyif mysql # aggregate syntax: 
query II rowsort label-8507
SELECT - + MAX( ALL - 50 ) * ( + 32 ) * ( - - 11 ), - 90 - + COUNT( * ) + - - NULLIF ( - - MIN( - 83 ), AVG ( - 74 ) ) * + 90 AS col2
----
17600
-7561

skipif mysql # not compatible
query II rowsort label-8507
SELECT - + MAX ( ALL - 50 ) * ( + 32 ) * ( - - 11 ), - 90 - + COUNT ( * ) + - - NULLIF ( - - MIN ( - 83 ), AVG ( - 74 ) ) * + 90 AS col2
----
17600
-7561

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8508
SELECT DISTINCT + NULLIF ( 47, + 50 + - 53 / - + COUNT( * ) - + ( - CAST( - - 2 AS DECIMAL ) ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT + NULLIF ( 47, + 50 + - 53 / - + COUNT ( * ) - + ( - CAST ( - - 2 AS REAL ) ) ) AS col0
----
47

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8510
SELECT - NULLIF ( - 38, - + CAST( NULL AS DECIMAL ) ) * + 87 + COUNT( ALL - 42 )
----
3307

skipif mysql # not compatible
query I rowsort label-8510
SELECT - NULLIF ( - 38, - + CAST ( NULL AS REAL ) ) * + 87 + COUNT ( ALL - 42 )
----
3307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8511
SELECT CASE - MIN( + - 24 ) WHEN - + 47 THEN NULLIF ( 4, + 67 ) END, CAST( NULL AS SIGNED ) * 69 AS col1, - COUNT( + - 84 ) DIV 70 AS col1
----
NULL
NULL
0

skipif mysql # not compatible
query III rowsort label-8511
SELECT CASE - MIN ( + - 24 ) WHEN - + 47 THEN NULLIF ( 4, + 67 ) END, CAST ( NULL AS INTEGER ) * 69 AS col1, - COUNT ( + - 84 ) / 70 AS col1
----
NULL
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT ALL + 67 * + MIN( + 64 ) + + 92 + + COALESCE ( 58, + 88 + - COUNT( 20 ) + + - 81 ) AS col1
----
4438

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL + 67 * + MIN ( + 64 ) + + 92 + + COALESCE ( 58, + 88 + - COUNT ( 20 ) + + - 81 ) AS col1
----
4438

query I rowsort
SELECT DISTINCT - 84 * + + 42 * ( 35 ) + + 39
----
-123441

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8515
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) + + - 13 + + 73 + MIN( ALL 92 ) + 43 - - 5 * - COUNT( * )
----
191

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) + + - 13 + + 73 + MIN ( ALL 92 ) + 43 - - 5 * - COUNT ( * )
----
191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8516
SELECT DISTINCT 55 + - 54, COALESCE ( - - 52, + 43, - + CAST( + - 65 AS SIGNED ) * - 76 + - CASE + 49 WHEN - 5 THEN - COUNT( * ) + 20 + 99 DIV + 60 * 17 * MIN( DISTINCT - 28 ) * - - 17 * - COALESCE ( - 92, 8 * + 86 DIV + NULLIF ( + COUNT( * ), + 91 ) ) * + 47 WHEN + + ( + COUNT( * ) ) THEN NULL ELSE NULL END * + - 39 - - - 42 ) AS col1
----
1
52

skipif mysql # not compatible
query II rowsort label-8516
SELECT DISTINCT 55 + - 54, COALESCE ( - - 52, + 43, - + CAST ( + - 65 AS INTEGER ) * - 76 + - CASE + 49 WHEN - 5 THEN - COUNT ( * ) + 20 + 99 / + 60 * 17 * MIN ( DISTINCT - 28 ) * - - 17 * - COALESCE ( - 92, 8 * + 86 / + NULLIF ( + COUNT ( * ), + 91 ) ) * + 47 WHEN + + ( + COUNT ( * ) ) THEN NULL ELSE NULL END * + - 39 - - - 42 ) AS col1
----
1
52

query I rowsort
SELECT ALL 79 + 72 + + - 7
----
144

query I rowsort
SELECT + 84 * - CASE + 51 WHEN + - 17 THEN 90 * - AVG ( - + ( - + 69 ) ) + 13 + - - 27 - + - 47 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT ALL MAX( - 51 ) + + 54
----
3

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL MAX ( - 51 ) + + 54
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL 43 + + MIN( + 89 ) AS col1
----
132

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL 43 + + MIN ( + 89 ) AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT - COALESCE ( - + 99, SUM( 67 ), - - 50 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8521
SELECT - COALESCE ( - + 99, SUM ( 67 ), - - 50 ) AS col1
----
99

query I rowsort
SELECT DISTINCT 78 - - 77 + + 64 col2
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT ALL MAX( 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL MAX ( 64 ) AS col1
----
64

query I rowsort
SELECT - ( - 17 ) col2
----
17

query I rowsort
SELECT + 46 + + - 84 AS col2
----
-38

query I rowsort
SELECT - 51 - + 87
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT ALL NULLIF ( - - CASE + 4 WHEN - 7 - 62 THEN - + 73 END, - - 84 + AVG ( ALL 42 ) + + COUNT( * ) ) * + 20 + CASE - 10 WHEN NULLIF ( + 81, - COUNT( * ) / - 45 + + 49 * - 58 + 64 + + + 33 ) THEN - 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL NULLIF ( - - CASE + 4 WHEN - 7 - 62 THEN - + 73 END, - - 84 + AVG ( ALL 42 ) + + COUNT ( * ) ) * + 20 + CASE - 10 WHEN NULLIF ( + 81, - COUNT ( * ) / - 45 + + 49 * - 58 + 64 + + + 33 ) THEN - 35 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8528
SELECT - CAST( NULL AS DECIMAL ) / + + COUNT( * ) + + 63 * - 94 + + 93 * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT - CAST ( NULL AS REAL ) / + + COUNT ( * ) + + 63 * - 94 + + 93 * - 38
----
NULL

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

query I rowsort
SELECT + - 30 * - 21 AS col2
----
630

query I rowsort
SELECT - 96 + + + 81 + 70 AS col2
----
55

query I rowsort
SELECT ALL + + 70 col2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8533
SELECT DISTINCT + - 18 DIV - - 49 + + 34 DIV 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8533
SELECT DISTINCT + - 18 / - - 49 + + 34 / 48 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8534
SELECT - 54 DIV + + 82
----
0

skipif mysql # not compatible
query I rowsort label-8534
SELECT - 54 / + + 82
----
0

query I rowsort
SELECT ALL + - ( - 55 ) * - + COALESCE ( + 60, - 34 * 84 ) AS col1
----
-3300

query I rowsort
SELECT ALL - 78 * - - 50
----
-3900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8537
SELECT ALL + - ( 12 ) DIV 60 + - COUNT( * ) DIV - 2 * 84 + ( 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL + - ( 12 ) / 60 + - COUNT ( * ) / - 2 * 84 + ( 65 ) AS col2
----
65

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8539
SELECT + - CAST( 85 AS SIGNED ), - 1 + - 26 * + + 81 AS col1
----
-85
-2107

skipif mysql # not compatible
query II rowsort label-8539
SELECT + - CAST ( 85 AS INTEGER ), - 1 + - 26 * + + 81 AS col1
----
-85
-2107

query I rowsort
SELECT + + NULLIF ( - 59, - ( + 67 ) )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8541
SELECT ALL + + 63 * 48 - - CAST( 58 AS SIGNED ) + - 74 AS col2, + 2 * + CASE + 16 WHEN + 42 THEN 82 + 27 END + - - 79
----
3008
NULL

skipif mysql # not compatible
query II rowsort label-8541
SELECT ALL + + 63 * 48 - - CAST ( 58 AS INTEGER ) + - 74 AS col2, + 2 * + CASE + 16 WHEN + 42 THEN 82 + 27 END + - - 79
----
3008
NULL

query I rowsort
SELECT ALL + NULLIF ( - - 1, 34 + + 14 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT DISTINCT + ( 53 ) * - + 15 + 62 * - - 75 + + 30 + + COUNT( * ) + + 20 + - - 16
----
3922

skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT + ( 53 ) * - + 15 + 62 * - - 75 + + 30 + + COUNT ( * ) + + 20 + - - 16
----
3922

query I rowsort
SELECT ALL 96 * + - 5 AS col0
----
-480

onlyif mysql # aggregate syntax: 
query II rowsort label-8545
SELECT - 30 AS col2, + 39 + COUNT( * ) AS col0
----
-30
40

skipif mysql # not compatible
query II rowsort label-8545
SELECT - 30 AS col2, + 39 + COUNT ( * ) AS col0
----
-30
40

query I rowsort
SELECT ALL 60 * - + 36 col0
----
-2160

query I rowsort
SELECT 60 + - + 19
----
41

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

query II rowsort
SELECT - 41 AS col0, - 13 AS col2
----
-41
-13

query I rowsort
SELECT DISTINCT - 14 - + 69
----
-83

query II rowsort
SELECT ALL 49 col0, 97 * + 15
----
49
1455

query I rowsort
SELECT ALL + 96 * 99 AS col2
----
9504

query II rowsort
SELECT 95 + - 48 * 97 col2, + 21 AS col1
----
-4561
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8554
SELECT ALL - NULLIF ( + - COUNT( * ), + SUM( - 65 ) + + COUNT( * ) * + - 78 ) DIV + 52 * - 62 + COALESCE ( - 35, COUNT( * ), 48 + + 51 ) * - COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL - NULLIF ( + - COUNT ( * ), + SUM ( - 65 ) + + COUNT ( * ) * + - 78 ) / + 52 * - 62 + COALESCE ( - 35, COUNT ( * ), 48 + + 51 ) * - COUNT ( * ) AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8555
SELECT CASE CAST( NULL AS SIGNED ) WHEN - - MAX( DISTINCT 22 ) * - + COUNT( * ) + - 22 + 34 THEN 84 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT CASE CAST ( NULL AS INTEGER ) WHEN - - MAX ( DISTINCT 22 ) * - + COUNT ( * ) + - 22 + 34 THEN 84 END col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8557
SELECT CAST( NULL AS SIGNED ) * SUM( 62 ) * 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8557
SELECT CAST ( NULL AS INTEGER ) * SUM ( 62 ) * 14 AS col1
----
NULL

query I rowsort
SELECT + 58 * - 97 AS col1
----
-5626

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8559
SELECT - CAST( NULL AS SIGNED ) + - + 66 / + + 8 AS col1, - 65 AS col2
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-8559
SELECT - CAST ( NULL AS INTEGER ) + - + 66 / + + 8 AS col1, - 65 AS col2
----
NULL
-65

query II rowsort
SELECT - - 42 AS col0, - 87 + + 30
----
42
-57

query I rowsort
SELECT ALL 55 * - 81 AS col1
----
-4455

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT ALL 64 * - + COUNT( 74 ) * - 14 + 31 AS col1
----
927

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL 64 * - + COUNT ( 74 ) * - 14 + 31 AS col1
----
927

onlyif mysql # aggregate syntax: 
query II rowsort label-8563
SELECT + 83 AS col1, - 63 * + 3 + - - COUNT( * ) col1
----
83
-188

skipif mysql # not compatible
query II rowsort label-8563
SELECT + 83 AS col1, - 63 * + 3 + - - COUNT ( * ) col1
----
83
-188

onlyif mysql # aggregate syntax: 
query II rowsort label-8564
SELECT ( + SUM( ALL + 23 ) ) AS col1, 53
----
23
53

skipif mysql # not compatible
query II rowsort label-8564
SELECT ( + SUM ( ALL + 23 ) ) AS col1, 53
----
23
53

query II rowsort
SELECT DISTINCT - + NULLIF ( + NULLIF ( 45, - 54 ), - - ( - 99 ) ) AS col1, 47
----
-45
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8566
SELECT ALL - 38 + + - 79 - - 84 AS col2, - COUNT( * ) * - - 31 * COALESCE ( + 35, 76 ) DIV - SUM( + 49 ) - + + 93
----
-33
-71

skipif mysql # not compatible
query II rowsort label-8566
SELECT ALL - 38 + + - 79 - - 84 AS col2, - COUNT ( * ) * - - 31 * COALESCE ( + 35, 76 ) / - SUM ( + 49 ) - + + 93
----
-33
-71

query II rowsort
SELECT ALL - 50 col0, 75 AS col2
----
-50
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT - COUNT( * ) + 75 * 15 col0
----
1124

skipif mysql # not compatible
query I rowsort label-8568
SELECT - COUNT ( * ) + 75 * 15 col0
----
1124

query I rowsort
SELECT + 44 * - - 32 + 94 AS col2
----
1502

onlyif mysql # DIV for integer division: 
query I rowsort label-8570
SELECT ALL - + 74 DIV 38 * 82 + 87 + + - 14 * 74
----
-1031

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL - + 74 / 38 * 82 + 87 + + - 14 * 74
----
-1031

query I rowsort
SELECT ALL 21 + 89 * 97
----
8654

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT ALL - 62 + MAX( DISTINCT - 8 ) - 11 * + 27
----
-367

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL - 62 + MAX ( DISTINCT - 8 ) - 11 * + 27
----
-367

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT ALL + 99 + 18 * + MAX( - + 5 ) + - - 27
----
36

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL + 99 + 18 * + MAX ( - + 5 ) + - - 27
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8574
SELECT ALL NULLIF ( COUNT( * ), - + 46 ) + + 22 DIV - 56
----
1

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL NULLIF ( COUNT ( * ), - + 46 ) + + 22 / - 56
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT ALL 73 DIV - + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL 73 / - + 75 AS col2
----
0

query II rowsort
SELECT DISTINCT - 54 * 24 AS col0, 57
----
-1296
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8577
SELECT ALL + 0 - + CAST( NULL AS SIGNED ) / 37 - + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL + 0 - + CAST ( NULL AS INTEGER ) / 37 - + 68
----
NULL

query I rowsort
SELECT DISTINCT + 82 - 33 * - 32 * 82 AS col1
----
86674

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8580
SELECT + 27 * + COALESCE ( - - MIN( 26 ), - 18 + - 96 ) + - + CAST( NULL AS SIGNED ) + - COUNT( * ) / + + 46 * - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT + 27 * + COALESCE ( - - MIN ( 26 ), - 18 + - 96 ) + - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) / + + 46 * - 28 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 82 - - ( - - 46 ) AS col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8582
SELECT 90 - - 8 * - - 97 * + - 93 AS col1, - COUNT( * ) * - + AVG ( DISTINCT - 31 ) + + 31 * - - CAST( + + ( - - 3 ) AS SIGNED ) - + 9 + CASE + 29 WHEN + 11 + 95 THEN - - 51 ELSE - 80 END * + - CASE + 57 WHEN - 25 THEN - + 18 * - + 40 * - + SUM( ALL + 16 ) ELSE NULL END AS col1
----
-72078
NULL

skipif mysql # not compatible
query II rowsort label-8582
SELECT 90 - - 8 * - - 97 * + - 93 AS col1, - COUNT ( * ) * - + AVG ( DISTINCT - 31 ) + + 31 * - - CAST ( + + ( - - 3 ) AS INTEGER ) - + 9 + CASE + 29 WHEN + 11 + 95 THEN - - 51 ELSE - 80 END * + - CASE + 57 WHEN - 25 THEN - + 18 * - + 40 * - + SUM ( ALL + 16 ) ELSE NULL END AS col1
----
-72078
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8583
SELECT - 42 DIV + 28 col2
----
-1

skipif mysql # not compatible
query I rowsort label-8583
SELECT - 42 / + 28 col2
----
-1

query I rowsort
SELECT - 81 * + ( - 50 )
----
4050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8585
SELECT 36 - + COALESCE ( - ( + 54 ), - + 31 * + CAST( NULL AS SIGNED ) + - 27 ), - COUNT( - 23 ) * - - ( 82 ) AS col1
----
90
-82

skipif mysql # not compatible
query II rowsort label-8585
SELECT 36 - + COALESCE ( - ( + 54 ), - + 31 * + CAST ( NULL AS INTEGER ) + - 27 ), - COUNT ( - 23 ) * - - ( 82 ) AS col1
----
90
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT - CASE - 82 WHEN 33 THEN NULL WHEN 53 * - 70 * + COUNT( * ) - 22 THEN ( + - 68 ) END - - + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8586
SELECT - CASE - 82 WHEN 33 THEN NULL WHEN 53 * - 70 * + COUNT ( * ) - 22 THEN ( + - 68 ) END - - + 75 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8587
SELECT + 8 / 85
----
0

query I rowsort
SELECT ALL - 2 + + - 85
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8589
SELECT DISTINCT - CAST( - 95 AS SIGNED ) * + 85 - - COUNT( * )
----
8076

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT - CAST ( - 95 AS INTEGER ) * + 85 - - COUNT ( * )
----
8076

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT + ( + + CASE 99 WHEN COUNT( * ) / - + CASE + 83 WHEN - ( + 35 ) THEN + - 30 WHEN + - 38 + - 9 * - MAX( + - 66 ) / - + 11 THEN NULL ELSE NULL END + + 87 THEN - - COUNT( * ) / ( + - 42 ) * + 65 * - + 73 END ) + - AVG ( DISTINCT - 95 ) + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT + ( + + CASE 99 WHEN COUNT ( * ) / - + CASE + 83 WHEN - ( + 35 ) THEN + - 30 WHEN + - 38 + - 9 * - MAX ( + - 66 ) / - + 11 THEN NULL ELSE NULL END + + 87 THEN - - COUNT ( * ) / ( + - 42 ) * + 65 * - + 73 END ) + - AVG ( DISTINCT - 95 ) + + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT NULLIF ( - - 58, 88 * - 78 + + 26 / ( - - 44 ) + COUNT( * ) ) - + ( + + 38 ) * + - MIN( DISTINCT - 87 ) AS col0
----
-3248

skipif mysql # not compatible
query I rowsort label-8592
SELECT NULLIF ( - - 58, 88 * - 78 + + 26 / ( - - 44 ) + COUNT ( * ) ) - + ( + + 38 ) * + - MIN ( DISTINCT - 87 ) AS col0
----
-3248

onlyif mysql # DIV for integer division: 
query I rowsort label-8593
SELECT ALL - 42 + - 20 DIV 80 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL - 42 + - 20 / 80 AS col1
----
-42

query I rowsort
SELECT - ( - 54 ) * + + 51
----
2754

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8595
SELECT ALL 28 + - 62 * + - CAST( - - 61 AS SIGNED ) AS col2
----
3810

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL 28 + - 62 * + - CAST ( - - 61 AS INTEGER ) AS col2
----
3810

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT + COUNT( DISTINCT + 97 ) + - 54 * - COALESCE ( - - 32, - ( ( - 99 ) ) ) + + 94 * 12 + + + 60 AS col1
----
2917

skipif mysql # not compatible
query I rowsort label-8596
SELECT + COUNT ( DISTINCT + 97 ) + - 54 * - COALESCE ( - - 32, - ( ( - 99 ) ) ) + + 94 * 12 + + + 60 AS col1
----
2917

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8597
SELECT 48 DIV + 55 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8597
SELECT 48 / + 55 - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8598
SELECT ALL + 80 * COUNT( * ) + + NULLIF ( - + 37, 18 + - 80 ) + 25 + + + 94 * COUNT( * ) AS col0, - 61 AS col1
----
162
-61

skipif mysql # not compatible
query II rowsort label-8598
SELECT ALL + 80 * COUNT ( * ) + + NULLIF ( - + 37, 18 + - 80 ) + 25 + + + 94 * COUNT ( * ) AS col0, - 61 AS col1
----
162
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-8599
SELECT COUNT( DISTINCT - 30 ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8599
SELECT COUNT ( DISTINCT - 30 ), COUNT ( * )
----
1
1

query I rowsort
SELECT 51 * - 35
----
-1785

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8601
SELECT ALL + 92 * - COUNT( DISTINCT + + 41 ) - + - 45 + COUNT( * ) DIV ( + 54 )
----
-47

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL + 92 * - COUNT ( DISTINCT + + 41 ) - + - 45 + COUNT ( * ) / ( + 54 )
----
-47

query I rowsort
SELECT + COALESCE ( + 20, + 79 ) AS col0
----
20

query I rowsort
SELECT ALL 67 * - 19 * - 66
----
84018

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT 5 * 79 + + COUNT( * ) AS col0
----
396

skipif mysql # not compatible
query I rowsort label-8604
SELECT 5 * 79 + + COUNT ( * ) AS col0
----
396

query I rowsort
SELECT + 43 * + 81
----
3483

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

skipif mysql # not compatible
query I rowsort label-8606
SELECT COUNT ( ALL + - 41 ) AS col0
----
1

query I rowsort
SELECT + 85 * + 79 - - - 71 AS col2
----
6644

onlyif mysql # aggregate syntax: 
query II rowsort label-8608
SELECT ALL + 11, + MIN( DISTINCT - 28 ) col2
----
11
-28

skipif mysql # not compatible
query II rowsort label-8608
SELECT ALL + 11, + MIN ( DISTINCT - 28 ) col2
----
11
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8609
SELECT ALL 84 DIV 42 * 63
----
126

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL 84 / 42 * 63
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT - SUM( DISTINCT + 16 ) - - 7 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8610
SELECT - SUM ( DISTINCT + 16 ) - - 7 AS col1
----
-9

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

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

query I rowsort
SELECT - 89 * - 95 col0
----
8455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8613
SELECT + SUM( + - 43 ) + CAST( NULL AS SIGNED ) + - + COUNT( - 7 ) * + 27 + + - 32 / AVG ( ALL + 28 ) * + 40 + - NULLIF ( + - 72, + ( + 10 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT + SUM ( + - 43 ) + CAST ( NULL AS INTEGER ) + - + COUNT ( - 7 ) * + 27 + + - 32 / AVG ( ALL + 28 ) * + 40 + - NULLIF ( + - 72, + ( + 10 ) )
----
NULL

query I rowsort
SELECT + 36 + - - 47
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT - 84 + 56 * + 64 - + 62 * + COUNT( * )
----
3438

skipif mysql # not compatible
query I rowsort label-8616
SELECT - 84 + 56 * + 64 - + 62 * + COUNT ( * )
----
3438

query I rowsort
SELECT DISTINCT + + 36 + + 11
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8618
SELECT ALL - + 74 + - CASE + 27 WHEN + CAST( NULL AS SIGNED ) THEN 94 * 86 + + 96 + - + 83 * - 75 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL - + 74 + - CASE + 27 WHEN + CAST ( NULL AS INTEGER ) THEN 94 * 86 + + 96 + - + 83 * - 75 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8619
SELECT DISTINCT + ( + 4 ) + - 83 + - 23 + 98 * + 29 * 12 * + CAST( NULL AS SIGNED ) * + 68 - + + ( 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT + ( + 4 ) + - 83 + - 23 + 98 * + 29 * 12 * + CAST ( NULL AS INTEGER ) * + 68 - + + ( 83 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8620
SELECT ALL - 12 + - - 73 + - 68 DIV 88 col2
----
61

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL - 12 + - - 73 + - 68 / 88 col2
----
61

query II rowsort
SELECT ALL + - 94 + - 69 + - 23, + 64 AS col1
----
-186
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8622
SELECT DISTINCT - - 32 DIV + 9
----
3

skipif mysql # not compatible
query I rowsort label-8622
SELECT DISTINCT - - 32 / + 9
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8623
SELECT - - CAST( NULL AS SIGNED ) + ( 87 ) / - 85 - - 82 AS col0, + 79
----
NULL
79

skipif mysql # not compatible
query II rowsort label-8623
SELECT - - CAST ( NULL AS INTEGER ) + ( 87 ) / - 85 - - 82 AS col0, + 79
----
NULL
79

query I rowsort
SELECT + 69 * + 28 AS col1
----
1932

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

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

query I rowsort
SELECT - + 41 + - - 36 + - ( - 48 ) * 40 * - 41
----
-78725

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

query I rowsort
SELECT DISTINCT - - 40 * 39
----
1560

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8629
SELECT ALL 62 + + COUNT( DISTINCT 0 ) * + 64 DIV + 12 AS col1, 68
----
67
68

skipif mysql # not compatible
query II rowsort label-8629
SELECT ALL 62 + + COUNT ( DISTINCT 0 ) * + 64 / + 12 AS col1, 68
----
67
68

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

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

query I rowsort
SELECT - + 91 * - 85 AS col1
----
7735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8632
SELECT ALL - + 90 * + 53 + - 57 + - + 80 / + CAST( NULL AS SIGNED ) * + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL - + 90 * + 53 + - 57 + - + 80 / + CAST ( NULL AS INTEGER ) * + 88 AS col2
----
NULL

query I rowsort
SELECT + 86 + 88 + - + 76
----
98

query I rowsort
SELECT - 56 * 70
----
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT + COALESCE ( - COUNT( * ), - 87, 88, + - 60 ) * COUNT( * ) + + - 70 + + 29 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8635
SELECT + COALESCE ( - COUNT ( * ), - 87, 88, + - 60 ) * COUNT ( * ) + + - 70 + + 29 AS col1
----
-42

query I rowsort
SELECT - 57 * 62 + - 76 - + - 24 AS col1
----
-3586

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT + COALESCE ( + + 31, - 20 * + + 71, + COUNT( * ) * + - 21 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8637
SELECT + COALESCE ( + + 31, - 20 * + + 71, + COUNT ( * ) * + - 21 ) AS col1
----
31

query II rowsort
SELECT ALL + 15, + 98 AS col1
----
15
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8639
SELECT COALESCE ( - 27, 92 ) * + 92 + 73 * 8 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT COALESCE ( - 27, 92 ) * + 92 + 73 * 8 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8640
SELECT DISTINCT + 28 AS col0, SUM( ALL + - 40 ) * + ( + 49 ) + - - 2 + - 64 * + + COUNT( * ) + - 46 AS col1
----
28
-2068

skipif mysql # not compatible
query II rowsort label-8640
SELECT DISTINCT + 28 AS col0, SUM ( ALL + - 40 ) * + ( + 49 ) + - - 2 + - 64 * + + COUNT ( * ) + - 46 AS col1
----
28
-2068

query I rowsort
SELECT + 2 * 17 * - - 68 AS col1
----
2312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8642
SELECT ALL 14 * - CAST( - + 48 AS SIGNED ) * - 86 AS col2, SUM( 88 ) * COUNT( * ) * + + ( - ( - 51 ) ) AS col0
----
-57792
4488

skipif mysql # not compatible
query II rowsort label-8642
SELECT ALL 14 * - CAST ( - + 48 AS INTEGER ) * - 86 AS col2, SUM ( 88 ) * COUNT ( * ) * + + ( - ( - 51 ) ) AS col0
----
-57792
4488

query I rowsort
SELECT + CASE WHEN NOT NULL IS NULL THEN 67 END
----
NULL

query I rowsort
SELECT DISTINCT 43 * + - 28 AS col1
----
-1204

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT DISTINCT + MAX( DISTINCT + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-8645
SELECT DISTINCT + MAX ( DISTINCT + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT NULLIF ( - MIN( ALL 93 ), COALESCE ( + 58, + 54, - 44 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-8646
SELECT NULLIF ( - MIN ( ALL 93 ), COALESCE ( + 58, + 54, - 44 ) )
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8647
SELECT + 90 DIV + + ( + ( - COUNT( * ) ) ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-8647
SELECT + 90 / + + ( + ( - COUNT ( * ) ) ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT ALL - 6 * MIN( - ( + 98 ) ) + + 62 AS col2
----
650

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL - 6 * MIN ( - ( + 98 ) ) + + 62 AS col2
----
650

query I rowsort
SELECT - 42 + ( 77 ) AS col0
----
35

query II rowsort
SELECT 5, 92 AS col0
----
5
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT ALL - 59 * 86 + - - 31 + + 73 * - 68 + + - 34 + 43 + COUNT( * ) * 35 * - 83 + - + ( + + 46 ) + ( COUNT( * ) ) + - + 84 AS col2
----
-13032

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL - 59 * 86 + - - 31 + + 73 * - 68 + + - 34 + 43 + COUNT ( * ) * 35 * - 83 + - + ( + + 46 ) + ( COUNT ( * ) ) + - + 84 AS col2
----
-13032

query I rowsort
SELECT + - 5 + - 44
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8653
SELECT DISTINCT - 0 + 28 - + 90 DIV + COUNT( * ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT - 0 + 28 - + 90 / + COUNT ( * ) AS col0
----
-62

query I rowsort
SELECT - - NULLIF ( - 64, - 35 + 12 ) col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8655
SELECT + - 61 - + - ( + 70 ) - + 99 * - 1 - + 74 * + NULLIF ( - - MIN( - - ( - - CAST( - 99 AS SIGNED ) ) ), + 66 ) * + 68
----
498276

skipif mysql # not compatible
query I rowsort label-8655
SELECT + - 61 - + - ( + 70 ) - + 99 * - 1 - + 74 * + NULLIF ( - - MIN ( - - ( - - CAST ( - 99 AS INTEGER ) ) ), + 66 ) * + 68
----
498276

query II rowsort
SELECT 67, - 76 col0
----
67
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT ALL - 50 * - COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL - 50 * - COUNT ( * ) AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8658
SELECT + + ( - - CAST( NULL AS DECIMAL ) ) - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8658
SELECT + + ( - - CAST ( NULL AS REAL ) ) - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 17 * - + 82 AS col2
----
1394

query II rowsort
SELECT DISTINCT + 59 - - 92, - 61 AS col1
----
151
-61

query II rowsort
SELECT DISTINCT + 73 AS col1, - 11
----
73
-11

query I rowsort
SELECT ALL ( - 92 ) * - 19 col0
----
1748

query I rowsort
SELECT ALL + - 67 - 33 AS col2
----
-100

onlyif mysql # DIV for integer division: 
query II rowsort label-8664
SELECT ( + - COALESCE ( 61, + - 48, - + ( 42 ) DIV 16 ) ) AS col2, - 2 AS col0
----
-61
-2

skipif mysql # not compatible
query II rowsort label-8664
SELECT ( + - COALESCE ( 61, + - 48, - + ( 42 ) / 16 ) ) AS col2, - 2 AS col0
----
-61
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8665
SELECT ALL 31 AS col1, CAST( - 36 AS SIGNED ) DIV + - 87
----
31
0

skipif mysql # not compatible
query II rowsort label-8665
SELECT ALL 31 AS col1, CAST ( - 36 AS INTEGER ) / + - 87
----
31
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT ALL - - 54 * + 74 * SUM( - 17 )
----
-67932

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL - - 54 * + 74 * SUM ( - 17 )
----
-67932

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT ALL - 65 - - MIN( 43 )
----
-22

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL - 65 - - MIN ( 43 )
----
-22

query I rowsort
SELECT NULLIF ( - + 61, - AVG ( - - 96 ) ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT ALL + 41 * - - COALESCE ( - - 57, + + 65, - 92 ) * + COUNT( * ) AS col0
----
2337

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL + 41 * - - COALESCE ( - - 57, + + 65, - 92 ) * + COUNT ( * ) AS col0
----
2337

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT DISTINCT + 23 * + - ( COUNT( * ) ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT + 23 * + - ( COUNT ( * ) ) col0
----
-23

query II rowsort
SELECT 70 * 56 AS col2, + 69 * + - 14
----
3920
-966

query I rowsort
SELECT ALL + 41 * + 38 AS col2
----
1558

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT 79 * - MAX( 55 ) * + 4
----
-17380

skipif mysql # not compatible
query I rowsort label-8673
SELECT 79 * - MAX ( 55 ) * + 4
----
-17380

query I rowsort
SELECT DISTINCT + 23 * + + 87 AS col0
----
2001

query I rowsort
SELECT ALL - 69 * - 13
----
897

query I rowsort
SELECT ALL - ( 90 ) AS col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8677
SELECT + ( + 30 ) DIV COUNT( * ) * + 86 - - - COUNT( * )
----
2579

skipif mysql # not compatible
query I rowsort label-8677
SELECT + ( + 30 ) / COUNT ( * ) * + 86 - - - COUNT ( * )
----
2579

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT 69 * - COUNT( * ) * - 14 AS col1
----
966

skipif mysql # not compatible
query I rowsort label-8678
SELECT 69 * - COUNT ( * ) * - 14 AS col1
----
966

query I rowsort
SELECT 5 * + ( 37 ) AS col0
----
185

query I rowsort
SELECT 76 + - 14
----
62

query I rowsort
SELECT ALL + 78 + + - 62 * - 83 AS col1
----
5224

query I rowsort
SELECT + 89 * - + 85 * + - 87 + 5
----
658160

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT 79 * - 84 + + + ( + MIN( DISTINCT - 59 ) ) + - + 12
----
-6707

skipif mysql # not compatible
query I rowsort label-8683
SELECT 79 * - 84 + + + ( + MIN ( DISTINCT - 59 ) ) + - + 12
----
-6707

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ALL COUNT( * ) + 71 - - 80 AS col2
----
152

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL COUNT ( * ) + 71 - - 80 AS col2
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT 6 * + 60 - ( COUNT( * ) ) AS col2
----
359

skipif mysql # not compatible
query I rowsort label-8685
SELECT 6 * + 60 - ( COUNT ( * ) ) AS col2
----
359

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT ALL COUNT( * ) + + 13 + + 24
----
38

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL COUNT ( * ) + + 13 + + 24
----
38

query I rowsort
SELECT 11 + - - 21 * - - 33
----
704

query I rowsort
SELECT ALL + + 90 * + COALESCE ( - 46, - 96 * + 22 ) + + 65 AS col2
----
-4075

query I rowsort
SELECT + 2 + - 84
----
-82

query I rowsort
SELECT ALL - 71 + + - NULLIF ( - 38, - 51 )
----
-33

query I rowsort
SELECT DISTINCT 76 * + 15
----
1140

query I rowsort
SELECT ( - - 12 ) + + 98 * - 15
----
-1458

query I rowsort
SELECT + 68 + - 99 + - 66 + + 72 AS col2
----
-25

query I rowsort
SELECT 80 - 89
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8695
SELECT 14 * - ( 52 ), 22 * + ( COUNT( * ) ) AS col1
----
-728
22

skipif mysql # not compatible
query II rowsort label-8695
SELECT 14 * - ( 52 ), 22 * + ( COUNT ( * ) ) AS col1
----
-728
22

query I rowsort
SELECT ALL CASE - 22 WHEN + 69 + - 21 + + 29 THEN + 9 - + - 69 - ( + 25 ) END AS col1
----
NULL

query I rowsort
SELECT - 18 + NULLIF ( - 22, + + 61 * + 15 / 92 ) col1
----
-40

query I rowsort
SELECT ALL - CASE + - 56 WHEN + 60 THEN - + 19 END / - 55 - - 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT MAX( 65 ) + 94 AS col0
----
159

skipif mysql # not compatible
query I rowsort label-8699
SELECT MAX ( 65 ) + 94 AS col0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ( + ( + + COUNT( ( 63 ) ) ) ) * 21 * - 54
----
-1134

skipif mysql # not compatible
query I rowsort label-8700
SELECT ( + ( + + COUNT ( ( 63 ) ) ) ) * 21 * - 54
----
-1134

query I rowsort
SELECT 70 + - 22 * 2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8702
SELECT COALESCE ( + 5, + COUNT( * ) ) DIV - COUNT( * ) + ( ( + 83 ) ) + + CAST( - MAX( - + 78 ) AS SIGNED ) col0
----
156

skipif mysql # not compatible
query I rowsort label-8702
SELECT COALESCE ( + 5, + COUNT ( * ) ) / - COUNT ( * ) + ( ( + 83 ) ) + + CAST ( - MAX ( - + 78 ) AS INTEGER ) col0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8703
SELECT ALL NULLIF ( - + CAST( NULL AS SIGNED ), - + 93 ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL NULLIF ( - + CAST ( NULL AS INTEGER ), - + 93 ) * + - COUNT ( * )
----
NULL

query II rowsort
SELECT - 3 AS col0, 83 * + 49
----
-3
4067

query II rowsort
SELECT 17 AS col2, + 13 AS col0
----
17
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8706
SELECT ALL 10, + CAST( - - 80 AS SIGNED ) * + 48 * + - 7 + COUNT( * ) + - COUNT( ALL 68 ) - - + COUNT( * ) * - 30 * - 97 * + 16 * - + 68 AS col2
----
10
-3192960

skipif mysql # not compatible
query II rowsort label-8706
SELECT ALL 10, + CAST ( - - 80 AS INTEGER ) * + 48 * + - 7 + COUNT ( * ) + - COUNT ( ALL 68 ) - - + COUNT ( * ) * - 30 * - 97 * + 16 * - + 68 AS col2
----
10
-3192960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8707
SELECT + CAST( + 15 AS SIGNED ) DIV + + ( - + ( + - 96 ) ) * 75 + + + 8 + 44 + - - 50 * + - 64 + - - COUNT( * ) + 86
----
-3061

skipif mysql # not compatible
query I rowsort label-8707
SELECT + CAST ( + 15 AS INTEGER ) / + + ( - + ( + - 96 ) ) * 75 + + + 8 + 44 + - - 50 * + - 64 + - - COUNT ( * ) + 86
----
-3061

query I rowsort
SELECT 95 + - 59 AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8709
SELECT - 86 * + - 42 + + 51 + - + 81 DIV CAST( + 87 AS SIGNED )
----
3663

skipif mysql # not compatible
query I rowsort label-8709
SELECT - 86 * + - 42 + + 51 + - + 81 / CAST ( + 87 AS INTEGER )
----
3663

query I rowsort
SELECT 11 + 34
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT ALL - 47 + + ( + - COUNT( * ) ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL - 47 + + ( + - COUNT ( * ) ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT DISTINCT - COUNT( - NULLIF ( 79, + + 0 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT - COUNT ( - NULLIF ( 79, + + 0 ) ) AS col0
----
-1

query II rowsort
SELECT + 43, + 3 * - 31 col2
----
43
-93

query I rowsort
SELECT DISTINCT + 93 + - NULLIF ( - 22, 88 ) AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT ALL + ( + + 82 ) + + + COUNT( * ) * - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL + ( + + 82 ) + + + COUNT ( * ) * - COUNT ( * )
----
81

query I rowsort
SELECT 11 * - - 36 * - 44 + 15 + - 89
----
-17498

query I rowsort
SELECT DISTINCT + 16 * - - 49
----
784

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT COALESCE ( - 60, - CASE - - 53 WHEN + 40 THEN NULL ELSE + 25 * - 0 END ) + MIN( DISTINCT - 26 ) - + ( + - 28 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-8718
SELECT COALESCE ( - 60, - CASE - - 53 WHEN + 40 THEN NULL ELSE + 25 * - 0 END ) + MIN ( DISTINCT - 26 ) - + ( + - 28 ) AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8719
SELECT COALESCE ( - CASE COUNT( * ) WHEN + 0 THEN - + COUNT( * ) * CAST( NULL AS SIGNED ) + 20 END, ( - - 14 ) + 24 )
----
38

skipif mysql # not compatible
query I rowsort label-8719
SELECT COALESCE ( - CASE COUNT ( * ) WHEN + 0 THEN - + COUNT ( * ) * CAST ( NULL AS INTEGER ) + 20 END, ( - - 14 ) + 24 )
----
38

query I rowsort
SELECT + 71 * + 33 - 47 + - 59 + - 6 col0
----
2231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8721
SELECT ALL 5 - + - 86 + 11 * COUNT( * ) - + CAST( 50 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL 5 - + - 86 + 11 * COUNT ( * ) - + CAST ( 50 AS INTEGER )
----
52

query II rowsort
SELECT 59 col1, + 89 * + 43
----
59
3827

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT DISTINCT - COUNT( * ) - - SUM( ALL 24 )
----
23

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT - COUNT ( * ) - - SUM ( ALL 24 )
----
23

query I rowsort
SELECT ALL - 68 * + 16
----
-1088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8725
SELECT DISTINCT + - COUNT( * ) * + MIN( ALL ( CAST( + 21 AS SIGNED ) ) )
----
-21

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT + - COUNT ( * ) * + MIN ( ALL ( CAST ( + 21 AS INTEGER ) ) )
----
-21

query I rowsort
SELECT - ( + + 72 ) AS col2
----
-72

query I rowsort
SELECT - 55 * - 10 + + 25
----
575

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT + COUNT( * ) * + 95 - + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-8728
SELECT + COUNT ( * ) * + 95 - + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-8729
SELECT ALL ( - 30 ) * - 56 * - COUNT( * ) AS col0, + 10
----
-1680
10

skipif mysql # not compatible
query II rowsort label-8729
SELECT ALL ( - 30 ) * - 56 * - COUNT ( * ) AS col0, + 10
----
-1680
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8730
SELECT ALL CAST( - - 93 AS SIGNED ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL CAST ( - - 93 AS INTEGER ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT - CASE + 39 WHEN - + 76 THEN - - MAX( + 78 ) + - COUNT( * ) * 60 ELSE NULL END - COALESCE ( + 54, + 14 / + - 95 ) * - ( COUNT( * ) ) * + 12 - - 83 * - - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8731
SELECT - CASE + 39 WHEN - + 76 THEN - - MAX ( + 78 ) + - COUNT ( * ) * 60 ELSE NULL END - COALESCE ( + 54, + 14 / + - 95 ) * - ( COUNT ( * ) ) * + 12 - - 83 * - - 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8732
SELECT DISTINCT 33 AS col0, MAX( ALL - 0 )
----
33
0

skipif mysql # not compatible
query II rowsort label-8732
SELECT DISTINCT 33 AS col0, MAX ( ALL - 0 )
----
33
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8733
SELECT + 82 - - CAST( 29 AS SIGNED ) + + 81
----
192

skipif mysql # not compatible
query I rowsort label-8733
SELECT + 82 - - CAST ( 29 AS INTEGER ) + + 81
----
192

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8734
SELECT ALL 15 + - 64 + CAST( + 89 AS SIGNED ) DIV 29 * + 78 + - 53 * + + 63 * ( + - 29 ) * 60 AS col0
----
5810045

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL 15 + - 64 + CAST ( + 89 AS INTEGER ) / 29 * + 78 + - 53 * + + 63 * ( + - 29 ) * 60 AS col0
----
5810045

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT - SUM( ALL - - 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8735
SELECT - SUM ( ALL - - 3 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT - 67 * - 49 * - MAX( 13 ) AS col0
----
-42679

skipif mysql # not compatible
query I rowsort label-8736
SELECT - 67 * - 49 * - MAX ( 13 ) AS col0
----
-42679

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT ALL - 7 * - - 90 + COUNT( * )
----
-629

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL - 7 * - - 90 + COUNT ( * )
----
-629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8738
SELECT + COALESCE ( + COUNT( * ), - 45 - + 31 + - - CAST( NULL AS SIGNED ) DIV + 41 + - 7 * + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-8738
SELECT + COALESCE ( + COUNT ( * ), - 45 - + 31 + - - CAST ( NULL AS INTEGER ) / + 41 + - 7 * + 32 )
----
1

query I rowsort
SELECT ALL 62 * - 54 + 76
----
-3272

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT + NULLIF ( + COUNT( - - 84 ), 31 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8740
SELECT + NULLIF ( + COUNT ( - - 84 ), 31 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8741
SELECT ALL - ( - NULLIF ( 84, CAST( NULL AS SIGNED ) * - CASE + + ( - + 32 ) WHEN - 78 THEN NULL WHEN CAST( + COUNT( * ) AS SIGNED ) * + 40 * - - 70 * - 97 * + 97 - + 68 THEN + + CAST( + CASE - 71 WHEN + 82 THEN NULL ELSE 13 END AS SIGNED ) + + + 14 WHEN - 61 THEN + + 6 * CAST( NULL AS DECIMAL ) + + 24 + 75 WHEN ( 82 ) THEN - - 65 ELSE 62 END * - 59 / + + NULLIF ( - 5, - + COUNT( - 45 ) * CAST( NULL AS SIGNED ) * - - 53 ) ) ) * 28 + - 69
----
2283

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL - ( - NULLIF ( 84, CAST ( NULL AS INTEGER ) * - CASE + + ( - + 32 ) WHEN - 78 THEN NULL WHEN CAST ( + COUNT ( * ) AS INTEGER ) * + 40 * - - 70 * - 97 * + 97 - + 68 THEN + + CAST ( + CASE - 71 WHEN + 82 THEN NULL ELSE 13 END AS INTEGER ) + + + 14 WHEN - 61 THEN + + 6 * CAST ( NULL AS REAL ) + + 24 + 75 WHEN ( 82 ) THEN - - 65 ELSE 62 END * - 59 / + + NULLIF ( - 5, - + COUNT ( - 45 ) * CAST ( NULL AS INTEGER ) * - - 53 ) ) ) * 28 + - 69
----
2283

query I rowsort
SELECT + 7 * - 59
----
-413

onlyif mysql # aggregate syntax: 
query II rowsort label-8743
SELECT ALL + SUM( - 73 ) AS col1, 93 * - - 55 AS col2
----
-73
5115

skipif mysql # not compatible
query II rowsort label-8743
SELECT ALL + SUM ( - 73 ) AS col1, 93 * - - 55 AS col2
----
-73
5115

query I rowsort
SELECT - 77 * 98 AS col1
----
-7546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8745
SELECT DISTINCT + + NULLIF ( - ( + 36 ), CAST( + ( - 63 ) AS SIGNED ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT + + NULLIF ( - ( + 36 ), CAST ( + ( - 63 ) AS INTEGER ) ) AS col0
----
-36

query I rowsort
SELECT + 23 + + 7
----
30

query I rowsort
SELECT 74 * 33 + 27 AS col1
----
2469

onlyif mysql # DIV for integer division: 
query I rowsort label-8748
SELECT - + 68 DIV 75 * + + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8748
SELECT - + 68 / 75 * + + 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT - + 57 * COUNT( ( 71 ) ) col1
----
-57

skipif mysql # not compatible
query I rowsort label-8749
SELECT - + 57 * COUNT ( ( 71 ) ) col1
----
-57

query I rowsort
SELECT DISTINCT - 30 * - 34 AS col1
----
1020

query I rowsort
SELECT ALL - + 48 * + 42 + - 95
----
-2111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8752
SELECT - + CAST( NULL AS SIGNED ) + - NULLIF ( - 12, - + 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8752
SELECT - + CAST ( NULL AS INTEGER ) + - NULLIF ( - 12, - + 38 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8753
SELECT - - COUNT( * ) + - - 88 - COALESCE ( + + 94, - 32 * + - 73 + - COUNT( * ) DIV AVG ( + - 60 ) * - - MAX( + - 98 ) * + - 91 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8753
SELECT - - COUNT ( * ) + - - 88 - COALESCE ( + + 94, - 32 * + - 73 + - COUNT ( * ) / AVG ( + - 60 ) * - - MAX ( + - 98 ) * + - 91 ) AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8754
SELECT + + 64 * + + NULLIF ( + 89, 37 ) + + NULLIF ( - 65, COUNT( * ) ) * - ( 1 ) - - 78, + CAST( NULL AS SIGNED ) * + SUM( + 37 ) + + - 93 + - 23 + 55 * - COUNT( * ) AS col0
----
5839
NULL

skipif mysql # not compatible
query II rowsort label-8754
SELECT + + 64 * + + NULLIF ( + 89, 37 ) + + NULLIF ( - 65, COUNT ( * ) ) * - ( 1 ) - - 78, + CAST ( NULL AS INTEGER ) * + SUM ( + 37 ) + + - 93 + - 23 + 55 * - COUNT ( * ) AS col0
----
5839
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8755
SELECT + 64 * 11 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT + 64 * 11 + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT - + MAX( 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8756
SELECT - + MAX ( 21 ) AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-8757
SELECT - 9 DIV - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8757
SELECT - 9 / - 73 AS col1
----
0

query I rowsort
SELECT - 53 + - 27 * - - 90 AS col1
----
-2483

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8759
SELECT - 66 + - 14 DIV COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-8759
SELECT - 66 + - 14 / COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8760
SELECT ALL - 86 DIV + COUNT( - - 50 )
----
-86

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL - 86 / + COUNT ( - - 50 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT - ( - NULLIF ( + 0, + COUNT( * ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8761
SELECT - ( - NULLIF ( + 0, + COUNT ( * ) ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT ALL 28 + 72 + + 58 * + - 86 + COUNT( - - 93 ) * + - 6 AS col1
----
-4894

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL 28 + 72 + + 58 * + - 86 + COUNT ( - - 93 ) * + - 6 AS col1
----
-4894

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8763
SELECT ALL 74 + 76 * - - 74 col2, + 88 + 30 * + CASE - + 44 WHEN + ( + COUNT( * ) ) THEN NULL WHEN + 12 THEN - + 76 ELSE - - SUM( CAST( NULL AS DECIMAL ) ) END AS col2
----
5698
NULL

skipif mysql # not compatible
query II rowsort label-8763
SELECT ALL 74 + 76 * - - 74 col2, + 88 + 30 * + CASE - + 44 WHEN + ( + COUNT ( * ) ) THEN NULL WHEN + 12 THEN - + 76 ELSE - - SUM ( CAST ( NULL AS REAL ) ) END AS col2
----
5698
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT - COUNT( ALL 94 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8764
SELECT - COUNT ( ALL 94 ) col1
----
-1

query I rowsort
SELECT + 56 + - 59 + - 97 * 34 AS col0
----
-3301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8766
SELECT DISTINCT CAST( + + SUM( ALL - 1 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT CAST ( + + SUM ( ALL - 1 ) AS INTEGER ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8767
SELECT - 20 * - 2 DIV - - 79 col0
----
0

skipif mysql # not compatible
query I rowsort label-8767
SELECT - 20 * - 2 / - - 79 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8768
SELECT - 37 + + + NULLIF ( 58, 10 * + 74 ) + 94 + + - CAST( 99 AS SIGNED ) * + + 42
----
-4043

skipif mysql # not compatible
query I rowsort label-8768
SELECT - 37 + + + NULLIF ( 58, 10 * + 74 ) + 94 + + - CAST ( 99 AS INTEGER ) * + + 42
----
-4043

query I rowsort
SELECT + 43 * ( + 73 ) * + 46 AS col1
----
144394

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8770
SELECT + CAST( NULL AS DECIMAL ) + + COUNT( * ) / - + AVG ( DISTINCT 49 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT + CAST ( NULL AS REAL ) + + COUNT ( * ) / - + AVG ( DISTINCT 49 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8771
SELECT ALL + 47 + + 78 - - + CASE - 7 WHEN - 25 * - + MAX( + 83 ) + 46 + - 5 DIV - 90 DIV - 2 + 26 DIV + 78 THEN NULL ELSE + 25 DIV - ( - + 75 ) - 30 END * 39
----
-1045

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL + 47 + + 78 - - + CASE - 7 WHEN - 25 * - + MAX ( + 83 ) + 46 + - 5 / - 90 / - 2 + 26 / + 78 THEN NULL ELSE + 25 / - ( - + 75 ) - 30 END * 39
----
-1045

query I rowsort
SELECT DISTINCT - 92 + + 92 AS col2
----
0

query I rowsort
SELECT - NULLIF ( 14, - 44 ) AS col2
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8774
SELECT ALL 1 DIV SUM( + 23 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL 1 / SUM ( + 23 ) AS col0
----
0

query I rowsort
SELECT + 7 + + - 97 AS col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8776
SELECT - COUNT( * ) DIV + 63 + 94 * + COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-8776
SELECT - COUNT ( * ) / + 63 + 94 * + COUNT ( * ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT DISTINCT + COUNT( DISTINCT - 77 )
----
1

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT + COUNT ( DISTINCT - 77 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8778
SELECT - MAX( + 4 ) * + + 80, + COUNT( * ) * 0 col2
----
-320
0

skipif mysql # not compatible
query II rowsort label-8778
SELECT - MAX ( + 4 ) * + + 80, + COUNT ( * ) * 0 col2
----
-320
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT + 60 + + 12 + - + MIN( DISTINCT - + 5 ) * + + 98 + + + 33
----
595

skipif mysql # not compatible
query I rowsort label-8779
SELECT + 60 + + 12 + - + MIN ( DISTINCT - + 5 ) * + + 98 + + + 33
----
595

onlyif mysql # DIV for integer division: 
query I rowsort label-8780
SELECT ALL 65 DIV + 13
----
5

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL 65 / + 13
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT + CASE - + 25 WHEN + NULLIF ( - 14, 56 ) * 75 THEN - 67 ELSE + 13 * + COUNT( * ) END col2
----
13

skipif mysql # not compatible
query I rowsort label-8781
SELECT + CASE - + 25 WHEN + NULLIF ( - 14, 56 ) * 75 THEN - 67 ELSE + 13 * + COUNT ( * ) END col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8782
SELECT - 76 * - + 0 DIV - 8 DIV - COUNT( * ) + MIN( 35 ) - - - 19 + + 2 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8782
SELECT - 76 * - + 0 / - 8 / - COUNT ( * ) + MIN ( 35 ) - - - 19 + + 2 AS col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-8783
SELECT + 12 * - SUM( 87 ), + 13 + - 59 AS col1
----
-1044
-46

skipif mysql # not compatible
query II rowsort label-8783
SELECT + 12 * - SUM ( 87 ), + 13 + - 59 AS col1
----
-1044
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL - + COUNT( * ) / CASE 59 WHEN + 67 * 32 THEN + - 18 ELSE NULL END - + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL - + COUNT ( * ) / CASE 59 WHEN + 67 * 32 THEN + - 18 ELSE NULL END - + + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ALL - COUNT( * ) * 22 + 39 * + MIN( ALL - - 83 ) + 61 AS col0
----
3276

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL - COUNT ( * ) * 22 + 39 * + MIN ( ALL - - 83 ) + 61 AS col0
----
3276

query I rowsort
SELECT ALL 31 * - - 64 AS col0
----
1984

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8787
SELECT + 80 * 5 * + 73 - COUNT( * ) + + 37 * - 43 AS col1, + 52 DIV - 4 AS col2
----
27608
-13

skipif mysql # not compatible
query II rowsort label-8787
SELECT + 80 * 5 * + 73 - COUNT ( * ) + + 37 * - 43 AS col1, + 52 / - 4 AS col2
----
27608
-13

query II rowsort
SELECT ALL - - 54 AS col2, + 62 AS col2
----
54
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT COUNT( * ) - 85 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8789
SELECT COUNT ( * ) - 85 AS col2
----
-84

query II rowsort
SELECT + 66 col2, + 49 AS col1
----
66
49

query I rowsort
SELECT - 98 * ( 56 )
----
-5488

onlyif mysql # aggregate syntax: 
query II rowsort label-8792
SELECT ALL - 78 AS col0, NULLIF ( + COUNT( * ), - 61 * + 0 )
----
-78
1

skipif mysql # not compatible
query II rowsort label-8792
SELECT ALL - 78 AS col0, NULLIF ( + COUNT ( * ), - 61 * + 0 )
----
-78
1

query I rowsort
SELECT - 46 * + - 32 * + - 26
----
-38272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8794
SELECT + 64 * - 28 * - + 33 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8794
SELECT + 64 * - 28 * - + 33 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 46 + - - 36
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8796
SELECT ALL - - 3 + - + 90 + + 80 + - 25 - + 30 AS col1, + COUNT( * ) * + COALESCE ( + 71, - CAST( NULL AS SIGNED ), - 40 / ( - 89 ) + - COUNT( * ) + + 85 ) + + + MAX( ALL - + 98 ) + 35 + 60 + + 42 * - CASE + NULLIF ( + + COUNT( * ), 64 / + 79 ) WHEN - COUNT( * ) * + 24 THEN + - 90 END * 32 + 40 + 96 + - + 86 + - - 28 + - COUNT( * ) - - + MIN( DISTINCT + ( + 86 ) ) / - - 1 + + + 37 AS col0
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-8796
SELECT ALL - - 3 + - + 90 + + 80 + - 25 - + 30 AS col1, + COUNT ( * ) * + COALESCE ( + 71, - CAST ( NULL AS INTEGER ), - 40 / ( - 89 ) + - COUNT ( * ) + + 85 ) + + + MAX ( ALL - + 98 ) + 35 + 60 + + 42 * - CASE + NULLIF ( + + COUNT ( * ), 64 / + 79 ) WHEN - COUNT ( * ) * + 24 THEN + - 90 END * 32 + 40 + 96 + - + 86 + - - 28 + - COUNT ( * ) - - + MIN ( DISTINCT + ( + 86 ) ) / - - 1 + + + 37 AS col0
----
-62
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8797
SELECT ALL + - 41 + + COUNT( * ) * - 39 * - - NULLIF ( - 35, + - 41 ) * + 55 * - 38 / 82 + + CASE CAST( + 10 AS SIGNED ) WHEN MIN( ALL - CAST( NULL AS SIGNED ) ) THEN + - 90 WHEN - 42 / - CAST( NULL AS SIGNED ) + 96 THEN + COUNT( * ) END + 15 * - - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL + - 41 + + COUNT ( * ) * - 39 * - - NULLIF ( - 35, + - 41 ) * + 55 * - 38 / 82 + + CASE CAST ( + 10 AS INTEGER ) WHEN MIN ( ALL - CAST ( NULL AS INTEGER ) ) THEN + - 90 WHEN - 42 / - CAST ( NULL AS INTEGER ) + 96 THEN + COUNT ( * ) END + 15 * - - 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT DISTINCT CASE 93 WHEN 93 / - MIN( - + 94 ) THEN NULL ELSE - - 52 END AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT CASE 93 WHEN 93 / - MIN ( - + 94 ) THEN NULL ELSE - - 52 END AS col1
----
52

query I rowsort
SELECT DISTINCT - 97 + - - 50 - + 22 + + 96 col2
----
27

query II rowsort
SELECT 89 * - - 61, + 84 AS col2
----
5429
84

query II rowsort
SELECT 90 AS col1, - 63 AS col2
----
90
-63

query II rowsort
SELECT - 54 AS col1, 88
----
-54
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL + 78 + - 25 * + 67 + + - COUNT( - - 54 ) * + - 59 - 99 col0
----
-1637

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL + 78 + - 25 * + 67 + + - COUNT ( - - 54 ) * + - 59 - 99 col0
----
-1637

query II rowsort
SELECT 98, 0 AS col0
----
98
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8805
SELECT 79 - + 46 + - - COALESCE ( CAST( - - 40 AS SIGNED ), 77 * 38 + 85 + 37 ) * COUNT( * ) + + - 28 * 41 * 17
----
-19443

skipif mysql # not compatible
query I rowsort label-8805
SELECT 79 - + 46 + - - COALESCE ( CAST ( - - 40 AS INTEGER ), 77 * 38 + 85 + 37 ) * COUNT ( * ) + + - 28 * 41 * 17
----
-19443

query I rowsort
SELECT 14 * 39
----
546

query II rowsort
SELECT ALL 64 AS col2, 32 AS col2
----
64
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT COUNT( * ) + - + 81 * 32
----
-2591

skipif mysql # not compatible
query I rowsort label-8808
SELECT COUNT ( * ) + - + 81 * 32
----
-2591

query II rowsort
SELECT - 19 AS col0, 16 AS col1
----
-19
16

query I rowsort
SELECT ALL - 79 - - 26 AS col2
----
-53

query I rowsort
SELECT 14 * - + 17
----
-238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8812
SELECT ALL 29, - COALESCE ( CAST( + 51 AS SIGNED ), - 80, 95 + 22 * + 70 ) * + + COUNT( * ) * + - 13 - + + COUNT( * ) AS col2
----
29
662

skipif mysql # not compatible
query II rowsort label-8812
SELECT ALL 29, - COALESCE ( CAST ( + 51 AS INTEGER ), - 80, 95 + 22 * + 70 ) * + + COUNT ( * ) * + - 13 - + + COUNT ( * ) AS col2
----
29
662

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT COUNT( * ) - + 2
----
-1

skipif mysql # not compatible
query I rowsort label-8813
SELECT COUNT ( * ) - + 2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8814
SELECT ALL 86 AS col2, + 10 * ( - - ( COUNT( * ) ) )
----
86
10

skipif mysql # not compatible
query II rowsort label-8814
SELECT ALL 86 AS col2, + 10 * ( - - ( COUNT ( * ) ) )
----
86
10

query I rowsort
SELECT 1 - - 30 + - 91 * + + 35
----
-3154

query I rowsort
SELECT 39 * - 77 * + - 73
----
219219

onlyif mysql # DIV for integer division: 
query I rowsort label-8817
SELECT 46 DIV + 45
----
1

skipif mysql # not compatible
query I rowsort label-8817
SELECT 46 / + 45
----
1

query II rowsort
SELECT ALL 95 AS col2, 55 + + 95 col1
----
95
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8819
SELECT - - 15 DIV + 19 - COUNT( * ) - 41 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8819
SELECT - - 15 / + 19 - COUNT ( * ) - 41 AS col1
----
-42

query I rowsort
SELECT ALL - - ( - 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8821
SELECT DISTINCT 76 DIV MAX( ALL 1 )
----
76

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT 76 / MAX ( ALL 1 )
----
76

query I rowsort
SELECT + CASE - ( + 95 ) WHEN + + 81 THEN NULL WHEN - 72 THEN NULL ELSE 71 * - 44 + + 93 END AS col0
----
-3031

query I rowsort
SELECT 14 + + - 15 col1
----
-1

query II rowsort
SELECT + + 57 AS col0, 86 AS col1
----
57
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8825
SELECT + COUNT( * ) + - + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8825
SELECT + COUNT ( * ) + - + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8826
SELECT + 72 / CASE - 88 WHEN - 38 + - 48 THEN + COUNT( ALL 41 ) ELSE NULL END - 8 / CAST( - + 53 AS SIGNED ) * - 28 * 65 - + + COUNT( * ) * - + 43 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT + 72 / CASE - 88 WHEN - 38 + - 48 THEN + COUNT ( ALL 41 ) ELSE NULL END - 8 / CAST ( - + 53 AS INTEGER ) * - 28 * 65 - + + COUNT ( * ) * - + 43 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT ALL MAX( DISTINCT - 23 ) * - 87 col2
----
2001

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL MAX ( DISTINCT - 23 ) * - 87 col2
----
2001

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8828
SELECT DISTINCT - + 79 AS col0, + CAST( - 60 AS SIGNED ) * - 44 * + 53 AS col0
----
-79
139920

skipif mysql # not compatible
query II rowsort label-8828
SELECT DISTINCT - + 79 AS col0, + CAST ( - 60 AS INTEGER ) * - 44 * + 53 AS col0
----
-79
139920

onlyif mysql # aggregate syntax: 
query II rowsort label-8829
SELECT + 96 AS col2, + COUNT( * ) - + 43 AS col1
----
96
-42

skipif mysql # not compatible
query II rowsort label-8829
SELECT + 96 AS col2, + COUNT ( * ) - + 43 AS col1
----
96
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL COUNT( * ) + - 58 + - 47 AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL COUNT ( * ) + - 58 + - 47 AS col2
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-8831
SELECT - 71 + 85 DIV - 13
----
-77

skipif mysql # not compatible
query I rowsort label-8831
SELECT - 71 + 85 / - 13
----
-77

query I rowsort
SELECT DISTINCT - - ( 78 )
----
78

query I rowsort
SELECT DISTINCT + 68 + ( - 36 )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-8834
SELECT 40 * 66 + + COUNT( * ) * 58 + + 21 * + - 52 AS col0, NULLIF ( + CASE - - 42 WHEN - NULLIF ( + - 50, + 86 ) THEN - NULLIF ( + 97, + COUNT( * ) - 86 ) * - + 85 ELSE - 96 + 68 END, - 6 / + 72 ) * - 50 + + - COALESCE ( + - 10, - 23 )
----
1606
1410

skipif mysql # not compatible
query II rowsort label-8834
SELECT 40 * 66 + + COUNT ( * ) * 58 + + 21 * + - 52 AS col0, NULLIF ( + CASE - - 42 WHEN - NULLIF ( + - 50, + 86 ) THEN - NULLIF ( + 97, + COUNT ( * ) - 86 ) * - + 85 ELSE - 96 + 68 END, - 6 / + 72 ) * - 50 + + - COALESCE ( + - 10, - 23 )
----
1606
1410

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT MIN( DISTINCT 80 ) * 59
----
4720

skipif mysql # not compatible
query I rowsort label-8835
SELECT MIN ( DISTINCT 80 ) * 59
----
4720

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ALL 2 - - + NULLIF ( + + 81, MAX( ALL + 56 ) * + 55 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL 2 - - + NULLIF ( + + 81, MAX ( ALL + 56 ) * + 55 ) AS col1
----
83

query I rowsort
SELECT DISTINCT + 47 * - ( 91 ) * - - 98
----
-419146

query I rowsort
SELECT ALL - ( - 86 ) - - 96 * + ( 67 ) col0
----
6518

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT ALL + NULLIF ( + COUNT( * ), - 34 / - + 79 ) - 17
----
-16

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL + NULLIF ( + COUNT ( * ), - 34 / - + 79 ) - 17
----
-16

query II rowsort
SELECT 14 * + 31 AS col0, - 14
----
434
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT ALL MIN( ALL + - 62 ) * - 8 + + + COUNT( * ) - 78 + - 81 * - 33 AS col1
----
3092

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL MIN ( ALL + - 62 ) * - 8 + + + COUNT ( * ) - 78 + - 81 * - 33 AS col1
----
3092

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8842
SELECT 1 + + 96 * + - NULLIF ( + 98, + - MIN( DISTINCT + 1 ) + + 89 + 20 * - 67 + + - 79 + 19 * CAST( NULL AS DECIMAL ) + + 18 * - 38 ) AS col2
----
-9407

skipif mysql # not compatible
query I rowsort label-8842
SELECT 1 + + 96 * + - NULLIF ( + 98, + - MIN ( DISTINCT + 1 ) + + 89 + 20 * - 67 + + - 79 + 19 * CAST ( NULL AS REAL ) + + 18 * - 38 ) AS col2
----
-9407

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8843
SELECT CAST( NULL AS SIGNED ) / - 37 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT CAST ( NULL AS INTEGER ) / - 37 col2
----
NULL

query I rowsort
SELECT 39 * 62
----
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT 46 - - COALESCE ( + ( - 38 ), - 5 - 30 + 0 ) + - ( - COUNT( - 18 ) ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8845
SELECT 46 - - COALESCE ( + ( - 38 ), - 5 - 30 + 0 ) + - ( - COUNT ( - 18 ) ) AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8846
SELECT 49 * 10 DIV - 32
----
-15

skipif mysql # not compatible
query I rowsort label-8846
SELECT 49 * 10 / - 32
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8847
SELECT DISTINCT + ( + NULLIF ( + 76, + - 13 + + COUNT( * ) ) ) DIV - 80 * - COUNT( * ), 77 AS col2
----
0
77

skipif mysql # not compatible
query II rowsort label-8847
SELECT DISTINCT + ( + NULLIF ( + 76, + - 13 + + COUNT ( * ) ) ) / - 80 * - COUNT ( * ), 77 AS col2
----
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT 36 + + - CASE - 19 WHEN 64 THEN + 36 * - - COALESCE ( 2, - - COUNT( * ) * + 11 ) - - 18 + - - 96 + - SUM( DISTINCT + 27 ) WHEN - 42 THEN - 46 * + - 31 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT 36 + + - CASE - 19 WHEN 64 THEN + 36 * - - COALESCE ( 2, - - COUNT ( * ) * + 11 ) - - 18 + - - 96 + - SUM ( DISTINCT + 27 ) WHEN - 42 THEN - 46 * + - 31 END col1
----
NULL

query I rowsort
SELECT 39 * + 82 AS col2
----
3198

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8850
SELECT DISTINCT + + NULLIF ( 76, - 22 - + 61 ) * - - 3 AS col2, COUNT( * ) DIV 9 AS col0
----
228
0

skipif mysql # not compatible
query II rowsort label-8850
SELECT DISTINCT + + NULLIF ( 76, - 22 - + 61 ) * - - 3 AS col2, COUNT ( * ) / 9 AS col0
----
228
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8851
SELECT ALL + ( + 46 ), COUNT( * ) + 72 AS col2
----
46
73

skipif mysql # not compatible
query II rowsort label-8851
SELECT ALL + ( + 46 ), COUNT ( * ) + 72 AS col2
----
46
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8852
SELECT - 33 DIV 3 * 62 + 35 col1
----
-647

skipif mysql # not compatible
query I rowsort label-8852
SELECT - 33 / 3 * 62 + 35 col1
----
-647

query I rowsort
SELECT DISTINCT + + 12 * - 21
----
-252

onlyif mysql # aggregate syntax: 
query II rowsort label-8854
SELECT ALL CASE + 33 WHEN - ( + COUNT( ALL 71 ) ) THEN NULL WHEN - + 85 THEN + 14 WHEN - SUM( DISTINCT - - 2 ) THEN + - NULLIF ( - 82, - 41 ) * - 10 - - 53 * + 6 * - + 84 END * 71 + + COALESCE ( + - 70, + ( + + ( + 67 ) ) ), 73 AS col0
----
NULL
73

skipif mysql # not compatible
query II rowsort label-8854
SELECT ALL CASE + 33 WHEN - ( + COUNT ( ALL 71 ) ) THEN NULL WHEN - + 85 THEN + 14 WHEN - SUM ( DISTINCT - - 2 ) THEN + - NULLIF ( - 82, - 41 ) * - 10 - - 53 * + 6 * - + 84 END * 71 + + COALESCE ( + - 70, + ( + + ( + 67 ) ) ), 73 AS col0
----
NULL
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT - COALESCE ( MAX( ALL 51 ), + - 54 ) * - 19 AS col1
----
969

skipif mysql # not compatible
query I rowsort label-8855
SELECT - COALESCE ( MAX ( ALL 51 ), + - 54 ) * - 19 AS col1
----
969

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT DISTINCT + - MAX( ALL + ( - + 50 ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8856
SELECT DISTINCT + - MAX ( ALL + ( - + 50 ) ) AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT ALL CAST( NULL AS SIGNED ) * + 21 / + ( + CAST( NULL AS SIGNED ) ) + + 88 - 4 * - 64 + 64 * - 32 * - 83 + - + 17 - - CAST( NULL AS SIGNED ) * + 55 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL CAST ( NULL AS INTEGER ) * + 21 / + ( + CAST ( NULL AS INTEGER ) ) + + 88 - 4 * - 64 + 64 * - 32 * - 83 + - + 17 - - CAST ( NULL AS INTEGER ) * + 55 col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8858
SELECT ALL + + ( + 13 ) AS col2, - 55 DIV + 91 AS col0
----
13
0

skipif mysql # not compatible
query II rowsort label-8858
SELECT ALL + + ( + 13 ) AS col2, - 55 / + 91 AS col0
----
13
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT ALL 69 * + 76 * + - COUNT( * ) + - + 35 AS col1
----
-5279

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL 69 * + 76 * + - COUNT ( * ) + - + 35 AS col1
----
-5279

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8860
SELECT ALL - CAST( NULL AS SIGNED ) / + 44 + 90, 31 AS col0
----
NULL
31

skipif mysql # not compatible
query II rowsort label-8860
SELECT ALL - CAST ( NULL AS INTEGER ) / + 44 + 90, 31 AS col0
----
NULL
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT DISTINCT - 95 * + - 40 * + COUNT( * ) + + 42 + + COALESCE ( 33, 93 * - 36 - + COUNT( * ) )
----
3875

skipif mysql # not compatible
query I rowsort label-8861
SELECT DISTINCT - 95 * + - 40 * + COUNT ( * ) + + 42 + + COALESCE ( 33, 93 * - 36 - + COUNT ( * ) )
----
3875

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT + - COUNT( DISTINCT - + 90 ) * 59 + NULLIF ( - 93, 19 ) - + + 45
----
-197

skipif mysql # not compatible
query I rowsort label-8862
SELECT + - COUNT ( DISTINCT - + 90 ) * 59 + NULLIF ( - 93, 19 ) - + + 45
----
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT - 35 * + - 53 - + + COUNT( * ) AS col0
----
1854

skipif mysql # not compatible
query I rowsort label-8863
SELECT - 35 * + - 53 - + + COUNT ( * ) AS col0
----
1854

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT + 91 * COUNT( * ) * - 35 AS col2
----
-3185

skipif mysql # not compatible
query I rowsort label-8864
SELECT + 91 * COUNT ( * ) * - 35 AS col2
----
-3185

query I rowsort
SELECT ALL 96 * + - 42
----
-4032

onlyif mysql # aggregate syntax: 
query II rowsort label-8866
SELECT ALL COUNT( * ) col2, - 72 * - - 35 + 48 + - ( - - COUNT( * ) ) - + 91 * + 68
----
1
-8661

skipif mysql # not compatible
query II rowsort label-8866
SELECT ALL COUNT ( * ) col2, - 72 * - - 35 + 48 + - ( - - COUNT ( * ) ) - + 91 * + 68
----
1
-8661

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT + 84 + - ( COUNT( - - 26 ) )
----
83

skipif mysql # not compatible
query I rowsort label-8867
SELECT + 84 + - ( COUNT ( - - 26 ) )
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-8868
SELECT ALL COUNT( * ) - + 36 * + 15, 29 * + 51 col1
----
-539
1479

skipif mysql # not compatible
query II rowsort label-8868
SELECT ALL COUNT ( * ) - + 36 * + 15, 29 * + 51 col1
----
-539
1479

query I rowsort
SELECT + 61 * - - 73
----
4453

query II rowsort
SELECT DISTINCT 77 AS col1, + 35 + 97
----
77
132

query I rowsort
SELECT + 7 + - 29
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT - COUNT( * ) * - - 43
----
-43

skipif mysql # not compatible
query I rowsort label-8872
SELECT - COUNT ( * ) * - - 43
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8873
SELECT + 25 * + 31 DIV COUNT( * ) AS col2, COUNT( * )
----
775
1

skipif mysql # not compatible
query II rowsort label-8873
SELECT + 25 * + 31 / COUNT ( * ) AS col2, COUNT ( * )
----
775
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8874
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 93 * 42 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8874
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 93 * 42 col2
----
NULL

query I rowsort
SELECT ALL + 98 * + 44
----
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT DISTINCT + 80 * + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT + 80 * + COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT ALL - 26 + - - MAX( - + 14 ) + + 5 * + 63 * + + 63 AS col1
----
19805

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL - 26 + - - MAX ( - + 14 ) + + 5 * + 63 * + + 63 AS col1
----
19805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8878
SELECT ALL MIN( ALL - 70 ) + - COALESCE ( - - 31, 38 ) DIV - COUNT( * ) + - COUNT( * ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL MIN ( ALL - 70 ) + - COALESCE ( - - 31, 38 ) / - COUNT ( * ) + - COUNT ( * ) AS col2
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8879
SELECT - 37 DIV - - 82 * + SUM( 29 ) * + 11 * + 92 * 52 + - MAX( ALL + 85 ) + + + ( - + 98 ) * 7 + + - MIN( DISTINCT 98 )
----
-869

skipif mysql # not compatible
query I rowsort label-8879
SELECT - 37 / - - 82 * + SUM ( 29 ) * + 11 * + 92 * 52 + - MAX ( ALL + 85 ) + + + ( - + 98 ) * 7 + + - MIN ( DISTINCT 98 )
----
-869

query I rowsort
SELECT ALL + + 9 + - 56 + - - 88
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT - MIN( DISTINCT - 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-8881
SELECT - MIN ( DISTINCT - 81 ) AS col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8882
SELECT + 1 AS col0, NULLIF ( - ( - COALESCE ( - 47, + CAST( NULL AS SIGNED ) * - 3, + 46 ) ), + 99 )
----
1
-47

skipif mysql # not compatible
query II rowsort label-8882
SELECT + 1 AS col0, NULLIF ( - ( - COALESCE ( - 47, + CAST ( NULL AS INTEGER ) * - 3, + 46 ) ), + 99 )
----
1
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8883
SELECT + - 14 DIV SUM( 52 ) * ( - 55 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8883
SELECT + - 14 / SUM ( 52 ) * ( - 55 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8884
SELECT ALL + 34 DIV 4 + + COUNT( - 50 )
----
9

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + 34 / 4 + + COUNT ( - 50 )
----
9

query I rowsort
SELECT ALL + + ( - ( 81 ) ) * 15 AS col2
----
-1215

query I rowsort
SELECT - 53 * - ( - 3 )
----
-159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8887
SELECT ALL - 5 DIV COUNT( * ) + - ( + COALESCE ( + NULLIF ( - 98, + + 32 * - - 45 + 58 ), + 25 ) )
----
93

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL - 5 / COUNT ( * ) + - ( + COALESCE ( + NULLIF ( - 98, + + 32 * - - 45 + 58 ), + 25 ) )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT DISTINCT + MAX( - + 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT + MAX ( - + 57 )
----
-57

query I rowsort
SELECT ALL + 18 * 28
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT - COUNT( * ) + 43 col2
----
42

skipif mysql # not compatible
query I rowsort label-8890
SELECT - COUNT ( * ) + 43 col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT - - COUNT( * ) - - + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8891
SELECT - - COUNT ( * ) - - + COUNT ( * ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8892
SELECT ALL + CASE - CASE - 42 WHEN - 22 THEN CASE + 84 WHEN + COUNT( * ) THEN + CAST( - 76 AS SIGNED ) + + + 67 + - 26 * - 68 ELSE NULL END END WHEN - - ( 66 ) / + 96 * COUNT( * ) THEN + 1 / ( + 76 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL + CASE - CASE - 42 WHEN - 22 THEN CASE + 84 WHEN + COUNT ( * ) THEN + CAST ( - 76 AS INTEGER ) + + + 67 + - 26 * - 68 ELSE NULL END END WHEN - - ( 66 ) / + 96 * COUNT ( * ) THEN + 1 / ( + 76 ) END
----
NULL

query I rowsort
SELECT - 73 + 87 + - 34 AS col0
----
-20

query I rowsort
SELECT COALESCE ( + + 83, + 70 )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT - 55 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-8895
SELECT - 55 / - 92
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8896
SELECT + 61 * - COUNT( * ) DIV + CASE + 66 WHEN 50 THEN 22 ELSE 91 END
----
0

skipif mysql # not compatible
query I rowsort label-8896
SELECT + 61 * - COUNT ( * ) / + CASE + 66 WHEN 50 THEN 22 ELSE 91 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT - ( - SUM( 14 ) )
----
14

skipif mysql # not compatible
query I rowsort label-8897
SELECT - ( - SUM ( 14 ) )
----
14

query I rowsort
SELECT - 73 * + 81 + + + 40 * + 94 + + 42 col2
----
-2111

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT - CASE + + 52 WHEN - ( - 66 ) THEN + 38 - + 9 * + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT - CASE + + 52 WHEN - ( - 66 ) THEN + 38 - + 9 * + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8900
SELECT ALL CAST( + + 10 AS SIGNED ) * + + 9 + + 82
----
172

skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL CAST ( + + 10 AS INTEGER ) * + + 9 + + 82
----
172

query I rowsort
SELECT + 1 * + - 79 AS col2
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-8902
SELECT ALL 89 + 24, 96 DIV + 97 * - - 99 AS col1
----
113
0

skipif mysql # not compatible
query II rowsort label-8902
SELECT ALL 89 + 24, 96 / + 97 * - - 99 AS col1
----
113
0

query I rowsort
SELECT ALL 65 + - 92
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT ALL - 23 + COUNT( * ) - + - 6 * + 61 * COUNT( * )
----
344

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL - 23 + COUNT ( * ) - + - 6 * + 61 * COUNT ( * )
----
344

query I rowsort
SELECT + 74 + - 59 + + - 44 * + + ( + 80 ) AS col0
----
-3505

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT - MAX( + 45 ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-8906
SELECT - MAX ( + 45 ) col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT + 88 + + 46 + - COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-8907
SELECT + 88 + + 46 + - COUNT ( * )
----
133

query I rowsort
SELECT ALL 27 + + 56
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT ALL - 74 * + MAX( - 59 ) - - + COUNT( * )
----
4367

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL - 74 * + MAX ( - 59 ) - - + COUNT ( * )
----
4367

query I rowsort
SELECT 89 + - - 24 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT DISTINCT - + 44 * COUNT( * ) col1
----
-44

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT - + 44 * COUNT ( * ) col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT - NULLIF ( + COUNT( * ), - - 86 * 80 ) + + + 34 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8912
SELECT - NULLIF ( + COUNT ( * ), - - 86 * 80 ) + + + 34 AS col2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8913
SELECT DISTINCT - 80 * + - 29, COUNT( * ) AS col2
----
2320
1

skipif mysql # not compatible
query II rowsort label-8913
SELECT DISTINCT - 80 * + - 29, COUNT ( * ) AS col2
----
2320
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT ALL - NULLIF ( 14, 74 * 92 + - ( - + ( COUNT( * ) ) ) )
----
-14

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL - NULLIF ( 14, 74 * 92 + - ( - + ( COUNT ( * ) ) ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT - 85 * - ( - COUNT( * ) ) + - MIN( ALL 58 ) * 4
----
-317

skipif mysql # not compatible
query I rowsort label-8915
SELECT - 85 * - ( - COUNT ( * ) ) + - MIN ( ALL 58 ) * 4
----
-317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8916
SELECT DISTINCT - - ( ( - + MIN( ALL + 60 ) ) ) / - 29 + + 73 - 95 + + 68 + + - 76 * 71 + CAST( NULL AS SIGNED ) + + 4 + + - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT - - ( ( - + MIN ( ALL + 60 ) ) ) / - 29 + + 73 - 95 + + 68 + + - 76 * 71 + CAST ( NULL AS INTEGER ) + + 4 + + - 54 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8917
SELECT - 40 / + CAST( NULL AS SIGNED ) - - 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8917
SELECT - 40 / + CAST ( NULL AS INTEGER ) - - 25 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 88 * + 55 * - - 88
----
425920

query II rowsort
SELECT ALL - 79 AS col1, - 34
----
-79
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT DISTINCT - SUM( DISTINCT + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT - SUM ( DISTINCT + 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT 98 * + + 82 - + COUNT( * ) AS col0
----
8035

skipif mysql # not compatible
query I rowsort label-8921
SELECT 98 * + + 82 - + COUNT ( * ) AS col0
----
8035

query I rowsort
SELECT 39 * - 68
----
-2652

onlyif mysql # aggregate syntax: 
query II rowsort label-8923
SELECT DISTINCT - NULLIF ( - + 23, + - 78 / 7 ) * 43 + - + 20 + + COUNT( DISTINCT + 31 ) * 43 + - COUNT( * ) col2, 87 AS col0
----
1011
87

skipif mysql # not compatible
query II rowsort label-8923
SELECT DISTINCT - NULLIF ( - + 23, + - 78 / 7 ) * 43 + - + 20 + + COUNT ( DISTINCT + 31 ) * 43 + - COUNT ( * ) col2, 87 AS col0
----
1011
87

query II rowsort
SELECT ALL - 94 AS col0, + 1 col2
----
-94
1

query I rowsort
SELECT DISTINCT - ( - 41 ) AS col0
----
41

query I rowsort
SELECT ALL + CASE WHEN NULL IS NULL THEN 87 END + - + 79 AS col1
----
8

query I rowsort
SELECT ALL + 26 + - 7
----
19

query I rowsort
SELECT ALL 48 + 10 AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8929
SELECT 35 * MIN( DISTINCT - - 16 ) - 54 * - 32 * + 48 AS col0, + 11
----
83504
11

skipif mysql # not compatible
query II rowsort label-8929
SELECT 35 * MIN ( DISTINCT - - 16 ) - 54 * - 32 * + 48 AS col0, + 11
----
83504
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT 55 + + - COUNT( * ) + - 31
----
23

skipif mysql # not compatible
query I rowsort label-8930
SELECT 55 + + - COUNT ( * ) + - 31
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT ALL + 26 + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL + 26 + COUNT ( * ) AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8932
SELECT 45 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-8932
SELECT 45 / 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT MIN( ALL + 2 ) + 89 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8933
SELECT MIN ( ALL + 2 ) + 89 AS col1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8934
SELECT ALL 82 * CAST( - 86 AS SIGNED )
----
-7052

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL 82 * CAST ( - 86 AS INTEGER )
----
-7052

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT DISTINCT COUNT( * ) - + 79 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT COUNT ( * ) - + 79 AS col2
----
-78

query I rowsort
SELECT 70 - + ( ( + ( + 49 ) ) )
----
21

query I rowsort
SELECT 5 * + 26
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT MAX( DISTINCT NULLIF ( - 49, 0 ) ) + - 99 AS col2
----
-148

skipif mysql # not compatible
query I rowsort label-8938
SELECT MAX ( DISTINCT NULLIF ( - 49, 0 ) ) + - 99 AS col2
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT DISTINCT MAX( 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT MAX ( 8 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT ALL - SUM( DISTINCT + 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL - SUM ( DISTINCT + 24 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT COUNT( DISTINCT 53 )
----
1

skipif mysql # not compatible
query I rowsort label-8941
SELECT COUNT ( DISTINCT 53 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8942
SELECT - 47 DIV + 54 - 97 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-8942
SELECT - 47 / + 54 - 97 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT COUNT( * ) - - 32 * 79 AS col1
----
2529

skipif mysql # not compatible
query I rowsort label-8943
SELECT COUNT ( * ) - - 32 * 79 AS col1
----
2529

onlyif mysql # DIV for integer division: 
query I rowsort label-8944
SELECT ALL 74 DIV 42
----
1

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL 74 / 42
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8945
SELECT COUNT( * ) DIV 82 + 85 * + 95
----
8075

skipif mysql # not compatible
query I rowsort label-8945
SELECT COUNT ( * ) / 82 + 85 * + 95
----
8075

query I rowsort
SELECT NULLIF ( + 17, - 78 * 10 ) * 8 col2
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-8947
SELECT 2 * - 94 + - 94 DIV + 84
----
-189

skipif mysql # not compatible
query I rowsort label-8947
SELECT 2 * - 94 + - 94 / + 84
----
-189

query I rowsort
SELECT 49 - 87 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT 20 * COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8949
SELECT 20 * COUNT ( * ) AS col1
----
20

query I rowsort
SELECT DISTINCT 65 * ( - CASE 60 WHEN + 25 * 10 THEN 72 * 28 + + NULLIF ( + 0, 95 ) * - 83 WHEN - 40 * 90 THEN + 62 END * ( 14 ) ) + 44
----
NULL

query I rowsort
SELECT ALL + 39 + ( + COALESCE ( + 70, + 55 ) + + 16 * 22 ) AS col1
----
461

query I rowsort
SELECT - 30 + AVG ( DISTINCT + CASE 35 WHEN ( 42 ) THEN NULL WHEN 93 THEN 10 * 94 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT + NULLIF ( ( 21 ), COUNT( * ) ) col0
----
21

skipif mysql # not compatible
query I rowsort label-8953
SELECT + NULLIF ( ( 21 ), COUNT ( * ) ) col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT ALL + 40 + - 45 DIV 50 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL + 40 + - 45 / 50 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT - 94 * NULLIF ( COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT - 94 * NULLIF ( COUNT ( * ), COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL - 68 * 87
----
-5916

query I rowsort
SELECT ALL COALESCE ( - 66, - 79 + - 95 ) * + 79
----
-5214

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT ALL ( - NULLIF ( COUNT( DISTINCT 96 ), 32 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL ( - NULLIF ( COUNT ( DISTINCT 96 ), 32 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT - MIN( 30 ) * ( + 59 - MAX( DISTINCT + 63 ) )
----
120

skipif mysql # not compatible
query I rowsort label-8959
SELECT - MIN ( 30 ) * ( + 59 - MAX ( DISTINCT + 63 ) )
----
120

query I rowsort
SELECT - - ( + 55 ) + + 46
----
101

query I rowsort
SELECT - + 60 + - 58 AS col1
----
-118

query I rowsort
SELECT - - 91 * 69
----
6279

query I rowsort
SELECT - 59 + + 70 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT - SUM( ALL 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-8964
SELECT - SUM ( ALL 84 )
----
-84

query I rowsort
SELECT + 42 - 43
----
-1

query I rowsort
SELECT ALL + 31 * 11 AS col1
----
341

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8967
SELECT ALL + + 18 DIV COUNT( * ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL + + 18 / COUNT ( * ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT - - COUNT( ALL - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-8968
SELECT - - COUNT ( ALL - 60 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT DISTINCT + SUM( DISTINCT - ( + 60 ) ) * + ( + NULLIF ( 63, - 94 ) ) AS col0
----
-3780

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT + SUM ( DISTINCT - ( + 60 ) ) * + ( + NULLIF ( 63, - 94 ) ) AS col0
----
-3780

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT DISTINCT + SUM( 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT + SUM ( 77 ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT + + 59 + CASE 61 + 85 WHEN 13 THEN + ( + 8 ) WHEN 72 THEN + SUM( 45 ) ELSE - 63 END
----
-4

skipif mysql # not compatible
query I rowsort label-8971
SELECT + + 59 + CASE 61 + 85 WHEN 13 THEN + ( + 8 ) WHEN 72 THEN + SUM ( 45 ) ELSE - 63 END
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT ALL - 95 * + MAX( DISTINCT 98 ) AS col2
----
-9310

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL - 95 * + MAX ( DISTINCT 98 ) AS col2
----
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT + - 84 + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-8973
SELECT + - 84 + COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8974
SELECT ALL - 95 DIV MIN( + 90 ) + 28 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL - 95 / MIN ( + 90 ) + 28 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT + 97 * COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-8975
SELECT + 97 * COUNT ( * )
----
97

query I rowsort
SELECT - 8 * - 35 AS col0
----
280

query I rowsort
SELECT - 36 * - 41 + 70
----
1546

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT DISTINCT - 1 * + COUNT( * ) + + SUM( 34 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT - 1 * + COUNT ( * ) + + SUM ( 34 ) AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8979
SELECT ALL + COUNT( * ) * + CAST( NULL AS SIGNED ) + + 96 * - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 96 * - 89 AS col0
----
NULL

query I rowsort
SELECT + 61 * + 42
----
2562

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT DISTINCT ( 40 ) * + COUNT( DISTINCT 14 * 96 + + 96 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT ( 40 ) * + COUNT ( DISTINCT 14 * 96 + + 96 ) AS col2
----
40

query I rowsort
SELECT COALESCE ( + + 99, + 37 * + 57 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT + NULLIF ( - - 1, - 72 * - MIN( + 22 * 72 ) ) * - 97 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-8983
SELECT + NULLIF ( - - 1, - 72 * - MIN ( + 22 * 72 ) ) * - 97 AS col1
----
-97

query I rowsort
SELECT + 42 * + 87 AS col2
----
3654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8985
SELECT + ( + CASE 32 WHEN - CAST( - 3 AS SIGNED ) + 55 THEN 67 + 41 * - ( COUNT( * ) + 75 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8985
SELECT + ( + CASE 32 WHEN - CAST ( - 3 AS INTEGER ) + 55 THEN 67 + 41 * - ( COUNT ( * ) + 75 ) END )
----
NULL

query I rowsort
SELECT 72 * - ( + 98 ) - 91 AS col0
----
-7147

query I rowsort
SELECT CASE - - 47 WHEN ( 47 ) / 42 THEN + 73 END
----
NULL

query I rowsort
SELECT + NULLIF ( - 6, - 73 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT - 23 * - 93 * 37 - CASE + 9 WHEN 72 THEN - 49 + COUNT( 99 ) / + 50 WHEN 1 - + 6 THEN - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8989
SELECT - 23 * - 93 * 37 - CASE + 9 WHEN 72 THEN - 49 + COUNT ( 99 ) / + 50 WHEN 1 - + 6 THEN - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8990
SELECT - CAST( NULL AS SIGNED ) * + COUNT( - ( + 98 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( - ( + 98 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8991
SELECT + ( COALESCE ( 68, - 81 DIV - CAST( + ( - COUNT( * ) ) * + 27 AS SIGNED ) ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-8991
SELECT + ( COALESCE ( 68, - 81 / - CAST ( + ( - COUNT ( * ) ) * + 27 AS INTEGER ) ) ) AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8992
SELECT ALL CAST( NULL AS SIGNED ) * + + ( 67 ) * - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL CAST ( NULL AS INTEGER ) * + + ( 67 ) * - 52 AS col2
----
NULL

query I rowsort
SELECT ALL + 75 * - + 77 - 17 AS col1
----
-5792

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT CASE + 26 WHEN CASE 29 WHEN + 84 * 84 THEN NULL WHEN MAX( - 37 ) THEN 37 * CASE - 1 * 8 WHEN - 74 + 42 THEN - 26 END + 86 END THEN - ( - 23 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8994
SELECT CASE + 26 WHEN CASE 29 WHEN + 84 * 84 THEN NULL WHEN MAX ( - 37 ) THEN 37 * CASE - 1 * 8 WHEN - 74 + 42 THEN - 26 END + 86 END THEN - ( - 23 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8995
SELECT + SUM( DISTINCT + 75 ) + + 27 * + COALESCE ( - 77 + 67, - 63, 28, 29 - 86 DIV + ( - COUNT( * ) ) )
----
-195

skipif mysql # not compatible
query I rowsort label-8995
SELECT + SUM ( DISTINCT + 75 ) + + 27 * + COALESCE ( - 77 + 67, - 63, 28, 29 - 86 / + ( - COUNT ( * ) ) )
----
-195

query I rowsort
SELECT + + 18 * 40 - 17 AS col1
----
703

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8997
SELECT DISTINCT - 42 DIV + COUNT( * ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT - 42 / + COUNT ( * ) AS col0
----
-42

query I rowsort
SELECT - 17 * 39
----
-663

query I rowsort
SELECT - + 23 + 10 * 36 AS col1
----
337

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9000
SELECT ALL + CASE - + NULLIF ( COUNT( * ), ( CASE 61 WHEN ( + MIN( - 33 ) ) THEN CAST( + 87 AS DECIMAL ) ELSE COUNT( * ) + + 90 * + 56 END ) + 37 ) WHEN - COUNT( * ) + - 56 DIV + 70 THEN NULL ELSE + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL + CASE - + NULLIF ( COUNT ( * ), ( CASE 61 WHEN ( + MIN ( - 33 ) ) THEN CAST ( + 87 AS REAL ) ELSE COUNT ( * ) + + 90 * + 56 END ) + 37 ) WHEN - COUNT ( * ) + - 56 / + 70 THEN NULL ELSE + 72 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT ALL - ( + - MAX( DISTINCT 77 ) )
----
77

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL - ( + - MAX ( DISTINCT 77 ) )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9002
SELECT ( - CAST( NULLIF ( - 53, 43 * - 96 ) AS SIGNED ) ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-9002
SELECT ( - CAST ( NULLIF ( - 53, 43 * - 96 ) AS INTEGER ) ) AS col0
----
53

query I rowsort
SELECT DISTINCT 62 * + 35 + 71 AS col1
----
2241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9004
SELECT - CAST( NULL AS SIGNED ) * - 74 + + 61 * + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9004
SELECT - CAST ( NULL AS INTEGER ) * - 74 + + 61 * + 70 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9005
SELECT ALL + 8 + - ( + 75 ) * + ( - 54 * 44 + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL + 8 + - ( + 75 ) * + ( - 54 * 44 + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + 59 - - ( + 85 ) AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT - 73 - - MIN( DISTINCT - 48 ) col2
----
-121

skipif mysql # not compatible
query I rowsort label-9007
SELECT - 73 - - MIN ( DISTINCT - 48 ) col2
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9008
SELECT - MIN( + CAST( + 51 AS SIGNED ) )
----
-51

skipif mysql # not compatible
query I rowsort label-9008
SELECT - MIN ( + CAST ( + 51 AS INTEGER ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT - 9 + COUNT( * ) + 97 + - 88 * 16
----
-1319

skipif mysql # not compatible
query I rowsort label-9009
SELECT - 9 + COUNT ( * ) + 97 + - 88 * 16
----
-1319

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT + 14 * COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-9010
SELECT + 14 * COUNT ( * ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL 73 + + + 58 * + 28 + COUNT( * )
----
1698

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL 73 + + + 58 * + 28 + COUNT ( * )
----
1698

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT 39 - 50 + - 8 + - NULLIF ( 18 - + 15, + MIN( ALL 34 ) * COUNT( * ) ) * 74 AS col2
----
-241

skipif mysql # not compatible
query I rowsort label-9012
SELECT 39 - 50 + - 8 + - NULLIF ( 18 - + 15, + MIN ( ALL 34 ) * COUNT ( * ) ) * 74 AS col2
----
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT ALL - CASE 22 WHEN + 72 THEN COUNT( * ) + 90 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL - CASE 22 WHEN + 72 THEN COUNT ( * ) + 90 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT COUNT( * ) - 27
----
-26

skipif mysql # not compatible
query I rowsort label-9014
SELECT COUNT ( * ) - 27
----
-26

query I rowsort
SELECT 23 + 63 AS col1
----
86

query I rowsort
SELECT 38 + 69
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9017
SELECT CASE - CASE ( + 38 ) WHEN + 13 + 52 THEN + 36 WHEN - 56 * + COUNT( * ) THEN 97 / 8 ELSE - 38 END WHEN + 69 THEN NULL WHEN 66 + 52 * + 24 THEN NULL ELSE - CAST( NULL AS SIGNED ) * 75 END * - 77 + CASE - 59 WHEN + 79 * 46 + 20 THEN - 30 + + CAST( NULL AS SIGNED ) END * ( 38 * + 1 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9017
SELECT CASE - CASE ( + 38 ) WHEN + 13 + 52 THEN + 36 WHEN - 56 * + COUNT ( * ) THEN 97 / 8 ELSE - 38 END WHEN + 69 THEN NULL WHEN 66 + 52 * + 24 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * 75 END * - 77 + CASE - 59 WHEN + 79 * 46 + 20 THEN - 30 + + CAST ( NULL AS INTEGER ) END * ( 38 * + 1 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT 83 - + SUM( DISTINCT - 42 ) - + COUNT( * )
----
124

skipif mysql # not compatible
query I rowsort label-9018
SELECT 83 - + SUM ( DISTINCT - 42 ) - + COUNT ( * )
----
124

query II rowsort
SELECT DISTINCT - 22 AS col0, 6
----
-22
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT DISTINCT - MAX( + 68 ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT - MAX ( + 68 ) col1
----
-68

query I rowsort
SELECT - 65 + + + 64 + + 16 col0
----
15

query I rowsort
SELECT 12 * 25 AS col1
----
300

query I rowsort
SELECT DISTINCT + NULLIF ( - 87, - 82 * + 90 + 90 * - 23 ) * 91 AS col2
----
-7917

onlyif mysql # aggregate syntax: 
query II rowsort label-9024
SELECT ALL - - 49 col1, 12 + - + COUNT( * ) + 91 AS col2
----
49
102

skipif mysql # not compatible
query II rowsort label-9024
SELECT ALL - - 49 col1, 12 + - + COUNT ( * ) + 91 AS col2
----
49
102

query I rowsort
SELECT + 41 + - 65 AS col2
----
-24

query II rowsort
SELECT ALL + 94, - 51 AS col0
----
94
-51

query I rowsort
SELECT DISTINCT 33 * - + 96 AS col2
----
-3168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9028
SELECT 58 + - COUNT( * ) DIV 30 col2
----
58

skipif mysql # not compatible
query I rowsort label-9028
SELECT 58 + - COUNT ( * ) / 30 col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT SUM( DISTINCT 89 )
----
89

skipif mysql # not compatible
query I rowsort label-9029
SELECT SUM ( DISTINCT 89 )
----
89

query I rowsort
SELECT DISTINCT + 70 + ( + + COALESCE ( 65, + 53 ) ) AS col1
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9031
SELECT 6 DIV + COUNT( * ) col2
----
6

skipif mysql # not compatible
query I rowsort label-9031
SELECT 6 / + COUNT ( * ) col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9032
SELECT 50 + + - COUNT( * ) + 17 + CAST( NULL AS SIGNED ) * + CAST( + 36 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT 50 + + - COUNT ( * ) + 17 + CAST ( NULL AS INTEGER ) * + CAST ( + 36 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT NULLIF ( - 65, + - 14 + + 67 ) + - 62 * + ( COUNT( * ) * + ( 13 ) )
----
-871

skipif mysql # not compatible
query I rowsort label-9033
SELECT NULLIF ( - 65, + - 14 + + 67 ) + - 62 * + ( COUNT ( * ) * + ( 13 ) )
----
-871

query I rowsort
SELECT + 57 + 76 + 77 col0
----
210

query I rowsort
SELECT 27 - - ( ( + ( 65 ) ) ) + 91
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL COUNT( - 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL COUNT ( - 1 ) AS col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9037
SELECT ALL - ( + CASE + CAST( 40 AS DECIMAL ) WHEN 60 THEN 6 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - ( + CASE + CAST ( 40 AS REAL ) WHEN 60 THEN 6 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9038
SELECT DISTINCT - COUNT( * ) + 49, - 56 * - + 73 AS col0
----
48
4088

skipif mysql # not compatible
query II rowsort label-9038
SELECT DISTINCT - COUNT ( * ) + 49, - 56 * - + 73 AS col0
----
48
4088

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT DISTINCT 8 * - COUNT( * ) * 7
----
-56

skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT 8 * - COUNT ( * ) * 7
----
-56

query I rowsort
SELECT ALL 43 * - + 93 * + 49
----
-195951

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT 19 * - 61 * + COUNT( * )
----
-1159

skipif mysql # not compatible
query I rowsort label-9041
SELECT 19 * - 61 * + COUNT ( * )
----
-1159

query I rowsort
SELECT 58 + - 87 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT ALL + COUNT( * ) - - + ( - 91 ) + + ( + 34 )
----
-56

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL + COUNT ( * ) - - + ( - 91 ) + + ( + 34 )
----
-56

query I rowsort
SELECT 32 * + 55
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT 74 * + NULLIF ( + MAX( + 62 ), ( - SUM( - 45 ) ) ) AS col0
----
4588

skipif mysql # not compatible
query I rowsort label-9045
SELECT 74 * + NULLIF ( + MAX ( + 62 ), ( - SUM ( - 45 ) ) ) AS col0
----
4588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9046
SELECT ALL - COALESCE ( + CAST( + - 96 AS SIGNED ), ( - MIN( DISTINCT 16 ) ) * + COALESCE ( - 41 DIV ( 92 ), 30 + COUNT( * ) * - ( 17 ) ) ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL - COALESCE ( + CAST ( + - 96 AS INTEGER ), ( - MIN ( DISTINCT 16 ) ) * + COALESCE ( - 41 / ( 92 ), 30 + COUNT ( * ) * - ( 17 ) ) ) AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT ALL ( - 32 ) - - + 90 DIV 72 * 98 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL ( - 32 ) - - + 90 / 72 * 98 AS col0
----
66

query I rowsort
SELECT DISTINCT - ( + CASE + NULLIF ( - 37, - 79 + 88 ) WHEN 27 / + NULLIF ( + CASE - 21 WHEN 22 THEN NULL ELSE - 74 END, - 70 ) THEN + 68 + - ( 21 ) END ) AS col1
----
NULL

query II rowsort
SELECT ALL - 9 - + + 17 col0, 88
----
-26
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9050
SELECT 64 DIV + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9050
SELECT 64 / + 92 AS col0
----
0

query I rowsort
SELECT 73 * - 93 col2
----
-6789

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9052
SELECT DISTINCT - ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT - ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9053
SELECT COALESCE ( 71, + 55 + - 43 ) * 88 + - CAST( NULL AS SIGNED ) / 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT COALESCE ( 71, + 55 + - 43 ) * 88 + - CAST ( NULL AS INTEGER ) / 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9054
SELECT ALL + + 16 * + COALESCE ( - ( + 71 ), + ( - CAST( 43 AS SIGNED ) ) * COUNT( * ) + - 74, + 76 ) * + COUNT( * )
----
-1136

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL + + 16 * + COALESCE ( - ( + 71 ), + ( - CAST ( 43 AS INTEGER ) ) * COUNT ( * ) + - 74, + 76 ) * + COUNT ( * )
----
-1136

query I rowsort
SELECT + - 80 * - - 30 - - - 48 AS col2
----
-2448

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL - + COUNT( + ( - 62 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL - + COUNT ( + ( - 62 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT DISTINCT - + 41 + 83 + COUNT( * ) * ( ( 96 ) ) AS col2
----
138

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT - + 41 + 83 + COUNT ( * ) * ( ( 96 ) ) AS col2
----
138

query I rowsort
SELECT + 30 - + + 28
----
2

query I rowsort
SELECT ALL - + 24 * - 25 + - 85 + 88
----
603

query I rowsort
SELECT DISTINCT 78 + - 53
----
25

query II rowsort
SELECT ALL + - 12 + + + 7, - 44 + + - 59 AS col1
----
-5
-103

query I rowsort
SELECT ALL - 52 + 18
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT DISTINCT - - 99 + + 4 - - SUM( + + 65 ) * 61 AS col0
----
4068

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT - - 99 + + 4 - - SUM ( + + 65 ) * 61 AS col0
----
4068

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL - NULLIF ( - + ( 99 ), + MAX( - ( - 13 ) ) * 75 ) + 54 col0
----
153

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL - NULLIF ( - + ( 99 ), + MAX ( - ( - 13 ) ) * 75 ) + 54 col0
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9065
SELECT 52 * + 38 DIV COUNT( 77 )
----
1976

skipif mysql # not compatible
query I rowsort label-9065
SELECT 52 * + 38 / COUNT ( 77 )
----
1976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9066
SELECT + ( + MIN( - 40 ) ) + - - CAST( + COUNT( * ) AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-9066
SELECT + ( + MIN ( - 40 ) ) + - - CAST ( + COUNT ( * ) AS INTEGER )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT DISTINCT - ( + ( - NULLIF ( - - 18, 19 * ( + 45 ) ) ) ) + + COUNT( ALL 17 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT - ( + ( - NULLIF ( - - 18, 19 * ( + 45 ) ) ) ) + + COUNT ( ALL 17 ) AS col0
----
19

query I rowsort
SELECT ALL - + 57 * - + 9 AS col2
----
513

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT ALL COUNT( * ) + + - NULLIF ( 28, 11 )
----
-27

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL COUNT ( * ) + + - NULLIF ( 28, 11 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT DISTINCT COUNT( * ) - + - 99 + - 86 * ( + - COUNT( * ) ) AS col1
----
186

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT COUNT ( * ) - + - 99 + - 86 * ( + - COUNT ( * ) ) AS col1
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9071
SELECT ALL 49 DIV - COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL 49 / - COUNT ( * ) AS col0
----
-49

query I rowsort
SELECT + 43 - + NULLIF ( - 11, - - 83 ) * 72
----
835

query I rowsort
SELECT + 2 * + - 32
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT + 19 + - 6 DIV + 90 + 72
----
91

skipif mysql # not compatible
query I rowsort label-9074
SELECT + 19 + - 6 / + 90 + 72
----
91

query II rowsort
SELECT 7, + ( + - ( + - 18 ) ) col2
----
7
18

query I rowsort
SELECT ALL 90 * 57 col1
----
5130

query I rowsort
SELECT + 96 + + 67
----
163

query I rowsort
SELECT + 13 * 14
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT + MIN( - 25 ) + - 62
----
-87

skipif mysql # not compatible
query I rowsort label-9079
SELECT + MIN ( - 25 ) + - 62
----
-87

query I rowsort
SELECT + 48 * - - 78 col2
----
3744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9081
SELECT ALL 54 * - 73 * - NULLIF ( + - MIN( - 22 ), 54 + 36 ) * CASE + NULLIF ( + 87, 7 + 65 ) WHEN + COUNT( * ) * - 22 THEN - 86 * 54 + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL 54 * - 73 * - NULLIF ( + - MIN ( - 22 ), 54 + 36 ) * CASE + NULLIF ( + 87, 7 + 65 ) WHEN + COUNT ( * ) * - 22 THEN - 86 * 54 + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 6, - 25 AS col0
----
6
-25

query I rowsort
SELECT ALL + ( 26 ) col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT + 60 * + - 6 * - - 39 * CASE + 92 WHEN 62 THEN + SUM( ALL 42 ) - 36 END - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9084
SELECT + 60 * + - 6 * - - 39 * CASE + 92 WHEN 62 THEN + SUM ( ALL 42 ) - 36 END - 2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9085
SELECT ALL + COUNT( * ), - COUNT( * ) * 40 AS col0
----
1
-40

skipif mysql # not compatible
query II rowsort label-9085
SELECT ALL + COUNT ( * ), - COUNT ( * ) * 40 AS col0
----
1
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT + CASE + COUNT( * ) WHEN + - 80 THEN NULL WHEN + + AVG ( + 16 ) / 50 THEN ( 34 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT + CASE + COUNT ( * ) WHEN + - 80 THEN NULL WHEN + + AVG ( + 16 ) / 50 THEN ( 34 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT COALESCE ( - 13, + ( + 48 ), - SUM( DISTINCT - 62 ) ) col2
----
-13

skipif mysql # not compatible
query I rowsort label-9087
SELECT COALESCE ( - 13, + ( + 48 ), - SUM ( DISTINCT - 62 ) ) col2
----
-13

query I rowsort
SELECT 50 * - 39 + + 66
----
-1884

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT + COALESCE ( - + 25, - COALESCE ( + 89, + NULLIF ( COUNT( * ), - COUNT( * ) * 94 ), - 2 + + 8, NULLIF ( 73, - 41 * 20 + - 92 ) ) + - 68 )
----
-25

skipif mysql # not compatible
query I rowsort label-9089
SELECT + COALESCE ( - + 25, - COALESCE ( + 89, + NULLIF ( COUNT ( * ), - COUNT ( * ) * 94 ), - 2 + + 8, NULLIF ( 73, - 41 * 20 + - 92 ) ) + - 68 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT - COUNT( * ) / CASE - + 56 WHEN + 47 * + ( + 97 ) THEN NULL WHEN 89 THEN 7 WHEN 23 / - 97 THEN + 91 * + ( COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT - COUNT ( * ) / CASE - + 56 WHEN + 47 * + ( + 97 ) THEN NULL WHEN 89 THEN 7 WHEN 23 / - 97 THEN + 91 * + ( COUNT ( * ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT + + 33 + + CAST( - + 47 AS SIGNED ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-9091
SELECT + + 33 + + CAST ( - + 47 AS INTEGER ) AS col1
----
-14

query II rowsort
SELECT + 0 AS col2, 64
----
0
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT 58 * - + 89 * 27 - + + ( - - SUM( + 75 ) ) + + 28 * + 96
----
-136761

skipif mysql # not compatible
query I rowsort label-9093
SELECT 58 * - + 89 * 27 - + + ( - - SUM ( + 75 ) ) + + 28 * + 96
----
-136761

query II rowsort
SELECT ALL + 31 AS col1, 3
----
31
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT DISTINCT + + COUNT( - 38 )
----
1

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT + + COUNT ( - 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT ALL + 90 * + + 85 * - 88 - - - 15 + - COUNT( ALL + 5 ) + - SUM( DISTINCT 57 ) * 79
----
-677719

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL + 90 * + + 85 * - 88 - - - 15 + - COUNT ( ALL + 5 ) + - SUM ( DISTINCT 57 ) * 79
----
-677719

query II rowsort
SELECT + + 64, 55 + + - 0 * - + 31 + + - 82 AS col0
----
64
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-9098
SELECT - - 75 DIV + - 39
----
-1

skipif mysql # not compatible
query I rowsort label-9098
SELECT - - 75 / + - 39
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9099
SELECT DISTINCT + COUNT( * ) * 74 + + 2 DIV - MAX( DISTINCT - + 56 ) * 5 + 41
----
115

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT + COUNT ( * ) * 74 + + 2 / - MAX ( DISTINCT - + 56 ) * 5 + 41
----
115

query I rowsort
SELECT - + 31 * + 43
----
-1333

query I rowsort
SELECT DISTINCT - 18 * + - 97 AS col0
----
1746

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9102
SELECT - - SUM( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT - - SUM ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 26, - 46 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT - - ( + - COUNT( * ) ) + - 5 * - 3 * - COUNT( * ) + 66 * 55
----
3614

skipif mysql # not compatible
query I rowsort label-9104
SELECT - - ( + - COUNT ( * ) ) + - 5 * - 3 * - COUNT ( * ) + 66 * 55
----
3614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9105
SELECT ALL 95, + COALESCE ( + 12, CASE + 54 WHEN - CAST( NULL AS SIGNED ) THEN 66 ELSE - 42 * + 58 END + - COUNT( * ), - 23 + 22 ) AS col0
----
95
12

skipif mysql # not compatible
query II rowsort label-9105
SELECT ALL 95, + COALESCE ( + 12, CASE + 54 WHEN - CAST ( NULL AS INTEGER ) THEN 66 ELSE - 42 * + 58 END + - COUNT ( * ), - 23 + 22 ) AS col0
----
95
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9106
SELECT + CASE COALESCE ( - 96, 9 ) WHEN - 52 + + + 89 THEN - 66 + + CAST( 8 AS DECIMAL ) WHEN 8 THEN - 94 END + SUM( DISTINCT 76 + + 14 * - 26 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT + CASE COALESCE ( - 96, 9 ) WHEN - 52 + + + 89 THEN - 66 + + CAST ( 8 AS REAL ) WHEN 8 THEN - 94 END + SUM ( DISTINCT 76 + + 14 * - 26 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT ALL + NULLIF ( + COALESCE ( + - 79, - COUNT( * ) ), 77 ) - 90
----
-169

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL + NULLIF ( + COALESCE ( + - 79, - COUNT ( * ) ), 77 ) - 90
----
-169

query I rowsort
SELECT - 26 * 99 AS col1
----
-2574

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9109
SELECT + COUNT( * ) + + 55 DIV - 76 col0
----
1

skipif mysql # not compatible
query I rowsort label-9109
SELECT + COUNT ( * ) + + 55 / - 76 col0
----
1

query I rowsort
SELECT - 43 + 28 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT DISTINCT 55 * - SUM( ALL + - 68 ) * + 49 AS col0
----
183260

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT 55 * - SUM ( ALL + - 68 ) * + 49 AS col0
----
183260

query I rowsort
SELECT - 20 + - - 13 AS col2
----
-7

query I rowsort
SELECT + 25 - + + 74 col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9114
SELECT + CASE + CAST( NULL AS DECIMAL ) WHEN - + 90 + + COALESCE ( - COUNT( * ), + + 82 - 0 ) THEN 5 + + 36 ELSE NULL END * MAX( DISTINCT - 78 * + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9114
SELECT + CASE + CAST ( NULL AS REAL ) WHEN - + 90 + + COALESCE ( - COUNT ( * ), + + 82 - 0 ) THEN 5 + + 36 ELSE NULL END * MAX ( DISTINCT - 78 * + 96 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT - COUNT( + 77 ) + + 93 + 70 + + SUM( ALL + 68 ) + - 60 * NULLIF ( + SUM( 36 ), + 36 + - 27 ) AS col2
----
-1930

skipif mysql # not compatible
query I rowsort label-9115
SELECT - COUNT ( + 77 ) + + 93 + 70 + + SUM ( ALL + 68 ) + - 60 * NULLIF ( + SUM ( 36 ), + 36 + - 27 ) AS col2
----
-1930

onlyif mysql # DIV for integer division: 
query II rowsort label-9116
SELECT ALL 8 - - 71, + 17 DIV - 74 AS col0
----
79
0

skipif mysql # not compatible
query II rowsort label-9116
SELECT ALL 8 - - 71, + 17 / - 74 AS col0
----
79
0

query I rowsort
SELECT DISTINCT + 36 * + - 21 * - 3 AS col2
----
2268

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9118
SELECT ALL CAST( NULL AS DECIMAL ) col1, 37 + + COUNT( * ) col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-9118
SELECT ALL CAST ( NULL AS REAL ) col1, 37 + + COUNT ( * ) col1
----
NULL
38

query I rowsort
SELECT + COALESCE ( - 0, + + 17, + - 64 - + 25 ) * + 54
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9120
SELECT + CAST( NULL AS SIGNED ) + 63 + + 69 * - 69 + - 15 * - - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9120
SELECT + CAST ( NULL AS INTEGER ) + 63 + + 69 * - 69 + - 15 * - - 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9121
SELECT + CASE + CAST( + 20 AS SIGNED ) WHEN 83 THEN + - COUNT( + - 46 ) * - 4 WHEN 68 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9121
SELECT + CASE + CAST ( + 20 AS INTEGER ) WHEN 83 THEN + - COUNT ( + - 46 ) * - 4 WHEN 68 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9122
SELECT DISTINCT COUNT( * ) DIV - ( + - 81 )
----
0

skipif mysql # not compatible
query I rowsort label-9122
SELECT DISTINCT COUNT ( * ) / - ( + - 81 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9123
SELECT ALL 12 DIV - 21 * - COUNT( * ) + + + 11 + - 63 + - 99 + COUNT( * ) * + 92
----
-59

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL 12 / - 21 * - COUNT ( * ) + + + 11 + - 63 + - 99 + COUNT ( * ) * + 92
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9124
SELECT CAST( + MAX( 96 ) AS SIGNED ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9124
SELECT CAST ( + MAX ( 96 ) AS INTEGER ) AS col2
----
96

query II rowsort
SELECT - 29 AS col0, + 71 * - 83 AS col2
----
-29
-5893

onlyif mysql # DIV for integer division: 
query I rowsort label-9126
SELECT ALL 57 DIV + 66 + + 64 * 63 * 53
----
213696

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL 57 / + 66 + + 64 * 63 * 53
----
213696

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT + MAX( 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9127
SELECT + MAX ( 81 ) AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9128
SELECT DISTINCT CAST( NULL AS SIGNED ) / COUNT( * ) + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT CAST ( NULL AS INTEGER ) / COUNT ( * ) + 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9129
SELECT - + 46 * + 87 - + - MIN( ALL ( + + ( + - CAST( NULL AS SIGNED ) ) ) ) + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9129
SELECT - + 46 * + 87 - + - MIN ( ALL ( + + ( + - CAST ( NULL AS INTEGER ) ) ) ) + 60
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9130
SELECT ALL - 14 DIV + 44 + + 45 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL - 14 / + 44 + + 45 AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9131
SELECT - + 0 * + + 59 * 71 * + 81 * - 63 + CAST( NULL AS SIGNED ) + 56 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9131
SELECT - + 0 * + + 59 * 71 * + 81 * - 63 + CAST ( NULL AS INTEGER ) + 56 col0
----
NULL

query II rowsort
SELECT + 52 AS col1, 58 AS col1
----
52
58

query II rowsort
SELECT 30 AS col1, + 67 AS col2
----
30
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9134
SELECT ALL + CAST( 33 AS SIGNED ) DIV 90 + 43 - - 71 + 91
----
205

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL + CAST ( 33 AS INTEGER ) / 90 + 43 - - 71 + 91
----
205

query I rowsort
SELECT - 73 * 14 - - 85 AS col2
----
-937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9136
SELECT - 84 * + 54 * 61 + 63 * 81 / + + 60 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9136
SELECT - 84 * + 54 * 61 + 63 * 81 / + + 60 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 28 - + 19
----
-47

query I rowsort
SELECT ALL 11 - + - 84
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT + 50 * MIN( + 12 ) * + - 25 + - NULLIF ( - - 18, - 23 ) AS col0
----
-15018

skipif mysql # not compatible
query I rowsort label-9139
SELECT + 50 * MIN ( + 12 ) * + - 25 + - NULLIF ( - - 18, - 23 ) AS col0
----
-15018

query I rowsort
SELECT ALL + - 56 * - 60 * 49 AS col2
----
164640

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9141
SELECT DISTINCT 29 - CAST( NULL AS DECIMAL ) * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT 29 - CAST ( NULL AS REAL ) * 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT - 17 * + - COUNT( 99 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9142
SELECT - 17 * + - COUNT ( 99 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT MAX( + - 77 ) * - + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-9143
SELECT MAX ( + - 77 ) * - + COUNT ( * )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9144
SELECT 32 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT 32 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9145
SELECT ALL - 49 * 20 * COUNT( - ( + 91 ) ) AS col2, - 62 AS col0
----
-980
-62

skipif mysql # not compatible
query II rowsort label-9145
SELECT ALL - 49 * 20 * COUNT ( - ( + 91 ) ) AS col2, - 62 AS col0
----
-980
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT DISTINCT COALESCE ( 57, COUNT( * ) + + 22 - - 75 ) * 86 AS col1
----
4902

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT COALESCE ( 57, COUNT ( * ) + + 22 - - 75 ) * 86 AS col1
----
4902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9147
SELECT 58 * + CAST( - - 63 AS SIGNED ) * 72
----
263088

skipif mysql # not compatible
query I rowsort label-9147
SELECT 58 * + CAST ( - - 63 AS INTEGER ) * 72
----
263088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9148
SELECT ALL + CAST( NULL AS SIGNED ) * 66 * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL + CAST ( NULL AS INTEGER ) * 66 * - 92
----
NULL

query II rowsort
SELECT 64 + - 80 AS col2, - 92
----
-16
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT COALESCE ( 54, + - COUNT( * ) ) * MIN( - 49 )
----
-2646

skipif mysql # not compatible
query I rowsort label-9150
SELECT COALESCE ( 54, + - COUNT ( * ) ) * MIN ( - 49 )
----
-2646

query I rowsort
SELECT 73 + - 29 + + 90
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT - COUNT( * ) - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9152
SELECT - COUNT ( * ) - COUNT ( * ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT MAX( ALL + 6 ) / + - 55 + 20 + - ( - - CASE 22 WHEN + 17 / 38 + + 60 THEN - 23 WHEN - 24 THEN - 32 ELSE NULL END ) * SUM( + 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT MAX ( ALL + 6 ) / + - 55 + 20 + - ( - - CASE 22 WHEN + 17 / 38 + + 60 THEN - 23 WHEN - 24 THEN - 32 ELSE NULL END ) * SUM ( + 59 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT SUM( + + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-9154
SELECT SUM ( + + 26 )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9155
SELECT DISTINCT + 53 DIV + - 77
----
0

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT + 53 / + - 77
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9156
SELECT ALL 29 DIV + 37 col1, - 30 AS col0
----
0
-30

skipif mysql # not compatible
query II rowsort label-9156
SELECT ALL 29 / + 37 col1, - 30 AS col0
----
0
-30

query I rowsort
SELECT + 68 * 35 * - - 22
----
52360

onlyif mysql # aggregate syntax: 
query II rowsort label-9158
SELECT ALL - SUM( DISTINCT - 2 ) AS col1, 56
----
2
56

skipif mysql # not compatible
query II rowsort label-9158
SELECT ALL - SUM ( DISTINCT - 2 ) AS col1, 56
----
2
56

query I rowsort
SELECT 29 * + 86 AS col1
----
2494

query I rowsort
SELECT COALESCE ( 30, + 78, - + 36 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT - 14 * - COUNT( * ) + + 89
----
103

skipif mysql # not compatible
query I rowsort label-9161
SELECT - 14 * - COUNT ( * ) + + 89
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT + CASE 63 WHEN - + 79 - + 49 THEN NULL WHEN + 49 + + 16 * - - 77 THEN + 81 * ( 33 ) - 41 ELSE COALESCE ( 52, 99 * 29 ) * COUNT( * ) END * 4 col0
----
208

skipif mysql # not compatible
query I rowsort label-9162
SELECT + CASE 63 WHEN - + 79 - + 49 THEN NULL WHEN + 49 + + 16 * - - 77 THEN + 81 * ( 33 ) - 41 ELSE COALESCE ( 52, 99 * 29 ) * COUNT ( * ) END * 4 col0
----
208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9163
SELECT - 81 * + ( - - ( 23 ) ) + - 89 + + CAST( + 46 AS SIGNED ) AS col2
----
-1906

skipif mysql # not compatible
query I rowsort label-9163
SELECT - 81 * + ( - - ( 23 ) ) + - 89 + + CAST ( + 46 AS INTEGER ) AS col2
----
-1906

onlyif mysql # aggregate syntax: 
query II rowsort label-9164
SELECT COUNT( * ) + - + 39 + 51 AS col1, 36
----
13
36

skipif mysql # not compatible
query II rowsort label-9164
SELECT COUNT ( * ) + - + 39 + 51 AS col1, 36
----
13
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT ALL - 90 DIV + 34
----
-2

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL - 90 / + 34
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9166
SELECT - 57 AS col2, + 33 * 15 * 79 + + + ( + COUNT( - 5 ) ) col2
----
-57
39106

skipif mysql # not compatible
query II rowsort label-9166
SELECT - 57 AS col2, + 33 * 15 * 79 + + + ( + COUNT ( - 5 ) ) col2
----
-57
39106

query I rowsort
SELECT ALL + 18 + - 86
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT 74 + COUNT( * ) + - + COUNT( * ) + - 52 + - + 41 - 20 * + - 5 + 54
----
135

skipif mysql # not compatible
query I rowsort label-9168
SELECT 74 + COUNT ( * ) + - + COUNT ( * ) + - 52 + - + 41 - 20 * + - 5 + 54
----
135

query I rowsort
SELECT 48 / CASE 49 WHEN ( + 54 ) * - 26 THEN - 98 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT - MIN( + 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-9170
SELECT - MIN ( + 63 )
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9171
SELECT 93 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT 93 + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT - SUM( - - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-9172
SELECT - SUM ( - - 88 )
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9173
SELECT 2 + - + COUNT( * ) DIV - + 21 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9173
SELECT 2 + - + COUNT ( * ) / - + 21 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT 73 * - MAX( ALL - 86 )
----
6278

skipif mysql # not compatible
query I rowsort label-9174
SELECT 73 * - MAX ( ALL - 86 )
----
6278

query I rowsort
SELECT DISTINCT 30 + 76
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9176
SELECT ALL 89 + + ( - 65 ) AS col2, NULLIF ( + ( - 17 ), - 29 + + 33 + 41 ) + MIN( ALL + 19 ) DIV 3 AS col0
----
24
-11

skipif mysql # not compatible
query II rowsort label-9176
SELECT ALL 89 + + ( - 65 ) AS col2, NULLIF ( + ( - 17 ), - 29 + + 33 + 41 ) + MIN ( ALL + 19 ) / 3 AS col0
----
24
-11

query I rowsort
SELECT DISTINCT + 73 + ( + 78 ) AS col2
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL + MAX( + 93 ) + - + 42
----
51

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL + MAX ( + 93 ) + - + 42
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT COUNT( * ) + + 1
----
2

skipif mysql # not compatible
query I rowsort label-9179
SELECT COUNT ( * ) + + 1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9180
SELECT DISTINCT + CAST( - 54 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT + CAST ( - 54 AS INTEGER )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT - NULLIF ( - COUNT( * ), + + ( + + 76 ) / 90 * 49 * - COUNT( * ) + + 85 + 68 * 3 )
----
1

skipif mysql # not compatible
query I rowsort label-9181
SELECT - NULLIF ( - COUNT ( * ), + + ( + + 76 ) / 90 * 49 * - COUNT ( * ) + + 85 + 68 * 3 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9182
SELECT - - 65 AS col0, - CASE - CASE - 40 WHEN - 99 THEN NULL ELSE + COUNT( * ) / - - 76 + - + MAX( ALL 38 ) + + 89 END WHEN + ( 38 ) THEN NULL WHEN + 84 * 39 THEN + 72 / 55 END
----
65
NULL

skipif mysql # not compatible
query II rowsort label-9182
SELECT - - 65 AS col0, - CASE - CASE - 40 WHEN - 99 THEN NULL ELSE + COUNT ( * ) / - - 76 + - + MAX ( ALL 38 ) + + 89 END WHEN + ( 38 ) THEN NULL WHEN + 84 * 39 THEN + 72 / 55 END
----
65
NULL

query I rowsort
SELECT ALL - + 90 - + 3
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT CASE 34 WHEN + 45 THEN NULL WHEN + 95 + - 79 THEN - - 61 ELSE COUNT( * ) END * 64 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-9184
SELECT CASE 34 WHEN + 45 THEN NULL WHEN + 95 + - 79 THEN - - 61 ELSE COUNT ( * ) END * 64 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT + COUNT( * ) * 45 + + 78 AS col2
----
123

skipif mysql # not compatible
query I rowsort label-9185
SELECT + COUNT ( * ) * 45 + + 78 AS col2
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9186
SELECT + - CASE - + 32 WHEN + CAST( CAST( - COUNT( * ) AS DECIMAL ) AS SIGNED ) + + 38 + + 12 * + 55 * 68 THEN NULL ELSE + MIN( DISTINCT 5 ) DIV - 59 + - 41 END
----
41

skipif mysql # not compatible
query I rowsort label-9186
SELECT + - CASE - + 32 WHEN + CAST ( CAST ( - COUNT ( * ) AS REAL ) AS INTEGER ) + + 38 + + 12 * + 55 * 68 THEN NULL ELSE + MIN ( DISTINCT 5 ) / - 59 + - 41 END
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9187
SELECT DISTINCT - 80 DIV NULLIF ( 65, - 0 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT - 80 / NULLIF ( 65, - 0 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9188
SELECT DISTINCT + 16 AS col0, 33 + - 36 DIV ( + 89 ) AS col0
----
16
33

skipif mysql # not compatible
query II rowsort label-9188
SELECT DISTINCT + 16 AS col0, 33 + - 36 / ( + 89 ) AS col0
----
16
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT ALL + + ( + COUNT( * ) ) * - 71 - + 95 - + 72 AS col1
----
-238

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL + + ( + COUNT ( * ) ) * - 71 - + 95 - + 72 AS col1
----
-238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9190
SELECT DISTINCT - - 43 * - - 59 DIV - COUNT( * ) - 61 DIV - MIN( - + 88 ) + + 77 - + ( + 64 ) AS col0
----
-2524

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT - - 43 * - - 59 / - COUNT ( * ) - 61 / - MIN ( - + 88 ) + + 77 - + ( + 64 ) AS col0
----
-2524

query I rowsort
SELECT ALL + - ( + 75 ) col2
----
-75

query II rowsort
SELECT - - ( + 48 ) * 67 + + 3 AS col0, 6 * + - ( + 91 ) + 71 - - 71 * - 76
----
3219
-5871

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT - + COUNT( * ) * - 64 col0
----
64

skipif mysql # not compatible
query I rowsort label-9193
SELECT - + COUNT ( * ) * - 64 col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9194
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, 87 AS col2
----
NULL
87

skipif mysql # not compatible
query II rowsort label-9194
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 87 AS col2
----
NULL
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9195
SELECT ALL - 48 DIV 60 + - NULLIF ( - - COUNT( * ), COUNT( * ) DIV + - 7 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL - 48 / 60 + - NULLIF ( - - COUNT ( * ), COUNT ( * ) / + - 7 ) AS col1
----
-1

query I rowsort
SELECT - 8 * 32 + + + 82 + 45
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9197
SELECT + + CAST( + 69 AS SIGNED ) col2
----
69

skipif mysql # not compatible
query I rowsort label-9197
SELECT + + CAST ( + 69 AS INTEGER ) col2
----
69

query II rowsort
SELECT ALL + 24 AS col2, - 18
----
24
-18

query I rowsort
SELECT + 21 * - + 12 col0
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL + SUM( DISTINCT 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL + SUM ( DISTINCT 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT ALL COUNT( * ) * - 32 + - 60
----
-92

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL COUNT ( * ) * - 32 + - 60
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9202
SELECT + CASE 76 WHEN + 47 + COUNT( * ) / - - 21 THEN + 72 WHEN + CAST( + 91 AS SIGNED ) THEN NULL WHEN - + CAST( NULL AS SIGNED ) THEN 9 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT + CASE 76 WHEN + 47 + COUNT ( * ) / - - 21 THEN + 72 WHEN + CAST ( + 91 AS INTEGER ) THEN NULL WHEN - + CAST ( NULL AS INTEGER ) THEN 9 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT + MIN( - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-9203
SELECT + MIN ( - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT - CASE MAX( + 57 ) WHEN + - 77 THEN ( - - COUNT( 64 ) ) * - 56 ELSE - - 39 END AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-9204
SELECT - CASE MAX ( + 57 ) WHEN + - 77 THEN ( - - COUNT ( 64 ) ) * - 56 ELSE - - 39 END AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9205
SELECT + 19 * 0 DIV + + MAX( DISTINCT + 9 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9205
SELECT + 19 * 0 / + + MAX ( DISTINCT + 9 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9206
SELECT ALL 25 + - 34 DIV 58
----
25

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL 25 + - 34 / 58
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-9207
SELECT + 31 * - 97 col1, + CASE AVG ( ALL + ( + 69 ) ) WHEN + + COUNT( * ) / + AVG ( - - 14 ) THEN NULL WHEN 94 THEN ( + 82 ) END AS col0
----
-3007
NULL

skipif mysql # not compatible
query II rowsort label-9207
SELECT + 31 * - 97 col1, + CASE AVG ( ALL + ( + 69 ) ) WHEN + + COUNT ( * ) / + AVG ( - - 14 ) THEN NULL WHEN 94 THEN ( + 82 ) END AS col0
----
-3007
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9208
SELECT + 83 DIV - 4
----
-20

skipif mysql # not compatible
query I rowsort label-9208
SELECT + 83 / - 4
----
-20

query I rowsort
SELECT ALL 89 + - + ( + 78 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9210
SELECT DISTINCT - 42 / - CAST( NULL AS SIGNED ) * - MIN( ALL 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT - 42 / - CAST ( NULL AS INTEGER ) * - MIN ( ALL 95 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9211
SELECT - 53 DIV + 14 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9211
SELECT - 53 / + 14 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9212
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + + 64 * + 94 * + 54 + - 31 * 39 * - 22 AS col0
----
351462

query I rowsort
SELECT ALL - 53 * - ( + 80 ) + + 3 + - 58 * + COALESCE ( - 83, + 89 ) * - 97 AS col0
----
-462715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9215
SELECT + - COUNT( * ) + 38 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9215
SELECT + - COUNT ( * ) + 38 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 23 * - ( - 61 ) col0
----
-1403

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9217
SELECT DISTINCT - NULLIF ( + + COUNT( * ), + COALESCE ( + 66, - 68 + + + 81, + 7 + 99 + + COUNT( * ) ) ) * + ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9217
SELECT DISTINCT - NULLIF ( + + COUNT ( * ), + COALESCE ( + 66, - 68 + + + 81, + 7 + 99 + + COUNT ( * ) ) ) * + ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9218
SELECT DISTINCT - MAX( DISTINCT - 1 ) * + - NULLIF ( 23, - 39 * - CAST( NULL AS SIGNED ) )
----
-23

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT - MAX ( DISTINCT - 1 ) * + - NULLIF ( 23, - 39 * - CAST ( NULL AS INTEGER ) )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT DISTINCT - 34 * + MAX( - COALESCE ( + 57, 84 ) )
----
1938

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT - 34 * + MAX ( - COALESCE ( + 57, 84 ) )
----
1938

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT ALL - MAX( + 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL - MAX ( + 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT - - 7 * + 1 * 44 * - COUNT( * ) AS col1
----
-308

skipif mysql # not compatible
query I rowsort label-9221
SELECT - - 7 * + 1 * 44 * - COUNT ( * ) AS col1
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT ALL + - MIN( ALL - 12 ) col1
----
12

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL + - MIN ( ALL - 12 ) col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9223
SELECT - 39 * + CASE + + 29 WHEN - 59 * CASE 5 WHEN - 27 * - 22 THEN - ( - 97 ) ELSE - 8 * - 66 END + + 45 THEN - 57 + + 22 DIV COALESCE ( - COALESCE ( - 9, + 87 * COUNT( * ), 28 + COUNT( - NULLIF ( 58, 79 ) ), 36 + - COALESCE ( + MAX( + 30 ), - 96 + 13 ) ), 55, - 58 ) ELSE 51 + 90 END * 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9223
SELECT - 39 * + CASE + + 29 WHEN - 59 * CASE 5 WHEN - 27 * - 22 THEN - ( - 97 ) ELSE - 8 * - 66 END + + 45 THEN - 57 + + 22 / COALESCE ( - COALESCE ( - 9, + 87 * COUNT ( * ), 28 + COUNT ( - NULLIF ( 58, 79 ) ), 36 + - COALESCE ( + MAX ( + 30 ), - 96 + 13 ) ), 55, - 58 ) ELSE 51 + 90 END * 0 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9224
SELECT + - CAST( + 19 AS SIGNED ) DIV + 51 * + COUNT( * ) + 63 * 83 + - 76 AS col0
----
5153

skipif mysql # not compatible
query I rowsort label-9224
SELECT + - CAST ( + 19 AS INTEGER ) / + 51 * + COUNT ( * ) + 63 * 83 + - 76 AS col0
----
5153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9225
SELECT ALL + - CAST( - 30 AS SIGNED ) AS col1, 70 + + 48 + 34
----
30
152

skipif mysql # not compatible
query II rowsort label-9225
SELECT ALL + - CAST ( - 30 AS INTEGER ) AS col1, 70 + + 48 + 34
----
30
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9226
SELECT ALL 41 * + + 30 + 14 + + - 4 + 76 DIV + + NULLIF ( + 2, - 29 * + - CAST( + - ( MAX( ALL - 88 ) ) AS SIGNED ) + 59 * + ( + COUNT( * ) DIV - 82 ) ) AS col0
----
1278

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL 41 * + + 30 + 14 + + - 4 + 76 / + + NULLIF ( + 2, - 29 * + - CAST ( + - ( MAX ( ALL - 88 ) ) AS INTEGER ) + 59 * + ( + COUNT ( * ) / - 82 ) ) AS col0
----
1278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9227
SELECT - CAST( NULL AS SIGNED ) + 6 + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9227
SELECT - CAST ( NULL AS INTEGER ) + 6 + + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT ALL + NULLIF ( - - 55, + + CASE + - COUNT( * ) WHEN - COUNT( * ) * + 12 * + + 66 * + 97 * + 75 + + - 5 + 63 THEN 57 * 87 WHEN - AVG ( DISTINCT + 13 ) - + 55 * 22 THEN - 81 END + 66 )
----
55

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL + NULLIF ( - - 55, + + CASE + - COUNT ( * ) WHEN - COUNT ( * ) * + 12 * + + 66 * + 97 * + 75 + + - 5 + 63 THEN 57 * 87 WHEN - AVG ( DISTINCT + 13 ) - + 55 * 22 THEN - 81 END + 66 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT + 28 * + COALESCE ( + 90, + 44 ) * - - 2 + ( 17 ) - COALESCE ( - 71, - + 60 + + COUNT( * ) ) * + 4 + 29
----
5370

skipif mysql # not compatible
query I rowsort label-9229
SELECT + 28 * + COALESCE ( + 90, + 44 ) * - - 2 + ( 17 ) - COALESCE ( - 71, - + 60 + + COUNT ( * ) ) * + 4 + 29
----
5370

query I rowsort
SELECT NULLIF ( - - 3, + 90 * + 37 ) AS col1
----
3

query I rowsort
SELECT 55 * + 36 + + 53
----
2033

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL MAX( 3 ) * + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL MAX ( 3 ) * + - COUNT ( * )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9233
SELECT - CASE - 39 WHEN 32 * - CAST( 48 AS SIGNED ) * + - ( - + COUNT( DISTINCT - 5 ) ) THEN + ( - + 81 ) ELSE NULL END + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT - CASE - 39 WHEN 32 * - CAST ( 48 AS INTEGER ) * + - ( - + COUNT ( DISTINCT - 5 ) ) THEN + ( - + 81 ) ELSE NULL END + 26 AS col2
----
NULL

query I rowsort
SELECT ALL 21 * - 51 + + NULLIF ( + 6, 33 )
----
-1065

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT - COALESCE ( - MAX( - + 82 ), + - COUNT( * ) + - - ( + 2 ), + + 99 - + 64 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-9235
SELECT - COALESCE ( - MAX ( - + 82 ), + - COUNT ( * ) + - - ( + 2 ), + + 99 - + 64 ) AS col1
----
-82

query I rowsort
SELECT DISTINCT 0 * - 56 * + ( + - 27 ) AS col0
----
0

query I rowsort
SELECT + 12 * 77 * - + 16 * + + 8
----
-118272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9238
SELECT + 29 + + + 47 DIV - - COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9238
SELECT + 29 + + + 47 / - - COUNT ( * ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT 1 * - MAX( 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-9239
SELECT 1 * - MAX ( 8 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9240
SELECT ALL - 35 AS col2, + COUNT( 93 )
----
-35
1

skipif mysql # not compatible
query II rowsort label-9240
SELECT ALL - 35 AS col2, + COUNT ( 93 )
----
-35
1

query I rowsort
SELECT - 21 + + + 8 AS col1
----
-13

query I rowsort
SELECT - 78 * - - 41
----
-3198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9243
SELECT ALL + 42 * COALESCE ( - - 61, - 81, MIN( + 25 ) * + 42 DIV - - 90, 70 * 39 DIV 77 + + 46 ) + 72
----
2634

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL + 42 * COALESCE ( - - 61, - 81, MIN ( + 25 ) * + 42 / - - 90, 70 * 39 / 77 + + 46 ) + 72
----
2634

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL - ( + CASE - 61 WHEN - + 9 + + COUNT( * ) + 17 - + 51 THEN + + 33 WHEN + 2 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL - ( + CASE - 61 WHEN - + 9 + + COUNT ( * ) + 17 - + 51 THEN + + 33 WHEN + 2 THEN NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL SUM( DISTINCT 52 )
----
52

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL SUM ( DISTINCT 52 )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9246
SELECT DISTINCT 66 DIV + 41
----
1

skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT 66 / + 41
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9247
SELECT + 45 * - + 8 / 74 / CAST( NULL AS SIGNED ) + - COALESCE ( - 69, + NULLIF ( - 22, - 99 - 8 * 7 ) + + ( - ( 5 ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9247
SELECT + 45 * - + 8 / 74 / CAST ( NULL AS INTEGER ) + - COALESCE ( - 69, + NULLIF ( - 22, - 99 - 8 * 7 ) + + ( - ( 5 ) ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ( - NULLIF ( - + 36, COUNT( * ) ) ) * - + COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-9248
SELECT ( - NULLIF ( - + 36, COUNT ( * ) ) ) * - + COUNT ( * ) AS col2
----
-36

query I rowsort
SELECT ALL 84 * - - NULLIF ( + - 53, 53 ) AS col1
----
-4452

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT DISTINCT - 48 * - - CASE - 3 WHEN + 54 * 69 THEN + MAX( ALL + - 60 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT - 48 * - - CASE - 3 WHEN + 54 * 69 THEN + MAX ( ALL + - 60 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + - 56 + 18
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT 74 * - 75 * - COUNT( * ) + - - 63
----
5613

skipif mysql # not compatible
query I rowsort label-9252
SELECT 74 * - 75 * - COUNT ( * ) + - - 63
----
5613

onlyif mysql # DIV for integer division: 
query I rowsort label-9253
SELECT 4 DIV - + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9253
SELECT 4 / - + 89 AS col1
----
0

query I rowsort
SELECT DISTINCT + 98 + - 59 AS col2
----
39

query I rowsort
SELECT ALL + ( - 42 ) + - 25 * - + 18 * + 2 AS col1
----
858

query I rowsort
SELECT DISTINCT - 86 + 44 AS col1
----
-42

query I rowsort
SELECT ALL + 32 + + 65 AS col2
----
97

query I rowsort
SELECT DISTINCT - 5 + + 14 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT CASE + 98 WHEN + + 62 THEN - MIN( DISTINCT + 24 ) ELSE - 7 * + 88 * 22 END * - 42 + + 10 + ( CASE - 16 WHEN + 51 THEN NULL ELSE 37 END ) + 83 AS col0
----
569314

skipif mysql # not compatible
query I rowsort label-9259
SELECT CASE + 98 WHEN + + 62 THEN - MIN ( DISTINCT + 24 ) ELSE - 7 * + 88 * 22 END * - 42 + + 10 + ( CASE - 16 WHEN + 51 THEN NULL ELSE 37 END ) + 83 AS col0
----
569314

onlyif mysql # aggregate syntax: 
query II rowsort label-9260
SELECT + 11 col2, + 74 + + COUNT( * )
----
11
75

skipif mysql # not compatible
query II rowsort label-9260
SELECT + 11 col2, + 74 + + COUNT ( * )
----
11
75

query I rowsort
SELECT ALL + 60 * - 27 col2
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL - 69 - + COUNT( * ) * + 13 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL - 69 - + COUNT ( * ) * + 13 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9263
SELECT DISTINCT - 70 AS col2, - COUNT( * ) AS col1
----
-70
-1

skipif mysql # not compatible
query II rowsort label-9263
SELECT DISTINCT - 70 AS col2, - COUNT ( * ) AS col1
----
-70
-1

query I rowsort
SELECT DISTINCT + 42 * - + 59 AS col0
----
-2478

query I rowsort
SELECT DISTINCT - 87 - - 51
----
-36

query I rowsort
SELECT 82 * + NULLIF ( + 75, - - 52 )
----
6150

query I rowsort
SELECT 98 - - + 15 col2
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9268
SELECT ALL + ( + ( 5 ) ) DIV + - COUNT( * ) + + - ( 15 ) - + 14 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL + ( + ( 5 ) ) / + - COUNT ( * ) + + - ( 15 ) - + 14 AS col2
----
-34

query II rowsort
SELECT ALL 41, - 19 AS col2
----
41
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT 71 - - COALESCE ( + 5, - COUNT( * ) ) + + + COALESCE ( + 33, + CASE - - ( 27 ) WHEN 39 THEN - 85 + 23 * 67 WHEN 79 THEN - 36 WHEN + ( COALESCE ( 39, SUM( 6 ) ) ) THEN NULL END + - 40 ) * 55
----
1891

skipif mysql # not compatible
query I rowsort label-9270
SELECT 71 - - COALESCE ( + 5, - COUNT ( * ) ) + + + COALESCE ( + 33, + CASE - - ( 27 ) WHEN 39 THEN - 85 + 23 * 67 WHEN 79 THEN - 36 WHEN + ( COALESCE ( 39, SUM ( 6 ) ) ) THEN NULL END + - 40 ) * 55
----
1891

query II rowsort
SELECT 16 AS col2, - 63 AS col1
----
16
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ALL + + CASE + 58 WHEN - 3 THEN + 4 + + COUNT( * ) - 75 + - - 96 * + ( - ( 64 ) ) / - + COUNT( * ) WHEN 7 THEN NULL WHEN 79 THEN NULL END * 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL + + CASE + 58 WHEN - 3 THEN + 4 + + COUNT ( * ) - 75 + - - 96 * + ( - ( 64 ) ) / - + COUNT ( * ) WHEN 7 THEN NULL WHEN 79 THEN NULL END * 23 AS col2
----
NULL

query I rowsort
SELECT - 24 * + 85 * + 5 AS col1
----
-10200

query I rowsort
SELECT 19 + + 51
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT - COUNT( * ) * 32 * - - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-9275
SELECT - COUNT ( * ) * 32 * - - COUNT ( * )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9276
SELECT 9 * CAST( NULL AS SIGNED ) * - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT 9 * CAST ( NULL AS INTEGER ) * - + 18
----
NULL

query II rowsort
SELECT + 17 AS col0, - 77 + - 96 AS col2
----
17
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL SUM( - 61 ) + - + 65
----
-126

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL SUM ( - 61 ) + - + 65
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT + 65 + + ( - CASE - + 53 WHEN - + 63 * - 35 + - CASE + - 42 WHEN 69 * + CASE - ( 84 ) WHEN 19 / 49 THEN COUNT( * ) - - 20 WHEN COUNT( * ) * + COALESCE ( - CASE 56 WHEN + 76 THEN - 2 / 25 ELSE NULL END, COUNT( * ) * - MIN( 19 ) ) THEN ( - ( + 27 ) ) ELSE NULL END * 16 + NULLIF ( - COUNT( ALL + 21 ), + 31 ) THEN NULL WHEN + 85 + COUNT( * ) THEN NULL ELSE - 47 END THEN NULL ELSE - 5 END ) col2
----
70

skipif mysql # not compatible
query I rowsort label-9279
SELECT + 65 + + ( - CASE - + 53 WHEN - + 63 * - 35 + - CASE + - 42 WHEN 69 * + CASE - ( 84 ) WHEN 19 / 49 THEN COUNT ( * ) - - 20 WHEN COUNT ( * ) * + COALESCE ( - CASE 56 WHEN + 76 THEN - 2 / 25 ELSE NULL END, COUNT ( * ) * - MIN ( 19 ) ) THEN ( - ( + 27 ) ) ELSE NULL END * 16 + NULLIF ( - COUNT ( ALL + 21 ), + 31 ) THEN NULL WHEN + 85 + COUNT ( * ) THEN NULL ELSE - 47 END THEN NULL ELSE - 5 END ) col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT ALL - + 99 + COUNT( * ) - + CASE 30 WHEN + 63 THEN - - 8 / - + 46 + 77 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL - + 99 + COUNT ( * ) - + CASE 30 WHEN + 63 THEN - - 8 / - + 46 + 77 * + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT DISTINCT + - COUNT( * ) * 22
----
-22

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT + - COUNT ( * ) * 22
----
-22

query I rowsort
SELECT ( - 15 ) + - 14 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT ALL - 69 + MAX( 59 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL - 69 + MAX ( 59 ) AS col1
----
-10

query II rowsort
SELECT ALL + 63 col0, - CASE - 9 WHEN - 83 / + 5 + - 99 + - 42 THEN - + ( + 21 ) ELSE NULL END
----
63
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9285
SELECT ALL + NULLIF ( - CASE + - CAST( - 71 AS SIGNED ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - NULLIF ( COUNT( * ), 5 + + 40 ) * - 90 * - + COUNT( * ) + 11 THEN + COUNT( * ) * 95 END, 68 * - 59 ) + + COUNT( * ) * CASE 10 + + 69 * + COALESCE ( - CAST( NULL AS SIGNED ) * + 43, MIN( - ( - 48 ) ) / + 7 ) WHEN - 12 THEN - ( 50 ) * + 47 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL + NULLIF ( - CASE + - CAST ( - 71 AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - NULLIF ( COUNT ( * ), 5 + + 40 ) * - 90 * - + COUNT ( * ) + 11 THEN + COUNT ( * ) * 95 END, 68 * - 59 ) + + COUNT ( * ) * CASE 10 + + 69 * + COALESCE ( - CAST ( NULL AS INTEGER ) * + 43, MIN ( - ( - 48 ) ) / + 7 ) WHEN - 12 THEN - ( 50 ) * + 47 END col1
----
NULL

query I rowsort
SELECT DISTINCT + 36 * + COALESCE ( - 45, 82 )
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT DISTINCT CASE + + 71 WHEN + 59 THEN NULL ELSE - + COUNT( * ) + - COALESCE ( + 60, 61 ) + 41 + + 74 END * 63 + - + 69 + + 19 AS col2
----
3352

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT CASE + + 71 WHEN + 59 THEN NULL ELSE - + COUNT ( * ) + - COALESCE ( + 60, 61 ) + 41 + + 74 END * 63 + - + 69 + + 19 AS col2
----
3352

query II rowsort
SELECT + 46 AS col0, - 97 AS col2
----
46
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9289
SELECT - CASE - + CASE - ( - COUNT( * ) ) WHEN + - 29 * - COUNT( - + 57 ) THEN - - 88 * + COUNT( * ) + + + COUNT( * ) WHEN + 55 THEN NULL ELSE NULL END WHEN + CASE ( - ( ( 79 ) ) ) WHEN COUNT( DISTINCT + 62 ) THEN + 83 * 89 ELSE 35 END * + 25 THEN 18 WHEN 64 + 54 THEN - COALESCE ( ( + 46 ), - 87, 95 DIV 29 ) WHEN - 49 THEN COUNT( * ) ELSE - 76 DIV 39 + + 41 END AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-9289
SELECT - CASE - + CASE - ( - COUNT ( * ) ) WHEN + - 29 * - COUNT ( - + 57 ) THEN - - 88 * + COUNT ( * ) + + + COUNT ( * ) WHEN + 55 THEN NULL ELSE NULL END WHEN + CASE ( - ( ( 79 ) ) ) WHEN COUNT ( DISTINCT + 62 ) THEN + 83 * 89 ELSE 35 END * + 25 THEN 18 WHEN 64 + 54 THEN - COALESCE ( ( + 46 ), - 87, 95 / 29 ) WHEN - 49 THEN COUNT ( * ) ELSE - 76 / 39 + + 41 END AS col0
----
-40

query I rowsort
SELECT DISTINCT 67 * + 63
----
4221

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT + ( - 89 ) DIV + 46 + + 7 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9291
SELECT + ( - 89 ) / + 46 + + 7 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9292
SELECT CAST( + COUNT( * ) AS SIGNED ) * - NULLIF ( + - 35, + 46 ) * - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-9292
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * - NULLIF ( + - 35, + 46 ) * - COUNT ( * )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9293
SELECT DISTINCT 1 * + 16 / - CASE WHEN NOT 45 IS NULL THEN - 93 ELSE NULL END - CASE - - 41 WHEN 86 + - MAX( - - CAST( NULL AS SIGNED ) ) * + 33 THEN 92 + + 58 * 55 END + - 43 / 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT 1 * + 16 / - CASE WHEN NOT 45 IS NULL THEN - 93 ELSE NULL END - CASE - - 41 WHEN 86 + - MAX ( - - CAST ( NULL AS INTEGER ) ) * + 33 THEN 92 + + 58 * 55 END + - 43 / 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT DISTINCT 14 * 77 - + + SUM( ALL + 82 ) * 7 * - 17 + + 90 AS col0
----
10926

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT 14 * 77 - + + SUM ( ALL + 82 ) * 7 * - 17 + + 90 AS col0
----
10926

query I rowsort
SELECT DISTINCT 7 * - 7 * - - 73
----
-3577

query I rowsort
SELECT ALL 25 * + - 13
----
-325

query II rowsort
SELECT 2 * 26 AS col0, 81
----
52
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT 11 + - SUM( + 97 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-9298
SELECT 11 + - SUM ( + 97 ) AS col0
----
-86

query I rowsort
SELECT ( 16 ) * 40
----
640

onlyif mysql # DIV for integer division: 
query I rowsort label-9300
SELECT 27 * 57 * 53 * 32 DIV + 85 AS col1
----
30707

skipif mysql # not compatible
query I rowsort label-9300
SELECT 27 * 57 * 53 * 32 / + 85 AS col1
----
30707

query I rowsort
SELECT ALL + CASE ( + 39 ) WHEN 71 THEN - + 5 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9302
SELECT MAX( + 0 ) col1, - 42
----
0
-42

skipif mysql # not compatible
query II rowsort label-9302
SELECT MAX ( + 0 ) col1, - 42
----
0
-42

query II rowsort
SELECT - 94 + 79 col0, 43 col2
----
-15
43

query I rowsort
SELECT - 70 + 92 + - 28 * ( + 22 ) + 58 AS col2
----
-536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9305
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT DISTINCT + ( + 65 ) * + + COUNT( * ) * - 74 * - 22
----
105820

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT + ( + 65 ) * + + COUNT ( * ) * - 74 * - 22
----
105820

query I rowsort
SELECT DISTINCT + + 89 * 46
----
4094

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ALL + 25 + - + 29 * + COUNT( ALL CASE WHEN NOT + 63 IS NULL THEN - 42 WHEN NOT ( ( + ( 15 ) ) ) IS NULL THEN NULL END ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL + 25 + - + 29 * + COUNT ( ALL CASE WHEN NOT + 63 IS NULL THEN - 42 WHEN NOT ( ( + ( 15 ) ) ) IS NULL THEN NULL END ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT - + 24 * - COALESCE ( + - 14, + 37, + + NULLIF ( + ( CASE 68 WHEN 94 + + COALESCE ( - 67, - 16 + + 10 ) THEN + NULLIF ( - 50, 12 ) - 52 END ), 90 ) ) + - NULLIF ( + SUM( + 77 ), - 73 + 10 * - 78 )
----
-413

skipif mysql # not compatible
query I rowsort label-9309
SELECT - + 24 * - COALESCE ( + - 14, + 37, + + NULLIF ( + ( CASE 68 WHEN 94 + + COALESCE ( - 67, - 16 + + 10 ) THEN + NULLIF ( - 50, 12 ) - 52 END ), 90 ) ) + - NULLIF ( + SUM ( + 77 ), - 73 + 10 * - 78 )
----
-413

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL + 14 * - 67 + - + ( COALESCE ( + CASE + 21 WHEN - CASE + 61 WHEN + 82 THEN + 96 + + COALESCE ( 0, - 66, CASE - 47 WHEN - 64 * + SUM( ALL - 7 ) THEN NULL WHEN - 38 + - 53 THEN 41 END + - 81 ) * 6 WHEN - 28 + COUNT( * ) THEN + MAX( - 92 ) + + COUNT( * ) / - 90 END / 82 THEN 50 + - MAX( DISTINCT - 44 ) * 73 END, 53 ) )
----
-991

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL + 14 * - 67 + - + ( COALESCE ( + CASE + 21 WHEN - CASE + 61 WHEN + 82 THEN + 96 + + COALESCE ( 0, - 66, CASE - 47 WHEN - 64 * + SUM ( ALL - 7 ) THEN NULL WHEN - 38 + - 53 THEN 41 END + - 81 ) * 6 WHEN - 28 + COUNT ( * ) THEN + MAX ( - 92 ) + + COUNT ( * ) / - 90 END / 82 THEN 50 + - MAX ( DISTINCT - 44 ) * 73 END, 53 ) )
----
-991

query I rowsort
SELECT DISTINCT + 23 + + ( - 33 ) AS col1
----
-10

query I rowsort
SELECT ALL - 64 + - ( 70 ) * + 68
----
-4824

query I rowsort
SELECT - - 59 * + + 86
----
5074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT ALL + + CAST( - + 96 AS SIGNED ) + 86 col0
----
-10

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL + + CAST ( - + 96 AS INTEGER ) + 86 col0
----
-10

query I rowsort
SELECT ALL + 79 + - - NULLIF ( + 37, + 32 ) + 79 AS col1
----
195

query I rowsort
SELECT DISTINCT COALESCE ( 36, - 83 * + 4 + + 29 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT ALL COUNT( * ) + + 70 * COUNT( + 39 )
----
71

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL COUNT ( * ) + + 70 * COUNT ( + 39 )
----
71

query I rowsort
SELECT - ( - - 22 ) * + 40
----
-880

onlyif mysql # DIV for integer division: 
query I rowsort label-9319
SELECT DISTINCT - 82 * 76 DIV + 28
----
-222

skipif mysql # not compatible
query I rowsort label-9319
SELECT DISTINCT - 82 * 76 / + 28
----
-222

query I rowsort
SELECT DISTINCT + 7 * + + 82 * - 62
----
-35588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9321
SELECT DISTINCT + - ( - + 72 ) + - - CAST( - 3 AS SIGNED ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT + - ( - + 72 ) + - - CAST ( - 3 AS INTEGER ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT + 12 * + + 40 * COUNT( * ) AS col1
----
480

skipif mysql # not compatible
query I rowsort label-9322
SELECT + 12 * + + 40 * COUNT ( * ) AS col1
----
480

onlyif mysql # aggregate syntax: 
query II rowsort label-9323
SELECT - + 57 * + - 24 col0, COUNT( * ) + + 31 + + - 81 AS col0
----
1368
-49

skipif mysql # not compatible
query II rowsort label-9323
SELECT - + 57 * + - 24 col0, COUNT ( * ) + + 31 + + - 81 AS col0
----
1368
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9324
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col2, - 35 * + 60
----
-1
-2100

skipif mysql # not compatible
query II rowsort label-9324
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col2, - 35 * + 60
----
-1
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT ALL + 88 - 34 + COUNT( * ) * 21
----
75

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL + 88 - 34 + COUNT ( * ) * 21
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9326
SELECT - 91 - + 38 + COALESCE ( - COUNT( 99 ), + 16 ) + - 28 + ( + COALESCE ( - 24, - 26 * - + 75 + + + 13 - 27 * - 61 ) ) DIV - 79 * COUNT( * ) * 88 col2
----
-158

skipif mysql # not compatible
query I rowsort label-9326
SELECT - 91 - + 38 + COALESCE ( - COUNT ( 99 ), + 16 ) + - 28 + ( + COALESCE ( - 24, - 26 * - + 75 + + + 13 - 27 * - 61 ) ) / - 79 * COUNT ( * ) * 88 col2
----
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9327
SELECT ALL CASE - 38 WHEN - ( - - 44 ) / 41 + - 7 * - NULLIF ( - - COUNT( * ), + ( - 37 ) ) * - COUNT( DISTINCT ( - 16 ) ) * - CAST( NULL AS SIGNED ) + - COUNT( * ) THEN NULL ELSE AVG ( ( + 94 ) ) END * + 41 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL CASE - 38 WHEN - ( - - 44 ) / 41 + - 7 * - NULLIF ( - - COUNT ( * ), + ( - 37 ) ) * - COUNT ( DISTINCT ( - 16 ) ) * - CAST ( NULL AS INTEGER ) + - COUNT ( * ) THEN NULL ELSE AVG ( ( + 94 ) ) END * + 41 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT DISTINCT + NULLIF ( COUNT( * ), - 20 )
----
1

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT + NULLIF ( COUNT ( * ), - 20 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9329
SELECT DISTINCT + 59 * + 47 * + COUNT( * ), CAST( NULL AS DECIMAL ) + - 92 col0
----
2773
NULL

skipif mysql # not compatible
query II rowsort label-9329
SELECT DISTINCT + 59 * + 47 * + COUNT ( * ), CAST ( NULL AS REAL ) + - 92 col0
----
2773
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9330
SELECT ALL + COALESCE ( 93, 33, + 27 ), COUNT( DISTINCT 99 ) AS col0
----
93
1

skipif mysql # not compatible
query II rowsort label-9330
SELECT ALL + COALESCE ( 93, 33, + 27 ), COUNT ( DISTINCT 99 ) AS col0
----
93
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9331
SELECT DISTINCT CAST( - + 72 AS SIGNED ) * + - 53 * + COUNT( * ) - 80
----
3736

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT CAST ( - + 72 AS INTEGER ) * + - 53 * + COUNT ( * ) - 80
----
3736

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT - NULLIF ( - NULLIF ( + 50, + COUNT( * ) ), - COUNT( * ) ) + - 2
----
48

skipif mysql # not compatible
query I rowsort label-9332
SELECT - NULLIF ( - NULLIF ( + 50, + COUNT ( * ) ), - COUNT ( * ) ) + - 2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9333
SELECT DISTINCT 77 DIV COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT 77 / COUNT ( * ) AS col1
----
77

query I rowsort
SELECT ( NULLIF ( + 54, + 38 ) )
----
54

query I rowsort
SELECT ALL 12 * + - 54
----
-648

query II rowsort
SELECT - 77 * + + ( - 74 ) + - 70 AS col1, - 49
----
5628
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9337
SELECT ALL 59 * + COUNT( * ) * + 45 DIV - COUNT( * ), - 45 AS col1
----
-2655
-45

skipif mysql # not compatible
query II rowsort label-9337
SELECT ALL 59 * + COUNT ( * ) * + 45 / - COUNT ( * ), - 45 AS col1
----
-2655
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9338
SELECT ALL + 82 AS col1, NULLIF ( - 48, - + NULLIF ( + - 86, 84 - - CAST( NULL AS SIGNED ) ) - + 55 ) AS col2
----
82
-48

skipif mysql # not compatible
query II rowsort label-9338
SELECT ALL + 82 AS col1, NULLIF ( - 48, - + NULLIF ( + - 86, 84 - - CAST ( NULL AS INTEGER ) ) - + 55 ) AS col2
----
82
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-9339
SELECT + 71 DIV 32 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9339
SELECT + 71 / 32 AS col1
----
2

query I rowsort
SELECT ALL + CASE + 86 WHEN - 60 THEN NULL ELSE + 99 * + 92 * - + 80 - - - ( - 45 ) END AS col1
----
-728595

query I rowsort
SELECT + 47 * - 82
----
-3854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9342
SELECT CASE - CAST( NULL AS SIGNED ) WHEN - + ( + 47 ) / + 52 + + 20 * - - 30 + + 11 + - 83 THEN 75 / + 64 + + COUNT( * ) WHEN - 77 / + 98 THEN NULL ELSE CAST( NULL AS DECIMAL ) * - 92 - + NULLIF ( NULLIF ( CAST( CASE 8 WHEN + 2 * 74 THEN 82 WHEN + 95 THEN 57 + - 98 END AS SIGNED ), 12 / + 97 ), 8 - 59 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9342
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN - + ( + 47 ) / + 52 + + 20 * - - 30 + + 11 + - 83 THEN 75 / + 64 + + COUNT ( * ) WHEN - 77 / + 98 THEN NULL ELSE CAST ( NULL AS REAL ) * - 92 - + NULLIF ( NULLIF ( CAST ( CASE 8 WHEN + 2 * 74 THEN 82 WHEN + 95 THEN 57 + - 98 END AS INTEGER ), 12 / + 97 ), 8 - 59 ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT DISTINCT ( + COALESCE ( - - 18, + 32 * + - ( + 49 ) + 57, + - MIN( - + 11 ) * - 10 + + - 61 ) ) * + 79
----
1422

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT ( + COALESCE ( - - 18, + 32 * + - ( + 49 ) + 57, + - MIN ( - + 11 ) * - 10 + + - 61 ) ) * + 79
----
1422

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL - COALESCE ( - 71, 41 + - 6, - + ( - - 13 ) ) * ( + 68 ) + 72 * + MAX( ALL ( 33 ) ) AS col0
----
7204

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL - COALESCE ( - 71, 41 + - 6, - + ( - - 13 ) ) * ( + 68 ) + 72 * + MAX ( ALL ( 33 ) ) AS col0
----
7204

query I rowsort
SELECT - - 74 * - 63 AS col0
----
-4662

query I rowsort
SELECT - - 48 * - 92 + + ( 14 ) - - 97 AS col1
----
-4305

query I rowsort
SELECT ALL + + 93 * - - 64 + 94 * - - 22 * - 71 * 82 * ( + 1 )
----
-12033944

query I rowsort
SELECT + 20 - 1
----
19

query II rowsort
SELECT - 12 col0, 77 * - 95
----
-12
-7315

query I rowsort
SELECT ALL - + 11 * - ( + + 83 ) + + 88 + - 55 AS col1
----
946

query II rowsort
SELECT ALL - 82 AS col2, 91 AS col1
----
-82
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT ALL 17 + + - ( + COUNT( ALL - 30 ) )
----
16

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL 17 + + - ( + COUNT ( ALL - 30 ) )
----
16

query II rowsort
SELECT ALL - 69 * + - 59 - + - 94 AS col2, 61 + 11 AS col2
----
4165
72

query I rowsort
SELECT ALL - + 36 + + 59 - - + 42 + - 28 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9355
SELECT - + 47 - - COALESCE ( + COUNT( * ), 63 * 95, + ( + - 39 ) ) - CASE - + SUM( ALL + CASE WHEN + 42 IS NULL THEN - 80 - 77 * + 26 END ) WHEN CAST( ( + 12 ) AS SIGNED ) * + 21 + CAST( 22 AS SIGNED ) * COUNT( * ) THEN + COALESCE ( + ( + CAST( NULL AS SIGNED ) ), 26 ) * 57 WHEN 77 * - 23 THEN NULL ELSE + 67 * 53 END col2
----
-3597

skipif mysql # not compatible
query I rowsort label-9355
SELECT - + 47 - - COALESCE ( + COUNT ( * ), 63 * 95, + ( + - 39 ) ) - CASE - + SUM ( ALL + CASE WHEN + 42 IS NULL THEN - 80 - 77 * + 26 END ) WHEN CAST ( ( + 12 ) AS INTEGER ) * + 21 + CAST ( 22 AS INTEGER ) * COUNT ( * ) THEN + COALESCE ( + ( + CAST ( NULL AS INTEGER ) ), 26 ) * 57 WHEN 77 * - 23 THEN NULL ELSE + 67 * 53 END col2
----
-3597

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT ALL - - 19 * - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL - - 19 * - COUNT ( * )
----
-19

query I rowsort
SELECT + - 78 + - 94 * 4 AS col1
----
-454

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT - - MIN( - - 79 ) - + MAX( ALL - 5 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-9358
SELECT - - MIN ( - - 79 ) - + MAX ( ALL - 5 ) AS col0
----
84

query I rowsort
SELECT - ( 68 ) col2
----
-68

query I rowsort
SELECT + + 3 + - 58 * + 43
----
-2491

query I rowsort
SELECT - 36 * - 48
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL + CASE - 54 WHEN + 17 + + 25 - + 6 * - COUNT( * ) * 74 * 48 * MAX( ALL - 73 ) THEN 65 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL + CASE - 54 WHEN + 17 + + 25 - + 6 * - COUNT ( * ) * 74 * 48 * MAX ( ALL - 73 ) THEN 65 ELSE NULL END col1
----
NULL

query I rowsort
SELECT - 50 + - 42 col2
----
-92

query I rowsort
SELECT - 63 + 1 + - 67 * + 69 AS col2
----
-4685

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9365
SELECT ALL - COUNT( * ) DIV 29 AS col1, 57 AS col2
----
0
57

skipif mysql # not compatible
query II rowsort label-9365
SELECT ALL - COUNT ( * ) / 29 AS col1, 57 AS col2
----
0
57

query I rowsort
SELECT DISTINCT ( - + 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9367
SELECT ALL - 10 DIV ( + ( NULLIF ( SUM( + + 97 ), 99 + - 81 ) ) ) * + + 18 * - 35 + - MAX( DISTINCT + 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL - 10 / ( + ( NULLIF ( SUM ( + + 97 ), 99 + - 81 ) ) ) * + + 18 * - 35 + - MAX ( DISTINCT + 10 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT ALL COUNT( * ) * - + 23
----
-23

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL COUNT ( * ) * - + 23
----
-23

query I rowsort
SELECT - 37 + 98 - - + ( + 57 ) + - 56 + - 27 AS col1
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9370
SELECT - 25 * + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT - 25 * + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9371
SELECT + 31 * - COUNT( * ), 35 * - 76 * + + 23 * 84 col0
----
-31
-5139120

skipif mysql # not compatible
query II rowsort label-9371
SELECT + 31 * - COUNT ( * ), 35 * - 76 * + + 23 * 84 col0
----
-31
-5139120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9372
SELECT DISTINCT - 28 * + COUNT( * ) DIV + 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT - 28 * + COUNT ( * ) / + 32 AS col0
----
0

query II rowsort
SELECT ALL - ( - - 4 ) AS col0, 48 col1
----
-4
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT ALL 71 * COUNT( + 89 )
----
71

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL 71 * COUNT ( + 89 )
----
71

query I rowsort
SELECT DISTINCT - 20 * + - 79 AS col1
----
1580

query II rowsort
SELECT DISTINCT 24 + 10 AS col1, + 96 * - 25 + 65
----
34
-2335

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT COUNT( * ) + - + 17 + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-9377
SELECT COUNT ( * ) + - + 17 + COUNT ( * )
----
-15

query I rowsort
SELECT - 98 * - 41 * + - 31 * - + 1 + - - 75
----
124633

query I rowsort
SELECT 46 * 80 AS col2
----
3680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9380
SELECT ALL COUNT( * ) DIV + - 31 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL COUNT ( * ) / + - 31 AS col0
----
0

query I rowsort
SELECT 48 + + + NULLIF ( - 13, 86 + + 84 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT DISTINCT - 31 + + 39 * 83 + - 74 + - + 1 - - + COALESCE ( - 57, 18 ) + 63 * - 70 + + - COUNT( * )
----
-1337

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT - 31 + + 39 * 83 + - 74 + - + 1 - - + COALESCE ( - 57, 18 ) + 63 * - 70 + + - COUNT ( * )
----
-1337

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT ALL 62 * - 36 * + - ( - COUNT( * ) )
----
-2232

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL 62 * - 36 * + - ( - COUNT ( * ) )
----
-2232

query I rowsort
SELECT 94 + 40 AS col0
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9385
SELECT ALL + 62 + + + 15, 83 - + + 68 DIV COUNT( * ) AS col2, + COALESCE ( 78, - + ( + 28 ), - + COUNT( * ) ) col2
----
77
15
78

skipif mysql # not compatible
query III rowsort label-9385
SELECT ALL + 62 + + + 15, 83 - + + 68 / COUNT ( * ) AS col2, + COALESCE ( 78, - + ( + 28 ), - + COUNT ( * ) ) col2
----
77
15
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9386
SELECT DISTINCT NULLIF ( - CAST( + + MIN( 1 ) AS SIGNED ), + 67 * + 65 * ( + - NULLIF ( 28, + 40 ) ) / 64 ) + 26 * 24 * 91
----
56783

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT NULLIF ( - CAST ( + + MIN ( 1 ) AS INTEGER ), + 67 * + 65 * ( + - NULLIF ( 28, + 40 ) ) / 64 ) + 26 * 24 * 91
----
56783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9387
SELECT + SUM( DISTINCT + + 38 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9387
SELECT + SUM ( DISTINCT + + 38 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 12 * + 44 col1
----
528

onlyif mysql # DIV for integer division: 
query I rowsort label-9389
SELECT 63 + - 8 + - 41 DIV - + 68 * - 65 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-9389
SELECT 63 + - 8 + - 41 / - + 68 * - 65 AS col1
----
55

query I rowsort
SELECT DISTINCT - CASE + AVG ( ALL 26 ) WHEN - 91 THEN - 3 / 28 * + 23 END - - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT DISTINCT CASE 28 WHEN - 24 * + 47 THEN + 17 - - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT CASE 28 WHEN - 24 * + 47 THEN + 17 - - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9392
SELECT ALL + COALESCE ( - CASE 80 WHEN - COUNT( * ) - + COALESCE ( - COUNT( * ), - - 44 * + + 95 * - + NULLIF ( + CASE - 46 WHEN - 42 THEN 57 + + - 67 + CAST( 37 AS SIGNED ) END, 95 ) ) + 50 THEN NULL ELSE 78 END, + 93 )
----
-78

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL + COALESCE ( - CASE 80 WHEN - COUNT ( * ) - + COALESCE ( - COUNT ( * ), - - 44 * + + 95 * - + NULLIF ( + CASE - 46 WHEN - 42 THEN 57 + + - 67 + CAST ( 37 AS INTEGER ) END, 95 ) ) + 50 THEN NULL ELSE 78 END, + 93 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9393
SELECT - - CAST( + - 72 AS SIGNED ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-9393
SELECT - - CAST ( + - 72 AS INTEGER ) AS col0
----
-72

query I rowsort
SELECT 92 * + - 79 col2
----
-7268

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT DISTINCT - CASE 68 WHEN 17 * + + COUNT( * ) THEN NULL WHEN - 95 * COUNT( * ) THEN NULL ELSE + + 97 END * 40
----
-3880

skipif mysql # not compatible
query I rowsort label-9395
SELECT DISTINCT - CASE 68 WHEN 17 * + + COUNT ( * ) THEN NULL WHEN - 95 * COUNT ( * ) THEN NULL ELSE + + 97 END * 40
----
-3880

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT DISTINCT 84 * SUM( + 54 ) * + COUNT( * ) AS col0
----
4536

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT 84 * SUM ( + 54 ) * + COUNT ( * ) AS col0
----
4536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9397
SELECT 18 * CAST( - 57 AS SIGNED ) * - 33 AS col0
----
33858

skipif mysql # not compatible
query I rowsort label-9397
SELECT 18 * CAST ( - 57 AS INTEGER ) * - 33 AS col0
----
33858

query I rowsort
SELECT DISTINCT + 97 * 56
----
5432

query I rowsort
SELECT 31 * - + 94
----
-2914

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9400
SELECT ALL + CASE 13 WHEN CAST( + MIN( DISTINCT - 78 ) AS DECIMAL ) THEN + - 9 - + MAX( ALL 76 ) ELSE - MIN( ALL + + 77 ) END + + 74
----
-3

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL + CASE 13 WHEN CAST ( + MIN ( DISTINCT - 78 ) AS REAL ) THEN + - 9 - + MAX ( ALL 76 ) ELSE - MIN ( ALL + + 77 ) END + + 74
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9401
SELECT 8 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-9401
SELECT 8 / - 77
----
0

query I rowsort
SELECT 17 * + 35 * 14
----
8330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9403
SELECT ALL - COUNT( * ) + - 21 + - 63 DIV 13 - - - 27 * + NULLIF ( + 66, - 89 ) * - - ( - MAX( ALL - 1 ) ) + + - 66 + + MIN( DISTINCT + 81 ) * + COUNT( * )
----
-1793

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL - COUNT ( * ) + - 21 + - 63 / 13 - - - 27 * + NULLIF ( + 66, - 89 ) * - - ( - MAX ( ALL - 1 ) ) + + - 66 + + MIN ( DISTINCT + 81 ) * + COUNT ( * )
----
-1793

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9404
SELECT DISTINCT - CAST( COALESCE ( - - CAST( + ( + - COUNT( * ) ) AS SIGNED ), SUM( + CAST( - 78 AS SIGNED ) ), + 27 ) AS SIGNED ) + + + 73 * - - 56 AS col0
----
4089

skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT - CAST ( COALESCE ( - - CAST ( + ( + - COUNT ( * ) ) AS INTEGER ), SUM ( + CAST ( - 78 AS INTEGER ) ), + 27 ) AS INTEGER ) + + + 73 * - - 56 AS col0
----
4089

query I rowsort
SELECT ALL + ( - + 55 ) + 61 + + - 37 + - 55 * - - 15 * - 76 * + + 56 * - 40
----
-140448031

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT ALL 18 + + 1 * COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL 18 + + 1 * COUNT ( * )
----
19

query I rowsort
SELECT DISTINCT 77 * + 76 AS col2
----
5852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9408
SELECT - 94 / COUNT( DISTINCT 65 ) - - - COALESCE ( + 7, + + 22, - + COUNT( DISTINCT - - 24 ) * + 90 * + 50 + - - 10 ) - + 73 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT - 94 / COUNT ( DISTINCT 65 ) - - - COALESCE ( + 7, + + 22, - + COUNT ( DISTINCT - - 24 ) * + 90 * + 50 + - - 10 ) - + 73 * + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9409
SELECT DISTINCT - CASE + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) + - COUNT( * ) + + COUNT( 95 ) THEN NULL WHEN - ( 53 ) * + + CASE 93 WHEN + 98 THEN - ( + 72 ) WHEN 0 THEN NULL WHEN + 82 * - 64 THEN 18 + + 2 ELSE NULL END THEN COUNT( * ) WHEN - 33 - 53 THEN NULL ELSE NULL END * + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT - CASE + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) + - COUNT ( * ) + + COUNT ( 95 ) THEN NULL WHEN - ( 53 ) * + + CASE 93 WHEN + 98 THEN - ( + 72 ) WHEN 0 THEN NULL WHEN + 82 * - 64 THEN 18 + + 2 ELSE NULL END THEN COUNT ( * ) WHEN - 33 - 53 THEN NULL ELSE NULL END * + 54 AS col1
----
NULL

query I rowsort
SELECT ALL + 34 + - 32 AS col0
----
2

query I rowsort
SELECT - + ( + 58 ) * - + 86 + - 86 + 90 + - 47
----
4945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9412
SELECT ALL - MAX( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + + NULLIF ( + 91, - 14 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9414
SELECT ALL + 91 * + - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL + 91 * + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - 86 - 27 AS col2
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT ALL - - CAST( - 2 AS SIGNED ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL - - CAST ( - 2 AS INTEGER ) col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT DISTINCT - 53 - - 90 * + + 81 * - COUNT( * ) - - ( + 45 ) * + 23 + - + COUNT( * ) + + ( - 78 )
----
-6387

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT - 53 - - 90 * + + 81 * - COUNT ( * ) - - ( + 45 ) * + 23 + - + COUNT ( * ) + + ( - 78 )
----
-6387

query I rowsort
SELECT + 43 * + 36
----
1548

onlyif mysql # aggregate syntax: 
query II rowsort label-9419
SELECT DISTINCT - + 17 AS col1, + ( + SUM( - - 61 ) ) AS col1
----
-17
61

skipif mysql # not compatible
query II rowsort label-9419
SELECT DISTINCT - + 17 AS col1, + ( + SUM ( - - 61 ) ) AS col1
----
-17
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9420
SELECT DISTINCT + 8 DIV + 64 * - 86
----
0

skipif mysql # not compatible
query I rowsort label-9420
SELECT DISTINCT + 8 / + 64 * - 86
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9421
SELECT ALL COUNT( * ) AS col1, 69 * 84
----
1
5796

skipif mysql # not compatible
query II rowsort label-9421
SELECT ALL COUNT ( * ) AS col1, 69 * 84
----
1
5796

query I rowsort
SELECT - 9 * + - 92 * + 90 AS col1
----
74520

query I rowsort
SELECT 78 * + ( - 66 ) AS col0
----
-5148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9424
SELECT 88 DIV - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-9424
SELECT 88 / - COUNT ( * )
----
-88

query I rowsort
SELECT DISTINCT 24 * + - 89
----
-2136

query I rowsort
SELECT - 68 - 41
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9427
SELECT CASE - 92 WHEN - - 20 * - 46 + - - 8 THEN - 70 WHEN + ( - 2 ) THEN 73 - + - CAST( 51 AS SIGNED ) + + + 53 WHEN - 59 THEN CAST( ( 23 ) AS SIGNED ) * 82 WHEN MIN( 80 ) / COALESCE ( - 4, - COUNT( * ) / 0 ) + 72 / 9 THEN 36 * 81 + + 0 * 78 END + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9427
SELECT CASE - 92 WHEN - - 20 * - 46 + - - 8 THEN - 70 WHEN + ( - 2 ) THEN 73 - + - CAST ( 51 AS INTEGER ) + + + 53 WHEN - 59 THEN CAST ( ( 23 ) AS INTEGER ) * 82 WHEN MIN ( 80 ) / COALESCE ( - 4, - COUNT ( * ) / 0 ) + 72 / 9 THEN 36 * 81 + + 0 * 78 END + 43 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9428
SELECT CAST( NULL AS SIGNED ) - + - COALESCE ( 4, MIN( 32 ) ) + MAX( - 73 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9428
SELECT CAST ( NULL AS INTEGER ) - + - COALESCE ( 4, MIN ( 32 ) ) + MAX ( - 73 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT - COUNT( + 14 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9429
SELECT - COUNT ( + 14 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT + COUNT( + - ( - COALESCE ( 96, + 65 * + + 6, + 62 ) ) ) + + 81 + - NULLIF ( + 25, - 91 * 54 * + + COUNT( * ) ) * - 85 * - 24 AS col1
----
-50918

skipif mysql # not compatible
query I rowsort label-9430
SELECT + COUNT ( + - ( - COALESCE ( 96, + 65 * + + 6, + 62 ) ) ) + + 81 + - NULLIF ( + 25, - 91 * 54 * + + COUNT ( * ) ) * - 85 * - 24 AS col1
----
-50918

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT - NULLIF ( + 22, COUNT( ALL 67 ) * + + COUNT( * ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-9431
SELECT - NULLIF ( + 22, COUNT ( ALL 67 ) * + + COUNT ( * ) ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-9432
SELECT ALL 48 AS col1, COUNT( * ) + + + 70 AS col1
----
48
71

skipif mysql # not compatible
query II rowsort label-9432
SELECT ALL 48 AS col1, COUNT ( * ) + + + 70 AS col1
----
48
71

query I rowsort
SELECT + 78 + - 80 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT ALL COALESCE ( COALESCE ( - 63, - ( + COUNT( * ) ), + 13 ), - 56 ) + - 33 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL COALESCE ( COALESCE ( - 63, - ( + COUNT ( * ) ), + 13 ), - 56 ) + - 33 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ALL 60 + + NULLIF ( + MAX( 64 ), 73 )
----
124

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL 60 + + NULLIF ( + MAX ( 64 ), 73 )
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT + 30 + - 50 * MIN( + 0 ) * + 12
----
30

skipif mysql # not compatible
query I rowsort label-9436
SELECT + 30 + - 50 * MIN ( + 0 ) * + 12
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9437
SELECT ALL - COUNT( * ) + + MIN( ALL + + 55 ) * 56 + - 29 + CAST( COUNT( * ) AS SIGNED ) * - COUNT( * ) - - 68 + 54 * - COUNT( * ) * + 33, 0 AS col0
----
1335
0

skipif mysql # not compatible
query II rowsort label-9437
SELECT ALL - COUNT ( * ) + + MIN ( ALL + + 55 ) * 56 + - 29 + CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( * ) - - 68 + 54 * - COUNT ( * ) * + 33, 0 AS col0
----
1335
0

query II rowsort
SELECT ALL + 48 + - + 59 AS col0, 34 AS col2
----
-11
34

query I rowsort
SELECT - 24 + - 40 col2
----
-64

query I rowsort
SELECT ALL COALESCE ( 99, 54 + - 73 + 42 ) * 66
----
6534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9441
SELECT CASE + 32 WHEN - 80 - + - CAST( + - MAX( DISTINCT ( - 16 ) ) AS SIGNED ) + - - 99 * + - 77 * - COUNT( 89 ) + + ( + 19 ) THEN NULL WHEN + 27 THEN + - ( + 61 ) WHEN 47 * MIN( - 74 * + 22 ) - COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT CASE + 32 WHEN - 80 - + - CAST ( + - MAX ( DISTINCT ( - 16 ) ) AS INTEGER ) + - - 99 * + - 77 * - COUNT ( 89 ) + + ( + 19 ) THEN NULL WHEN + 27 THEN + - ( + 61 ) WHEN 47 * MIN ( - 74 * + 22 ) - COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9442
SELECT + NULLIF ( + ( - 96 ), 19 ), + CAST( - + 96 AS SIGNED )
----
-96
-96

skipif mysql # not compatible
query II rowsort label-9442
SELECT + NULLIF ( + ( - 96 ), 19 ), + CAST ( - + 96 AS INTEGER )
----
-96
-96

query I rowsort
SELECT NULLIF ( - ( + - 72 ), 35 ) col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-9444
SELECT + 88 * - MAX( + ( 60 ) ) col2, COALESCE ( - 92, 8 ) * - COUNT( * ) * - - 27 + 1 * - COUNT( * ) AS col0
----
-5280
2483

skipif mysql # not compatible
query II rowsort label-9444
SELECT + 88 * - MAX ( + ( 60 ) ) col2, COALESCE ( - 92, 8 ) * - COUNT ( * ) * - - 27 + 1 * - COUNT ( * ) AS col0
----
-5280
2483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9445
SELECT - 82 + - 85 * CAST( 11 AS SIGNED ) * + 82
----
-76752

skipif mysql # not compatible
query I rowsort label-9445
SELECT - 82 + - 85 * CAST ( 11 AS INTEGER ) * + 82
----
-76752

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9446
SELECT ALL + + 41 * CAST( NULL AS SIGNED ) - - 99 / - - 61 AS col0, 0 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9446
SELECT ALL + + 41 * CAST ( NULL AS INTEGER ) - - 99 / - - 61 AS col0, 0 AS col2
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9447
SELECT ALL + - 5 DIV - - ( - - 83 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL + - 5 / - - ( - - 83 ) AS col1
----
0

query II rowsort
SELECT + 20 AS col1, ( - + ( + - 67 ) )
----
20
67

query II rowsort
SELECT ALL + - 83, 50 AS col1
----
-83
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9450
SELECT ALL - + ( + - 11 ) DIV + + COALESCE ( 74, - - 96 DIV - + NULLIF ( + - MAX( 86 ), + 82 - - 53 * + - 92 ) * - 47 * - + ( + 97 ), - + ( + 19 ) ) + - 87
----
-87

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL - + ( + - 11 ) / + + COALESCE ( 74, - - 96 / - + NULLIF ( + - MAX ( 86 ), + 82 - - 53 * + - 92 ) * - 47 * - + ( + 97 ), - + ( + 19 ) ) + - 87
----
-87

query I rowsort
SELECT + 66 * - + 55
----
-3630

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT - - 60 + - COUNT( ALL 92 ) + + COUNT( * ) * 78 AS col1
----
137

skipif mysql # not compatible
query I rowsort label-9452
SELECT - - 60 + - COUNT ( ALL 92 ) + + COUNT ( * ) * 78 AS col1
----
137

query I rowsort
SELECT ALL + - 25 * 94 AS col1
----
-2350

query I rowsort
SELECT DISTINCT + + 0 * + 78 + + 73 AS col2
----
73

query I rowsort
SELECT ALL + - 50 * - NULLIF ( - 74, ( 58 ) / - 37 ) AS col2
----
-3700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9456
SELECT - + 24 + - 4, CAST( NULL AS SIGNED ) + + - 92 + - - 1 AS col1
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-9456
SELECT - + 24 + - 4, CAST ( NULL AS INTEGER ) + + - 92 + - - 1 AS col1
----
-28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT ALL + - 33 * + 43 - 8 + 38 + + 94 * + 1 + 35 * + + 73 + - 15 + CASE + - NULLIF ( 96, - COUNT( * ) / CASE - 63 WHEN 25 THEN NULL WHEN 50 THEN 71 ELSE + CASE 92 WHEN + 23 THEN + CASE 84 WHEN 77 THEN ( - COUNT( * ) ) WHEN COUNT( * ) * + ( 65 ) + - COALESCE ( 26, + 36 * + ( - 34 ) + + 2 ) THEN + ( MAX( DISTINCT 94 ) ) ELSE NULL END END END ) WHEN AVG ( ALL 73 ) THEN NULL WHEN 51 + - 62 THEN NULL ELSE 85 END + - NULLIF ( - ( 70 ), ( 25 ) + 89 * NULLIF ( - 94 + - 27, - 47 + + 89 / + 59 ) ) * 41
----
4200

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL + - 33 * + 43 - 8 + 38 + + 94 * + 1 + 35 * + + 73 + - 15 + CASE + - NULLIF ( 96, - COUNT ( * ) / CASE - 63 WHEN 25 THEN NULL WHEN 50 THEN 71 ELSE + CASE 92 WHEN + 23 THEN + CASE 84 WHEN 77 THEN ( - COUNT ( * ) ) WHEN COUNT ( * ) * + ( 65 ) + - COALESCE ( 26, + 36 * + ( - 34 ) + + 2 ) THEN + ( MAX ( DISTINCT 94 ) ) ELSE NULL END END END ) WHEN AVG ( ALL 73 ) THEN NULL WHEN 51 + - 62 THEN NULL ELSE 85 END + - NULLIF ( - ( 70 ), ( 25 ) + 89 * NULLIF ( - 94 + - 27, - 47 + + 89 / + 59 ) ) * 41
----
4200

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9458
SELECT ALL + + 90 AS col0, 52 + 84 - - 28 DIV + 57 + - 25 + + 80 + + 32 DIV + ( + 80 ) + + ( + CAST( - 38 AS SIGNED ) ) + 77 DIV 89
----
90
153

skipif mysql # not compatible
query II rowsort label-9458
SELECT ALL + + 90 AS col0, 52 + 84 - - 28 / + 57 + - 25 + + 80 + + 32 / + ( + 80 ) + + ( + CAST ( - 38 AS INTEGER ) ) + 77 / 89
----
90
153

query II rowsort
SELECT ALL - 13 AS col0, 15 + - 65 AS col1
----
-13
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-9460
SELECT + 61 AS col0, + COUNT( * ) col1
----
61
1

skipif mysql # not compatible
query II rowsort label-9460
SELECT + 61 AS col0, + COUNT ( * ) col1
----
61
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9461
SELECT - COALESCE ( - 93, + 18 + + 90 + + COUNT( * ) - ( + COALESCE ( + - COUNT( * ), 16 * COUNT( - + 21 ) ) ) * 68 + 65 - + + 1 + + 11 DIV + 57 * + 51 - + SUM( DISTINCT + ( 28 ) ) ) * + 40 AS col2
----
3720

skipif mysql # not compatible
query I rowsort label-9461
SELECT - COALESCE ( - 93, + 18 + + 90 + + COUNT ( * ) - ( + COALESCE ( + - COUNT ( * ), 16 * COUNT ( - + 21 ) ) ) * 68 + 65 - + + 1 + + 11 / + 57 * + 51 - + SUM ( DISTINCT + ( 28 ) ) ) * + 40 AS col2
----
3720

query I rowsort
SELECT - 52 + + - 87
----
-139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9463
SELECT ALL 39 AS col2, - COUNT( ALL - CAST( - 41 AS SIGNED ) ) * 29 + COUNT( * ) DIV - + 17
----
39
-29

skipif mysql # not compatible
query II rowsort label-9463
SELECT ALL 39 AS col2, - COUNT ( ALL - CAST ( - 41 AS INTEGER ) ) * 29 + COUNT ( * ) / - + 17
----
39
-29

query II rowsort
SELECT - 50, + 12 + - 76 AS col1
----
-50
-64

query II rowsort
SELECT ALL 72 AS col1, 29
----
72
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9466
SELECT + 90 + COUNT( * ) - - 3 DIV 58 * + 98
----
91

skipif mysql # not compatible
query I rowsort label-9466
SELECT + 90 + COUNT ( * ) - - 3 / 58 * + 98
----
91

query I rowsort
SELECT DISTINCT ( + 77 ) * - + 72
----
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT ALL 49 + + 83 + + + 53 * - COUNT( * ) * - 1
----
185

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL 49 + + 83 + + + 53 * - COUNT ( * ) * - 1
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-9469
SELECT + 54 * NULLIF ( - 11, - ( 67 ) ) * + - 50 + + NULLIF ( 93, + 6 + - NULLIF ( - 62, + + 50 ) ) + - - 93 * ( + COUNT( * ) ) AS col2, 99 * - 88 * 19 AS col0
----
29886
-165528

skipif mysql # not compatible
query II rowsort label-9469
SELECT + 54 * NULLIF ( - 11, - ( 67 ) ) * + - 50 + + NULLIF ( 93, + 6 + - NULLIF ( - 62, + + 50 ) ) + - - 93 * ( + COUNT ( * ) ) AS col2, 99 * - 88 * 19 AS col0
----
29886
-165528

onlyif mysql # aggregate syntax: 
query II rowsort label-9470
SELECT ALL - 79 + COUNT( * ) AS col1, 46
----
-78
46

skipif mysql # not compatible
query II rowsort label-9470
SELECT ALL - 79 + COUNT ( * ) AS col1, 46
----
-78
46

query I rowsort
SELECT + 31 * + + 84 * + 3 AS col2
----
7812

query I rowsort
SELECT - 95 * - + 42 AS col2
----
3990

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT + COUNT( * ) * 72 * - ( - - 50 ) col0
----
-3600

skipif mysql # not compatible
query I rowsort label-9473
SELECT + COUNT ( * ) * 72 * - ( - - 50 ) col0
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT + COUNT( * ) + + - ( - - ( + - 90 ) )
----
91

skipif mysql # not compatible
query I rowsort label-9474
SELECT + COUNT ( * ) + + - ( - - ( + - 90 ) )
----
91

query I rowsort
SELECT ALL 83 - - ( + 31 )
----
114

query II rowsort
SELECT - NULLIF ( 12, - 17 ), + 19 * - 63 * + - 68 col1
----
-12
81396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9477
SELECT + 41 - + + 78 * + NULLIF ( - 13, 24 / - - COALESCE ( - 41, + 44 * + - COALESCE ( + 31, - 23, - 77 * + - 72 + + 81 - + CAST( + 94 AS SIGNED ), + 65 ) + - COUNT( * ) ) ) + COUNT( * ) AS col0
----
1056

skipif mysql # not compatible
query I rowsort label-9477
SELECT + 41 - + + 78 * + NULLIF ( - 13, 24 / - - COALESCE ( - 41, + 44 * + - COALESCE ( + 31, - 23, - 77 * + - 72 + + 81 - + CAST ( + 94 AS INTEGER ), + 65 ) + - COUNT ( * ) ) ) + COUNT ( * ) AS col0
----
1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9478
SELECT ALL - 3 DIV - 22 - - COALESCE ( 26, ( + MIN( - 33 ) ) + + 43, - 79 ) * + + 64 * - 62 AS col0
----
-103168

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL - 3 / - 22 - - COALESCE ( 26, ( + MIN ( - 33 ) ) + + 43, - 79 ) * + + 64 * - 62 AS col0
----
-103168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9479
SELECT ALL 2 / + CAST( NULL AS SIGNED ) - COALESCE ( + + 75, + 47 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL 2 / + CAST ( NULL AS INTEGER ) - COALESCE ( + + 75, + 47 ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9480
SELECT ALL CAST( - + ( - 77 ) AS SIGNED ) * + 15 * - ( + + 27 ) * NULLIF ( + CAST( NULL AS SIGNED ), 30 + + COUNT( + - 65 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL CAST ( - + ( - 77 ) AS INTEGER ) * + 15 * - ( + + 27 ) * NULLIF ( + CAST ( NULL AS INTEGER ), 30 + + COUNT ( + - 65 ) )
----
NULL

query I rowsort
SELECT DISTINCT 85 * - 44
----
-3740

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT + - SUM( + + NULLIF ( + 13, - - 32 + 63 ) ) col2
----
-13

skipif mysql # not compatible
query I rowsort label-9482
SELECT + - SUM ( + + NULLIF ( + 13, - - 32 + 63 ) ) col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT + CAST( 13 AS SIGNED ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9483
SELECT + CAST ( 13 AS INTEGER ) AS col1
----
13

query I rowsort
SELECT + 0 * - 37 AS col1
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( - ( + 39 ), - 98, - 16 + - - 61 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9486
SELECT ALL - NULLIF ( - 31, CASE + - 99 WHEN 17 + 48 THEN NULL WHEN - - 79 THEN + - 21 + + + COUNT( * ) - + + CAST( 44 AS SIGNED ) END ) * + + 39
----
1209

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL - NULLIF ( - 31, CASE + - 99 WHEN 17 + 48 THEN NULL WHEN - - 79 THEN + - 21 + + + COUNT ( * ) - + + CAST ( 44 AS INTEGER ) END ) * + + 39
----
1209

onlyif mysql # DIV for integer division: 
query I rowsort label-9487
SELECT - 27 DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-9487
SELECT - 27 / 44
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9488
SELECT DISTINCT 56 * + - 12 + SUM( + + 98 ) + - ( + + ( SUM( 31 ) ) ) + - 16 + 17 DIV + + 54 DIV + COUNT( * ) + + COUNT( * ) - + 27
----
-647

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT 56 * + - 12 + SUM ( + + 98 ) + - ( + + ( SUM ( 31 ) ) ) + - 16 + 17 / + + 54 / + COUNT ( * ) + + COUNT ( * ) - + 27
----
-647

onlyif mysql # aggregate syntax: 
query II rowsort label-9489
SELECT + 80 * + COUNT( * ) col1, + 66 AS col2
----
80
66

skipif mysql # not compatible
query II rowsort label-9489
SELECT + 80 * + COUNT ( * ) col1, + 66 AS col2
----
80
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9490
SELECT ALL - 49 * CAST( + COUNT( * ) AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL - 49 * CAST ( + COUNT ( * ) AS INTEGER )
----
-49

query I rowsort
SELECT + + CASE - 29 WHEN - - CASE + 74 WHEN - 24 THEN NULL ELSE 44 END THEN 41 / + 39 END AS col1
----
NULL

query I rowsort
SELECT 51 - + 49 + + 12
----
14

query I rowsort
SELECT 11 + + 73 * - 58 * - ( + ( + + 16 ) )
----
67755

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT ALL - NULLIF ( + SUM( 15 ), 25 ) + - 34 - - 90 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL - NULLIF ( + SUM ( 15 ), 25 ) + - 34 - - 90 AS col2
----
41

query II rowsort
SELECT - 48, - 40 col2
----
-48
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT ALL - COUNT( * ) + + ( - - 43 )
----
42

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL - COUNT ( * ) + + ( - - 43 )
----
42

query II rowsort
SELECT DISTINCT 53 AS col0, - 69
----
53
-69

query II rowsort
SELECT 13 AS col2, 27
----
13
27

query I rowsort
SELECT 11 + + 32 AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9500
SELECT ALL - 48 - + COUNT( * ) DIV + - ( - 15 )
----
-48

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL - 48 - + COUNT ( * ) / + - ( - 15 )
----
-48

query I rowsort
SELECT 17 * 49
----
833

query II rowsort
SELECT - 69 AS col0, 92 AS col0
----
-69
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT ALL 59 * - COUNT( * ) * - - 59 AS col0
----
-3481

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL 59 * - COUNT ( * ) * - - 59 AS col0
----
-3481

query I rowsort
SELECT 36 + - 27 + - 19 * - ( + 97 ) * 83 AS col2
----
152978

query II rowsort
SELECT 42, ( - + 4 ) col2
----
42
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT COUNT( * ) + - 78 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-9506
SELECT COUNT ( * ) + - 78 AS col0
----
-77

query I rowsort
SELECT ALL 53 * + 63
----
3339

query II rowsort
SELECT - 80 AS col1, + 64
----
-80
64

query I rowsort
SELECT 55 + 9 - + + 57 + + 95 * - 76
----
-7213

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT ALL 29 - - 96 * + 2 + + + SUM( DISTINCT 74 ) AS col0
----
295

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL 29 - - 96 * + 2 + + + SUM ( DISTINCT 74 ) AS col0
----
295

onlyif mysql # DIV for integer division: 
query I rowsort label-9511
SELECT 61 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-9511
SELECT 61 / - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT DISTINCT - + NULLIF ( 68, + - MIN( - - 98 ) ) * COALESCE ( + COUNT( * ), - + 35 )
----
-68

skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT - + NULLIF ( 68, + - MIN ( - - 98 ) ) * COALESCE ( + COUNT ( * ), - + 35 )
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9513
SELECT + - CAST( NULL AS SIGNED ) / CAST( - 97 AS SIGNED ) + 62 * - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT + - CAST ( NULL AS INTEGER ) / CAST ( - 97 AS INTEGER ) + 62 * - 46 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9514
SELECT + 5, ( + + 3 ) + + 1 + + - 63 + 99 DIV + 52 AS col2
----
5
-58

skipif mysql # not compatible
query II rowsort label-9514
SELECT + 5, ( + + 3 ) + + 1 + + - 63 + 99 / + 52 AS col2
----
5
-58

query II rowsort
SELECT ALL - - 45 AS col2, + 87
----
45
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9516
SELECT ALL 28 * - 98 - COUNT( * ) + - 5 * - 52 + - ( - + SUM( ALL - + 56 ) ) AS col2, COUNT( * ) * 51
----
-2541
51

skipif mysql # not compatible
query II rowsort label-9516
SELECT ALL 28 * - 98 - COUNT ( * ) + - 5 * - 52 + - ( - + SUM ( ALL - + 56 ) ) AS col2, COUNT ( * ) * 51
----
-2541
51

query I rowsort
SELECT + 98 * - 83 * + 66
----
-536844

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9518
SELECT ALL + 2 + + - CAST( NULL AS SIGNED ) * - - 82 + + + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL + 2 + + - CAST ( NULL AS INTEGER ) * - - 82 + + + 6 AS col2
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + + ( 23 ), - - 35 ) + - 58 * + 30 AS col1
----
-1717

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9520
SELECT DISTINCT AVG ( DISTINCT - 28 ) + - - 26 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT AVG ( DISTINCT - 28 ) + - - 26 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 64 * + 65 * + COALESCE ( + 76, - 31 ) - + - 69 * 70 AS col2
----
320990

query I rowsort
SELECT ALL 4 + - + 19 AS col0
----
-15

query I rowsort
SELECT DISTINCT - 19 * - 11
----
209

query II rowsort
SELECT + 82 * - 39 + - - ( - + 80 ) * - 4 + 16 + 22 + + 97 AS col1, + 88
----
-2743
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9525
SELECT ALL - 75 + + COUNT( * ) * - CAST( NULL AS SIGNED ) * 99 * - 81 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL - 75 + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * 99 * - 81 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9526
SELECT ALL - 24 DIV 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL - 24 / 83 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9527
SELECT DISTINCT - ( 46 ) * 32 DIV + + 95 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT - ( 46 ) * 32 / + + 95 AS col1
----
-15

query I rowsort
SELECT 1 * ( - - 24 ) * - 84 + + - 23
----
-2039

query I rowsort
SELECT 46 + 60 AS col0
----
106

query I rowsort
SELECT DISTINCT + 7 * + - 3 AS col1
----
-21

query I rowsort
SELECT 62 * + 28 * - + 52 * + + 43
----
-3881696

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT DISTINCT - 44 * - SUM( - - 97 ) * 68 AS col2
----
290224

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT - 44 * - SUM ( - - 97 ) * 68 AS col2
----
290224

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT DISTINCT - 35 - + - COUNT( * ) * - 55 - - - NULLIF ( 5, - 8 )
----
-95

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT - 35 - + - COUNT ( * ) * - 55 - - - NULLIF ( 5, - 8 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT MAX( 27 )
----
27

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT MAX ( 27 )
----
27

query I rowsort
SELECT 36 - - 99 AS col1
----
135

query I rowsort
SELECT 22 * 69 AS col0
----
1518

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9537
SELECT AVG ( ALL - 2 ) / 54 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT AVG ( ALL - 2 ) / 54 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 34 + 95 AS col2
----
129

query I rowsort
SELECT - 60 - - - ( NULLIF ( - - 70, - 34 ) )
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9540
SELECT CAST( NULL AS SIGNED ) / COUNT( * ) + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9540
SELECT CAST ( NULL AS INTEGER ) / COUNT ( * ) + 18
----
NULL

query I rowsort
SELECT - COALESCE ( - 88, - 60 + 86 + 32 )
----
88

query I rowsort
SELECT ALL - 50 * - NULLIF ( 62, 67 * - 41 ) + + - 53 + + 1 col0
----
3048

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9543
SELECT 9 + 56 + + + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9543
SELECT 9 + 56 + + + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT DISTINCT + 36 * - 47 + - 19
----
-1711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9545
SELECT + 18 DIV - - 44 * 63 * COUNT( + 14 ) + - 65
----
-65

skipif mysql # not compatible
query I rowsort label-9545
SELECT + 18 / - - 44 * 63 * COUNT ( + 14 ) + - 65
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT + COUNT( * ) - + + 32 + 46 + 6 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9546
SELECT + COUNT ( * ) - + + 32 + 46 + 6 AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9547
SELECT DISTINCT + ( - - 33 ), - 41 DIV MAX( ALL - + 8 ) * - - MIN( - 2 ) + + 29 AS col1
----
33
19

skipif mysql # not compatible
query II rowsort label-9547
SELECT DISTINCT + ( - - 33 ), - 41 / MAX ( ALL - + 8 ) * - - MIN ( - 2 ) + + 29 AS col1
----
33
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL + COUNT( * ) * - ( - - 59 ) + - - 82 + - - 78
----
101

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL + COUNT ( * ) * - ( - - 59 ) + - - 82 + - - 78
----
101

query I rowsort
SELECT - - ( 3 ) * - 61
----
-183

query II rowsort
SELECT ( - 6 ) AS col1, + 61 * 34
----
-6
2074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9551
SELECT ALL + + CAST( 61 AS SIGNED ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL + + CAST ( 61 AS INTEGER ) AS col0
----
61

query I rowsort
SELECT ALL + 35 * 94 + + + 8 + + 48 - + 64 * - 96 * 50 * 3 + + 14 + 55
----
925015

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT DISTINCT + COUNT( DISTINCT - 26 ) * ( + 20 ) * + 56 - - + 78 * - - 17 * 21
----
28966

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT + COUNT ( DISTINCT - 26 ) * ( + 20 ) * + 56 - - + 78 * - - 17 * 21
----
28966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9554
SELECT 20 * 51 * + - 46 * + 56 + + CAST( - 69 AS SIGNED ) + + 80 * + COUNT( * ) AS col0
----
-2627509

skipif mysql # not compatible
query I rowsort label-9554
SELECT 20 * 51 * + - 46 * + 56 + + CAST ( - 69 AS INTEGER ) + + 80 * + COUNT ( * ) AS col0
----
-2627509

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT + 25 * - + MIN( - 19 ) AS col0
----
475

skipif mysql # not compatible
query I rowsort label-9555
SELECT + 25 * - + MIN ( - 19 ) AS col0
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT ALL - 47 * - CASE 92 WHEN + + 41 THEN + 74 * - + ( 87 ) * - 62 WHEN 27 + - - 78 - - 79 * 19 * - COUNT( * ) * - 83 - - COUNT( * ) * + 45 * - SUM( - - 39 ) * - 1 + - 23 THEN 28 ELSE 70 * COUNT( * ) END - 0
----
3290

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL - 47 * - CASE 92 WHEN + + 41 THEN + 74 * - + ( 87 ) * - 62 WHEN 27 + - - 78 - - 79 * 19 * - COUNT ( * ) * - 83 - - COUNT ( * ) * + 45 * - SUM ( - - 39 ) * - 1 + - 23 THEN 28 ELSE 70 * COUNT ( * ) END - 0
----
3290

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT - COALESCE ( + ( + 2 ), + - COUNT( * ) * - - 54 ) * - 7 * - 57 + - 73 - + 82 * + SUM( - 64 )
----
4377

skipif mysql # not compatible
query I rowsort label-9557
SELECT - COALESCE ( + ( + 2 ), + - COUNT ( * ) * - - 54 ) * - 7 * - 57 + - 73 - + 82 * + SUM ( - 64 )
----
4377

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT + CASE + 87 WHEN - COALESCE ( - 68, AVG ( - 48 ), + COUNT( * ) + COUNT( * ), - 61 ) + - - 9 * - 48 THEN + + 36 + + 3 * + + 2 WHEN 88 + - + ( - - 85 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9558
SELECT + CASE + 87 WHEN - COALESCE ( - 68, AVG ( - 48 ), + COUNT ( * ) + COUNT ( * ), - 61 ) + - - 9 * - 48 THEN + + 36 + + 3 * + + 2 WHEN 88 + - + ( - - 85 ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 72 * - - 98 AS col1
----
7056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9560
SELECT ALL CASE + + 83 WHEN - + 47 * - - ( + CAST( NULL AS SIGNED ) ) + + - 88 THEN - 79 + - COUNT( * ) + + 99 * + ( - - 62 ) WHEN + - 42 / - - 6 THEN NULL END * - 38 + 46 AS col1, 63 col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-9560
SELECT ALL CASE + + 83 WHEN - + 47 * - - ( + CAST ( NULL AS INTEGER ) ) + + - 88 THEN - 79 + - COUNT ( * ) + + 99 * + ( - - 62 ) WHEN + - 42 / - - 6 THEN NULL END * - 38 + 46 AS col1, 63 col0
----
NULL
63

query I rowsort
SELECT + 89 - + 83 * 43
----
-3480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9562
SELECT - MIN( DISTINCT - CAST( + ( - 23 ) AS SIGNED ) ) * + - 95
----
2185

skipif mysql # not compatible
query I rowsort label-9562
SELECT - MIN ( DISTINCT - CAST ( + ( - 23 ) AS INTEGER ) ) * + - 95
----
2185

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT + 65 + ( - COUNT( DISTINCT + 22 ) )
----
64

skipif mysql # not compatible
query I rowsort label-9563
SELECT + 65 + ( - COUNT ( DISTINCT + 22 ) )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT ALL NULLIF ( - 56, SUM( + 50 ) ) * - 26 col2
----
1456

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL NULLIF ( - 56, SUM ( + 50 ) ) * - 26 col2
----
1456

onlyif mysql # DIV for integer division: 
query I rowsort label-9565
SELECT DISTINCT + 76 DIV 23
----
3

skipif mysql # not compatible
query I rowsort label-9565
SELECT DISTINCT + 76 / 23
----
3

query I rowsort
SELECT + 6 + + + 72 - - ( + + 75 ) + + 4 * 88 AS col1
----
505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9567
SELECT - NULLIF ( - + ( - + 32 ), 26 + MAX( + + CAST( NULL AS SIGNED ) ) ) - + + 56
----
-88

skipif mysql # not compatible
query I rowsort label-9567
SELECT - NULLIF ( - + ( - + 32 ), 26 + MAX ( + + CAST ( NULL AS INTEGER ) ) ) - + + 56
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9568
SELECT ALL 17 DIV - + 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL 17 / - + 50 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9569
SELECT + COUNT( * ) DIV + 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9569
SELECT + COUNT ( * ) / + 30 AS col1
----
0

query I rowsort
SELECT + 82 + + 21 AS col0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT - 88 + - 56 + - - COUNT( DISTINCT - 37 )
----
-143

skipif mysql # not compatible
query I rowsort label-9571
SELECT - 88 + - 56 + - - COUNT ( DISTINCT - 37 )
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT - COUNT( * ) * - 23 * 85
----
1955

skipif mysql # not compatible
query I rowsort label-9572
SELECT - COUNT ( * ) * - 23 * 85
----
1955

query I rowsort
SELECT ALL + 59 * 70
----
4130

query I rowsort
SELECT + - 32 + + 64
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT ALL - - COUNT( 19 ) * + 73
----
73

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL - - COUNT ( 19 ) * + 73
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT - 53 * COUNT( * ) * - ( + 43 ) AS col2
----
2279

skipif mysql # not compatible
query I rowsort label-9576
SELECT - 53 * COUNT ( * ) * - ( + 43 ) AS col2
----
2279

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT DISTINCT 23 + + COUNT( - - 97 )
----
24

skipif mysql # not compatible
query I rowsort label-9577
SELECT DISTINCT 23 + + COUNT ( - - 97 )
----
24

query I rowsort
SELECT DISTINCT - + 78 + + - 61
----
-139

query I rowsort
SELECT DISTINCT - + 62 + - 85 + - + 19 * - 84 AS col2
----
1449

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT + 19 + + - 24 / + - CASE - 10 WHEN - 56 * 92 * + 64 * + 27 THEN + 39 ELSE NULL END * - 91 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9580
SELECT + 19 + + - 24 / + - CASE - 10 WHEN - 56 * 92 * + 64 * + 27 THEN + 39 ELSE NULL END * - 91 + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT - COUNT( ( + 55 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9581
SELECT - COUNT ( ( + 55 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT + SUM( DISTINCT - + 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-9582
SELECT + SUM ( DISTINCT - + 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT - - 39 + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-9583
SELECT - - 39 + COUNT ( * ) AS col2
----
40

query I rowsort
SELECT ALL + 70 * 97
----
6790

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9585
SELECT - SUM( + 8 ) + - 50 AS col2, 86 DIV - - 95
----
-58
0

skipif mysql # not compatible
query II rowsort label-9585
SELECT - SUM ( + 8 ) + - 50 AS col2, 86 / - - 95
----
-58
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9586
SELECT ALL + + COUNT( * ) DIV 6 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL + + COUNT ( * ) / 6 AS col1
----
0

query I rowsort
SELECT DISTINCT - 37 * - 49 + - + 19
----
1794

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT DISTINCT + + SUM( DISTINCT 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT + + SUM ( DISTINCT 18 ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9589
SELECT ( + 43 ), - 18 * + 15 + - COUNT( ALL 76 ) + + - ( - + 50 ) + + 65 * 11 col0
----
43
494

skipif mysql # not compatible
query II rowsort label-9589
SELECT ( + 43 ), - 18 * + 15 + - COUNT ( ALL 76 ) + + - ( - + 50 ) + + 65 * 11 col0
----
43
494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9590
SELECT ALL - ( - MIN( - CAST( NULL AS SIGNED ) ) ) * - - 65 / - 30 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL - ( - MIN ( - CAST ( NULL AS INTEGER ) ) ) * - - 65 / - 30 col2
----
NULL

query I rowsort
SELECT + 2 + 71 * 52 * - 23 col0
----
-84914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9592
SELECT + CASE - - ( + 20 ) WHEN COALESCE ( + + 23, 44 + - 15, COUNT( * ) ) THEN + 16 * + 57 WHEN CASE + 20 WHEN - AVG ( - + ( 78 ) ) / + 27 THEN NULL WHEN + COALESCE ( - CASE + CAST( NULL AS SIGNED ) WHEN 89 THEN + + 38 WHEN - COUNT( * ) + 85 THEN NULL ELSE NULL END, + 16, CAST( NULL AS SIGNED ) - - 30 ) THEN - 31 END THEN NULL ELSE - COUNT( * ) END + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9592
SELECT + CASE - - ( + 20 ) WHEN COALESCE ( + + 23, 44 + - 15, COUNT ( * ) ) THEN + 16 * + 57 WHEN CASE + 20 WHEN - AVG ( - + ( 78 ) ) / + 27 THEN NULL WHEN + COALESCE ( - CASE + CAST ( NULL AS INTEGER ) WHEN 89 THEN + + 38 WHEN - COUNT ( * ) + 85 THEN NULL ELSE NULL END, + 16, CAST ( NULL AS INTEGER ) - - 30 ) THEN - 31 END THEN NULL ELSE - COUNT ( * ) END + COUNT ( * ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9593
SELECT - 66 + + - 19 DIV - 84 col0
----
-66

skipif mysql # not compatible
query I rowsort label-9593
SELECT - 66 + + - 19 / - 84 col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT CASE - ( + 45 ) WHEN + - 20 THEN + 0 ELSE - COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9594
SELECT CASE - ( + 45 ) WHEN + - 20 THEN + 0 ELSE - COUNT ( * ) END AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT + COUNT( * ) + - 94 + + 5
----
-88

skipif mysql # not compatible
query I rowsort label-9595
SELECT + COUNT ( * ) + - 94 + + 5
----
-88

query I rowsort
SELECT - ( - 70 ) col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT NULLIF ( - ( 67 ), + COUNT( * ) )
----
-67

skipif mysql # not compatible
query I rowsort label-9597
SELECT NULLIF ( - ( 67 ), + COUNT ( * ) )
----
-67

query I rowsort
SELECT 90 * + + 72 + + ( 3 )
----
6483

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT ALL 76 * - + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL 76 * - + COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT - SUM( + 31 ) * + 61 AS col2
----
-1891

skipif mysql # not compatible
query I rowsort label-9600
SELECT - SUM ( + 31 ) * + 61 AS col2
----
-1891

query I rowsort
SELECT + ( - - 4 ) + + 80 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT SUM( ALL - 40 ) col2
----
-40

skipif mysql # not compatible
query I rowsort label-9602
SELECT SUM ( ALL - 40 ) col2
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9603
SELECT + ( - - 59 ) DIV + COUNT( * ) + - 27 DIV + 7
----
56

skipif mysql # not compatible
query I rowsort label-9603
SELECT + ( - - 59 ) / + COUNT ( * ) + - 27 / + 7
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT MAX( DISTINCT + + ( - - 77 ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9604
SELECT MAX ( DISTINCT + + ( - - 77 ) ) AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9605
SELECT ALL 75 * - - 58 + - 84 + CASE + 67 WHEN + 22 THEN - 86 + + + 81 ELSE - ( COUNT( * ) ) END + + 80 - + 8 DIV 55 DIV CASE 49 WHEN - 97 + + CASE - - 76 WHEN - 44 * - 21 THEN NULL ELSE + MIN( - 26 ) END * COUNT( * ) THEN CASE COALESCE ( 76, + 68 * - COUNT( * ) + - 4 * 34, - 78 ) WHEN 68 THEN 29 WHEN + 22 THEN 38 + 83 ELSE NULL END + + 63 * 90 WHEN 7 THEN NULL ELSE 22 * - 81 + 68 END col1
----
4345

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL 75 * - - 58 + - 84 + CASE + 67 WHEN + 22 THEN - 86 + + + 81 ELSE - ( COUNT ( * ) ) END + + 80 - + 8 / 55 / CASE 49 WHEN - 97 + + CASE - - 76 WHEN - 44 * - 21 THEN NULL ELSE + MIN ( - 26 ) END * COUNT ( * ) THEN CASE COALESCE ( 76, + 68 * - COUNT ( * ) + - 4 * 34, - 78 ) WHEN 68 THEN 29 WHEN + 22 THEN 38 + 83 ELSE NULL END + + 63 * 90 WHEN 7 THEN NULL ELSE 22 * - 81 + 68 END col1
----
4345

query I rowsort
SELECT DISTINCT 29 * - ( 92 )
----
-2668

query I rowsort
SELECT + ( 93 ) * - + 21
----
-1953

query III rowsort
SELECT - - 23, + 75 AS col0, - 41 AS col0
----
23
75
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9609
SELECT DISTINCT COALESCE ( - COUNT( * ), - 28, COUNT( * ) DIV - + COUNT( ALL + 94 ) ) + + COUNT( * ) AS col0, 24 * + 45 + + 9
----
0
1089

skipif mysql # not compatible
query II rowsort label-9609
SELECT DISTINCT COALESCE ( - COUNT ( * ), - 28, COUNT ( * ) / - + COUNT ( ALL + 94 ) ) + + COUNT ( * ) AS col0, 24 * + 45 + + 9
----
0
1089

query II rowsort
SELECT DISTINCT - 41 AS col2, 45 + + COALESCE ( + 41, - + 22 * 1 )
----
-41
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9611
SELECT + 55 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-9611
SELECT + 55 / - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL + ( - - 9 ) + - COALESCE ( - COUNT( * ), + + 21 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL + ( - - 9 ) + - COALESCE ( - COUNT ( * ), + + 21 ) AS col0
----
10

query I rowsort
SELECT + 64 * 2 + 89 * 68 AS col1
----
6180

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL MIN( 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL MIN ( 49 ) AS col2
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-9615
SELECT DISTINCT 52 DIV - 53, 50 AS col0
----
0
50

skipif mysql # not compatible
query II rowsort label-9615
SELECT DISTINCT 52 / - 53, 50 AS col0
----
0
50

query I rowsort
SELECT 64 + 72
----
136

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9617
SELECT + 91 DIV + CAST( 25 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-9617
SELECT + 91 / + CAST ( 25 AS INTEGER )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9618
SELECT ALL + CAST( - - 90 AS SIGNED ) + - + COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL + CAST ( - - 90 AS INTEGER ) + - + COUNT ( * ) AS col2
----
89

query I rowsort
SELECT 41 - 89 * - 8 AS col2
----
753

onlyif mysql # DIV for integer division: 
query I rowsort label-9620
SELECT DISTINCT + 21 DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT + 21 / 55
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9621
SELECT + ( + + 15 ) - + + CAST( NULL AS SIGNED ) + + + 23 * - CAST( NULL AS DECIMAL ) / + SUM( ALL + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9621
SELECT + ( + + 15 ) - + + CAST ( NULL AS INTEGER ) + + + 23 * - CAST ( NULL AS REAL ) / + SUM ( ALL + 97 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9622
SELECT COUNT( * ) col0, 5
----
1
5

skipif mysql # not compatible
query II rowsort label-9622
SELECT COUNT ( * ) col0, 5
----
1
5

query I rowsort
SELECT ALL - 49 - - - 96
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT + COUNT( * ) * + COALESCE ( - 96, + 51, 97 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-9624
SELECT + COUNT ( * ) * + COALESCE ( - 96, + 51, 97 ) AS col0
----
-96

query I rowsort
SELECT DISTINCT - ( - - 61 ) AS col2
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-9626
SELECT 30 DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-9626
SELECT 30 / - 53
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9627
SELECT ALL - MIN( 13 ) AS col2, 75 col0
----
-13
75

skipif mysql # not compatible
query II rowsort label-9627
SELECT ALL - MIN ( 13 ) AS col2, 75 col0
----
-13
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9628
SELECT DISTINCT + 85 * - CAST( NULL AS SIGNED ), - 28 * 36 AS col2
----
NULL
-1008

skipif mysql # not compatible
query II rowsort label-9628
SELECT DISTINCT + 85 * - CAST ( NULL AS INTEGER ), - 28 * 36 AS col2
----
NULL
-1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9629
SELECT ALL - NULLIF ( 94, + + ( ( - MIN( ALL 7 ) ) ) * - AVG ( + - 39 ) * - + 27 - + CASE + 81 WHEN 75 THEN - - COUNT( * ) * - COUNT( ALL 6 ) * NULLIF ( + CASE + - 65 WHEN - 19 THEN - + COUNT( * ) + 84 WHEN - CAST( NULL AS SIGNED ) THEN + ( 32 ) + - 74 END, 63 + - 51 ) WHEN 87 THEN - 5 * + 64 + - COUNT( * ) * 66 END + 0 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL - NULLIF ( 94, + + ( ( - MIN ( ALL 7 ) ) ) * - AVG ( + - 39 ) * - + 27 - + CASE + 81 WHEN 75 THEN - - COUNT ( * ) * - COUNT ( ALL 6 ) * NULLIF ( + CASE + - 65 WHEN - 19 THEN - + COUNT ( * ) + 84 WHEN - CAST ( NULL AS INTEGER ) THEN + ( 32 ) + - 74 END, 63 + - 51 ) WHEN 87 THEN - 5 * + 64 + - COUNT ( * ) * 66 END + 0 ) AS col1
----
-94

query I rowsort
SELECT DISTINCT - 76 * + - 81 * 91
----
560196

onlyif mysql # DIV for integer division: 
query I rowsort label-9631
SELECT DISTINCT - 3 DIV 20 * 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT - 3 / 20 * 43 AS col2
----
0

query I rowsort
SELECT 55 * 3
----
165

query I rowsort
SELECT ALL 30 * + 81 AS col0
----
2430

query I rowsort
SELECT ALL - NULLIF ( - + 87, - 61 - + 22 )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9635
SELECT ALL - 58 + - + 69 + + 53 DIV - SUM( + 72 ) * + 17 * - + ( - COALESCE ( 29, 49 ) ) * 79 + - 57 * - 48
----
2609

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL - 58 + - + 69 + + 53 / - SUM ( + 72 ) * + 17 * - + ( - COALESCE ( 29, 49 ) ) * 79 + - 57 * - 48
----
2609

query II rowsort
SELECT DISTINCT + 13 + + - 80 * 46 AS col0, 34 - - 38 + + 44
----
-3667
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9637
SELECT ALL + 95 + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL + 95 + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT - COUNT( * ) + + 70 + 4 - + 47 * + NULLIF ( + - 21, 93 / - + 58 ) + - 65
----
995

skipif mysql # not compatible
query I rowsort label-9638
SELECT - COUNT ( * ) + + 70 + 4 - + 47 * + NULLIF ( + - 21, 93 / - + 58 ) + - 65
----
995

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT + 49 - - NULLIF ( + + 18, - NULLIF ( + - CASE + 99 WHEN + 84 THEN - 61 ELSE NULL END, + MAX( + 80 ) * + + NULLIF ( - 31, + COUNT( * ) ) / 71 - + 70 * + - 6 ) - + 86 )
----
67

skipif mysql # not compatible
query I rowsort label-9639
SELECT + 49 - - NULLIF ( + + 18, - NULLIF ( + - CASE + 99 WHEN + 84 THEN - 61 ELSE NULL END, + MAX ( + 80 ) * + + NULLIF ( - 31, + COUNT ( * ) ) / 71 - + 70 * + - 6 ) - + 86 )
----
67

query I rowsort
SELECT + 62 + - - ( 78 ) AS col1
----
140

query I rowsort
SELECT + NULLIF ( 78, + 93 )
----
78

query I rowsort
SELECT 76 + + 54 AS col1
----
130

query I rowsort
SELECT + 89 + - 54
----
35

query I rowsort
SELECT ALL 68 * - 77 col1
----
-5236

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT DISTINCT - 92 * NULLIF ( - - COUNT( * ), - 20 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT - 92 * NULLIF ( - - COUNT ( * ), - 20 ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT - 56 + + + 15 * COUNT( 92 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9646
SELECT - 56 + + + 15 * COUNT ( 92 ) AS col1
----
-41

query I rowsort
SELECT + 65 * + 45 + + 21 col1
----
2946

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT ALL + 78 - - MAX( DISTINCT + + 37 )
----
115

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL + 78 - - MAX ( DISTINCT + + 37 )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT - 31 * + SUM( + - 53 ) + + COALESCE ( + 34, - ( + 44 ) ) * 74
----
4159

skipif mysql # not compatible
query I rowsort label-9649
SELECT - 31 * + SUM ( + - 53 ) + + COALESCE ( + 34, - ( + 44 ) ) * 74
----
4159

query I rowsort
SELECT ALL 61 * - - 15
----
915

query I rowsort
SELECT ALL + 89 * + 90 AS col0
----
8010

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT ALL 86 * + 85 * - - 72 + - COUNT( * ) - - 26 - ( - 51 )
----
526396

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL 86 * + 85 * - - 72 + - COUNT ( * ) - - 26 - ( - 51 )
----
526396

onlyif mysql # aggregate syntax: 
query II rowsort label-9653
SELECT COUNT( * ), - 1 col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-9653
SELECT COUNT ( * ), - 1 col0
----
1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9654
SELECT ALL 1 * + MIN( - - 44 ) DIV - ( 85 ) + - 36 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL 1 * + MIN ( - - 44 ) / - ( 85 ) + - 36 AS col2
----
-36

query I rowsort
SELECT 36 * ( - 81 )
----
-2916

onlyif mysql # aggregate syntax: 
query II rowsort label-9656
SELECT COUNT( * ) col2, 67 AS col0
----
1
67

skipif mysql # not compatible
query II rowsort label-9656
SELECT COUNT ( * ) col2, 67 AS col0
----
1
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9657
SELECT 81 + - 50 * COUNT( * ) * CAST( NULL AS SIGNED ), 59 * + 82 AS col1
----
NULL
4838

skipif mysql # not compatible
query II rowsort label-9657
SELECT 81 + - 50 * COUNT ( * ) * CAST ( NULL AS INTEGER ), 59 * + 82 AS col1
----
NULL
4838

query I rowsort
SELECT ALL + 26 + - 11 AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9659
SELECT + COALESCE ( - CASE CAST( - ( 97 ) AS SIGNED ) WHEN 30 + + 84 * + CAST( NULL AS SIGNED ) THEN + 65 + - - 32 * - 89 + - CAST( NULL AS SIGNED ) * - - 85 * - 62 ELSE NULL END, ( 42 ) )
----
42

skipif mysql # not compatible
query I rowsort label-9659
SELECT + COALESCE ( - CASE CAST ( - ( 97 ) AS INTEGER ) WHEN 30 + + 84 * + CAST ( NULL AS INTEGER ) THEN + 65 + - - 32 * - 89 + - CAST ( NULL AS INTEGER ) * - - 85 * - 62 ELSE NULL END, ( 42 ) )
----
42

query I rowsort
SELECT ( + 48 ) * + + 71 + + 18 + 82 - - + 74 * + 33 + + 50
----
6000

query I rowsort
SELECT ALL + 0 + - NULLIF ( + - 71, - 27 ) + - 27
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9662
SELECT 80 / 80 * + ( CASE + + 94 WHEN + ( - NULLIF ( + - 45, SUM( + 59 ) * - 4 ) ) + 38 THEN + - SUM( + 67 ) + + 84 + AVG ( - 42 ) ELSE SUM( DISTINCT CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT 80 / 80 * + ( CASE + + 94 WHEN + ( - NULLIF ( + - 45, SUM ( + 59 ) * - 4 ) ) + 38 THEN + - SUM ( + 67 ) + + 84 + AVG ( - 42 ) ELSE SUM ( DISTINCT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9663
SELECT ALL - 27 + + - 75 + + COALESCE ( - COUNT( * ), 3 ) DIV + 73, + 97 AS col0
----
-102
97

skipif mysql # not compatible
query II rowsort label-9663
SELECT ALL - 27 + + - 75 + + COALESCE ( - COUNT ( * ), 3 ) / + 73, + 97 AS col0
----
-102
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT 87 * SUM( DISTINCT + - 6 )
----
-522

skipif mysql # not compatible
query I rowsort label-9664
SELECT 87 * SUM ( DISTINCT + - 6 )
----
-522

query I rowsort
SELECT + CASE + + 12 WHEN 24 THEN 40 END AS col1
----
NULL

query II rowsort
SELECT + 8 AS col0, 37 + + 50
----
8
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT - COUNT( ALL + 3 ) * + - 99 * 63 * + - 14
----
-87318

skipif mysql # not compatible
query I rowsort label-9667
SELECT - COUNT ( ALL + 3 ) * + - 99 * 63 * + - 14
----
-87318

query I rowsort
SELECT - - ( - 13 ) col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9669
SELECT - MAX( + 13 ) + + CASE + + 19 WHEN + CAST( - + 19 AS SIGNED ) * - 18 THEN NULL WHEN 94 THEN 35 ELSE - 43 END DIV - 44 * - COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-9669
SELECT - MAX ( + 13 ) + + CASE + + 19 WHEN + CAST ( - + 19 AS INTEGER ) * - 18 THEN NULL WHEN 94 THEN 35 ELSE - 43 END / - 44 * - COUNT ( * ) AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9670
SELECT CAST( NULL AS SIGNED ) AS col1, + 57 - - 89
----
NULL
146

skipif mysql # not compatible
query II rowsort label-9670
SELECT CAST ( NULL AS INTEGER ) AS col1, + 57 - - 89
----
NULL
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9671
SELECT - COUNT( * ) DIV - 71 col2
----
0

skipif mysql # not compatible
query I rowsort label-9671
SELECT - COUNT ( * ) / - 71 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT ALL + CASE 7 WHEN AVG ( + NULLIF ( - 14, - ( + 87 ) ) ) THEN + 18 WHEN - 56 THEN + - 1 * - 37 * - 51 * - 41 - + 9 + - + COUNT( * ) + - 61 + - 66 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL + CASE 7 WHEN AVG ( + NULLIF ( - 14, - ( + 87 ) ) ) THEN + 18 WHEN - 56 THEN + - 1 * - 37 * - 51 * - 41 - + 9 + - + COUNT ( * ) + - 61 + - 66 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL 81 AS col0, 50 AS col1
----
81
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT + - COUNT( * ) * - COALESCE ( 60, + 75, + 22 )
----
60

skipif mysql # not compatible
query I rowsort label-9674
SELECT + - COUNT ( * ) * - COALESCE ( 60, + 75, + 22 )
----
60

query II rowsort
SELECT - + 33 + + 62 - - 44 AS col2, - 9
----
73
-9

query I rowsort
SELECT + 85 + 57 + + COALESCE ( - - 9, - 33 )
----
151

query II rowsort
SELECT + 27, + 28 AS col0
----
27
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL MIN( - 68 ) * - 18 * - MAX( - 28 ) - + 65 AS col2
----
34207

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL MIN ( - 68 ) * - 18 * - MAX ( - 28 ) - + 65 AS col2
----
34207

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT - MAX( DISTINCT 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-9679
SELECT - MAX ( DISTINCT 12 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT + 25 - - 61 + - 27 * 75 * + COUNT( 82 )
----
-1939

skipif mysql # not compatible
query I rowsort label-9680
SELECT + 25 - - 61 + - 27 * 75 * + COUNT ( 82 )
----
-1939

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9681
SELECT ALL - 3 * + + ( 94 ) * - CAST( NULL AS SIGNED ) AS col1, - 79 col0
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-9681
SELECT ALL - 3 * + + ( 94 ) * - CAST ( NULL AS INTEGER ) AS col1, - 79 col0
----
NULL
-79

query I rowsort
SELECT + 43 * - 99
----
-4257

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT DISTINCT COUNT( * ) * - 75 + 16 + 73 + - 56 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT COUNT ( * ) * - 75 + 16 + 73 + - 56 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-9684
SELECT DISTINCT COUNT( - ( + - 87 ) ) * + - 64, ( 4 ) AS col0
----
-64
4

skipif mysql # not compatible
query II rowsort label-9684
SELECT DISTINCT COUNT ( - ( + - 87 ) ) * + - 64, ( 4 ) AS col0
----
-64
4

query I rowsort
SELECT ALL - 45 * + 43 + + 98 AS col2
----
-1837

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9686
SELECT + COALESCE ( - + MIN( ALL + 84 ), CAST( NULL AS SIGNED ) - - - ( - 48 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-9686
SELECT + COALESCE ( - + MIN ( ALL + 84 ), CAST ( NULL AS INTEGER ) - - - ( - 48 ) )
----
-84

query I rowsort
SELECT DISTINCT 45 * - 81 + - 42 col1
----
-3687

query I rowsort
SELECT + 89 * 38
----
3382

query I rowsort
SELECT ALL 11 * - - 98
----
1078

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT + 23 - + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-9690
SELECT + 23 - + COUNT ( * )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9691
SELECT + ( - ( - 55 ) ) * + 43 * - + 53 + CAST( - 85 AS SIGNED ) + 24 * + - 42
----
-126438

skipif mysql # not compatible
query I rowsort label-9691
SELECT + ( - ( - 55 ) ) * + 43 * - + 53 + CAST ( - 85 AS INTEGER ) + 24 * + - 42
----
-126438

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9692
SELECT + MIN( ALL 32 ) AS col1, 43 DIV - + 68 AS col0
----
32
0

skipif mysql # not compatible
query II rowsort label-9692
SELECT + MIN ( ALL 32 ) AS col1, 43 / - + 68 AS col0
----
32
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9693
SELECT + 75 + - 79 + COUNT( DISTINCT - + 29 ) + + + 93 + 48 - + CASE COUNT( * ) WHEN - - 2 * + + ( - CAST( NULL AS SIGNED ) ) * - - ( 5 ) + + MIN( ALL 48 ) THEN 37 END * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9693
SELECT + 75 + - 79 + COUNT ( DISTINCT - + 29 ) + + + 93 + 48 - + CASE COUNT ( * ) WHEN - - 2 * + + ( - CAST ( NULL AS INTEGER ) ) * - - ( 5 ) + + MIN ( ALL 48 ) THEN 37 END * + 1
----
NULL

query I rowsort
SELECT - + 41 * - 24 AS col2
----
984

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT DISTINCT + ( + NULLIF ( + NULLIF ( + 45, 33 ), - - 34 * - - 51 / 32 * - + MIN( 43 ) + + ( + COUNT( * ) ) - - - COUNT( * ) ) )
----
45

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT + ( + NULLIF ( + NULLIF ( + 45, 33 ), - - 34 * - - 51 / 32 * - + MIN ( 43 ) + + ( + COUNT ( * ) ) - - - COUNT ( * ) ) )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9696
SELECT ALL - 3 DIV - - ( - 30 ) + 51 * - 90
----
-4590

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL - 3 / - - ( - 30 ) + 51 * - 90
----
-4590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9697
SELECT - - 97 + + - 30 * + COALESCE ( MIN( - + 15 ), + + 92 DIV COUNT( * ) )
----
547

skipif mysql # not compatible
query I rowsort label-9697
SELECT - - 97 + + - 30 * + COALESCE ( MIN ( - + 15 ), + + 92 / COUNT ( * ) )
----
547

onlyif mysql # aggregate syntax: 
query II rowsort label-9698
SELECT ALL MAX( DISTINCT + + 6 ) AS col2, COUNT( + 57 ) * + 90
----
6
90

skipif mysql # not compatible
query II rowsort label-9698
SELECT ALL MAX ( DISTINCT + + 6 ) AS col2, COUNT ( + 57 ) * + 90
----
6
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT DISTINCT CASE - - 61 WHEN - - 49 THEN + 60 + + 62 + COUNT( * ) * 20 / - + CASE + + COUNT( * ) WHEN 46 + - 66 THEN + ( + 72 ) WHEN - - 93 + COUNT( * ) THEN 26 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT CASE - - 61 WHEN - - 49 THEN + 60 + + 62 + COUNT ( * ) * 20 / - + CASE + + COUNT ( * ) WHEN 46 + - 66 THEN + ( + 72 ) WHEN - - 93 + COUNT ( * ) THEN 26 END END
----
NULL

query I rowsort
SELECT - 94 * ( + 15 ) + + 72 AS col2
----
-1338

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT + 86 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT + 86 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 9 * 38 + - - 76 + + 99 + 83 AS col1
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT - 74 + SUM( - 7 )
----
-81

skipif mysql # not compatible
query I rowsort label-9703
SELECT - 74 + SUM ( - 7 )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9704
SELECT - - COUNT( ALL 93 ) DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-9704
SELECT - - COUNT ( ALL 93 ) / - 85
----
0

query I rowsort
SELECT - 87 + - 46
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9706
SELECT - ( - + 77 ) * - CAST( NULL AS SIGNED ) + - - 58 AS col1, - 24 AS col2
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-9706
SELECT - ( - + 77 ) * - CAST ( NULL AS INTEGER ) + - - 58 AS col1, - 24 AS col2
----
NULL
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT - - COUNT( * ) + ( - COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9707
SELECT - - COUNT ( * ) + ( - COUNT ( * ) ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9708
SELECT - 49 DIV + 53 + 34
----
34

skipif mysql # not compatible
query I rowsort label-9708
SELECT - 49 / + 53 + 34
----
34

query I rowsort
SELECT - 2 + - 78 * + 48 * - - 46 + - 96 col2
----
-172322

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9710
SELECT - COUNT( * ) AS col0, 51 DIV 25 AS col1
----
-1
2

skipif mysql # not compatible
query II rowsort label-9710
SELECT - COUNT ( * ) AS col0, 51 / 25 AS col1
----
-1
2

query I rowsort
SELECT ALL - 98 + - 7 AS col0
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9712
SELECT ALL + CAST( NULL AS SIGNED ) + - + MIN( ( + 37 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL + CAST ( NULL AS INTEGER ) + - + MIN ( ( + 37 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT + COUNT( ALL + 15 ) * - - 20
----
20

skipif mysql # not compatible
query I rowsort label-9713
SELECT + COUNT ( ALL + 15 ) * - - 20
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9714
SELECT COUNT( * ) DIV 93 + + 56 + - + 42 - + + MAX( ALL - + 24 ) * COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-9714
SELECT COUNT ( * ) / 93 + + 56 + - + 42 - + + MAX ( ALL - + 24 ) * COUNT ( * )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9715
SELECT + COUNT( * ) AS col1, CAST( - + 8 AS SIGNED ) AS col1
----
1
-8

skipif mysql # not compatible
query II rowsort label-9715
SELECT + COUNT ( * ) AS col1, CAST ( - + 8 AS INTEGER ) AS col1
----
1
-8

query II rowsort
SELECT ALL + 26 col2, 24 + - 54 * - 54 AS col1
----
26
2940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9717
SELECT DISTINCT 28 DIV + COUNT( * ) + + ( - 25 ) * - - 82
----
-2022

skipif mysql # not compatible
query I rowsort label-9717
SELECT DISTINCT 28 / + COUNT ( * ) + + ( - 25 ) * - - 82
----
-2022

onlyif mysql # DIV for integer division: 
query II rowsort label-9718
SELECT 0 DIV - 33 + - 25 + + - 32 + 28 AS col1, 29
----
-29
29

skipif mysql # not compatible
query II rowsort label-9718
SELECT 0 / - 33 + - 25 + + - 32 + 28 AS col1, 29
----
-29
29

query I rowsort
SELECT ALL 5 - + - 49 * + 71 + 40 * - 69
----
724

query II rowsort
SELECT ALL - 44 AS col1, - ( - + 92 )
----
-44
92

query I rowsort
SELECT ( - - 26 ) + - - 37
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9722
SELECT DISTINCT 7 DIV - 53 * - 61 - + + 54 - + 13 * + - COALESCE ( - - 24, + 31 ) * - 59 + + 10 * + 24 * - + 92 AS col0
----
-40542

skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT 7 / - 53 * - 61 - + + 54 - + 13 * + - COALESCE ( - - 24, + 31 ) * - 59 + + 10 * + 24 * - + 92 AS col0
----
-40542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9723
SELECT + - COALESCE ( - 96, ( + 6 ) + + + ( + CAST( COUNT( * ) AS SIGNED ) ), - 77 DIV - - 78 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-9723
SELECT + - COALESCE ( - 96, ( + 6 ) + + + ( + CAST ( COUNT ( * ) AS INTEGER ) ), - 77 / - - 78 ) AS col1
----
96

query II rowsort
SELECT 1, - 65 - 66 AS col2
----
1
-131

query I rowsort
SELECT ALL 34 * 44 AS col2
----
1496

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT - COUNT( * ) * 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-9726
SELECT - COUNT ( * ) * 28 AS col1
----
-28

query II rowsort
SELECT + - 54, 78 col0
----
-54
78

query I rowsort
SELECT DISTINCT - 13 * + 30 AS col2
----
-390

query I rowsort
SELECT ALL - 80 * NULLIF ( + + 65, - COALESCE ( - - ( - 53 ), 60 ) )
----
-5200

query I rowsort
SELECT + COALESCE ( CASE WHEN NOT 63 BETWEEN + 94 * 32 AND + 16 THEN - + ( + + 20 ) ELSE + 77 END, - - 58 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9731
SELECT - - CASE - - 34 WHEN + 95 THEN NULL ELSE CASE + 28 WHEN + + 35 * - - ( - 83 ) - + + COUNT( * ) THEN 19 * + 34 * + 99 * 6 WHEN 74 THEN - + 31 WHEN CAST( + 12 AS SIGNED ) + - 45 + - - 2 + 78 + + - 50 * - - 9 THEN NULL END / + 41 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT - - CASE - - 34 WHEN + 95 THEN NULL ELSE CASE + 28 WHEN + + 35 * - - ( - 83 ) - + + COUNT ( * ) THEN 19 * + 34 * + 99 * 6 WHEN 74 THEN - + 31 WHEN CAST ( + 12 AS INTEGER ) + - 45 + - - 2 + 78 + + - 50 * - - 9 THEN NULL END / + 41 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9732
SELECT DISTINCT COALESCE ( - - 1, + COUNT( * ), + COUNT( - 33 ) DIV AVG ( 71 ) + - CAST( + - 53 AS SIGNED ) ) + 50
----
51

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT COALESCE ( - - 1, + COUNT ( * ), + COUNT ( - 33 ) / AVG ( 71 ) + - CAST ( + - 53 AS INTEGER ) ) + 50
----
51

query I rowsort
SELECT ALL + 30 + + COALESCE ( + 77, - - 27 ) col2
----
107

query II rowsort
SELECT DISTINCT + - ( + 23 ) + 22 AS col2, + 48 AS col0
----
-1
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9735
SELECT DISTINCT + CAST( NULL AS DECIMAL ), - MAX( 87 ) * - 59 * - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9735
SELECT DISTINCT + CAST ( NULL AS REAL ), - MAX ( 87 ) * - 59 * - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9736
SELECT DISTINCT - 28 + + ( + NULLIF ( 66, + CAST( NULL AS DECIMAL ) + - 24 ) )
----
38

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT - 28 + + ( + NULLIF ( 66, + CAST ( NULL AS REAL ) + - 24 ) )
----
38

query II rowsort
SELECT DISTINCT + 5 AS col0, 36
----
5
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9738
SELECT DISTINCT + - COUNT( * ) + 24 DIV 67 * 31 * + 95 col1, - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9738
SELECT DISTINCT + - COUNT ( * ) + 24 / 67 * 31 * + 95 col1, - CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9739
SELECT 30 + 45 - - + 59 DIV 62 col1, - ( - - 12 ) * - - ( - 53 ) + + - 66
----
75
570

skipif mysql # not compatible
query II rowsort label-9739
SELECT 30 + 45 - - + 59 / 62 col1, - ( - - 12 ) * - - ( - 53 ) + + - 66
----
75
570

query I rowsort
SELECT 74 * + ( + 18 ) AS col1
----
1332

query I rowsort
SELECT ALL + 40 * + 87
----
3480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9742
SELECT 94 AS col0, ( - - ( + 92 ) ) - 80 + + MAX( - 37 ) * - + 17 * NULLIF ( 70, - 95 ) - + CAST( + + 54 AS SIGNED ) AS col2
----
94
43988

skipif mysql # not compatible
query II rowsort label-9742
SELECT 94 AS col0, ( - - ( + 92 ) ) - 80 + + MAX ( - 37 ) * - + 17 * NULLIF ( 70, - 95 ) - + CAST ( + + 54 AS INTEGER ) AS col2
----
94
43988

onlyif mysql # aggregate syntax: 
query II rowsort label-9743
SELECT 32, COUNT( ALL + 94 ) * - - 84 - + - 90 AS col1
----
32
174

skipif mysql # not compatible
query II rowsort label-9743
SELECT 32, COUNT ( ALL + 94 ) * - - 84 - + - 90 AS col1
----
32
174

query II rowsort
SELECT 37, + ( + - ( 18 ) ) col1
----
37
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9745
SELECT ALL 42 * CAST( + COUNT( * ) AS SIGNED ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL 42 * CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
42

query I rowsort
SELECT 74 + - 73 AS col2
----
1

query I rowsort
SELECT DISTINCT - ( - - 53 )
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-9748
SELECT DISTINCT - COALESCE ( - 70, + 21 * - 40, - + 48 DIV + 99 )
----
70

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT - COALESCE ( - 70, + 21 * - 40, - + 48 / + 99 )
----
70

query I rowsort
SELECT 64 + 56
----
120

query II rowsort
SELECT + 69 AS col2, - 44
----
69
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-9751
SELECT 14 DIV - 19 - 35
----
-35

skipif mysql # not compatible
query I rowsort label-9751
SELECT 14 / - 19 - 35
----
-35

query II rowsort
SELECT ALL - 44 col0, - 1 * + 50 + + 57 AS col1
----
-44
7

query II rowsort
SELECT 18, 62 AS col1
----
18
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9754
SELECT 86 - + 69 AS col2, + 62 + - COUNT( * ) AS col2
----
17
61

skipif mysql # not compatible
query II rowsort label-9754
SELECT 86 - + 69 AS col2, + 62 + - COUNT ( * ) AS col2
----
17
61

query I rowsort
SELECT 89 * 66 * - 56
----
-328944

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL + COUNT( * ) * 10 * 32
----
320

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL + COUNT ( * ) * 10 * 32
----
320

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9757
SELECT ALL - - 40 AS col1, COUNT( * ) * + MAX( + 8 ) DIV COUNT( * ) * 97
----
40
776

skipif mysql # not compatible
query II rowsort label-9757
SELECT ALL - - 40 AS col1, COUNT ( * ) * + MAX ( + 8 ) / COUNT ( * ) * 97
----
40
776

query II rowsort
SELECT + 60, + 48 AS col0
----
60
48

query I rowsort
SELECT 76 * + 12
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT DISTINCT - + ( SUM( - 8 ) )
----
8

skipif mysql # not compatible
query I rowsort label-9760
SELECT DISTINCT - + ( SUM ( - 8 ) )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9761
SELECT + COALESCE ( + - NULLIF ( + CAST( NULL AS SIGNED ), - + NULLIF ( + + 78, 75 ) ), + + COUNT( * ) ) - + MIN( ALL - 88 ) + + COUNT( DISTINCT - - 69 ) DIV 98 DIV - 76
----
89

skipif mysql # not compatible
query I rowsort label-9761
SELECT + COALESCE ( + - NULLIF ( + CAST ( NULL AS INTEGER ), - + NULLIF ( + + 78, 75 ) ), + + COUNT ( * ) ) - + MIN ( ALL - 88 ) + + COUNT ( DISTINCT - - 69 ) / 98 / - 76
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT MAX( + 8 ) * + - 11 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-9762
SELECT MAX ( + 8 ) * + - 11 AS col0
----
-88

query I rowsort
SELECT + 73 + + 48
----
121

query I rowsort
SELECT - 82 + - 3
----
-85

query II rowsort
SELECT + - 76 AS col2, + 2
----
-76
2

query I rowsort
SELECT ALL 25 + + - 81 + 88 AS col2
----
32

query I rowsort
SELECT 79 + - + 13 * - + 15
----
274

query I rowsort
SELECT 25 + - 66 AS col1
----
-41

query I rowsort
SELECT ALL - 68 * + 36 + 46 AS col2
----
-2402

query I rowsort
SELECT DISTINCT 53 * ( - 38 ) + - - 31 * - + 68
----
-4122

query I rowsort
SELECT - NULLIF ( - 59, + 26 / 19 ) + - 57 AS col2
----
2

query I rowsort
SELECT - NULLIF ( - 12, + 86 ) AS col2
----
12

query II rowsort
SELECT - + ( + ( ( - COALESCE ( + 52, 79 ) ) ) ), 97 AS col2
----
52
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9774
SELECT SUM( 34 ) + 18 DIV - 3 + 30 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9774
SELECT SUM ( 34 ) + 18 / - 3 + 30 AS col2
----
58

query I rowsort
SELECT ALL 31 - 48
----
-17

query I rowsort
SELECT ALL - 9 * + 90 * + 34 * - 87
----
2395980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9777
SELECT + COUNT( * ) + COALESCE ( - 89, NULLIF ( COUNT( * ), + 45 ) + + NULLIF ( - 33, 34 ), + 47 DIV - + 29 ) * - 11 AS col0
----
980

skipif mysql # not compatible
query I rowsort label-9777
SELECT + COUNT ( * ) + COALESCE ( - 89, NULLIF ( COUNT ( * ), + 45 ) + + NULLIF ( - 33, 34 ), + 47 / - + 29 ) * - 11 AS col0
----
980

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT DISTINCT 30 - - SUM( - COALESCE ( + 38, - 46 ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-9778
SELECT DISTINCT 30 - - SUM ( - COALESCE ( + 38, - 46 ) ) AS col0
----
-8

query I rowsort
SELECT + 94 * - + 84
----
-7896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9780
SELECT - 59 + + + 92 - - 94 DIV + + COUNT( * ) + - 57 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-9780
SELECT - 59 + + + 92 - - 94 / + + COUNT ( * ) + - 57 AS col0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9781
SELECT ALL + COUNT( * ) * MAX( ALL - 53 ) AS col2, + 31 * - 97 AS col0
----
-53
-3007

skipif mysql # not compatible
query II rowsort label-9781
SELECT ALL + COUNT ( * ) * MAX ( ALL - 53 ) AS col2, + 31 * - 97 AS col0
----
-53
-3007

query II rowsort
SELECT - 52 * + 12 AS col0, - 88 * - + 39 + - 60 AS col2
----
-624
3372

query II rowsort
SELECT ALL 29 * + 16 AS col1, - 83 col2
----
464
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9784
SELECT ALL COUNT( * ) * + 18 col1, + COUNT( * ) DIV ( + 52 ) col1
----
18
0

skipif mysql # not compatible
query II rowsort label-9784
SELECT ALL COUNT ( * ) * + 18 col1, + COUNT ( * ) / ( + 52 ) col1
----
18
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9785
SELECT ALL - 47 / + CASE SUM( + + 93 ) WHEN 2 - NULLIF ( + - 50, + - 44 ) / + MIN( ALL - 47 ) + 63 + + MIN( 12 ) + + 97 * + 99 + + 80 + - + CAST( NULL AS DECIMAL ) + 56 + + 16 * - 40 THEN NULL WHEN + 91 THEN + - 11 + + ( 52 ) WHEN + + 52 - - NULLIF ( - 67, + ( 45 ) * - 84 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL - 47 / + CASE SUM ( + + 93 ) WHEN 2 - NULLIF ( + - 50, + - 44 ) / + MIN ( ALL - 47 ) + 63 + + MIN ( 12 ) + + 97 * + 99 + + 80 + - + CAST ( NULL AS REAL ) + 56 + + 16 * - 40 THEN NULL WHEN + 91 THEN + - 11 + + ( 52 ) WHEN + + 52 - - NULLIF ( - 67, + ( 45 ) * - 84 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT ALL - 23 * + 97 + - 85 * - COUNT( * )
----
-2146

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL - 23 * + 97 + - 85 * - COUNT ( * )
----
-2146

query I rowsort
SELECT - ( - + 60 ) AS col0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9788
SELECT - 62 * + 62 * 39 DIV - COUNT( * ) + + 82 AS col1
----
149998

skipif mysql # not compatible
query I rowsort label-9788
SELECT - 62 * + 62 * 39 / - COUNT ( * ) + + 82 AS col1
----
149998

query I rowsort
SELECT ( + + 31 ) AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9790
SELECT - 13 + - + 98 + 13 DIV 99
----
-111

skipif mysql # not compatible
query I rowsort label-9790
SELECT - 13 + - + 98 + 13 / 99
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9791
SELECT ALL + + 0 * COUNT( * ) * - ( - + CAST( NULL AS SIGNED ) ) - - 15 + 56 / + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL + + 0 * COUNT ( * ) * - ( - + CAST ( NULL AS INTEGER ) ) - - 15 + 56 / + + 85
----
NULL

query I rowsort
SELECT DISTINCT - 86 * + 29 + + 84
----
-2410

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT DISTINCT + + 46 * - + ( NULLIF ( + 33, - COUNT( * ) ) ) + - - 18 * + - 48 - COALESCE ( - ( 18 ), - 46 + + 32 ) + 45
----
-2319

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT + + 46 * - + ( NULLIF ( + 33, - COUNT ( * ) ) ) + - - 18 * + - 48 - COALESCE ( - ( 18 ), - 46 + + 32 ) + 45
----
-2319

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT + + CASE - - 19 WHEN + MIN( DISTINCT - 85 ) THEN + 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT + + CASE - - 19 WHEN + MIN ( DISTINCT - 85 ) THEN + 0 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT - + NULLIF ( + 86, MAX( - 22 ) * + 57 - 83 * - - 88 + + COUNT( * ) * - - 33 * + 39 + 34 ) * - + ( COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-9795
SELECT - + NULLIF ( + 86, MAX ( - 22 ) * + 57 - 83 * - - 88 + + COUNT ( * ) * - - 33 * + 39 + 34 ) * - + ( COUNT ( * ) )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9796
SELECT MIN( - - 48 ) AS col1, + 25 + - 1 AS col2
----
48
24

skipif mysql # not compatible
query II rowsort label-9796
SELECT MIN ( - - 48 ) AS col1, + 25 + - 1 AS col2
----
48
24

query I rowsort
SELECT ALL ( + - 35 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL - 13 - COUNT( * ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL - 13 - COUNT ( * ) col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT + COUNT( * ) * 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-9799
SELECT + COUNT ( * ) * 10 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT - MIN( DISTINCT 60 ) + 10
----
-50

skipif mysql # not compatible
query I rowsort label-9800
SELECT - MIN ( DISTINCT 60 ) + 10
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT - SUM( ALL 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9801
SELECT - SUM ( ALL 5 ) AS col0
----
-5

query I rowsort
SELECT + 0 + - 39 + + ( 88 )
----
49

query I rowsort
SELECT + 71 * - 19 AS col2
----
-1349

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9804
SELECT + 77 * + CAST( - 1 AS SIGNED ) DIV + - MAX( 80 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9804
SELECT + 77 * + CAST ( - 1 AS INTEGER ) / + - MAX ( 80 ) AS col1
----
0

query II rowsort
SELECT ALL 64 AS col0, 10 AS col1
----
64
10

query I rowsort
SELECT + 23 + 30 AS col1
----
53

query II rowsort
SELECT DISTINCT 72, + 6 * + - 14 AS col0
----
72
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9808
SELECT ALL 46 + - + COUNT( + ( 88 ) ) AS col2, + 50 * + CAST( NULL AS SIGNED ) AS col1
----
45
NULL

skipif mysql # not compatible
query II rowsort label-9808
SELECT ALL 46 + - + COUNT ( + ( 88 ) ) AS col2, + 50 * + CAST ( NULL AS INTEGER ) AS col1
----
45
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9809
SELECT CAST( + - ( + CASE ( - COUNT( - + 98 ) ) WHEN - + 19 * 16 THEN NULL WHEN - 92 THEN + 88 * CAST( NULL AS SIGNED ) WHEN CAST( - COUNT( * ) AS SIGNED ) THEN - COUNT( * ) ELSE NULL END ) AS SIGNED ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9809
SELECT CAST ( + - ( + CASE ( - COUNT ( - + 98 ) ) WHEN - + 19 * 16 THEN NULL WHEN - 92 THEN + 88 * CAST ( NULL AS INTEGER ) WHEN CAST ( - COUNT ( * ) AS INTEGER ) THEN - COUNT ( * ) ELSE NULL END ) AS INTEGER ) col2
----
1

query I rowsort
SELECT - 84 * + 27 AS col2
----
-2268

query II rowsort
SELECT + + 93, + 1 AS col2
----
93
1

query II rowsort
SELECT 33 AS col0, - 54
----
33
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9813
SELECT - 11 / - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT - 11 / - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9814
SELECT ALL + + COUNT( * ) DIV - ( - 45 ) - 80 + - - 14 + + - 11 + MAX( + 3 ) - + ( 99 ) * - + 67 * - + ( - 57 ) * + - 57, 87 AS col1
----
-21550691
87

skipif mysql # not compatible
query II rowsort label-9814
SELECT ALL + + COUNT ( * ) / - ( - 45 ) - 80 + - - 14 + + - 11 + MAX ( + 3 ) - + ( 99 ) * - + 67 * - + ( - 57 ) * + - 57, 87 AS col1
----
-21550691
87

query II rowsort
SELECT + 46 AS col2, - 70 AS col2
----
46
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-9816
SELECT ALL - 46 DIV - 48 + - ( + 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL - 46 / - 48 + - ( + 78 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT DISTINCT + 74 * - + COUNT( - 33 )
----
-74

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT + 74 * - + COUNT ( - 33 )
----
-74

query II rowsort
SELECT 88 AS col1, - 40 AS col0
----
88
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9819
SELECT ALL + - AVG ( ALL + + ( - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL + - AVG ( ALL + + ( - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9820
SELECT COALESCE ( + ( - 68 ), - - COUNT( + + 54 ) + 24 ) * - 98 - + SUM( ALL 53 ) * + 47 + CASE - 28 WHEN + 57 THEN NULL ELSE + 4 END + - COALESCE ( COUNT( * ), + 3 * 87 DIV - 46 * - + 63 ) * 60 * 80 AS col2
----
-623

skipif mysql # not compatible
query I rowsort label-9820
SELECT COALESCE ( + ( - 68 ), - - COUNT ( + + 54 ) + 24 ) * - 98 - + SUM ( ALL 53 ) * + 47 + CASE - 28 WHEN + 57 THEN NULL ELSE + 4 END + - COALESCE ( COUNT ( * ), + 3 * 87 / - 46 * - + 63 ) * 60 * 80 AS col2
----
-623

query I rowsort
SELECT - 27 * + 96 AS col1
----
-2592

query II rowsort
SELECT 31 AS col0, 47 - - 44 + + 47
----
31
138

query I rowsort
SELECT - + COALESCE ( 63, - - 80 * + 47 + + 30 * - + 60 ) + + 91 AS col2
----
28

query I rowsort
SELECT - - 36 + + - 19 * - 57 AS col1
----
1119

query I rowsort
SELECT DISTINCT - 36 * 15 AS col2
----
-540

query I rowsort
SELECT DISTINCT - 27 * - + 56
----
1512

query I rowsort
SELECT 84 + + 70 * + 1
----
154

query I rowsort
SELECT COALESCE ( + 0, - 19 ) + + 21
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT COUNT( * ) + COUNT( ALL - 7 )
----
2

skipif mysql # not compatible
query I rowsort label-9829
SELECT COUNT ( * ) + COUNT ( ALL - 7 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT COUNT( * ) * - 80 * + - 59
----
4720

skipif mysql # not compatible
query I rowsort label-9830
SELECT COUNT ( * ) * - 80 * + - 59
----
4720

query II rowsort
SELECT 19 + 66 AS col1, - 50 - 52 - - - 41 AS col1
----
85
-143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9832
SELECT DISTINCT COUNT( * ) DIV - - 28 * - + SUM( DISTINCT - + ( - 30 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT COUNT ( * ) / - - 28 * - + SUM ( DISTINCT - + ( - 30 ) )
----
0

query I rowsort
SELECT DISTINCT + 92 + - + 67 * + 91 * - 62
----
378106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9834
SELECT COUNT( * ) DIV COUNT( + 33 )
----
1

skipif mysql # not compatible
query I rowsort label-9834
SELECT COUNT ( * ) / COUNT ( + 33 )
----
1

query I rowsort
SELECT ALL + 74 + - - 50 AS col1
----
124

query I rowsort
SELECT ALL 29 + 52 + - 1 AS col2
----
80

query I rowsort
SELECT ALL ( + + 85 ) + + + 79 AS col1
----
164

query I rowsort
SELECT ALL + ( + + 2 ) + - - 93 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT 95 + + COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-9839
SELECT 95 + + COUNT ( * ) AS col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9840
SELECT NULLIF ( + + 60, + - CAST( - + 35 AS SIGNED ) ) - + 67 * + - 62
----
4214

skipif mysql # not compatible
query I rowsort label-9840
SELECT NULLIF ( + + 60, + - CAST ( - + 35 AS INTEGER ) ) - + 67 * + - 62
----
4214

query I rowsort
SELECT DISTINCT 47 + - - 74 - - + 24 + + - 78 * - 20
----
1705

query I rowsort
SELECT ALL - 97 + - 62 - 96 AS col2
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT + MIN( ALL - + 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-9843
SELECT + MIN ( ALL - + 31 )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9844
SELECT ALL - 52 * - 5 + NULLIF ( + COUNT( * ), + 56 ) DIV + COUNT( * ) - + 13 + COUNT( * ) AS col0
----
249

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL - 52 * - 5 + NULLIF ( + COUNT ( * ), + 56 ) / + COUNT ( * ) - + 13 + COUNT ( * ) AS col0
----
249

query I rowsort
SELECT DISTINCT + 94 + - NULLIF ( - - 27, 76 )
----
67

query I rowsort
SELECT ALL - 36 + + ( 93 )
----
57

query I rowsort
SELECT 30 + 79 + - 55 * 75
----
-4016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9848
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( + 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( + 83 )
----
NULL

query I rowsort
SELECT ALL + + 11 - 46 AS col2
----
-35

query I rowsort
SELECT ALL - - ( 95 ) col2
----
95

query I rowsort
SELECT NULLIF ( - 52, - 77 + + 32 ) AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9852
SELECT NULLIF ( COUNT( * ), + COUNT( * ) + + 55 + 81 * - CASE - + 4 WHEN - + 82 * - - COUNT( * ) + + 70 THEN - 38 WHEN - 92 THEN NULL WHEN - 78 * + + CAST( 49 AS SIGNED ) + + 86 THEN NULL WHEN - 73 THEN CASE + 96 WHEN - CAST( AVG ( ALL - + 84 ) AS SIGNED ) THEN NULL ELSE - + 37 END * + 76 END * + - ( CASE - 8 WHEN - - 14 THEN + COUNT( * ) - CAST( 78 AS SIGNED ) * + COUNT( * ) WHEN - 22 THEN NULL ELSE NULL END ) / 31 ) * 2 + 39 * COUNT( - 10 )
----
41

skipif mysql # not compatible
query I rowsort label-9852
SELECT NULLIF ( COUNT ( * ), + COUNT ( * ) + + 55 + 81 * - CASE - + 4 WHEN - + 82 * - - COUNT ( * ) + + 70 THEN - 38 WHEN - 92 THEN NULL WHEN - 78 * + + CAST ( 49 AS INTEGER ) + + 86 THEN NULL WHEN - 73 THEN CASE + 96 WHEN - CAST ( AVG ( ALL - + 84 ) AS INTEGER ) THEN NULL ELSE - + 37 END * + 76 END * + - ( CASE - 8 WHEN - - 14 THEN + COUNT ( * ) - CAST ( 78 AS INTEGER ) * + COUNT ( * ) WHEN - 22 THEN NULL ELSE NULL END ) / 31 ) * 2 + 39 * COUNT ( - 10 )
----
41

query I rowsort
SELECT - 2 * 87 AS col1
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9854
SELECT ( 9 ), - CAST( NULL AS SIGNED ) AS col2
----
9
NULL

skipif mysql # not compatible
query II rowsort label-9854
SELECT ( 9 ), - CAST ( NULL AS INTEGER ) AS col2
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT NULLIF ( + 12, + 78 ) + + 72 - + COUNT( * ) * - 82 col0
----
166

skipif mysql # not compatible
query I rowsort label-9855
SELECT NULLIF ( + 12, + 78 ) + + 72 - + COUNT ( * ) * - 82 col0
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT ALL + COUNT( * ) - - ( 68 )
----
69

skipif mysql # not compatible
query I rowsort label-9856
SELECT ALL + COUNT ( * ) - - ( 68 )
----
69

query I rowsort
SELECT DISTINCT - 87 * + 72 AS col1
----
-6264

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT ALL + MIN( + ( 46 ) ) * 59 AS col2
----
2714

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL + MIN ( + ( 46 ) ) * 59 AS col2
----
2714

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9859
SELECT ALL + 50 DIV ( 98 ), - 95 + + 59 + - 64 * - ( SUM( - + 84 ) ) AS col2
----
0
-5412

skipif mysql # not compatible
query II rowsort label-9859
SELECT ALL + 50 / ( 98 ), - 95 + + 59 + - 64 * - ( SUM ( - + 84 ) ) AS col2
----
0
-5412

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9860
SELECT 90 DIV COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9860
SELECT 90 / COUNT ( * ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9861
SELECT ALL - 29 AS col1, NULLIF ( - 18, + 61 + - 59 ) + - + COUNT( * )
----
-29
-19

skipif mysql # not compatible
query II rowsort label-9861
SELECT ALL - 29 AS col1, NULLIF ( - 18, + 61 + - 59 ) + - + COUNT ( * )
----
-29
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT COUNT( DISTINCT 75 ) * - CASE - 33 WHEN 46 THEN 77 WHEN + 90 THEN NULL END + + NULLIF ( + - 37, - + 18 + + - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT COUNT ( DISTINCT 75 ) * - CASE - 33 WHEN 46 THEN 77 WHEN + 90 THEN NULL END + + NULLIF ( + - 37, - + 18 + + - 9 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9863
SELECT 33 AS col0, 95 + 28 * COUNT( * )
----
33
123

skipif mysql # not compatible
query II rowsort label-9863
SELECT 33 AS col0, 95 + 28 * COUNT ( * )
----
33
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT 89 - - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-9864
SELECT 89 - - COUNT ( * )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9865
SELECT ALL + MAX( + 73 ) * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + - 41 * - 75 + + 61 + 48 + 53 * + 4 * COUNT( * ) - - 4 * - - 6 - - + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL + MAX ( + 73 ) * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + - 41 * - 75 + + 61 + 48 + 53 * + 4 * COUNT ( * ) - - 4 * - - 6 - - + 34
----
NULL

query I rowsort
SELECT DISTINCT 71 + + 23
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT DISTINCT - COUNT( * ) + + NULLIF ( 2, - 27 * - ( - 82 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT - COUNT ( * ) + + NULLIF ( 2, - 27 * - ( - 82 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9868
SELECT COUNT( * ) - NULLIF ( + SUM( CAST( - + 88 AS SIGNED ) ), COUNT( * ) * + COUNT( * ) - + SUM( + 42 ) * CAST( NULL AS SIGNED ) - - 10 ) * + 65 * - 25 DIV COUNT( * ) AS col2
----
-142999

skipif mysql # not compatible
query I rowsort label-9868
SELECT COUNT ( * ) - NULLIF ( + SUM ( CAST ( - + 88 AS INTEGER ) ), COUNT ( * ) * + COUNT ( * ) - + SUM ( + 42 ) * CAST ( NULL AS INTEGER ) - - 10 ) * + 65 * - 25 / COUNT ( * ) AS col2
----
-142999

onlyif mysql # DIV for integer division: 
query I rowsort label-9869
SELECT - COALESCE ( 18, - 44 ) DIV 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9869
SELECT - COALESCE ( 18, - 44 ) / 32 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9870
SELECT DISTINCT + 65 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT + 65 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9871
SELECT - 41 AS col2, - COUNT( * ) + + 5 - - 52
----
-41
56

skipif mysql # not compatible
query II rowsort label-9871
SELECT - 41 AS col2, - COUNT ( * ) + + 5 - - 52
----
-41
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9872
SELECT DISTINCT + CAST( 88 AS SIGNED ) col0
----
88

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT + CAST ( 88 AS INTEGER ) col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT 48 * - ( - - COUNT( * ) ) col1
----
-48

skipif mysql # not compatible
query I rowsort label-9873
SELECT 48 * - ( - - COUNT ( * ) ) col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9874
SELECT COALESCE ( + CASE CAST( + 19 AS SIGNED ) WHEN + - ( + 66 ) * - - 95 * - 68 + + - 83 THEN + COALESCE ( - + 86, - 88 DIV 9 ) WHEN 33 THEN - + CASE 24 WHEN + + CASE - - 47 WHEN + ( ( - + 81 ) ) THEN NULL WHEN - + 43 - + - 26 * - CAST( NULL AS SIGNED ) THEN + + 5 * - 25 ELSE + 91 + MIN( DISTINCT - 20 ) - + 79 END THEN - 71 - - 49 * ( + NULLIF ( 34, 11 ) + 13 ) END ELSE NULL END, + NULLIF ( 25, 34 ) + + COUNT( * ) * - 5, + 7, 8 * COUNT( * ) ) DIV 22
----
0

skipif mysql # not compatible
query I rowsort label-9874
SELECT COALESCE ( + CASE CAST ( + 19 AS INTEGER ) WHEN + - ( + 66 ) * - - 95 * - 68 + + - 83 THEN + COALESCE ( - + 86, - 88 / 9 ) WHEN 33 THEN - + CASE 24 WHEN + + CASE - - 47 WHEN + ( ( - + 81 ) ) THEN NULL WHEN - + 43 - + - 26 * - CAST ( NULL AS INTEGER ) THEN + + 5 * - 25 ELSE + 91 + MIN ( DISTINCT - 20 ) - + 79 END THEN - 71 - - 49 * ( + NULLIF ( 34, 11 ) + 13 ) END ELSE NULL END, + NULLIF ( 25, 34 ) + + COUNT ( * ) * - 5, + 7, 8 * COUNT ( * ) ) / 22
----
0

query I rowsort
SELECT ALL + 91 * 4 AS col1
----
364

query I rowsort
SELECT + - 3 * + 47 col2
----
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT + 8 - - + 68 - 69 + + 9 * - + ( - - COUNT( * ) ) * NULLIF ( - + 17, + + 40 ), - 6 AS col2
----
160
-6

skipif mysql # not compatible
query II rowsort label-9877
SELECT + 8 - - + 68 - 69 + + 9 * - + ( - - COUNT ( * ) ) * NULLIF ( - + 17, + + 40 ), - 6 AS col2
----
160
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9878
SELECT + CAST( - NULLIF ( - - CASE - 55 WHEN + - 26 THEN + - CAST( + ( - CAST( + + 28 AS SIGNED ) ) AS DECIMAL ) WHEN 22 THEN NULL WHEN - COUNT( - + 12 ) THEN + - 9 * - + 37 + - 14 ELSE NULL END, 98 ) AS DECIMAL ) * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9878
SELECT + CAST ( - NULLIF ( - - CASE - 55 WHEN + - 26 THEN + - CAST ( + ( - CAST ( + + 28 AS INTEGER ) ) AS REAL ) WHEN 22 THEN NULL WHEN - COUNT ( - + 12 ) THEN + - 9 * - + 37 + - 14 ELSE NULL END, 98 ) AS REAL ) * 45
----
NULL

query I rowsort
SELECT + 84 - + 17 AS col0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9880
SELECT ALL COUNT( ALL + - 76 ) DIV - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL COUNT ( ALL + - 76 ) / - 68 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9881
SELECT + ( - 88 ) DIV + COUNT( * ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-9881
SELECT + ( - 88 ) / + COUNT ( * ) AS col2
----
-88

query I rowsort
SELECT 55 * + + 70 - + 79
----
3771

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9883
SELECT + CAST( NULL AS SIGNED ) / NULLIF ( 59, + + 99 / 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT + CAST ( NULL AS INTEGER ) / NULLIF ( 59, + + 99 / 31 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT - 36 * + COALESCE ( - 62, - ( 47 ) - 62, MIN( + 19 ) ) AS col2
----
2232

skipif mysql # not compatible
query I rowsort label-9884
SELECT - 36 * + COALESCE ( - 62, - ( 47 ) - 62, MIN ( + 19 ) ) AS col2
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT ALL COUNT( * ) + + + NULLIF ( - 21, + 33 + + + 79 )
----
-20

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL COUNT ( * ) + + + NULLIF ( - 21, + 33 + + + 79 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT + COALESCE ( - COUNT( * ), + - 21 ) + + ( - 6 )
----
-7

skipif mysql # not compatible
query I rowsort label-9886
SELECT + COALESCE ( - COUNT ( * ), + - 21 ) + + ( - 6 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT ALL 30 + 61 + + COUNT( * ) * + - 20 * - - 30 AS col1
----
-509

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL 30 + 61 + + COUNT ( * ) * + - 20 * - - 30 AS col1
----
-509

query I rowsort
SELECT DISTINCT 89 * - - 52 * + - 23 col2
----
-106444

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT 92 * 66 + - MIN( 33 )
----
6039

skipif mysql # not compatible
query I rowsort label-9889
SELECT 92 * 66 + - MIN ( 33 )
----
6039

onlyif mysql # aggregate syntax: 
query II rowsort label-9890
SELECT ALL COUNT( * ) AS col1, SUM( - + 84 ) AS col2
----
1
-84

skipif mysql # not compatible
query II rowsort label-9890
SELECT ALL COUNT ( * ) AS col1, SUM ( - + 84 ) AS col2
----
1
-84

query II rowsort
SELECT 2 AS col0, + 61 col2
----
2
61

query I rowsort
SELECT + ( - NULLIF ( + + 59, 37 ) ) + - 89 AS col2
----
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9893
SELECT - 70 + - 21 * + CAST( - + COUNT( * ) AS SIGNED ), 60 - 23 + + 80 DIV + 26 AS col1
----
-49
40

skipif mysql # not compatible
query II rowsort label-9893
SELECT - 70 + - 21 * + CAST ( - + COUNT ( * ) AS INTEGER ), 60 - 23 + + 80 / + 26 AS col1
----
-49
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9894
SELECT ALL 76 DIV - 43 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL 76 / - 43 AS col1
----
-1

query II rowsort
SELECT - 74 col0, ( 70 )
----
-74
70

query I rowsort
SELECT - 22 + - 40 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT DISTINCT CASE + MAX( DISTINCT + 69 ) WHEN 3 THEN + 48 + - + 1 END + - 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT CASE + MAX ( DISTINCT + 69 ) WHEN 3 THEN + 48 + - + 1 END + - 82 AS col0
----
NULL

query I rowsort
SELECT - - 0 + - 88
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT DISTINCT + CASE - COUNT( * ) WHEN - 45 THEN NULL ELSE + 35 * - 82 + COUNT( * ) + + - 81 + - - 61 + + - COUNT( * ) END - + MAX( - 38 )
----
-2852

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT + CASE - COUNT ( * ) WHEN - 45 THEN NULL ELSE + 35 * - 82 + COUNT ( * ) + + - 81 + - - 61 + + - COUNT ( * ) END - + MAX ( - 38 )
----
-2852

query II rowsort
SELECT DISTINCT - 96 col0, - 90 * - 4 col2
----
-96
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9901
SELECT ALL + 70 AS col2, ( 26 ) * + COUNT( - CAST( NULL AS SIGNED ) ) DIV - MIN( - COALESCE ( 81, + - ( + + ( + ( + 89 ) ) ) ) ) DIV + 39
----
70
0

skipif mysql # not compatible
query II rowsort label-9901
SELECT ALL + 70 AS col2, ( 26 ) * + COUNT ( - CAST ( NULL AS INTEGER ) ) / - MIN ( - COALESCE ( 81, + - ( + + ( + ( + 89 ) ) ) ) ) / + 39
----
70
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9902
SELECT ALL ( + COUNT( * ) ) AS col0, 45 DIV 83 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-9902
SELECT ALL ( + COUNT ( * ) ) AS col0, 45 / 83 AS col0
----
1
0

query I rowsort
SELECT DISTINCT + + 78 * 93 * + + 66 AS col1
----
478764

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT + 96 + - 23 + - - COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9904
SELECT + 96 + - 23 + - - COUNT ( * ) AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9905
SELECT - MIN( - 34 ) + + CAST( + - 22 AS SIGNED ) AS col1, 48 + 36 * + - 39 * + 38
----
12
-53304

skipif mysql # not compatible
query II rowsort label-9905
SELECT - MIN ( - 34 ) + + CAST ( + - 22 AS INTEGER ) AS col1, 48 + 36 * + - 39 * + 38
----
12
-53304

query I rowsort
SELECT DISTINCT + 53 - 50
----
3

query I rowsort
SELECT ALL + CASE - - 43 WHEN + 13 THEN + 17 - + 31 + - 30 * - 26 * 78 + + ( - - 19 ) * + - 65 / - 78 * + 28 * + + 88 END AS col0
----
NULL

query II rowsort
SELECT ALL 10 AS col2, + ( 64 ) AS col0
----
10
64

query I rowsort
SELECT - 93 * - 71
----
6603

query I rowsort
SELECT - + 98 + - 31 + 69 - 8
----
-68

query I rowsort
SELECT - - 23 + ( - 27 ) AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9912
SELECT ALL + - 20 AS col1, - 66 DIV + - COUNT( * ) AS col0
----
-20
66

skipif mysql # not compatible
query II rowsort label-9912
SELECT ALL + - 20 AS col1, - 66 / + - COUNT ( * ) AS col0
----
-20
66

query I rowsort
SELECT ALL + COALESCE ( 58, + - 95 ) * + 82
----
4756

query II rowsort
SELECT ALL + + ( 67 ) AS col2, - 26
----
67
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9915
SELECT + + 8 col0, - CAST( NULL AS SIGNED ) + + COUNT( * )
----
8
NULL

skipif mysql # not compatible
query II rowsort label-9915
SELECT + + 8 col0, - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
8
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9916
SELECT DISTINCT - COUNT( * ) DIV 1 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT - COUNT ( * ) / 1 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT - COUNT( * ) * + SUM( 4 ) col1
----
-4

skipif mysql # not compatible
query I rowsort label-9917
SELECT - COUNT ( * ) * + SUM ( 4 ) col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9918
SELECT + CAST( ( - 55 ) AS SIGNED ) DIV - 41 - - 38 + 55 AS col2, 16 AS col2
----
94
16

skipif mysql # not compatible
query II rowsort label-9918
SELECT + CAST ( ( - 55 ) AS INTEGER ) / - 41 - - 38 + 55 AS col2, 16 AS col2
----
94
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9919
SELECT ALL - 77 * + 58 + + MIN( - ( + 63 ) ) + 69 AS col2, + 1
----
-4460
1

skipif mysql # not compatible
query II rowsort label-9919
SELECT ALL - 77 * + 58 + + MIN ( - ( + 63 ) ) + 69 AS col2, + 1
----
-4460
1

query I rowsort
SELECT ALL + 95 * - 1 AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9921
SELECT - ( 32 ) * COUNT( * ) * + - COALESCE ( CAST( NULL AS SIGNED ), + - 94 + + 75 ) AS col2
----
-608

skipif mysql # not compatible
query I rowsort label-9921
SELECT - ( 32 ) * COUNT ( * ) * + - COALESCE ( CAST ( NULL AS INTEGER ), + - 94 + + 75 ) AS col2
----
-608

query II rowsort
SELECT + 60 + 61 col2, + 53 * + 29 AS col0
----
121
1537

query I rowsort
SELECT DISTINCT 93 * - 76 + + 84 + - 21 AS col0
----
-7005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9924
SELECT ALL - 51 * - - 70 * 19 + + - COUNT( * ) DIV + - COUNT( ALL - 64 )
----
-67829

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL - 51 * - - 70 * 19 + + - COUNT ( * ) / + - COUNT ( ALL - 64 )
----
-67829

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT ALL 68 * + - 25 + + 23 * - + COUNT( * ) AS col0
----
-1723

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL 68 * + - 25 + + 23 * - + COUNT ( * ) AS col0
----
-1723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9926
SELECT DISTINCT COUNT( * ) * - 81 + - 12 AS col2, + 83 * - 94 - + 29 * + + ( - 83 ) - + CAST( NULL AS SIGNED ) / + 34 AS col1
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-9926
SELECT DISTINCT COUNT ( * ) * - 81 + - 12 AS col2, + 83 * - 94 - + 29 * + + ( - 83 ) - + CAST ( NULL AS INTEGER ) / + 34 AS col1
----
-93
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9927
SELECT DISTINCT + CASE + + COUNT( * ) WHEN + - 80 THEN 87 * 49 * - + 2 + - 90 - + 16 * 34 + - SUM( ALL 84 ) - + 76 + + 79 WHEN 62 THEN + ( - 51 ) + 72 END, - CASE - 42 WHEN + 28 * + ( + + 24 ) THEN + - 22 * 64 + + 40 + 84 * COUNT( * ) ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9927
SELECT DISTINCT + CASE + + COUNT ( * ) WHEN + - 80 THEN 87 * 49 * - + 2 + - 90 - + 16 * 34 + - SUM ( ALL 84 ) - + 76 + + 79 WHEN 62 THEN + ( - 51 ) + 72 END, - CASE - 42 WHEN + 28 * + ( + + 24 ) THEN + - 22 * 64 + + 40 + 84 * COUNT ( * ) ELSE NULL END
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9928
SELECT CAST( NULL AS DECIMAL ) * - - CAST( NULL AS SIGNED ) * - 15 / - 91 - - - COUNT( * ) + - 20 * + 79 * + 19 + + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT CAST ( NULL AS REAL ) * - - CAST ( NULL AS INTEGER ) * - 15 / - 91 - - - COUNT ( * ) + - 20 * + 79 * + 19 + + + 6
----
NULL

query I rowsort
SELECT + 94 * - - 52 AS col2
----
4888

query I rowsort
SELECT + ( + 38 ) col0
----
38

query I rowsort
SELECT - NULLIF ( - + 43, + 41 ) col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT + 58 * - + COUNT( DISTINCT + - 49 )
----
-58

skipif mysql # not compatible
query I rowsort label-9932
SELECT + 58 * - + COUNT ( DISTINCT + - 49 )
----
-58

query I rowsort
SELECT + 28 * + + 44 col0
----
1232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9934
SELECT ALL CASE - - 73 WHEN COALESCE ( 61, + - CAST( + MIN( DISTINCT + 40 ) AS SIGNED ) * + CAST( + + COUNT( * ) AS SIGNED ), MIN( ALL + 16 ) ) * + CAST( NULL AS SIGNED ) * - ( + 6 ) * + + MAX( - 18 ) THEN - 45 ELSE NULL END * + 33 * - 95 / - NULLIF ( 55, - - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL CASE - - 73 WHEN COALESCE ( 61, + - CAST ( + MIN ( DISTINCT + 40 ) AS INTEGER ) * + CAST ( + + COUNT ( * ) AS INTEGER ), MIN ( ALL + 16 ) ) * + CAST ( NULL AS INTEGER ) * - ( + 6 ) * + + MAX ( - 18 ) THEN - 45 ELSE NULL END * + 33 * - 95 / - NULLIF ( 55, - - 60 )
----
NULL

query I rowsort
SELECT ALL 97 * - - 92 * - ( - 27 )
----
240948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT + 81 * - 15 + + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9936
SELECT + 81 * - 15 + + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9937
SELECT DISTINCT - 66 DIV + + 40
----
-1

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT - 66 / + + 40
----
-1

query I rowsort
SELECT - 68 - - 10 AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9939
SELECT ALL + ( + 82 ), 68 DIV + CAST( + 28 AS SIGNED ) AS col1
----
82
2

skipif mysql # not compatible
query II rowsort label-9939
SELECT ALL + ( + 82 ), 68 / + CAST ( + 28 AS INTEGER ) AS col1
----
82
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9940
SELECT + 35 + - - CAST( NULL AS SIGNED ) * - + MIN( DISTINCT + ( + 51 ) ) AS col0, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9940
SELECT + 35 + - - CAST ( NULL AS INTEGER ) * - + MIN ( DISTINCT + ( + 51 ) ) AS col0, + COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT ALL 14 + 72 AS col2
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9942
SELECT ALL - - 50 * - 62 * - 59 - - 25 + - - 10 * + COUNT( * ) * + COUNT( * ) AS col0, + 41 AS col2
----
182935
41

skipif mysql # not compatible
query II rowsort label-9942
SELECT ALL - - 50 * - 62 * - 59 - - 25 + - - 10 * + COUNT ( * ) * + COUNT ( * ) AS col0, + 41 AS col2
----
182935
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9943
SELECT + 37 DIV 62 + - COALESCE ( - 89, - - 94 + - ( + + 22 ) ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-9943
SELECT + 37 / 62 + - COALESCE ( - 89, - - 94 + - ( + + 22 ) ) AS col0
----
89

query I rowsort
SELECT NULLIF ( - 35, + 90 - - + 4 )
----
-35

query II rowsort
SELECT ALL + + 20 + 92, - 90 AS col2
----
112
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9946
SELECT ALL - - 58 * - ( + SUM( 92 ) ) * - 96 + + + 24 - + 38 + 28 * - NULLIF ( 88, - + 51 ) - - 58 + + 12 DIV 59 * - 28 AS col2, + 62 * + 47 AS col0
----
509836
2914

skipif mysql # not compatible
query II rowsort label-9946
SELECT ALL - - 58 * - ( + SUM ( 92 ) ) * - 96 + + + 24 - + 38 + 28 * - NULLIF ( 88, - + 51 ) - - 58 + + 12 / 59 * - 28 AS col2, + 62 * + 47 AS col0
----
509836
2914

query I rowsort
SELECT - 93 * + 6 AS col0
----
-558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9948
SELECT COUNT( * ) DIV + 29 - - MAX( - 91 ) * + 44 AS col2
----
-4004

skipif mysql # not compatible
query I rowsort label-9948
SELECT COUNT ( * ) / + 29 - - MAX ( - 91 ) * + 44 AS col2
----
-4004

query I rowsort
SELECT 90 - + 97
----
-7

query II rowsort
SELECT + 34 AS col1, + 52
----
34
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9951
SELECT ALL - NULLIF ( + CAST( - 90 AS SIGNED ), 56 * - 87 ) + 84 + 28 * CAST( - 68 AS SIGNED ) AS col2
----
-1730

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL - NULLIF ( + CAST ( - 90 AS INTEGER ), 56 * - 87 ) + 84 + 28 * CAST ( - 68 AS INTEGER ) AS col2
----
-1730

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT 25 - - SUM( 54 ) * - 90 col2
----
-4835

skipif mysql # not compatible
query I rowsort label-9952
SELECT 25 - - SUM ( 54 ) * - 90 col2
----
-4835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9953
SELECT ALL + 19 * ( - COALESCE ( - 4, + - MIN( ALL - NULLIF ( + - CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) ) ) + + - MAX( 28 ), + 15 * - 10 ) )
----
76

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL + 19 * ( - COALESCE ( - 4, + - MIN ( ALL - NULLIF ( + - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) ) ) + + - MAX ( 28 ), + 15 * - 10 ) )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9954
SELECT ALL - 70 AS col0, 91 * CAST( NULL AS SIGNED ) * COUNT( * ) * - 81 + - + COUNT( * ) + 60 - CAST( - 44 AS SIGNED ) / 30 * - - 24 * + 67
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-9954
SELECT ALL - 70 AS col0, 91 * CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 81 + - + COUNT ( * ) + 60 - CAST ( - 44 AS INTEGER ) / 30 * - - 24 * + 67
----
-70
NULL

query I rowsort
SELECT DISTINCT + 1 * 92 * - - 39
----
3588

query II rowsort
SELECT 8 + + ( - + 34 ) col1, + 17 AS col1
----
-26
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9957
SELECT + 60, + COUNT( * ) + + 7 - + 78 AS col0
----
60
-70

skipif mysql # not compatible
query II rowsort label-9957
SELECT + 60, + COUNT ( * ) + + 7 - + 78 AS col0
----
60
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT DISTINCT - ( - COUNT( ALL - - 48 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT - ( - COUNT ( ALL - - 48 ) ) AS col2
----
1

query II rowsort
SELECT ALL 29 * + NULLIF ( - 6, 4 ) AS col1, 55 AS col0
----
-174
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT ALL - 56 * - MAX( 52 ) * + 32 + - 98 col0
----
93086

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL - 56 * - MAX ( 52 ) * + 32 + - 98 col0
----
93086

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9961
SELECT DISTINCT - COALESCE ( COUNT( * ), - COUNT( * ) * + 33 - MIN( ALL + - ( + - NULLIF ( - - 46, - - 28 ) ) ) + + AVG ( - 95 ), - + 29 ) * + - 79 DIV 72 DIV - SUM( 31 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT - COALESCE ( COUNT ( * ), - COUNT ( * ) * + 33 - MIN ( ALL + - ( + - NULLIF ( - - 46, - - 28 ) ) ) + + AVG ( - 95 ), - + 29 ) * + - 79 / 72 / - SUM ( 31 ) AS col0
----
0

query I rowsort
SELECT 49 * 26
----
1274

query II rowsort
SELECT 19 AS col1, - 51
----
19
-51

query I rowsort
SELECT 84 + - 25 col0
----
59

query II rowsort
SELECT ( + - 71 ) * - - ( ( - 22 ) ) * + + NULLIF ( - 53, - 5 ) + 37 col2, 80
----
-82749
80

query I rowsort
SELECT DISTINCT - 37 * + + 79 + + 24 + + - 2
----
-2901

onlyif mysql # aggregate syntax: 
query II rowsort label-9967
SELECT - + COUNT( * ) col0, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-9967
SELECT - + COUNT ( * ) col0, COUNT ( * ) AS col2
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL + COUNT( * ) * + 52 * 99
----
5148

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL + COUNT ( * ) * + 52 * 99
----
5148

onlyif mysql # DIV for integer division: 
query I rowsort label-9969
SELECT ALL - + ( - - 43 ) DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL - + ( - - 43 ) / - 78
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9970
SELECT 53 + - MIN( DISTINCT 86 ) AS col2, 48
----
-33
48

skipif mysql # not compatible
query II rowsort label-9970
SELECT 53 + - MIN ( DISTINCT 86 ) AS col2, 48
----
-33
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9971
SELECT DISTINCT - 41 AS col2, CAST( 43 AS SIGNED )
----
-41
43

skipif mysql # not compatible
query II rowsort label-9971
SELECT DISTINCT - 41 AS col2, CAST ( 43 AS INTEGER )
----
-41
43

query II rowsort
SELECT ALL 55 AS col2, 40
----
55
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL AVG ( ALL - 8 ) + 3 - - + 29 * CASE + - 22 WHEN + - 70 THEN + - 75 WHEN + 0 THEN COUNT( * ) END - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL AVG ( ALL - 8 ) + 3 - - + 29 * CASE + - 22 WHEN + - 70 THEN + - 75 WHEN + 0 THEN COUNT ( * ) END - 51
----
NULL

query I rowsort
SELECT ALL + 43 * + 56
----
2408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9975
SELECT - 42 DIV + 18 * - COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-9975
SELECT - 42 / + 18 * - COUNT ( * ) col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9976
SELECT 33 + + + 51 + 83 + - 79 DIV + 94 AS col1
----
167

skipif mysql # not compatible
query I rowsort label-9976
SELECT 33 + + + 51 + 83 + - 79 / + 94 AS col1
----
167

query I rowsort
SELECT - 86 - + 14 - - - 7 col0
----
-107

query II rowsort
SELECT + 67 AS col0, - 38 * 47 AS col2
----
67
-1786

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9979
SELECT + CAST( + 42 AS SIGNED ) * + + 16 * - 75 * CAST( - 11 AS SIGNED ) * + 21 AS col0
----
11642400

skipif mysql # not compatible
query I rowsort label-9979
SELECT + CAST ( + 42 AS INTEGER ) * + + 16 * - 75 * CAST ( - 11 AS INTEGER ) * + 21 AS col0
----
11642400

query I rowsort
SELECT 23 + - 82 AS col1
----
-59

query I rowsort
SELECT - 69 * - + ( - 21 ) - + - 56
----
-1393

query I rowsort
SELECT DISTINCT NULLIF ( + 5, + + 46 ) + 49 AS col2
----
54

query II rowsort
SELECT - 90 AS col0, 12 AS col1
----
-90
12

query II rowsort
SELECT DISTINCT 89 * - 76 + + 40 AS col2, - 85 * + 5
----
-6724
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT ALL - ( 77 ) * + MAX( ALL + 7 )
----
-539

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL - ( 77 ) * + MAX ( ALL + 7 )
----
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT MAX( - - 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-9986
SELECT MAX ( - - 20 ) AS col0
----
20

query I rowsort
SELECT ALL 7 + 88
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9988
SELECT - 60 * - 91 + - + CAST( NULL AS SIGNED ) - + 21 * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9988
SELECT - 60 * - 91 + - + CAST ( NULL AS INTEGER ) - + 21 * 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT ALL MAX( - 7 ) * + 11 * - 60 * - - 51 * 5
----
1178100

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL MAX ( - 7 ) * + 11 * - 60 * - - 51 * 5
----
1178100

onlyif mysql # aggregate syntax: 
query II rowsort label-9990
SELECT MIN( DISTINCT - 22 ) AS col0, 80 + - 50 + + 0 * + 20
----
-22
30

skipif mysql # not compatible
query II rowsort label-9990
SELECT MIN ( DISTINCT - 22 ) AS col0, 80 + - 50 + + 0 * + 20
----
-22
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9991
SELECT 60 DIV + - 44 + + 39 DIV + 55 * - 75
----
-1

skipif mysql # not compatible
query I rowsort label-9991
SELECT 60 / + - 44 + + 39 / + 55 * - 75
----
-1

query I rowsort
SELECT COALESCE ( - 77, - - 59 ) * 3 - ( - + 12 ) * 90 * - 54
----
-58551

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT DISTINCT - COUNT( + 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT - COUNT ( + 26 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT ALL - COUNT( + 56 ) - 73 col0
----
-74

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL - COUNT ( + 56 ) - 73 col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-9995
SELECT ALL COUNT( * ) * - 21 AS col2, 79
----
-21
79

skipif mysql # not compatible
query II rowsort label-9995
SELECT ALL COUNT ( * ) * - 21 AS col2, 79
----
-21
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT DISTINCT - MIN( - 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT - MIN ( - 45 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT ALL - COUNT( ALL + 62 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL - COUNT ( ALL + 62 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT 68 + - 59 * - COUNT( * )
----
127

skipif mysql # not compatible
query I rowsort label-9998
SELECT 68 + - 59 * - COUNT ( * )
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9999
SELECT SUM( ALL - - CAST( - CASE 84 WHEN 56 THEN - 84 WHEN - + 81 THEN NULL WHEN - 9 THEN NULL ELSE NULLIF ( + 82, + + ( + + 60 ) ) END AS SIGNED ) ) DIV 22 * NULLIF ( - - 55, - 0 * - MIN( - 47 ) + - + 21 + + 95 + 32 ) * 55
----
-9075

skipif mysql # not compatible
query I rowsort label-9999
SELECT SUM ( ALL - - CAST ( - CASE 84 WHEN 56 THEN - 84 WHEN - + 81 THEN NULL WHEN - 9 THEN NULL ELSE NULLIF ( + 82, + + ( + + 60 ) ) END AS INTEGER ) ) / 22 * NULLIF ( - - 55, - 0 * - MIN ( - 47 ) + - + 21 + + 95 + 32 ) * 55
----
-9075

