sqllogictest
Artifact Content
Not logged in

Artifact 12b0d57e7e60ebff774d93b29a1162e7d7a56a02:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-0
SELECT ALL 9 DIV - 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL 9 / - 58 AS col1
----
0

query II rowsort
SELECT - + 59 AS col2, 14 AS col1
----
-59
14

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

query I rowsort
SELECT ALL 20 * - 33 + + 80 AS col0
----
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT + 19 * - CASE COUNT( * ) WHEN ( 59 ) THEN + 82 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4
SELECT + 19 * - CASE COUNT ( * ) WHEN ( 59 ) THEN + 82 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5
SELECT ALL + COUNT( * ) * 85 * - 28 * + - COUNT( * ) * 83, + 61 AS col2
----
197540
61

skipif mysql # not compatible
query II rowsort label-5
SELECT ALL + COUNT ( * ) * 85 * - 28 * + - COUNT ( * ) * 83, + 61 AS col2
----
197540
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT - CASE - 76 WHEN + COUNT( * ) * 31 * + + 58 + + 53 * - 10 THEN 34 ELSE + 79 + + 12 - + - 76 END * - 30 + COUNT( * ) + 15 AS col0
----
5026

skipif mysql # not compatible
query I rowsort label-6
SELECT - CASE - 76 WHEN + COUNT ( * ) * 31 * + + 58 + + 53 * - 10 THEN 34 ELSE + 79 + + 12 - + - 76 END * - 30 + COUNT ( * ) + 15 AS col0
----
5026

query I rowsort
SELECT + 76 * - + 37 + - 55 col0
----
-2867

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT ALL + COUNT( * ) * - MIN( 18 ) + 76
----
58

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL + COUNT ( * ) * - MIN ( 18 ) + 76
----
58

query II rowsort
SELECT ALL + 25 * + + 91 AS col1, 86
----
2275
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-10
SELECT - 65 + - CAST( NULL AS SIGNED ) * - 37 / - - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT - 65 + - CAST ( NULL AS INTEGER ) * - 37 / - - 81
----
NULL

query II rowsort
SELECT ( 36 ) AS col2, - 81 + + - 70
----
36
-151

onlyif mysql # aggregate syntax: 
query II rowsort label-12
SELECT + ( MIN( DISTINCT - - 65 ) ) AS col2, + 46 * 30 * + SUM( ALL + 59 ) + - MAX( 85 ) AS col0
----
65
81335

skipif mysql # not compatible
query II rowsort label-12
SELECT + ( MIN ( DISTINCT - - 65 ) ) AS col2, + 46 * 30 * + SUM ( ALL + 59 ) + - MAX ( 85 ) AS col0
----
65
81335

onlyif mysql # aggregate syntax: 
query II rowsort label-13
SELECT + MAX( + - 60 ) AS col1, - NULLIF ( - - ( - COUNT( * ) ), - - 83 + + 74 * NULLIF ( 50, CASE + COALESCE ( 41, + 10 ) WHEN + + 22 THEN 58 END * 28 / + 58 ) ) AS col2
----
-60
1

skipif mysql # not compatible
query II rowsort label-13
SELECT + MAX ( + - 60 ) AS col1, - NULLIF ( - - ( - COUNT ( * ) ), - - 83 + + 74 * NULLIF ( 50, CASE + COALESCE ( 41, + 10 ) WHEN + + 22 THEN 58 END * 28 / + 58 ) ) AS col2
----
-60
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-14
SELECT ALL + CAST( - - SUM( + 86 ) AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL + CAST ( - - SUM ( + 86 ) AS INTEGER )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT NULLIF ( 51, COUNT( * ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-15
SELECT NULLIF ( 51, COUNT ( * ) ) AS col2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-16
SELECT ALL 44 * + 52 - + 10 DIV + + COUNT( + 74 )
----
2278

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL 44 * + 52 - + 10 / + + COUNT ( + 74 )
----
2278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-17
SELECT DISTINCT + CASE - 43 WHEN - 90 THEN NULL WHEN - 72 * - 82 + - 14 THEN - 10 WHEN + CAST( - - 10 AS SIGNED ) THEN - COUNT( - + 24 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT + CASE - 43 WHEN - 90 THEN NULL WHEN - 72 * - 82 + - 14 THEN - 10 WHEN + CAST ( - - 10 AS INTEGER ) THEN - COUNT ( - + 24 ) ELSE NULL END
----
NULL

query II rowsort
SELECT - 99 * - 54 AS col2, 82 col2
----
5346
82

onlyif mysql # aggregate syntax: 
query II rowsort label-19
SELECT DISTINCT - 53 * - ( + 90 ) col1, COUNT( DISTINCT 80 ) AS col0
----
4770
1

skipif mysql # not compatible
query II rowsort label-19
SELECT DISTINCT - 53 * - ( + 90 ) col1, COUNT ( DISTINCT 80 ) AS col0
----
4770
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-20
SELECT + AVG ( ALL CAST( NULL AS SIGNED ) ) * - 56 - + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-20
SELECT + AVG ( ALL CAST ( NULL AS INTEGER ) ) * - 56 - + 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-21
SELECT - + 64 * CASE + 72 WHEN + - SUM( DISTINCT - 59 ) THEN - NULLIF ( - + 37, 72 * - 55 * - 88 ) WHEN + - 3 THEN + 82 WHEN - + 54 + 76 + + 5 DIV - 60 + 16 * - COUNT( * ) THEN + COUNT( * ) + + - 13 ELSE + 56 DIV + - 94 END
----
0

skipif mysql # not compatible
query I rowsort label-21
SELECT - + 64 * CASE + 72 WHEN + - SUM ( DISTINCT - 59 ) THEN - NULLIF ( - + 37, 72 * - 55 * - 88 ) WHEN + - 3 THEN + 82 WHEN - + 54 + 76 + + 5 / - 60 + 16 * - COUNT ( * ) THEN + COUNT ( * ) + + - 13 ELSE + 56 / + - 94 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT ALL + COUNT( * ) * - 20 - - - 83
----
-103

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL + COUNT ( * ) * - 20 - - - 83
----
-103

onlyif mysql # DIV for integer division: 
query II rowsort label-23
SELECT DISTINCT 9 DIV 79 AS col0, 58 * + 89 * 16
----
0
82592

skipif mysql # not compatible
query II rowsort label-23
SELECT DISTINCT 9 / 79 AS col0, 58 * + 89 * 16
----
0
82592

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT DISTINCT CASE + 84 WHEN 54 THEN - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT CASE + 84 WHEN 54 THEN - COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-25
SELECT - COUNT( * ) * - 78 DIV + 24 + + - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-25
SELECT - COUNT ( * ) * - 78 / + 24 + + - COUNT ( * ) AS col1
----
2

query I rowsort
SELECT ALL 98 * + - 17 * + ( + 27 )
----
-44982

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT + + ( + COUNT( * ) ) * 30 * + 88 AS col2
----
2640

skipif mysql # not compatible
query I rowsort label-27
SELECT + + ( + COUNT ( * ) ) * 30 * + 88 AS col2
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT + 81 + + + COUNT( * ) + + - 68
----
14

skipif mysql # not compatible
query I rowsort label-28
SELECT + 81 + + + COUNT ( * ) + + - 68
----
14

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

query I rowsort
SELECT ALL 84 + + 87 AS col2
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-31
SELECT ALL 7 + CAST( NULL AS SIGNED ) / - MIN( DISTINCT 9 ) + - CAST( + COUNT( * ) AS SIGNED ) AS col2, - 34 * - + 72
----
NULL
2448

skipif mysql # not compatible
query II rowsort label-31
SELECT ALL 7 + CAST ( NULL AS INTEGER ) / - MIN ( DISTINCT 9 ) + - CAST ( + COUNT ( * ) AS INTEGER ) AS col2, - 34 * - + 72
----
NULL
2448

query I rowsort
SELECT DISTINCT 19 * + 91 * + - 71 * + 53 AS col2
----
-6506227

query I rowsort
SELECT + 65 * ( - - 72 ) * - 3 AS col0
----
-14040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-34
SELECT ALL ( + 19 ) DIV + COUNT( * ) * - COUNT( * ) + NULLIF ( - - CAST( + + AVG ( ALL 18 ) AS SIGNED ), + 18 DIV + + 1 * + 63 * - + 34 ) + - - 27 + + + 96 DIV 4 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-34
SELECT ALL ( + 19 ) / + COUNT ( * ) * - COUNT ( * ) + NULLIF ( - - CAST ( + + AVG ( ALL 18 ) AS INTEGER ), + 18 / + + 1 * + 63 * - + 34 ) + - - 27 + + + 96 / 4 AS col0
----
50

query I rowsort
SELECT + ( + 0 ) + + - 68 + - ( - ( - 15 ) )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT - 59 * + 54 + + - COUNT( * ) + 74 AS col1
----
-3113

skipif mysql # not compatible
query I rowsort label-36
SELECT - 59 * + 54 + + - COUNT ( * ) + 74 AS col1
----
-3113

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT - COUNT( * ) * + 13 + - 79 + 65
----
-27

skipif mysql # not compatible
query I rowsort label-38
SELECT - COUNT ( * ) * + 13 + - 79 + 65
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL + NULLIF ( + COUNT( * ), + 32 ) - - NULLIF ( + + 12, + 22 ) + + + 98 - 27 * 10
----
-159

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL + NULLIF ( + COUNT ( * ), + 32 ) - - NULLIF ( + + 12, + 22 ) + + + 98 - 27 * 10
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT MAX( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-40
SELECT MAX ( 35 )
----
35

query II rowsort
SELECT 96 * + 99 + - 90, 22 col0
----
9414
22

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT 17 + + ( + - MIN( ALL + - 4 ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-42
SELECT 17 + + ( + - MIN ( ALL + - 4 ) ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT 76 + COALESCE ( 39, - 97 * CASE - 34 WHEN + 81 THEN + - 20 WHEN + NULLIF ( + 84, 34 ) - + 18 + - SUM( - 22 ) - COUNT( * ) THEN NULL WHEN - - 50 THEN NULL ELSE NULL END, + CASE - 32 WHEN - - 55 + + + 20 THEN - 31 * - 42 END * COUNT( * ) + - 56 )
----
115

skipif mysql # not compatible
query I rowsort label-43
SELECT 76 + COALESCE ( 39, - 97 * CASE - 34 WHEN + 81 THEN + - 20 WHEN + NULLIF ( + 84, 34 ) - + 18 + - SUM ( - 22 ) - COUNT ( * ) THEN NULL WHEN - - 50 THEN NULL ELSE NULL END, + CASE - 32 WHEN - - 55 + + + 20 THEN - 31 * - 42 END * COUNT ( * ) + - 56 )
----
115

query I rowsort
SELECT DISTINCT - 63 * - 1 * + 93 + - ( + + 10 ) + - - 91 - + 87 * + + 41 * + 16 * - 81 col0
----
4628772

query II rowsort
SELECT 89, 43 - - 11 AS col0
----
89
54

onlyif mysql # aggregate syntax: 
query II rowsort label-46
SELECT DISTINCT - MAX( DISTINCT - - NULLIF ( + - 83, - 76 ) ) AS col1, 7
----
83
7

skipif mysql # not compatible
query II rowsort label-46
SELECT DISTINCT - MAX ( DISTINCT - - NULLIF ( + - 83, - 76 ) ) AS col1, 7
----
83
7

query I rowsort
SELECT DISTINCT - 8 * + - 96 AS col0
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT - SUM( + + 94 ) + - 35 AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-48
SELECT - SUM ( + + 94 ) + - 35 AS col2
----
-129

query I rowsort
SELECT - 25 * - - 24 AS col1
----
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT - 95 * - - 39 * - 50 + - SUM( - - 47 )
----
185203

skipif mysql # not compatible
query I rowsort label-50
SELECT - 95 * - - 39 * - 50 + - SUM ( - - 47 )
----
185203

query I rowsort
SELECT DISTINCT - 47 + - 9
----
-56

query II rowsort
SELECT ALL 57, + 83 + + 68 AS col1
----
57
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-53
SELECT + CASE 99 WHEN NULLIF ( CAST( + - 56 AS SIGNED ), + CAST( 50 AS DECIMAL ) - 91 + + - COALESCE ( - 9, - - 61 / + CAST( + COUNT( * ) AS SIGNED ) ) - - 15 ) / + ( + - 70 ) + + - 50 + - COALESCE ( + 68, 87 ) - 39 * - + ( - 71 ) + COUNT( DISTINCT - 64 ) THEN CAST( NULL AS SIGNED ) WHEN - + 6 THEN + COALESCE ( COALESCE ( + CAST( - 27 AS SIGNED ), + 27 * 9 - CAST( 9 + - 36 AS SIGNED ) ), + 80 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-53
SELECT + CASE 99 WHEN NULLIF ( CAST ( + - 56 AS INTEGER ), + CAST ( 50 AS REAL ) - 91 + + - COALESCE ( - 9, - - 61 / + CAST ( + COUNT ( * ) AS INTEGER ) ) - - 15 ) / + ( + - 70 ) + + - 50 + - COALESCE ( + 68, 87 ) - 39 * - + ( - 71 ) + COUNT ( DISTINCT - 64 ) THEN CAST ( NULL AS INTEGER ) WHEN - + 6 THEN + COALESCE ( COALESCE ( + CAST ( - 27 AS INTEGER ), + 27 * 9 - CAST ( 9 + - 36 AS INTEGER ) ), + 80 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-54
SELECT - 30 AS col1, + CASE + CASE + 68 WHEN - + CAST( NULL AS SIGNED ) THEN - + CAST( + 69 AS SIGNED ) ELSE - 77 * 29 * + + 1 / + - CAST( - COUNT( * ) AS SIGNED ) END WHEN + - 56 THEN + - 70 ELSE NULL END / - ( - ( - NULLIF ( - - 73, + AVG ( DISTINCT - 94 ) + + 72 ) ) ) AS col2, + - 97 AS col2
----
-30
NULL
-97

skipif mysql # not compatible
query III rowsort label-54
SELECT - 30 AS col1, + CASE + CASE + 68 WHEN - + CAST ( NULL AS INTEGER ) THEN - + CAST ( + 69 AS INTEGER ) ELSE - 77 * 29 * + + 1 / + - CAST ( - COUNT ( * ) AS INTEGER ) END WHEN + - 56 THEN + - 70 ELSE NULL END / - ( - ( - NULLIF ( - - 73, + AVG ( DISTINCT - 94 ) + + 72 ) ) ) AS col2, + - 97 AS col2
----
-30
NULL
-97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-55
SELECT DISTINCT - + 15 + - 7 - + 76 + + CAST( NULL AS DECIMAL ) + - + 38 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT - + 15 + - 7 - + 76 + + CAST ( NULL AS REAL ) + - + 38 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 75 + 52 col0
----
127

query I rowsort
SELECT DISTINCT 14 + 10
----
24

query I rowsort
SELECT ALL 8 + - ( 3 )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-59
SELECT DISTINCT COUNT( * ) DIV 87 col2, + ( - - COUNT( * ) ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-59
SELECT DISTINCT COUNT ( * ) / 87 col2, + ( - - COUNT ( * ) ) AS col2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT DISTINCT + 70 + - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT + 70 + - COUNT ( * )
----
69

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

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

query I rowsort
SELECT 16 + - 66 AS col2
----
-50

query I rowsort
SELECT ALL + 53 - + - 42
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ALL 18 - + - MAX( - - 8 )
----
26

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL 18 - + - MAX ( - - 8 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT DISTINCT - 81 * CASE 53 WHEN 3 THEN 2 - + 11 * - 36 / 87 / + - 2 WHEN - - 89 * NULLIF ( 65, + 57 ) + + MAX( + 29 ) THEN 14 * - 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT - 81 * CASE 53 WHEN 3 THEN 2 - + 11 * - 36 / 87 / + - 2 WHEN - - 89 * NULLIF ( 65, + 57 ) + + MAX ( + 29 ) THEN 14 * - 83 END
----
NULL

query I rowsort
SELECT 25 * + + 12 AS col2
----
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-67
SELECT ALL 64 * - - ( - COALESCE ( COALESCE ( - - 53, + 34 ), - NULLIF ( CAST( NULL AS SIGNED ), + 77 * + 4 ) ) ) col1
----
-3392

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL 64 * - - ( - COALESCE ( COALESCE ( - - 53, + 34 ), - NULLIF ( CAST ( NULL AS INTEGER ), + 77 * + 4 ) ) ) col1
----
-3392

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT CASE - ( 87 ) WHEN 62 * - - 79 + - 40 + + - 51 * + + 0 + ( - COUNT( * ) ) + + - 90 - - 14 THEN - 17 * 32 ELSE NULL END * 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-68
SELECT CASE - ( 87 ) WHEN 62 * - - 79 + - 40 + + - 51 * + + 0 + ( - COUNT ( * ) ) + + - 90 - - 14 THEN - 17 * 32 ELSE NULL END * 63 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-69
SELECT + 76 DIV 63
----
1

skipif mysql # not compatible
query I rowsort label-69
SELECT + 76 / 63
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-70
SELECT DISTINCT - COUNT( * ) DIV + 33 * + 73
----
0

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT - COUNT ( * ) / + 33 * + 73
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT + 34 * - + 32 + - - COUNT( * ) - 78 * 72
----
-6703

skipif mysql # not compatible
query I rowsort label-72
SELECT + 34 * - + 32 + - - COUNT ( * ) - 78 * 72
----
-6703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-73
SELECT - 43 / CAST( NULL AS SIGNED ) AS col2, - 86 + - COUNT( * )
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-73
SELECT - 43 / CAST ( NULL AS INTEGER ) AS col2, - 86 + - COUNT ( * )
----
NULL
-87

query I rowsort
SELECT - 0 + - 41 AS col2
----
-41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT ALL - NULLIF ( - COUNT( * ), + 35 * - - 85 * MAX( ALL + + 73 ) ) + + 57 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL - NULLIF ( - COUNT ( * ), + 35 * - - 85 * MAX ( ALL + + 73 ) ) + + 57 AS col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-77
SELECT CASE CAST( NULL AS SIGNED ) WHEN + 9 * + CAST( NULL AS SIGNED ) THEN - 65 / - 83 + - 85 END AS col1, - 54 AS col2
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-77
SELECT CASE CAST ( NULL AS INTEGER ) WHEN + 9 * + CAST ( NULL AS INTEGER ) THEN - 65 / - 83 + - 85 END AS col1, - 54 AS col2
----
NULL
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT 63 * - CASE - + ( 25 ) WHEN + - 36 THEN 61 END * + 62 + - 13 + + 38 + - COUNT( * ) + COUNT( * ) * + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-79
SELECT 63 * - CASE - + ( 25 ) WHEN + - 36 THEN 61 END * + 62 + - 13 + + 38 + - COUNT ( * ) + COUNT ( * ) * + - 7
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-80
SELECT ALL - 57 * CAST( NULL AS SIGNED ) * - + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL - 57 * CAST ( NULL AS INTEGER ) * - + 56 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 39 + + 72 AS col2
----
33

query I rowsort
SELECT ALL + 66 * + 96 AS col2
----
6336

query I rowsort
SELECT 81 * - 46 AS col2
----
-3726

query I rowsort
SELECT 87 - 75
----
12

query II rowsort
SELECT - 89 + - + 65 - ( + 73 ) * - + 52 AS col0, - 46
----
3642
-46

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

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

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

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL + 21 - - COUNT ( * ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-88
SELECT ALL COALESCE ( 36, 24 * COUNT( * ) * - CAST( + 87 AS SIGNED ) + - NULLIF ( + COUNT( * ), 62 - - 37 ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL COALESCE ( 36, 24 * COUNT ( * ) * - CAST ( + 87 AS INTEGER ) + - NULLIF ( + COUNT ( * ), 62 - - 37 ) ) AS col0
----
36

query I rowsort
SELECT - 0 - + COALESCE ( - + 4, + + 3 ) AS col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-90
SELECT - 59 DIV - - 58 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-90
SELECT - 59 / - - 58 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-91
SELECT - CAST( ( - 88 ) AS SIGNED ) + + 98 - + ( 91 ) * 62 AS col0
----
-5456

skipif mysql # not compatible
query I rowsort label-91
SELECT - CAST ( ( - 88 ) AS INTEGER ) + + 98 - + ( 91 ) * 62 AS col0
----
-5456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-92
SELECT ALL + COALESCE ( COUNT( * ), CAST( 63 AS SIGNED ) ) / NULLIF ( + NULLIF ( - 13, + + 27 ), 60 * - + COUNT( * ) + - 87 ) - MAX( ALL + CAST( NULL AS SIGNED ) ) * - 76 * - - 29 * - - 51 * 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL + COALESCE ( COUNT ( * ), CAST ( 63 AS INTEGER ) ) / NULLIF ( + NULLIF ( - 13, + + 27 ), 60 * - + COUNT ( * ) + - 87 ) - MAX ( ALL + CAST ( NULL AS INTEGER ) ) * - 76 * - - 29 * - - 51 * 47 AS col2
----
NULL

query I rowsort
SELECT - 47 + + - 68 AS col1
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT COALESCE ( - ( - ( + 85 ) ), + MAX( - 94 ) - - 74, + 79 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-94
SELECT COALESCE ( - ( - ( + 85 ) ), + MAX ( - 94 ) - - 74, + 79 ) AS col2
----
85

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

skipif mysql # not compatible
query I rowsort label-95
SELECT + MIN ( + - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT + COUNT( * ) * + - 78 * + 67 * - 98 * + 83 AS col2
----
42508284

skipif mysql # not compatible
query I rowsort label-96
SELECT + COUNT ( * ) * + - 78 * + 67 * - 98 * + 83 AS col2
----
42508284

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT ALL NULLIF ( + 91, + - COUNT( * ) * - COUNT( * ) ) * - - 23 AS col0
----
2093

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL NULLIF ( + 91, + - COUNT ( * ) * - COUNT ( * ) ) * - - 23 AS col0
----
2093

query I rowsort
SELECT 95 * 39 + + ( 1 )
----
3706

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT ALL + MAX( ALL + - 17 ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-99
SELECT ALL + MAX ( ALL + - 17 ) col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-100
SELECT DISTINCT + CASE + - 62 WHEN + 44 THEN NULL WHEN 5 THEN CAST( NULL AS SIGNED ) WHEN - CASE NULLIF ( + + 85, + CASE - - 34 WHEN 20 + 80 THEN + 61 ELSE - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * - - 11 + - 54 END ) WHEN + 64 * 59 * + 34 * + 42 * - 16 THEN NULL ELSE - 82 END * ( - 47 ) + + AVG ( DISTINCT + 20 ) * 61 THEN + + 82 * + + COUNT( * ) - 51 ELSE 18 END AS col0
----
18

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT + CASE + - 62 WHEN + 44 THEN NULL WHEN 5 THEN CAST ( NULL AS INTEGER ) WHEN - CASE NULLIF ( + + 85, + CASE - - 34 WHEN 20 + 80 THEN + 61 ELSE - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - - 11 + - 54 END ) WHEN + 64 * 59 * + 34 * + 42 * - 16 THEN NULL ELSE - 82 END * ( - 47 ) + + AVG ( DISTINCT + 20 ) * 61 THEN + + 82 * + + COUNT ( * ) - 51 ELSE 18 END AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-101
SELECT ALL + - COUNT( + - ( 41 ) ) AS col2, CAST( + 2 AS SIGNED ) AS col0
----
-1
2

skipif mysql # not compatible
query II rowsort label-101
SELECT ALL + - COUNT ( + - ( 41 ) ) AS col2, CAST ( + 2 AS INTEGER ) AS col0
----
-1
2

onlyif mysql # aggregate syntax: 
query II rowsort label-102
SELECT DISTINCT + 49 AS col2, 22 + - ( COUNT( * ) ) - + + 5 + ( - - 39 ) * - 8
----
49
-296

skipif mysql # not compatible
query II rowsort label-102
SELECT DISTINCT + 49 AS col2, 22 + - ( COUNT ( * ) ) - + + 5 + ( - - 39 ) * - 8
----
49
-296

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-104
SELECT ALL + 68 * - 29 + + - 65 * + ( + + 99 ) * - 60 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL + 68 * - 29 + + - 65 * + ( + + 99 ) * - 60 * - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-105
SELECT + MAX ( + 72 )
----
72

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

skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + COUNT ( * ) / 4 + 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT + - COUNT( * ) + 61 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-107
SELECT + - COUNT ( * ) + 61 AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-108
SELECT - - CAST( + 34 AS SIGNED ) * 54
----
1836

skipif mysql # not compatible
query I rowsort label-108
SELECT - - CAST ( + 34 AS INTEGER ) * 54
----
1836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-109
SELECT DISTINCT - 11 * - - CAST( - 23 AS SIGNED ) + - 21
----
232

skipif mysql # not compatible
query I rowsort label-109
SELECT DISTINCT - 11 * - - CAST ( - 23 AS INTEGER ) + - 21
----
232

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-110
SELECT + CAST( NULL AS DECIMAL ) + - ( + - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-110
SELECT + CAST ( NULL AS REAL ) + - ( + - 87 )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 38, - - 30 ) col1
----
38

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

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

query I rowsort
SELECT + - 26 * - 67 * - ( - 40 )
----
69680

query I rowsort
SELECT + - 15 + - + COALESCE ( - 31, + - 52 + 2, + 44 )
----
16

query II rowsort
SELECT ALL + 46 * + 30 + ( - 75 ) - 18 + - 83 AS col2, ( 0 )
----
1204
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-117
SELECT - 25 + + + 94 * + COUNT( * ) / 19 / + + COUNT( * ) * - NULLIF ( - 80, - 99 * - 65 ) - + + CAST( NULL AS DECIMAL ) + + - 1 * - + COUNT( * ) AS col0, + 56 AS col1
----
NULL
56

skipif mysql # not compatible
query II rowsort label-117
SELECT - 25 + + + 94 * + COUNT ( * ) / 19 / + + COUNT ( * ) * - NULLIF ( - 80, - 99 * - 65 ) - + + CAST ( NULL AS REAL ) + + - 1 * - + COUNT ( * ) AS col0, + 56 AS col1
----
NULL
56

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-119
SELECT ALL COUNT( * ) AS col0, + 23 * - 60 + + CASE + 62 WHEN + 1 THEN - + 54 END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-119
SELECT ALL COUNT ( * ) AS col0, + 23 * - 60 + + CASE + 62 WHEN + 1 THEN - + 54 END
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-120
SELECT + NULLIF ( 13, - 13 / - CAST( + 73 AS SIGNED ) * - 46 * - NULLIF ( - 94, CAST( - - 33 AS SIGNED ) + + ( ( - + CAST( NULL AS DECIMAL ) ) ) * NULLIF ( - 92, + 3 ) ) * + AVG ( 12 ) + 3 ) * - + 6
----
-78

skipif mysql # not compatible
query I rowsort label-120
SELECT + NULLIF ( 13, - 13 / - CAST ( + 73 AS INTEGER ) * - 46 * - NULLIF ( - 94, CAST ( - - 33 AS INTEGER ) + + ( ( - + CAST ( NULL AS REAL ) ) ) * NULLIF ( - 92, + 3 ) ) * + AVG ( 12 ) + 3 ) * - + 6
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-121
SELECT + ( + - 68 ) + + + 84 + MIN( 66 ) / + - 46 * + - CAST( NULL AS SIGNED ) * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-121
SELECT + ( + - 68 ) + + + 84 + MIN ( 66 ) / + - 46 * + - CAST ( NULL AS INTEGER ) * - 84
----
NULL

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

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

query I rowsort
SELECT - 83 * - 65 AS col1
----
5395

query I rowsort
SELECT - 77 + 38 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-126
SELECT ALL + COUNT( * ) * - 63, - MAX( DISTINCT 8 ) + - 70 * - + 10 AS col2
----
-63
692

skipif mysql # not compatible
query II rowsort label-126
SELECT ALL + COUNT ( * ) * - 63, - MAX ( DISTINCT 8 ) + - 70 * - + 10 AS col2
----
-63
692

query I rowsort
SELECT + 47 * + 21 * 20 * - - 44
----
868560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-128
SELECT - CAST( NULL AS SIGNED ), ( 40 ) AS col0
----
NULL
40

skipif mysql # not compatible
query II rowsort label-128
SELECT - CAST ( NULL AS INTEGER ), ( 40 ) AS col0
----
NULL
40

query I rowsort
SELECT - 29 + 9 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-130
SELECT 38, - ( + + CASE - 42 WHEN - 6 THEN - + COUNT( * ) - + 48 WHEN + + 91 * - 25 THEN + 75 * 33 + + 59 + - 3 ELSE NULL END ) AS col2
----
38
NULL

skipif mysql # not compatible
query II rowsort label-130
SELECT 38, - ( + + CASE - 42 WHEN - 6 THEN - + COUNT ( * ) - + 48 WHEN + + 91 * - 25 THEN + 75 * 33 + + 59 + - 3 ELSE NULL END ) AS col2
----
38
NULL

query I rowsort
SELECT ALL NULLIF ( 18, ( - 72 ) ) * - + 55
----
-990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-132
SELECT - COUNT( * ) * - - 63 / - 78 / AVG ( + 78 ) / - CAST( NULL AS SIGNED ) * + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-132
SELECT - COUNT ( * ) * - - 63 / - 78 / AVG ( + 78 ) / - CAST ( NULL AS INTEGER ) * + 52 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-133
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + COALESCE ( - - ( - 9 ), 39 * - + 88 + MIN( ALL + ( + 22 ) ) * + + 70 ) AS col0
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-133
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + COALESCE ( - - ( - 9 ), 39 * - + 88 + MIN ( ALL + ( + 22 ) ) * + + 70 ) AS col0
----
NULL
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-134
SELECT DISTINCT - 24 / - 28 * CASE CAST( - 30 AS SIGNED ) WHEN - 56 THEN - + 6 WHEN - 68 THEN + 28 * + CAST( + - 8 AS SIGNED ) * ( + 50 ) + CASE - 20 WHEN + 56 + CAST( + + 79 AS SIGNED ) + 86 THEN - - 37 * COUNT( * ) WHEN 20 * + - 41 THEN NULL ELSE + - 30 END WHEN - 64 THEN NULL ELSE NULL END + - + ( - 11 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT - 24 / - 28 * CASE CAST ( - 30 AS INTEGER ) WHEN - 56 THEN - + 6 WHEN - 68 THEN + 28 * + CAST ( + - 8 AS INTEGER ) * ( + 50 ) + CASE - 20 WHEN + 56 + CAST ( + + 79 AS INTEGER ) + 86 THEN - - 37 * COUNT ( * ) WHEN 20 * + - 41 THEN NULL ELSE + - 30 END WHEN - 64 THEN NULL ELSE NULL END + - + ( - 11 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-135
SELECT - NULLIF ( - 81, - - 23 ) / + - CAST( NULL AS SIGNED ) + - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-135
SELECT - NULLIF ( - 81, - - 23 ) / + - CAST ( NULL AS INTEGER ) + - 91 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-136
SELECT ALL + - 81 DIV + 64 + - - 86 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL + - 81 / + 64 + - - 86 AS col2
----
85

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

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

query I rowsort
SELECT ( + 98 ) col1
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-139
SELECT - - MIN( 15 ) DIV COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-139
SELECT - - MIN ( 15 ) / COUNT ( * ) AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-140
SELECT DISTINCT - + 0 DIV - 87 * + 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT - + 0 / - 87 * + 48 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-141
SELECT ALL - 21 DIV - 54 + - 29 * - - 56 col0
----
-1624

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL - 21 / - 54 + - 29 * - - 56 col0
----
-1624

query I rowsort
SELECT + 29 * - - 83 * - 25 - + - 9
----
-60166

query II rowsort
SELECT ALL + - 79, 63 * 23 AS col0
----
-79
1449

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-144
SELECT DISTINCT SUM( ALL + 14 ) DIV - - ( + 57 ) + - ( - 11 ) AS col2, + 80 AS col2
----
11
80

skipif mysql # not compatible
query II rowsort label-144
SELECT DISTINCT SUM ( ALL + 14 ) / - - ( + 57 ) + - ( - 11 ) AS col2, + 80 AS col2
----
11
80

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT DISTINCT + + COUNT( + - 62 )
----
1

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT + + COUNT ( + - 62 )
----
1

query II rowsort
SELECT ALL + 0, 65 AS col2
----
0
65

query I rowsort
SELECT DISTINCT 96 * - 89 + + NULLIF ( - 34, 15 ) - - 55
----
-8523

query I rowsort
SELECT + - 80 * + 68
----
-5440

query I rowsort
SELECT ALL 38 * - + 64 * - 81 AS col1
----
196992

query I rowsort
SELECT - 7 * - + 21 + - + 1 * + 63 + + - 5
----
79

query II rowsort
SELECT - + 91 * + + ( - + 92 ) + 3 AS col1, 13 AS col1
----
8375
13

query II rowsort
SELECT 94 col0, 14
----
94
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-155
SELECT - 94 AS col1, 59 * + COALESCE ( - COALESCE ( + CASE - 39 WHEN + 44 * - 65 + 43 THEN + + CAST( 41 AS SIGNED ) + - COUNT( - 91 ) ELSE + - 50 END, - 71 * 60 DIV - 46 ), - 87, - 93 ) col2
----
-94
2950

skipif mysql # not compatible
query II rowsort label-155
SELECT - 94 AS col1, 59 * + COALESCE ( - COALESCE ( + CASE - 39 WHEN + 44 * - 65 + 43 THEN + + CAST ( 41 AS INTEGER ) + - COUNT ( - 91 ) ELSE + - 50 END, - 71 * 60 / - 46 ), - 87, - 93 ) col2
----
-94
2950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-156
SELECT COUNT( * ) + - + 68 + COUNT( * ) + COUNT( * ) DIV 91 * + COALESCE ( 35, - 1, - 71 DIV 39 * - - 10 + + - 75 )
----
-66

skipif mysql # not compatible
query I rowsort label-156
SELECT COUNT ( * ) + - + 68 + COUNT ( * ) + COUNT ( * ) / 91 * + COALESCE ( 35, - 1, - 71 / 39 * - - 10 + + - 75 )
----
-66

query I rowsort
SELECT ALL 95 * + 79
----
7505

query I rowsort
SELECT DISTINCT 6 * 19
----
114

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT ALL 41 * + 24 * - CASE - COUNT( * ) WHEN + COUNT( * ) THEN + - 33 * 27 / 50 * + 9 + + 79 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL 41 * + 24 * - CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN + - 33 * 27 / 50 * + 9 + + 79 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-161
SELECT 6 DIV ( + 34 ) col1, - 10
----
0
-10

skipif mysql # not compatible
query II rowsort label-161
SELECT 6 / ( + 34 ) col1, - 10
----
0
-10

query I rowsort
SELECT 41 * - + 54
----
-2214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-163
SELECT ALL ( - CAST( + 9 AS SIGNED ) ) + + + 99 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL ( - CAST ( + 9 AS INTEGER ) ) + + + 99 AS col1
----
90

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT 57 - - COUNT( * ) + 22 / CASE - + 62 WHEN + COUNT( * ) + 54 THEN NULL WHEN - + MIN( - 42 ) + + 69 THEN - 81 WHEN + 95 * - 68 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT 57 - - COUNT ( * ) + 22 / CASE - + 62 WHEN + COUNT ( * ) + 54 THEN NULL WHEN - + MIN ( - 42 ) + + 69 THEN - 81 WHEN + 95 * - 68 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-167
SELECT - 53 + NULLIF ( 66, - 8 + + - ( - 74 ) ) + 84 + - CAST( NULL AS SIGNED ) / - 85 / - - ( - 61 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-167
SELECT - 53 + NULLIF ( 66, - 8 + + - ( - 74 ) ) + 84 + - CAST ( NULL AS INTEGER ) / - 85 / - - ( - 61 ) AS col2
----
NULL

query I rowsort
SELECT 7 - - 31
----
38

query I rowsort
SELECT ALL - 31 + + + 87 * 40
----
3449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-170
SELECT 86 + - + AVG ( ALL - ( + 76 ) ) + CASE + MAX( 59 ) WHEN CASE - COUNT( * ) WHEN - 42 / + 96 * - + CAST( - - ( + 30 ) AS SIGNED ) * + COUNT( * ) * - COALESCE ( 44, - COALESCE ( - 35, - COUNT( * ) * 10 ), + COUNT( * ) / + 53 ) * + ( - + 41 ) + + 41 THEN NULL WHEN - 92 THEN 74 + + 93 + - 59 END THEN 90 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-170
SELECT 86 + - + AVG ( ALL - ( + 76 ) ) + CASE + MAX ( 59 ) WHEN CASE - COUNT ( * ) WHEN - 42 / + 96 * - + CAST ( - - ( + 30 ) AS INTEGER ) * + COUNT ( * ) * - COALESCE ( 44, - COALESCE ( - 35, - COUNT ( * ) * 10 ), + COUNT ( * ) / + 53 ) * + ( - + 41 ) + + 41 THEN NULL WHEN - 92 THEN 74 + + 93 + - 59 END THEN 90 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT + 59 * COUNT( * ) * - - COUNT( * ) + 34
----
93

skipif mysql # not compatible
query I rowsort label-171
SELECT + 59 * COUNT ( * ) * - - COUNT ( * ) + 34
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT 75 / 32 + - - ( - COUNT( * ) ) * - 21 + CASE WHEN ( NULL ) IS NOT NULL THEN - 36 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-172
SELECT 75 / 32 + - - ( - COUNT ( * ) ) * - 21 + CASE WHEN ( NULL ) IS NOT NULL THEN - 36 END AS col2
----
NULL

query I rowsort
SELECT ALL + 70 - - - 66
----
4

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

query II rowsort
SELECT - 52 + - CASE + ( 57 ) WHEN + + ( - + 9 ) THEN NULL ELSE + 84 END, 8 col1
----
-136
8

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT + 61 * + NULLIF ( - 54, + SUM( ALL + - 42 ) )
----
-3294

skipif mysql # not compatible
query I rowsort label-176
SELECT + 61 * + NULLIF ( - 54, + SUM ( ALL + - 42 ) )
----
-3294

onlyif mysql # DIV for integer division: 
query I rowsort label-177
SELECT DISTINCT - 87 DIV + ( - - 78 ) + + 41 - + 93 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-177
SELECT DISTINCT - 87 / + ( - - 78 ) + + 41 - + 93 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-178
SELECT ALL - - 31 * + 3, COUNT( * ) AS col2
----
93
1

skipif mysql # not compatible
query II rowsort label-178
SELECT ALL - - 31 * + 3, COUNT ( * ) AS col2
----
93
1

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT - NULLIF ( COUNT( * ), + NULLIF ( + 97, - 82 / - COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-179
SELECT - NULLIF ( COUNT ( * ), + NULLIF ( + 97, - 82 / - COUNT ( * ) ) ) AS col1
----
-1

query I rowsort
SELECT ALL - 35 * + + 68 col0
----
-2380

query I rowsort
SELECT 6 * 18 * + 0 AS col1
----
0

query II rowsort
SELECT ALL 59 col0, 84 * + 84 * + 58
----
59
409248

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT ALL - COUNT( * ) * 93 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL - COUNT ( * ) * 93 AS col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT 96 + + ( - 93 ) DIV + 64 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-184
SELECT 96 + + ( - 93 ) / + 64 AS col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT 63 * - 45 DIV - 5 + 98
----
665

skipif mysql # not compatible
query I rowsort label-185
SELECT 63 * - 45 / - 5 + 98
----
665

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

query I rowsort
SELECT ALL 88 * + - 90 AS col2
----
-7920

onlyif mysql # aggregate syntax: 
query II rowsort label-188
SELECT - 89 col0, MAX( ALL + - 90 ) + - + 79 - + 15 * + + 41 AS col2
----
-89
-784

skipif mysql # not compatible
query II rowsort label-188
SELECT - 89 col0, MAX ( ALL + - 90 ) + - + 79 - + 15 * + + 41 AS col2
----
-89
-784

query I rowsort
SELECT ALL 81 + 65
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-190
SELECT ( CAST( NULL AS SIGNED ) ) + - - COALESCE ( - 93, ( SUM( ALL + - 7 ) ) + COUNT( * ) * - AVG ( DISTINCT + 52 ) + - COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-190
SELECT ( CAST ( NULL AS INTEGER ) ) + - - COALESCE ( - 93, ( SUM ( ALL + - 7 ) ) + COUNT ( * ) * - AVG ( DISTINCT + 52 ) + - COUNT ( * ), COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL - ( - 0 ) + + 78 AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-192
SELECT 24 * + CAST( - + 52 AS SIGNED ) AS col0
----
-1248

skipif mysql # not compatible
query I rowsort label-192
SELECT 24 * + CAST ( - + 52 AS INTEGER ) AS col0
----
-1248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-193
SELECT ALL + 74 - + 11 * + 7 + 6 * CAST( + 69 AS SIGNED )
----
411

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL + 74 - + 11 * + 7 + 6 * CAST ( + 69 AS INTEGER )
----
411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-194
SELECT ALL - ( + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL - ( + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) AS col0
----
0

query II rowsort
SELECT + ( ( + + 75 ) ), + ( - 59 ) AS col0
----
75
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT DISTINCT COUNT( * ) * + 80 - - COUNT( * ) * + 24
----
104

skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT COUNT ( * ) * + 80 - - COUNT ( * ) * + 24
----
104

query II rowsort
SELECT ALL - 80 AS col0, 30 AS col0
----
-80
30

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-199
SELECT ALL + 58 * + COUNT( * ) * - 81, - 36 AS col0
----
-4698
-36

skipif mysql # not compatible
query II rowsort label-199
SELECT ALL + 58 * + COUNT ( * ) * - 81, - 36 AS col0
----
-4698
-36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-201
SELECT DISTINCT + 14 * COALESCE ( - 1, - 0 ) * 36 DIV - 80 + + 74 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-201
SELECT DISTINCT + 14 * COALESCE ( - 1, - 0 ) * 36 / - 80 + + 74 AS col0
----
80

query I rowsort
SELECT - 25 * + - 80 * - + NULLIF ( 56, - + 45 / + 24 * + + 50 ) AS col1
----
-112000

query I rowsort
SELECT DISTINCT 31 * - 67 AS col1
----
-2077

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-204
SELECT ALL + CASE + COUNT( * ) WHEN - - COUNT( * ) * + - 19 * 39 THEN NULL WHEN 56 + 39 - COUNT( DISTINCT - 70 ) THEN NULL WHEN - + COUNT( * ) THEN + - 6 ELSE - - 93 END DIV - 27 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL + CASE + COUNT ( * ) WHEN - - COUNT ( * ) * + - 19 * 39 THEN NULL WHEN 56 + 39 - COUNT ( DISTINCT - 70 ) THEN NULL WHEN - + COUNT ( * ) THEN + - 6 ELSE - - 93 END / - 27 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-205
SELECT ALL + SUM( + - 11 ) AS col0, - 40
----
-11
-40

skipif mysql # not compatible
query II rowsort label-205
SELECT ALL + SUM ( + - 11 ) AS col0, - 40
----
-11
-40

query I rowsort
SELECT + 30 + - - 72 + - 9
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-207
SELECT 76 * 29 * - 49 - 32 - - - 95 * - 7 + ( - 76 ) * + 96 DIV + 2
----
-111011

skipif mysql # not compatible
query I rowsort label-207
SELECT 76 * 29 * - 49 - 32 - - - 95 * - 7 + ( - 76 ) * + 96 / + 2
----
-111011

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT - 18 * - + 55 * - NULLIF ( - 2, - COALESCE ( COUNT( * ), - + AVG ( 84 ) ) + + 17 ) * 53
----
104940

skipif mysql # not compatible
query I rowsort label-208
SELECT - 18 * - + 55 * - NULLIF ( - 2, - COALESCE ( COUNT ( * ), - + AVG ( 84 ) ) + + 17 ) * 53
----
104940

query I rowsort
SELECT DISTINCT - 32 + 37
----
5

query I rowsort
SELECT DISTINCT - 86 + + + 10
----
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-211
SELECT DISTINCT CASE + + 81 WHEN - 75 THEN NULL WHEN NULLIF ( - 85, - 96 ) THEN - - COALESCE ( - 37, + CAST( - 92 AS DECIMAL ), + 73 + - 97 * + 20 ) WHEN - COUNT( * ) THEN + 3 * - - COUNT( * ) - - 2 + - 71 / - 16 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT CASE + + 81 WHEN - 75 THEN NULL WHEN NULLIF ( - 85, - 96 ) THEN - - COALESCE ( - 37, + CAST ( - 92 AS REAL ), + 73 + - 97 * + 20 ) WHEN - COUNT ( * ) THEN + 3 * - - COUNT ( * ) - - 2 + - 71 / - 16 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-212
SELECT ALL - ( 32 ) * + 48 + 6 - - 60 DIV 98 AS col2
----
-1530

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL - ( 32 ) * + 48 + 6 - - 60 / 98 AS col2
----
-1530

query I rowsort
SELECT DISTINCT - 87 * - 30 * - - 41 col2
----
107010

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-214
SELECT ALL - 69 - - 50 DIV + COUNT( * ) + 14 AS col0, 69 AS col2
----
-5
69

skipif mysql # not compatible
query II rowsort label-214
SELECT ALL - 69 - - 50 / + COUNT ( * ) + 14 AS col0, 69 AS col2
----
-5
69

query I rowsort
SELECT - 52 - 57 + 91 * 56
----
4987

query I rowsort
SELECT - 58 - 33
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-217
SELECT - + 25 * - CAST( NULL AS SIGNED ) col1, NULLIF ( - - 90, + ( - 49 ) + - 4 ) AS col2
----
NULL
90

skipif mysql # not compatible
query II rowsort label-217
SELECT - + 25 * - CAST ( NULL AS INTEGER ) col1, NULLIF ( - - 90, + ( - 49 ) + - 4 ) AS col2
----
NULL
90

query I rowsort
SELECT ALL + 3 - + - 32
----
35

query I rowsort
SELECT DISTINCT + 81 * - 58
----
-4698

onlyif mysql # DIV for integer division: 
query I rowsort label-220
SELECT ALL + 53 DIV 70 DIV - - NULLIF ( 41, 43 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL + 53 / 70 / - - NULLIF ( 41, 43 ) AS col0
----
0

query I rowsort
SELECT + - 42 - - + 22 col0
----
-20

query I rowsort
SELECT + + 68 - - 10
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT - - 57 * + 24 + - - 74 + 46 + 92 - ( - COUNT( - 86 ) ) * - 77 * 36 * - COUNT( DISTINCT + 17 ) AS col1
----
4352

skipif mysql # not compatible
query I rowsort label-223
SELECT - - 57 * + 24 + - - 74 + 46 + 92 - ( - COUNT ( - 86 ) ) * - 77 * 36 * - COUNT ( DISTINCT + 17 ) AS col1
----
4352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-224
SELECT + - MIN( DISTINCT + 80 ) * + + MIN( ALL + - 6 ) - 97 - 39 * + + COUNT( * ) DIV - - 73 AS col2
----
383

skipif mysql # not compatible
query I rowsort label-224
SELECT + - MIN ( DISTINCT + 80 ) * + + MIN ( ALL + - 6 ) - 97 - 39 * + + COUNT ( * ) / - - 73 AS col2
----
383

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-225
SELECT + 43 DIV - + COUNT( * ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-225
SELECT + 43 / - + COUNT ( * ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-226
SELECT + 87 + + + COUNT( * ) + + 48 * + 40 AS col2, 22 * - - 64 - - 16 + 14
----
2008
1438

skipif mysql # not compatible
query II rowsort label-226
SELECT + 87 + + + COUNT ( * ) + + 48 * + 40 AS col2, 22 * - - 64 - - 16 + 14
----
2008
1438

onlyif mysql # aggregate syntax: 
query II rowsort label-227
SELECT DISTINCT + ( - + 22 ) * + ( + - 65 ) AS col0, 69 + + - 98 * ( - COUNT( * ) ) AS col2
----
1430
167

skipif mysql # not compatible
query II rowsort label-227
SELECT DISTINCT + ( - + 22 ) * + ( + - 65 ) AS col0, 69 + + - 98 * ( - COUNT ( * ) ) AS col2
----
1430
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-228
SELECT 57 DIV + 50 + - 88 - + 27 * - COALESCE ( - - 93, - 14 * 62, - COUNT( * ), 24 ) + + + COUNT( * ) * 70
----
2494

skipif mysql # not compatible
query I rowsort label-228
SELECT 57 / + 50 + - 88 - + 27 * - COALESCE ( - - 93, - 14 * 62, - COUNT ( * ), 24 ) + + + COUNT ( * ) * 70
----
2494

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

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

query I rowsort
SELECT + 60 + + 79 AS col2
----
139

query I rowsort
SELECT - 68 * + 4 * - 95 + 44 col1
----
25884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-232
SELECT - 54 * - CAST( NULL AS SIGNED ) * + 44 * - SUM( 39 ) AS col2, 80 AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-232
SELECT - 54 * - CAST ( NULL AS INTEGER ) * + 44 * - SUM ( 39 ) AS col2, 80 AS col1
----
NULL
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-233
SELECT 81 * + - CAST( - 1 AS SIGNED ) + - 32
----
49

skipif mysql # not compatible
query I rowsort label-233
SELECT 81 * + - CAST ( - 1 AS INTEGER ) + - 32
----
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-234
SELECT ALL - COUNT( * ) * 85 + 83 AS col0, NULLIF ( - 52, - + 62 / + + 13 + 52 + 57 - + + 22 * - 14 ) * NULLIF ( + 8, - + 13 / + 48 + - + CAST( - ( + 30 ) AS DECIMAL ) * + 32 + 25 )
----
-2
-416

skipif mysql # not compatible
query II rowsort label-234
SELECT ALL - COUNT ( * ) * 85 + 83 AS col0, NULLIF ( - 52, - + 62 / + + 13 + 52 + 57 - + + 22 * - 14 ) * NULLIF ( + 8, - + 13 / + 48 + - + CAST ( - ( + 30 ) AS REAL ) * + 32 + 25 )
----
-2
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT DISTINCT - MIN( DISTINCT - - NULLIF ( + ( + 73 ), + 3 * + + 64 + - + 0 ) ) * - 20 + - + 90 col2
----
1370

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT - MIN ( DISTINCT - - NULLIF ( + ( + 73 ), + 3 * + + 64 + - + 0 ) ) * - 20 + - + 90 col2
----
1370

query II rowsort
SELECT ALL + 72 * - ( - 70 ) AS col1, 45
----
5040
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-237
SELECT ALL + 31 * ( - - 37 ) * 36 + - 50 - - - ( - + CAST( NULL AS SIGNED ) ) * + 67 + + COUNT( * ) - MIN( 96 ) + - ( + 97 ) * COUNT( * ) * + 97 * - CASE + - 90 WHEN - NULLIF ( ( - 23 ), - 49 ) THEN NULL WHEN + + ( - 68 ) * - ( MAX( + 28 ) ) + 0 * ( 5 ) THEN - 21 + + - CAST( - + 70 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL + 31 * ( - - 37 ) * 36 + - 50 - - - ( - + CAST ( NULL AS INTEGER ) ) * + 67 + + COUNT ( * ) - MIN ( 96 ) + - ( + 97 ) * COUNT ( * ) * + 97 * - CASE + - 90 WHEN - NULLIF ( ( - 23 ), - 49 ) THEN NULL WHEN + + ( - 68 ) * - ( MAX ( + 28 ) ) + 0 * ( 5 ) THEN - 21 + + - CAST ( - + 70 AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 51, 74 ) * - 30
----
-1530

onlyif mysql # aggregate syntax: 
query II rowsort label-239
SELECT DISTINCT 74 * + + ( + 4 ) + + SUM( DISTINCT - 78 ) AS col0, 57 AS col1
----
218
57

skipif mysql # not compatible
query II rowsort label-239
SELECT DISTINCT 74 * + + ( + 4 ) + + SUM ( DISTINCT - 78 ) AS col0, 57 AS col1
----
218
57

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT ALL + COALESCE ( + 24, - MIN( ALL - 46 ) + - 19 + - COUNT( * ) + 75 + COUNT( * ) * 76 * 3 * 79 - - 44 * + ( - 86 ) * 77 + + + ( + + 85 ) )
----
24

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL + COALESCE ( + 24, - MIN ( ALL - 46 ) + - 19 + - COUNT ( * ) + 75 + COUNT ( * ) * 76 * 3 * 79 - - 44 * + ( - 86 ) * 77 + + + ( + + 85 ) )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-241
SELECT + 41 - + CAST( NULL AS SIGNED ) * + 87 * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT + 41 - + CAST ( NULL AS INTEGER ) * + 87 * + 2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-242
SELECT NULLIF ( + ( - CAST( NULL AS SIGNED ) ), + COUNT( * ) * - COUNT( * ) + - 22 / - 47 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-242
SELECT NULLIF ( + ( - CAST ( NULL AS INTEGER ) ), + COUNT ( * ) * - COUNT ( * ) + - 22 / - 47 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT MAX( - ( - + 32 ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-243
SELECT MAX ( - ( - + 32 ) ) AS col2
----
32

query II rowsort
SELECT DISTINCT 11 * + 99 - - 30 AS col2, - 6 * - 68
----
1119
408

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-246
SELECT ALL 86 * - - 52 - CASE + - 18 WHEN + 2 + + 88 THEN NULL WHEN - - 6 * + - 33 * ( 10 ) + SUM( DISTINCT 58 ) / 49 * 90 THEN CAST( + + NULLIF ( - + 34, + 13 ) AS DECIMAL ) + MAX( 38 ) END, - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * COUNT( * ) * - 84 + COUNT( - - 26 ) + - 28 / + + CAST( - COUNT( * ) AS SIGNED ) col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-246
SELECT ALL 86 * - - 52 - CASE + - 18 WHEN + 2 + + 88 THEN NULL WHEN - - 6 * + - 33 * ( 10 ) + SUM ( DISTINCT 58 ) / 49 * 90 THEN CAST ( + + NULLIF ( - + 34, + 13 ) AS REAL ) + MAX ( 38 ) END, - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * COUNT ( * ) * - 84 + COUNT ( - - 26 ) + - 28 / + + CAST ( - COUNT ( * ) AS INTEGER ) col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-247
SELECT DISTINCT + 28 DIV + 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT + 28 / + 67 AS col1
----
0

query I rowsort
SELECT - 28 + + 67 + - + 1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT DISTINCT COUNT( * ) - - 5 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT COUNT ( * ) - - 5 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-250
SELECT ALL + COUNT( * ) * 57 * - CAST( + ( - CAST( - - 2 AS DECIMAL ) ) AS SIGNED ) * - 87 AS col0
----
-9918

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL + COUNT ( * ) * 57 * - CAST ( + ( - CAST ( - - 2 AS REAL ) ) AS INTEGER ) * - 87 AS col0
----
-9918

query I rowsort
SELECT - 55 + - 55 AS col0
----
-110

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT ALL - CASE + 38 WHEN + + COUNT( * ) THEN NULL ELSE + 74 END col0
----
-74

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL - CASE + 38 WHEN + + COUNT ( * ) THEN NULL ELSE + 74 END col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-255
SELECT - - CAST( NULL AS SIGNED ) * 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-255
SELECT - - CAST ( NULL AS INTEGER ) * 3 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT ALL + + ( 49 ) * - COUNT( DISTINCT 29 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL + + ( 49 ) * - COUNT ( DISTINCT 29 ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT - CASE + + 64 WHEN - COUNT( * ) * + + 20 THEN + 76 * - - COUNT( ALL COALESCE ( - 66, + 93, - 98 * + - 92 - + 50 ) ) + 56 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-257
SELECT - CASE + + 64 WHEN - COUNT ( * ) * + + 20 THEN + 76 * - - COUNT ( ALL COALESCE ( - 66, + 93, - 98 * + - 92 - + 50 ) ) + 56 END AS col2
----
NULL

query I rowsort
SELECT 53 + + 14
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT + 62 * - COALESCE ( - COUNT( * ), - 6 * 81 )
----
62

skipif mysql # not compatible
query I rowsort label-259
SELECT + 62 * - COALESCE ( - COUNT ( * ), - 6 * 81 )
----
62

query I rowsort
SELECT 0 * 25
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-261
SELECT ALL + - 95 * + + ( 84 ) AS col2, COUNT( * ) * + - 95 + - 16 col2
----
-7980
-111

skipif mysql # not compatible
query II rowsort label-261
SELECT ALL + - 95 * + + ( 84 ) AS col2, COUNT ( * ) * + - 95 + - 16 col2
----
-7980
-111

query I rowsort
SELECT ALL 15 + + - 21
----
-6

query I rowsort
SELECT DISTINCT - 8 + + 56 AS col2
----
48

query I rowsort
SELECT DISTINCT - - 82 + + 65 * - NULLIF ( - 94, - 66 )
----
6192

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT COUNT( * ) - + 4 + + 80
----
77

skipif mysql # not compatible
query I rowsort label-266
SELECT COUNT ( * ) - + 4 + + 80
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-267
SELECT CAST( + 90 AS SIGNED ) / - 58 * - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-267
SELECT CAST ( + 90 AS INTEGER ) / - 58 * - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 2 * + 61 AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT DISTINCT 78 * + - MAX( ALL 85 )
----
-6630

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT 78 * + - MAX ( ALL 85 )
----
-6630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-270
SELECT DISTINCT + 31 + + CASE - 25 WHEN 99 THEN NULL ELSE + - ( - - CAST( NULL AS SIGNED ) ) + - COUNT( ALL - - 57 ) * - COUNT( - 10 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-270
SELECT DISTINCT + 31 + + CASE - 25 WHEN 99 THEN NULL ELSE + - ( - - CAST ( NULL AS INTEGER ) ) + - COUNT ( ALL - - 57 ) * - COUNT ( - 10 ) END
----
NULL

query II rowsort
SELECT ALL - 99 AS col1, - 32
----
-99
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT COUNT( * ) - 93 * + + 3 AS col2
----
-278

skipif mysql # not compatible
query I rowsort label-272
SELECT COUNT ( * ) - 93 * + + 3 AS col2
----
-278

query I rowsort
SELECT ALL NULLIF ( - 77, - 90 ) * + 22
----
-1694

query II rowsort
SELECT ALL - 89, 99 AS col1
----
-89
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-275
SELECT DISTINCT 94 - + CAST( 91 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT 94 - + CAST ( 91 AS INTEGER )
----
3

query I rowsort
SELECT + 26 * 52 + - - 53 - + 37 * + 55 + 30 * + - 88
----
-3270

query I rowsort
SELECT DISTINCT 70 - - + 49 AS col1
----
119

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

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

query I rowsort
SELECT ( + 76 ) * + - 23 AS col2
----
-1748

query I rowsort
SELECT 85 * + 76
----
6460

query I rowsort
SELECT ALL 23 * 65 AS col2
----
1495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-282
SELECT 74 AS col0, 12 * COUNT( - 78 ) * - MIN( 46 ) * 47 - - - NULLIF ( CAST( + 83 AS SIGNED ), - 48 ) AS col2
----
74
-26027

skipif mysql # not compatible
query II rowsort label-282
SELECT 74 AS col0, 12 * COUNT ( - 78 ) * - MIN ( 46 ) * 47 - - - NULLIF ( CAST ( + 83 AS INTEGER ), - 48 ) AS col2
----
74
-26027

query I rowsort
SELECT DISTINCT + 24 * - 33
----
-792

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

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

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

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL 69 - + COUNT ( * ) AS col0
----
68

query I rowsort
SELECT ALL + 86 * + 52 * + - NULLIF ( 97, - 79 ) AS col1
----
-433784

onlyif mysql # DIV for integer division: 
query II rowsort label-287
SELECT + 17 AS col2, 12 + 35 - - + 12 DIV - 74
----
17
47

skipif mysql # not compatible
query II rowsort label-287
SELECT + 17 AS col2, 12 + 35 - - + 12 / - 74
----
17
47

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-289
SELECT 76 * - COUNT( * ) + + 72 DIV - + ( - + 61 ) + 33 + - 78 * 10
----
-822

skipif mysql # not compatible
query I rowsort label-289
SELECT 76 * - COUNT ( * ) + + 72 / - + ( - + 61 ) + 33 + - 78 * 10
----
-822

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT + 94 + - 24 * - 86 + - COUNT( * ) * + 74 * 10 + + + ( + 83 )
----
1501

skipif mysql # not compatible
query I rowsort label-290
SELECT + 94 + - 24 * - 86 + - COUNT ( * ) * + 74 * 10 + + + ( + 83 )
----
1501

query II rowsort
SELECT ALL 29, - 6 AS col1
----
29
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-292
SELECT 68 / + CASE + 99 WHEN - + 87 THEN - MIN( DISTINCT - 60 ) END / + MIN( - 93 ) + + - 36 * 95 + + ( - + 92 ) + + + 94 + 2, - COUNT( * ) + + - MIN( ALL 51 ) AS col0
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-292
SELECT 68 / + CASE + 99 WHEN - + 87 THEN - MIN ( DISTINCT - 60 ) END / + MIN ( - 93 ) + + - 36 * 95 + + ( - + 92 ) + + + 94 + 2, - COUNT ( * ) + + - MIN ( ALL 51 ) AS col0
----
NULL
-52

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-294
SELECT + 69 + - 39 DIV - + 90 * + COUNT( * ) AS col0, - COUNT( * ) + 40 AS col2
----
69
39

skipif mysql # not compatible
query II rowsort label-294
SELECT + 69 + - 39 / - + 90 * + COUNT ( * ) AS col0, - COUNT ( * ) + 40 AS col2
----
69
39

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

skipif mysql # not compatible
query I rowsort label-295
SELECT DISTINCT 48 + COUNT ( * ) AS col1
----
49

query I rowsort
SELECT ALL - COALESCE ( - 4, 3 ) + 87 + + + 88 + - 61
----
118

query II rowsort
SELECT - - 78 col2, + 25 * - 30 + + 77 + - ( - ( - 15 ) ) * 36 + + 4 AS col2
----
78
-1209

query I rowsort
SELECT DISTINCT - + 46 + 92 * 72
----
6578

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-299
SELECT - CAST( NULL AS SIGNED ) + + 38 + + 12 * + AVG ( DISTINCT 78 ) * + - 78 / + 59 + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-299
SELECT - CAST ( NULL AS INTEGER ) + + 38 + + 12 * + AVG ( DISTINCT 78 ) * + - 78 / + 59 + 90
----
NULL

query I rowsort
SELECT 24 - + 72
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT ALL + COALESCE ( + COUNT( * ), + 49 * 71 + + - 22 ) * 12 + 45
----
57

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL + COALESCE ( + COUNT ( * ), + 49 * 71 + + - 22 ) * 12 + 45
----
57

query I rowsort
SELECT 27 + - - 16 - + + 66 + + + 22 + - 63 + 24 * + - CASE 39 WHEN 1 + + - 15 + 34 THEN NULL WHEN 32 - - 79 THEN + 8 END * - 75 * - 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT - COUNT( * ) - + 25 * + SUM( - 8 )
----
199

skipif mysql # not compatible
query I rowsort label-303
SELECT - COUNT ( * ) - + 25 * + SUM ( - 8 )
----
199

query II rowsort
SELECT - 81 AS col2, 41
----
-81
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-305
SELECT 17 * + COALESCE ( + 90, 52, + 24 + + 5 * + COALESCE ( + 41, + - COUNT( * ) * + 16 * - + COUNT( * ), + 49 ) ) * - NULLIF ( + CAST( - CAST( 56 AS SIGNED ) AS SIGNED ), + COUNT( * ) ), + ( + 24 ) AS col2
----
85680
24

skipif mysql # not compatible
query II rowsort label-305
SELECT 17 * + COALESCE ( + 90, 52, + 24 + + 5 * + COALESCE ( + 41, + - COUNT ( * ) * + 16 * - + COUNT ( * ), + 49 ) ) * - NULLIF ( + CAST ( - CAST ( 56 AS INTEGER ) AS INTEGER ), + COUNT ( * ) ), + ( + 24 ) AS col2
----
85680
24

query I rowsort
SELECT 4 + + ( + 5 ) * - 92
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT ALL + 70 * - COUNT( * ) + - - 92 * - 71
----
-6602

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL + 70 * - COUNT ( * ) + - - 92 * - 71
----
-6602

onlyif mysql # DIV for integer division: 
query I rowsort label-308
SELECT - 60 * + + 63 + 4 DIV + 38 AS col2
----
-3780

skipif mysql # not compatible
query I rowsort label-308
SELECT - 60 * + + 63 + 4 / + 38 AS col2
----
-3780

query I rowsort
SELECT 18 * - CASE - ( - 33 ) WHEN + NULLIF ( - 24, + + 81 * + 3 ) THEN 96 ELSE 12 + + 78 + + + 43 * 56 * - 8 * - 22 END + + 33 AS col1
----
-7630131

query I rowsort
SELECT 44 + + ( + 78 )
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-311
SELECT ALL + COALESCE ( + COUNT( * ), - + 15 + ( - 87 ) + 71 * 61 + - MIN( ALL + + 21 ) + + 62 * 24 * 69 * - + 55 DIV + COUNT( * ) ) - - 87 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL + COALESCE ( + COUNT ( * ), - + 15 + ( - 87 ) + 71 * 61 + - MIN ( ALL + + 21 ) + + 62 * 24 * 69 * - + 55 / + COUNT ( * ) ) - - 87 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT DISTINCT 24 * - NULLIF ( + 96, + COUNT( * ) * - + COUNT( * ) * 9 )
----
-2304

skipif mysql # not compatible
query I rowsort label-312
SELECT DISTINCT 24 * - NULLIF ( + 96, + COUNT ( * ) * - + COUNT ( * ) * 9 )
----
-2304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-313
SELECT ALL - COUNT( + - 84 ) DIV - COALESCE ( + + ( - NULLIF ( + + 41, + + 72 * + 66 ) ), 42 )
----
0

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL - COUNT ( + - 84 ) / - COALESCE ( + + ( - NULLIF ( + + 41, + + 72 * + 66 ) ), 42 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-314
SELECT ALL - NULLIF ( - - 76, - - 3 ) DIV 12
----
-6

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL - NULLIF ( - - 76, - - 3 ) / 12
----
-6

query I rowsort
SELECT 31 * - 7
----
-217

query I rowsort
SELECT + 22 * 37 + 71 + + 12 AS col1
----
897

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT ALL - ( CASE - - MAX( - 46 ) WHEN - COUNT( DISTINCT + + 73 ) THEN + ( 43 ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-317
SELECT ALL - ( CASE - - MAX ( - 46 ) WHEN - COUNT ( DISTINCT + + 73 ) THEN + ( 43 ) ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT 55 * 8 * SUM( - 85 ) + - 53 * + COALESCE ( COUNT( * ), - 48 * - - 92 )
----
-37453

skipif mysql # not compatible
query I rowsort label-318
SELECT 55 * 8 * SUM ( - 85 ) + - 53 * + COALESCE ( COUNT ( * ), - 48 * - - 92 )
----
-37453

onlyif mysql # DIV for integer division: 
query I rowsort label-319
SELECT 50 DIV 42 DIV - - 90
----
0

skipif mysql # not compatible
query I rowsort label-319
SELECT 50 / 42 / - - 90
----
0

query I rowsort
SELECT 85 * + 98
----
8330

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

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT DISTINCT - NULLIF ( + 83, - 35 ) * - - 88 + NULLIF ( - 82, + - 99 * + COUNT( * ) * - 68 + MAX( ALL 32 ) ) AS col2
----
-7386

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT - NULLIF ( + 83, - 35 ) * - - 88 + NULLIF ( - 82, + - 99 * + COUNT ( * ) * - 68 + MAX ( ALL 32 ) ) AS col2
----
-7386

query I rowsort
SELECT ALL + 56 * + 69 AS col1
----
3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-324
SELECT ( + - COUNT( 19 ) ) * + 52 + 66 - + + CAST( NULL AS SIGNED ) + - + 92 * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-324
SELECT ( + - COUNT ( 19 ) ) * + 52 + 66 - + + CAST ( NULL AS INTEGER ) + - + 92 * + 29
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-325
SELECT + COALESCE ( - + 33, MAX( 68 ) + - 5 + - - 39 ) * 78, 16 * - 49 AS col2
----
-2574
-784

skipif mysql # not compatible
query II rowsort label-325
SELECT + COALESCE ( - + 33, MAX ( 68 ) + - 5 + - - 39 ) * 78, 16 * - 49 AS col2
----
-2574
-784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-326
SELECT + - CAST( + ( + + 36 ) AS SIGNED ) + - - 81
----
45

skipif mysql # not compatible
query I rowsort label-326
SELECT + - CAST ( + ( + + 36 ) AS INTEGER ) + - - 81
----
45

query I rowsort
SELECT ALL - 75 + - 77 col0
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-328
SELECT ALL + ( ( 79 ) ) + CASE - 48 WHEN COUNT( * ) * SUM( - 10 ) * + CAST( NULL AS DECIMAL ) THEN + CAST( MIN( - CAST( NULL AS SIGNED ) ) AS SIGNED ) ELSE NULL END * - 8 AS col1, 62 AS col2
----
NULL
62

skipif mysql # not compatible
query II rowsort label-328
SELECT ALL + ( ( 79 ) ) + CASE - 48 WHEN COUNT ( * ) * SUM ( - 10 ) * + CAST ( NULL AS REAL ) THEN + CAST ( MIN ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) ELSE NULL END * - 8 AS col1, 62 AS col2
----
NULL
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT ALL - ( + MIN( ALL + 80 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL - ( + MIN ( ALL + 80 ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT ALL NULLIF ( 60, COALESCE ( - 78, 81 / + 96 ) / COUNT( * ) + AVG ( - 13 ) - COUNT( * ) ) + - 19 + 16
----
57

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL NULLIF ( 60, COALESCE ( - 78, 81 / + 96 ) / COUNT ( * ) + AVG ( - 13 ) - COUNT ( * ) ) + - 19 + 16
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-332
SELECT + 20 DIV - - 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-332
SELECT + 20 / - - 34 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-333
SELECT ALL + COALESCE ( + ( 92 ), COALESCE ( - - SUM( DISTINCT + 99 ), + COUNT( * ) ) DIV 94 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL + COALESCE ( + ( 92 ), COALESCE ( - - SUM ( DISTINCT + 99 ), + COUNT ( * ) ) / 94 ) AS col0
----
92

query I rowsort
SELECT - - 79 + - 37 col0
----
42

query I rowsort
SELECT - + 4 + 32
----
28

query I rowsort
SELECT ALL + 98 + + 27 - - 52 * + + 29
----
1633

onlyif mysql # aggregate syntax: 
query II rowsort label-337
SELECT - + 87 * - 12 AS col0, COUNT( - + NULLIF ( - + 23, - + 19 ) ) AS col1
----
1044
1

skipif mysql # not compatible
query II rowsort label-337
SELECT - + 87 * - 12 AS col0, COUNT ( - + NULLIF ( - + 23, - + 19 ) ) AS col1
----
1044
1

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT ALL COUNT( * ) - + MAX( DISTINCT - 61 )
----
62

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL COUNT ( * ) - + MAX ( DISTINCT - 61 )
----
62

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

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

query I rowsort
SELECT ALL + 13 * + 42
----
546

query I rowsort
SELECT - 95 * - 71 AS col2
----
6745

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

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT COUNT ( * ) / 39
----
0

query II rowsort
SELECT ALL + 80 AS col1, + 33 * + 7 AS col1
----
80
231

query II rowsort
SELECT + 58 AS col0, - 32 + - - COALESCE ( - 45, + 27, + 16 - - 52 ) AS col2
----
58
-77

query I rowsort
SELECT + 42 - 12
----
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT ( + COALESCE ( - - COUNT( * ), 2 * + + 5 + - 24 ) )
----
1

skipif mysql # not compatible
query I rowsort label-347
SELECT ( + COALESCE ( - - COUNT ( * ), 2 * + + 5 + - 24 ) )
----
1

query I rowsort
SELECT + 35 * + 17 AS col0
----
595

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT - 41 * + 60 * - COUNT( * )
----
2460

skipif mysql # not compatible
query I rowsort label-349
SELECT - 41 * + 60 * - COUNT ( * )
----
2460

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT DISTINCT - 42 * - - SUM( ALL + + ( - 26 ) ) * 23 * 25 + + 21 AS col0
----
627921

skipif mysql # not compatible
query I rowsort label-350
SELECT DISTINCT - 42 * - - SUM ( ALL + + ( - 26 ) ) * 23 * 25 + + 21 AS col0
----
627921

query I rowsort
SELECT ALL + NULLIF ( 43, + CASE - 64 WHEN 1 THEN + 74 * - - 14 WHEN + 6 THEN - - 26 END )
----
43

query I rowsort
SELECT COALESCE ( 12, + 90 ) AS col2
----
12

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

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

query II rowsort
SELECT COALESCE ( - 36, - 73 ), - 86 * - + 33 col0
----
-36
2838

query II rowsort
SELECT NULLIF ( 71, - 20 ) AS col0, 22 col2
----
71
22

query I rowsort
SELECT - 69 * + + ( - - 41 ) * 51 AS col1
----
-144279

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-357
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 94
----
NULL
94

skipif mysql # not compatible
query II rowsort label-357
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 94
----
NULL
94

query I rowsort
SELECT + 62 - - 91 AS col2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT ALL 80 * 17 + + SUM( ALL 91 ) AS col2
----
1451

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL 80 * 17 + + SUM ( ALL 91 ) AS col2
----
1451

query I rowsort
SELECT ALL + + ( + + 59 ) * - + ( - 69 )
----
4071

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

skipif mysql # not compatible
query I rowsort label-361
SELECT - COUNT ( * ) / COUNT ( * ) + - - 16 * + - ( + 53 )
----
-849

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT ALL - MIN( ALL - + 74 ) * ( - - COUNT( * ) ) + 44
----
118

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL - MIN ( ALL - + 74 ) * ( - - COUNT ( * ) ) + 44
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-363
SELECT ALL 0 * - - 44 + - 97 + - - COUNT( * ) + + + 88 * + 3 * - + 15 DIV COUNT( * ) * COALESCE ( + - ( 29 ), 0 - - ( - 52 ) * + 21 )
----
114744

skipif mysql # not compatible
query I rowsort label-363
SELECT ALL 0 * - - 44 + - 97 + - - COUNT ( * ) + + + 88 * + 3 * - + 15 / COUNT ( * ) * COALESCE ( + - ( 29 ), 0 - - ( - 52 ) * + 21 )
----
114744

query I rowsort
SELECT DISTINCT + - 38 + - + 98 + + - 34 * - + 42 col1
----
1292

query I rowsort
SELECT - - 88 + - 7 AS col1
----
81

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

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

query I rowsort
SELECT - + 13 + 99
----
86

query I rowsort
SELECT + + 8 * 45
----
360

query II rowsort
SELECT DISTINCT + 82 col0, 75
----
82
75

query I rowsort
SELECT + 40 - 74
----
-34

query I rowsort
SELECT + + 64 * ( - - 97 ) + - 17
----
6191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-372
SELECT + CAST( - ( - COUNT( * ) ) AS SIGNED ) + - + CASE 79 WHEN - 10 - - 87 THEN NULL WHEN - + 74 THEN - 65 + - - CAST( + 53 AS SIGNED ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END - + CAST( NULL AS SIGNED ) / + + 92 + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-372
SELECT + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) + - + CASE 79 WHEN - 10 - - 87 THEN NULL WHEN - + 74 THEN - 65 + - - CAST ( + 53 AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END - + CAST ( NULL AS INTEGER ) / + + 92 + 15 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 93 * COALESCE ( - 83, 43 ) * - 65 col2
----
501735

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT DISTINCT - 25 DIV + 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-374
SELECT DISTINCT - 25 / + 70 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-375
SELECT ALL 48 * COUNT( * ) AS col2, - 64
----
48
-64

skipif mysql # not compatible
query II rowsort label-375
SELECT ALL 48 * COUNT ( * ) AS col2, - 64
----
48
-64

query I rowsort
SELECT + 42 + - + 36
----
6

query II rowsort
SELECT + 48 - + + 97 AS col0, ( - 26 )
----
-49
-26

query II rowsort
SELECT + 18 + + 92 * + COALESCE ( - - 31, - - 4 ), 35 + - - 0 * + 29 AS col1
----
2870
35

onlyif mysql # DIV for integer division: 
query I rowsort label-379
SELECT + 36 DIV - 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-379
SELECT + 36 / - 96 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-380
SELECT 92 DIV + NULLIF ( 72, + 10 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-380
SELECT 92 / + NULLIF ( 72, + 10 ) + + COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-381
SELECT + 12 + CASE 96 WHEN - 93 + - - COUNT( * ) THEN COALESCE ( + COUNT( * ), + - MAX( ALL - + 31 ) DIV + COUNT( * ) * 32 ) + - + 20 * + COUNT( * ) * + COUNT( * ) * + 2 WHEN 98 + - 56 THEN + 10 * - 47 + + 26 * - + 18 ELSE - + CAST( + 21 AS SIGNED ) END AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-381
SELECT + 12 + CASE 96 WHEN - 93 + - - COUNT ( * ) THEN COALESCE ( + COUNT ( * ), + - MAX ( ALL - + 31 ) / + COUNT ( * ) * 32 ) + - + 20 * + COUNT ( * ) * + COUNT ( * ) * + 2 WHEN 98 + - 56 THEN + 10 * - 47 + + 26 * - + 18 ELSE - + CAST ( + 21 AS INTEGER ) END AS col1
----
-9

query I rowsort
SELECT + 82 * + 9
----
738

query I rowsort
SELECT - ( 91 ) + 86 AS col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-384
SELECT ALL COALESCE ( 91, + + 80 ) DIV 24 - NULLIF ( - ( + - SUM( ALL - 76 ) ), - 22 + 21 ) + + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL COALESCE ( 91, + + 80 ) / 24 - NULLIF ( - ( + - SUM ( ALL - 76 ) ), - 22 + 21 ) + + COUNT ( * )
----
80

query I rowsort
SELECT 94 + - 95
----
-1

query II rowsort
SELECT ALL 40 * 16 AS col0, + 53
----
640
53

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT MIN( DISTINCT - + 25 ) * 31 AS col0
----
-775

skipif mysql # not compatible
query I rowsort label-387
SELECT MIN ( DISTINCT - + 25 ) * 31 AS col0
----
-775

onlyif mysql # DIV for integer division: 
query I rowsort label-388
SELECT 1 * - 85 * 23 DIV 28
----
-69

skipif mysql # not compatible
query I rowsort label-388
SELECT 1 * - 85 * 23 / 28
----
-69

query I rowsort
SELECT DISTINCT - 11 + + 93
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-390
SELECT ALL - 75 + CAST( + - 85 AS SIGNED ) - - 67 - COUNT( * ) + + - 25 + 21 * - 26 * - + 85 AS col0, + 65 - - - NULLIF ( 35, + 71 ) DIV - 69
----
46291
65

skipif mysql # not compatible
query II rowsort label-390
SELECT ALL - 75 + CAST ( + - 85 AS INTEGER ) - - 67 - COUNT ( * ) + + - 25 + 21 * - 26 * - + 85 AS col0, + 65 - - - NULLIF ( 35, + 71 ) / - 69
----
46291
65

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT ALL CASE - 75 WHEN + - 34 THEN NULL WHEN - - 56 THEN + 56 WHEN COUNT( * ) THEN - - 98 WHEN + 59 + - 34 / 52 * + - 42 * + - AVG ( + 26 ) * + 67 / 52 THEN NULL ELSE + + 47 END * 35 col1
----
1645

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL CASE - 75 WHEN + - 34 THEN NULL WHEN - - 56 THEN + 56 WHEN COUNT ( * ) THEN - - 98 WHEN + 59 + - 34 / 52 * + - 42 * + - AVG ( + 26 ) * + 67 / 52 THEN NULL ELSE + + 47 END * 35 col1
----
1645

query I rowsort
SELECT DISTINCT + ( + - 95 ) + 14 AS col1
----
-81

query I rowsort
SELECT DISTINCT + 42 + + 23
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT DISTINCT - COUNT( * ) * MAX( ALL - + 89 ) col0
----
89

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT - COUNT ( * ) * MAX ( ALL - + 89 ) col0
----
89

query I rowsort
SELECT ALL + + 86 + 7 col0
----
93

query I rowsort
SELECT + - CASE - 14 WHEN - AVG ( - 80 ) THEN - 15 * + 37 * + 57 * - 65 + - - 45 + 55 + - 81 WHEN + + 91 THEN - 54 ELSE 67 END AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT - 56 * - COUNT( * ) + - COUNT( * ) + 60
----
115

skipif mysql # not compatible
query I rowsort label-397
SELECT - 56 * - COUNT ( * ) + - COUNT ( * ) + 60
----
115

query I rowsort
SELECT - 72 + - 4 + - + 43 AS col0
----
-119

query I rowsort
SELECT 23 + + 12 * - 78 * - 37
----
34655

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-401
SELECT - 29 * - + 59, - 0 + - + MIN( ALL - 13 ) AS col0
----
1711
13

skipif mysql # not compatible
query II rowsort label-401
SELECT - 29 * - + 59, - 0 + - + MIN ( ALL - 13 ) AS col0
----
1711
13

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-403
SELECT ALL - 96 * - - COALESCE ( - CAST( + 86 AS SIGNED ), + 45, - - 0 ) AS col0
----
8256

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL - 96 * - - COALESCE ( - CAST ( + 86 AS INTEGER ), + 45, - - 0 ) AS col0
----
8256

query I rowsort
SELECT + 65 * 81
----
5265

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT ALL + 16 DIV - 65 col1
----
0

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL + 16 / - 65 col1
----
0

query II rowsort
SELECT ALL 1 AS col2, 25
----
1
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-407
SELECT 70 + - 35 + + 65 + - - 31 * - - 65 * + + NULLIF ( - 40, - + 80 + - CASE + 41 WHEN - + ( + 48 ) + + 20 * 27 + 8 THEN CAST( + 71 AS SIGNED ) ELSE NULL END )
----
-80500

skipif mysql # not compatible
query I rowsort label-407
SELECT 70 + - 35 + + 65 + - - 31 * - - 65 * + + NULLIF ( - 40, - + 80 + - CASE + 41 WHEN - + ( + 48 ) + + 20 * 27 + 8 THEN CAST ( + 71 AS INTEGER ) ELSE NULL END )
----
-80500

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT DISTINCT 24 * 14 DIV + 73 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT 24 * 14 / + 73 AS col1
----
4

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-410
SELECT SUM( ALL - 58 ) * - + COUNT( * ) + + CASE 63 WHEN + 88 * + + 72 + NULLIF ( - 3, AVG ( ALL - 77 ) + COUNT( CAST( NULL AS SIGNED ) ) ) THEN NULL WHEN + COUNT( * ) THEN - 31 * + + 30 + - COUNT( * ) WHEN + + 78 THEN + 68 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-410
SELECT SUM ( ALL - 58 ) * - + COUNT ( * ) + + CASE 63 WHEN + 88 * + + 72 + NULLIF ( - 3, AVG ( ALL - 77 ) + COUNT ( CAST ( NULL AS INTEGER ) ) ) THEN NULL WHEN + COUNT ( * ) THEN - 31 * + + 30 + - COUNT ( * ) WHEN + + 78 THEN + 68 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-411
SELECT ALL + 24 + - 64 * - CAST( ( AVG ( ALL + 80 ) ) AS SIGNED ) * + 69 + + 79 + + 82 + 19
----
353484

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL + 24 + - 64 * - CAST ( ( AVG ( ALL + 80 ) ) AS INTEGER ) * + 69 + + 79 + + 82 + 19
----
353484

query II rowsort
SELECT 67 col1, - 75
----
67
-75

query I rowsort
SELECT ALL 52 + 70 AS col1
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-414
SELECT DISTINCT - 33 AS col0, COUNT( * ) * 80 + CAST( NULL AS SIGNED )
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-414
SELECT DISTINCT - 33 AS col0, COUNT ( * ) * 80 + CAST ( NULL AS INTEGER )
----
-33
NULL

query I rowsort
SELECT ALL 16 + - 82
----
-66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-416
SELECT ALL CASE - NULLIF ( + - 5, + 31 ) WHEN NULLIF ( - + 38, + 19 - 71 * + 89 ) + - CAST( NULL AS SIGNED ) THEN + + 84 ELSE + 92 * + 61 + - 28 + + 98 DIV 87 END + 33 + 80 + + + COALESCE ( - + 19, + 24, 34 ) AS col2
----
5679

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL CASE - NULLIF ( + - 5, + 31 ) WHEN NULLIF ( - + 38, + 19 - 71 * + 89 ) + - CAST ( NULL AS INTEGER ) THEN + + 84 ELSE + 92 * + 61 + - 28 + + 98 / 87 END + 33 + 80 + + + COALESCE ( - + 19, + 24, 34 ) AS col2
----
5679

onlyif mysql # aggregate syntax: 
query II rowsort label-417
SELECT + 33 * 16 - + - 12 AS col0, - 38 * - 1 + + + COUNT( ALL + + 30 ) AS col1
----
540
39

skipif mysql # not compatible
query II rowsort label-417
SELECT + 33 * 16 - + - 12 AS col0, - 38 * - 1 + + + COUNT ( ALL + + 30 ) AS col1
----
540
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-418
SELECT + + CAST( NULLIF ( 26, COUNT( * ) + - + 97 / - 74 + - 31 * 23 ) AS SIGNED ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-418
SELECT + + CAST ( NULLIF ( 26, COUNT ( * ) + - + 97 / - 74 + - 31 * 23 ) AS INTEGER ) AS col0
----
26

query I rowsort
SELECT DISTINCT - 1 + - 6 AS col2
----
-7

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

query II rowsort
SELECT + + 55 AS col0, + 81
----
55
81

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT + 77 + - 97 * - MAX( 42 ) AS col2
----
4151

skipif mysql # not compatible
query I rowsort label-422
SELECT + 77 + - 97 * - MAX ( 42 ) AS col2
----
4151

query I rowsort
SELECT 82 * - + 0 - - 9
----
9

query II rowsort
SELECT 38, 89 AS col0
----
38
89

query I rowsort
SELECT DISTINCT - ( 78 ) AS col1
----
-78

query II rowsort
SELECT - 27 + 2 * + 98 AS col1, + 7 - + + 38 - + 29 * - 10
----
169
259

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT ALL + 25 * 58 * - 51 * - COUNT( * )
----
73950

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL + 25 * 58 * - 51 * - COUNT ( * )
----
73950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-429
SELECT ALL + 67 - + + 76 + + + 2 / - COUNT( * ) + + - ( - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL + 67 - + + 76 + + + 2 / - COUNT ( * ) + + - ( - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT - COUNT( * ) + - 98 * + - 58 AS col2
----
5683

skipif mysql # not compatible
query I rowsort label-430
SELECT - COUNT ( * ) + - 98 * + - 58 AS col2
----
5683

query I rowsort
SELECT 34 + + 69 AS col2
----
103

query I rowsort
SELECT 50 + - - 20 AS col2
----
70

query I rowsort
SELECT ALL + 28 + + - 76 AS col0
----
-48

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

query I rowsort
SELECT ALL - 92 + - 5 col2
----
-97

query I rowsort
SELECT ALL 77 + + 9 * + 62
----
635

onlyif mysql # aggregate syntax: 
query II rowsort label-437
SELECT - 15 AS col0, 33 * 99 * + COUNT( * )
----
-15
3267

skipif mysql # not compatible
query II rowsort label-437
SELECT - 15 AS col0, 33 * 99 * + COUNT ( * )
----
-15
3267

query I rowsort
SELECT 79 + + - 78
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT MIN( ALL 13 ) - - - 80 col1
----
-67

skipif mysql # not compatible
query I rowsort label-439
SELECT MIN ( ALL 13 ) - - - 80 col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT ALL + 20 * - 63 * - COUNT( * )
----
1260

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL + 20 * - 63 * - COUNT ( * )
----
1260

query I rowsort
SELECT ALL - 65 + 4 + NULLIF ( - 7, 23 * + 68 + + + 95 + + - 85 * + 88 ) + 43 * - + 66 - + - 28 + + 32
----
-2846

query I rowsort
SELECT - 29 + + 32
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-443
SELECT - 26 AS col1, - 84 + 57 DIV + - 1 AS col0
----
-26
-141

skipif mysql # not compatible
query II rowsort label-443
SELECT - 26 AS col1, - 84 + 57 / + - 1 AS col0
----
-26
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT + 11 + - + CASE - - 34 WHEN + + 26 THEN NULL WHEN + 75 THEN + 37 * + 5 + + - ( 15 ) * CASE - + MAX( ALL + - 27 ) WHEN - + 45 + + 90 THEN - COUNT( * ) END ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-444
SELECT + 11 + - + CASE - - 34 WHEN + + 26 THEN NULL WHEN + 75 THEN + 37 * + 5 + + - ( 15 ) * CASE - + MAX ( ALL + - 27 ) WHEN - + 45 + + 90 THEN - COUNT ( * ) END ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - - 25, - 71 ) AS col0
----
25

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-448
SELECT ALL + COUNT( * ) * - + CASE - + 77 WHEN + 22 THEN + 40 ELSE + 80 END + - 14 * 22 * COALESCE ( + - COUNT( * ), - 41 ) DIV 13 * + CAST( 12 AS SIGNED ) - - + NULLIF ( 86, - 96 * 12 + + + COUNT( - 20 ) )
----
282

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL + COUNT ( * ) * - + CASE - + 77 WHEN + 22 THEN + 40 ELSE + 80 END + - 14 * 22 * COALESCE ( + - COUNT ( * ), - 41 ) / 13 * + CAST ( 12 AS INTEGER ) - - + NULLIF ( 86, - 96 * 12 + + + COUNT ( - 20 ) )
----
282

onlyif mysql # DIV for integer division: 
query I rowsort label-449
SELECT 66 DIV + 77 + - 63 * 41 + + 97
----
-2486

skipif mysql # not compatible
query I rowsort label-449
SELECT 66 / + 77 + - 63 * 41 + + 97
----
-2486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-450
SELECT ALL COALESCE ( + 25, - CAST( 42 AS SIGNED ) + - 42 ) * + + COUNT( * ) - + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL COALESCE ( + 25, - CAST ( 42 AS INTEGER ) + - 42 ) * + + COUNT ( * ) - + COUNT ( * )
----
24

query I rowsort
SELECT + 18 * - + 42 AS col2
----
-756

query I rowsort
SELECT - 27 * - + 9 + - - 7
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT + + COUNT( * ) * - ( - 7 ) - - + 81 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-453
SELECT + + COUNT ( * ) * - ( - 7 ) - - + 81 AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-454
SELECT + + 34 + + 96 + + 82 * + + NULLIF ( + 65, + COUNT( * ) * 54 * AVG ( 8 ) * - 46 * - ( 88 ) * - + CASE + 71 WHEN - ( 27 ) * + - 56 + - - 83 THEN + - 94 * - - 46 WHEN COUNT( * ) + - 26 THEN - 54 ELSE NULL END ) * - 5 col1, + 11 AS col1
----
-26520
11

skipif mysql # not compatible
query II rowsort label-454
SELECT + + 34 + + 96 + + 82 * + + NULLIF ( + 65, + COUNT ( * ) * 54 * AVG ( 8 ) * - 46 * - ( 88 ) * - + CASE + 71 WHEN - ( 27 ) * + - 56 + - - 83 THEN + - 94 * - - 46 WHEN COUNT ( * ) + - 26 THEN - 54 ELSE NULL END ) * - 5 col1, + 11 AS col1
----
-26520
11

query I rowsort
SELECT + 20 + + 34 + + 57
----
111

query I rowsort
SELECT ALL + COALESCE ( + 62, + 62 - - + 28 )
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-457
SELECT ALL + - 3 AS col1, - NULLIF ( + CASE - + COUNT( * ) WHEN + + 90 THEN + COUNT( * ) WHEN + 71 * 33 + 28 / + 58 * + 70 THEN NULL WHEN + 66 + ( + 6 ) THEN NULL END, + 98 - - - 79 )
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-457
SELECT ALL + - 3 AS col1, - NULLIF ( + CASE - + COUNT ( * ) WHEN + + 90 THEN + COUNT ( * ) WHEN + 71 * 33 + 28 / + 58 * + 70 THEN NULL WHEN + 66 + ( + 6 ) THEN NULL END, + 98 - - - 79 )
----
-3
NULL

query I rowsort
SELECT + 78 - + 88 AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-459
SELECT + 47 / CASE + - 42 WHEN + + 93 THEN 92 WHEN - - COUNT( 57 ) THEN NULL WHEN 11 + + + CAST( - + COUNT( 72 ) AS SIGNED ) + + 54 * - 30 THEN + 68 ELSE NULL END / - 59 / + COALESCE ( - 23, + 86, 16 + - 29 ) * - - AVG ( ALL + + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-459
SELECT + 47 / CASE + - 42 WHEN + + 93 THEN 92 WHEN - - COUNT ( 57 ) THEN NULL WHEN 11 + + + CAST ( - + COUNT ( 72 ) AS INTEGER ) + + 54 * - 30 THEN + 68 ELSE NULL END / - 59 / + COALESCE ( - 23, + 86, 16 + - 29 ) * - - AVG ( ALL + + 7 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-460
SELECT ALL 17 DIV + 58 * - 14 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-460
SELECT ALL 17 / + 58 * - 14 AS col1
----
0

query I rowsort
SELECT + 87 * - 23
----
-2001

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-462
SELECT - 62 AS col1, CAST( NULL AS SIGNED ) + + ( 96 ) AS col2
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-462
SELECT - 62 AS col1, CAST ( NULL AS INTEGER ) + + ( 96 ) AS col2
----
-62
NULL

query I rowsort
SELECT - + 19 + 20 - - - 79 col1
----
-78

query I rowsort
SELECT ALL - 13 * - 66 AS col1
----
858

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT ALL - 96 + + 7 + - 53 + - 57 + + + ( 46 ) * - - COUNT( DISTINCT - + 80 ) + 22 AS col2
----
-131

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL - 96 + + 7 + - 53 + - 57 + + + ( 46 ) * - - COUNT ( DISTINCT - + 80 ) + 22 AS col2
----
-131

query II rowsort
SELECT + 89 * + 39, + 10 AS col2
----
3471
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-469
SELECT ALL + COUNT( * ) + - 44 + 88 DIV 52 * + + 7 * 95 AS col0
----
622

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL + COUNT ( * ) + - 44 + 88 / 52 * + + 7 * 95 AS col0
----
622

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-470
SELECT ALL NULLIF ( - + 72, - - CAST( - 37 AS DECIMAL ) ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL NULLIF ( - + 72, - - CAST ( - 37 AS REAL ) ) AS col1
----
-72

query I rowsort
SELECT ALL 47 + - 81
----
-34

query I rowsort
SELECT + 53 * - 81 AS col0
----
-4293

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-474
SELECT ALL MAX( 62 ) AS col0, 37 * + 90
----
62
3330

skipif mysql # not compatible
query II rowsort label-474
SELECT ALL MAX ( 62 ) AS col0, 37 * + 90
----
62
3330

onlyif mysql # DIV for integer division: 
query I rowsort label-475
SELECT DISTINCT - 79 + + - 21 DIV ( 48 )
----
-79

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT - 79 + + - 21 / ( 48 )
----
-79

query I rowsort
SELECT - 11 + - + 10 * - + 90 * - + 67 col1
----
-60311

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-477
SELECT ALL - 61 + + 17 + + COUNT( * ) DIV - - 98 * + COALESCE ( + 38, - 39, + ( - 35 ) * ( + + 51 ) ) DIV - COUNT( * ) * 22 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL - 61 + + 17 + + COUNT ( * ) / - - 98 * + COALESCE ( + 38, - 39, + ( - 35 ) * ( + + 51 ) ) / - COUNT ( * ) * 22 AS col2
----
-44

query II rowsort
SELECT DISTINCT - 52 * 26 col2, 94 * 46
----
-1352
4324

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-479
SELECT DISTINCT 46 + - 91 AS col1, - COUNT( * ) DIV + 34 AS col1
----
-45
0

skipif mysql # not compatible
query II rowsort label-479
SELECT DISTINCT 46 + - 91 AS col1, - COUNT ( * ) / + 34 AS col1
----
-45
0

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

query I rowsort
SELECT DISTINCT CASE 50 WHEN - 65 THEN 41 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-482
SELECT ALL + MIN( ALL + + CAST( NULL AS SIGNED ) ) * - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL + MIN ( ALL + + CAST ( NULL AS INTEGER ) ) * - 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-483
SELECT MAX( DISTINCT 74 ) DIV - + COUNT( * ) + + MAX( 7 )
----
-67

skipif mysql # not compatible
query I rowsort label-483
SELECT MAX ( DISTINCT 74 ) / - + COUNT ( * ) + + MAX ( 7 )
----
-67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT - 46 + + MAX( 45 ) + + - SUM( DISTINCT + 50 ) * + 7 * - 48 * - - 65 * + + 35
----
38219999

skipif mysql # not compatible
query I rowsort label-485
SELECT - 46 + + MAX ( 45 ) + + - SUM ( DISTINCT + 50 ) * + 7 * - 48 * - - 65 * + + 35
----
38219999

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-486
SELECT ALL - + COUNT( * ) DIV - 54 - - 72 - 87
----
-15

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL - + COUNT ( * ) / - 54 - - 72 - 87
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-487
SELECT - ( + - 37 ) * + 87 + - COUNT( * ) DIV + 17 + - 35 * + - 48 - + + NULLIF ( 66, CAST( - 24 AS SIGNED ) - 39 ) AS col0
----
4833

skipif mysql # not compatible
query I rowsort label-487
SELECT - ( + - 37 ) * + 87 + - COUNT ( * ) / + 17 + - 35 * + - 48 - + + NULLIF ( 66, CAST ( - 24 AS INTEGER ) - 39 ) AS col0
----
4833

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT DISTINCT + COALESCE ( + 30, + 9, + COUNT( * ) )
----
30

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT + COALESCE ( + 30, + 9, + COUNT ( * ) )
----
30

query I rowsort
SELECT - + 31 + + ( - 25 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT ALL 48 * 91 * MAX( + 2 ) * + + 88 + + COUNT( * ) col2
----
768769

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL 48 * 91 * MAX ( + 2 ) * + + 88 + + COUNT ( * ) col2
----
768769

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT + 18 * + COUNT( * ) - + 92
----
-74

skipif mysql # not compatible
query I rowsort label-491
SELECT + 18 * + COUNT ( * ) - + 92
----
-74

query I rowsort
SELECT - - 3 * + - ( + 33 ) * + 15 col2
----
-1485

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-494
SELECT 64 * - MAX( + 95 ) - + 64 - - 32 + 82 * 28, 17 AS col1, - 30 DIV + 54 * + ( - ( - + 87 ) ) AS col2
----
-3816
17
0

skipif mysql # not compatible
query III rowsort label-494
SELECT 64 * - MAX ( + 95 ) - + 64 - - 32 + 82 * 28, 17 AS col1, - 30 / + 54 * + ( - ( - + 87 ) ) AS col2
----
-3816
17
0

onlyif mysql # aggregate syntax: 
query II rowsort label-495
SELECT ALL - 59 * - NULLIF ( + COUNT( * ), 27 ) + - NULLIF ( - ( 11 ), - 10 ), + 78 AS col1
----
70
78

skipif mysql # not compatible
query II rowsort label-495
SELECT ALL - 59 * - NULLIF ( + COUNT ( * ), 27 ) + - NULLIF ( - ( 11 ), - 10 ), + 78 AS col1
----
70
78

query I rowsort
SELECT ALL + NULLIF ( + 73, - 97 ) AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-497
SELECT DISTINCT + - NULLIF ( + + CASE - - 63 WHEN - CAST( + 18 AS SIGNED ) THEN SUM( - 83 ) + - 71 - 70 WHEN + 72 + CAST( NULL AS SIGNED ) THEN NULL END, + 46 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-497
SELECT DISTINCT + - NULLIF ( + + CASE - - 63 WHEN - CAST ( + 18 AS INTEGER ) THEN SUM ( - 83 ) + - 71 - 70 WHEN + 72 + CAST ( NULL AS INTEGER ) THEN NULL END, + 46 ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( - NULLIF ( - 26, + 11 + - 94 * - + NULLIF ( - 83, - 23 ) ) ) * - 60 + + 9 AS col0
----
1569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-499
SELECT ALL COALESCE ( + 1, - - 55 * COUNT( DISTINCT + 72 ), + 14 ) * - COUNT( + CAST( NULL AS SIGNED ) ) + + ( NULLIF ( - COUNT( * ), ( 80 ) * + 94 + - + 60 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL COALESCE ( + 1, - - 55 * COUNT ( DISTINCT + 72 ), + 14 ) * - COUNT ( + CAST ( NULL AS INTEGER ) ) + + ( NULLIF ( - COUNT ( * ), ( 80 ) * + 94 + - + 60 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-500
SELECT DISTINCT 79 * - + 28 + - NULLIF ( + 21, 17 * + 19 * + 17 + + + 94 * - + COUNT( * ) DIV + - MIN( DISTINCT - 18 ) ) * + 4 + + 68 + 44 AS col0, - 66 DIV + 41 AS col1
----
-2184
-1

skipif mysql # not compatible
query II rowsort label-500
SELECT DISTINCT 79 * - + 28 + - NULLIF ( + 21, 17 * + 19 * + 17 + + + 94 * - + COUNT ( * ) / + - MIN ( DISTINCT - 18 ) ) * + 4 + + 68 + 44 AS col0, - 66 / + 41 AS col1
----
-2184
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-501
SELECT + ( 89 ) + + 84 col0, 75 DIV 75
----
173
1

skipif mysql # not compatible
query II rowsort label-501
SELECT + ( 89 ) + + 84 col0, 75 / 75
----
173
1

query I rowsort
SELECT ALL 36 * 60 AS col2
----
2160

query I rowsort
SELECT ALL 48 + + 84
----
132

query I rowsort
SELECT 50 + + 41 col1
----
91

query I rowsort
SELECT 59 + - 26
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-506
SELECT ALL 41 + ( + 50 ) + - 36 * - 85 - 47 DIV + 44 + 76 DIV + - 73 + + 27 + - 40 AS col2
----
3136

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL 41 + ( + 50 ) + - 36 * - 85 - 47 / + 44 + 76 / + - 73 + + 27 + - 40 AS col2
----
3136

query I rowsort
SELECT ALL 94 * - 44 * 94 AS col1
----
-388784

query I rowsort
SELECT ALL 81 - + 97
----
-16

query I rowsort
SELECT DISTINCT 40 * - + 97
----
-3880

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT COUNT( * ) + NULLIF ( - 46, 99 + 33 ) - - - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-510
SELECT COUNT ( * ) + NULLIF ( - 46, 99 + 33 ) - - - COUNT ( * )
----
-46

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

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

query I rowsort
SELECT ( - 20 ) + - + ( 74 )
----
-94

query I rowsort
SELECT 29 + - + 56 AS col0
----
-27

query II rowsort
SELECT ALL 27 AS col0, 82 * - 23
----
27
-1886

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT MIN( 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-515
SELECT MIN ( 21 ) AS col0
----
21

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

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

query I rowsort
SELECT - 66 + 24
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-518
SELECT ALL 36 DIV + MIN( + - 17 )
----
-2

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL 36 / + MIN ( + - 17 )
----
-2

query I rowsort
SELECT - 56 * 4 + + - 99 col1
----
-323

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-520
SELECT - + COUNT( * ) DIV - 11 + - 28 + 79 AS col2, - 43
----
51
-43

skipif mysql # not compatible
query II rowsort label-520
SELECT - + COUNT ( * ) / - 11 + - 28 + 79 AS col2, - 43
----
51
-43

query I rowsort
SELECT ALL - + NULLIF ( + 46, 63 * - - 40 + - 73 ) AS col0
----
-46

query I rowsort
SELECT ALL + + 35 * - 46
----
-1610

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT SUM( DISTINCT 59 ) * + + 60 - - - ( - 28 ) AS col0
----
3568

skipif mysql # not compatible
query I rowsort label-523
SELECT SUM ( DISTINCT 59 ) * + + 60 - - - ( - 28 ) AS col0
----
3568

query I rowsort
SELECT + 68 * 95 * + 89 + 77 * 65 AS col0
----
579945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-525
SELECT ALL - + CASE WHEN NULL > + 28 THEN + - CAST( - + 82 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL - + CASE WHEN NULL > + 28 THEN + - CAST ( - + 82 AS INTEGER ) END
----
NULL

query II rowsort
SELECT 19 * - + 9 + + 14, + 43 * 50 AS col0
----
-157
2150

onlyif mysql # DIV for integer division: 
query I rowsort label-527
SELECT ALL - - 47 + 85 DIV + 42
----
49

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL - - 47 + 85 / + 42
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-528
SELECT ALL + + 84 + + 97 + CASE + COUNT( * ) WHEN COUNT( * ) THEN - NULLIF ( CAST( CAST( COALESCE ( - - 89, CASE + - 94 WHEN COUNT( * ) * + 25 THEN + - CAST( + - 32 AS DECIMAL ) WHEN - 85 THEN + COUNT( ALL - + ( ( - 32 ) ) ) * 29 - + - 30 + COALESCE ( - 85, - 74 ) END * + + COUNT( * ) + + - 19 ) AS SIGNED ) AS SIGNED ), + + 92 ) ELSE NULL END AS col0
----
92

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL + + 84 + + 97 + CASE + COUNT ( * ) WHEN COUNT ( * ) THEN - NULLIF ( CAST ( CAST ( COALESCE ( - - 89, CASE + - 94 WHEN COUNT ( * ) * + 25 THEN + - CAST ( + - 32 AS REAL ) WHEN - 85 THEN + COUNT ( ALL - + ( ( - 32 ) ) ) * 29 - + - 30 + COALESCE ( - 85, - 74 ) END * + + COUNT ( * ) + + - 19 ) AS INTEGER ) AS INTEGER ), + + 92 ) ELSE NULL END AS col0
----
92

query I rowsort
SELECT + 5 + - 63 - - - 15
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-530
SELECT ALL - 84 AS col0, COUNT( * ) AS col1
----
-84
1

skipif mysql # not compatible
query II rowsort label-530
SELECT ALL - 84 AS col0, COUNT ( * ) AS col1
----
-84
1

query I rowsort
SELECT CASE + 3 WHEN 86 + + 41 THEN NULL WHEN + 13 * + 29 THEN + 71 ELSE 8 END + 14 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT ALL - 96 + COUNT( 73 ) * COUNT( * ) * - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-532
SELECT ALL - 96 + COUNT ( 73 ) * COUNT ( * ) * - COUNT ( * )
----
-97

query I rowsort
SELECT DISTINCT 95 * - 37
----
-3515

query I rowsort
SELECT DISTINCT + 79 + - + 4 AS col2
----
75

query I rowsort
SELECT 53 - + + 39
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT + COUNT( * ) * 67 * 28 + 90 AS col0
----
1966

skipif mysql # not compatible
query I rowsort label-536
SELECT + COUNT ( * ) * 67 * 28 + 90 AS col0
----
1966

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

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

query I rowsort
SELECT 78 * - ( 96 ) col0
----
-7488

query I rowsort
SELECT ALL + 61 - 48 AS col0
----
13

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-541
SELECT ALL NULLIF ( - COUNT( * ), - + COUNT( * ) * + MIN( ALL - 26 ) ) DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL NULLIF ( - COUNT ( * ), - + COUNT ( * ) * + MIN ( ALL - 26 ) ) / - 90
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT CASE + CASE + 1 WHEN + 55 + - 43 THEN - CASE - 84 WHEN + 8 - + 72 THEN 95 * - + 98 END + 11 * + + 65 + 67 / - COUNT( * ) WHEN 17 * + 51 THEN SUM( ALL 86 ) + 11 WHEN CASE + 16 WHEN 61 - 92 * + COUNT( * ) * - - 36 THEN NULL ELSE - MIN( + + 14 ) END THEN NULL ELSE 3 / 11 + COUNT( * ) END WHEN + 47 THEN NULL ELSE + + 32 END * - 80 + + - 76
----
-2636

skipif mysql # not compatible
query I rowsort label-543
SELECT CASE + CASE + 1 WHEN + 55 + - 43 THEN - CASE - 84 WHEN + 8 - + 72 THEN 95 * - + 98 END + 11 * + + 65 + 67 / - COUNT ( * ) WHEN 17 * + 51 THEN SUM ( ALL 86 ) + 11 WHEN CASE + 16 WHEN 61 - 92 * + COUNT ( * ) * - - 36 THEN NULL ELSE - MIN ( + + 14 ) END THEN NULL ELSE 3 / 11 + COUNT ( * ) END WHEN + 47 THEN NULL ELSE + + 32 END * - 80 + + - 76
----
-2636

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-545
SELECT ALL COALESCE ( - - 25, COUNT( * ) * + COUNT( * ) + + 72 - 50 + - CASE - 78 WHEN + 38 THEN + 63 END * + 39 * - 95 DIV - SUM( - COALESCE ( - + 14, + 11 + - - 54 * 88 + - 9 + 58, + CAST( NULL AS SIGNED ) DIV 90 ) ) + 2 ) * + 70 + - COUNT( * ) * COALESCE ( - ( - + 66 ), + COALESCE ( + 9, - - 92 ) ) AS col1
----
1684

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL COALESCE ( - - 25, COUNT ( * ) * + COUNT ( * ) + + 72 - 50 + - CASE - 78 WHEN + 38 THEN + 63 END * + 39 * - 95 / - SUM ( - COALESCE ( - + 14, + 11 + - - 54 * 88 + - 9 + 58, + CAST ( NULL AS INTEGER ) / 90 ) ) + 2 ) * + 70 + - COUNT ( * ) * COALESCE ( - ( - + 66 ), + COALESCE ( + 9, - - 92 ) ) AS col1
----
1684

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT - COUNT( * ) * - 78 * - 80
----
-6240

skipif mysql # not compatible
query I rowsort label-546
SELECT - COUNT ( * ) * - 78 * - 80
----
-6240

query I rowsort
SELECT DISTINCT + 2 * + 93 AS col2
----
186

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

skipif mysql # not compatible
query I rowsort label-548
SELECT - - MIN ( + 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT ALL 25 * - - COUNT( * ) - + 83
----
-58

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL 25 * - - COUNT ( * ) - + 83
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-550
SELECT DISTINCT + COUNT( * ) + ( + 88 ) + - - COUNT( * ) DIV COUNT( * ) * 10 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-550
SELECT DISTINCT + COUNT ( * ) + ( + 88 ) + - - COUNT ( * ) / COUNT ( * ) * 10 AS col0
----
99

query I rowsort
SELECT ALL - 83 + + - 84 AS col1
----
-167

query I rowsort
SELECT 7 * - - 24 AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT + MAX( - - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-553
SELECT + MAX ( - - 0 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-554
SELECT - 3 DIV - 99 * + 11 + - + 30, 5 * 25 AS col1
----
-30
125

skipif mysql # not compatible
query II rowsort label-554
SELECT - 3 / - 99 * + 11 + - + 30, 5 * 25 AS col1
----
-30
125

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT ALL 7 * - 84 + + 19 * 17 + - + ( MIN( ALL + 47 ) )
----
-312

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL 7 * - 84 + + 19 * 17 + - + ( MIN ( ALL + 47 ) )
----
-312

onlyif mysql # DIV for integer division: 
query I rowsort label-556
SELECT DISTINCT 54 DIV + ( - + 74 )
----
0

skipif mysql # not compatible
query I rowsort label-556
SELECT DISTINCT 54 / + ( - + 74 )
----
0

query I rowsort
SELECT ALL + 6 * - 90 + 8 AS col0
----
-532

query I rowsort
SELECT ALL + 70 * 47 * + 81 + - 36
----
266454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-559
SELECT + NULLIF ( - + 15, - 66 / - SUM( + ( - - CAST( NULL AS SIGNED ) ) ) ) + 87
----
72

skipif mysql # not compatible
query I rowsort label-559
SELECT + NULLIF ( - + 15, - 66 / - SUM ( + ( - - CAST ( NULL AS INTEGER ) ) ) ) + 87
----
72

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

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

query I rowsort
SELECT ALL + ( + + 35 ) AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-562
SELECT + CASE AVG ( 19 ) WHEN - 54 - + 19 / 84 + + CAST( + - 97 AS SIGNED ) THEN 30 + - 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-562
SELECT + CASE AVG ( 19 ) WHEN - 54 - + 19 / 84 + + CAST ( + - 97 AS INTEGER ) THEN 30 + - 58 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT DISTINCT + 48 - 15 + - ( + COUNT( * ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT + 48 - 15 + - ( + COUNT ( * ) ) AS col1
----
32

query I rowsort
SELECT DISTINCT + ( - ( + 86 ) ) - - + 35
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT DISTINCT MIN( - 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT MIN ( - 32 ) AS col0
----
-32

query I rowsort
SELECT - 29 * + - 24
----
696

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

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

query I rowsort
SELECT - 46 - - 9
----
-37

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

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

query I rowsort
SELECT ALL COALESCE ( 61, ( + + 46 ) )
----
61

query I rowsort
SELECT ALL + ( + 52 ) * - 76
----
-3952

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT - 93 + + COALESCE ( + 82, - 90 - 20 DIV + 79, 72 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-572
SELECT - 93 + + COALESCE ( + 82, - 90 - 20 / + 79, 72 ) AS col1
----
-11

query I rowsort
SELECT ALL + 3 * + - 15
----
-45

query I rowsort
SELECT - 10 + - 74 * 79 AS col1
----
-5856

query I rowsort
SELECT - 86 + - + 54
----
-140

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

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

query I rowsort
SELECT + + 18 + + + ( + 76 ) AS col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-578
SELECT ALL + + 80 + + 84 - - 51 + - 48 + 64 * + CAST( NULL AS SIGNED ) * 14 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL + + 80 + + 84 - - 51 + - 48 + 64 * + CAST ( NULL AS INTEGER ) * 14 col1
----
NULL

query II rowsort
SELECT - 15 * + 29 - + - 37 AS col2, 88
----
-398
88

query I rowsort
SELECT - 28 * + - 34 * - 0 + + + 39
----
39

query I rowsort
SELECT DISTINCT 72 * - - 56 * - 37
----
-149184

onlyif mysql # DIV for integer division: 
query I rowsort label-582
SELECT + 42 DIV - + ( + 21 ) + + 15 col0
----
13

skipif mysql # not compatible
query I rowsort label-582
SELECT + 42 / - + ( + 21 ) + + 15 col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT + COUNT( * ) + 96 col2
----
97

skipif mysql # not compatible
query I rowsort label-583
SELECT + COUNT ( * ) + 96 col2
----
97

query II rowsort
SELECT 61 AS col1, 84
----
61
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-585
SELECT ALL + 45 DIV + 45 + + COALESCE ( - - 89, SUM( + + 35 ) ) DIV + 5 + 75 * 19 + - 31 DIV + 66 * + - 37 AS col2
----
1443

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL + 45 / + 45 + + COALESCE ( - - 89, SUM ( + + 35 ) ) / + 5 + 75 * 19 + - 31 / + 66 * + - 37 AS col2
----
1443

query II rowsort
SELECT ALL - 80 * + 4 * + 35, - 67 AS col1
----
-11200
-67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-588
SELECT DISTINCT + + CAST( NULL AS SIGNED ), 72 AS col0
----
NULL
72

skipif mysql # not compatible
query II rowsort label-588
SELECT DISTINCT + + CAST ( NULL AS INTEGER ), 72 AS col0
----
NULL
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-589
SELECT DISTINCT - ( + 75 ) / + - 77 + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT - ( + 75 ) / + - 77 + + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 40 + + + 88
----
128

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

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

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

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

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

query I rowsort
SELECT + ( + + 15 ) * 76 * - 34 * + - NULLIF ( + - ( + 16 ), + ( + 66 ) )
----
-620160

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-597
SELECT + 59 DIV + 10 AS col2, 14 + ( - - COUNT( * ) )
----
5
15

skipif mysql # not compatible
query II rowsort label-597
SELECT + 59 / + 10 AS col2, 14 + ( - - COUNT ( * ) )
----
5
15

onlyif mysql # DIV for integer division: 
query I rowsort label-598
SELECT ALL 82 DIV + 80 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-598
SELECT ALL 82 / + 80 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT ALL + MIN( + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL + MIN ( + 2 )
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-600
SELECT DISTINCT + 46 AS col2, NULLIF ( + 67, - 48 ) * - + NULLIF ( - + 71, CAST( NULL AS DECIMAL ) ) AS col1
----
46
4757

skipif mysql # not compatible
query II rowsort label-600
SELECT DISTINCT + 46 AS col2, NULLIF ( + 67, - 48 ) * - + NULLIF ( - + 71, CAST ( NULL AS REAL ) ) AS col1
----
46
4757

query I rowsort
SELECT + 41 * - 55 AS col1
----
-2255

query I rowsort
SELECT 35 * - 4 + + + 61
----
-79

query I rowsort
SELECT ALL + 44 * 91
----
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT - 23 + + + 37 * - 14 + + ( + COUNT( * ) ) - - 36 * 61
----
1656

skipif mysql # not compatible
query I rowsort label-604
SELECT - 23 + + + 37 * - 14 + + ( + COUNT ( * ) ) - - 36 * 61
----
1656

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT + 93 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-605
SELECT + 93 / - 62
----
-1

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-608
SELECT ALL MIN( DISTINCT 76 ) * - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col2, - CAST( NULL AS SIGNED ) + - 15 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-608
SELECT ALL MIN ( DISTINCT 76 ) * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, - CAST ( NULL AS INTEGER ) + - 15 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT ALL + COUNT( * ) * 23 + 43
----
66

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL + COUNT ( * ) * 23 + 43
----
66

query I rowsort
SELECT - 46 * + 4 AS col0
----
-184

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

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

query I rowsort
SELECT - 12 * + - 78
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT DISTINCT - + COUNT( * ) * - 60 * - 18 * - 41 * - 82 AS col0
----
-3630960

skipif mysql # not compatible
query I rowsort label-613
SELECT DISTINCT - + COUNT ( * ) * - 60 * - 18 * - 41 * - 82 AS col0
----
-3630960

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT ALL + 1 + - + 97 * COUNT( * ) + 72
----
-24

skipif mysql # not compatible
query I rowsort label-614
SELECT ALL + 1 + - + 97 * COUNT ( * ) + 72
----
-24

query II rowsort
SELECT - + 54, 30 * 20 col2
----
-54
600

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-617
SELECT ALL - 31 * - + 1 - - COALESCE ( - + 88, CAST( NULL AS SIGNED ) ) + 67 * 4 * 30 * + 36
----
289383

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL - 31 * - + 1 - - COALESCE ( - + 88, CAST ( NULL AS INTEGER ) ) + 67 * 4 * 30 * + 36
----
289383

query II rowsort
SELECT ALL - 87 AS col0, COALESCE ( + + ( + 32 ), - + 82, 75 * 34 + - 21 ) * - 19 * + + 38 + + + 41 AS col1
----
-87
-23063

query I rowsort
SELECT DISTINCT - 98 * - ( - 63 )
----
-6174

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT ALL + COUNT( * ) - - 28 * - 67 * - 1 col2
----
1877

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + COUNT ( * ) - - 28 * - 67 * - 1 col2
----
1877

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT ALL ( - 8 ) - - - COUNT( ALL + - 46 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL ( - 8 ) - - - COUNT ( ALL + - 46 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-622
SELECT ALL 10 AS col1, - 59 + + SUM( 96 ) AS col0
----
10
37

skipif mysql # not compatible
query II rowsort label-622
SELECT ALL 10 AS col1, - 59 + + SUM ( 96 ) AS col0
----
10
37

onlyif mysql # aggregate syntax: 
query II rowsort label-623
SELECT + MIN( - 23 ) AS col2, + 66 + + 46
----
-23
112

skipif mysql # not compatible
query II rowsort label-623
SELECT + MIN ( - 23 ) AS col2, + 66 + + 46
----
-23
112

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT + 89 * + + 43 * + - 27 + - NULLIF ( 63, - COALESCE ( - COALESCE ( + + 63, + - 82, + + 8 ), + - 53 * - + COALESCE ( + + ( - - COUNT( * ) ), 24 + COALESCE ( 29, MAX( 0 ) ) * + ( + + 58 ) ), - ( + + 89 ) - 83 + + + 11 + + 82 * 72 + 96 ) ) + - - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-624
SELECT + 89 * + + 43 * + - 27 + - NULLIF ( 63, - COALESCE ( - COALESCE ( + + 63, + - 82, + + 8 ), + - 53 * - + COALESCE ( + + ( - - COUNT ( * ) ), 24 + COALESCE ( 29, MAX ( 0 ) ) * + ( + + 58 ) ), - ( + + 89 ) - 83 + + + 11 + + 82 * 72 + 96 ) ) + - - 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-625
SELECT NULLIF ( 90, - MAX( DISTINCT + 33 ) ) DIV - 75 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-625
SELECT NULLIF ( 90, - MAX ( DISTINCT + 33 ) ) / - 75 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT + 51 * + NULLIF ( 68, - 50 ) * - + COUNT( * )
----
-3468

skipif mysql # not compatible
query I rowsort label-626
SELECT + 51 * + NULLIF ( 68, - 50 ) * - + COUNT ( * )
----
-3468

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-627
SELECT COUNT( * ) * 64 + - ( + + 98 ) + + 87 - + COALESCE ( - 1, - 57, - 69 ) + + - 91 * + 66 - - 24 DIV - + 23
----
-5953

skipif mysql # not compatible
query I rowsort label-627
SELECT COUNT ( * ) * 64 + - ( + + 98 ) + + 87 - + COALESCE ( - 1, - 57, - 69 ) + + - 91 * + 66 - - 24 / - + 23
----
-5953

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT CASE - 74 WHEN + - 55 THEN NULL WHEN - COALESCE ( - - 18, + NULLIF ( - - 38, + 14 ) * - + 84 + COUNT( * ), + + 10 ) * + - COUNT( DISTINCT - - 64 ) * 24 THEN NULL ELSE + ( COUNT( * ) ) * + + 59 END * - 7 + 64
----
-349

skipif mysql # not compatible
query I rowsort label-628
SELECT CASE - 74 WHEN + - 55 THEN NULL WHEN - COALESCE ( - - 18, + NULLIF ( - - 38, + 14 ) * - + 84 + COUNT ( * ), + + 10 ) * + - COUNT ( DISTINCT - - 64 ) * 24 THEN NULL ELSE + ( COUNT ( * ) ) * + + 59 END * - 7 + 64
----
-349

query I rowsort
SELECT DISTINCT 30 * - 25 AS col2
----
-750

query I rowsort
SELECT ALL 41 * 59 * + - 44 * 35
----
-3725260

query I rowsort
SELECT DISTINCT 76 * - 63 * - 5 col1
----
23940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-632
SELECT 87 + 35 AS col2, 36 * + - MIN( + 56 ) + + + CAST( NULL AS SIGNED ) * 28 AS col0
----
122
NULL

skipif mysql # not compatible
query II rowsort label-632
SELECT 87 + 35 AS col2, 36 * + - MIN ( + 56 ) + + + CAST ( NULL AS INTEGER ) * 28 AS col0
----
122
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-633
SELECT 94 * + CAST( - CASE 57 WHEN - 35 THEN 29 * - + 44 * + 21 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-633
SELECT 94 * + CAST ( - CASE 57 WHEN - 35 THEN 29 * - + 44 * + 21 END AS INTEGER )
----
NULL

query I rowsort
SELECT 29 * - 80 * - COALESCE ( + + 87, - 8 )
----
201840

onlyif mysql # DIV for integer division: 
query I rowsort label-635
SELECT ( - 2 ) + 43 * 49 DIV - + 94 + - - 10
----
-14

skipif mysql # not compatible
query I rowsort label-635
SELECT ( - 2 ) + 43 * 49 / - + 94 + - - 10
----
-14

query I rowsort
SELECT NULLIF ( 90, 68 ) - + + 21
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT DISTINCT - MAX( - 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-637
SELECT DISTINCT - MAX ( - 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT ALL + NULLIF ( + - SUM( + 56 ), + 38 + - + COUNT( * ) ) + + 10 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL + NULLIF ( + - SUM ( + 56 ), + 38 + - + COUNT ( * ) ) + + 10 AS col2
----
-46

query I rowsort
SELECT ALL - 40 + + + 8 * 18 + + ( 73 ) AS col0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT 45 * - 71 * - COALESCE ( 75, COALESCE ( 16, + MIN( 47 ) ) * COUNT( * ), COUNT( * ) ) AS col1
----
239625

skipif mysql # not compatible
query I rowsort label-640
SELECT 45 * - 71 * - COALESCE ( 75, COALESCE ( 16, + MIN ( 47 ) ) * COUNT ( * ), COUNT ( * ) ) AS col1
----
239625

query II rowsort
SELECT DISTINCT - 54 * + + 87 col0, - ( - 75 ) + - - 19 + + 50 * - 51 + - 33
----
-4698
-2489

query I rowsort
SELECT ALL - 96 + - 12 AS col0
----
-108

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

query I rowsort
SELECT - 17 * - 82 + - 19 * - ( - 34 )
----
748

query I rowsort
SELECT ALL + 5 + + 89 AS col0
----
94

query I rowsort
SELECT 76 * + 56 - + - 3
----
4259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-647
SELECT MAX( ALL - + 58 ), + 70 + + CAST( + 42 AS SIGNED ) + - 46 AS col0
----
-58
66

skipif mysql # not compatible
query II rowsort label-647
SELECT MAX ( ALL - + 58 ), + 70 + + CAST ( + 42 AS INTEGER ) + - 46 AS col0
----
-58
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-648
SELECT - - COALESCE ( - 61, - CAST( NULL AS SIGNED ) * + - 99 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-648
SELECT - - COALESCE ( - 61, - CAST ( NULL AS INTEGER ) * + - 99 ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-649
SELECT ALL - + 13 + - COUNT( * ) AS col0, 71
----
-14
71

skipif mysql # not compatible
query II rowsort label-649
SELECT ALL - + 13 + - COUNT ( * ) AS col0, 71
----
-14
71

query I rowsort
SELECT 23 + + 52 - + 6 col1
----
69

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-652
SELECT ALL COALESCE ( - 21, - - CAST( NULL AS SIGNED ), - - 5 ) - + ( - 4 )
----
-17

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL COALESCE ( - 21, - - CAST ( NULL AS INTEGER ), - - 5 ) - + ( - 4 )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-653
SELECT - COUNT( DISTINCT + 3 ) AS col1, 96
----
-1
96

skipif mysql # not compatible
query II rowsort label-653
SELECT - COUNT ( DISTINCT + 3 ) AS col1, 96
----
-1
96

onlyif mysql # aggregate syntax: 
query II rowsort label-654
SELECT 25 * + COUNT( * ) AS col1, - CASE - 89 WHEN - + 45 THEN 10 * - 56 END
----
25
NULL

skipif mysql # not compatible
query II rowsort label-654
SELECT 25 * + COUNT ( * ) AS col1, - CASE - 89 WHEN - + 45 THEN 10 * - 56 END
----
25
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-655
SELECT DISTINCT - 86 * + + 45 AS col0, 15 DIV - 21 col0
----
-3870
0

skipif mysql # not compatible
query II rowsort label-655
SELECT DISTINCT - 86 * + + 45 AS col0, 15 / - 21 col0
----
-3870
0

query I rowsort
SELECT ALL + - 33 - - + 31
----
-2

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-658
SELECT + 9 + + 70 AS col2, + ( + + 75 ) DIV 97 * 40 - - 5
----
79
5

skipif mysql # not compatible
query II rowsort label-658
SELECT + 9 + + 70 AS col2, + ( + + 75 ) / 97 * 40 - - 5
----
79
5

query I rowsort
SELECT ALL - ( 11 ) * + + 71 * - 10
----
7810

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT - 49 DIV 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-660
SELECT - 49 / 53 AS col2
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-662
SELECT DISTINCT SUM( DISTINCT - 73 ) DIV 11 + - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT SUM ( DISTINCT - 73 ) / 11 + - COUNT ( * )
----
-7

query I rowsort
SELECT 78 - - 65
----
143

query II rowsort
SELECT ALL - 49, 17 AS col0
----
-49
17

query I rowsort
SELECT 84 + - 55
----
29

query I rowsort
SELECT 87 * - 50 * - 48
----
208800

onlyif mysql # aggregate syntax: 
query II rowsort label-667
SELECT MIN( + ( - - 16 ) ) AS col1, - COUNT( - 51 ) AS col0
----
16
-1

skipif mysql # not compatible
query II rowsort label-667
SELECT MIN ( + ( - - 16 ) ) AS col1, - COUNT ( - 51 ) AS col0
----
16
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT 94 DIV - 94
----
-1

skipif mysql # not compatible
query I rowsort label-668
SELECT 94 / - 94
----
-1

query I rowsort
SELECT DISTINCT + 71 + + 35 AS col1
----
106

query I rowsort
SELECT DISTINCT 23 * + 57 AS col2
----
1311

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT ALL ( + ( - ( + 58 ) ) ) + + MAX( DISTINCT - 21 )
----
-79

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL ( + ( - ( + 58 ) ) ) + + MAX ( DISTINCT - 21 )
----
-79

query I rowsort
SELECT 29 + + 86
----
115

query III rowsort
SELECT DISTINCT 75 + - 16 * - 87 AS col2, - 99 AS col0, - 90 AS col1
----
1467
-99
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-674
SELECT 19 * - COUNT( * ) * + 61 DIV - - 30
----
-38

skipif mysql # not compatible
query I rowsort label-674
SELECT 19 * - COUNT ( * ) * + 61 / - - 30
----
-38

query I rowsort
SELECT 9 * + 47 + - - NULLIF ( 49, + 41 )
----
472

query I rowsort
SELECT 58 + + 89
----
147

query I rowsort
SELECT ALL 20 + - 87
----
-67

query II rowsort
SELECT - - 60 col0, 5
----
60
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-679
SELECT - 64 + + ( - 32 ) * + 84 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT - 64 + + ( - 32 ) * + 84 * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-680
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) AS col0
----
-1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-681
SELECT ALL + ( + COUNT( * ) ) - - COUNT( * ) AS col1, 36
----
2
36

skipif mysql # not compatible
query II rowsort label-681
SELECT ALL + ( + COUNT ( * ) ) - - COUNT ( * ) AS col1, 36
----
2
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-682
SELECT + COALESCE ( - - 8, 72 * - NULLIF ( + 99, - - 94 ) * + COUNT( * ), + 54 DIV - + COUNT( * ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-682
SELECT + COALESCE ( - - 8, 72 * - NULLIF ( + 99, - - 94 ) * + COUNT ( * ), + 54 / - + COUNT ( * ) ) AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-683
SELECT ALL + CASE - - 50 WHEN - 95 THEN - - 46 ELSE NULL END - - + 12 + CASE + + 73 WHEN NULLIF ( - 82, + CAST( + - COUNT( * ) AS SIGNED ) ) THEN NULL WHEN - 77 THEN - - COUNT( * ) * 83 + + - 24 END + + 91 + - 23 * - + 13 + 19 / - - 99 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL + CASE - - 50 WHEN - 95 THEN - - 46 ELSE NULL END - - + 12 + CASE + + 73 WHEN NULLIF ( - 82, + CAST ( + - COUNT ( * ) AS INTEGER ) ) THEN NULL WHEN - 77 THEN - - COUNT ( * ) * 83 + + - 24 END + + 91 + - 23 * - + 13 + 19 / - - 99 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-684
SELECT DISTINCT COUNT( * ) / + 60 + - + NULLIF ( CAST( NULL AS SIGNED ), 61 ) + + ( - + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT COUNT ( * ) / + 60 + - + NULLIF ( CAST ( NULL AS INTEGER ), 61 ) + + ( - + 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-685
SELECT - 10 AS col2, + COALESCE ( COUNT( * ), - 85 * + + MAX( DISTINCT - 18 ) ) AS col2
----
-10
1

skipif mysql # not compatible
query II rowsort label-685
SELECT - 10 AS col2, + COALESCE ( COUNT ( * ), - 85 * + + MAX ( DISTINCT - 18 ) ) AS col2
----
-10
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-686
SELECT ALL - 49 * + CASE + + CAST( NULL AS DECIMAL ) WHEN - COALESCE ( CASE + SUM( ALL - 54 ) WHEN + NULLIF ( + + COUNT( * ), - - 38 ) THEN NULL ELSE + - 8 / - 7 + 6 - + + 49 + - 89 * - AVG ( - + 24 ) + + 36 END, 50 ) THEN NULL WHEN + - 52 - - 10 THEN - COUNT( * ) + + 36 - - 87 / - 84 WHEN MAX( + NULLIF ( - - 22, 16 ) ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL - 49 * + CASE + + CAST ( NULL AS REAL ) WHEN - COALESCE ( CASE + SUM ( ALL - 54 ) WHEN + NULLIF ( + + COUNT ( * ), - - 38 ) THEN NULL ELSE + - 8 / - 7 + 6 - + + 49 + - 89 * - AVG ( - + 24 ) + + 36 END, 50 ) THEN NULL WHEN + - 52 - - 10 THEN - COUNT ( * ) + + 36 - - 87 / - 84 WHEN MAX ( + NULLIF ( - - 22, 16 ) ) THEN NULL ELSE NULL END AS col0
----
NULL

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

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

query II rowsort
SELECT ALL 22 AS col2, 51 AS col1
----
22
51

query I rowsort
SELECT + 19 * + 8 AS col1
----
152

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-690
SELECT + CAST( NULL AS DECIMAL ) - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-690
SELECT + CAST ( NULL AS REAL ) - + 46
----
NULL

query I rowsort
SELECT + 47 - + + 16
----
31

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

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

query II rowsort
SELECT - 84 AS col0, 20 AS col1
----
-84
20

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT ALL SUM( - 81 ) + ( + + 14 )
----
-67

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL SUM ( - 81 ) + ( + + 14 )
----
-67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT + 0 + + COUNT( DISTINCT 70 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-696
SELECT + 0 + + COUNT ( DISTINCT 70 ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-697
SELECT 85 DIV MIN( - 85 ) * + MAX( ALL + 26 ) - + - SUM( DISTINCT + + 14 ) * - MAX( - + 44 ) AS col0, COUNT( * ) * - + 12 * 37 DIV - 78
----
590
5

skipif mysql # not compatible
query II rowsort label-697
SELECT 85 / MIN ( - 85 ) * + MAX ( ALL + 26 ) - + - SUM ( DISTINCT + + 14 ) * - MAX ( - + 44 ) AS col0, COUNT ( * ) * - + 12 * 37 / - 78
----
590
5

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT - 82 * - MIN( 76 )
----
6232

skipif mysql # not compatible
query I rowsort label-698
SELECT - 82 * - MIN ( 76 )
----
6232

onlyif mysql # DIV for integer division: 
query I rowsort label-699
SELECT - 0 DIV - 65
----
0

skipif mysql # not compatible
query I rowsort label-699
SELECT - 0 / - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT ALL COUNT( * ) * - 77 + + 60
----
-17

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL COUNT ( * ) * - 77 + + 60
----
-17

query I rowsort
SELECT DISTINCT + 67 * - 56 * + + ( + 93 )
----
-348936

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT ALL + 64 * - - 43 * - 55 + - 34 * - - MAX( ALL + ( 61 ) )
----
-153434

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL + 64 * - - 43 * - 55 + - 34 * - - MAX ( ALL + ( 61 ) )
----
-153434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-703
SELECT ALL - 80 * - 39 + + 95 - - + COUNT( * ) AS col2, 7 + - - CAST( NULL AS SIGNED ) + + - 17 / 28 * - - 8 * - 61 / - - 9 + + + 40 - - 68 + + + SUM( ALL 8 )
----
3216
NULL

skipif mysql # not compatible
query II rowsort label-703
SELECT ALL - 80 * - 39 + + 95 - - + COUNT ( * ) AS col2, 7 + - - CAST ( NULL AS INTEGER ) + + - 17 / 28 * - - 8 * - 61 / - - 9 + + + 40 - - 68 + + + SUM ( ALL 8 )
----
3216
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT - 47 DIV - 30 + + 18
----
19

skipif mysql # not compatible
query I rowsort label-704
SELECT - 47 / - 30 + + 18
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT ALL + MIN( + ( + ( + 57 ) ) ) * - + 54 AS col1
----
-3078

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL + MIN ( + ( + ( + 57 ) ) ) * - + 54 AS col1
----
-3078

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT DISTINCT - COUNT( * ) * 82 + + 11 col1
----
-71

skipif mysql # not compatible
query I rowsort label-706
SELECT DISTINCT - COUNT ( * ) * 82 + + 11 col1
----
-71

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

skipif mysql # not compatible
query I rowsort label-707
SELECT - 23 + ( ( CAST ( NULL AS INTEGER ) ) ) + + - 52 AS col2
----
NULL

query I rowsort
SELECT - 52 + + - 80
----
-132

query I rowsort
SELECT - 10 * + 48
----
-480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-710
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ), MIN( - 65 ) AS col0
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-710
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ), MIN ( - 65 ) AS col0
----
NULL
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT - 21 * + 38 + - SUM( + 81 ) * - 66 - + COUNT( * )
----
4547

skipif mysql # not compatible
query I rowsort label-711
SELECT - 21 * + 38 + - SUM ( + 81 ) * - 66 - + COUNT ( * )
----
4547

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-713
SELECT ALL + 23 / - CAST( NULL AS SIGNED ) AS col1, - COALESCE ( - COUNT( * ), 51 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-713
SELECT ALL + 23 / - CAST ( NULL AS INTEGER ) AS col1, - COALESCE ( - COUNT ( * ), 51 )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT - COUNT( + 35 ) * + + NULLIF ( 66, 92 + - COUNT( * ) * 85 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-714
SELECT - COUNT ( + 35 ) * + + NULLIF ( 66, 92 + - COUNT ( * ) * 85 ) AS col0
----
-66

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

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

query I rowsort
SELECT ALL - 13 * - 71 col2
----
923

query I rowsort
SELECT - - 8 - 96 + - 77 + + 43 AS col1
----
-122

query II rowsort
SELECT + + ( 55 ), + 45 + + 74 col2
----
55
119

query I rowsort
SELECT ALL 33 * - - 48 - - 34 + + 85 AS col2
----
1703

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT + 51 - + COUNT( * ) + 94 + + + 39 * - COUNT( * ) AS col2
----
105

skipif mysql # not compatible
query I rowsort label-720
SELECT + 51 - + COUNT ( * ) + 94 + + + 39 * - COUNT ( * ) AS col2
----
105

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

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

query I rowsort
SELECT - + 81 * 28 + - 22 AS col2
----
-2290

query I rowsort
SELECT + - 6 + - 44 AS col1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-724
SELECT DISTINCT - ( + - CASE - + 86 WHEN + - 90 * - - 23 THEN - 79 + + COALESCE ( + + ( - - 30 ), + + CAST( NULL AS SIGNED ), 23 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT - ( + - CASE - + 86 WHEN + - 90 * - - 23 THEN - 79 + + COALESCE ( + + ( - - 30 ), + + CAST ( NULL AS INTEGER ), 23 ) END )
----
NULL

query II rowsort
SELECT + + 31 + - 51 AS col0, 86 * - 90 AS col1
----
-20
-7740

query I rowsort
SELECT ALL 28 + - 42 * 90
----
-3752

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT - COALESCE ( - CASE - SUM( DISTINCT 73 ) WHEN + - 33 + + 12 - - 29 + + - 66 THEN NULL WHEN + 79 THEN NULL ELSE - - 44 END, COUNT( * ) * - - 66, - + MAX( - + 20 ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-727
SELECT - COALESCE ( - CASE - SUM ( DISTINCT 73 ) WHEN + - 33 + + 12 - - 29 + + - 66 THEN NULL WHEN + 79 THEN NULL ELSE - - 44 END, COUNT ( * ) * - - 66, - + MAX ( - + 20 ) ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT + 6 + + + 6 - - - CASE - COUNT( * ) WHEN - + 77 * + 82 THEN + 47 END * - ( - 13 ) / - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-728
SELECT + 6 + + + 6 - - - CASE - COUNT ( * ) WHEN - + 77 * + 82 THEN + 47 END * - ( - 13 ) / - 21 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-729
SELECT - 83 + - - MIN( - + 39 ) + - + COALESCE ( + + 14, ( + + 59 ) - COUNT( * ) ) + - - COALESCE ( - CAST( NULL AS SIGNED ), - - 15, + + 64 * - + 10 + + 14 ) * + - 79
----
-1321

skipif mysql # not compatible
query I rowsort label-729
SELECT - 83 + - - MIN ( - + 39 ) + - + COALESCE ( + + 14, ( + + 59 ) - COUNT ( * ) ) + - - COALESCE ( - CAST ( NULL AS INTEGER ), - - 15, + + 64 * - + 10 + + 14 ) * + - 79
----
-1321

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

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

query I rowsort
SELECT DISTINCT 17 + + - 59 AS col2
----
-42

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

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

query I rowsort
SELECT + 23 * - 88 AS col2
----
-2024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-734
SELECT ALL - 59 DIV COALESCE ( + 21, 68 ) - + COUNT( * ) + + - 59 + 99 + - + 76 + MIN( + + 72 ) - 2 * + COUNT( DISTINCT 64 ) DIV - + ( + 11 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL - 59 / COALESCE ( + 21, 68 ) - + COUNT ( * ) + + - 59 + 99 + - + 76 + MIN ( + + 72 ) - 2 * + COUNT ( DISTINCT 64 ) / - + ( + 11 ) AS col0
----
33

query I rowsort
SELECT 90 * 26 - + 30 - - 24
----
2334

query I rowsort
SELECT + 28 + 46 - - + 25 * + 12 AS col2
----
374

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-737
SELECT DISTINCT - 49 DIV - 84 * - 97 - + NULLIF ( - - 35, COUNT( + 83 ) * + 91 - + + 66 + 72 + - 70 * 88 + - ( + - CAST( - 86 AS SIGNED ) ) - 3 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT - 49 / - 84 * - 97 - + NULLIF ( - - 35, COUNT ( + 83 ) * + 91 - + + 66 + 72 + - 70 * 88 + - ( + - CAST ( - 86 AS INTEGER ) ) - 3 ) AS col0
----
-35

query I rowsort
SELECT ALL + ( 6 ) col0
----
6

query I rowsort
SELECT 73 * 89 AS col0
----
6497

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT COUNT( * ) * - 71 + 7 col1
----
-64

skipif mysql # not compatible
query I rowsort label-740
SELECT COUNT ( * ) * - 71 + 7 col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT + 60 * - COUNT( * ) + + 57 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-741
SELECT + 60 * - COUNT ( * ) + + 57 AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-742
SELECT ALL - 92 DIV 9
----
-10

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL - 92 / 9
----
-10

query I rowsort
SELECT 63 * + 46 AS col2
----
2898

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

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL + COUNT ( * ) + 23 / ( 42 ) AS col1
----
1

query I rowsort
SELECT ALL 55 + 44 * 18
----
847

query I rowsort
SELECT 88 * - 69
----
-6072

query I rowsort
SELECT DISTINCT - 75 + ( - 13 ) * 43
----
-634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-748
SELECT ALL COALESCE ( ( + 89 ), 81, 89 DIV COUNT( * ) + - 92 * 69 ) * + 67 AS col2
----
5963

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL COALESCE ( ( + 89 ), 81, 89 / COUNT ( * ) + - 92 * 69 ) * + 67 AS col2
----
5963

query I rowsort
SELECT ALL - 57 + 47
----
-10

query I rowsort
SELECT 88 - 95
----
-7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-751
SELECT ALL CAST( + 91 AS SIGNED ) + - 43 DIV 84 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL CAST ( + 91 AS INTEGER ) + - 43 / 84 AS col2
----
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT COUNT( * ) - 45 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-753
SELECT COUNT ( * ) - 45 AS col1
----
-44

query I rowsort
SELECT ALL 35 * 97 col1
----
3395

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT 38 * MIN( DISTINCT + 15 ) col1
----
570

skipif mysql # not compatible
query I rowsort label-755
SELECT 38 * MIN ( DISTINCT + 15 ) col1
----
570

query I rowsort
SELECT ALL COALESCE ( + 68, 17, - 20 + + 66 * 83 ) - + 2 * + 11
----
46

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-758
SELECT 22 + - COUNT( * ) DIV 95 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-758
SELECT 22 + - COUNT ( * ) / 95 AS col1
----
22

query I rowsort
SELECT ALL 99 * ( 96 ) AS col0
----
9504

query I rowsort
SELECT 28 * ( 73 ) AS col1
----
2044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-761
SELECT CAST( ( 57 ) AS SIGNED ) - - ( - 48 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-761
SELECT CAST ( ( 57 ) AS INTEGER ) - - ( - 48 ) AS col1
----
9

query I rowsort
SELECT DISTINCT ( 13 ) - - 45 * ( 12 ) AS col2
----
553

query I rowsort
SELECT ALL 63 * 56
----
3528

query I rowsort
SELECT ALL - NULLIF ( + 57, 39 * 84 ) AS col0
----
-57

query I rowsort
SELECT ALL - + 53 col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-766
SELECT COUNT( * ) * - CASE - NULLIF ( + 33, 89 * 70 - ( 47 ) * COUNT( * ) ) + ( ( CAST( - ( - CASE 11 WHEN CAST( NULL AS SIGNED ) + + 75 / 85 THEN + COALESCE ( + CASE + COUNT( * ) WHEN 16 * AVG ( + 68 ) THEN - NULLIF ( 90, - COUNT( * ) + 55 ) - - 29 WHEN 50 THEN NULL ELSE NULL END, - COALESCE ( ( - 83 ), 20, CAST( - COUNT( DISTINCT 39 ) AS SIGNED ) * + ( CASE WHEN NOT 56 > NULL THEN - ( - MAX( - 37 ) ) END * + 46 + - COALESCE ( - 89, 41 ) * - 33 ), + 2 ) - 45 * 37 ) + 31 / - ( - 31 ) WHEN - 91 THEN NULL END ) AS SIGNED ) ) + CAST( NULL AS DECIMAL ) ) / 26 WHEN + MAX( DISTINCT - 17 ) THEN COALESCE ( 78, - 16 - 40, 46 * + COUNT( ALL - 0 ) ) * + 39 END + - 8 * CAST( - 5 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-766
SELECT COUNT ( * ) * - CASE - NULLIF ( + 33, 89 * 70 - ( 47 ) * COUNT ( * ) ) + ( ( CAST ( - ( - CASE 11 WHEN CAST ( NULL AS INTEGER ) + + 75 / 85 THEN + COALESCE ( + CASE + COUNT ( * ) WHEN 16 * AVG ( + 68 ) THEN - NULLIF ( 90, - COUNT ( * ) + 55 ) - - 29 WHEN 50 THEN NULL ELSE NULL END, - COALESCE ( ( - 83 ), 20, CAST ( - COUNT ( DISTINCT 39 ) AS INTEGER ) * + ( CASE WHEN NOT 56 > NULL THEN - ( - MAX ( - 37 ) ) END * + 46 + - COALESCE ( - 89, 41 ) * - 33 ), + 2 ) - 45 * 37 ) + 31 / - ( - 31 ) WHEN - 91 THEN NULL END ) AS INTEGER ) ) + CAST ( NULL AS REAL ) ) / 26 WHEN + MAX ( DISTINCT - 17 ) THEN COALESCE ( 78, - 16 - 40, 46 * + COUNT ( ALL - 0 ) ) * + 39 END + - 8 * CAST ( - 5 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT - NULLIF ( CASE 21 WHEN 17 THEN NULL WHEN ( + 79 ) + 39 THEN CASE COUNT( * ) WHEN COUNT( * ) * - COUNT( ALL - 51 ) THEN - 39 ELSE NULL END * - 81 ELSE + COUNT( ALL 8 ) END, + COUNT( * ) - - 8 * - CASE - COUNT( * ) * 25 - + 76 WHEN SUM( ALL 65 ) / NULLIF ( + 42, 32 ) THEN NULL WHEN COUNT( * ) / + 44 THEN NULL ELSE - 97 END )
----
-1

skipif mysql # not compatible
query I rowsort label-767
SELECT - NULLIF ( CASE 21 WHEN 17 THEN NULL WHEN ( + 79 ) + 39 THEN CASE COUNT ( * ) WHEN COUNT ( * ) * - COUNT ( ALL - 51 ) THEN - 39 ELSE NULL END * - 81 ELSE + COUNT ( ALL 8 ) END, + COUNT ( * ) - - 8 * - CASE - COUNT ( * ) * 25 - + 76 WHEN SUM ( ALL 65 ) / NULLIF ( + 42, 32 ) THEN NULL WHEN COUNT ( * ) / + 44 THEN NULL ELSE - 97 END )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT ALL - + SUM( DISTINCT 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-768
SELECT ALL - + SUM ( DISTINCT 58 ) AS col1
----
-58

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

query I rowsort
SELECT + 77 * - 75
----
-5775

query I rowsort
SELECT DISTINCT 55 * + 45
----
2475

query I rowsort
SELECT ALL - 20 + 73 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT + 3 * SUM( - 58 * 45 + - 44 ) + + 57 col1
----
-7905

skipif mysql # not compatible
query I rowsort label-773
SELECT + 3 * SUM ( - 58 * 45 + - 44 ) + + 57 col1
----
-7905

query I rowsort
SELECT ALL 83 + - 74 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-775
SELECT ALL - - CAST( 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL - - CAST ( 39 AS INTEGER )
----
39

query I rowsort
SELECT + 66 + 26
----
92

query I rowsort
SELECT + 35 - 56
----
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-778
SELECT + COALESCE ( - 52, + 85 - COUNT( * ) ) * + MAX( ALL CAST( NULL AS DECIMAL ) ) + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-778
SELECT + COALESCE ( - 52, + 85 - COUNT ( * ) ) * + MAX ( ALL CAST ( NULL AS REAL ) ) + 38 AS col1
----
NULL

query I rowsort
SELECT + 49 - 42 AS col2
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT ALL - NULLIF ( + 17, COUNT( * ) + 16 ) + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL - NULLIF ( + 17, COUNT ( * ) + 16 ) + 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-782
SELECT ALL - MAX( - + CAST( + 73 AS SIGNED ) ) DIV COALESCE ( + 53, - 0 )
----
1

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL - MAX ( - + CAST ( + 73 AS INTEGER ) ) / COALESCE ( + 53, - 0 )
----
1

query I rowsort
SELECT 23 + 41 AS col0
----
64

query I rowsort
SELECT ALL + 26 - - ( ( + 86 ) )
----
112

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

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

query I rowsort
SELECT 13 * + 69 AS col1
----
897

query I rowsort
SELECT 48 * 51 * 18 AS col0
----
44064

query I rowsort
SELECT ALL - 54 * - - 46 AS col0
----
-2484

query I rowsort
SELECT 19 + 86 AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-790
SELECT DISTINCT CASE - COUNT( * ) WHEN - NULLIF ( - CASE + MAX( DISTINCT 39 ) WHEN - 62 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN ( COUNT( * ) ) THEN - 68 + + CASE 83 WHEN CAST( - 50 AS SIGNED ) THEN ( COUNT( * ) ) WHEN 12 THEN 82 - 93 WHEN + CAST( NULL AS SIGNED ) / 41 THEN NULL ELSE NULL END * ( 25 * CAST( NULL AS SIGNED ) ) END, 47 ) + ( COUNT( * ) ) THEN - 40 WHEN + COUNT( * ) * 19 THEN 6 / - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT CASE - COUNT ( * ) WHEN - NULLIF ( - CASE + MAX ( DISTINCT 39 ) WHEN - 62 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN ( COUNT ( * ) ) THEN - 68 + + CASE 83 WHEN CAST ( - 50 AS INTEGER ) THEN ( COUNT ( * ) ) WHEN 12 THEN 82 - 93 WHEN + CAST ( NULL AS INTEGER ) / 41 THEN NULL ELSE NULL END * ( 25 * CAST ( NULL AS INTEGER ) ) END, 47 ) + ( COUNT ( * ) ) THEN - 40 WHEN + COUNT ( * ) * 19 THEN 6 / - 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL COUNT( DISTINCT 73 )
----
1

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL COUNT ( DISTINCT 73 )
----
1

query I rowsort
SELECT ALL 45 * + 36 AS col1
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT SUM( DISTINCT + 63 ) * - 66 + 20 AS col2
----
-4138

skipif mysql # not compatible
query I rowsort label-793
SELECT SUM ( DISTINCT + 63 ) * - 66 + 20 AS col2
----
-4138

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT ALL + MIN( + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-794
SELECT ALL + MIN ( + 83 )
----
83

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

skipif mysql # not compatible
query I rowsort label-795
SELECT + SUM ( - 75 )
----
-75

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-797
SELECT 76 * - MIN( ALL + CAST( NULL AS SIGNED ) ) - - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-797
SELECT 76 * - MIN ( ALL + CAST ( NULL AS INTEGER ) ) - - 28 AS col2
----
NULL

query I rowsort
SELECT ALL + ( 45 ) * + 17 AS col1
----
765

query I rowsort
SELECT + COALESCE ( 56, 54 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT + + MIN( ALL 84 ) * 46 + + 90 * + 49
----
8274

skipif mysql # not compatible
query I rowsort label-800
SELECT + + MIN ( ALL 84 ) * 46 + + 90 * + 49
----
8274

query I rowsort
SELECT ALL 44 * + 29 + 25 AS col0
----
1301

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT DISTINCT COUNT( * ) * - CASE - 45 WHEN ( + ( 21 ) ) + + 36 THEN NULL ELSE NULLIF ( 81, ( - 17 ) + 58 ) + - CASE 0 WHEN + 18 * COUNT( * ) + + 62 * + 45 THEN NULL ELSE - 58 * + 92 END END * 47 + + 63 AS col0
----
-254536

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT COUNT ( * ) * - CASE - 45 WHEN ( + ( 21 ) ) + + 36 THEN NULL ELSE NULLIF ( 81, ( - 17 ) + 58 ) + - CASE 0 WHEN + 18 * COUNT ( * ) + + 62 * + 45 THEN NULL ELSE - 58 * + 92 END END * 47 + + 63 AS col0
----
-254536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-803
SELECT + CASE 23 WHEN 95 / 19 - 16 * 5 THEN NULL WHEN - CAST( CAST( - 38 AS SIGNED ) AS SIGNED ) * + 35 THEN - 36 + + 5 END * 33 - - 50 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-803
SELECT + CASE 23 WHEN 95 / 19 - 16 * 5 THEN NULL WHEN - CAST ( CAST ( - 38 AS INTEGER ) AS INTEGER ) * + 35 THEN - 36 + + 5 END * 33 - - 50 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-804
SELECT ALL + 49 DIV - + 17 - + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL + 49 / - + 17 - + COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT ALL + 15 * + 17 + + COUNT( * )
----
256

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL + 15 * + 17 + + COUNT ( * )
----
256

query I rowsort
SELECT - 51 * - - 37 + 42
----
-1845

query I rowsort
SELECT + 86 * + 18 AS col0
----
1548

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

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

query II rowsort
SELECT 6 AS col0, - 11 + - - 62
----
6
51

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

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL SUM ( + + COALESCE ( 24, + CAST ( NULL AS INTEGER ) ) ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT DISTINCT MIN( + 15 ) * + MIN( ALL 58 ) * 41
----
35670

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT MIN ( + 15 ) * + MIN ( ALL 58 ) * 41
----
35670

onlyif mysql # DIV for integer division: 
query I rowsort label-812
SELECT - 17 DIV - - 87 * - - 5
----
0

skipif mysql # not compatible
query I rowsort label-812
SELECT - 17 / - - 87 * - - 5
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-814
SELECT ALL COUNT( * ) col2, 87
----
1
87

skipif mysql # not compatible
query II rowsort label-814
SELECT ALL COUNT ( * ) col2, 87
----
1
87

query I rowsort
SELECT + 88 + - + 1
----
87

query I rowsort
SELECT - 64 * - 69
----
4416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-817
SELECT ALL + 95 DIV ( + - CASE 61 WHEN 31 THEN NULL WHEN - CASE + COUNT( * ) WHEN 8 DIV + 54 THEN 59 + - 86 WHEN SUM( - 58 ) THEN NULL ELSE NULL END THEN NULL ELSE - 63 END ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL + 95 / ( + - CASE 61 WHEN 31 THEN NULL WHEN - CASE + COUNT ( * ) WHEN 8 / + 54 THEN 59 + - 86 WHEN SUM ( - 58 ) THEN NULL ELSE NULL END THEN NULL ELSE - 63 END ) AS col2
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-819
SELECT - 58 - - 4 * + COUNT( * ) + 80 DIV - 70
----
-55

skipif mysql # not compatible
query I rowsort label-819
SELECT - 58 - - 4 * + COUNT ( * ) + 80 / - 70
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT - COUNT( * ) - + + 7 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-820
SELECT - COUNT ( * ) - + + 7 AS col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-821
SELECT - 10 + + - 51 * + 57 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-821
SELECT - 10 + + - 51 * + 57 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-822
SELECT ALL NULLIF ( - 48, - CASE 84 WHEN - 94 + 99 THEN CASE 77 WHEN - CAST( NULL AS SIGNED ) * + CASE - 3 WHEN 87 THEN + 79 * + 36 END THEN + ( + 49 ) WHEN 97 THEN + 3 END ELSE 59 * - 94 END * 85 )
----
-48

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL NULLIF ( - 48, - CASE 84 WHEN - 94 + 99 THEN CASE 77 WHEN - CAST ( NULL AS INTEGER ) * + CASE - 3 WHEN 87 THEN + 79 * + 36 END THEN + ( + 49 ) WHEN 97 THEN + 3 END ELSE 59 * - 94 END * 85 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT DISTINCT + 78 * - COALESCE ( - - 62, - COUNT( * ) ) AS col2
----
-4836

skipif mysql # not compatible
query I rowsort label-823
SELECT DISTINCT + 78 * - COALESCE ( - - 62, - COUNT ( * ) ) AS col2
----
-4836

query I rowsort
SELECT DISTINCT - 6 + + + 68
----
62

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-826
SELECT + 28 DIV 87 - - + 93 * SUM( DISTINCT 65 )
----
6045

skipif mysql # not compatible
query I rowsort label-826
SELECT + 28 / 87 - - + 93 * SUM ( DISTINCT 65 )
----
6045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-827
SELECT DISTINCT 95 DIV + 83 + + MAX( ALL 37 ) + - ( 38 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT 95 / + 83 + + MAX ( ALL 37 ) + - ( 38 ) col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-828
SELECT ALL + 61 DIV - 35 + 52 + COUNT( * ) * 31 + - 80
----
2

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL + 61 / - 35 + 52 + COUNT ( * ) * 31 + - 80
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-829
SELECT DISTINCT 65 DIV 29 + - 14 + - 62 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT 65 / 29 + - 14 + - 62 AS col1
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-830
SELECT ALL 3 DIV + - 45 + - MAX( 29 ) * 31
----
-899

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL 3 / + - 45 + - MAX ( 29 ) * 31
----
-899

onlyif mysql # DIV for integer division: 
query I rowsort label-831
SELECT ALL - 3 DIV + - 49 * - 60 + + 87 col2
----
87

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL - 3 / + - 49 * - 60 + + 87 col2
----
87

query II rowsort
SELECT 97, 92 AS col1
----
97
92

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT + - 96 * + 15 + + COUNT( * ) * 8 AS col2
----
-1432

skipif mysql # not compatible
query I rowsort label-833
SELECT + - 96 * + 15 + + COUNT ( * ) * 8 AS col2
----
-1432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-834
SELECT + COALESCE ( + COALESCE ( - + 33, - 24 ), COUNT( 74 ) DIV 49 ) * 6 col2
----
-198

skipif mysql # not compatible
query I rowsort label-834
SELECT + COALESCE ( + COALESCE ( - + 33, - 24 ), COUNT ( 74 ) / 49 ) * 6 col2
----
-198

query I rowsort
SELECT - 32 * + + 41 - - ( 18 ) * - 12 + 78 * ( - 63 + - 86 )
----
-13150

query I rowsort
SELECT + 22 * + 65 + - 65 - + 38 AS col1
----
1327

query I rowsort
SELECT ALL + 67 * - 41 - 37 * + 89 AS col2
----
-6040

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT DISTINCT + - 11 * - + SUM( DISTINCT - 43 ) + COUNT( * ) AS col0
----
-472

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT + - 11 * - + SUM ( DISTINCT - 43 ) + COUNT ( * ) AS col0
----
-472

onlyif mysql # aggregate syntax: 
query II rowsort label-839
SELECT ALL + + COUNT( * ) AS col1, - NULLIF ( + + 63, - 39 * + MAX( - 30 ) + 84 )
----
1
-63

skipif mysql # not compatible
query II rowsort label-839
SELECT ALL + + COUNT ( * ) AS col1, - NULLIF ( + + 63, - 39 * + MAX ( - 30 ) + 84 )
----
1
-63

query I rowsort
SELECT DISTINCT - + 98 * + - 12 + 7
----
1183

query I rowsort
SELECT ALL + + 23 * + - 38 + + CASE 6 WHEN - 98 + + 63 THEN NULL WHEN 84 * 26 THEN + CASE + 29 WHEN 16 * - 5 THEN - 56 END WHEN 34 THEN NULL END + ( + 69 + 87 ) - 39
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-842
SELECT ALL 14 * CAST( NULL AS SIGNED ) * - + 17 - 18 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL 14 * CAST ( NULL AS INTEGER ) * - + 17 - 18 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT + COUNT( * ) * NULLIF ( - SUM( - - 81 ), + 55 / - COUNT( - 94 ) ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-843
SELECT + COUNT ( * ) * NULLIF ( - SUM ( - - 81 ), + 55 / - COUNT ( - 94 ) ) AS col0
----
-81

query II rowsort
SELECT + 12 + - 51 AS col1, + 79 AS col1
----
-39
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-845
SELECT + NULLIF ( + 70, + + 21 ) - + CAST( 0 AS SIGNED ) * + 68
----
70

skipif mysql # not compatible
query I rowsort label-845
SELECT + NULLIF ( + 70, + + 21 ) - + CAST ( 0 AS INTEGER ) * + 68
----
70

query I rowsort
SELECT + 76 * - + 94
----
-7144

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT - 70 + COUNT( * ) + 16 * + + 33 * + 77 AS col1
----
40587

skipif mysql # not compatible
query I rowsort label-847
SELECT - 70 + COUNT ( * ) + 16 * + + 33 * + 77 AS col1
----
40587

query I rowsort
SELECT DISTINCT 35 * + 84 AS col1
----
2940

query I rowsort
SELECT + 40 * - - 25
----
1000

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL - 37 + + COALESCE ( + 79, + - SUM( 2 ) + - 55 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL - 37 + + COALESCE ( + 79, + - SUM ( 2 ) + - 55 ) AS col0
----
42

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

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT ( + 45 ) + 18 DIV 73 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-852
SELECT ( + 45 ) + 18 / 73 AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-853
SELECT 53 + + - 70, - CAST( + + 97 AS SIGNED ) AS col1
----
-17
-97

skipif mysql # not compatible
query II rowsort label-853
SELECT 53 + + - 70, - CAST ( + + 97 AS INTEGER ) AS col1
----
-17
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-854
SELECT 92 + + COUNT( * ), - 75 AS col2
----
93
-75

skipif mysql # not compatible
query II rowsort label-854
SELECT 92 + + COUNT ( * ), - 75 AS col2
----
93
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-855
SELECT 80 + + + 63 DIV - 63 - - 48 AS col0
----
127

skipif mysql # not compatible
query I rowsort label-855
SELECT 80 + + + 63 / - 63 - - 48 AS col0
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-856
SELECT ALL - - CASE - 26 WHEN 41 THEN NULL ELSE 55 DIV 77 - - COUNT( * ) END + - ( 95 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL - - CASE - 26 WHEN 41 THEN NULL ELSE 55 / 77 - - COUNT ( * ) END + - ( 95 ) AS col2
----
-94

query I rowsort
SELECT 13 * 3 - + 80 AS col2
----
-41

query I rowsort
SELECT ALL + - ( + 41 ) * - + 52
----
2132

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT + + 63 * - COUNT( * ) + - 39 + 1 * + COALESCE ( - 36, + 11 )
----
-138

skipif mysql # not compatible
query I rowsort label-859
SELECT + + 63 * - COUNT ( * ) + - 39 + 1 * + COALESCE ( - 36, + 11 )
----
-138

query I rowsort
SELECT DISTINCT + 91 + 95 * - 50 * + - 61 * - 23
----
-6664159

query I rowsort
SELECT - 79 * - 35 + - 37
----
2728

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT ALL - + 88 * + - ( - 97 ) + COUNT( 65 ) AS col1
----
-8535

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL - + 88 * + - ( - 97 ) + COUNT ( 65 ) AS col1
----
-8535

query I rowsort
SELECT + 2 + + + 12 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT DISTINCT + + 75 - - + COALESCE ( 58, + COUNT( * ) ) - 14
----
119

skipif mysql # not compatible
query I rowsort label-864
SELECT DISTINCT + + 75 - - + COALESCE ( 58, + COUNT ( * ) ) - 14
----
119

query I rowsort
SELECT 59 + + 94 AS col1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT - + ( CASE - 58 WHEN + CASE + 60 WHEN - 52 THEN - CASE CASE 72 WHEN - 9 * + ( 70 ) THEN 68 / - 31 WHEN ( + COUNT( * ) ) * 31 THEN NULL WHEN - 88 + - SUM( DISTINCT + 7 ) THEN NULL ELSE NULL END WHEN + 10 THEN - COUNT( * ) * CASE 79 * 82 WHEN - 80 + - 44 THEN NULL WHEN - 98 THEN NULL ELSE + MIN( + 68 ) * - COUNT( * ) END + 79 END / - 35 ELSE + 66 END + 18 THEN NULL WHEN - 1 THEN COUNT( * ) END ) / + 97 + - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-866
SELECT - + ( CASE - 58 WHEN + CASE + 60 WHEN - 52 THEN - CASE CASE 72 WHEN - 9 * + ( 70 ) THEN 68 / - 31 WHEN ( + COUNT ( * ) ) * 31 THEN NULL WHEN - 88 + - SUM ( DISTINCT + 7 ) THEN NULL ELSE NULL END WHEN + 10 THEN - COUNT ( * ) * CASE 79 * 82 WHEN - 80 + - 44 THEN NULL WHEN - 98 THEN NULL ELSE + MIN ( + 68 ) * - COUNT ( * ) END + 79 END / - 35 ELSE + 66 END + 18 THEN NULL WHEN - 1 THEN COUNT ( * ) END ) / + 97 + - 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT ALL - - COUNT( DISTINCT - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL - - COUNT ( DISTINCT - 85 )
----
1

query I rowsort
SELECT ALL - CASE - 86 WHEN + + 98 * - + 7 THEN + 80 ELSE + 31 + - 88 END col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT CASE 91 WHEN - COUNT( * ) THEN - 42 WHEN + 94 * + 64 + 69 THEN - 59 END * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-869
SELECT CASE 91 WHEN - COUNT ( * ) THEN - 42 WHEN + 94 * + 64 + 69 THEN - 59 END * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT COUNT( * ) * + 44 * 19 AS col0
----
836

skipif mysql # not compatible
query I rowsort label-870
SELECT COUNT ( * ) * + 44 * 19 AS col0
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT ( ( - COUNT( * ) ) ) + + 26
----
25

skipif mysql # not compatible
query I rowsort label-871
SELECT ( ( - COUNT ( * ) ) ) + + 26
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT SUM( DISTINCT - 76 ) + - + 39 + + NULLIF ( + 97, ( + 5 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-872
SELECT SUM ( DISTINCT - 76 ) + - + 39 + + NULLIF ( + 97, ( + 5 ) )
----
-18

query II rowsort
SELECT + 51, 86 + - 77 * + 24 AS col1
----
51
-1762

onlyif mysql # DIV for integer division: 
query I rowsort label-874
SELECT 41 DIV - NULLIF ( + - 44, 40 * - 42 + 84 )
----
0

skipif mysql # not compatible
query I rowsort label-874
SELECT 41 / - NULLIF ( + - 44, 40 * - 42 + 84 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT ALL 29 + + SUM( ALL 48 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL 29 + + SUM ( ALL 48 ) AS col2
----
77

query I rowsort
SELECT DISTINCT 87 + 39 + + 21 + + 38 * - ( + 55 )
----
-1943

onlyif mysql # DIV for integer division: 
query I rowsort label-877
SELECT 67 DIV 4
----
16

skipif mysql # not compatible
query I rowsort label-877
SELECT 67 / 4
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-878
SELECT 38 - + 31 + - - ( 6 ) * + - MIN( ALL - 91 ) DIV 86 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-878
SELECT 38 - + 31 + - - ( 6 ) * + - MIN ( ALL - 91 ) / 86 AS col2
----
13

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

query I rowsort
SELECT 57 + + - 8 + ( + + 91 )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT COUNT( ALL 57 ) + + 70
----
71

skipif mysql # not compatible
query I rowsort label-881
SELECT COUNT ( ALL 57 ) + + 70
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT ALL SUM( - + 93 ) * - 98 * + - NULLIF ( + 59, - 31 ) * 70 + - COALESCE ( + 8 + 11, + ( + ( 46 ) ) - - 87 )
----
-37640839

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL SUM ( - + 93 ) * - 98 * + - NULLIF ( + 59, - 31 ) * 70 + - COALESCE ( + 8 + 11, + ( + ( 46 ) ) - - 87 )
----
-37640839

query I rowsort
SELECT DISTINCT 93 + - 7
----
86

query I rowsort
SELECT ALL - ( 72 ) + 52
----
-20

query I rowsort
SELECT 28 - + 92 + + 98 + 73 AS col1
----
107

query I rowsort
SELECT 74 + - + 67 * - 19 * - 65 + - - 58 + 91 AS col1
----
-82522

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT - COALESCE ( + COUNT( * ), 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-887
SELECT - COALESCE ( + COUNT ( * ), 55 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-888
SELECT - CAST( COALESCE ( - - 72, - 32, + - 83 ) AS SIGNED ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-888
SELECT - CAST ( COALESCE ( - - 72, - 32, + - 83 ) AS INTEGER ) AS col0
----
-72

query I rowsort
SELECT 53 + - 69 AS col0
----
-16

query I rowsort
SELECT 97 - + - 35 col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + COUNT( * ) * COUNT( * ) * - + 61 * - ( + 10 ) + NULLIF ( - 94, - 95 * 4 )
----
516

skipif mysql # not compatible
query I rowsort label-891
SELECT + COUNT ( * ) * COUNT ( * ) * - + 61 * - ( + 10 ) + NULLIF ( - 94, - 95 * 4 )
----
516

query I rowsort
SELECT DISTINCT 44 * 30 * + 71 - + COALESCE ( + + 95, + 53 ) AS col0
----
93625

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT 22 + 53 * - COUNT( * ) * 49 * 80
----
-207738

skipif mysql # not compatible
query I rowsort label-893
SELECT 22 + 53 * - COUNT ( * ) * 49 * 80
----
-207738

onlyif mysql # aggregate syntax: 
query II rowsort label-894
SELECT 53 * + 85 + - 78 AS col2, - COUNT( * ) * + 48 * 42 AS col0
----
4427
-2016

skipif mysql # not compatible
query II rowsort label-894
SELECT 53 * + 85 + - 78 AS col2, - COUNT ( * ) * + 48 * 42 AS col0
----
4427
-2016

query I rowsort
SELECT + 19 + + 84 + + ( - COALESCE ( + 51, + 22 * - 69 + - 14 ) ) AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-896
SELECT 56 * - 36 * 81 - 97 + - 31 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-896
SELECT 56 * - 36 * 81 - 97 + - 31 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-899
SELECT + 39 col2, - 28 - + CAST( - CAST( CAST( ( + 2 ) AS SIGNED ) AS SIGNED ) AS SIGNED ) + - 32 * + CASE + 89 * 57 WHEN 63 / COUNT( * ) THEN + CAST( NULL AS SIGNED ) / + 58 + + 25 * - 20 ELSE NULL END AS col1
----
39
NULL

skipif mysql # not compatible
query II rowsort label-899
SELECT + 39 col2, - 28 - + CAST ( - CAST ( CAST ( ( + 2 ) AS INTEGER ) AS INTEGER ) AS INTEGER ) + - 32 * + CASE + 89 * 57 WHEN 63 / COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) / + 58 + + 25 * - 20 ELSE NULL END AS col1
----
39
NULL

query I rowsort
SELECT ALL + ( + 23 ) * - 68
----
-1564

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-902
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col0, 86 * + - 62
----
NULL
-5332

skipif mysql # not compatible
query II rowsort label-902
SELECT DISTINCT + CAST ( NULL AS REAL ) col0, 86 * + - 62
----
NULL
-5332

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

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

query II rowsort
SELECT - 59 + + 16, - 26 + - 41 col0
----
-43
-67

query I rowsort
SELECT 37 * 68 * - 9 + + 54 AS col1
----
-22590

query II rowsort
SELECT ALL + 28, 86 * + + 92 AS col1
----
28
7912

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT DISTINCT - ( COUNT( * ) ) + - + 92 - - 52 + + + 83 * - NULLIF ( + 58, - ( 16 ) / 21 )
----
-4855

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT - ( COUNT ( * ) ) + - + 92 - - 52 + + + 83 * - NULLIF ( + 58, - ( 16 ) / 21 )
----
-4855

query I rowsort
SELECT - 23 + 26
----
3

query I rowsort
SELECT ALL - 73 + + 44 - - + 27 AS col1
----
-2

query I rowsort
SELECT + 5 - - 75
----
80

query I rowsort
SELECT + ( 5 ) + - - 78 + + 95 * 63 AS col2
----
6068

query II rowsort
SELECT ALL + 1 + + 66, ( 84 ) * 64 col2
----
67
5376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-913
SELECT - 72 col0, 19 + + CASE 82 WHEN + COUNT( DISTINCT - + 9 ) - 72 THEN - 27 * + CASE 24 WHEN + 12 THEN NULL WHEN + 70 + - 58 * - 93 THEN NULL WHEN + 73 THEN 42 + 2 WHEN - 70 * - 54 THEN 88 ELSE NULL END WHEN 76 THEN NULL ELSE 30 * - 96 END + 3 * CAST( - COUNT( * ) AS SIGNED )
----
-72
-2864

skipif mysql # not compatible
query II rowsort label-913
SELECT - 72 col0, 19 + + CASE 82 WHEN + COUNT ( DISTINCT - + 9 ) - 72 THEN - 27 * + CASE 24 WHEN + 12 THEN NULL WHEN + 70 + - 58 * - 93 THEN NULL WHEN + 73 THEN 42 + 2 WHEN - 70 * - 54 THEN 88 ELSE NULL END WHEN 76 THEN NULL ELSE 30 * - 96 END + 3 * CAST ( - COUNT ( * ) AS INTEGER )
----
-72
-2864

query I rowsort
SELECT DISTINCT + 19 + + 73 * 67 AS col2
----
4910

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

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

query I rowsort
SELECT + - 60 * - 48
----
2880

onlyif mysql # aggregate syntax: 
query II rowsort label-917
SELECT DISTINCT 43 AS col2, - COUNT( * ) - - 13 AS col2
----
43
12

skipif mysql # not compatible
query II rowsort label-917
SELECT DISTINCT 43 AS col2, - COUNT ( * ) - - 13 AS col2
----
43
12

query I rowsort
SELECT - + 91 * 66 AS col0
----
-6006

onlyif mysql # aggregate syntax: 
query II rowsort label-919
SELECT - 82 AS col0, 38 * + MAX( + 30 ) AS col0
----
-82
1140

skipif mysql # not compatible
query II rowsort label-919
SELECT - 82 AS col0, 38 * + MAX ( + 30 ) AS col0
----
-82
1140

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-920
SELECT + - 11 DIV + 9 AS col1, - CASE + COUNT( + 73 ) WHEN + + SUM( + 18 ) * - 21 THEN - 41 END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-920
SELECT + - 11 / + 9 AS col1, - CASE + COUNT ( + 73 ) WHEN + + SUM ( + 18 ) * - 21 THEN - 41 END
----
-1
NULL

query I rowsort
SELECT - 1 + 67 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT - - NULLIF ( - + COUNT( * ), + 33 * - + 69 * 1 * + ( + 33 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-922
SELECT - - NULLIF ( - + COUNT ( * ), + 33 * - + 69 * 1 * + ( + 33 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT ALL + SUM( + 57 ) col0
----
57

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL + SUM ( + 57 ) col0
----
57

query I rowsort
SELECT ALL 72 * + 20 * + - 12 AS col0
----
-17280

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT + - MAX( 28 ) + - - 86
----
58

skipif mysql # not compatible
query I rowsort label-925
SELECT + - MAX ( 28 ) + - - 86
----
58

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

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

query I rowsort
SELECT - NULLIF ( + + 19, + - 69 ) * + - 3 + + 94 * 39 + + 66 * - 96 AS col2
----
-2613

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT DISTINCT + - COUNT( - 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-929
SELECT DISTINCT + - COUNT ( - 14 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-930
SELECT - 0 + 4 + - 89 DIV - 97 + + 17 * - + CAST( 22 AS SIGNED )
----
-370

skipif mysql # not compatible
query I rowsort label-930
SELECT - 0 + 4 + - 89 / - 97 + + 17 * - + CAST ( 22 AS INTEGER )
----
-370

query I rowsort
SELECT ALL + 74 * - - ( - - 36 ) + + - 89 * + NULLIF ( - 59, - - 97 ) AS col0
----
7915

query I rowsort
SELECT ALL 46 * 27 * - 80 + - + 52 AS col0
----
-99412

query I rowsort
SELECT DISTINCT + 91 * - - 33 + 14 * 98 AS col2
----
4375

query II rowsort
SELECT ALL - 78 * - + 23 AS col2, - 20 - + + 95 + 26 AS col2
----
1794
-89

query I rowsort
SELECT - 11 * ( + ( - + 84 ) ) AS col2
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT NULLIF ( 25, COUNT( * ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-936
SELECT NULLIF ( 25, COUNT ( * ) ) AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-937
SELECT + 99 DIV NULLIF ( - 68, - 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-937
SELECT + 99 / NULLIF ( - 68, - 54 )
----
-1

query I rowsort
SELECT ALL + 33 * 71 AS col0
----
2343

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT + 75 * - COUNT( * ) * - 94 AS col1
----
7050

skipif mysql # not compatible
query I rowsort label-939
SELECT + 75 * - COUNT ( * ) * - 94 AS col1
----
7050

query I rowsort
SELECT - 81 + - 30 AS col1
----
-111

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-941
SELECT NULLIF ( + 56, + 18 + - - CAST( + + CAST( - + 13 AS SIGNED ) AS DECIMAL ) / - + 74 / 9 )
----
56

skipif mysql # not compatible
query I rowsort label-941
SELECT NULLIF ( + 56, + 18 + - - CAST ( + + CAST ( - + 13 AS INTEGER ) AS REAL ) / - + 74 / 9 )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-942
SELECT ALL ( + 36 ) col1, COUNT( * ) DIV COUNT( * ) AS col2
----
36
1

skipif mysql # not compatible
query II rowsort label-942
SELECT ALL ( + 36 ) col1, COUNT ( * ) / COUNT ( * ) AS col2
----
36
1

query I rowsort
SELECT - 45 * + 50
----
-2250

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT ALL - 70 * - COUNT( * ) * - ( + 2 )
----
-140

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL - 70 * - COUNT ( * ) * - ( + 2 )
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-945
SELECT ALL CASE + 42 WHEN + + CAST( NULL AS SIGNED ) THEN - 80 WHEN + 98 THEN NULL WHEN 81 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL CASE + 42 WHEN + + CAST ( NULL AS INTEGER ) THEN - 80 WHEN + 98 THEN NULL WHEN 81 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + - 69, 20 + - 64 ) col0
----
-69

query I rowsort
SELECT ALL - ( - 42 ) * + 44
----
1848

onlyif mysql # aggregate syntax: 
query II rowsort label-948
SELECT - - ( - + 11 ) - - - 75 AS col2, + MAX( - 14 ) AS col2
----
-86
-14

skipif mysql # not compatible
query II rowsort label-948
SELECT - - ( - + 11 ) - - - 75 AS col2, + MAX ( - 14 ) AS col2
----
-86
-14

query I rowsort
SELECT - 32 * - 40 - 48
----
1232

onlyif mysql # aggregate syntax: 
query II rowsort label-950
SELECT - - MAX( ALL + 24 ) AS col2, + COUNT( * ) col0
----
24
1

skipif mysql # not compatible
query II rowsort label-950
SELECT - - MAX ( ALL + 24 ) AS col2, + COUNT ( * ) col0
----
24
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-951
SELECT - MIN( ALL 91 ) + CAST( CASE 14 WHEN NULLIF ( 0, 62 ) THEN ( - 21 ) + - 45 WHEN CASE 63 WHEN - 97 THEN 28 / - 47 WHEN - 67 + 13 THEN NULL ELSE NULL END THEN NULL WHEN 49 THEN NULL END AS SIGNED ) + - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-951
SELECT - MIN ( ALL 91 ) + CAST ( CASE 14 WHEN NULLIF ( 0, 62 ) THEN ( - 21 ) + - 45 WHEN CASE 63 WHEN - 97 THEN 28 / - 47 WHEN - 67 + 13 THEN NULL ELSE NULL END THEN NULL WHEN 49 THEN NULL END AS INTEGER ) + - 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT - 98 * + - MAX( + - 50 ) + - + COUNT( * ) + 79 * 17
----
-3558

skipif mysql # not compatible
query I rowsort label-952
SELECT - 98 * + - MAX ( + - 50 ) + - + COUNT ( * ) + 79 * 17
----
-3558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-953
SELECT DISTINCT + - 68 * - - COUNT( * ) + + + 28 DIV COUNT( * ) col0
----
-40

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT + - 68 * - - COUNT ( * ) + + + 28 / COUNT ( * ) col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-954
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + 51 / - MIN( - ( - 22 ) ) * CAST( NULL AS DECIMAL ) + + - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-954
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 51 / - MIN ( - ( - 22 ) ) * CAST ( NULL AS REAL ) + + - 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-955
SELECT ALL SUM( ALL - 62 ) AS col0, NULLIF ( - 77, + 62 * + + 70 * - + ( 72 ) + 95 + - 88 ) AS col1
----
-62
-77

skipif mysql # not compatible
query II rowsort label-955
SELECT ALL SUM ( ALL - 62 ) AS col0, NULLIF ( - 77, + 62 * + + 70 * - + ( 72 ) + 95 + - 88 ) AS col1
----
-62
-77

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

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

query I rowsort
SELECT DISTINCT + 82 * - COALESCE ( - 6, 65 ) col2
----
492

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

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

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

query I rowsort
SELECT - 1 * 6 + + 31 AS col2
----
25

query II rowsort
SELECT - - 69 + ( - 98 ) AS col2, - 98 * - 3
----
-29
294

query I rowsort
SELECT - COALESCE ( 27, + 61 ) * - 9 col0
----
243

query I rowsort
SELECT + 89 - - 26 AS col1
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-964
SELECT ALL - 67 + + - 88 + - 27 * + 67 + COUNT( DISTINCT + 73 ) + - CAST( NULL AS SIGNED ) * + COUNT( * ) * - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL - 67 + + - 88 + - 27 * + 67 + COUNT ( DISTINCT + 73 ) + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - 14 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + ( + 31 ) AS col1
----
-31

query I rowsort
SELECT ALL - NULLIF ( + NULLIF ( - + 5, + - 97 * - - 77 ), - 34 + 82 + 3 ) AS col0
----
5

query I rowsort
SELECT 48 * - + COALESCE ( + 84, 93 ) * COALESCE ( + + 68, + ( + - 40 ) ) + 72 AS col2
----
-274104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-968
SELECT + 54 DIV 71 + + SUM( ALL 48 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-968
SELECT + 54 / 71 + + SUM ( ALL 48 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-969
SELECT DISTINCT COUNT( + 74 ) + 65 * + 67, MIN( COALESCE ( - - 85, - + 77 ) ) + 56 AS col2
----
4356
141

skipif mysql # not compatible
query II rowsort label-969
SELECT DISTINCT COUNT ( + 74 ) + 65 * + 67, MIN ( COALESCE ( - - 85, - + 77 ) ) + 56 AS col2
----
4356
141

query I rowsort
SELECT DISTINCT 76 + 72 AS col1
----
148

query II rowsort
SELECT + 99, 14 * - 99 AS col1
----
99
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT SUM( ( - 53 ) ) + - + ( + ( + + 47 ) ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-972
SELECT SUM ( ( - 53 ) ) + - + ( + ( + + 47 ) ) AS col2
----
-100

query I rowsort
SELECT 66 + - 63 AS col2
----
3

query I rowsort
SELECT ALL 63 - + ( - 97 ) * 50
----
4913

query I rowsort
SELECT 73 + - 53 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT CASE + 76 WHEN - ( 69 ) THEN 34 WHEN - - 31 + 50 + COUNT( * ) + + ( + 82 + COALESCE ( - COUNT( * ) + 32, 55, 16, + 53 ) ) THEN - 77 END * NULLIF ( 60, - 37 - - 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-976
SELECT CASE + 76 WHEN - ( 69 ) THEN 34 WHEN - - 31 + 50 + COUNT ( * ) + + ( + 82 + COALESCE ( - COUNT ( * ) + 32, 55, 16, + 53 ) ) THEN - 77 END * NULLIF ( 60, - 37 - - 55 )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-978
SELECT DISTINCT - 24 AS col0, - CAST( NULL AS SIGNED ) - + COALESCE ( + 53, ( COUNT( DISTINCT + - 77 ) ) + + 80 - + 51 * MAX( ALL - 44 * 67 ) * + 85, + NULLIF ( MIN( ALL - 18 ), - 98 * 38 + - ( + 6 ) ) ) + CAST( NULL AS SIGNED ) * MAX( DISTINCT - 30 * - 77 ) AS col2
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-978
SELECT DISTINCT - 24 AS col0, - CAST ( NULL AS INTEGER ) - + COALESCE ( + 53, ( COUNT ( DISTINCT + - 77 ) ) + + 80 - + 51 * MAX ( ALL - 44 * 67 ) * + 85, + NULLIF ( MIN ( ALL - 18 ), - 98 * 38 + - ( + 6 ) ) ) + CAST ( NULL AS INTEGER ) * MAX ( DISTINCT - 30 * - 77 ) AS col2
----
-24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT ALL 28 - + MAX( ALL + - 52 ) + - 13 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-979
SELECT ALL 28 - + MAX ( ALL + - 52 ) + - 13 AS col1
----
67

query I rowsort
SELECT 1 + - CASE + + ( + 22 ) WHEN 28 THEN 23 + NULLIF ( - - 22, 89 + 99 ) + - 24 WHEN 94 + - 66 THEN NULL END + - 9 * - 95 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-982
SELECT 8 DIV 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-982
SELECT 8 / 40 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT ( + - 62 ) * - 93 * 63 + + COUNT( * ) + + 50
----
363309

skipif mysql # not compatible
query I rowsort label-983
SELECT ( + - 62 ) * - 93 * 63 + + COUNT ( * ) + + 50
----
363309

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT - 30 + + 66 - - COUNT( * ) * - - 21 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-984
SELECT - 30 + + 66 - - COUNT ( * ) * - - 21 AS col0
----
57

query I rowsort
SELECT 59 * - ( 34 ) + + 65
----
-1941

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT NULLIF ( + COUNT( * ), 71 ) + - 43 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-986
SELECT NULLIF ( + COUNT ( * ), 71 ) + - 43 AS col0
----
-42

query II rowsort
SELECT - - 90 AS col0, ( - + 44 )
----
90
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT ALL - MAX( 57 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL - MAX ( 57 ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT SUM( - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-989
SELECT SUM ( - 48 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT ALL + NULLIF ( + 67, - MAX( - 44 ) ) * - + CASE + - 64 WHEN 64 THEN NULL ELSE - + NULLIF ( 22, + 10 ) END
----
1474

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL + NULLIF ( + 67, - MAX ( - 44 ) ) * - + CASE + - 64 WHEN 64 THEN NULL ELSE - + NULLIF ( 22, + 10 ) END
----
1474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-991
SELECT 82 + + ( 11 ) - 72 DIV MAX( - 95 ) + - 18
----
75

skipif mysql # not compatible
query I rowsort label-991
SELECT 82 + + ( 11 ) - 72 / MAX ( - 95 ) + - 18
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-992
SELECT ALL 40 AS col1, CASE - 85 WHEN + - 59 THEN + COUNT( * ) ELSE NULL END + + 64
----
40
NULL

skipif mysql # not compatible
query II rowsort label-992
SELECT ALL 40 AS col1, CASE - 85 WHEN + - 59 THEN + COUNT ( * ) ELSE NULL END + + 64
----
40
NULL

query I rowsort
SELECT 59 * + 89 AS col2
----
5251

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

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

query I rowsort
SELECT ALL - 78 + + + 17
----
-61

query II rowsort
SELECT 20, 11 + ( + 31 ) - - - 7 * + 92 AS col1
----
20
-602

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT COUNT( DISTINCT 36 ) + + + COALESCE ( - - 96, 31 * - 99 )
----
97

skipif mysql # not compatible
query I rowsort label-997
SELECT COUNT ( DISTINCT 36 ) + + + COALESCE ( - - 96, 31 * - 99 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-998
SELECT 7 * + CAST( + 88 AS SIGNED ) + - + 48
----
568

skipif mysql # not compatible
query I rowsort label-998
SELECT 7 * + CAST ( + 88 AS INTEGER ) + - + 48
----
568

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT ALL + 87 DIV - 49 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL + 87 / - 49 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1000
SELECT 38 DIV + + COUNT( * ) + + + 37
----
75

skipif mysql # not compatible
query I rowsort label-1000
SELECT 38 / + + COUNT ( * ) + + + 37
----
75

query I rowsort
SELECT 82 * + 82 AS col2
----
6724

query I rowsort
SELECT 97 + + ( 29 ) col1
----
126

query I rowsort
SELECT - + CASE + 49 WHEN + 80 / + + 55 THEN + 3 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT ALL - COUNT( * ) + - ( - COALESCE ( + 40, + 88, - 54 + 25 ) ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL - COUNT ( * ) + - ( - COALESCE ( + 40, + 88, - 54 + 25 ) ) AS col2
----
39

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

query I rowsort
SELECT ( 34 ) * 69
----
2346

onlyif mysql # DIV for integer division: 
query I rowsort label-1008
SELECT ALL + 14 DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL + 14 / + 38
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( - + 71, 79 )
----
71

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

skipif mysql # not compatible
query I rowsort label-1010
SELECT MIN ( ALL - + 32 ) * + - COUNT ( * ) AS col2
----
32

query I rowsort
SELECT 73 * - ( + 59 )
----
-4307

query I rowsort
SELECT DISTINCT - COALESCE ( + CASE + 54 WHEN + 94 * + 68 THEN NULL WHEN 72 THEN + 10 * 67 END, - - 94 * 56, - ( + 83 ) ) AS col0
----
-5264

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT DISTINCT - COALESCE ( + - MIN( 25 ), - + 75 )
----
25

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT - COALESCE ( + - MIN ( 25 ), - + 75 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT ALL COUNT( * ) * - 43 col2
----
-43

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL COUNT ( * ) * - 43 col2
----
-43

query I rowsort
SELECT ALL + 43 * 78
----
3354

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT DISTINCT MAX( + + 28 ) * + 68
----
1904

skipif mysql # not compatible
query I rowsort label-1016
SELECT DISTINCT MAX ( + + 28 ) * + 68
----
1904

query I rowsort
SELECT ( - 90 ) * + 62
----
-5580

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1019
SELECT ALL 77 / - - CAST( NULL AS SIGNED ) - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL 77 / - - CAST ( NULL AS INTEGER ) - 99 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1020
SELECT - 39 * + 46 + + - CAST( NULL AS SIGNED ) * - + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1020
SELECT - 39 * + 46 + + - CAST ( NULL AS INTEGER ) * - + 19
----
NULL

query I rowsort
SELECT ALL 4 + + - 32 + - - 50
----
22

query I rowsort
SELECT 76 + - - 29 AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT + 44 * COUNT( * ) * 82
----
3608

skipif mysql # not compatible
query I rowsort label-1023
SELECT + 44 * COUNT ( * ) * 82
----
3608

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1024
SELECT DISTINCT ( - 18 ) + + - 20 - - 87 DIV 84 AS col1, + 27 + + + 85 + + 13 DIV + SUM( - 76 ) + COUNT( * ) DIV COUNT( * )
----
-37
113

skipif mysql # not compatible
query II rowsort label-1024
SELECT DISTINCT ( - 18 ) + + - 20 - - 87 / 84 AS col1, + 27 + + + 85 + + 13 / + SUM ( - 76 ) + COUNT ( * ) / COUNT ( * )
----
-37
113

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT + + 52 + + 87 * - COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-1025
SELECT + + 52 + + 87 * - COUNT ( * ) AS col1
----
-35

query I rowsort
SELECT DISTINCT 62 * + 56 AS col2
----
3472

query I rowsort
SELECT ALL - + 59 + - 79 * - 74 AS col1
----
5787

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1028
SELECT DISTINCT - CASE 56 WHEN 79 THEN NULL ELSE 68 * ( + 56 ) + - 52 + - NULLIF ( - 39, 36 * 56 ) DIV 96 + + ( + 93 ) END + + 73 * COUNT( DISTINCT 5 + - 39 ) AS col1
----
-3776

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT - CASE 56 WHEN 79 THEN NULL ELSE 68 * ( + 56 ) + - 52 + - NULLIF ( - 39, 36 * 56 ) / 96 + + ( + 93 ) END + + 73 * COUNT ( DISTINCT 5 + - 39 ) AS col1
----
-3776

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT DISTINCT - ( - + ( - + 85 ) ) + - MAX( DISTINCT ( 14 ) ) * - 25 - + 3 * - COUNT( 21 ) AS col0
----
268

skipif mysql # not compatible
query I rowsort label-1029
SELECT DISTINCT - ( - + ( - + 85 ) ) + - MAX ( DISTINCT ( 14 ) ) * - 25 - + 3 * - COUNT ( 21 ) AS col0
----
268

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT ALL COUNT( * ) + 33 + 96
----
130

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL COUNT ( * ) + 33 + 96
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1031
SELECT - CASE + 86 WHEN + + 25 THEN NULL WHEN + CAST( + 66 AS SIGNED ) + - 63 THEN + 91 - + 42 ELSE + 88 END AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-1031
SELECT - CASE + 86 WHEN + + 25 THEN NULL WHEN + CAST ( + 66 AS INTEGER ) + - 63 THEN + 91 - + 42 ELSE + 88 END AS col1
----
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1032
SELECT - CAST( NULL AS DECIMAL ) * + - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT - CAST ( NULL AS REAL ) * + - 85 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL - 74 - + 21
----
-95

query I rowsort
SELECT - ( - ( + 4 ) ) * + 17 AS col2
----
68

query II rowsort
SELECT ALL + COALESCE ( + - COALESCE ( - 85, 54, - + 93 ), + 88 ), + 89 AS col2
----
85
89

query I rowsort
SELECT - 70 - ( - - 28 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT DISTINCT - COUNT( * ) * - 94 col1
----
94

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT - COUNT ( * ) * - 94 col1
----
94

query I rowsort
SELECT DISTINCT - 29 * + - 95
----
2755

query I rowsort
SELECT - 5 + - 96
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT ALL - 11 * - - ( - 91 ) * - COUNT( * )
----
-1001

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL - 11 * - - ( - 91 ) * - COUNT ( * )
----
-1001

query I rowsort
SELECT ALL + 56 * 58
----
3248

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1044
SELECT - 16 - - + COALESCE ( + + 43, + 63 ) DIV - 80 * MIN( ALL - 1 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-1044
SELECT - 16 - - + COALESCE ( + + 43, + 63 ) / - 80 * MIN ( ALL - 1 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-1045
SELECT DISTINCT + NULLIF ( + - 23, + 47 * MIN( DISTINCT 49 ) ), - 26 AS col1
----
-23
-26

skipif mysql # not compatible
query II rowsort label-1045
SELECT DISTINCT + NULLIF ( + - 23, + 47 * MIN ( DISTINCT 49 ) ), - 26 AS col1
----
-23
-26

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

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

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

query I rowsort
SELECT + 51 * + ( + 61 ) AS col1
----
3111

onlyif mysql # DIV for integer division: 
query I rowsort label-1049
SELECT - ( 51 ) + + + ( - 1 ) - - 72 * 32 DIV + - 91 col1
----
-77

skipif mysql # not compatible
query I rowsort label-1049
SELECT - ( 51 ) + + + ( - 1 ) - - 72 * 32 / + - 91 col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT ALL COUNT( * ) * + 9 + + 29 * - 78
----
-2253

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL COUNT ( * ) * + 9 + + 29 * - 78
----
-2253

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT - 56 + + - 92 + 7 + - COUNT( * ) * + - 6 - + - NULLIF ( - - SUM( DISTINCT 16 ), + 88 * - 90 + + 76 )
----
-119

skipif mysql # not compatible
query I rowsort label-1051
SELECT - 56 + + - 92 + 7 + - COUNT ( * ) * + - 6 - + - NULLIF ( - - SUM ( DISTINCT 16 ), + 88 * - 90 + + 76 )
----
-119

query II rowsort
SELECT DISTINCT 45 * + 4 + - 95, 80 AS col0
----
85
80

query II rowsort
SELECT ALL + 63, + 38 AS col0
----
63
38

onlyif mysql # aggregate syntax: 
query II rowsort label-1054
SELECT ALL - 38 * 44 + + + COUNT( * ) col0, 55 AS col1
----
-1671
55

skipif mysql # not compatible
query II rowsort label-1054
SELECT ALL - 38 * 44 + + + COUNT ( * ) col0, 55 AS col1
----
-1671
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT + 3 * - COUNT( * ) + - COUNT( * ) + + CASE 11 WHEN - + COUNT( * ) THEN - 82 WHEN + 12 - + ( 1 ) THEN NULL WHEN 72 THEN NULL ELSE + 99 END * 63 * MAX( DISTINCT 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1055
SELECT + 3 * - COUNT ( * ) + - COUNT ( * ) + + CASE 11 WHEN - + COUNT ( * ) THEN - 82 WHEN + 12 - + ( 1 ) THEN NULL WHEN 72 THEN NULL ELSE + 99 END * 63 * MAX ( DISTINCT 85 )
----
NULL

query I rowsort
SELECT ALL - - 16 * + 83 + 36 AS col2
----
1364

query I rowsort
SELECT DISTINCT + 53 * 41 + 90 * - CASE 66 WHEN 15 THEN NULL ELSE 92 + + + 61 END * - + NULLIF ( - 91, - 13 )
----
-1250897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1058
SELECT DISTINCT - - MAX( DISTINCT - 15 ) * - 20 + 16 + CAST( COALESCE ( - 75, - CAST( - 73 AS SIGNED ) - - 80 ) AS SIGNED ) col0
----
241

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT - - MAX ( DISTINCT - 15 ) * - 20 + 16 + CAST ( COALESCE ( - 75, - CAST ( - 73 AS INTEGER ) - - 80 ) AS INTEGER ) col0
----
241

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1059
SELECT - + 75 AS col2, CAST( NULL AS DECIMAL )
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-1059
SELECT - + 75 AS col2, CAST ( NULL AS REAL )
----
-75
NULL

query I rowsort
SELECT - + ( + 23 ) * - - 69 * + - 90
----
142830

query I rowsort
SELECT + + 76 + + + 61
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT ALL + 30 * - - 69 + - COUNT( * ) + + COUNT( * )
----
2070

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL + 30 * - - 69 + - COUNT ( * ) + + COUNT ( * )
----
2070

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1063
SELECT - - 22 col2, + 63 * + COALESCE ( 44, + 52 ) * - CAST( + 89 AS SIGNED ) * + 87
----
22
-21463596

skipif mysql # not compatible
query II rowsort label-1063
SELECT - - 22 col2, + 63 * + COALESCE ( 44, + 52 ) * - CAST ( + 89 AS INTEGER ) * + 87
----
22
-21463596

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1064
SELECT ALL + NULLIF ( - MAX( - 26 ), - 96 - - ( 90 ) * - 11 ) + - ( - 61 ) + 46 + 93 * - CAST( NULL AS DECIMAL ) * - 81 * - AVG ( ALL 60 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL + NULLIF ( - MAX ( - 26 ), - 96 - - ( 90 ) * - 11 ) + - ( - 61 ) + 46 + 93 * - CAST ( NULL AS REAL ) * - 81 * - AVG ( ALL 60 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT ALL + MAX( DISTINCT - - 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL + MAX ( DISTINCT - - 45 ) AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1066
SELECT DISTINCT - 88 - + + CAST( 45 AS SIGNED ) * + 21 AS col0
----
-1033

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT - 88 - + + CAST ( 45 AS INTEGER ) * + 21 AS col0
----
-1033

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1067
SELECT DISTINCT 96 / + 62 * CAST( NULL AS SIGNED ), + ( + + 74 ) + + - 92 AS col1
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-1067
SELECT DISTINCT 96 / + 62 * CAST ( NULL AS INTEGER ), + ( + + 74 ) + + - 92 AS col1
----
NULL
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1068
SELECT ALL CAST( 90 AS SIGNED ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL CAST ( 90 AS INTEGER ) AS col1
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-1069
SELECT + - ( + 37 ) DIV - ( ( + 90 ) ) col0, + 16 * + COALESCE ( 51, 54 - - 12 - 44 * - 12 ) AS col2
----
0
816

skipif mysql # not compatible
query II rowsort label-1069
SELECT + - ( + 37 ) / - ( ( + 90 ) ) col0, + 16 * + COALESCE ( 51, 54 - - 12 - 44 * - 12 ) AS col2
----
0
816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1070
SELECT + - 49 * + COALESCE ( CAST( NULL AS SIGNED ), ( + - CASE + COUNT( * ) WHEN NULLIF ( + - 63, 65 ) + 45 - - 43 / 56 / 27 THEN 57 * 46 - + 11 * + 3 WHEN CAST( - 68 AS SIGNED ) THEN 27 * + 27 END ) + - 82 * 85, 64 ) * - 3 + 87
----
9495

skipif mysql # not compatible
query I rowsort label-1070
SELECT + - 49 * + COALESCE ( CAST ( NULL AS INTEGER ), ( + - CASE + COUNT ( * ) WHEN NULLIF ( + - 63, 65 ) + 45 - - 43 / 56 / 27 THEN 57 * 46 - + 11 * + 3 WHEN CAST ( - 68 AS INTEGER ) THEN 27 * + 27 END ) + - 82 * 85, 64 ) * - 3 + 87
----
9495

query I rowsort
SELECT ALL - 44 * - ( + - 95 ) AS col0
----
-4180

query I rowsort
SELECT + 83 + - - 2 AS col2
----
85

query I rowsort
SELECT + CASE + 85 WHEN - 65 THEN - 89 ELSE NULL END * - 81 col2
----
NULL

query I rowsort
SELECT DISTINCT 88 * - 89
----
-7832

query I rowsort
SELECT + 53 * - 57
----
-3021

query I rowsort
SELECT ALL 59 * - 94 * - 18 AS col2
----
99828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1077
SELECT DISTINCT NULLIF ( + + 74, - - 60 * + CAST( NULL AS SIGNED ) + - 84 + - 85 ) AS col2, 17 * - 75 * 76 AS col0, CASE + 45 WHEN + 46 * + COUNT( * ) THEN + 27 ELSE + 82 END + 49 col2
----
74
-96900
131

skipif mysql # not compatible
query III rowsort label-1077
SELECT DISTINCT NULLIF ( + + 74, - - 60 * + CAST ( NULL AS INTEGER ) + - 84 + - 85 ) AS col2, 17 * - 75 * 76 AS col0, CASE + 45 WHEN + 46 * + COUNT ( * ) THEN + 27 ELSE + 82 END + 49 col2
----
74
-96900
131

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL CASE - 1 WHEN + - 24 + + 35 * - 25 THEN NULL WHEN + 74 THEN + 92 WHEN + ( + 27 ) THEN NULL WHEN ( - + COUNT( * ) ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL CASE - 1 WHEN + - 24 + + 35 * - 25 THEN NULL WHEN + 74 THEN + 92 WHEN + ( + 27 ) THEN NULL WHEN ( - + COUNT ( * ) ) THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1079
SELECT + CAST( NULL AS DECIMAL ) + - NULLIF ( + 97, + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1079
SELECT + CAST ( NULL AS REAL ) + - NULLIF ( + 97, + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 52 * - 31
----
-1612

query II rowsort
SELECT - NULLIF ( 2, - + 99 + + ( - - 93 ) ) + + 7 col1, 0
----
5
0

query I rowsort
SELECT + 93 * + 53 * - 29 AS col2
----
-142941

onlyif mysql # aggregate syntax: 
query II rowsort label-1083
SELECT ALL + COUNT( * ) col2, + 68 - + ( - 75 ) + + 56 * - - 39 AS col2
----
1
2327

skipif mysql # not compatible
query II rowsort label-1083
SELECT ALL + COUNT ( * ) col2, + 68 - + ( - 75 ) + + 56 * - - 39 AS col2
----
1
2327

query II rowsort
SELECT DISTINCT + 49, + 12 * COALESCE ( - 17, - 70, + 52 + + 10 * - 66 ) * + + 60 + - 30 + ( + 98 ) AS col1
----
49
-12172

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

skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT + COUNT ( 40 ) AS col1
----
1

query I rowsort
SELECT + 63 * - - 10 AS col2
----
630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1087
SELECT - 69 + - CASE - SUM( ALL 4 ) WHEN - 81 + - 41 THEN 49 / 87 END - 97 * - CAST( 58 AS SIGNED ) * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-1087
SELECT - 69 + - CASE - SUM ( ALL 4 ) WHEN - 81 + - 41 THEN 49 / 87 END - 97 * - CAST ( 58 AS INTEGER ) * 88
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1088
SELECT DISTINCT 3 DIV - 7 * + 63 + 86, 52 + + - 87 AS col0
----
86
-35

skipif mysql # not compatible
query II rowsort label-1088
SELECT DISTINCT 3 / - 7 * + 63 + 86, 52 + + - 87 AS col0
----
86
-35

query I rowsort
SELECT DISTINCT + ( 15 ) AS col1
----
15

query II rowsort
SELECT - 33 * 71 * - 61 * ( + ( - 93 ) ) AS col1, + 68 * + 86 * + - 71
----
-13291839
-415208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1091
SELECT 65 AS col2, + CASE + - 81 WHEN + CASE - 16 WHEN - CAST( - 61 AS DECIMAL ) + - COALESCE ( - CAST( NULL AS SIGNED ), - 71 * 37 / ( COUNT( * ) ) - 40 - + COALESCE ( - 80, + 60 * - 6 ) / + ( + 82 * + 22 ) ) / + ( - COALESCE ( 84, COALESCE ( COUNT( * ), - 66 ) * - 78 + + 29, + 4 ) ) THEN - COUNT( * ) WHEN 69 / 63 THEN + AVG ( 53 ) + ( 52 + - 28 ) * 46 ELSE NULL END * + 63 - 76 THEN 22 WHEN 18 THEN NULL WHEN - 33 + + 7 * 21 THEN NULL END
----
65
NULL

skipif mysql # not compatible
query II rowsort label-1091
SELECT 65 AS col2, + CASE + - 81 WHEN + CASE - 16 WHEN - CAST ( - 61 AS REAL ) + - COALESCE ( - CAST ( NULL AS INTEGER ), - 71 * 37 / ( COUNT ( * ) ) - 40 - + COALESCE ( - 80, + 60 * - 6 ) / + ( + 82 * + 22 ) ) / + ( - COALESCE ( 84, COALESCE ( COUNT ( * ), - 66 ) * - 78 + + 29, + 4 ) ) THEN - COUNT ( * ) WHEN 69 / 63 THEN + AVG ( 53 ) + ( 52 + - 28 ) * 46 ELSE NULL END * + 63 - 76 THEN 22 WHEN 18 THEN NULL WHEN - 33 + + 7 * 21 THEN NULL END
----
65
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1092
SELECT 60 DIV - 84 - 9
----
-9

skipif mysql # not compatible
query I rowsort label-1092
SELECT 60 / - 84 - 9
----
-9

query I rowsort
SELECT - 99 * + + 13
----
-1287

query II rowsort
SELECT + 8 AS col2, + 41 * 93 + + + 34 AS col1
----
8
3847

onlyif mysql # DIV for integer division: 
query I rowsort label-1095
SELECT - 26 DIV 42 col0
----
0

skipif mysql # not compatible
query I rowsort label-1095
SELECT - 26 / 42 col0
----
0

query I rowsort
SELECT ALL + COALESCE ( + - ( + - 47 ), - 65 ) + 91 AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT DISTINCT + + COUNT( * ) + + - 87 * 63
----
-5480

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT + + COUNT ( * ) + + - 87 * 63
----
-5480

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

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

query I rowsort
SELECT 16 * 11 + + - 8
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1101
SELECT ALL - 48 * + 72 + + + 80 DIV - 51 + + + 47 * - ( + CAST( - + COUNT( * ) AS SIGNED ) )
----
-3410

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL - 48 * + 72 + + + 80 / - 51 + + + 47 * - ( + CAST ( - + COUNT ( * ) AS INTEGER ) )
----
-3410

onlyif mysql # DIV for integer division: 
query I rowsort label-1102
SELECT ALL + COALESCE ( + 82, + + 26 * - + 93 + + 48 DIV - 27 * + 14 * 33 * 74, 69 + + - 58 * + 28 )
----
82

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL + COALESCE ( + 82, + + 26 * - + 93 + + 48 / - 27 * + 14 * 33 * 74, 69 + + - 58 * + 28 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1103
SELECT - + CAST( + + 8 AS SIGNED ) * 51 * 48 + 51 + + 37
----
-19496

skipif mysql # not compatible
query I rowsort label-1103
SELECT - + CAST ( + + 8 AS INTEGER ) * 51 * 48 + 51 + + 37
----
-19496

query II rowsort
SELECT - - 5, 76 - + 22 * 57 AS col0
----
5
-1178

query I rowsort
SELECT ALL - 15 * 57 AS col1
----
-855

query I rowsort
SELECT - 72 + + ( + + 6 ) AS col2
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT MIN( DISTINCT - - 1 ) + - 93 * ( - 7 )
----
652

skipif mysql # not compatible
query I rowsort label-1108
SELECT MIN ( DISTINCT - - 1 ) + - 93 * ( - 7 )
----
652

query I rowsort
SELECT ALL - 28 * - 53 * + - 7
----
-10388

onlyif mysql # DIV for integer division: 
query I rowsort label-1110
SELECT 76 DIV 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1110
SELECT 76 / 81 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1111
SELECT ( - 50 ) + - + 46 DIV + 82 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1111
SELECT ( - 50 ) + - + 46 / + 82 AS col2
----
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT MIN( + 21 ) + COUNT( * ) + - - 14 * 21 AS col1
----
316

skipif mysql # not compatible
query I rowsort label-1113
SELECT MIN ( + 21 ) + COUNT ( * ) + - - 14 * 21 AS col1
----
316

onlyif mysql # aggregate syntax: 
query II rowsort label-1114
SELECT ALL 34 * - 28 AS col0, + COUNT( * )
----
-952
1

skipif mysql # not compatible
query II rowsort label-1114
SELECT ALL 34 * - 28 AS col0, + COUNT ( * )
----
-952
1

query I rowsort
SELECT ALL 45 + - 78 + - CASE + - 55 WHEN CASE - 30 WHEN + 87 THEN + + 78 / + - 21 * + + 28 + - 15 END THEN 49 * 80 WHEN - 16 + + 34 THEN ( 76 ) + 93 END
----
NULL

query I rowsort
SELECT DISTINCT 4 + - 65 - + + 94 AS col2
----
-155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1117
SELECT DISTINCT - CAST( - 21 AS SIGNED ) + 78 * 5 AS col1
----
411

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT - CAST ( - 21 AS INTEGER ) + 78 * 5 AS col1
----
411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1118
SELECT ALL 98 * + CAST( - ( - + 20 ) AS SIGNED )
----
1960

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL 98 * + CAST ( - ( - + 20 ) AS INTEGER )
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT NULLIF ( - 62, + COUNT( ALL 30 ) * 22 * - 72 )
----
-62

skipif mysql # not compatible
query I rowsort label-1119
SELECT NULLIF ( - 62, + COUNT ( ALL 30 ) * 22 * - 72 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT ALL COALESCE ( - 29, + 75 + + NULLIF ( - 3, 6 + 95 ) ) + - - 27 * - COUNT( + NULLIF ( - 61, + - 40 ) ) + 92 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL COALESCE ( - 29, + 75 + + NULLIF ( - 3, 6 + 95 ) ) + - - 27 * - COUNT ( + NULLIF ( - 61, + - 40 ) ) + 92 AS col2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1121
SELECT - 19 * + + 68 + 82 + + 76 + + 67 DIV 5 * - 6 + - COALESCE ( - 93, 1 + + + COALESCE ( - 97, + 78 ), - COUNT( * ) + 79 )
----
-1119

skipif mysql # not compatible
query I rowsort label-1121
SELECT - 19 * + + 68 + 82 + + 76 + + 67 / 5 * - 6 + - COALESCE ( - 93, 1 + + + COALESCE ( - 97, + 78 ), - COUNT ( * ) + 79 )
----
-1119

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT COUNT( ALL 54 ) - + 80 + + - ( - - 40 )
----
-119

skipif mysql # not compatible
query I rowsort label-1122
SELECT COUNT ( ALL 54 ) - + 80 + + - ( - - 40 )
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT 9 * COUNT( * ) + 16 - - - 20
----
5

skipif mysql # not compatible
query I rowsort label-1123
SELECT 9 * COUNT ( * ) + 16 - - - 20
----
5

query I rowsort
SELECT - 40 + 36
----
-4

query I rowsort
SELECT ALL + 34 + 2
----
36

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

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

query II rowsort
SELECT DISTINCT 28 - - 12 AS col1, + 77
----
40
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1128
SELECT ALL + 43 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL + 43 / 58
----
0

query I rowsort
SELECT ALL 46 - - - 29
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT + + NULLIF ( + 56, - + 71 ) * - - COUNT( * ) + 97 col1
----
153

skipif mysql # not compatible
query I rowsort label-1130
SELECT + + NULLIF ( + 56, - + 71 ) * - - COUNT ( * ) + 97 col1
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1131
SELECT DISTINCT + + NULLIF ( 6, COUNT( * ) ) * - - COUNT( * ) DIV - 67 * + 51
----
0

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT + + NULLIF ( 6, COUNT ( * ) ) * - - COUNT ( * ) / - 67 * + 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT DISTINCT + 60 - - COUNT( * ) * 94 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT + 60 - - COUNT ( * ) * 94 AS col2
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-1133
SELECT DISTINCT MIN( DISTINCT - - 32 ), COUNT( * ) AS col0
----
32
1

skipif mysql # not compatible
query II rowsort label-1133
SELECT DISTINCT MIN ( DISTINCT - - 32 ), COUNT ( * ) AS col0
----
32
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT + MIN( ALL - 39 ) * + + 35 col0
----
-1365

skipif mysql # not compatible
query I rowsort label-1134
SELECT + MIN ( ALL - 39 ) * + + 35 col0
----
-1365

query II rowsort
SELECT - 95, 61 col1
----
-95
61

query I rowsort
SELECT ALL + 52 + + + 7 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT 75 - + 84 * + SUM( DISTINCT + + 22 ) AS col0
----
-1773

skipif mysql # not compatible
query I rowsort label-1137
SELECT 75 - + 84 * + SUM ( DISTINCT + + 22 ) AS col0
----
-1773

query II rowsort
SELECT 55 AS col0, 45
----
55
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT 82 + + - 92 * - - COUNT( ALL + 56 ) + + 12
----
2

skipif mysql # not compatible
query I rowsort label-1139
SELECT 82 + + - 92 * - - COUNT ( ALL + 56 ) + + 12
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT COUNT( * ) + - 28 + - 31 col2
----
-58

skipif mysql # not compatible
query I rowsort label-1140
SELECT COUNT ( * ) + - 28 + - 31 col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT DISTINCT COUNT( * ) + + - 72
----
-71

skipif mysql # not compatible
query I rowsort label-1141
SELECT DISTINCT COUNT ( * ) + + - 72
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT ALL + 98 + - ( + 67 ) * 79 * - ( - ( - MAX( DISTINCT + - 78 ) ) ) + - 37 + + 37 * + - 77 + + + 54
----
-415588

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL + 98 + - ( + 67 ) * 79 * - ( - ( - MAX ( DISTINCT + - 78 ) ) ) + - 37 + + 37 * + - 77 + + + 54
----
-415588

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT ALL CASE - + COUNT( * ) WHEN 22 + + AVG ( + 42 ) THEN + 39 / - - 61 ELSE NULL END + - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL CASE - + COUNT ( * ) WHEN 22 + + AVG ( + 42 ) THEN + 39 / - - 61 ELSE NULL END + - 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT DISTINCT + 80 + - 3 + - 57 * + + ( + - COUNT( * ) ) - + 32 + + + 52 * - 57 AS col2
----
-2862

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT + 80 + - 3 + - 57 * + + ( + - COUNT ( * ) ) - + 32 + + + 52 * - 57 AS col2
----
-2862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1145
SELECT 17 + - CAST( + 0 AS SIGNED ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-1145
SELECT 17 + - CAST ( + 0 AS INTEGER ) AS col2
----
17

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

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

query I rowsort
SELECT DISTINCT COALESCE ( + 42, - 31 )
----
42

query I rowsort
SELECT ALL + 53 + + 9
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT NULLIF ( - ( + SUM( + 18 ) ), + ( - - ( + 63 ) ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1149
SELECT NULLIF ( - ( + SUM ( + 18 ) ), + ( - - ( + 63 ) ) ) AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1150
SELECT 17 DIV - ( + 92 ) + - CAST( + + 49 AS SIGNED ) + - 22 + - MAX( ALL + 24 ) + + + ( 36 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1150
SELECT 17 / - ( + 92 ) + - CAST ( + + 49 AS INTEGER ) + - 22 + - MAX ( ALL + 24 ) + + + ( 36 ) AS col2
----
-59

query II rowsort
SELECT DISTINCT + 78, CASE 59 WHEN - + 66 THEN 76 + - 19 END * + 85 AS col0
----
78
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT ALL + - CASE - 9 WHEN - 64 THEN 14 * - ( - - 76 ) - + + ( + - NULLIF ( 95, + + NULLIF ( + 14, - - 55 ) ) ) END * + 70 + + 32 + COUNT( * ) * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL + - CASE - 9 WHEN - 64 THEN 14 * - ( - - 76 ) - + + ( + - NULLIF ( 95, + + NULLIF ( + 14, - - 55 ) ) ) END * + 70 + + 32 + COUNT ( * ) * 55
----
NULL

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

query I rowsort
SELECT + + 94 * - 29 + + 42 AS col1
----
-2684

query II rowsort
SELECT ALL + - 77 AS col1, 21
----
-77
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1157
SELECT + 47 DIV + COUNT( ALL - + ( - 32 ) )
----
47

skipif mysql # not compatible
query I rowsort label-1157
SELECT + 47 / + COUNT ( ALL - + ( - 32 ) )
----
47

query I rowsort
SELECT ALL 17 * + 89
----
1513

query I rowsort
SELECT ALL - 14 * - 18
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1160
SELECT DISTINCT + + CASE + - 52 WHEN - COUNT( * ) * + + 65 THEN - + 39 * CAST( - 9 AS SIGNED ) + 85 + - + 10 + - + AVG ( 37 ) WHEN + 74 * + + 45 + 87 * - ( 12 / + ( 46 ) ) + + 6 THEN - 30 * 92 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT + + CASE + - 52 WHEN - COUNT ( * ) * + + 65 THEN - + 39 * CAST ( - 9 AS INTEGER ) + 85 + - + 10 + - + AVG ( 37 ) WHEN + 74 * + + 45 + 87 * - ( 12 / + ( 46 ) ) + + 6 THEN - 30 * 92 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT DISTINCT + SUM( ALL 50 ) * COUNT( * ) * - 97
----
-4850

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT + SUM ( ALL 50 ) * COUNT ( * ) * - 97
----
-4850

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT + COUNT( * ) * - 53 * + 60 * + 23 * - + 42 AS col1
----
3071880

skipif mysql # not compatible
query I rowsort label-1162
SELECT + COUNT ( * ) * - 53 * + 60 * + 23 * - + 42 AS col1
----
3071880

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT ALL + MIN( - - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL + MIN ( - - 22 )
----
22

query I rowsort
SELECT + + 42 - - 46 + 28 AS col0
----
116

query II rowsort
SELECT - 5 AS col1, 91
----
-5
91

query II rowsort
SELECT + 61 AS col0, - 85
----
61
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1167
SELECT + + CASE + 97 WHEN - - ( SUM( + 12 ) ) * - NULLIF ( 34, + ( + NULLIF ( 16, + 70 ) ) ) * + + 79 + - - 73 + + 74 / 65 + - COUNT( * ) + - 65 THEN NULL WHEN 72 + + 0 THEN NULL ELSE 59 END * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1167
SELECT + + CASE + 97 WHEN - - ( SUM ( + 12 ) ) * - NULLIF ( 34, + ( + NULLIF ( 16, + 70 ) ) ) * + + 79 + - - 73 + + 74 / 65 + - COUNT ( * ) + - 65 THEN NULL WHEN 72 + + 0 THEN NULL ELSE 59 END * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1168
SELECT DISTINCT + - 28, + MIN( DISTINCT - + ( - + 0 ) ) AS col2
----
-28
0

skipif mysql # not compatible
query II rowsort label-1168
SELECT DISTINCT + - 28, + MIN ( DISTINCT - + ( - + 0 ) ) AS col2
----
-28
0

query I rowsort
SELECT DISTINCT + 65 * + - 98
----
-6370

query I rowsort
SELECT ALL + NULLIF ( + ( - 35 ), - 60 ) AS col1
----
-35

query I rowsort
SELECT + 24 * + 6 - - - 99 - NULLIF ( 11, 72 + - - 66 + + 81 )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1172
SELECT ALL + 38 DIV + + 23
----
1

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL + 38 / + + 23
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT - ( - - 39 ) - 4 - + ( + COUNT( * ) ) + MAX( - + 24 ) - + 37 AS col1
----
-105

skipif mysql # not compatible
query I rowsort label-1173
SELECT - ( - - 39 ) - 4 - + ( + COUNT ( * ) ) + MAX ( - + 24 ) - + 37 AS col1
----
-105

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

skipif mysql # not compatible
query I rowsort label-1174
SELECT - CAST ( NULL AS INTEGER ) / + 9 col2
----
NULL

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

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

query I rowsort
SELECT - COALESCE ( 74, - ( 15 ) )
----
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-1177
SELECT + ( + 76 ) + + COALESCE ( + 97, 21 DIV 58 + + + 97 ) + 50 + 6 AS col2, + 6
----
229
6

skipif mysql # not compatible
query II rowsort label-1177
SELECT + ( + 76 ) + + COALESCE ( + 97, 21 / 58 + + + 97 ) + 50 + 6 AS col2, + 6
----
229
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1178
SELECT ALL MIN( DISTINCT 78 ) col0, COUNT( * ) + 71 AS col1
----
78
72

skipif mysql # not compatible
query II rowsort label-1178
SELECT ALL MIN ( DISTINCT 78 ) col0, COUNT ( * ) + 71 AS col1
----
78
72

query I rowsort
SELECT DISTINCT - 39 + + 36 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT DISTINCT + CASE - 48 WHEN - 44 THEN + + COUNT( * ) ELSE NULL END + - + COUNT( DISTINCT - 94 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT DISTINCT + CASE - 48 WHEN - 44 THEN + + COUNT ( * ) ELSE NULL END + - + COUNT ( DISTINCT - 94 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT DISTINCT MAX( ALL - - 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1181
SELECT DISTINCT MAX ( ALL - - 7 ) AS col2
----
7

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1184
SELECT DISTINCT - COUNT( * ) DIV - 7 * 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT - COUNT ( * ) / - 7 * 64 AS col0
----
0

query I rowsort
SELECT - 92 + - + 29 AS col0
----
-121

query II rowsort
SELECT ALL - 21 + + 73 AS col1, 61
----
52
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1187
SELECT - 98 + + + 0 + 57 + + ( + 95 ) DIV - 5 col2
----
-60

skipif mysql # not compatible
query I rowsort label-1187
SELECT - 98 + + + 0 + 57 + + ( + 95 ) / - 5 col2
----
-60

query I rowsort
SELECT DISTINCT + 49 * 37
----
1813

query I rowsort
SELECT + COALESCE ( - 61, + + 74 ) * + + 40
----
-2440

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1191
SELECT ALL + - CAST( COUNT( * ) AS SIGNED ) * 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL + - CAST ( COUNT ( * ) AS INTEGER ) * 0 AS col0
----
0

query I rowsort
SELECT - 52 * 87 - - 10 AS col2
----
-4514

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1194
SELECT - 2 * + + 6 DIV - 53 - - 83 * - 29
----
-2407

skipif mysql # not compatible
query I rowsort label-1194
SELECT - 2 * + + 6 / - 53 - - 83 * - 29
----
-2407

onlyif mysql # aggregate syntax: 
query II rowsort label-1195
SELECT + - ( + + MAX( 57 ) ) * + + 19, - 97 AS col1
----
-1083
-97

skipif mysql # not compatible
query II rowsort label-1195
SELECT + - ( + + MAX ( 57 ) ) * + + 19, - 97 AS col1
----
-1083
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT 71 * - + COUNT( * ) * - ( 81 ) + + 90 AS col1
----
5841

skipif mysql # not compatible
query I rowsort label-1196
SELECT 71 * - + COUNT ( * ) * - ( 81 ) + + 90 AS col1
----
5841

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT + - 66 - + 74 * + 16 * + - CASE + 10 WHEN - - 25 THEN - 16 * - 53 WHEN + 18 + 14 + + COUNT( ALL + 43 ) * - 71 + COUNT( * ) THEN NULL ELSE 88 DIV 91 END AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1197
SELECT + - 66 - + 74 * + 16 * + - CASE + 10 WHEN - - 25 THEN - 16 * - 53 WHEN + 18 + 14 + + COUNT ( ALL + 43 ) * - 71 + COUNT ( * ) THEN NULL ELSE 88 / 91 END AS col2
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1198
SELECT DISTINCT SUM( DISTINCT + 42 ) DIV MAX( DISTINCT 98 ), ( + 23 ) + - COUNT( * ) DIV - - 79 AS col0
----
0
23

skipif mysql # not compatible
query II rowsort label-1198
SELECT DISTINCT SUM ( DISTINCT + 42 ) / MAX ( DISTINCT 98 ), ( + 23 ) + - COUNT ( * ) / - - 79 AS col0
----
0
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1199
SELECT + 85 DIV 67 + - COALESCE ( COUNT( * ), - + 4 + 4 - - 78 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1199
SELECT + 85 / 67 + - COALESCE ( COUNT ( * ), - + 4 + 4 - - 78 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT + + ( - MIN( 73 ) ) * + + COUNT( * ) + NULLIF ( + 51, - 9 ) * - - 19 - + ( - 92 )
----
988

skipif mysql # not compatible
query I rowsort label-1200
SELECT + + ( - MIN ( 73 ) ) * + + COUNT ( * ) + NULLIF ( + 51, - 9 ) * - - 19 - + ( - 92 )
----
988

query I rowsort
SELECT - 34 * + - 54 AS col0
----
1836

onlyif mysql # DIV for integer division: 
query I rowsort label-1202
SELECT + - 22 + 21 DIV 71
----
-22

skipif mysql # not compatible
query I rowsort label-1202
SELECT + - 22 + 21 / 71
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1203
SELECT ALL 78 * 5 - - - COUNT( * ) DIV + - 3 * - 47 col2
----
390

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL 78 * 5 - - - COUNT ( * ) / + - 3 * - 47 col2
----
390

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

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

query II rowsort
SELECT + 61 + - 46 AS col0, - 91
----
15
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT DISTINCT 51 * + 86 + ( - - 24 ) + - - 39 * COUNT( * )
----
4449

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT 51 * + 86 + ( - - 24 ) + - - 39 * COUNT ( * )
----
4449

query I rowsort
SELECT - 18 * - + 47
----
846

query II rowsort
SELECT + - 81 + - 76 + - ( - 38 ) AS col1, 23
----
-119
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT + 59 + - 85 * - 67 * - 37 * COUNT( * ) + - 40
----
-210696

skipif mysql # not compatible
query I rowsort label-1209
SELECT + 59 + - 85 * - 67 * - 37 * COUNT ( * ) + - 40
----
-210696

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1210
SELECT + COALESCE ( 12, + + CAST( NULL AS SIGNED ) + + + 92 + + 5 DIV COALESCE ( + 81, - + 55 ) * - 31 * 98, - 10 * - + 18 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1210
SELECT + COALESCE ( 12, + + CAST ( NULL AS INTEGER ) + + + 92 + + 5 / COALESCE ( + 81, - + 55 ) * - 31 * 98, - 10 * - + 18 ) AS col1
----
12

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

skipif mysql # not compatible
query I rowsort label-1211
SELECT + COUNT ( - 19 ) + + 0 AS col2
----
1

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

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

query I rowsort
SELECT - 52 + + + 47
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1214
SELECT - ( - - CASE - 24 WHEN + 63 * 71 + 0 THEN NULL ELSE + + 36 * - - NULLIF ( - + 72, + MAX( ALL + 70 ) ) + - 50 + - 10 / + - CAST( NULL AS SIGNED ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1214
SELECT - ( - - CASE - 24 WHEN + 63 * 71 + 0 THEN NULL ELSE + + 36 * - - NULLIF ( - + 72, + MAX ( ALL + 70 ) ) + - 50 + - 10 / + - CAST ( NULL AS INTEGER ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT CASE - - COUNT( * ) WHEN + 66 + 94 THEN - + AVG ( - - 93 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1215
SELECT CASE - - COUNT ( * ) WHEN + 66 + 94 THEN - + AVG ( - - 93 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT MIN( - - 92 ) col0
----
92

skipif mysql # not compatible
query I rowsort label-1216
SELECT MIN ( - - 92 ) col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1217
SELECT ALL - 64 * - + COUNT( * ) * - 20 + + + 24 + 74 DIV 79 + + 54 col0
----
-1202

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL - 64 * - + COUNT ( * ) * - 20 + + + 24 + 74 / 79 + + 54 col0
----
-1202

query I rowsort
SELECT ALL - 25 * + + 77
----
-1925

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT + 81 * + + ( 60 ) * 8 * - COUNT( - 76 ) AS col0
----
-38880

skipif mysql # not compatible
query I rowsort label-1220
SELECT + 81 * + + ( 60 ) * 8 * - COUNT ( - 76 ) AS col0
----
-38880

query I rowsort
SELECT - 86 * + 45
----
-3870

onlyif mysql # DIV for integer division: 
query III rowsort label-1222
SELECT 7 + + 30 + - + 89 - - + 31 DIV - 37 AS col0, - 86, - 41 AS col1
----
-52
-86
-41

skipif mysql # not compatible
query III rowsort label-1222
SELECT 7 + + 30 + - + 89 - - + 31 / - 37 AS col0, - 86, - 41 AS col1
----
-52
-86
-41

query II rowsort
SELECT 17 AS col2, 76 * + 28
----
17
2128

query I rowsort
SELECT 26 * + 22 AS col0
----
572

query II rowsort
SELECT ALL COALESCE ( + + 35, + 12, + 42 ) * 25, - 19 * 38 + 37 AS col2
----
875
-685

query I rowsort
SELECT ALL + 36 - 41
----
-5

query I rowsort
SELECT + 16 + + - CASE + - 38 WHEN + 10 + 81 * - 5 THEN - 34 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1228
SELECT ALL - - COUNT( * ) * - 75 * COUNT( * ) DIV + - 62 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL - - COUNT ( * ) * - 75 * COUNT ( * ) / + - 62 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT CASE + + 69 WHEN + COUNT( * ) THEN NULL WHEN - CASE + 16 WHEN COUNT( * ) THEN + - MAX( - 86 ) END THEN + - 40 END + - - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1229
SELECT CASE + + 69 WHEN + COUNT ( * ) THEN NULL WHEN - CASE + 16 WHEN COUNT ( * ) THEN + - MAX ( - 86 ) END THEN + - 40 END + - - 37 AS col0
----
NULL

query I rowsort
SELECT - - ( - - 57 )
----
57

query II rowsort
SELECT DISTINCT - - 35 AS col1, 25 AS col2
----
35
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT ALL - 31 * - - COUNT( - 34 ) + ( + 49 ) * + 91 * - 0 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL - 31 * - - COUNT ( - 34 ) + ( + 49 ) * + 91 * - 0 AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1233
SELECT DISTINCT - CAST( - 44 AS SIGNED ) * - 33 + - + 3 * - - 27 AS col1, 96 * + 22 AS col2
----
-1533
2112

skipif mysql # not compatible
query II rowsort label-1233
SELECT DISTINCT - CAST ( - 44 AS INTEGER ) * - 33 + - + 3 * - - 27 AS col1, 96 * + 22 AS col2
----
-1533
2112

query I rowsort
SELECT DISTINCT - - 66 col2
----
66

query II rowsort
SELECT DISTINCT - 77 AS col2, 81
----
-77
81

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1237
SELECT - COALESCE ( + + COALESCE ( + 46, + CASE - 24 WHEN 58 THEN NULL ELSE + 75 END DIV - + 82, - ( + - COUNT( DISTINCT 59 ) ) * COUNT( * ) ), + 14, + 68 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-1237
SELECT - COALESCE ( + + COALESCE ( + 46, + CASE - 24 WHEN 58 THEN NULL ELSE + 75 END / - + 82, - ( + - COUNT ( DISTINCT 59 ) ) * COUNT ( * ) ), + 14, + 68 ) AS col2
----
-46

query I rowsort
SELECT ALL + 79 + 49 AS col2
----
128

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

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

query I rowsort
SELECT ALL - - 61 + 4 + + - ( 68 )
----
-3

query I rowsort
SELECT - 25 - + 99
----
-124

query I rowsort
SELECT 21 * + COALESCE ( - 88, 73 ) AS col2
----
-1848

query II rowsort
SELECT 41, - 62 AS col1
----
41
-62

query I rowsort
SELECT DISTINCT 76 + + - 55 AS col0
----
21

query I rowsort
SELECT ALL ( + 60 ) + - 21 AS col0
----
39

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

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

query II rowsort
SELECT DISTINCT + 21 - + + 42 AS col1, + ( 58 ) AS col2
----
-21
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1248
SELECT ALL 99 - - 44 + + + 73 * - 58 / + 73 / - 2 * COALESCE ( + + 30, + 80 * 28, - 84 ) + - + 52 + + CASE NULLIF ( 9, + 27 ) WHEN 22 THEN 70 / + 63 WHEN - CAST( NULL AS DECIMAL ) THEN - COALESCE ( + COUNT( * ), - MAX( DISTINCT - 4 ) ) * + 4 END + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL 99 - - 44 + + + 73 * - 58 / + 73 / - 2 * COALESCE ( + + 30, + 80 * 28, - 84 ) + - + 52 + + CASE NULLIF ( 9, + 27 ) WHEN 22 THEN 70 / + 63 WHEN - CAST ( NULL AS REAL ) THEN - COALESCE ( + COUNT ( * ), - MAX ( DISTINCT - 4 ) ) * + 4 END + 31 AS col0
----
NULL

query II rowsort
SELECT - 55, 3 AS col2
----
-55
3

query II rowsort
SELECT ALL 59 col0, + 7 + - 17
----
59
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-1251
SELECT 10 + + NULLIF ( SUM( + + ( + - 30 ) ), + 86 * + - COUNT( * ) ), + COUNT( * ) AS col1
----
-20
1

skipif mysql # not compatible
query II rowsort label-1251
SELECT 10 + + NULLIF ( SUM ( + + ( + - 30 ) ), + 86 * + - COUNT ( * ) ), + COUNT ( * ) AS col1
----
-20
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT 45 * + MAX( ALL 95 ) AS col1
----
4275

skipif mysql # not compatible
query I rowsort label-1252
SELECT 45 * + MAX ( ALL 95 ) AS col1
----
4275

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

skipif mysql # not compatible
query I rowsort label-1253
SELECT COUNT ( * ) + + COUNT ( * ) + - 31 AS col0
----
-29

query II rowsort
SELECT DISTINCT 18 AS col2, - 15 + 61
----
18
46

query I rowsort
SELECT ALL 21 - + 44 AS col1
----
-23

query I rowsort
SELECT 35 * + 46 AS col1
----
1610

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT DISTINCT - NULLIF ( + 2, + 82 + + 85 ) * - - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT - NULLIF ( + 2, + 82 + + 85 ) * - - COUNT ( * )
----
-2

query I rowsort
SELECT 41 + + 45 + + - 27
----
59

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

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

query I rowsort
SELECT + 57 * 35
----
1995

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT 72 * + CASE COUNT( * ) WHEN COUNT( * ) * - MIN( ALL - 46 ) + - 85 THEN + 55 / 94 - - - COUNT( * ) + + 94 * + - 3 + 11 / 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1262
SELECT 72 * + CASE COUNT ( * ) WHEN COUNT ( * ) * - MIN ( ALL - 46 ) + - 85 THEN + 55 / 94 - - - COUNT ( * ) + + 94 * + - 3 + 11 / 62 END
----
NULL

query I rowsort
SELECT DISTINCT - 93 * + 44 + + 40 AS col0
----
-4052

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT COUNT( ALL - - 94 ) + - CASE COALESCE ( 6, NULLIF ( - - COUNT( * ), + - 38 * - - 54 + + 7 ) + - 34 + 56 ) WHEN - 0 THEN + ( COUNT( * ) ) ELSE NULL END + + + 23 / 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1265
SELECT COUNT ( ALL - - 94 ) + - CASE COALESCE ( 6, NULLIF ( - - COUNT ( * ), + - 38 * - - 54 + + 7 ) + - 34 + 56 ) WHEN - 0 THEN + ( COUNT ( * ) ) ELSE NULL END + + + 23 / 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT + 63 * 78 + - - COUNT( * ) col0
----
4915

skipif mysql # not compatible
query I rowsort label-1266
SELECT + 63 * 78 + - - COUNT ( * ) col0
----
4915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1267
SELECT DISTINCT - 33 * + 71 + + CAST( + + 84 AS SIGNED )
----
-2259

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT - 33 * + 71 + + CAST ( + + 84 AS INTEGER )
----
-2259

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT + 16 - - 98 * - + NULLIF ( 24, + + 34 * - - 51 - - 1 + + 72 / + NULLIF ( + COALESCE ( + COUNT( * ), - 92 * + 33, - + 24 - + - 28 ), - - 72 ) ) AS col2
----
-2336

skipif mysql # not compatible
query I rowsort label-1268
SELECT + 16 - - 98 * - + NULLIF ( 24, + + 34 * - - 51 - - 1 + + 72 / + NULLIF ( + COALESCE ( + COUNT ( * ), - 92 * + 33, - + 24 - + - 28 ), - - 72 ) ) AS col2
----
-2336

query II rowsort
SELECT DISTINCT + 15 AS col0, 41 AS col0
----
15
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1270
SELECT - 18 DIV + 99 + - 28 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1270
SELECT - 18 / + 99 + - 28 AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1271
SELECT ALL - 50 DIV - CAST( NULL AS SIGNED ), 84 DIV + 36 DIV + - COUNT( * ) AS col1
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-1271
SELECT ALL - 50 / - CAST ( NULL AS INTEGER ), 84 / + 36 / + - COUNT ( * ) AS col1
----
NULL
-2

query II rowsort
SELECT + 30 AS col0, + 48
----
30
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT - 96 + - 76 - - MIN( + 40 ) + - 70 + + + COUNT( * ) * 71
----
-131

skipif mysql # not compatible
query I rowsort label-1273
SELECT - 96 + - 76 - - MIN ( + 40 ) + - 70 + + + COUNT ( * ) * 71
----
-131

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

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

skipif mysql # not compatible
query II rowsort label-1275
SELECT 11 AS col1, - COUNT ( * )
----
11
-1

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

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL - 31 * - COUNT ( * ) + + 85 AS col0
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-1277
SELECT 53 * COUNT( * ) + + + ( 28 ) * - + 51 + 90, + 29 AS col2
----
-1285
29

skipif mysql # not compatible
query II rowsort label-1277
SELECT 53 * COUNT ( * ) + + + ( 28 ) * - + 51 + 90, + 29 AS col2
----
-1285
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT - 79 - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-1278
SELECT - 79 - COUNT ( * )
----
-80

query II rowsort
SELECT + 31 col1, - 60 - 72
----
31
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1280
SELECT - + 10 * 58 + + 68 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1280
SELECT - + 10 * 58 + + 68 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1281
SELECT ALL - 26 * + 10 + - CAST( + 14 AS SIGNED ) + ( + - 5 )
----
-279

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL - 26 * + 10 + - CAST ( + 14 AS INTEGER ) + ( + - 5 )
----
-279

query II rowsort
SELECT 1 * 88, ( + + 83 ) AS col1
----
88
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT DISTINCT - 52 - - 27 + + ( + + ( + + 95 ) ) * - + COUNT( * )
----
-120

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT - 52 - - 27 + + ( + + ( + + 95 ) ) * - + COUNT ( * )
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-1284
SELECT ALL - CASE - - 35 WHEN 80 THEN NULL WHEN - + 66 / 41 THEN 42 - + - 87 ELSE NULL END AS col2, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1284
SELECT ALL - CASE - - 35 WHEN 80 THEN NULL WHEN - + 66 / 41 THEN 42 - + - 87 ELSE NULL END AS col2, + COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT 71 * - - 34 + 50 AS col1
----
2464

query I rowsort
SELECT 91 * 59 AS col1
----
5369

query II rowsort
SELECT 26 * - 86 AS col0, - 31
----
-2236
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT COUNT( * ) + 87 + - ( + 91 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1288
SELECT COUNT ( * ) + 87 + - ( + 91 ) AS col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1289
SELECT + 63 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1289
SELECT + 63 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 75 + 74 * - 41
----
-3109

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1291
SELECT DISTINCT + CAST( COALESCE ( + NULLIF ( - 56, + 9 ), + 28 + - 25 ) AS SIGNED ) DIV + ( - ( + - 41 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1291
SELECT DISTINCT + CAST ( COALESCE ( + NULLIF ( - 56, + 9 ), + 28 + - 25 ) AS INTEGER ) / + ( - ( + - 41 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1292
SELECT - 27 DIV MIN( + - 92 )
----
0

skipif mysql # not compatible
query I rowsort label-1292
SELECT - 27 / MIN ( + - 92 )
----
0

query I rowsort
SELECT ALL 39 * - 83 AS col2
----
-3237

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT DISTINCT + MAX( 16 ) * + 67
----
1072

skipif mysql # not compatible
query I rowsort label-1294
SELECT DISTINCT + MAX ( 16 ) * + 67
----
1072

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

skipif mysql # not compatible
query I rowsort label-1295
SELECT + 21 + + COUNT ( * ) AS col1
----
22

query I rowsort
SELECT DISTINCT - 27 * 22
----
-594

query I rowsort
SELECT ALL - COALESCE ( - - 59, - 21 ) AS col2
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1298
SELECT - 69 - COUNT( * ) + - + 33 DIV - 51 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-1298
SELECT - 69 - COUNT ( * ) + - + 33 / - 51 AS col2
----
-70

query I rowsort
SELECT DISTINCT + 73 + - + 29
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT ALL CASE - 25 WHEN COUNT( DISTINCT - 8 ) - 68 THEN + + 37 WHEN 88 THEN NULL ELSE - + 41 END AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL CASE - 25 WHEN COUNT ( DISTINCT - 8 ) - 68 THEN + + 37 WHEN 88 THEN NULL ELSE - + 41 END AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1301
SELECT + - ( - 17 ) * - 40, - 47 + - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
-680
-47

skipif mysql # not compatible
query II rowsort label-1301
SELECT + - ( - 17 ) * - 40, - 47 + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
-680
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-1302
SELECT ALL - 40 + - 89 DIV ( - 43 )
----
-38

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL - 40 + - 89 / ( - 43 )
----
-38

query II rowsort
SELECT - ( - 96 ) col1, 47
----
96
47

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1305
SELECT DISTINCT CAST( + 49 AS SIGNED ) + 51 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT CAST ( + 49 AS INTEGER ) + 51 AS col1
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-1306
SELECT + COUNT( * ) + + 99 * COUNT( * ) AS col2, - NULLIF ( - 79, + COUNT( * ) ) AS col2
----
100
79

skipif mysql # not compatible
query II rowsort label-1306
SELECT + COUNT ( * ) + + 99 * COUNT ( * ) AS col2, - NULLIF ( - 79, + COUNT ( * ) ) AS col2
----
100
79

query I rowsort
SELECT DISTINCT - 34 * 95 + - 37
----
-3267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1308
SELECT ALL + CAST( + CASE + + ( - 9 ) WHEN 56 * + + ( - - CASE CAST( NULL AS SIGNED ) WHEN + SUM( ALL - 89 ) THEN + - 87 WHEN COUNT( * ) + + 92 * + + NULLIF ( + COUNT( * ), - AVG ( ALL - 9 ) * ( - 66 ) ) THEN NULL WHEN - 5 * - ( 31 ) + + 35 * - 58 THEN 89 + 4 END ) THEN + 75 ELSE NULL END AS SIGNED ) * + 24 - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL + CAST ( + CASE + + ( - 9 ) WHEN 56 * + + ( - - CASE CAST ( NULL AS INTEGER ) WHEN + SUM ( ALL - 89 ) THEN + - 87 WHEN COUNT ( * ) + + 92 * + + NULLIF ( + COUNT ( * ), - AVG ( ALL - 9 ) * ( - 66 ) ) THEN NULL WHEN - 5 * - ( 31 ) + + 35 * - 58 THEN 89 + 4 END ) THEN + 75 ELSE NULL END AS INTEGER ) * + 24 - 62
----
NULL

query II rowsort
SELECT ALL + 27 * 48 AS col2, 38 AS col1
----
1296
38

query I rowsort
SELECT + 41 * - - 28
----
1148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1311
SELECT DISTINCT + MAX( 60 ) DIV - + 20 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT + MAX ( 60 ) / - + 20 AS col2
----
-3

query I rowsort
SELECT + 17 * 40 AS col0
----
680

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1313
SELECT ALL + CAST( 31 AS SIGNED ) DIV + 62 + 93 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL + CAST ( 31 AS INTEGER ) / + 62 + 93 AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-1314
SELECT ALL + 4 * 38 - - 23, + COALESCE ( + - ( 34 ), ( - + 69 ) + + ( - 44 ), - 63 ) + + COUNT( * ) * 63 AS col2
----
175
29

skipif mysql # not compatible
query II rowsort label-1314
SELECT ALL + 4 * 38 - - 23, + COALESCE ( + - ( 34 ), ( - + 69 ) + + ( - 44 ), - 63 ) + + COUNT ( * ) * 63 AS col2
----
175
29

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

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

query I rowsort
SELECT - 11 * + 77 AS col2
----
-847

onlyif mysql # DIV for integer division: 
query I rowsort label-1317
SELECT DISTINCT ( 28 ) DIV - 3 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-1317
SELECT DISTINCT ( 28 ) / - 3 AS col0
----
-9

query I rowsort
SELECT - 87 * + ( + 63 ) * - - NULLIF ( 74, 41 ) AS col1
----
-405594

query I rowsort
SELECT + 58 - - 43 AS col0
----
101

query I rowsort
SELECT - 68 * - 96 + - 89 - + 87 AS col2
----
6352

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

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

query I rowsort
SELECT - 51 * - 23
----
1173

query II rowsort
SELECT ALL + 65, 49 AS col0
----
65
49

query I rowsort
SELECT DISTINCT + COALESCE ( + 80, ( - 15 ) ) AS col1
----
80

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

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

query I rowsort
SELECT ALL COALESCE ( + + 54, + 85 ) AS col1
----
54

query I rowsort
SELECT - 55 * + 9 + + 89 AS col2
----
-406

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

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

query I rowsort
SELECT ALL + 44 * 56 AS col0
----
2464

query I rowsort
SELECT ALL 28 + - NULLIF ( 58, 5 * - 7 ) AS col2
----
-30

query II rowsort
SELECT - 41, 80 AS col2
----
-41
80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1333
SELECT - + ( + 4 ) + - COUNT( * ), + CAST( - 45 AS SIGNED ) + 39 AS col1
----
-5
-6

skipif mysql # not compatible
query II rowsort label-1333
SELECT - + ( + 4 ) + - COUNT ( * ), + CAST ( - 45 AS INTEGER ) + 39 AS col1
----
-5
-6

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT ALL ( - 19 ) - - + 93 + - COUNT( * ) + - - 44 + - COUNT( * ) AS col1
----
116

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL ( - 19 ) - - + 93 + - COUNT ( * ) + - - 44 + - COUNT ( * ) AS col1
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1337
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 1 AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1337
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 1 AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1338
SELECT - 58 * + 1 * + COUNT( * ) + + NULLIF ( - 33, + CASE - + COUNT( * ) WHEN + + 83 THEN + MIN( 15 ) WHEN + - 98 THEN + 37 END / - + 20 + - 62 ) + - SUM( DISTINCT - + 95 ) AS col0, 40 AS col1
----
4
40

skipif mysql # not compatible
query II rowsort label-1338
SELECT - 58 * + 1 * + COUNT ( * ) + + NULLIF ( - 33, + CASE - + COUNT ( * ) WHEN + + 83 THEN + MIN ( 15 ) WHEN + - 98 THEN + 37 END / - + 20 + - 62 ) + - SUM ( DISTINCT - + 95 ) AS col0, 40 AS col1
----
4
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1339
SELECT 7 / - + 78 / + CASE + + 14 WHEN + 48 + + + ( + - ( + + COUNT( ALL 2 ) ) ) / + 86 THEN 66 END / 91 * - COUNT( * ) + 84 AS col1, + COUNT( * ) * + 96 * + - 32
----
NULL
-3072

skipif mysql # not compatible
query II rowsort label-1339
SELECT 7 / - + 78 / + CASE + + 14 WHEN + 48 + + + ( + - ( + + COUNT ( ALL 2 ) ) ) / + 86 THEN 66 END / 91 * - COUNT ( * ) + 84 AS col1, + COUNT ( * ) * + 96 * + - 32
----
NULL
-3072

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT SUM( ALL - 88 ) * + - COUNT( * ) * + COUNT( * ) * - - MIN( ALL + - 35 ) + + + ( + - 76 )
----
-3156

skipif mysql # not compatible
query I rowsort label-1340
SELECT SUM ( ALL - 88 ) * + - COUNT ( * ) * + COUNT ( * ) * - - MIN ( ALL + - 35 ) + + + ( + - 76 )
----
-3156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1341
SELECT CAST( NULL AS SIGNED ) / - - AVG ( 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1341
SELECT CAST ( NULL AS INTEGER ) / - - AVG ( 0 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1342
SELECT 8 * + NULLIF ( + - AVG ( - CAST( NULL AS SIGNED ) ), - + 97 * 67 ) + - MIN( DISTINCT + 95 ) * - - 85 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1342
SELECT 8 * + NULLIF ( + - AVG ( - CAST ( NULL AS INTEGER ) ), - + 97 * 67 ) + - MIN ( DISTINCT + 95 ) * - - 85 col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT 75 * + 72
----
5400

onlyif mysql # aggregate syntax: 
query II rowsort label-1345
SELECT ALL - 45 + + 64 AS col1, - COUNT( * ) AS col1
----
19
-1

skipif mysql # not compatible
query II rowsort label-1345
SELECT ALL - 45 + + 64 AS col1, - COUNT ( * ) AS col1
----
19
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT DISTINCT 45 DIV - 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT 45 / - 82 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT ALL 62 + - NULLIF ( 42, + - ( COALESCE ( - + 74, + - 51 + + + COUNT( * ), - 61 * 98 ) ) * - 92 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL 62 + - NULLIF ( 42, + - ( COALESCE ( - + 74, + - 51 + + + COUNT ( * ), - 61 * 98 ) ) * - 92 ) AS col2
----
20

query II rowsort
SELECT 35 * - 95 AS col2, + 55 + 55 AS col0
----
-3325
110

query I rowsort
SELECT ALL 39 + + + 49 * 88 AS col0
----
4351

query II rowsort
SELECT DISTINCT - 27 + + - 90 AS col1, + 45 + - 67
----
-117
-22

query I rowsort
SELECT ALL + 73 * + 93 * - NULLIF ( - + 35, + 5 ) * + 79 AS col1
----
18771585

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1356
SELECT 49 + + - 25, 62 * + - CASE - 87 WHEN + - 74 / CAST( 47 AS SIGNED ) THEN 60 + - ( + - ( - - 16 ) ) + - 13 * + 83 WHEN - 3 + 24 THEN - 57 / + 41 - - MIN( DISTINCT 35 ) + 37 * 59 * CASE 87 / 0 - NULLIF ( - 6, 69 + 42 ) / + 50 WHEN + NULLIF ( 66, MAX( 58 ) - + ( - 17 ) ) * - 10 THEN - ( + ( - COUNT( * ) ) ) WHEN 86 THEN NULL END END AS col1
----
24
NULL

skipif mysql # not compatible
query II rowsort label-1356
SELECT 49 + + - 25, 62 * + - CASE - 87 WHEN + - 74 / CAST ( 47 AS INTEGER ) THEN 60 + - ( + - ( - - 16 ) ) + - 13 * + 83 WHEN - 3 + 24 THEN - 57 / + 41 - - MIN ( DISTINCT 35 ) + 37 * 59 * CASE 87 / 0 - NULLIF ( - 6, 69 + 42 ) / + 50 WHEN + NULLIF ( 66, MAX ( 58 ) - + ( - 17 ) ) * - 10 THEN - ( + ( - COUNT ( * ) ) ) WHEN 86 THEN NULL END END AS col1
----
24
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1357
SELECT ALL - 71 DIV - NULLIF ( - 5, + 18 - - COALESCE ( + 43, 85 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL - 71 / - NULLIF ( - 5, + 18 - - COALESCE ( + 43, 85 ) )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1358
SELECT DISTINCT - + 61 DIV 68 + + 23
----
23

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT - + 61 / 68 + + 23
----
23

query I rowsort
SELECT DISTINCT COALESCE ( - 49, + 34 * - + 35 - 66 * + - 42 - - 16, 87 + - 55, + 74 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1360
SELECT ALL - 5 * + 78 / - CAST( NULL AS SIGNED ) - - + 79 * + - 34 * 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL - 5 * + 78 / - CAST ( NULL AS INTEGER ) - - + 79 * + - 34 * 56 AS col1
----
NULL

query I rowsort
SELECT 30 * - - 35 col2
----
1050

query II rowsort
SELECT 4 * + 20 * 69, + 55 + + 37 AS col2
----
5520
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT ALL - MIN( ALL 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL - MIN ( ALL 9 )
----
-9

query I rowsort
SELECT NULLIF ( + 77, 72 * - 74 ) * 18
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT DISTINCT - SUM( ALL + 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT - SUM ( ALL + 39 ) AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1366
SELECT ALL - CAST( + COALESCE ( 76, + COUNT( * ) ) AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL - CAST ( + COALESCE ( 76, + COUNT ( * ) ) AS INTEGER )
----
-76

query I rowsort
SELECT ALL 99 + 26
----
125

query I rowsort
SELECT DISTINCT 57 * - - 19 * 16 AS col0
----
17328

query I rowsort
SELECT DISTINCT + 31 + + 33 AS col0
----
64

query I rowsort
SELECT ALL 63 + 57
----
120

query I rowsort
SELECT 80 * + - 67 * - + 74 * + 23 AS col2
----
9122720

query I rowsort
SELECT ALL 56 * ( + 69 ) * + + 58 AS col0
----
224112

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT DISTINCT - ( - + ( - 33 ) ) + - - COUNT( * ) * + + 74
----
41

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT - ( - + ( - 33 ) ) + - - COUNT ( * ) * + + 74
----
41

query I rowsort
SELECT ALL + 14 + - 70 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT DISTINCT 50 + + 67 * + + COUNT( * )
----
117

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT 50 + + 67 * + + COUNT ( * )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT + 57 * + 2 + - - CASE 49 WHEN - 2 * - COUNT( * ) * 78 * - - 3 - + 50 + - 84 + - - NULLIF ( + - 7, - 47 + - 44 ) / + + 94 + + 97 THEN - + ( - - 94 ) ELSE + 18 + + 14 * - 62 END * + 20
----
-16886

skipif mysql # not compatible
query I rowsort label-1376
SELECT + 57 * + 2 + - - CASE 49 WHEN - 2 * - COUNT ( * ) * 78 * - - 3 - + 50 + - 84 + - - NULLIF ( + - 7, - 47 + - 44 ) / + + 94 + + 97 THEN - + ( - - 94 ) ELSE + 18 + + 14 * - 62 END * + 20
----
-16886

query I rowsort
SELECT ALL - 16 * - 50 * + 64 AS col0
----
51200

query I rowsort
SELECT ALL + 52 + 45 - - - 50 AS col0
----
47

query II rowsort
SELECT + 3 AS col1, 78
----
3
78

onlyif mysql # DIV for integer division: 
query I rowsort label-1380
SELECT + 85 + - 40 DIV - 77 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-1380
SELECT + 85 + - 40 / - 77 AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1381
SELECT - COUNT( * ) * + 37 * 41 AS col2, COALESCE ( 6, ( - - 0 ) * NULLIF ( - + 49, + 49 ) * CAST( NULL AS SIGNED ) + - + COUNT( + 72 ), + COUNT( * ) DIV - 46 + 48 ) AS col2
----
-1517
6

skipif mysql # not compatible
query II rowsort label-1381
SELECT - COUNT ( * ) * + 37 * 41 AS col2, COALESCE ( 6, ( - - 0 ) * NULLIF ( - + 49, + 49 ) * CAST ( NULL AS INTEGER ) + - + COUNT ( + 72 ), + COUNT ( * ) / - 46 + 48 ) AS col2
----
-1517
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT ALL CASE + + MAX( ALL + + 75 ) WHEN - 19 THEN + 36 END / - - 57 * + COUNT( * ) * ( + - 30 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL CASE + + MAX ( ALL + + 75 ) WHEN - 19 THEN + 36 END / - - 57 * + COUNT ( * ) * ( + - 30 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 92 - - - 35 col0
----
57

query III rowsort
SELECT - + 87, 52 + - 92 AS col0, - 20 AS col2
----
-87
-40
-20

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

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL SUM ( ALL - 74 )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1386
SELECT ALL 34 - + + CASE - COUNT( * ) WHEN - 29 THEN - CASE WHEN NOT - COUNT( * ) IS NOT NULL THEN - 2 * + - CAST( NULL AS SIGNED ) WHEN + 6 IS NULL THEN 98 + + 36 END / + 75 + - 56 * SUM( 58 ) * - 51 END AS col0, ( - 25 )
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-1386
SELECT ALL 34 - + + CASE - COUNT ( * ) WHEN - 29 THEN - CASE WHEN NOT - COUNT ( * ) IS NOT NULL THEN - 2 * + - CAST ( NULL AS INTEGER ) WHEN + 6 IS NULL THEN 98 + + 36 END / + 75 + - 56 * SUM ( 58 ) * - 51 END AS col0, ( - 25 )
----
NULL
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT + 74 * 23 + SUM( 27 )
----
1729

skipif mysql # not compatible
query I rowsort label-1387
SELECT + 74 * 23 + SUM ( 27 )
----
1729

query I rowsort
SELECT ALL - 9 * - - NULLIF ( 37, 35 ) AS col1
----
-333

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

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

query I rowsort
SELECT ALL + NULLIF ( 32, - + 15 - - 58 * 10 / - 32 * + 66 * - 67 + - 26 + + + 75 )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1391
SELECT ALL 79 * 0 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL 79 * 0 / - 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT + 63 + - 44 * 86 * - COUNT( * ) col1
----
3847

skipif mysql # not compatible
query I rowsort label-1392
SELECT + 63 + - 44 * 86 * - COUNT ( * ) col1
----
3847

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

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT SUM ( ALL - + ( + ( 30 ) ) ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-1394
SELECT 33, - 7 * + - COUNT( * ) AS col0
----
33
7

skipif mysql # not compatible
query II rowsort label-1394
SELECT 33, - 7 * + - COUNT ( * ) AS col0
----
33
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT ALL COUNT( - ( + + COALESCE ( 98, 71, - ( 77 ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL COUNT ( - ( + + COALESCE ( 98, 71, - ( 77 ) ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT - 35 + - - 26 * + COUNT( * ) * + + COALESCE ( 51, + + 15 * COALESCE ( + + COUNT( * ), - 35 + 77 ), 72 ) * - SUM( ALL + + 19 ) AS col2
----
-25229

skipif mysql # not compatible
query I rowsort label-1396
SELECT - 35 + - - 26 * + COUNT ( * ) * + + COALESCE ( 51, + + 15 * COALESCE ( + + COUNT ( * ), - 35 + 77 ), 72 ) * - SUM ( ALL + + 19 ) AS col2
----
-25229

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT ALL NULLIF ( COUNT( * ), + - CASE - 72 WHEN 49 THEN - 51 * - + 16 END + + - 74 / - - 15 * + ( + + 11 ) * - + CASE - - NULLIF ( 62, + + ( 57 ) ) WHEN - 33 * - 1 + - 84 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + 2 END + - 9 ) + 36
----
37

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL NULLIF ( COUNT ( * ), + - CASE - 72 WHEN 49 THEN - 51 * - + 16 END + + - 74 / - - 15 * + ( + + 11 ) * - + CASE - - NULLIF ( 62, + + ( 57 ) ) WHEN - 33 * - 1 + - 84 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + 2 END + - 9 ) + 36
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-1398
SELECT DISTINCT 37 col0, COUNT( * ) col0
----
37
1

skipif mysql # not compatible
query II rowsort label-1398
SELECT DISTINCT 37 col0, COUNT ( * ) col0
----
37
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1399
SELECT - 11 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1399
SELECT - 11 / 92 AS col2
----
0

query I rowsort
SELECT ALL - 44 + + 17
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT - 28 + MIN( DISTINCT + - 82 )
----
-110

skipif mysql # not compatible
query I rowsort label-1401
SELECT - 28 + MIN ( DISTINCT + - 82 )
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT DISTINCT - 72 DIV + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT - 72 / + 92 AS col2
----
0

query I rowsort
SELECT ALL + ( - 9 ) + - + 26
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT - 0 * - + 53 + COALESCE ( + - 29, - 74 * - COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-1404
SELECT - 0 * - + 53 + COALESCE ( + - 29, - 74 * - COUNT ( * ) )
----
-29

query I rowsort
SELECT ALL + 72 * - 7
----
-504

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1406
SELECT ALL + 30 * - COUNT( - CAST( NULL AS DECIMAL ) ) + + 77 + - 54 * + COUNT( DISTINCT 29 )
----
23

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL + 30 * - COUNT ( - CAST ( NULL AS REAL ) ) + + 77 + - 54 * + COUNT ( DISTINCT 29 )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1407
SELECT - 93 + ( + 51 ) + + + COUNT( * ) DIV + CAST( - 4 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-1407
SELECT - 93 + ( + 51 ) + + + COUNT ( * ) / + CAST ( - 4 AS INTEGER )
----
-42

query I rowsort
SELECT - 57 + - + 2
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1409
SELECT 45 * 17 DIV 77 + - 57 DIV + MIN( ALL - 30 )
----
10

skipif mysql # not compatible
query I rowsort label-1409
SELECT 45 * 17 / 77 + - 57 / + MIN ( ALL - 30 )
----
10

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

query I rowsort
SELECT ALL - 73 * - - 18
----
-1314

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1412
SELECT - COUNT( * ) DIV - 70 + - 56 + + - 88 * + + 95 + - 81 AS col1
----
-8497

skipif mysql # not compatible
query I rowsort label-1412
SELECT - COUNT ( * ) / - 70 + - 56 + + - 88 * + + 95 + - 81 AS col1
----
-8497

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1413
SELECT + 55 * - CAST( 34 AS SIGNED ) + - - NULLIF ( + 40, - 9 ) + - 20 * + 87
----
-3570

skipif mysql # not compatible
query I rowsort label-1413
SELECT + 55 * - CAST ( 34 AS INTEGER ) + - - NULLIF ( + 40, - 9 ) + - 20 * + 87
----
-3570

query I rowsort
SELECT ALL + ( - 20 ) col2
----
-20

query II rowsort
SELECT + 64 AS col2, + 84
----
64
84

query I rowsort
SELECT DISTINCT 5 * + + 3 + - + 48
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT COALESCE ( - 47, + + 67 + - 83 - - 85, - + 58, + 38 + 3 * 53 + - - ( - CASE - 93 WHEN 23 THEN + 80 WHEN - - NULLIF ( + + 41, - 80 * - 77 / ( 22 ) ) + - - COUNT( * ) - 75 * - 51 * 88 THEN NULL ELSE 64 + - 18 END ) )
----
-47

skipif mysql # not compatible
query I rowsort label-1417
SELECT COALESCE ( - 47, + + 67 + - 83 - - 85, - + 58, + 38 + 3 * 53 + - - ( - CASE - 93 WHEN 23 THEN + 80 WHEN - - NULLIF ( + + 41, - 80 * - 77 / ( 22 ) ) + - - COUNT ( * ) - 75 * - 51 * 88 THEN NULL ELSE 64 + - 18 END ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL 80 * - CASE 91 WHEN + COUNT( * ) * + 96 * - + COUNT( * ) * + + 28 * - 56 / - SUM( DISTINCT - 23 ) THEN + 21 + + 43 WHEN + 31 * - 59 THEN NULL END + + 68 + - 72 / + + 94 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL 80 * - CASE 91 WHEN + COUNT ( * ) * + 96 * - + COUNT ( * ) * + + 28 * - 56 / - SUM ( DISTINCT - 23 ) THEN + 21 + + 43 WHEN + 31 * - 59 THEN NULL END + + 68 + - 72 / + + 94 * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( - 67, + - ( - ( 51 ) ) ) + + + 97 AS col0
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT 76 * 32 + 9 - - NULLIF ( + MAX( ALL - 21 ), + 21 ) AS col0
----
2420

skipif mysql # not compatible
query I rowsort label-1420
SELECT 76 * 32 + 9 - - NULLIF ( + MAX ( ALL - 21 ), + 21 ) AS col0
----
2420

onlyif mysql # aggregate syntax: 
query II rowsort label-1421
SELECT - 59 AS col0, 78 * + 92 * + MAX( - 47 ) AS col0
----
-59
-337272

skipif mysql # not compatible
query II rowsort label-1421
SELECT - 59 AS col0, 78 * + 92 * + MAX ( - 47 ) AS col0
----
-59
-337272

query I rowsort
SELECT + + 97 * 66 * + 46 + + 15 * - + 22
----
294162

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1423
SELECT ALL COUNT( * ) * 57 - 61 DIV - 32 AS col2, COUNT( * ) DIV - + 49
----
58
0

skipif mysql # not compatible
query II rowsort label-1423
SELECT ALL COUNT ( * ) * 57 - 61 / - 32 AS col2, COUNT ( * ) / - + 49
----
58
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1424
SELECT + 98 AS col1, + NULLIF ( - 17, 93 / 79 + + 94 / - - COUNT( * ) )
----
98
-17

skipif mysql # not compatible
query II rowsort label-1424
SELECT + 98 AS col1, + NULLIF ( - 17, 93 / 79 + + 94 / - - COUNT ( * ) )
----
98
-17

query II rowsort
SELECT + - 9 AS col0, - 34 col2
----
-9
-34

query I rowsort
SELECT + 82 + - 85
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1427
SELECT - 22 * + 55 + + + 39 + - 25 - 56 * + CAST( NULL AS SIGNED ) + - 44 + + NULLIF ( 68, + - 78 * - - 92 ) * + + 67 * - 67 * - - 92 * - - 67 + + ( + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT - 22 * + 55 + + + 39 + - 25 - 56 * + CAST ( NULL AS INTEGER ) + - 44 + + NULLIF ( 68, + - 78 * - - 92 ) * + + 67 * - 67 * - - 92 * - - 67 + + ( + 5 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT ALL + ( - ( + COUNT( * ) ) ) * - 45 + - 11 * + NULLIF ( 45, 95 ) AS col0
----
-450

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL + ( - ( + COUNT ( * ) ) ) * - 45 + - 11 * + NULLIF ( 45, 95 ) AS col0
----
-450

query I rowsort
SELECT - + 99 + + + 95 AS col2
----
-4

query I rowsort
SELECT + - 35 + - 56 + - 54 col0
----
-145

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1431
SELECT + 33 AS col1, COUNT( DISTINCT + 86 ) DIV - - COUNT( * ) AS col1
----
33
1

skipif mysql # not compatible
query II rowsort label-1431
SELECT + 33 AS col1, COUNT ( DISTINCT + 86 ) / - - COUNT ( * ) AS col1
----
33
1

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

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT + NULLIF ( COUNT ( * ), - 56 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1433
SELECT - - CAST( NULL AS SIGNED ) AS col2, 9 AS col1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-1433
SELECT - - CAST ( NULL AS INTEGER ) AS col2, 9 AS col1
----
NULL
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1434
SELECT - 24 DIV + 54
----
0

skipif mysql # not compatible
query I rowsort label-1434
SELECT - 24 / + 54
----
0

query I rowsort
SELECT + 94 + + + 6 * + - 81 * 54 * + 53 + - 10
----
-1390848

query II rowsort
SELECT ALL - 17 AS col0, 69 + - 89 AS col2
----
-17
-20

query I rowsort
SELECT + 7 * 43 + + 10 col2
----
311

onlyif mysql # aggregate syntax: 
query II rowsort label-1438
SELECT DISTINCT - 78 AS col2, COALESCE ( - 20, - 80 + - MAX( ALL 10 ) ) AS col2
----
-78
-20

skipif mysql # not compatible
query II rowsort label-1438
SELECT DISTINCT - 78 AS col2, COALESCE ( - 20, - 80 + - MAX ( ALL 10 ) ) AS col2
----
-78
-20

query I rowsort
SELECT + - 23 * + + 57 * + 19 AS col0
----
-24909

query I rowsort
SELECT - + 17 + 16
----
-1

query II rowsort
SELECT 52 AS col1, 47
----
52
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT + 35 * - 7 * + ( - + COUNT( * ) )
----
245

skipif mysql # not compatible
query I rowsort label-1442
SELECT + 35 * - 7 * + ( - + COUNT ( * ) )
----
245

query II rowsort
SELECT - ( - 60 ) AS col1, 87 AS col1
----
60
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1444
SELECT ALL + 13 + + 81 AS col2, CAST( SUM( - + 98 ) AS SIGNED ) - + 46 AS col2
----
94
-144

skipif mysql # not compatible
query II rowsort label-1444
SELECT ALL + 13 + + 81 AS col2, CAST ( SUM ( - + 98 ) AS INTEGER ) - + 46 AS col2
----
94
-144

query I rowsort
SELECT DISTINCT - 58 + 75 * 21 - - 38 + - + 73 + - 1 * - + 28
----
1510

onlyif mysql # aggregate syntax: 
query II rowsort label-1446
SELECT DISTINCT ( - + 67 ) + - 59 * + COUNT( DISTINCT - + 34 ) + - - SUM( DISTINCT + 11 ), + 40 - 11 + - + 38 - NULLIF ( - 14, + 21 * + COUNT( * ) ) * COALESCE ( + - 7, 23 ) * 3 * - MIN( + 17 ) - COALESCE ( 16, COUNT( * ) ) col2
----
-115
4973

skipif mysql # not compatible
query II rowsort label-1446
SELECT DISTINCT ( - + 67 ) + - 59 * + COUNT ( DISTINCT - + 34 ) + - - SUM ( DISTINCT + 11 ), + 40 - 11 + - + 38 - NULLIF ( - 14, + 21 * + COUNT ( * ) ) * COALESCE ( + - 7, 23 ) * 3 * - MIN ( + 17 ) - COALESCE ( 16, COUNT ( * ) ) col2
----
-115
4973

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT DISTINCT NULLIF ( + 21, - COUNT( * ) * + 43 * - + MAX( DISTINCT 50 ) * + 68 * 58 )
----
21

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT NULLIF ( + 21, - COUNT ( * ) * + 43 * - + MAX ( DISTINCT 50 ) * + 68 * 58 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1448
SELECT - ( - + ( - CASE + + 59 WHEN + 95 THEN + + 74 * - 67 + CAST( NULL AS SIGNED ) WHEN 85 THEN NULL END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1448
SELECT - ( - + ( - CASE + + 59 WHEN + 95 THEN + + 74 * - 67 + CAST ( NULL AS INTEGER ) WHEN 85 THEN NULL END ) ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1450
SELECT - SUM( DISTINCT + + 42 ) * + + 70 + + CAST( 61 AS SIGNED )
----
-2879

skipif mysql # not compatible
query I rowsort label-1450
SELECT - SUM ( DISTINCT + + 42 ) * + + 70 + + CAST ( 61 AS INTEGER )
----
-2879

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1451
SELECT DISTINCT CASE 90 WHEN 24 * + 57 + - - ( - 44 ) THEN + COUNT( - 49 ) - 85 * 2 * COUNT( * ) ELSE - 95 DIV + - 8 + - 18 END AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1451
SELECT DISTINCT CASE 90 WHEN 24 * + 57 + - - ( - 44 ) THEN + COUNT ( - 49 ) - 85 * 2 * COUNT ( * ) ELSE - 95 / + - 8 + - 18 END AS col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1452
SELECT ALL NULLIF ( 1, + CASE + 40 WHEN + 78 THEN + + 71 WHEN 98 + CAST( NULL AS SIGNED ) THEN - CAST( + - MIN( DISTINCT + 13 ) AS SIGNED ) END + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL NULLIF ( 1, + CASE + 40 WHEN + 78 THEN + + 71 WHEN 98 + CAST ( NULL AS INTEGER ) THEN - CAST ( + - MIN ( DISTINCT + 13 ) AS INTEGER ) END + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1453
SELECT COUNT( * ) DIV - + 25 * - COUNT( * ) + 93
----
93

skipif mysql # not compatible
query I rowsort label-1453
SELECT COUNT ( * ) / - + 25 * - COUNT ( * ) + 93
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1454
SELECT ALL 1 DIV + COUNT( * ) - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL 1 / + COUNT ( * ) - - COUNT ( * ) AS col0
----
2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1456
SELECT ALL - 86 DIV COUNT( * ) - + 56 + + - 92
----
-234

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL - 86 / COUNT ( * ) - + 56 + + - 92
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT - - 45 + COUNT( ALL - 91 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1457
SELECT - - 45 + COUNT ( ALL - 91 ) AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1458
SELECT - - 39 DIV 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1458
SELECT - - 39 / 82 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT ALL - MAX( ALL 23 ) * + 74 * 77 AS col2
----
-131054

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL - MAX ( ALL 23 ) * + 74 * 77 AS col2
----
-131054

query I rowsort
SELECT - + 70 + - 1 AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1461
SELECT + - COUNT( * ) * 70 * + - 10 + + 56 + + COALESCE ( + MIN( CAST( NULL AS SIGNED ) ), + ( + + 87 ) + - 62 ) * + - 69 + 96
----
-873

skipif mysql # not compatible
query I rowsort label-1461
SELECT + - COUNT ( * ) * 70 * + - 10 + + 56 + + COALESCE ( + MIN ( CAST ( NULL AS INTEGER ) ), + ( + + 87 ) + - 62 ) * + - 69 + 96
----
-873

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

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

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

skipif mysql # not compatible
query I rowsort label-1463
SELECT - MAX ( + 1 ) - - COUNT ( * ) AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT 73 * - + COUNT( * ) * + COUNT( 32 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-1465
SELECT 73 * - + COUNT ( * ) * + COUNT ( 32 ) AS col2
----
-73

query I rowsort
SELECT - - COALESCE ( + ( - + 80 ), 87 ) * + + 70 - + - 93 * - - 72 AS col2
----
1096

onlyif mysql # DIV for integer division: 
query I rowsort label-1467
SELECT 52 DIV + - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1467
SELECT 52 / + - 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1468
SELECT ALL 97 + - - 9 AS col0, - NULLIF ( COALESCE ( - 33, - NULLIF ( - 93, + 47 / - + CASE + 58 WHEN - 37 * - 11 THEN NULL WHEN - MIN( - 89 ) THEN - 30 END * 77 * + + 79 * 55 + - COALESCE ( + ( + - 88 ), ( + 17 ) + 42 / + 45 ) ) - COALESCE ( + 25, - 62 ) ), 94 ) AS col0
----
106
33

skipif mysql # not compatible
query II rowsort label-1468
SELECT ALL 97 + - - 9 AS col0, - NULLIF ( COALESCE ( - 33, - NULLIF ( - 93, + 47 / - + CASE + 58 WHEN - 37 * - 11 THEN NULL WHEN - MIN ( - 89 ) THEN - 30 END * 77 * + + 79 * 55 + - COALESCE ( + ( + - 88 ), ( + 17 ) + 42 / + 45 ) ) - COALESCE ( + 25, - 62 ) ), 94 ) AS col0
----
106
33

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

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

query I rowsort
SELECT ALL ( - - 26 ) + + 23
----
49

query I rowsort
SELECT 55 * - 7
----
-385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1472
SELECT COALESCE ( + 54, + 45 ) * - 46 + + NULLIF ( 20, + + 89 ) + - CAST( NULL AS SIGNED ) * - 81 + + ( + + 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1472
SELECT COALESCE ( + 54, + 45 ) * - 46 + + NULLIF ( 20, + + 89 ) + - CAST ( NULL AS INTEGER ) * - 81 + + ( + + 82 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1473
SELECT 82 AS col1, 72 + - CAST( + + 53 AS SIGNED ) AS col0
----
82
19

skipif mysql # not compatible
query II rowsort label-1473
SELECT 82 AS col1, 72 + - CAST ( + + 53 AS INTEGER ) AS col0
----
82
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT COUNT( * ) + + + MAX( DISTINCT + 74 ) col2
----
75

skipif mysql # not compatible
query I rowsort label-1474
SELECT COUNT ( * ) + + + MAX ( DISTINCT + 74 ) col2
----
75

query I rowsort
SELECT ALL 33 - + 29
----
4

query I rowsort
SELECT ALL 92 * 0
----
0

query II rowsort
SELECT ALL 14, + 34 col0
----
14
34

query II rowsort
SELECT + 17 AS col2, + 60 + + 96 AS col0
----
17
156

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

query I rowsort
SELECT 96 * - 27 col2
----
-2592

query I rowsort
SELECT DISTINCT 91 * 16 col1
----
1456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1482
SELECT + COALESCE ( - 10, - CAST( + 60 AS SIGNED ) * COUNT( * ), + COUNT( * ) DIV - - 24 + 74 + 75 DIV - ( + COUNT( * ) ) ) AS col0, + 77 DIV - 79 * - 30 col1
----
-10
0

skipif mysql # not compatible
query II rowsort label-1482
SELECT + COALESCE ( - 10, - CAST ( + 60 AS INTEGER ) * COUNT ( * ), + COUNT ( * ) / - - 24 + 74 + 75 / - ( + COUNT ( * ) ) ) AS col0, + 77 / - 79 * - 30 col1
----
-10
0

query I rowsort
SELECT - ( - - 97 ) * - 32 - 16 + + ( 63 ) + 23 AS col1
----
3174

query I rowsort
SELECT 26 * + 17 + + CASE WHEN ( - 91 ) IS NULL THEN NULL ELSE 71 END AS col1
----
513

query II rowsort
SELECT DISTINCT - + 52 AS col2, + 9 + + 86 * 8
----
-52
697

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT - SUM( - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-1486
SELECT - SUM ( - 75 )
----
75

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

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

query I rowsort
SELECT ALL - - NULLIF ( + 26, 12 ) + + + 47 + - + 51 AS col1
----
22

query II rowsort
SELECT + + 52 AS col1, - 38 AS col2
----
52
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1490
SELECT + - 95 AS col2, - 83 * + + 90 * 89 + COUNT( * ) - COUNT( * ) - 23 + + - 34 DIV + COALESCE ( 28, + 87 + - 64 * + MAX( 87 ) + 62 )
----
-95
-664854

skipif mysql # not compatible
query II rowsort label-1490
SELECT + - 95 AS col2, - 83 * + + 90 * 89 + COUNT ( * ) - COUNT ( * ) - 23 + + - 34 / + COALESCE ( 28, + 87 + - 64 * + MAX ( 87 ) + 62 )
----
-95
-664854

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT + 67 + - + COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1491
SELECT + 67 + - + COUNT ( * ) AS col2
----
66

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

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

query I rowsort
SELECT ALL - + 76 + 60
----
-16

query II rowsort
SELECT - 3 + + - 69 + - 90 AS col1, + 36 + ( - 19 ) + + 66 AS col1
----
-162
83

query II rowsort
SELECT DISTINCT - 95 + 14 * + 5 AS col2, 63 col1
----
-25
63

query I rowsort
SELECT ALL + 37 + - + ( + 76 ) AS col2
----
-39

query I rowsort
SELECT DISTINCT - - 34 + - NULLIF ( 39, - 96 ) * + - NULLIF ( + 6, + 22 )
----
268

onlyif mysql # aggregate syntax: 
query II rowsort label-1498
SELECT NULLIF ( + - 71, COUNT( * ) + + + 84 + - COUNT( * ) + 6 + - 64 + 87 ) col0, - 34 * - MIN( DISTINCT - 79 ) * COUNT( * ) AS col0
----
-71
-2686

skipif mysql # not compatible
query II rowsort label-1498
SELECT NULLIF ( + - 71, COUNT ( * ) + + + 84 + - COUNT ( * ) + 6 + - 64 + 87 ) col0, - 34 * - MIN ( DISTINCT - 79 ) * COUNT ( * ) AS col0
----
-71
-2686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1499
SELECT DISTINCT - 13 + 12 * - COUNT( * ) + - - CAST( - - 97 AS SIGNED ) + 78 + + COUNT( * ) AS col2
----
151

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT - 13 + 12 * - COUNT ( * ) + - - CAST ( - - 97 AS INTEGER ) + 78 + + COUNT ( * ) AS col2
----
151

query I rowsort
SELECT 38 - + 44 AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1501
SELECT ( - CASE 53 WHEN + AVG ( CAST( + ( + 16 ) AS SIGNED ) ) THEN CASE - COUNT( * ) WHEN 61 - + 46 THEN - 57 * - 22 ELSE + COALESCE ( 73, + - AVG ( - 16 ) - 89 * - 88, NULLIF ( - 36, - 71 ) + + 42 ) * 84 * + 27 END + + 57 END ) + + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1501
SELECT ( - CASE 53 WHEN + AVG ( CAST ( + ( + 16 ) AS INTEGER ) ) THEN CASE - COUNT ( * ) WHEN 61 - + 46 THEN - 57 * - 22 ELSE + COALESCE ( 73, + - AVG ( - 16 ) - 89 * - 88, NULLIF ( - 36, - 71 ) + + 42 ) * 84 * + 27 END + + 57 END ) + + 52 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 57 - + 65 + + + 23
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1503
SELECT DISTINCT + ( + - 9 ) DIV + + 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT + ( + - 9 ) / + + 61 AS col0
----
0

query I rowsort
SELECT ALL 34 - - + 86
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1505
SELECT 64 * + 4 * - - CAST( 0 AS SIGNED ) * - - 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1505
SELECT 64 * + 4 * - - CAST ( 0 AS INTEGER ) * - - 41 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT 89 * - - SUM( DISTINCT 83 ) AS col0
----
7387

skipif mysql # not compatible
query I rowsort label-1506
SELECT 89 * - - SUM ( DISTINCT 83 ) AS col0
----
7387

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT 60 - + 92 * - 21 * + 76 * - COUNT( * ) * + 37 + - + 93 col1
----
-5432817

skipif mysql # not compatible
query I rowsort label-1507
SELECT 60 - + 92 * - 21 * + 76 * - COUNT ( * ) * + 37 + - + 93 col1
----
-5432817

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1508
SELECT 96 DIV - - MIN( DISTINCT - 16 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-1508
SELECT 96 / - - MIN ( DISTINCT - 16 ) AS col1
----
-6

query I rowsort
SELECT 79 * 8 * + 72 AS col1
----
45504

onlyif mysql # DIV for integer division: 
query II rowsort label-1510
SELECT 95 DIV - + 63, - 63 col0
----
-1
-63

skipif mysql # not compatible
query II rowsort label-1510
SELECT 95 / - + 63, - 63 col0
----
-1
-63

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

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

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

skipif mysql # not compatible
query I rowsort label-1512
SELECT + MIN ( + - 86 )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1513
SELECT 62 DIV ( - - COUNT( * ) ) - + 92 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1513
SELECT 62 / ( - - COUNT ( * ) ) - + 92 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT ALL + + COALESCE ( + ( + 26 ), 38 - + 98 * + 36 - - NULLIF ( - 44, 63 * 63 * 15 + - 45 + - - 45 + + + 0 * CASE 4 WHEN + 15 / + + 91 * - COUNT( 39 ) THEN NULL WHEN 88 / + COUNT( * ) THEN - + 38 + - 98 + - 78 / - 96 END * 89 - 5 ) ) * SUM( NULLIF ( + 26, 37 ) ) + + 13 AS col1
----
689

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL + + COALESCE ( + ( + 26 ), 38 - + 98 * + 36 - - NULLIF ( - 44, 63 * 63 * 15 + - 45 + - - 45 + + + 0 * CASE 4 WHEN + 15 / + + 91 * - COUNT ( 39 ) THEN NULL WHEN 88 / + COUNT ( * ) THEN - + 38 + - 98 + - 78 / - 96 END * 89 - 5 ) ) * SUM ( NULLIF ( + 26, 37 ) ) + + 13 AS col1
----
689

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT DISTINCT - - 77 * - MAX( + 93 ) + + 25 + + - ( - 52 ) AS col2
----
-7084

skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT - - 77 * - MAX ( + 93 ) + + 25 + + - ( - 52 ) AS col2
----
-7084

query I rowsort
SELECT + 4 + - + 50 + 13 + + 79
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT + 18 + + ( + MAX( ALL + 6 ) ) * - 5
----
-12

skipif mysql # not compatible
query I rowsort label-1517
SELECT + 18 + + ( + MAX ( ALL + 6 ) ) * - 5
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT DISTINCT 92 * - - SUM( DISTINCT 96 ) AS col1
----
8832

skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT 92 * - - SUM ( DISTINCT 96 ) AS col1
----
8832

query I rowsort
SELECT ALL - 49 * + 37 * ( 54 ) + 78 * 29
----
-95640

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT ALL + + CASE - 46 WHEN - 33 + - 45 + + 40 THEN + - 39 WHEN 93 THEN - + MIN( - 36 ) + - 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL + + CASE - 46 WHEN - 33 + - 45 + + 40 THEN + - 39 WHEN 93 THEN - + MIN ( - 36 ) + - 72 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT ALL - 5 DIV - - ( - 67 ) * + 63 + - - 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL - 5 / - - ( - 67 ) * + 63 + - - 80 AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1522
SELECT + 7 * 97 * 46 + - 96, + 12 * - COUNT( ALL - - 68 ) DIV - + 69 AS col2
----
31138
0

skipif mysql # not compatible
query II rowsort label-1522
SELECT + 7 * 97 * 46 + - 96, + 12 * - COUNT ( ALL - - 68 ) / - + 69 AS col2
----
31138
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1523
SELECT - COALESCE ( ( 50 ), - SUM( DISTINCT + CAST( NULL AS SIGNED ) ), CAST( NULL AS SIGNED ) * 60 * COUNT( * ) + + + 9 ) + - + 24 DIV - SUM( + ( - + 29 ) ) * - + COALESCE ( + ( ( - CASE COALESCE ( - - CAST( NULL AS SIGNED ), - 42, COUNT( 64 ) + ( - - 7 ) + + - 90 * 48 ) WHEN + 27 THEN - 10 END ) ), + COALESCE ( 1, COUNT( * ) ) * 12 )
----
-50

skipif mysql # not compatible
query I rowsort label-1523
SELECT - COALESCE ( ( 50 ), - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) * 60 * COUNT ( * ) + + + 9 ) + - + 24 / - SUM ( + ( - + 29 ) ) * - + COALESCE ( + ( ( - CASE COALESCE ( - - CAST ( NULL AS INTEGER ), - 42, COUNT ( 64 ) + ( - - 7 ) + + - 90 * 48 ) WHEN + 27 THEN - 10 END ) ), + COALESCE ( 1, COUNT ( * ) ) * 12 )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1524
SELECT - CASE 14 WHEN - MAX( ALL + 4 ) THEN - CAST( NULL AS SIGNED ) ELSE - 32 END
----
32

skipif mysql # not compatible
query I rowsort label-1524
SELECT - CASE 14 WHEN - MAX ( ALL + 4 ) THEN - CAST ( NULL AS INTEGER ) ELSE - 32 END
----
32

query I rowsort
SELECT + 29 + + 80 AS col2
----
109

query II rowsort
SELECT - 37 AS col1, + 71
----
-37
71

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

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL ( - MAX ( - 72 ) )
----
72

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

skipif mysql # not compatible
query I rowsort label-1528
SELECT - COUNT ( * ) - + + ( - 87 ) + - + 70 AS col0
----
16

query I rowsort
SELECT DISTINCT - 82 - - 46 col1
----
-36

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1531
SELECT DISTINCT NULLIF ( + - 28, 65 ), 74 * - COUNT( * ) AS col1
----
-28
-74

skipif mysql # not compatible
query II rowsort label-1531
SELECT DISTINCT NULLIF ( + - 28, 65 ), 74 * - COUNT ( * ) AS col1
----
-28
-74

query I rowsort
SELECT - 39 * - 80
----
3120

query I rowsort
SELECT - 45 * 6
----
-270

query I rowsort
SELECT - 56 + + + 30 AS col2
----
-26

query I rowsort
SELECT + 62 - - + 91
----
153

query I rowsort
SELECT ALL - 65 * 23
----
-1495

query I rowsort
SELECT - 9 + + + 22 - - + 63 * + - 67 AS col0
----
-4208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1538
SELECT - + 25 AS col1, COUNT( * ) + - CASE - - ( - 46 ) WHEN + 82 THEN - - 67 * - ( + 16 ) * CAST( NULL AS SIGNED ) ELSE NULL END + + - 38 AS col2
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-1538
SELECT - + 25 AS col1, COUNT ( * ) + - CASE - - ( - 46 ) WHEN + 82 THEN - - 67 * - ( + 16 ) * CAST ( NULL AS INTEGER ) ELSE NULL END + + - 38 AS col2
----
-25
NULL

query I rowsort
SELECT ALL - 97 + - 31 AS col0
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT - COUNT( * ) + + + NULLIF ( + 31, + ( - ( + COUNT( * ) ) ) ) + + + ( + NULLIF ( 79, - 6 - - - 69 ) )
----
109

skipif mysql # not compatible
query I rowsort label-1540
SELECT - COUNT ( * ) + + + NULLIF ( + 31, + ( - ( + COUNT ( * ) ) ) ) + + + ( + NULLIF ( 79, - 6 - - - 69 ) )
----
109

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1542
SELECT 16 DIV - 41 + + + CAST( - - COUNT( * ) AS SIGNED ) DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-1542
SELECT 16 / - 41 + + + CAST ( - - COUNT ( * ) AS INTEGER ) / - + 77
----
0

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

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

query I rowsort
SELECT - 66 * - 5 AS col0
----
330

query I rowsort
SELECT + 35 + + - 1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1546
SELECT ALL - 86 DIV - 64 + 35
----
36

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL - 86 / - 64 + 35
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1547
SELECT - 88 * - + AVG ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

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

query I rowsort
SELECT + - 50 * - 89
----
4450

query I rowsort
SELECT - 2 * - 25
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1550
SELECT DISTINCT 46 * + CAST( - + 47 AS SIGNED ) + + - COUNT( * )
----
-2163

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT 46 * + CAST ( - + 47 AS INTEGER ) + + - COUNT ( * )
----
-2163

query I rowsort
SELECT + + 89 * - NULLIF ( - 68, 87 )
----
6052

query I rowsort
SELECT ALL 46 * - - 61 - - 68 + 43 + + 74 * + 9 * - 69
----
-43037

query I rowsort
SELECT + - 15 * 45 AS col0
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT COALESCE ( + - 27, - 18, + + COUNT( * ) ) col1
----
-27

skipif mysql # not compatible
query I rowsort label-1554
SELECT COALESCE ( + - 27, - 18, + + COUNT ( * ) ) col1
----
-27

query I rowsort
SELECT + 70 + 42 * - 96
----
-3962

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1556
SELECT + CASE + - 88 WHEN 12 THEN - 41 WHEN - 25 + - + 43 * + 38 * - - 64 THEN NULL WHEN - + 86 THEN 16 + CASE + - 6 WHEN 22 * + AVG ( ALL - 55 ) * + 43 - - 85 THEN NULL WHEN + - ( + - 17 ) * - + 62 THEN + CAST( - 75 AS SIGNED ) ELSE NULL END + - - 47 ELSE - - ( 60 ) END
----
60

skipif mysql # not compatible
query I rowsort label-1556
SELECT + CASE + - 88 WHEN 12 THEN - 41 WHEN - 25 + - + 43 * + 38 * - - 64 THEN NULL WHEN - + 86 THEN 16 + CASE + - 6 WHEN 22 * + AVG ( ALL - 55 ) * + 43 - - 85 THEN NULL WHEN + - ( + - 17 ) * - + 62 THEN + CAST ( - 75 AS INTEGER ) ELSE NULL END + - - 47 ELSE - - ( 60 ) END
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-1557
SELECT + COUNT( * ) + 15 AS col2, - SUM( + + 28 ) col2
----
16
-28

skipif mysql # not compatible
query II rowsort label-1557
SELECT + COUNT ( * ) + 15 AS col2, - SUM ( + + 28 ) col2
----
16
-28

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

skipif mysql # not compatible
query I rowsort label-1558
SELECT - ( + ( 80 ) ) + CAST ( - COUNT ( * ) AS INTEGER )
----
-81

query II rowsort
SELECT ALL + 19, - 48 - - + 17 col2
----
19
-31

query I rowsort
SELECT + 23 * + - 91 * + - COALESCE ( 49, - 60 )
----
102557

query I rowsort
SELECT CASE WHEN NOT NULL IS NOT NULL THEN + ( + 93 ) END AS col2
----
93

query I rowsort
SELECT + ( + + 4 ) + - - 63 AS col2
----
67

query II rowsort
SELECT ALL 44, - 36 + - 53 - - + 72 col2
----
44
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1564
SELECT + MAX( CAST( NULL AS SIGNED ) ) + + - 36 - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-1564
SELECT + MAX ( CAST ( NULL AS INTEGER ) ) + + - 36 - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT COUNT( DISTINCT + - 55 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1565
SELECT COUNT ( DISTINCT + - 55 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT + MAX( ALL + 32 ) * 82
----
2624

skipif mysql # not compatible
query I rowsort label-1566
SELECT + MAX ( ALL + 32 ) * 82
----
2624

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT - 62 + 55 DIV - - 60 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-1567
SELECT - 62 + 55 / - - 60 AS col0
----
-62

query I rowsort
SELECT DISTINCT + 51 * + + CASE - 69 WHEN - - 48 * + 65 - + 78 THEN - 14 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1569
SELECT ALL 15 + COALESCE ( 0, - - CAST( + - COALESCE ( + ( - + CASE 51 WHEN CAST( NULL AS DECIMAL ) * 77 * + 43 * + + COUNT( * ) * 68 / 19 + + + CAST( COUNT( * ) AS SIGNED ) + - 81 / + 39 - + 97 + + 73 * - 74 * + 12 + 0 THEN + ( - COUNT( * ) ) END ), CASE + 41 WHEN 95 THEN 93 * 63 + - 77 ELSE 84 END * 11 ) AS SIGNED ) ) * 80 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL 15 + COALESCE ( 0, - - CAST ( + - COALESCE ( + ( - + CASE 51 WHEN CAST ( NULL AS REAL ) * 77 * + 43 * + + COUNT ( * ) * 68 / 19 + + + CAST ( COUNT ( * ) AS INTEGER ) + - 81 / + 39 - + 97 + + 73 * - 74 * + 12 + 0 THEN + ( - COUNT ( * ) ) END ), CASE + 41 WHEN 95 THEN 93 * 63 + - 77 ELSE 84 END * 11 ) AS INTEGER ) ) * 80 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT DISTINCT 74 + - COUNT( * ) col0
----
73

skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT 74 + - COUNT ( * ) col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1571
SELECT 9, 33 DIV + 49 - - SUM( + + 20 ) + COUNT( * ) AS col0
----
9
21

skipif mysql # not compatible
query II rowsort label-1571
SELECT 9, 33 / + 49 - - SUM ( + + 20 ) + COUNT ( * ) AS col0
----
9
21

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

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT + COUNT ( * ) + - 31 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT CASE - MAX( + 0 ) WHEN + 96 + + 55 THEN NULL WHEN 84 THEN - 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1573
SELECT CASE - MAX ( + 0 ) WHEN + 96 + + 55 THEN NULL WHEN 84 THEN - 53 END
----
NULL

query II rowsort
SELECT COALESCE ( + - 74, - 49 + + 4 * - - ( 24 ) ) AS col2, + 34 AS col1
----
-74
34

query I rowsort
SELECT - 20 * + 99 - - CASE WHEN + COALESCE ( - 65, - 99, - AVG ( ALL NULLIF ( + + 50, + 42 * + 88 ) ) + - 28 ) BETWEEN - 51 AND ( NULL ) THEN NULL WHEN NOT ( NOT ( NULL < NULL ) ) THEN - 3 END AS col0
----
NULL

query II rowsort
SELECT ( - 0 ) AS col1, 85
----
0
85

query II rowsort
SELECT - 64 AS col0, + 38 AS col1
----
-64
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1578
SELECT 71 AS col2, - 84 * - CAST( - + 36 AS SIGNED ) + - - 89 AS col2
----
71
-2935

skipif mysql # not compatible
query II rowsort label-1578
SELECT 71 AS col2, - 84 * - CAST ( - + 36 AS INTEGER ) + - - 89 AS col2
----
71
-2935

query II rowsort
SELECT ALL + 37, 81 * - 49 AS col0
----
37
-3969

onlyif mysql # aggregate syntax: 
query III rowsort label-1580
SELECT COUNT( * ) AS col2, 33 AS col0, - 96
----
1
33
-96

skipif mysql # not compatible
query III rowsort label-1580
SELECT COUNT ( * ) AS col2, 33 AS col0, - 96
----
1
33
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT ALL + + 3 + + 34 + + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL + + 3 + + 34 + + COUNT ( * )
----
38

query I rowsort
SELECT DISTINCT + 71 + + - 9
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1583
SELECT DISTINCT - - CAST( 21 AS SIGNED ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT - - CAST ( 21 AS INTEGER ) AS col0
----
21

query I rowsort
SELECT 74 * 52 * - - CASE 54 WHEN + 6 THEN - 82 ELSE NULL END + + 69
----
NULL

query II rowsort
SELECT DISTINCT - + 14, ( - - 17 ) col2
----
-14
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1586
SELECT ALL - + COALESCE ( 8, + + COALESCE ( - COALESCE ( 1, - - 34 DIV + 40 + - 34 ), + 40 ) * + SUM( + - 23 ) ) AS col0, 57
----
-8
57

skipif mysql # not compatible
query II rowsort label-1586
SELECT ALL - + COALESCE ( 8, + + COALESCE ( - COALESCE ( 1, - - 34 / + 40 + - 34 ), + 40 ) * + SUM ( + - 23 ) ) AS col0, 57
----
-8
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT COUNT( * ) + + 80 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1587
SELECT COUNT ( * ) + + 80 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT COALESCE ( + 50, ( + - COUNT( + 58 ) ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-1588
SELECT COALESCE ( + 50, ( + - COUNT ( + 58 ) ) ) AS col1
----
50

query I rowsort
SELECT - 75 * + 38 + + 85 * - + 16
----
-4210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1590
SELECT MAX( 97 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1590
SELECT MAX ( 97 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 25 * + ( + 25 ) + - 41
----
584

onlyif mysql # aggregate syntax: 
query II rowsort label-1592
SELECT MIN( + 89 ) + - COUNT( * ) + 5 + - 12 * - MIN( - - 93 ), + COUNT( + - 73 ) + + ( - 72 ) AS col1
----
1209
-71

skipif mysql # not compatible
query II rowsort label-1592
SELECT MIN ( + 89 ) + - COUNT ( * ) + 5 + - 12 * - MIN ( - - 93 ), + COUNT ( + - 73 ) + + ( - 72 ) AS col1
----
1209
-71

query I rowsort
SELECT 54 * + - 33
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT SUM( + 76 ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-1594
SELECT SUM ( + 76 ) * - 0
----
0

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

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL 75 + + 27 / - COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT COUNT( ALL 66 ) * ( - - 73 ) + 14 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1596
SELECT COUNT ( ALL 66 ) * ( - - 73 ) + 14 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT MAX( 1 ) * - + 61 * + 14
----
-854

skipif mysql # not compatible
query I rowsort label-1597
SELECT MAX ( 1 ) * - + 61 * + 14
----
-854

query I rowsort
SELECT ALL + 92 + 5 AS col0
----
97

query I rowsort
SELECT ALL 21 + - 80 * 38
----
-3019

query I rowsort
SELECT NULLIF ( 64, + + 69 ) - 43
----
21

query I rowsort
SELECT DISTINCT + 20 * + ( 31 ) AS col0
----
620

query I rowsort
SELECT + ( + - 94 ) + - - 74 * + 93 AS col0
----
6788

query II rowsort
SELECT ALL + - 67 * + + 30 + 37 AS col1, - 66 AS col0
----
-1973
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1604
SELECT - ( - ( 46 ) ) + + + ( - 62 ) + - COUNT( * ) * 4 * + COALESCE ( + 85, + + 56 - - - 43 ) * + CAST( NULL AS SIGNED ) - + + MAX( + + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1604
SELECT - ( - ( 46 ) ) + + + ( - 62 ) + - COUNT ( * ) * 4 * + COALESCE ( + 85, + + 56 - - - 43 ) * + CAST ( NULL AS INTEGER ) - + + MAX ( + + 11 )
----
NULL

query I rowsort
SELECT - 79 * 26
----
-2054

query I rowsort
SELECT 10 + - - 65 * - 36 * - 4
----
9370

query I rowsort
SELECT ALL - + 55 - + COALESCE ( + + 38, 30 ) * ( ( + + 11 ) )
----
-473

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT - MIN( + 77 ) + - + 78
----
-155

skipif mysql # not compatible
query I rowsort label-1608
SELECT - MIN ( + 77 ) + - + 78
----
-155

query I rowsort
SELECT 87 + - 71 col0
----
16

query I rowsort
SELECT + 59 * + - 10
----
-590

query I rowsort
SELECT 80 + - + 55 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT + 96 * - COUNT( * ) * + 39 + + 53 + + + ( 11 )
----
-3680

skipif mysql # not compatible
query I rowsort label-1612
SELECT + 96 * - COUNT ( * ) * + 39 + + 53 + + + ( 11 )
----
-3680

query I rowsort
SELECT + ( - + 13 ) col1
----
-13

query I rowsort
SELECT 56 + - 0 AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1615
SELECT ALL + 26 * + 27 * + COUNT( - CAST( NULL AS SIGNED ) ) * + ( - - 4 )
----
0

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL + 26 * + 27 * + COUNT ( - CAST ( NULL AS INTEGER ) ) * + ( - - 4 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1616
SELECT - 95 * + 46 col2, - 76 * + COUNT( * ) * - 87
----
-4370
6612

skipif mysql # not compatible
query II rowsort label-1616
SELECT - 95 * + 46 col2, - 76 * + COUNT ( * ) * - 87
----
-4370
6612

query I rowsort
SELECT 5 * + 94 AS col0
----
470

query II rowsort
SELECT + 30 col1, - 11 - - + 50
----
30
39

onlyif mysql # aggregate syntax: 
query II rowsort label-1619
SELECT COUNT( * ), + 51 * COALESCE ( - 19, + 73 ) * - - 16 col0
----
1
-15504

skipif mysql # not compatible
query II rowsort label-1619
SELECT COUNT ( * ), + 51 * COALESCE ( - 19, + 73 ) * - - 16 col0
----
1
-15504

query I rowsort
SELECT DISTINCT - 23 + - - 16 + - - 27 AS col0
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-1621
SELECT COUNT( * ) AS col0, 12 * + 51 AS col0
----
1
612

skipif mysql # not compatible
query II rowsort label-1621
SELECT COUNT ( * ) AS col0, 12 * + 51 AS col0
----
1
612

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT MIN( ALL 20 )
----
20

skipif mysql # not compatible
query I rowsort label-1622
SELECT MIN ( ALL 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT 70 + - COUNT( * ) * - + ( + 90 )
----
160

skipif mysql # not compatible
query I rowsort label-1623
SELECT 70 + - COUNT ( * ) * - + ( + 90 )
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT + 95 * - - 13 - 93 * - + SUM( ALL + 50 ) AS col2
----
5885

skipif mysql # not compatible
query I rowsort label-1624
SELECT + 95 * - - 13 - 93 * - + SUM ( ALL + 50 ) AS col2
----
5885

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

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

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

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL + 33 / - COUNT ( * )
----
-33

query I rowsort
SELECT ALL + 60 + + + 53 AS col1
----
113

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

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL + 6 + + + COUNT ( * ) AS col0
----
7

query II rowsort
SELECT + 53 AS col1, + 67 - + - 15 AS col0
----
53
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT ALL COUNT( * ) + + - 37 + - + 21 * + - 28 * - 24 + + NULLIF ( + 22, + 44 * - 29 ) * - 65 * + + 16 - - 46 AS col1
----
-36982

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL COUNT ( * ) + + - 37 + - + 21 * + - 28 * - 24 + + NULLIF ( + 22, + 44 * - 29 ) * - 65 * + + 16 - - 46 AS col1
----
-36982

query I rowsort
SELECT ALL 80 + + + 84
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT ALL - COUNT( * ) / - CASE 32 WHEN + 77 + - 76 / - 1 * + + 86 THEN COALESCE ( + NULLIF ( + 19, - + 13 * + 74 ), + - 89 ) WHEN 91 / 52 THEN + + ( + 36 ) + 72 + - - 13 * 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL - COUNT ( * ) / - CASE 32 WHEN + 77 + - 76 / - 1 * + + 86 THEN COALESCE ( + NULLIF ( + 19, - + 13 * + 74 ), + - 89 ) WHEN 91 / 52 THEN + + ( + 36 ) + 72 + - - 13 * 92 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1633
SELECT + 3 + + 22 * - + 29, COALESCE ( - - MAX( DISTINCT - 26 ), 98 * + + 4 * - 49 * - 16 DIV - 6 ) AS col0, - 87 + - 12 + - - COUNT( * ) * + + 82 + 95 + + 76 * COALESCE ( - - 65, + SUM( ALL - - NULLIF ( 88, - - ( ( 76 ) ) + + 14 + - 87 ) ) - + MAX( + 38 ) ) * - COUNT( * ) AS col0
----
-635
-26
-4862

skipif mysql # not compatible
query III rowsort label-1633
SELECT + 3 + + 22 * - + 29, COALESCE ( - - MAX ( DISTINCT - 26 ), 98 * + + 4 * - 49 * - 16 / - 6 ) AS col0, - 87 + - 12 + - - COUNT ( * ) * + + 82 + 95 + + 76 * COALESCE ( - - 65, + SUM ( ALL - - NULLIF ( 88, - - ( ( 76 ) ) + + 14 + - 87 ) ) - + MAX ( + 38 ) ) * - COUNT ( * ) AS col0
----
-635
-26
-4862

query II rowsort
SELECT - 64 AS col2, + 16 AS col0
----
-64
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1635
SELECT + 79 + - 15 - CASE + 36 WHEN 83 * - 30 THEN - 83 / 50 + + + MAX( + - CAST( NULL AS SIGNED ) ) + + - COUNT( * ) * - COUNT( ALL + 76 ) + SUM( ALL - - 49 ) END / + 69 / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1635
SELECT + 79 + - 15 - CASE + 36 WHEN 83 * - 30 THEN - 83 / 50 + + + MAX ( + - CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) * - COUNT ( ALL + 76 ) + SUM ( ALL - - 49 ) END / + 69 / COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT 34, 72 AS col0
----
34
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT DISTINCT NULLIF ( - COUNT( * ), + + 22 - - 59 * - MIN( - 4 ) ) + 13 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT NULLIF ( - COUNT ( * ), + + 22 - - 59 * - MIN ( - 4 ) ) + 13 AS col0
----
12

query II rowsort
SELECT 42 AS col0, - ( - - 13 ) AS col1
----
42
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1639
SELECT + 11 + 86 + 10 + - - 81 * - CAST( NULL AS SIGNED ) * 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT + 11 + 86 + 10 + - - 81 * - CAST ( NULL AS INTEGER ) * 13 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 48 - - 75
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-1641
SELECT ALL + MIN( - ( 70 ) ) col1, - 81
----
-70
-81

skipif mysql # not compatible
query II rowsort label-1641
SELECT ALL + MIN ( - ( 70 ) ) col1, - 81
----
-70
-81

query II rowsort
SELECT DISTINCT 27, 79 AS col0
----
27
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1643
SELECT ALL + COALESCE ( + + 56, - 35, - - 68 + - - NULLIF ( + - 94, - + 39 * + + 33 * - - 23 + - - CAST( + 19 AS SIGNED ) * - CAST( NULL AS SIGNED ) ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL + COALESCE ( + + 56, - 35, - - 68 + - - NULLIF ( + - 94, - + 39 * + + 33 * - - 23 + - - CAST ( + 19 AS INTEGER ) * - CAST ( NULL AS INTEGER ) ) ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-1644
SELECT - - MIN( DISTINCT - + 99 ) * 5 AS col2, + 68 * + + 94 * + - 35 col1
----
-495
-223720

skipif mysql # not compatible
query II rowsort label-1644
SELECT - - MIN ( DISTINCT - + 99 ) * 5 AS col2, + 68 * + + 94 * + - 35 col1
----
-495
-223720

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1645
SELECT ALL CAST( NULL AS DECIMAL ) * + + 30 * - COUNT( * ) + 48 * + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL CAST ( NULL AS REAL ) * + + 30 * - COUNT ( * ) + 48 * + 27
----
NULL

query II rowsort
SELECT ALL 17 AS col1, - 91 AS col1
----
17
-91

query I rowsort
SELECT ALL + CASE + + 56 WHEN - 76 - + 52 THEN - + 39 * + ( 12 ) - - - 39 + COALESCE ( 71, + 8, 3 ) * 45 + - 10 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1648
SELECT DISTINCT + - CAST( NULL AS SIGNED ) col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1648
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col0, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT ALL + 57 * MAX( ALL - + ( + 45 ) ) + - 48 + + 52 + - + NULLIF ( + + 81, - + 59 * - ( - + COUNT( * ) ) ) * 10 AS col1
----
-3371

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL + 57 * MAX ( ALL - + ( + 45 ) ) + - 48 + + 52 + - + NULLIF ( + + 81, - + 59 * - ( - + COUNT ( * ) ) ) * 10 AS col1
----
-3371

query I rowsort
SELECT + COALESCE ( - - 43, - 49 + 82 )
----
43

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1652
SELECT + 17 DIV - ( + COUNT( ALL - 72 ) ) + - ( 25 )
----
-42

skipif mysql # not compatible
query I rowsort label-1652
SELECT + 17 / - ( + COUNT ( ALL - 72 ) ) + - ( 25 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT ALL COUNT( * ) * - - 24 + + - 2 + - 91 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL COUNT ( * ) * - - 24 + + - 2 + - 91 AS col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1654
SELECT COALESCE ( - 34, - NULLIF ( + - NULLIF ( + 48, + 20 * - - CAST( 91 AS DECIMAL ) - - 17 * + 42 * + 66 ), SUM( ALL + - 20 ) ) )
----
-34

skipif mysql # not compatible
query I rowsort label-1654
SELECT COALESCE ( - 34, - NULLIF ( + - NULLIF ( + 48, + 20 * - - CAST ( 91 AS REAL ) - - 17 * + 42 * + 66 ), SUM ( ALL + - 20 ) ) )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1655
SELECT ALL + NULLIF ( + + CASE + 60 WHEN + 88 THEN + 51 WHEN + - 28 * + 86 * - 35 THEN NULL ELSE 40 END, CAST( - 25 AS SIGNED ) + + CASE 27 WHEN - 54 + 58 THEN NULL WHEN - 12 * - 37 + - 33 - - COALESCE ( - 82, 24 ) THEN + - COUNT( * ) END ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL + NULLIF ( + + CASE + 60 WHEN + 88 THEN + 51 WHEN + - 28 * + 86 * - 35 THEN NULL ELSE 40 END, CAST ( - 25 AS INTEGER ) + + CASE 27 WHEN - 54 + 58 THEN NULL WHEN - 12 * - 37 + - 33 - - COALESCE ( - 82, 24 ) THEN + - COUNT ( * ) END ) AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1656
SELECT DISTINCT - 20 * MAX( ALL - 47 ) * 39 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT - 20 * MAX ( ALL - 47 ) * 39 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1657
SELECT DISTINCT 53 * + SUM( + - CAST( + - 72 AS SIGNED ) ) + 25 * + ( 59 ) AS col2, 53 * + 56 + - - 51 + - 7 col1
----
5291
3012

skipif mysql # not compatible
query II rowsort label-1657
SELECT DISTINCT 53 * + SUM ( + - CAST ( + - 72 AS INTEGER ) ) + 25 * + ( 59 ) AS col2, 53 * + 56 + - - 51 + - 7 col1
----
5291
3012

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT - 62 + - ( MIN( 53 ) ) * - 80
----
4178

skipif mysql # not compatible
query I rowsort label-1658
SELECT - 62 + - ( MIN ( 53 ) ) * - 80
----
4178

onlyif mysql # aggregate syntax: 
query II rowsort label-1659
SELECT ALL + 42 * 64 * - 37 + - 79 + + + 14 + + - MIN( DISTINCT + + 79 ) + + 40 * COUNT( * ), 38 * 30 AS col1
----
-99560
1140

skipif mysql # not compatible
query II rowsort label-1659
SELECT ALL + 42 * 64 * - 37 + - 79 + + + 14 + + - MIN ( DISTINCT + + 79 ) + + 40 * COUNT ( * ), 38 * 30 AS col1
----
-99560
1140

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

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

query I rowsort
SELECT COALESCE ( 22, + 79 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT - ( - 48 ) - + - NULLIF ( + - 93, + + 72 + + + SUM( DISTINCT 28 ) ) * + - 32 AS col1
----
3024

skipif mysql # not compatible
query I rowsort label-1662
SELECT - ( - 48 ) - + - NULLIF ( + - 93, + + 72 + + + SUM ( DISTINCT 28 ) ) * + - 32 AS col1
----
3024

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1664
SELECT ALL ( - CAST( - 32 AS SIGNED ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL ( - CAST ( - 32 AS INTEGER ) ) AS col0
----
32

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

skipif mysql # not compatible
query I rowsort label-1665
SELECT + 50 / - 77 / - - COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1666
SELECT DISTINCT - NULLIF ( CAST( NULL AS SIGNED ), + 71 * 17 ) / - - 53 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT DISTINCT - NULLIF ( CAST ( NULL AS INTEGER ), + 71 * 17 ) / - - 53 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT ALL - + ( COUNT( + 87 ) ) * - 21 - + + 11
----
10

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL - + ( COUNT ( + 87 ) ) * - 21 - + + 11
----
10

query I rowsort
SELECT - ( + + 33 ) - 69 AS col1
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1669
SELECT DISTINCT - 84 / + 70 + + - 55 + - 98 / + + 13 * CAST( NULL AS SIGNED ) * + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1669
SELECT DISTINCT - 84 / + 70 + + - 55 + - 98 / + + 13 * CAST ( NULL AS INTEGER ) * + 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1670
SELECT + ( + 16 ) + 96 + - MIN( ALL + 22 ) DIV - + COUNT( 19 ) AS col2, - 83 * - + 3
----
134
249

skipif mysql # not compatible
query II rowsort label-1670
SELECT + ( + 16 ) + 96 + - MIN ( ALL + 22 ) / - + COUNT ( 19 ) AS col2, - 83 * - + 3
----
134
249

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT - 28 + + 33 * + 38 * + COUNT( * ) + + 8
----
1234

skipif mysql # not compatible
query I rowsort label-1671
SELECT - 28 + + 33 * + 38 * + COUNT ( * ) + + 8
----
1234

query I rowsort
SELECT - 32 * - 15 AS col2
----
480

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

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

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

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

query I rowsort
SELECT - - 96 + - + 67 - - - 99
----
-70

query I rowsort
SELECT + - 90 - + + 15 AS col0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT - + ( - + COUNT( * ) ) + + - 12 + 10 * - 53 * - - COUNT( ALL - 9 )
----
-541

skipif mysql # not compatible
query I rowsort label-1677
SELECT - + ( - + COUNT ( * ) ) + + - 12 + 10 * - 53 * - - COUNT ( ALL - 9 )
----
-541

onlyif mysql # aggregate syntax: 
query II rowsort label-1678
SELECT - MAX( ALL 11 ) AS col1, + ( + 43 ) + + - 6 AS col2
----
-11
37

skipif mysql # not compatible
query II rowsort label-1678
SELECT - MAX ( ALL 11 ) AS col1, + ( + 43 ) + + - 6 AS col2
----
-11
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1679
SELECT ALL + NULLIF ( - + ( 53 ), + MIN( DISTINCT + 46 ) * - 24 + + 58 ) + + 0 + - NULLIF ( + 37, + COALESCE ( 62, 11 - + - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) ) )
----
-90

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL + NULLIF ( - + ( 53 ), + MIN ( DISTINCT + 46 ) * - 24 + + 58 ) + + 0 + - NULLIF ( + 37, + COALESCE ( 62, 11 - + - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT + MAX( DISTINCT + - 12 ) + + + 20
----
8

skipif mysql # not compatible
query I rowsort label-1680
SELECT + MAX ( DISTINCT + - 12 ) + + + 20
----
8

query I rowsort
SELECT + 29 + - - 44 AS col1
----
73

query I rowsort
SELECT ALL 52 * - 8
----
-416

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT DISTINCT 81 DIV - + 73 col2
----
-1

skipif mysql # not compatible
query I rowsort label-1684
SELECT DISTINCT 81 / - + 73 col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1685
SELECT + SUM( ALL 82 ) DIV NULLIF ( 41, 64 ) + + 97 * - 74 * - 13 AS col0
----
93316

skipif mysql # not compatible
query I rowsort label-1685
SELECT + SUM ( ALL 82 ) / NULLIF ( 41, 64 ) + + 97 * - 74 * - 13 AS col0
----
93316

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT ALL 16 * CASE - 17 WHEN - ( 9 ) + + 21 THEN 5 + - - 0 WHEN + CASE + COUNT( * ) WHEN + 19 THEN NULL ELSE 13 + 77 END * - 78 * - COUNT( * ) + 86 + - 53 + - 50 + - 1 * + 16 * + COUNT( * ) * + SUM( 59 ) + + 96 THEN - 4 ELSE NULL END * + 2 * 8 + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL 16 * CASE - 17 WHEN - ( 9 ) + + 21 THEN 5 + - - 0 WHEN + CASE + COUNT ( * ) WHEN + 19 THEN NULL ELSE 13 + 77 END * - 78 * - COUNT ( * ) + 86 + - 53 + - 50 + - 1 * + 16 * + COUNT ( * ) * + SUM ( 59 ) + + 96 THEN - 4 ELSE NULL END * + 2 * 8 + + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT ALL - CASE 95 WHEN + - 79 THEN NULL WHEN - + 2 THEN + + 42 * + 4 - - ( + 76 ) / + - ( - - CASE NULLIF ( - 0, - - ( + 93 ) + + 82 ) WHEN - + CASE 18 WHEN - ( + 97 ) THEN - 95 WHEN - + COUNT( * ) THEN + 25 * 21 + - + COUNT( * ) / - 48 ELSE NULL END THEN + 46 + 19 WHEN - - 91 THEN + NULLIF ( 43, COUNT( * ) / 4 ) * - 24 WHEN - 90 THEN 10 END ) WHEN 14 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL - CASE 95 WHEN + - 79 THEN NULL WHEN - + 2 THEN + + 42 * + 4 - - ( + 76 ) / + - ( - - CASE NULLIF ( - 0, - - ( + 93 ) + + 82 ) WHEN - + CASE 18 WHEN - ( + 97 ) THEN - 95 WHEN - + COUNT ( * ) THEN + 25 * 21 + - + COUNT ( * ) / - 48 ELSE NULL END THEN + 46 + 19 WHEN - - 91 THEN + NULLIF ( 43, COUNT ( * ) / 4 ) * - 24 WHEN - 90 THEN 10 END ) WHEN 14 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT DISTINCT COUNT( * ) + - 62 + - ( + + 83 ) AS col1
----
-144

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT COUNT ( * ) + - 62 + - ( + + 83 ) AS col1
----
-144

query I rowsort
SELECT ALL 45 - + 24 AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1690
SELECT NULLIF ( 66, CAST( NULL AS SIGNED ) * - - 68 + MIN( + 41 ) ) + + 41 AS col1
----
107

skipif mysql # not compatible
query I rowsort label-1690
SELECT NULLIF ( 66, CAST ( NULL AS INTEGER ) * - - 68 + MIN ( + 41 ) ) + + 41 AS col1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT 80 * - COUNT( * ) - - + ( + ( + - 55 ) ) AS col1
----
-135

skipif mysql # not compatible
query I rowsort label-1691
SELECT 80 * - COUNT ( * ) - - + ( + ( + - 55 ) ) AS col1
----
-135

query II rowsort
SELECT DISTINCT - 46 AS col1, - NULLIF ( - - 65, 12 )
----
-46
-65

query I rowsort
SELECT DISTINCT - 98 * 74 AS col2
----
-7252

query I rowsort
SELECT ( - 12 ) * 94
----
-1128

query I rowsort
SELECT ALL - + ( 41 ) * + 85 + - 11
----
-3496

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1697
SELECT ALL - + 81 * - - CASE - 41 WHEN + + CAST( NULL AS SIGNED ) * + ( - 72 ) * + 78 * - + 43 + - COUNT( * ) + 82 THEN COUNT( * ) * - - 95 + + 60 + - ( + NULLIF ( + 52, - - 40 ) ) / - + 84 WHEN + ( - - 72 ) * COUNT( ALL + 54 ) THEN - 40 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL - + 81 * - - CASE - 41 WHEN + + CAST ( NULL AS INTEGER ) * + ( - 72 ) * + 78 * - + 43 + - COUNT ( * ) + 82 THEN COUNT ( * ) * - - 95 + + 60 + - ( + NULLIF ( + 52, - - 40 ) ) / - + 84 WHEN + ( - - 72 ) * COUNT ( ALL + 54 ) THEN - 40 END col2
----
NULL

query I rowsort
SELECT ALL + 61 * - 67
----
-4087

query I rowsort
SELECT 65 * + - 66
----
-4290

onlyif mysql # DIV for integer division: 
query I rowsort label-1700
SELECT ( - 29 ) * 12 DIV - 61
----
5

skipif mysql # not compatible
query I rowsort label-1700
SELECT ( - 29 ) * 12 / - 61
----
5

query I rowsort
SELECT DISTINCT + + 14 + + 78
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1702
SELECT ALL + - CASE + 22 WHEN CAST( + + 88 AS SIGNED ) + - - 92 * + MIN( DISTINCT - 38 ) THEN COUNT( DISTINCT 65 ) - - ( - + 81 ) / 40 WHEN - 53 * + + 65 THEN + 92 END + - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL + - CASE + 22 WHEN CAST ( + + 88 AS INTEGER ) + - - 92 * + MIN ( DISTINCT - 38 ) THEN COUNT ( DISTINCT 65 ) - - ( - + 81 ) / 40 WHEN - 53 * + + 65 THEN + 92 END + - 83 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1703
SELECT 90 * 50 DIV 53 * + 68 * - NULLIF ( - 92, - 5 ) * + 97, - 2 + - 2 + + 67 - + 15 AS col1
----
50973888
48

skipif mysql # not compatible
query II rowsort label-1703
SELECT 90 * 50 / 53 * + 68 * - NULLIF ( - 92, - 5 ) * + 97, - 2 + - 2 + + 67 - + 15 AS col1
----
50973888
48

query I rowsort
SELECT 34 * 34 AS col2
----
1156

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1706
SELECT ALL - 46 + + - 4 AS col2, ( 0 ) DIV 80 AS col1
----
-50
0

skipif mysql # not compatible
query II rowsort label-1706
SELECT ALL - 46 + + - 4 AS col2, ( 0 ) / 80 AS col1
----
-50
0

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

query I rowsort
SELECT DISTINCT - 65 * + 58
----
-3770

query I rowsort
SELECT ALL - 47 + 73 + + 10 * ( - + 54 )
----
-514

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1710
SELECT 69 AS col0, - CAST( NULL AS SIGNED ) * - 2 - - 21 AS col0
----
69
NULL

skipif mysql # not compatible
query II rowsort label-1710
SELECT 69 AS col0, - CAST ( NULL AS INTEGER ) * - 2 - - 21 AS col0
----
69
NULL

query I rowsort
SELECT 89 * + 4
----
356

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

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL AVG ( ALL - ( 35 ) ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 98 + - 82 + + 70 * 7 AS col0
----
506

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT ALL COUNT( DISTINCT - COALESCE ( - 96, + 20 ) ) * + - 77 + + + CASE - + 72 WHEN + 26 THEN - + 4 * - 30 * - 67 ELSE - + 85 END
----
-162

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL COUNT ( DISTINCT - COALESCE ( - 96, + 20 ) ) * + - 77 + + + CASE - + 72 WHEN + 26 THEN - + 4 * - 30 * - 67 ELSE - + 85 END
----
-162

query II rowsort
SELECT DISTINCT - 46 AS col0, - 24 AS col2
----
-46
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT ALL COUNT( + - 32 ) * 44
----
44

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL COUNT ( + - 32 ) * 44
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-1718
SELECT ALL - 18 AS col2, CASE 8 WHEN 99 THEN NULL WHEN 92 THEN - COUNT( * ) * + 82 + + 10 + - ( - 86 ) * 89 * 81 END
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-1718
SELECT ALL - 18 AS col2, CASE 8 WHEN 99 THEN NULL WHEN 92 THEN - COUNT ( * ) * + 82 + + 10 + - ( - 86 ) * 89 * 81 END
----
-18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT MIN( ALL + + 51 ) * - 67
----
-3417

skipif mysql # not compatible
query I rowsort label-1719
SELECT MIN ( ALL + + 51 ) * - 67
----
-3417

onlyif mysql # aggregate syntax: 
query II rowsort label-1720
SELECT DISTINCT - + 13 AS col0, + COUNT( * ) AS col1
----
-13
1

skipif mysql # not compatible
query II rowsort label-1720
SELECT DISTINCT - + 13 AS col0, + COUNT ( * ) AS col1
----
-13
1

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

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

query I rowsort
SELECT - 62 + + 41 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-1723
SELECT 41 + 32 AS col2, - COUNT( * ) * 3 AS col2
----
73
-3

skipif mysql # not compatible
query II rowsort label-1723
SELECT 41 + 32 AS col2, - COUNT ( * ) * 3 AS col2
----
73
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT + MIN( + + 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1724
SELECT + MIN ( + + 1 ) AS col2
----
1

query I rowsort
SELECT 0 * + + ( - 70 ) + + + 49 + + 22
----
71

query I rowsort
SELECT 54 * 49 * + + 98 + 90 col2
----
259398

query II rowsort
SELECT - 34, - 34
----
-34
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL - 8 + + MIN( + 19 )
----
11

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL - 8 + + MIN ( + 19 )
----
11

query I rowsort
SELECT + 87 + + 32 - + + ( + 91 ) AS col1
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT COUNT( * ) + 87 + CASE - 57 WHEN - + 28 THEN NULL WHEN + COUNT( DISTINCT 54 ) * + - COUNT( * ) + - - 12 THEN + - 12 * 56 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT COUNT ( * ) + 87 + CASE - 57 WHEN - + 28 THEN NULL WHEN + COUNT ( DISTINCT 54 ) * + - COUNT ( * ) + - - 12 THEN + - 12 * 56 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1733
SELECT - 42 AS col0, 96 + + - 24 / + + CAST( NULL AS SIGNED ) AS col1, + + 39 * - 73 AS col0
----
-42
NULL
-2847

skipif mysql # not compatible
query III rowsort label-1733
SELECT - 42 AS col0, 96 + + - 24 / + + CAST ( NULL AS INTEGER ) AS col1, + + 39 * - 73 AS col0
----
-42
NULL
-2847

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1735
SELECT - ( CASE - + 87 WHEN + 51 THEN NULL WHEN + COALESCE ( - - 59, 64, + 59 * - + 56 / + + 21 + 22, - + COUNT( * ) + + 37 * + - 1 * - 95 + - - 59 ) THEN + 40 WHEN ( - + COUNT( * ) ) * - 0 * + 9 + + COUNT( ALL + - 94 ) * + 73 / + NULLIF ( 34, 15 * 80 * + CAST( 39 AS SIGNED ) ) THEN NULL END ) + + - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1735
SELECT - ( CASE - + 87 WHEN + 51 THEN NULL WHEN + COALESCE ( - - 59, 64, + 59 * - + 56 / + + 21 + 22, - + COUNT ( * ) + + 37 * + - 1 * - 95 + - - 59 ) THEN + 40 WHEN ( - + COUNT ( * ) ) * - 0 * + 9 + + COUNT ( ALL + - 94 ) * + 73 / + NULLIF ( 34, 15 * 80 * + CAST ( 39 AS INTEGER ) ) THEN NULL END ) + + - 92 AS col1
----
NULL

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

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

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

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

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

query I rowsort
SELECT ALL COALESCE ( - 15, - 55 ) AS col1
----
-15

query I rowsort
SELECT - 63 + ( - 50 ) * - 74
----
3637

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

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

query I rowsort
SELECT + 33 * + 57
----
1881

query I rowsort
SELECT DISTINCT + CASE - + 40 WHEN + - 65 THEN NULL WHEN - 96 THEN - + COALESCE ( - + 80, + 93 ) * 85 END * + - 95 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1745
SELECT COALESCE ( CAST( - 28 AS SIGNED ), + - 83 * + COUNT( * ) * 39 DIV - 79 + 54 ) col2
----
-28

skipif mysql # not compatible
query I rowsort label-1745
SELECT COALESCE ( CAST ( - 28 AS INTEGER ), + - 83 * + COUNT ( * ) * 39 / - 79 + 54 ) col2
----
-28

query I rowsort
SELECT - 97 * 97 col2
----
-9409

query I rowsort
SELECT DISTINCT + 98 * + + 99 * + - 72 AS col0
----
-698544

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT + MIN( ALL - 21 ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-1748
SELECT + MIN ( ALL - 21 ) col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT - - COUNT( * ) * - 58 + 99 * 83
----
8159

skipif mysql # not compatible
query I rowsort label-1749
SELECT - - COUNT ( * ) * - 58 + 99 * 83
----
8159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1750
SELECT ALL + 92 * + 61 + 86 DIV - - 53 + + 67 + - 60 * + 41 + + 54 - COALESCE ( - 82, - COUNT( * ) * + - COUNT( * ), + + COUNT( * ) + 12 * 55 * + 41 - + - 4 )
----
3356

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL + 92 * + 61 + 86 / - - 53 + + 67 + - 60 * + 41 + + 54 - COALESCE ( - 82, - COUNT ( * ) * + - COUNT ( * ), + + COUNT ( * ) + 12 * 55 * + 41 - + - 4 )
----
3356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1751
SELECT - 94 + CAST( NULL AS SIGNED ) + + ( 66 ) * + MAX( + 35 )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1752
SELECT DISTINCT + 61 DIV 18
----
3

skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT + 61 / 18
----
3

query I rowsort
SELECT ALL + - 71 * - ( - - 17 ) + - 36
----
1171

onlyif mysql # aggregate syntax: 
query II rowsort label-1754
SELECT DISTINCT - 11 * + + 89, ( + 87 ) * - CASE 26 WHEN - - ( 64 ) THEN + - 2 END * + + COUNT( * ) - - + 27 + + - ( + + COUNT( * ) ) AS col1
----
-979
NULL

skipif mysql # not compatible
query II rowsort label-1754
SELECT DISTINCT - 11 * + + 89, ( + 87 ) * - CASE 26 WHEN - - ( 64 ) THEN + - 2 END * + + COUNT ( * ) - - + 27 + + - ( + + COUNT ( * ) ) AS col1
----
-979
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1755
SELECT + + 42 + 87 AS col0, CAST( NULL AS SIGNED )
----
129
NULL

skipif mysql # not compatible
query II rowsort label-1755
SELECT + + 42 + 87 AS col0, CAST ( NULL AS INTEGER )
----
129
NULL

query I rowsort
SELECT + + 84 - + + 34
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1757
SELECT + - CASE - NULLIF ( 93, + + 60 ) WHEN 61 THEN NULL WHEN + 83 + + COUNT( * ) / + 15 + CAST( + 46 AS SIGNED ) THEN - ( - 51 ) - + 62 END / + + ( ( 33 ) ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT + - CASE - NULLIF ( 93, + + 60 ) WHEN 61 THEN NULL WHEN + 83 + + COUNT ( * ) / + 15 + CAST ( + 46 AS INTEGER ) THEN - ( - 51 ) - + 62 END / + + ( ( 33 ) ) * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT ALL 41 + COUNT( * ) * - 3 * + - 12 * - 99
----
-3523

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL 41 + COUNT ( * ) * - 3 * + - 12 * - 99
----
-3523

query I rowsort
SELECT + 10 * + 66 AS col2
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT ALL CASE + + 66 WHEN - + 4 * - ( + 31 ) * - COUNT( * ) THEN - 80 ELSE NULL END + + MAX( DISTINCT + 49 ) + - + 90 + - + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL CASE + + 66 WHEN - + 4 * - ( + 31 ) * - COUNT ( * ) THEN - 80 ELSE NULL END + + MAX ( DISTINCT + 49 ) + - + 90 + - + 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1761
SELECT ALL MAX( DISTINCT - 51 ), 50 + - 82 col1
----
-51
-32

skipif mysql # not compatible
query II rowsort label-1761
SELECT ALL MAX ( DISTINCT - 51 ), 50 + - 82 col1
----
-51
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1762
SELECT ALL - NULLIF ( + COUNT( - 62 ), + - ( + 52 ) / - ( 81 ) + + CASE + + 6 WHEN - ( - + ( - + ( + 15 ) ) ) THEN AVG ( 98 ) * - AVG ( + - 22 ) * 17 * + 80 END + + - CASE - CAST( - COUNT( * ) AS SIGNED ) WHEN - ( - 8 ) * + COUNT( * ) THEN - 50 WHEN COUNT( * ) THEN 73 END + + 31 * - 67 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL - NULLIF ( + COUNT ( - 62 ), + - ( + 52 ) / - ( 81 ) + + CASE + + 6 WHEN - ( - + ( - + ( + 15 ) ) ) THEN AVG ( 98 ) * - AVG ( + - 22 ) * 17 * + 80 END + + - CASE - CAST ( - COUNT ( * ) AS INTEGER ) WHEN - ( - 8 ) * + COUNT ( * ) THEN - 50 WHEN COUNT ( * ) THEN 73 END + + 31 * - 67 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 58 - - 24 AS col1
----
82

query II rowsort
SELECT 89, 26 * + 26 AS col1
----
89
676

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT ALL COALESCE ( + 13, - COUNT( DISTINCT + + 89 ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL COALESCE ( + 13, - COUNT ( DISTINCT + + 89 ) ) AS col0
----
13

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1768
SELECT + CAST( NULL AS DECIMAL ) * COALESCE ( - + CASE + 71 WHEN 52 + CAST( 61 AS SIGNED ) - - 88 + - 60 THEN NULL WHEN NULLIF ( - ( 23 ), - 52 ) / - CAST( NULL AS DECIMAL ) * 22 + - 61 + 56 / + - CAST( - + COUNT( * ) AS SIGNED ) + 73 + + COALESCE ( + 4, - - 63 * + - 98 * - 89, - 37 ) * - 55 * - 56 * + + 19 * + - 64 THEN 50 ELSE - 52 / - COUNT( * ) * 12 + - 90 END, 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1768
SELECT + CAST ( NULL AS REAL ) * COALESCE ( - + CASE + 71 WHEN 52 + CAST ( 61 AS INTEGER ) - - 88 + - 60 THEN NULL WHEN NULLIF ( - ( 23 ), - 52 ) / - CAST ( NULL AS REAL ) * 22 + - 61 + 56 / + - CAST ( - + COUNT ( * ) AS INTEGER ) + 73 + + COALESCE ( + 4, - - 63 * + - 98 * - 89, - 37 ) * - 55 * - 56 * + + 19 * + - 64 THEN 50 ELSE - 52 / - COUNT ( * ) * 12 + - 90 END, 23 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 84 * 1 AS col1
----
84

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

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

query I rowsort
SELECT DISTINCT ( 36 ) col2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1772
SELECT - 97 DIV 20 col1
----
-4

skipif mysql # not compatible
query I rowsort label-1772
SELECT - 97 / 20 col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1773
SELECT DISTINCT - 39 DIV - + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - 39 / - + 94 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1774
SELECT ALL + CASE WHEN NOT + 96 <= + 67 * + + CAST( MIN( DISTINCT - 77 ) AS SIGNED ) THEN - CAST( NULL AS DECIMAL ) END AS col0, 85 AS col0
----
NULL
85

skipif mysql # not compatible
query II rowsort label-1774
SELECT ALL + CASE WHEN NOT + 96 <= + 67 * + + CAST ( MIN ( DISTINCT - 77 ) AS INTEGER ) THEN - CAST ( NULL AS REAL ) END AS col0, 85 AS col0
----
NULL
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1775
SELECT - MAX( ALL 10 ) DIV + + MAX( 71 ) * + 56 + - 43 - + CAST( - 21 AS SIGNED ) + 98 + - 29 + 73 + + 7 DIV 4 * - 49 * - CAST( 17 AS SIGNED ) - - 21 - 48
----
926

skipif mysql # not compatible
query I rowsort label-1775
SELECT - MAX ( ALL 10 ) / + + MAX ( 71 ) * + 56 + - 43 - + CAST ( - 21 AS INTEGER ) + 98 + - 29 + 73 + + 7 / 4 * - 49 * - CAST ( 17 AS INTEGER ) - - 21 - 48
----
926

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1776
SELECT DISTINCT - 58 DIV + - SUM( - 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT - 58 / + - SUM ( - 43 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1777
SELECT + 62 DIV - 20 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1777
SELECT + 62 / - 20 AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1778
SELECT DISTINCT + 23 DIV + - 76 + - - 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT + 23 / + - 76 + - - 19 AS col0
----
19

query I rowsort
SELECT - 83 + - 64
----
-147

query I rowsort
SELECT + NULLIF ( - 12, CASE + 75 WHEN - 16 THEN 6 * - 51 - + - 82 + + 85 / - 4 END * 76 ) AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-1781
SELECT DISTINCT - - 59 DIV + - 77 * - + 99 + + - 40 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT - - 59 / + - 77 * - + 99 + + - 40 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1782
SELECT + + 17, MAX( ALL 11 ) AS col2
----
17
11

skipif mysql # not compatible
query II rowsort label-1782
SELECT + + 17, MAX ( ALL 11 ) AS col2
----
17
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1783
SELECT ALL COUNT( * ) * - 3 + CAST( - 85 AS SIGNED ) + 37 + + + COALESCE ( - 36, - SUM( DISTINCT + 87 ) ) + - - 55
----
-32

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL COUNT ( * ) * - 3 + CAST ( - 85 AS INTEGER ) + 37 + + + COALESCE ( - 36, - SUM ( DISTINCT + 87 ) ) + - - 55
----
-32

query I rowsort
SELECT DISTINCT 7 * + ( 4 ) + + 56 * 81
----
4564

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT ALL - SUM( - - ( ( 63 ) ) ) * - 21 + 49 + - 48 AS col1
----
1324

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL - SUM ( - - ( ( 63 ) ) ) * - 21 + 49 + - 48 AS col1
----
1324

query I rowsort
SELECT - 99 * 79 * 73
----
-570933

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT 11 * - MIN( + + 59 ) + + + 8 AS col1
----
-641

skipif mysql # not compatible
query I rowsort label-1787
SELECT 11 * - MIN ( + + 59 ) + + + 8 AS col1
----
-641

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

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT + COUNT ( * ) / - 24
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1789
SELECT + 73 * - COUNT( * ) + - + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + - + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1789
SELECT + 73 * - COUNT ( * ) + - + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + - + 77 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1790
SELECT + 35 + + 68 + + CAST( 48 AS SIGNED ) * + + 16 * COUNT( DISTINCT + 60 ) * - + 4 * 75 + + 4 col0
----
-230293

skipif mysql # not compatible
query I rowsort label-1790
SELECT + 35 + + 68 + + CAST ( 48 AS INTEGER ) * + + 16 * COUNT ( DISTINCT + 60 ) * - + 4 * 75 + + 4 col0
----
-230293

onlyif mysql # DIV for integer division: 
query I rowsort label-1791
SELECT ALL - - 77 DIV - + 5 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL - - 77 / - + 5 AS col0
----
-15

query I rowsort
SELECT DISTINCT + - 15 - - - 1 AS col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1793
SELECT - 58 + + 74 * + - ( MAX( 92 ) ) + - ( + - 54 ) + + + CAST( NULL AS SIGNED ) / - 44 + + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1793
SELECT - 58 + + 74 * + - ( MAX ( 92 ) ) + - ( + - 54 ) + + + CAST ( NULL AS INTEGER ) / - 44 + + 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1794
SELECT 2 * - 26, + COUNT( ALL + 60 ) * - 46 * - ( + MAX( - - 96 ) ) AS col0
----
-52
4416

skipif mysql # not compatible
query II rowsort label-1794
SELECT 2 * - 26, + COUNT ( ALL + 60 ) * - 46 * - ( + MAX ( - - 96 ) ) AS col0
----
-52
4416

query I rowsort
SELECT ALL 52 * + 69 col0
----
3588

onlyif mysql # aggregate syntax: 
query II rowsort label-1796
SELECT DISTINCT COUNT( * ) * 48 AS col2, 54
----
48
54

skipif mysql # not compatible
query II rowsort label-1796
SELECT DISTINCT COUNT ( * ) * 48 AS col2, 54
----
48
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1797
SELECT 79 DIV - + 39
----
-2

skipif mysql # not compatible
query I rowsort label-1797
SELECT 79 / - + 39
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT MIN( ALL + 95 ) + - 69 * - - 56 + COUNT( * )
----
-3768

skipif mysql # not compatible
query I rowsort label-1798
SELECT MIN ( ALL + 95 ) + - 69 * - - 56 + COUNT ( * )
----
-3768

query II rowsort
SELECT ( + 60 ) * - - 73 + + 10 col0, 81
----
4390
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT COUNT( * ) * 12 * 35 AS col2
----
420

skipif mysql # not compatible
query I rowsort label-1800
SELECT COUNT ( * ) * 12 * 35 AS col2
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT 98 + - COUNT( ALL - 27 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-1801
SELECT 98 + - COUNT ( ALL - 27 ) AS col2
----
97

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1804
SELECT CAST ( NULL AS INTEGER ) * + + 46 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1805
SELECT ALL - ( - 50 ) + 54 DIV CAST( + 17 AS SIGNED ) col0
----
53

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL - ( - 50 ) + 54 / CAST ( + 17 AS INTEGER ) col0
----
53

query II rowsort
SELECT 33 + 60, 90 AS col1
----
93
90

onlyif mysql # aggregate syntax: 
query II rowsort label-1807
SELECT ALL COUNT( * ) + ( - 93 ) + + 87, - 94 AS col2
----
-5
-94

skipif mysql # not compatible
query II rowsort label-1807
SELECT ALL COUNT ( * ) + ( - 93 ) + + 87, - 94 AS col2
----
-5
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT DISTINCT 97 + + COUNT( * ) - + + 85 * - 47 AS col1
----
4093

skipif mysql # not compatible
query I rowsort label-1808
SELECT DISTINCT 97 + + COUNT ( * ) - + + 85 * - 47 AS col1
----
4093

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

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

query I rowsort
SELECT 52 + 68
----
120

query I rowsort
SELECT ALL 32 + + 54 AS col0
----
86

query I rowsort
SELECT + 26 * - ( + 35 ) + + - 52 + - + 47
----
-1009

onlyif mysql # aggregate syntax: 
query II rowsort label-1813
SELECT DISTINCT 67 + - - 55 col1, - COUNT( * )
----
122
-1

skipif mysql # not compatible
query II rowsort label-1813
SELECT DISTINCT 67 + - - 55 col1, - COUNT ( * )
----
122
-1

query I rowsort
SELECT - 88 * + - 8 + + 19 AS col1
----
723

query I rowsort
SELECT DISTINCT 46 + + 47 * 12 col2
----
610

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL - 78 + COUNT( * ) + + 19 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL - 78 + COUNT ( * ) + + 19 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT DISTINCT - - 97 + - - 27 * - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-1817
SELECT DISTINCT - - 97 + - - 27 * - COUNT ( * )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1818
SELECT DISTINCT - + ( - - COALESCE ( + NULLIF ( + - 64, + AVG ( ALL + ( + 79 ) ) / CASE + + CAST( - - ( - - 7 ) AS SIGNED ) WHEN - 42 * + COUNT( * ) + 1 * - - ( COALESCE ( - 39, - NULLIF ( - - CAST( - 95 AS DECIMAL ), - + COALESCE ( - - CAST( - 15 AS DECIMAL ), + 85 * 32 + - 62 * - 69, + - ( ( - + 4 ) ) + + 71 * + 43 * - MIN( - - 36 ) ) / COUNT( * ) ) ) ) - - COUNT( * ) * CASE 75 WHEN - 23 THEN NULL WHEN COUNT( * ) THEN + 60 + - 59 END THEN + 62 ELSE 18 END + + NULLIF ( + 56, NULLIF ( - 17, CAST( NULL AS SIGNED ) ) + + 84 ) * + COUNT( * ) + COUNT( * ) ), - 92 ) ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT - + ( - - COALESCE ( + NULLIF ( + - 64, + AVG ( ALL + ( + 79 ) ) / CASE + + CAST ( - - ( - - 7 ) AS INTEGER ) WHEN - 42 * + COUNT ( * ) + 1 * - - ( COALESCE ( - 39, - NULLIF ( - - CAST ( - 95 AS REAL ), - + COALESCE ( - - CAST ( - 15 AS REAL ), + 85 * 32 + - 62 * - 69, + - ( ( - + 4 ) ) + + 71 * + 43 * - MIN ( - - 36 ) ) / COUNT ( * ) ) ) ) - - COUNT ( * ) * CASE 75 WHEN - 23 THEN NULL WHEN COUNT ( * ) THEN + 60 + - 59 END THEN + 62 ELSE 18 END + + NULLIF ( + 56, NULLIF ( - 17, CAST ( NULL AS INTEGER ) ) + + 84 ) * + COUNT ( * ) + COUNT ( * ) ), - 92 ) ) AS col2
----
64

query I rowsort
SELECT 34 + - 3
----
31

query I rowsort
SELECT + 26 * + 40 + + 50 + - NULLIF ( 63, + 35 )
----
1027

query I rowsort
SELECT ALL - + 55 - + 82 AS col1
----
-137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1822
SELECT - 83 * - COUNT( * ) + + ( 35 ) DIV - + 63 + - + COUNT( * ) + 67 * - ( - + COUNT( * ) ) col2
----
149

skipif mysql # not compatible
query I rowsort label-1822
SELECT - 83 * - COUNT ( * ) + + ( 35 ) / - + 63 + - + COUNT ( * ) + 67 * - ( - + COUNT ( * ) ) col2
----
149

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1824
SELECT + COUNT( * ) * CASE + 71 WHEN - NULLIF ( - COUNT( * ), + NULLIF ( CAST( + ( - + COUNT( * ) ) AS SIGNED ), + 81 ) * - 78 * NULLIF ( + COUNT( * ), 55 ) ) * + ( + - CAST( + 1 AS SIGNED ) ) / + + 59 THEN - 32 / 32 + - - ( - + COUNT( * ) ) * + + 68 * - 11 * 3 * COUNT( * ) + + - 65 + + 28 END + + + 99 + COUNT( * ) + 62 * - COALESCE ( 1, 78 * 85 ) + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT + COUNT ( * ) * CASE + 71 WHEN - NULLIF ( - COUNT ( * ), + NULLIF ( CAST ( + ( - + COUNT ( * ) ) AS INTEGER ), + 81 ) * - 78 * NULLIF ( + COUNT ( * ), 55 ) ) * + ( + - CAST ( + 1 AS INTEGER ) ) / + + 59 THEN - 32 / 32 + - - ( - + COUNT ( * ) ) * + + 68 * - 11 * 3 * COUNT ( * ) + + - 65 + + 28 END + + + 99 + COUNT ( * ) + 62 * - COALESCE ( 1, 78 * 85 ) + 26
----
NULL

query I rowsort
SELECT ALL - - 50 * - 25
----
-1250

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT - COUNT( * ) * - + 96 + - 57 + + 35
----
74

skipif mysql # not compatible
query I rowsort label-1826
SELECT - COUNT ( * ) * - + 96 + - 57 + + 35
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1827
SELECT NULLIF ( ( 64 ), - + 18 ) AS col1, ( + - 48 ) * CAST( NULL AS DECIMAL ) - + MAX( + 94 ) AS col1
----
64
NULL

skipif mysql # not compatible
query II rowsort label-1827
SELECT NULLIF ( ( 64 ), - + 18 ) AS col1, ( + - 48 ) * CAST ( NULL AS REAL ) - + MAX ( + 94 ) AS col1
----
64
NULL

query I rowsort
SELECT 82 * - 1 * - 48
----
3936

query II rowsort
SELECT 18 * - COALESCE ( - 51, + + NULLIF ( + 34, + + 9 / 52 * + 41 ) ) AS col1, 33
----
918
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT ALL 99 * + 44 * - - MIN( 89 )
----
387684

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL 99 * + 44 * - - MIN ( 89 )
----
387684

query I rowsort
SELECT 8 * ( 98 )
----
784

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT DISTINCT - 66 DIV + - 48
----
1

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT - 66 / + - 48
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1835
SELECT ALL + 94 + - NULLIF ( + MAX( - + 49 ), + - 70 * + MAX( DISTINCT + 74 ) + - + 31 / - + CASE - - COALESCE ( - - 58, + 35 * - - CASE + - 6 WHEN + 30 + + ( CAST( NULL AS SIGNED ) ) + - - CASE - 56 WHEN - COUNT( * ) + + 10 THEN + 43 END * + - 34 THEN + 34 / - ( + 75 ) + - 26 + + + 50 * 75 * + 22 + - + 15 END * + 36 ) WHEN - 52 * - - 74 * - 68 THEN + ( - COUNT( * ) ) WHEN + 10 THEN NULL ELSE - 23 END ) + + CAST( NULL AS DECIMAL ) / 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL + 94 + - NULLIF ( + MAX ( - + 49 ), + - 70 * + MAX ( DISTINCT + 74 ) + - + 31 / - + CASE - - COALESCE ( - - 58, + 35 * - - CASE + - 6 WHEN + 30 + + ( CAST ( NULL AS INTEGER ) ) + - - CASE - 56 WHEN - COUNT ( * ) + + 10 THEN + 43 END * + - 34 THEN + 34 / - ( + 75 ) + - 26 + + + 50 * 75 * + 22 + - + 15 END * + 36 ) WHEN - 52 * - - 74 * - 68 THEN + ( - COUNT ( * ) ) WHEN + 10 THEN NULL ELSE - 23 END ) + + CAST ( NULL AS REAL ) / 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1836
SELECT ALL 56 + - 19 * - CAST( - 97 AS SIGNED )
----
-1787

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL 56 + - 19 * - CAST ( - 97 AS INTEGER )
----
-1787

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1837
SELECT 17 / CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1837
SELECT 17 / CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1838
SELECT MAX( ALL + + ( + 1 ) ) DIV + COALESCE ( + 41, - - 54 ) * + 90 col0
----
0

skipif mysql # not compatible
query I rowsort label-1838
SELECT MAX ( ALL + + ( + 1 ) ) / + COALESCE ( + 41, - - 54 ) * + 90 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL NULLIF ( + + 67, - COUNT( * ) * - 96 ) + + COUNT( * ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL NULLIF ( + + 67, - COUNT ( * ) * - 96 ) + + COUNT ( * ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT 23 - + MIN( - - 59 )
----
-36

skipif mysql # not compatible
query I rowsort label-1840
SELECT 23 - + MIN ( - - 59 )
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1841
SELECT 78 AS col1, 37 * + MAX( ALL 70 ) + 80 - - 13 * + 73 * + 44 + + ( 78 ) + 94 + - 15 * + 50
----
78
43848

skipif mysql # not compatible
query II rowsort label-1841
SELECT 78 AS col1, 37 * + MAX ( ALL 70 ) + 80 - - 13 * + 73 * + 44 + + ( 78 ) + 94 + - 15 * + 50
----
78
43848

query II rowsort
SELECT DISTINCT 57 AS col2, 52
----
57
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT COUNT( * ) + + - COUNT( * ) * + 74
----
-73

skipif mysql # not compatible
query I rowsort label-1843
SELECT COUNT ( * ) + + - COUNT ( * ) * + 74
----
-73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1845
SELECT + 79 + CAST( NULL AS SIGNED ) + + 6 + - ( ( - 92 ) ) * - CAST( + ( 48 ) AS SIGNED ) * - COUNT( 44 ) * - 9 * - - 74 + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1845
SELECT + 79 + CAST ( NULL AS INTEGER ) + + 6 + - ( ( - 92 ) ) * - CAST ( + ( 48 ) AS INTEGER ) * - COUNT ( 44 ) * - 9 * - - 74 + 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT ALL 18 + - MIN( 31 )
----
-13

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL 18 + - MIN ( 31 )
----
-13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT MAX( ALL 43 ) col2
----
43

skipif mysql # not compatible
query I rowsort label-1848
SELECT MAX ( ALL 43 ) col2
----
43

query I rowsort
SELECT 77 * 49 + + - 42 * - - 88 AS col2
----
77

query I rowsort
SELECT - 15 - + 20
----
-35

query I rowsort
SELECT + 54 * + 4 AS col0
----
216

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

skipif mysql # not compatible
query I rowsort label-1852
SELECT + SUM ( - + 45 )
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-1853
SELECT DISTINCT 2 * - 15 * 14 * + + COUNT( * ) * 57 col0, - NULLIF ( - 40, - CASE + 23 WHEN + 17 THEN NULL WHEN - - 42 THEN - 46 / + 46 + + + 70 WHEN + - CASE + 84 WHEN 2 THEN + 49 END THEN NULL END * 67 + 16 + 46 * + 61 * + 65 / + + 65 )
----
-23940
40

skipif mysql # not compatible
query II rowsort label-1853
SELECT DISTINCT 2 * - 15 * 14 * + + COUNT ( * ) * 57 col0, - NULLIF ( - 40, - CASE + 23 WHEN + 17 THEN NULL WHEN - - 42 THEN - 46 / + 46 + + + 70 WHEN + - CASE + 84 WHEN 2 THEN + 49 END THEN NULL END * 67 + 16 + 46 * + 61 * + 65 / + + 65 )
----
-23940
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT + 81 + - MIN( - - 16 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-1855
SELECT + 81 + - MIN ( - - 16 ) AS col2
----
65

query I rowsort
SELECT ALL 60 * + 95 + - 17 AS col2
----
5683

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT ALL 23 * - COUNT( * ) - + 90
----
-113

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL 23 * - COUNT ( * ) - + 90
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT ALL + MIN( - 64 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL + MIN ( - 64 ) AS col1
----
-64

query I rowsort
SELECT - COALESCE ( - 52, + 84, 67 ) * - 80 AS col1
----
-4160

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

query I rowsort
SELECT - 44 + - - 84 * 59 * - 62 AS col0
----
-307316

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1863
SELECT + - 84 DIV 11 + + 94 * - 27 + ( + 54 ) * + + 76 - - - COUNT( * ) * COUNT( * ) * - 18 * 87 * - NULLIF ( + COUNT( * ), - - 13 ) + - 1 + COALESCE ( CAST( NULL AS SIGNED ), - COUNT( * ) ) * + 36 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-1863
SELECT + - 84 / 11 + + 94 * - 27 + ( + 54 ) * + + 76 - - - COUNT ( * ) * COUNT ( * ) * - 18 * 87 * - NULLIF ( + COUNT ( * ), - - 13 ) + - 1 + COALESCE ( CAST ( NULL AS INTEGER ), - COUNT ( * ) ) * + 36 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-1864
SELECT - 17 * 41 AS col2, + SUM( ALL + 49 ) AS col2
----
-697
49

skipif mysql # not compatible
query II rowsort label-1864
SELECT - 17 * 41 AS col2, + SUM ( ALL + 49 ) AS col2
----
-697
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL + CASE 92 WHEN + MAX( ALL - 84 ) + - - 42 THEN - 56 WHEN - 99 * + MAX( 36 ) THEN - - 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL + CASE 92 WHEN + MAX ( ALL - 84 ) + - - 42 THEN - 56 WHEN - 99 * + MAX ( 36 ) THEN - - 65 ELSE NULL END
----
NULL

query I rowsort
SELECT - 5 + + 47 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT ALL CASE NULLIF ( 13, + + 29 * 70 + + 8 ) WHEN NULLIF ( + 78, - 6 * - 43 + + COUNT( * ) / - COUNT( * ) ) + - AVG ( - + 11 ) + + 21 - - 41 THEN NULL ELSE 20 END AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL CASE NULLIF ( 13, + + 29 * 70 + + 8 ) WHEN NULLIF ( + 78, - 6 * - 43 + + COUNT ( * ) / - COUNT ( * ) ) + - AVG ( - + 11 ) + + 21 - - 41 THEN NULL ELSE 20 END AS col1
----
20

query II rowsort
SELECT - 81 + - 0, + ( + + 55 ) AS col2
----
-81
55

query I rowsort
SELECT - 98 + 27
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1870
SELECT DISTINCT - 80 * + + COALESCE ( + 23, + - 49 DIV + COUNT( * ) + + 50 + 93 + + - COUNT( * ) + - 43 * - 16 * - - COUNT( * ) + - + COUNT( * ) + - - 75 )
----
-1840

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT - 80 * + + COALESCE ( + 23, + - 49 / + COUNT ( * ) + + 50 + 93 + + - COUNT ( * ) + - 43 * - 16 * - - COUNT ( * ) + - + COUNT ( * ) + - - 75 )
----
-1840

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

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT - 71 + COUNT ( * ) AS col1
----
-70

query II rowsort
SELECT + 45 * - 53 AS col0, + 88 AS col2
----
-2385
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT - 51 + + - COALESCE ( + ( + 80 ), + - 57 * + NULLIF ( - CASE - - 24 WHEN - + 99 + + - 24 THEN + + 86 + + 46 + - + 89 * + 31 END, 50 - + 47 * - - 40 DIV + + 64 ) * - 94 ) * - - COALESCE ( + - 21, + 60 DIV - 82 + 8 + 61 ) AS col0
----
1629

skipif mysql # not compatible
query I rowsort label-1873
SELECT - 51 + + - COALESCE ( + ( + 80 ), + - 57 * + NULLIF ( - CASE - - 24 WHEN - + 99 + + - 24 THEN + + 86 + + 46 + - + 89 * + 31 END, 50 - + 47 * - - 40 / + + 64 ) * - 94 ) * - - COALESCE ( + - 21, + 60 / - 82 + 8 + 61 ) AS col0
----
1629

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT ALL - CASE + 81 WHEN 34 THEN - COUNT( * ) * 39 END + - COUNT( * ) * - + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL - CASE + 81 WHEN 34 THEN - COUNT ( * ) * 39 END + - COUNT ( * ) * - + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL CASE 63 WHEN - 49 THEN - - COUNT( * ) / 57 ELSE - 12 * + 1 * + 72 - - 48 END
----
-816

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL CASE 63 WHEN - 49 THEN - - COUNT ( * ) / 57 ELSE - 12 * + 1 * + 72 - - 48 END
----
-816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1876
SELECT - 39 + - CASE 40 WHEN - 18 + + MIN( DISTINCT - 25 ) * + - 22 THEN NULL WHEN 41 THEN + + CASE 50 WHEN - 81 + - CAST( - - 96 AS SIGNED ) THEN - 50 * 23 * + 77 ELSE 7 END END * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT - 39 + - CASE 40 WHEN - 18 + + MIN ( DISTINCT - 25 ) * + - 22 THEN NULL WHEN 41 THEN + + CASE 50 WHEN - 81 + - CAST ( - - 96 AS INTEGER ) THEN - 50 * 23 * + 77 ELSE 7 END END * + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 10, + 52 + + + COALESCE ( - 71, + - 5 * - 87 ) * - 20, + ( - + 13 ) ) AS col2
----
10

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

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

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

query II rowsort
SELECT - 91 + + 65, - NULLIF ( 50, NULLIF ( - 19, - - 23 ) * 97 * - + AVG ( - + ( 9 ) ) ) AS col1
----
-26
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1881
SELECT DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN 51 THEN + COALESCE ( 33, + + 7 ) WHEN + CASE + MIN( + 25 ) WHEN + COUNT( * ) THEN + 66 ELSE - - 58 END / + 52 * + 28 * + 57 * - - 28 / + + 72 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN 51 THEN + COALESCE ( 33, + + 7 ) WHEN + CASE + MIN ( + 25 ) WHEN + COUNT ( * ) THEN + 66 ELSE - - 58 END / + 52 * + 28 * + 57 * - - 28 / + + 72 THEN NULL ELSE NULL END AS col1
----
NULL

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

query I rowsort
SELECT ALL 79 - 23 * - 22 * - 55 AS col0
----
-27751

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT - MIN( ALL 90 ) * 37 * - 34 * - 15 * + - 72 + - 54 + COUNT( * ) * 0
----
122277546

skipif mysql # not compatible
query I rowsort label-1884
SELECT - MIN ( ALL 90 ) * 37 * - 34 * - 15 * + - 72 + - 54 + COUNT ( * ) * 0
----
122277546

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

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

query I rowsort
SELECT ALL COALESCE ( 37, + 94 ) AS col0
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT ALL + SUM( - - 44 ) - 58 col1
----
-14

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL + SUM ( - - 44 ) - 58 col1
----
-14

query I rowsort
SELECT - - 89 * + + 25 AS col0
----
2225

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT + 8 * - 10 * + COUNT( - 5 ) col0
----
-80

skipif mysql # not compatible
query I rowsort label-1890
SELECT + 8 * - 10 * + COUNT ( - 5 ) col0
----
-80

query I rowsort
SELECT + + 26 + - 42 * 79
----
-3292

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1893
SELECT + 35 DIV - 75 + - - COUNT( ALL - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-1893
SELECT + 35 / - 75 + - - COUNT ( ALL - 70 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1894
SELECT + 54 * + + 45 + + - 84 * + CAST( - 87 AS SIGNED )
----
9738

skipif mysql # not compatible
query I rowsort label-1894
SELECT + 54 * + + 45 + + - 84 * + CAST ( - 87 AS INTEGER )
----
9738

query II rowsort
SELECT ALL + 15 AS col0, 21
----
15
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1896
SELECT + CASE - 93 WHEN NULLIF ( - + 14, - + 90 ) THEN - - 98 WHEN + - 50 THEN + + 94 - 75 + + - 22 * + 86 ELSE + 10 * COALESCE ( - + 96, ( - COUNT( * ) ) * - + 21 * - COALESCE ( + - 51, - COUNT( * ) DIV + COALESCE ( + 4, 3 + + SUM( ( 40 ) ) ) * - - AVG ( DISTINCT - 12 ), + - 24 * 3 ) * NULLIF ( AVG ( ALL - - 23 ), COUNT( * ) ) + ( - COUNT( * ) ) * - 71 ) DIV 84 + NULLIF ( - 53, 48 + + 35 ) * - COUNT( * ) END AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1896
SELECT + CASE - 93 WHEN NULLIF ( - + 14, - + 90 ) THEN - - 98 WHEN + - 50 THEN + + 94 - 75 + + - 22 * + 86 ELSE + 10 * COALESCE ( - + 96, ( - COUNT ( * ) ) * - + 21 * - COALESCE ( + - 51, - COUNT ( * ) / + COALESCE ( + 4, 3 + + SUM ( ( 40 ) ) ) * - - AVG ( DISTINCT - 12 ), + - 24 * 3 ) * NULLIF ( AVG ( ALL - - 23 ), COUNT ( * ) ) + ( - COUNT ( * ) ) * - 71 ) / 84 + NULLIF ( - 53, 48 + + 35 ) * - COUNT ( * ) END AS col1
----
42

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

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

query I rowsort
SELECT - - 88 * - 78 + - - COALESCE ( - 31, + 95, - 27 * 31 )
----
-6895

query I rowsort
SELECT + - 82 + 75 - - 84 - 12 * 89
----
-991

query I rowsort
SELECT DISTINCT ( ( + 50 ) ) * + 16
----
800

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1901
SELECT - COUNT( * ), 91 + + CAST( NULL AS DECIMAL ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1901
SELECT - COUNT ( * ), 91 + + CAST ( NULL AS REAL ) AS col1
----
-1
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1903
SELECT + ( COUNT( * ) ) AS col1, MIN( DISTINCT + - 62 ) AS col1
----
1
-62

skipif mysql # not compatible
query II rowsort label-1903
SELECT + ( COUNT ( * ) ) AS col1, MIN ( DISTINCT + - 62 ) AS col1
----
1
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT DISTINCT - NULLIF ( - COUNT( * ), 98 - + 96 ) * + 30 + 97
----
127

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT - NULLIF ( - COUNT ( * ), 98 - + 96 ) * + 30 + 97
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT ALL + SUM( NULLIF ( 52, + 6 ) )
----
52

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL + SUM ( NULLIF ( 52, + 6 ) )
----
52

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

skipif mysql # not compatible
query I rowsort label-1906
SELECT + 81 / - - COUNT ( * )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1907
SELECT CASE - CASE - 59 WHEN - + 48 + + ( - COUNT( ALL + 43 ) ) THEN NULL ELSE - + 2 END WHEN + 44 THEN CAST( NULL AS SIGNED ) + - + 44 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT CASE - CASE - 59 WHEN - + 48 + + ( - COUNT ( ALL + 43 ) ) THEN NULL ELSE - + 2 END WHEN + 44 THEN CAST ( NULL AS INTEGER ) + - + 44 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT ALL + ( - 17 ) * - 2 * + 77 + - + COUNT( * ) AS col1
----
2617

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL + ( - 17 ) * - 2 * + 77 + - + COUNT ( * ) AS col1
----
2617

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1909
SELECT DISTINCT - 46 * - - 88 + + 30 + - 76 * + + 91 AS col2, + CAST( - 45 AS SIGNED )
----
-10934
-45

skipif mysql # not compatible
query II rowsort label-1909
SELECT DISTINCT - 46 * - - 88 + + 30 + - 76 * + + 91 AS col2, + CAST ( - 45 AS INTEGER )
----
-10934
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT DISTINCT + 63 * - - 74 + - COUNT( * )
----
4661

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT + 63 * - - 74 + - COUNT ( * )
----
4661

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT + 45 DIV + 32 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1911
SELECT + 45 / + 32 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1912
SELECT ALL + 13 * 34 DIV - + ( - + 58 ) + + - ( - 67 ) * - 6
----
-395

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL + 13 * 34 / - + ( - + 58 ) + + - ( - 67 ) * - 6
----
-395

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1913
SELECT DISTINCT CAST( + 16 AS SIGNED ) DIV - - 13
----
1

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT CAST ( + 16 AS INTEGER ) / - - 13
----
1

query I rowsort
SELECT + 98 * + 39
----
3822

query I rowsort
SELECT ALL + 94 * 74 AS col1
----
6956

query I rowsort
SELECT ALL + 22 - - + 6 - + 89 * 40 AS col1
----
-3532

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT ALL ( - NULLIF ( - + COUNT( * ), + + MIN( - 96 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL ( - NULLIF ( - + COUNT ( * ), + + MIN ( - 96 ) ) )
----
1

query I rowsort
SELECT ALL ( 0 ) * - 26 * - 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT DISTINCT - 77 - - ( - - SUM( ALL + 20 ) ) + ( SUM( + 6 ) ) col0
----
-51

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT - 77 - - ( - - SUM ( ALL + 20 ) ) + ( SUM ( + 6 ) ) col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1920
SELECT ALL + 23 * - CAST( - 75 AS SIGNED ) * + 61 AS col2
----
105225

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL + 23 * - CAST ( - 75 AS INTEGER ) * + 61 AS col2
----
105225

query I rowsort
SELECT + 32 + + 27
----
59

query I rowsort
SELECT ALL - - 23 - - 91 * 83 AS col1
----
7576

onlyif mysql # DIV for integer division: 
query I rowsort label-1923
SELECT - + 60 + + 87 * 28 DIV + + 10
----
183

skipif mysql # not compatible
query I rowsort label-1923
SELECT - + 60 + + 87 * 28 / + + 10
----
183

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1924
SELECT ALL CASE + 46 WHEN - + 50 * + ( + - 0 ) + - MIN( + CAST( NULL AS DECIMAL ) ) + + 41 / 53 + - - 60 THEN 38 + + NULLIF ( + - COUNT( * ), - 39 * + 85 ) ELSE 65 END AS col1
----
65

skipif mysql # not compatible
query I rowsort label-1924
SELECT ALL CASE + 46 WHEN - + 50 * + ( + - 0 ) + - MIN ( + CAST ( NULL AS REAL ) ) + + 41 / 53 + - - 60 THEN 38 + + NULLIF ( + - COUNT ( * ), - 39 * + 85 ) ELSE 65 END AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT ALL + + 35 * - + 73 * - SUM( DISTINCT - + 89 ) AS col1
----
-227395

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL + + 35 * - + 73 * - SUM ( DISTINCT - + 89 ) AS col1
----
-227395

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1926
SELECT ALL CAST( 48 AS SIGNED ) AS col2, - 37
----
48
-37

skipif mysql # not compatible
query II rowsort label-1926
SELECT ALL CAST ( 48 AS INTEGER ) AS col2, - 37
----
48
-37

query I rowsort
SELECT DISTINCT 21 * + - 38 AS col0
----
-798

query I rowsort
SELECT + 99 - - 28 AS col0
----
127

query I rowsort
SELECT ALL + + 43 * + 50 * - - 11 AS col1
----
23650

query I rowsort
SELECT - 8 * CASE + 11 WHEN 70 THEN + 57 WHEN + 57 THEN 16 * 23 ELSE 92 END AS col1
----
-736

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

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

query I rowsort
SELECT + 75 * - + 96 + + 53 * - + 48 AS col1
----
-9744

onlyif mysql # DIV for integer division: 
query I rowsort label-1933
SELECT 58 + + 32 DIV + 7 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-1933
SELECT 58 + + 32 / + 7 AS col1
----
62

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

query I rowsort
SELECT COALESCE ( + 92, + 97 ) * 86
----
7912

query II rowsort
SELECT ALL - 72, 19 + 87 AS col2
----
-72
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1937
SELECT ALL CAST( NULL AS SIGNED ) + - SUM( ALL + 90 ) + + ( + 38 ) + - 22 AS col0, + MIN( ALL - 12 ) * + 49
----
NULL
-588

skipif mysql # not compatible
query II rowsort label-1937
SELECT ALL CAST ( NULL AS INTEGER ) + - SUM ( ALL + 90 ) + + ( + 38 ) + - 22 AS col0, + MIN ( ALL - 12 ) * + 49
----
NULL
-588

query I rowsort
SELECT NULLIF ( 76, - 66 ) + 97 AS col2
----
173

query I rowsort
SELECT 26 * + 80 * 98 + - 57 * + + 26 AS col2
----
202358

onlyif mysql # DIV for integer division: 
query I rowsort label-1940
SELECT ALL - 90 - + 94 DIV 1
----
-184

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL - 90 - + 94 / 1
----
-184

query II rowsort
SELECT DISTINCT - 4, + 2 AS col0
----
-4
2

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

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

query I rowsort
SELECT DISTINCT 32 - - 75 col2
----
107

query I rowsort
SELECT 61 * 45
----
2745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1945
SELECT ALL - 63 / + 25 * + - 9 * - CAST( NULL AS SIGNED ) * COUNT( 26 ) * - - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL - 63 / + 25 * + - 9 * - CAST ( NULL AS INTEGER ) * COUNT ( 26 ) * - - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT 68 + + SUM( DISTINCT - 82 )
----
-14

skipif mysql # not compatible
query I rowsort label-1946
SELECT 68 + + SUM ( DISTINCT - 82 )
----
-14

query II rowsort
SELECT ALL 8, 85 AS col2
----
8
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1948
SELECT ( + 61 ) + - + 78 AS col2, COUNT( * ) * + - 75 * 78
----
-17
-5850

skipif mysql # not compatible
query II rowsort label-1948
SELECT ( + 61 ) + - + 78 AS col2, COUNT ( * ) * + - 75 * 78
----
-17
-5850

onlyif mysql # DIV for integer division: 
query I rowsort label-1949
SELECT DISTINCT 2 DIV - 81 * 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT 2 / - 81 * 96 AS col0
----
0

query I rowsort
SELECT 51 * 16
----
816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1951
SELECT ALL SUM( ALL - 28 ) DIV + ( 94 ) + COALESCE ( - 97, + 70 + ( + 82 ) ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL SUM ( ALL - 28 ) / + ( 94 ) + COALESCE ( - 97, + 70 + ( + 82 ) ) col1
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1952
SELECT - COUNT( * ), - 83 + + + 13 AS col0
----
-1
-70

skipif mysql # not compatible
query II rowsort label-1952
SELECT - COUNT ( * ), - 83 + + + 13 AS col0
----
-1
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-1953
SELECT ALL 50 AS col2, COALESCE ( + 70, - COUNT( 71 ), - 27 + - + 54 ) + - - 97 + - 66 * - 95
----
50
6437

skipif mysql # not compatible
query II rowsort label-1953
SELECT ALL 50 AS col2, COALESCE ( + 70, - COUNT ( 71 ), - 27 + - + 54 ) + - - 97 + - 66 * - 95
----
50
6437

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

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT ( COUNT ( * ) ) / - COUNT ( * ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1955
SELECT DISTINCT + CAST( CASE + + 97 WHEN + - 85 THEN - + 65 ELSE NULL END AS SIGNED ) * - - 44 + + + MIN( 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT + CAST ( CASE + + 97 WHEN + - 85 THEN - + 65 ELSE NULL END AS INTEGER ) * - - 44 + + + MIN ( 26 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1956
SELECT ALL - 63 + - + 97 - + COUNT( * ) AS col2, + ( - 67 ) * - 42 * + 49 + - + 71 + + + SUM( ( + 83 ) ) * + - CAST( NULL AS DECIMAL )
----
-161
NULL

skipif mysql # not compatible
query II rowsort label-1956
SELECT ALL - 63 + - + 97 - + COUNT ( * ) AS col2, + ( - 67 ) * - 42 * + 49 + - + 71 + + + SUM ( ( + 83 ) ) * + - CAST ( NULL AS REAL )
----
-161
NULL

query I rowsort
SELECT - 83 + - 68 + 25
----
-126

query I rowsort
SELECT 3 * 28 * + 58 col1
----
4872

onlyif mysql # DIV for integer division: 
query I rowsort label-1959
SELECT 47 + 46 DIV + ( + 49 ) * + 10 + + - 48 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1959
SELECT 47 + 46 / + ( + 49 ) * + 10 + + - 48 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1960
SELECT + 59 + 31 / - CASE - + AVG ( ALL - ( - 13 ) ) WHEN - 25 THEN + 0 + + 66 + + - 14 * - CAST( - 3 AS SIGNED ) WHEN 49 THEN - - CASE - + 91 WHEN + 75 * 91 * 92 - + 64 + - 63 THEN 18 * - 64 + + 93 / - COUNT( ALL 94 ) + - + ( + 86 ) / - 93 ELSE NULL END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1960
SELECT + 59 + 31 / - CASE - + AVG ( ALL - ( - 13 ) ) WHEN - 25 THEN + 0 + + 66 + + - 14 * - CAST ( - 3 AS INTEGER ) WHEN 49 THEN - - CASE - + 91 WHEN + 75 * 91 * 92 - + 64 + - 63 THEN 18 * - 64 + + 93 / - COUNT ( ALL 94 ) + - + ( + 86 ) / - 93 ELSE NULL END END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1961
SELECT ALL 99 * + - 94 + + COUNT( + NULLIF ( + 93, + - CAST( + + 41 AS DECIMAL ) ) ) * + 22 * - COUNT( + 78 ) AS col0
----
-9328

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL 99 * + - 94 + + COUNT ( + NULLIF ( + 93, + - CAST ( + + 41 AS REAL ) ) ) * + 22 * - COUNT ( + 78 ) AS col0
----
-9328

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT ALL + 19 + + ( COUNT( DISTINCT + 2 ) )
----
20

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL + 19 + + ( COUNT ( DISTINCT + 2 ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT ALL - ( + 4 ) * + 66 + + COUNT( * )
----
-263

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL - ( + 4 ) * + 66 + + COUNT ( * )
----
-263

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

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

query I rowsort
SELECT 46 * 6 AS col1
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT 30 * + SUM( + 10 ) + - 80 AS col1
----
220

skipif mysql # not compatible
query I rowsort label-1967
SELECT 30 * + SUM ( + 10 ) + - 80 AS col1
----
220

onlyif mysql # aggregate syntax: 
query II rowsort label-1968
SELECT ALL - SUM( ALL 90 ) * - + 71 * - - 0 AS col1, 94 col2
----
0
94

skipif mysql # not compatible
query II rowsort label-1968
SELECT ALL - SUM ( ALL 90 ) * - + 71 * - - 0 AS col1, 94 col2
----
0
94

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1970
SELECT DISTINCT - 76 - - + 44 + COUNT( * ) + + 99 col1, - 28
----
68
-28

skipif mysql # not compatible
query II rowsort label-1970
SELECT DISTINCT - 76 - - + 44 + COUNT ( * ) + + 99 col1, - 28
----
68
-28

query I rowsort
SELECT 40 * + + 72 - 71
----
2809

query I rowsort
SELECT ALL - ( ( - 93 ) ) * 32 AS col1
----
2976

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

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL 86 / + COUNT ( * ) AS col0
----
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT DISTINCT - MAX( DISTINCT 63 ) col1
----
-63

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT - MAX ( DISTINCT 63 ) col1
----
-63

query I rowsort
SELECT ALL + 59 - + ( 82 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT DISTINCT - COALESCE ( + MAX( - 58 ), + 91 )
----
58

skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT - COALESCE ( + MAX ( - 58 ), + 91 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT + 80 * + MAX( 93 ) - + 31
----
7409

skipif mysql # not compatible
query I rowsort label-1978
SELECT + 80 * + MAX ( 93 ) - + 31
----
7409

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1981
SELECT ALL 57 * 66 * + - ( + CAST( 61 AS SIGNED ) ) AS col1, CASE + - 68 WHEN + + 61 THEN + + 59 ELSE + - 36 * + + 75 END - - 71 - 7
----
-229482
-2636

skipif mysql # not compatible
query II rowsort label-1981
SELECT ALL 57 * 66 * + - ( + CAST ( 61 AS INTEGER ) ) AS col1, CASE + - 68 WHEN + + 61 THEN + + 59 ELSE + - 36 * + + 75 END - - 71 - 7
----
-229482
-2636

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

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

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

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

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

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

query I rowsort
SELECT ALL 15 + + 91 * 94 AS col2
----
8569

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + 12 + COUNT( 59 )
----
13

skipif mysql # not compatible
query I rowsort label-1986
SELECT + 12 + COUNT ( 59 )
----
13

query I rowsort
SELECT + 81 * - ( + 29 ) * + 54 - 34 * - 0 * 71 AS col2
----
-126846

query II rowsort
SELECT ALL + 31 + - - 77 AS col1, 99 + - 36 AS col2
----
108
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1989
SELECT + - 26 + - CAST( CASE + 20 WHEN - ( + ( - + 2 ) ) THEN + 56 WHEN CAST( NULL AS SIGNED ) / + - COUNT( * ) + - 27 - - 4 THEN NULL ELSE NULL END AS SIGNED ) * + - ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT + - 26 + - CAST ( CASE + 20 WHEN - ( + ( - + 2 ) ) THEN + 56 WHEN CAST ( NULL AS INTEGER ) / + - COUNT ( * ) + - 27 - - 4 THEN NULL ELSE NULL END AS INTEGER ) * + - ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

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

query I rowsort
SELECT + - 76 + 99
----
23

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

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

query I rowsort
SELECT DISTINCT - + 63 + 63 * + 14 AS col2
----
819

query I rowsort
SELECT ALL + + 1 + + + 51
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1995
SELECT 15 * CAST( - - MAX( ALL 60 ) AS SIGNED ) + - 23 * + 21 AS col1
----
417

skipif mysql # not compatible
query I rowsort label-1995
SELECT 15 * CAST ( - - MAX ( ALL 60 ) AS INTEGER ) + - 23 * + 21 AS col1
----
417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1996
SELECT - 97 + - COALESCE ( - 0, CASE COUNT( * ) WHEN - MIN( + CAST( - CAST( - + ( + 32 ) AS SIGNED ) AS SIGNED ) ) THEN 13 END ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-1996
SELECT - 97 + - COALESCE ( - 0, CASE COUNT ( * ) WHEN - MIN ( + CAST ( - CAST ( - + ( + 32 ) AS INTEGER ) AS INTEGER ) ) THEN 13 END ) AS col2
----
-97

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

query I rowsort
SELECT DISTINCT + 81 * - 97 - + 15
----
-7872

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2000
SELECT ALL + 48 * 22 - + - 91 * + + AVG ( 58 ) + + CAST( COUNT( * ) AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL + 48 * 22 - + - 91 * + + AVG ( 58 ) + + CAST ( COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2002
SELECT - 68 * - SUM( 70 ), ( - 24 ) AS col2
----
4760
-24

skipif mysql # not compatible
query II rowsort label-2002
SELECT - 68 * - SUM ( 70 ), ( - 24 ) AS col2
----
4760
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT ALL - 63 * - 78 DIV - 77 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL - 63 * - 78 / - 77 AS col2
----
-63

query I rowsort
SELECT ALL 20 * + 81 - + 32 + + + 52
----
1640

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

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

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

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

query I rowsort
SELECT - 33 + 91
----
58

query I rowsort
SELECT ALL + 64 * - 51
----
-3264

query II rowsort
SELECT + 2 AS col2, + 86
----
2
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT NULLIF ( 88, + - 95 * 69 + - 68 * - 23 + - + 49 - - - COUNT( * ) + + COALESCE ( - 37, + - ( 8 ) ) )
----
88

skipif mysql # not compatible
query I rowsort label-2010
SELECT NULLIF ( 88, + - 95 * 69 + - 68 * - 23 + - + 49 - - - COUNT ( * ) + + COALESCE ( - 37, + - ( 8 ) ) )
----
88

query I rowsort
SELECT ALL - 0 * + - 89
----
0

query I rowsort
SELECT - 26 + 67 col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT + 13 * + 42 + MAX( + 62 )
----
608

skipif mysql # not compatible
query I rowsort label-2013
SELECT + 13 * + 42 + MAX ( + 62 )
----
608

query I rowsort
SELECT - 79 + 37 AS col0
----
-42

query I rowsort
SELECT ALL 32 * - 95 + - 25 AS col0
----
-3065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2016
SELECT - COUNT( * ) + CASE CAST( NULL AS SIGNED ) WHEN - ( + + 60 ) THEN + ( + 24 ) + 54 WHEN - + 43 THEN NULL ELSE - COUNT( * ) END AS col2, 58 AS col2
----
-2
58

skipif mysql # not compatible
query II rowsort label-2016
SELECT - COUNT ( * ) + CASE CAST ( NULL AS INTEGER ) WHEN - ( + + 60 ) THEN + ( + 24 ) + 54 WHEN - + 43 THEN NULL ELSE - COUNT ( * ) END AS col2, 58 AS col2
----
-2
58

query I rowsort
SELECT ALL + + 94 * + 26 + + ( - 43 ) AS col1
----
2401

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT - + MAX( 54 ) + 3 - - + 27
----
-24

skipif mysql # not compatible
query I rowsort label-2018
SELECT - + MAX ( 54 ) + 3 - - + 27
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL - 50 * ( + MIN( 16 ) ) + - - 18 + + - 94 * 42 AS col0
----
-4730

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL - 50 * ( + MIN ( 16 ) ) + - - 18 + + - 94 * 42 AS col0
----
-4730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT - - CAST( NULL AS SIGNED ) * + NULLIF ( - 27, + + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT - - CAST ( NULL AS INTEGER ) * + NULLIF ( - 27, + + 27 )
----
NULL

query I rowsort
SELECT + - 15 + + 2
----
-13

query I rowsort
SELECT - - COALESCE ( - 85, 85 )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2023
SELECT ALL + - 37 + - - 89 * - ( - - CAST( NULL AS SIGNED ) ) / - 41 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL + - 37 + - - 89 * - ( - - CAST ( NULL AS INTEGER ) ) / - 41 + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + - 66 + + + 95
----
29

query I rowsort
SELECT - 18 * - 27
----
486

query I rowsort
SELECT ALL 58 * - 64
----
-3712

query I rowsort
SELECT ALL - + 57 + - 94
----
-151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2028
SELECT DISTINCT CAST( + 34 AS SIGNED ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT CAST ( + 34 AS INTEGER ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT ALL 98 - - - COUNT( ALL + 21 )
----
97

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL 98 - - - COUNT ( ALL + 21 )
----
97

query II rowsort
SELECT 62, - 75 AS col2
----
62
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2031
SELECT - + 44 DIV + - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2031
SELECT - + 44 / + - 70 AS col2
----
0

query I rowsort
SELECT + + 39 * - 56 AS col1
----
-2184

query I rowsort
SELECT - - 28 * 48
----
1344

query II rowsort
SELECT DISTINCT + 7 AS col2, 15 * + 24 + - 64
----
7
296

query I rowsort
SELECT ALL + 59 - - ( 18 ) + 59 AS col0
----
136

query II rowsort
SELECT 99 AS col1, 45 col1
----
99
45

query II rowsort
SELECT 91 AS col0, ( + + 76 ) - - + 62 + - COALESCE ( - - 49, - + 73, + + 15, - - 18 ) + + 74 AS col0
----
91
163

query I rowsort
SELECT + NULLIF ( - 4, 85 ) * ( + 89 ) AS col2
----
-356

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2039
SELECT + CAST( NULL AS SIGNED ) AS col2, - 86 + 53
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-2039
SELECT + CAST ( NULL AS INTEGER ) AS col2, - 86 + 53
----
NULL
-33

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

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

query I rowsort
SELECT ALL - 77 * - 6 AS col2
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT + 62 + COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2042
SELECT + 62 + COUNT ( * ) AS col2
----
63

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

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

query I rowsort
SELECT + 4 * + + 52 + - 79 AS col0
----
129

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

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

query I rowsort
SELECT 87 * ( 78 )
----
6786

query II rowsort
SELECT DISTINCT - 29, ( + 3 ) * - - 8 * + 93 * 58 + - 75 AS col0
----
-29
129381

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT ALL - COUNT( * ) + - COUNT( * ) - - COALESCE ( + 31, + 26 ) + ( 5 ) * + - 1 * + NULLIF ( - - 42, - 88 ) - + 93 AS col0
----
-274

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL - COUNT ( * ) + - COUNT ( * ) - - COALESCE ( + 31, + 26 ) + ( 5 ) * + - 1 * + NULLIF ( - - 42, - 88 ) - + 93 AS col0
----
-274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2049
SELECT ALL 9 + + COUNT( * ) + - 69 + - + 46 DIV + 78 + + 46 * 82 + 77 col1
----
3790

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL 9 + + COUNT ( * ) + - 69 + - + 46 / + 78 + + 46 * 82 + 77 col1
----
3790

onlyif mysql # aggregate syntax: 
query II rowsort label-2050
SELECT ALL - SUM( + 73 ) + 18 * - 84 * COUNT( + ( + 77 ) ) * 54 - - - 5 col2, COUNT( * ) + 71
----
-81726
72

skipif mysql # not compatible
query II rowsort label-2050
SELECT ALL - SUM ( + 73 ) + 18 * - 84 * COUNT ( + ( + 77 ) ) * 54 - - - 5 col2, COUNT ( * ) + 71
----
-81726
72

query I rowsort
SELECT DISTINCT + 67 * 29 * - 96
----
-186528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2052
SELECT ALL + - COALESCE ( - - 27, 74 + - COUNT( * ) + - COUNT( * ), 16 ) DIV + 10 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL + - COALESCE ( - - 27, 74 + - COUNT ( * ) + - COUNT ( * ), 16 ) / + 10 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2053
SELECT ( SUM( + 45 ) ) * - ( ( - CAST( 45 AS SIGNED ) ) ) AS col2
----
2025

skipif mysql # not compatible
query I rowsort label-2053
SELECT ( SUM ( + 45 ) ) * - ( ( - CAST ( 45 AS INTEGER ) ) ) AS col2
----
2025

query I rowsort
SELECT + 36 * 19 - 72
----
612

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL - + 97 + - COUNT ( * ) AS col0
----
-98

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

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

query I rowsort
SELECT - 3 - + 4 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT 29 * + - CASE + 36 WHEN + 81 THEN + COUNT( * ) WHEN + 33 THEN NULL END - - 73 * 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2060
SELECT 29 * + - CASE + 36 WHEN + 81 THEN + COUNT ( * ) WHEN + 33 THEN NULL END - - 73 * 80 AS col1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2062
SELECT ALL - + 5 + - CAST( NULL AS SIGNED ) + 46 + 61 + - 54 - 74 * + - 61 * 62 + - 59 / - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL - + 5 + - CAST ( NULL AS INTEGER ) + 46 + 61 + - 54 - 74 * + - 61 * 62 + - 59 / - + 72
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 58, 92 / 89 ) - - + 14
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT COUNT( * ) * 78 * - 24 AS col0
----
-1872

skipif mysql # not compatible
query I rowsort label-2064
SELECT COUNT ( * ) * 78 * - 24 AS col0
----
-1872

query I rowsort
SELECT ALL + 48 - - 96
----
144

query I rowsort
SELECT COALESCE ( - + 68, + 18 * - 15 ) - + 59
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2067
SELECT ALL + CASE 52 WHEN 59 - 29 * + 26 * - + 42 - - + 90 THEN + AVG ( - + 42 ) + - 10 + + 13 * + + 52 / - 81 + 72 + + + 38 WHEN + 10 THEN NULL WHEN + + COUNT( * ) + COALESCE ( + - CAST( NULL AS SIGNED ), - 16 - - 23 - + 81 ) THEN NULL END - + - NULLIF ( + 35, - + AVG ( ALL 19 ) ) + 79 + NULLIF ( - COUNT( * ), + 8 * COUNT( * ) * 91 / - 45 * AVG ( ALL - + 80 ) + 47 ) * + 87 * 24 / 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL + CASE 52 WHEN 59 - 29 * + 26 * - + 42 - - + 90 THEN + AVG ( - + 42 ) + - 10 + + 13 * + + 52 / - 81 + 72 + + + 38 WHEN + 10 THEN NULL WHEN + + COUNT ( * ) + COALESCE ( + - CAST ( NULL AS INTEGER ), - 16 - - 23 - + 81 ) THEN NULL END - + - NULLIF ( + 35, - + AVG ( ALL 19 ) ) + 79 + NULLIF ( - COUNT ( * ), + 8 * COUNT ( * ) * 91 / - 45 * AVG ( ALL - + 80 ) + 47 ) * + 87 * 24 / 64
----
NULL

query I rowsort
SELECT - 19 * - + 86
----
1634

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

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

query II rowsort
SELECT - + 93 AS col1, + 81
----
-93
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2071
SELECT 81 + COALESCE ( - 85, + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), + - 16 * - - 82 + - 62 )
----
-4

skipif mysql # not compatible
query I rowsort label-2071
SELECT 81 + COALESCE ( - 85, + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), + - 16 * - - 82 + - 62 )
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT 36 + 81 * + COUNT( ALL + + 39 )
----
117

skipif mysql # not compatible
query I rowsort label-2073
SELECT 36 + 81 * + COUNT ( ALL + + 39 )
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2074
SELECT ALL + ( + ( - 48 ) ) - - 89 * + - CAST( + 23 AS SIGNED ) * - 27 AS col0, + 48 col2
----
55221
48

skipif mysql # not compatible
query II rowsort label-2074
SELECT ALL + ( + ( - 48 ) ) - - 89 * + - CAST ( + 23 AS INTEGER ) * - 27 AS col0, + 48 col2
----
55221
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2075
SELECT 46 + + 9 + + CAST( - 19 AS SIGNED ) * + 42 AS col1
----
-743

skipif mysql # not compatible
query I rowsort label-2075
SELECT 46 + + 9 + + CAST ( - 19 AS INTEGER ) * + 42 AS col1
----
-743

query I rowsort
SELECT DISTINCT + 90 * - 76 AS col1
----
-6840

query II rowsort
SELECT 32 * - - 81 col2, - 36
----
2592
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2078
SELECT DISTINCT 38 DIV 8 * - 77 * + - CAST( - MAX( ALL 66 ) AS SIGNED ) * - 91 col2
----
1849848

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT 38 / 8 * - 77 * + - CAST ( - MAX ( ALL 66 ) AS INTEGER ) * - 91 col2
----
1849848

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT ALL 97 + 26 * 80 + - 50 - - 18 + - COUNT( * ) * - 48
----
2193

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL 97 + 26 * 80 + - 50 - - 18 + - COUNT ( * ) * - 48
----
2193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2080
SELECT ALL + 46 / - CASE + MAX( DISTINCT + 46 ) WHEN + 8 + + - CAST( - - 56 AS SIGNED ) THEN 79 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL + 46 / - CASE + MAX ( DISTINCT + 46 ) WHEN + 8 + + - CAST ( - - 56 AS INTEGER ) THEN 79 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2081
SELECT 77 DIV + ( + ( + 95 ) ) * + 38
----
0

skipif mysql # not compatible
query I rowsort label-2081
SELECT 77 / + ( + ( + 95 ) ) * + 38
----
0

query I rowsort
SELECT ALL 91 + - 1 AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2083
SELECT ALL 50 * + COALESCE ( - + 99, - - 38 + CASE 54 WHEN - COUNT( * ) + ( - 1 ) THEN COALESCE ( - 31, - 96 ) - + COUNT( * ) * + - 27 * + ( + 27 ) + - COUNT( * ) * + 61 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * 14 + - + MIN( ALL 30 ) + 72 DIV - 2 )
----
-4950

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL 50 * + COALESCE ( - + 99, - - 38 + CASE 54 WHEN - COUNT ( * ) + ( - 1 ) THEN COALESCE ( - 31, - 96 ) - + COUNT ( * ) * + - 27 * + ( + 27 ) + - COUNT ( * ) * + 61 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * 14 + - + MIN ( ALL 30 ) + 72 / - 2 )
----
-4950

query II rowsort
SELECT 38 * - 79 - + 8, + 77 + + ( - - 19 ) AS col1
----
-3010
96

query I rowsort
SELECT ALL 55 + - 26 + - + 54 + 87 AS col1
----
62

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

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL 4 + + 69 * COUNT ( * ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT + 61 * - + 97 + - 98 * + COUNT( * ) * + + 37 col2
----
-9543

skipif mysql # not compatible
query I rowsort label-2087
SELECT + 61 * - + 97 + - 98 * + COUNT ( * ) * + + 37 col2
----
-9543

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2088
SELECT - 74 * - 51 + CAST( 47 AS SIGNED ) + 1 + - - 49 + - 35 DIV + 5
----
3864

skipif mysql # not compatible
query I rowsort label-2088
SELECT - 74 * - 51 + CAST ( 47 AS INTEGER ) + 1 + - - 49 + - 35 / + 5
----
3864

onlyif mysql # aggregate syntax: 
query II rowsort label-2089
SELECT ALL - - SUM( - 15 ), - 82 AS col0
----
-15
-82

skipif mysql # not compatible
query II rowsort label-2089
SELECT ALL - - SUM ( - 15 ), - 82 AS col0
----
-15
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT ALL CASE - + 28 WHEN + COUNT( * ) THEN + 10 * - 5 * + 57 * + + 68 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL CASE - + 28 WHEN + COUNT ( * ) THEN + 10 * - 5 * + 57 * + + 68 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2091
SELECT DISTINCT + 50 DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT + 50 / - 74 AS col0
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT - - CASE + 48 WHEN COUNT( * ) THEN + 46 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2094
SELECT - - CASE + 48 WHEN COUNT ( * ) THEN + 46 END col2
----
NULL

query I rowsort
SELECT ALL + 56 * - + 22 + ( - 11 ) * - ( + 20 ) AS col1
----
-1012

query I rowsort
SELECT DISTINCT 4 * - 56 + + - 37
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT DISTINCT CASE - MIN( + NULLIF ( - 71, - 86 ) ) WHEN + - 25 + - + 43 * + - 17 THEN + - COALESCE ( + 90, - ( + ( + - 49 ) ) + + 83 * - - 42 + - + COUNT( * ), - NULLIF ( 74, - 22 / 45 * + 12 ) ) * - 7 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT CASE - MIN ( + NULLIF ( - 71, - 86 ) ) WHEN + - 25 + - + 43 * + - 17 THEN + - COALESCE ( + 90, - ( + ( + - 49 ) ) + + 83 * - - 42 + - + COUNT ( * ), - NULLIF ( 74, - 22 / 45 * + 12 ) ) * - 7 ELSE NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT 42 * 63 * - 40 AS col2
----
-105840

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2101
SELECT ALL - 5 + 22 * CAST( NULL AS SIGNED ) * - 9 / 71 * + 47 * - + 45 + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL - 5 + 22 * CAST ( NULL AS INTEGER ) * - 9 / 71 * + 47 * - + 45 + - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL + COUNT( * ) * - 93 col2
----
-93

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL + COUNT ( * ) * - 93 col2
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-2103
SELECT + 95 * + 51 + 88, - COUNT( * ) AS col2
----
4933
-1

skipif mysql # not compatible
query II rowsort label-2103
SELECT + 95 * + 51 + 88, - COUNT ( * ) AS col2
----
4933
-1

query I rowsort
SELECT DISTINCT + 60 * - 43 AS col2
----
-2580

query I rowsort
SELECT DISTINCT ( - 11 ) * - - 59 + - - 4
----
-645

query I rowsort
SELECT DISTINCT 89 * - 7 + + 75
----
-548

query I rowsort
SELECT + 49 + + ( 84 ) AS col0
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2108
SELECT ALL + 81 * - 47 * COUNT( * ) + + COALESCE ( 50, + ( + - CASE 82 WHEN + 66 THEN + - 71 * - CAST( NULL AS SIGNED ) - + + 94 END ) + - 27 ) * COUNT( * )
----
-3757

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL + 81 * - 47 * COUNT ( * ) + + COALESCE ( 50, + ( + - CASE 82 WHEN + 66 THEN + - 71 * - CAST ( NULL AS INTEGER ) - + + 94 END ) + - 27 ) * COUNT ( * )
----
-3757

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

query I rowsort
SELECT ALL - 22 * 27 - - 9 * + 89 * - 26
----
-21420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2111
SELECT DISTINCT - 45 DIV - ( - NULLIF ( + 73, - COUNT( * ) * - + 13 * CAST( NULL AS SIGNED ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT - 45 / - ( - NULLIF ( + 73, - COUNT ( * ) * - + 13 * CAST ( NULL AS INTEGER ) ) ) AS col0
----
0

query I rowsort
SELECT ALL + 15 * - 58 - COALESCE ( 20, - - 10, + - 57 )
----
-890

query I rowsort
SELECT + 7 * - 40 AS col2
----
-280

query I rowsort
SELECT + NULLIF ( + + 49, - + AVG ( DISTINCT - 63 ) ) * - - 2 AS col0
----
98

query I rowsort
SELECT ALL 82 * + 85 AS col1
----
6970

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

skipif mysql # not compatible
query I rowsort label-2116
SELECT + 21 / 81
----
0

query I rowsort
SELECT + 25 * 67 AS col1
----
1675

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL - 86 * - ( COALESCE ( + 48, - ( 31 ) ) ) * COUNT( * ) - - COUNT( + 5 )
----
4129

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL - 86 * - ( COALESCE ( + 48, - ( 31 ) ) ) * COUNT ( * ) - - COUNT ( + 5 )
----
4129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2119
SELECT + + 15 * - 42 / - ( - - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT + + 15 * - 42 / - ( - - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2120
SELECT + COALESCE ( - 50, ( CAST( NULL AS SIGNED ) ) + - 86 )
----
-50

skipif mysql # not compatible
query I rowsort label-2120
SELECT + COALESCE ( - 50, ( CAST ( NULL AS INTEGER ) ) + - 86 )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2121
SELECT ( + MAX( 47 ) ) * - + 30 * 71 * + + 86 - - + 76 * CAST( NULL AS SIGNED ) + - - 19 + - ( - 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2121
SELECT ( + MAX ( 47 ) ) * - + 30 * 71 * + + 86 - - + 76 * CAST ( NULL AS INTEGER ) + - - 19 + - ( - 95 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2122
SELECT ALL - 20, 32 DIV 37 AS col0
----
-20
0

skipif mysql # not compatible
query II rowsort label-2122
SELECT ALL - 20, 32 / 37 AS col0
----
-20
0

query I rowsort
SELECT + - 91 - + + 34 + - + ( - - 21 ) * 39 AS col0
----
-944

query I rowsort
SELECT DISTINCT ( 52 ) AS col0
----
52

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

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

query II rowsort
SELECT - 34 AS col2, - 21 * - 3 AS col1
----
-34
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT + COUNT( * ) - + - 86 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2127
SELECT + COUNT ( * ) - + - 86 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2128
SELECT + 16 + COUNT( ALL - + 75 ) - + CASE - - 43 WHEN - 88 THEN + 8 * CAST( NULL AS SIGNED ) * - NULLIF ( CAST( NULL AS SIGNED ), 56 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2128
SELECT + 16 + COUNT ( ALL - + 75 ) - + CASE - - 43 WHEN - 88 THEN + 8 * CAST ( NULL AS INTEGER ) * - NULLIF ( CAST ( NULL AS INTEGER ), 56 ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2129
SELECT - ( - 47 ) AS col0, - 76 DIV + 73 AS col0
----
47
-1

skipif mysql # not compatible
query II rowsort label-2129
SELECT - ( - 47 ) AS col0, - 76 / + 73 AS col0
----
47
-1

query I rowsort
SELECT ALL + 73 + + + 80
----
153

query I rowsort
SELECT ALL - 18 + + + NULLIF ( 19, - 61 * - 43 * - 27 ) - - ( + - 76 ) AS col0
----
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2132
SELECT + 86 + - CAST( - 37 AS SIGNED ) - - 73 DIV - 82 * + 68 DIV + + 47 + + - 97 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2132
SELECT + 86 + - CAST ( - 37 AS INTEGER ) - - 73 / - 82 * + 68 / + + 47 + + - 97 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT ALL MIN( DISTINCT 2 ) * - ( - MAX( + + 99 ) ) * + 81 AS col2
----
16038

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL MIN ( DISTINCT 2 ) * - ( - MAX ( + + 99 ) ) * + 81 AS col2
----
16038

onlyif mysql # DIV for integer division: 
query II rowsort label-2134
SELECT + 4 DIV - - 13 AS col1, 24
----
0
24

skipif mysql # not compatible
query II rowsort label-2134
SELECT + 4 / - - 13 AS col1, 24
----
0
24

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

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

query I rowsort
SELECT ALL 86 + 29
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2137
SELECT ALL - 82 DIV + 54 AS col2, MIN( - 67 ) * - 39 col0
----
-1
2613

skipif mysql # not compatible
query II rowsort label-2137
SELECT ALL - 82 / + 54 AS col2, MIN ( - 67 ) * - 39 col0
----
-1
2613

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL - SUM( ALL - - 90 ) + - ( + + 86 )
----
-176

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL - SUM ( ALL - - 90 ) + - ( + + 86 )
----
-176

query II rowsort
SELECT DISTINCT - 1 + - 7 AS col2, + 71
----
-8
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT DISTINCT + CASE + 89 WHEN - 57 THEN NULL WHEN - - 40 THEN 78 WHEN - COALESCE ( 53, + 1 ) * + + 92 THEN - + COUNT( * ) * ( + + 15 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT + CASE + 89 WHEN - 57 THEN NULL WHEN - - 40 THEN 78 WHEN - COALESCE ( 53, + 1 ) * + + 92 THEN - + COUNT ( * ) * ( + + 15 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT 74 * - 91 * + + 64 + COUNT( * )
----
-430975

skipif mysql # not compatible
query I rowsort label-2141
SELECT 74 * - 91 * + + 64 + COUNT ( * )
----
-430975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2142
SELECT - ( + - 89 ) / + 62 + - CAST( NULL AS SIGNED ) + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-2142
SELECT - ( + - 89 ) / + 62 + - CAST ( NULL AS INTEGER ) + - 13
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2143
SELECT DISTINCT - ( + 56 ) DIV - - CAST( - - 46 AS SIGNED ) - 57 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT - ( + 56 ) / - - CAST ( - - 46 AS INTEGER ) - 57 AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2144
SELECT ALL - - 15 * - CAST( - + 2 AS SIGNED ) * - 59 * 0 + ( + - 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL - - 15 * - CAST ( - + 2 AS INTEGER ) * - 59 * 0 + ( + - 18 ) AS col1
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2145
SELECT ALL - - 98 * 35 + - + 32 - - + 48 DIV - + MAX( ALL - + 81 ) - + + 54 + 3
----
3347

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL - - 98 * 35 + - + 32 - - + 48 / - + MAX ( ALL - + 81 ) - + + 54 + 3
----
3347

query I rowsort
SELECT DISTINCT + + 31 col0
----
31

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2149
SELECT 55 * CAST( NULL AS SIGNED ) + + 58 * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT 55 * CAST ( NULL AS INTEGER ) + + 58 * 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT - SUM( - - 66 ) + + - 32
----
-98

skipif mysql # not compatible
query I rowsort label-2150
SELECT - SUM ( - - 66 ) + + - 32
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2151
SELECT - - NULLIF ( + - 8, - 19 ) DIV + - 98 + + 93 - + - COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-2151
SELECT - - NULLIF ( + - 8, - 19 ) / + - 98 + + 93 - + - COUNT ( * ) AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2152
SELECT CAST( CAST( - 38 AS DECIMAL ) AS SIGNED ) * + + 24 + 85 + + 91 - + COUNT( * ) + COUNT( * ) DIV 42 * MIN( ALL 19 ) * - 11 + + 23 AS col0
----
-714

skipif mysql # not compatible
query I rowsort label-2152
SELECT CAST ( CAST ( - 38 AS REAL ) AS INTEGER ) * + + 24 + 85 + + 91 - + COUNT ( * ) + COUNT ( * ) / 42 * MIN ( ALL 19 ) * - 11 + + 23 AS col0
----
-714

query I rowsort
SELECT ALL + - 99 * 59 + - + 73 + - + 0 AS col1
----
-5914

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT + 26 * + + SUM( - 14 )
----
-364

skipif mysql # not compatible
query I rowsort label-2154
SELECT + 26 * + + SUM ( - 14 )
----
-364

onlyif mysql # aggregate syntax: 
query II rowsort label-2155
SELECT ALL COUNT( * ) * 22 * + 28 + 4, CASE + 49 WHEN - + 45 + 6 THEN - 88 + ( 56 ) WHEN - CASE 31 WHEN + 61 * - 77 THEN NULL WHEN - - NULLIF ( - 26, AVG ( ALL ( + + 19 ) ) ) / + 81 + + 39 * - 30 - - AVG ( - 42 ) * - AVG ( DISTINCT - - 27 ) * 6 - + 3 THEN + 5 ELSE NULL END / - - 26 THEN NULL ELSE - 85 * - - 67 END AS col2
----
620
-5695

skipif mysql # not compatible
query II rowsort label-2155
SELECT ALL COUNT ( * ) * 22 * + 28 + 4, CASE + 49 WHEN - + 45 + 6 THEN - 88 + ( 56 ) WHEN - CASE 31 WHEN + 61 * - 77 THEN NULL WHEN - - NULLIF ( - 26, AVG ( ALL ( + + 19 ) ) ) / + 81 + + 39 * - 30 - - AVG ( - 42 ) * - AVG ( DISTINCT - - 27 ) * 6 - + 3 THEN + 5 ELSE NULL END / - - 26 THEN NULL ELSE - 85 * - - 67 END AS col2
----
620
-5695

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT + - 54 + + CASE - 41 WHEN COUNT( * ) THEN - + CASE - CASE WHEN NOT 40 IS NOT NULL THEN - - 40 * + NULLIF ( + 22, - 26 ) + 16 / + 67 ELSE NULL END WHEN - 52 THEN NULL ELSE - 46 + - 71 END WHEN - SUM( DISTINCT + 75 ) + 35 * ( COUNT( + 72 ) ) * - 53 * + 86 THEN NULL END - + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2156
SELECT + - 54 + + CASE - 41 WHEN COUNT ( * ) THEN - + CASE - CASE WHEN NOT 40 IS NOT NULL THEN - - 40 * + NULLIF ( + 22, - 26 ) + 16 / + 67 ELSE NULL END WHEN - 52 THEN NULL ELSE - 46 + - 71 END WHEN - SUM ( DISTINCT + 75 ) + 35 * ( COUNT ( + 72 ) ) * - 53 * + 86 THEN NULL END - + 50 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2157
SELECT CASE 22 WHEN + 35 THEN - + AVG ( ALL 44 ) WHEN - 20 + + CAST( NULL AS SIGNED ) THEN - 76 - + 94 * + 84 WHEN COUNT( * ) THEN NULL WHEN ( - COUNT( * ) ) + + - 72 * - 44 + 76 THEN - NULLIF ( + - 39, - COUNT( * ) ) END + + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT CASE 22 WHEN + 35 THEN - + AVG ( ALL 44 ) WHEN - 20 + + CAST ( NULL AS INTEGER ) THEN - 76 - + 94 * + 84 WHEN COUNT ( * ) THEN NULL WHEN ( - COUNT ( * ) ) + + - 72 * - 44 + 76 THEN - NULLIF ( + - 39, - COUNT ( * ) ) END + + 98 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 87 * + + 8
----
696

query I rowsort
SELECT 45 * - 92
----
-4140

query I rowsort
SELECT DISTINCT 22 * - 59 AS col1
----
-1298

query I rowsort
SELECT ALL 81 + - + NULLIF ( 5, - 12 ) col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-2162
SELECT - 75 AS col0, NULLIF ( + + 26, - 92 + COALESCE ( + + COUNT( * ), + 64 * 17 ) ) AS col2
----
-75
26

skipif mysql # not compatible
query II rowsort label-2162
SELECT - 75 AS col0, NULLIF ( + + 26, - 92 + COALESCE ( + + COUNT ( * ), + 64 * 17 ) ) AS col2
----
-75
26

query I rowsort
SELECT DISTINCT 51 * + + 47 * + ( + 80 )
----
191760

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT DISTINCT COUNT( * ) + + + 15 * 87 - + + 33 col1
----
1273

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT COUNT ( * ) + + + 15 * 87 - + + 33 col1
----
1273

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2165
SELECT DISTINCT - 96 * + NULLIF ( + + NULLIF ( 88, - 53 + - ( - + 33 ) ), 80 + - CAST( NULL AS DECIMAL ) )
----
-8448

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT - 96 * + NULLIF ( + + NULLIF ( 88, - 53 + - ( - + 33 ) ), 80 + - CAST ( NULL AS REAL ) )
----
-8448

query I rowsort
SELECT 61 - + - 13
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT MAX( DISTINCT 97 ) * - SUM( 77 )
----
-7469

skipif mysql # not compatible
query I rowsort label-2167
SELECT MAX ( DISTINCT 97 ) * - SUM ( 77 )
----
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT COALESCE ( - ( - - COUNT( * ) ), + + 46 + - 8 ) + + 41
----
40

skipif mysql # not compatible
query I rowsort label-2168
SELECT COALESCE ( - ( - - COUNT ( * ) ), + + 46 + - 8 ) + + 41
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2169
SELECT 71 AS col0, + 36 + - COUNT( * )
----
71
35

skipif mysql # not compatible
query II rowsort label-2169
SELECT 71 AS col0, + 36 + - COUNT ( * )
----
71
35

query I rowsort
SELECT 12 + ( + + 4 ) AS col1
----
16

query II rowsort
SELECT 8 AS col0, 50
----
8
50

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

skipif mysql # not compatible
query I rowsort label-2172
SELECT COUNT ( ALL + 90 ) * - 75 AS col0
----
-75

query I rowsort
SELECT 21 * 50
----
1050

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2175
SELECT 96 - - - 97 + + 34 + ( - 16 ) + COUNT( * ) DIV + 6 + - - 54 DIV - 92 + - 73 - - - 7 DIV 20 * - 65 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2175
SELECT 96 - - - 97 + + 34 + ( - 16 ) + COUNT ( * ) / + 6 + - - 54 / - 92 + - 73 - - - 7 / 20 * - 65 AS col2
----
-56

query I rowsort
SELECT DISTINCT 37 * + 56
----
2072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2177
SELECT - 18 / + 90 * + 42 * - 21 / + CASE + CAST( - CASE - ( + + 96 ) WHEN - + NULLIF ( + - 90, - 67 * + ( 9 ) + NULLIF ( - + 32, - - 31 - + 79 ) + + 4 ) THEN - 25 * COUNT( 57 ) * - CAST( - CAST( 45 AS SIGNED ) AS SIGNED ) + + ( + 71 ) WHEN - COALESCE ( + 20, + COUNT( * ) * COUNT( * ) + 67 + + 27 + 88 * - 80 ) / - 75 THEN + 31 WHEN - - CAST( + - 43 AS SIGNED ) * + - 74 THEN + 17 END AS SIGNED ) WHEN + 52 * 70 THEN - 23 ELSE NULL END * + 72 - 12 - 64 * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT - 18 / + 90 * + 42 * - 21 / + CASE + CAST ( - CASE - ( + + 96 ) WHEN - + NULLIF ( + - 90, - 67 * + ( 9 ) + NULLIF ( - + 32, - - 31 - + 79 ) + + 4 ) THEN - 25 * COUNT ( 57 ) * - CAST ( - CAST ( 45 AS INTEGER ) AS INTEGER ) + + ( + 71 ) WHEN - COALESCE ( + 20, + COUNT ( * ) * COUNT ( * ) + 67 + + 27 + 88 * - 80 ) / - 75 THEN + 31 WHEN - - CAST ( + - 43 AS INTEGER ) * + - 74 THEN + 17 END AS INTEGER ) WHEN + 52 * 70 THEN - 23 ELSE NULL END * + 72 - 12 - 64 * + 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2178
SELECT 53 * + AVG ( - 33 ) / 20 * - + ( - + 62 ) / COALESCE ( 48, + 33 * - 69 + - CAST( + - 82 AS SIGNED ) ) * + - CASE 58 WHEN - - COUNT( DISTINCT - + 82 ) THEN ( + COUNT( * ) ) WHEN - 89 THEN - 80 * + - 26 + + - COUNT( + 1 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT 53 * + AVG ( - 33 ) / 20 * - + ( - + 62 ) / COALESCE ( 48, + 33 * - 69 + - CAST ( + - 82 AS INTEGER ) ) * + - CASE 58 WHEN - - COUNT ( DISTINCT - + 82 ) THEN ( + COUNT ( * ) ) WHEN - 89 THEN - 80 * + - 26 + + - COUNT ( + 1 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2179
SELECT ALL - COUNT( * ) * + + 73 * COUNT( * ) + - COALESCE ( - 52, MIN( - 66 ) * - 10 + + ( + COUNT( * ) ) ) * + 87 DIV + COUNT( * ) AS col1
----
4451

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL - COUNT ( * ) * + + 73 * COUNT ( * ) + - COALESCE ( - 52, MIN ( - 66 ) * - 10 + + ( + COUNT ( * ) ) ) * + 87 / + COUNT ( * ) AS col1
----
4451

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

skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT + + 25 / COUNT ( * )
----
25

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

skipif mysql # not compatible
query I rowsort label-2181
SELECT + 94 / 83
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT NULLIF ( - 31, 98 - - - COUNT( * ) * 15 ) * - COUNT( * ) * + 37
----
1147

skipif mysql # not compatible
query I rowsort label-2182
SELECT NULLIF ( - 31, 98 - - - COUNT ( * ) * 15 ) * - COUNT ( * ) * + 37
----
1147

query I rowsort
SELECT - COALESCE ( 23, - + ( + 18 ) ) + - 57
----
-80

query I rowsort
SELECT + 4 * + 58 - - 99 col1
----
331

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT + 47 * 46 * + CASE + 32 WHEN 16 * + 45 + - 31 THEN + + AVG ( DISTINCT - - 53 ) END - + ( + + ( + COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT + 47 * 46 * + CASE + 32 WHEN 16 * + 45 + - 31 THEN + + AVG ( DISTINCT - - 53 ) END - + ( + + ( + COUNT ( * ) ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT 10 * - 3 DIV - 36 + 79
----
79

skipif mysql # not compatible
query I rowsort label-2186
SELECT 10 * - 3 / - 36 + 79
----
79

query II rowsort
SELECT + 45, + 19 * + + ( - 33 ) col1
----
45
-627

query I rowsort
SELECT DISTINCT - 2 + - 51
----
-53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2190
SELECT ALL + ( 88 ) + + - 56 * + CAST( + + 13 AS SIGNED ) + + - 3
----
-643

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL + ( 88 ) + + - 56 * + CAST ( + + 13 AS INTEGER ) + + - 3
----
-643

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT DISTINCT - 11 + - 41 + - + NULLIF ( - ( COUNT( * ) ), - 52 * + + 52 + - 55 + + + COUNT( * ) + 53 ) * 95 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT - 11 + - 41 + - + NULLIF ( - ( COUNT ( * ) ), - 52 * + + 52 + - 55 + + + COUNT ( * ) + 53 ) * 95 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT - COALESCE ( + - COUNT( * ), - 24, + MIN( DISTINCT - 59 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2192
SELECT - COALESCE ( + - COUNT ( * ), - 24, + MIN ( DISTINCT - 59 ) ) AS col1
----
1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2195
SELECT + NULLIF ( - SUM( + 54 ), + CAST( NULL AS SIGNED ) ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-2195
SELECT + NULLIF ( - SUM ( + 54 ), + CAST ( NULL AS INTEGER ) ) col0
----
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-2196
SELECT + 52 col2, COALESCE ( - 6, - AVG ( ALL - + 64 ) ) DIV + - 23 AS col0
----
52
0

skipif mysql # not compatible
query II rowsort label-2196
SELECT + 52 col2, COALESCE ( - 6, - AVG ( ALL - + 64 ) ) / + - 23 AS col0
----
52
0

query II rowsort
SELECT - 46 * - ( + 25 ) AS col1, 13 * + 89
----
1150
1157

query I rowsort
SELECT ALL + 18 + - 23
----
-5

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

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

query I rowsort
SELECT 61 - ( + - 47 )
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-2201
SELECT ALL 20, MIN( ALL - 52 ) * - 7 + - 71 * - MIN( 14 ) AS col2
----
20
1358

skipif mysql # not compatible
query II rowsort label-2201
SELECT ALL 20, MIN ( ALL - 52 ) * - 7 + - 71 * - MIN ( 14 ) AS col2
----
20
1358

onlyif mysql # DIV for integer division: 
query I rowsort label-2202
SELECT DISTINCT - 73 + 76 + 18 DIV - - 57 + 34 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT - 73 + 76 + 18 / - - 57 + 34 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL COUNT( ALL - + 73 ) * 54
----
54

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL COUNT ( ALL - + 73 ) * 54
----
54

query II rowsort
SELECT 45 col1, 91 + 11 AS col0
----
45
102

query I rowsort
SELECT DISTINCT 68 * - 65 * - 68 * + + 4 col2
----
1202240

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT CASE COUNT( ALL + 55 ) WHEN + CASE - + 74 WHEN - - 49 THEN - 61 ELSE - - 79 END + COUNT( * ) * - 15 * + + 17 THEN - AVG ( + - 6 ) / - COUNT( * ) * SUM( 29 ) + + CASE + - 48 WHEN + CASE 83 WHEN 23 * - 55 THEN - ( + ( + 38 ) ) + 28 WHEN - 15 THEN NULL WHEN - 80 THEN NULL END THEN NULL ELSE - - 27 END * - - 77 * COUNT( * ) * - COUNT( * ) + - COUNT( * ) END - + COALESCE ( + 27, - + ( + - 52 ), + + AVG ( ALL - 40 ) + + 7 ) + + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT CASE COUNT ( ALL + 55 ) WHEN + CASE - + 74 WHEN - - 49 THEN - 61 ELSE - - 79 END + COUNT ( * ) * - 15 * + + 17 THEN - AVG ( + - 6 ) / - COUNT ( * ) * SUM ( 29 ) + + CASE + - 48 WHEN + CASE 83 WHEN 23 * - 55 THEN - ( + ( + 38 ) ) + 28 WHEN - 15 THEN NULL WHEN - 80 THEN NULL END THEN NULL ELSE - - 27 END * - - 77 * COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) END - + COALESCE ( + 27, - + ( + - 52 ), + + AVG ( ALL - 40 ) + + 7 ) + + + 37
----
NULL

query I rowsort
SELECT ALL + 83 * 87 AS col2
----
7221

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT 70 + + COUNT( * ) col0
----
71

skipif mysql # not compatible
query I rowsort label-2208
SELECT 70 + + COUNT ( * ) col0
----
71

query I rowsort
SELECT 6 - - 40 + + 41
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2210
SELECT DISTINCT 32 * COALESCE ( - 21, ( - NULLIF ( ( + + 55 ), - ( - NULLIF ( - 41, - 84 ) ) ) ) * + - 24 * + COUNT( * ) + + SUM( 33 ) + + 52 * + 37 DIV + + 65 + - COUNT( * ) * + COUNT( DISTINCT 49 ), 86 )
----
-672

skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT 32 * COALESCE ( - 21, ( - NULLIF ( ( + + 55 ), - ( - NULLIF ( - 41, - 84 ) ) ) ) * + - 24 * + COUNT ( * ) + + SUM ( 33 ) + + 52 * + 37 / + + 65 + - COUNT ( * ) * + COUNT ( DISTINCT 49 ), 86 )
----
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2211
SELECT ALL CASE - COUNT( * ) WHEN - 40 + - - 71 THEN 75 - - + SUM( DISTINCT - 43 ) ELSE CAST( NULL AS SIGNED ) END - - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL CASE - COUNT ( * ) WHEN - 40 + - - 71 THEN 75 - - + SUM ( DISTINCT - 43 ) ELSE CAST ( NULL AS INTEGER ) END - - 9
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT - MAX( 52 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-2213
SELECT - MAX ( 52 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-2214
SELECT DISTINCT COUNT( * ), + COUNT( * ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-2214
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) col0
----
1
1

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

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT + COUNT ( * ) * + SUM ( DISTINCT - - 62 ) AS col1
----
62

query II rowsort
SELECT ALL 7 AS col2, 96 AS col2
----
7
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT ALL COUNT( * ) * - + COUNT( * ) * - MAX( DISTINCT 95 ) + - 49 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL COUNT ( * ) * - + COUNT ( * ) * - MAX ( DISTINCT 95 ) + - 49 AS col2
----
46

query II rowsort
SELECT 94 AS col0, 60
----
94
60

query II rowsort
SELECT ALL 6 AS col1, 71 * - - 6 * + 53 * - - 44 * + 88
----
6
87422016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2220
SELECT - 92 + + - 74 - - + COUNT( * ) + 58 * + CASE + COALESCE ( + - 10, - 59 ) WHEN COUNT( * ) THEN - 9 WHEN - 56 * - 52 THEN NULL WHEN 98 * + CAST( + 71 AS SIGNED ) * + 41 THEN NULL WHEN + + MAX( DISTINCT 89 ) * 60 + + 15 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2220
SELECT - 92 + + - 74 - - + COUNT ( * ) + 58 * + CASE + COALESCE ( + - 10, - 59 ) WHEN COUNT ( * ) THEN - 9 WHEN - 56 * - 52 THEN NULL WHEN 98 * + CAST ( + 71 AS INTEGER ) * + 41 THEN NULL WHEN + + MAX ( DISTINCT 89 ) * 60 + + 15 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2221
SELECT - CAST( NULL AS SIGNED ) * + 53 * 19 - SUM( 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2221
SELECT - CAST ( NULL AS INTEGER ) * + 53 * 19 - SUM ( 64 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2222
SELECT + + 93, COUNT( * ) * + - ( 11 ) * - - 41 * + 83 + - + ( + COUNT( * ) ) * - 72 AS col0
----
93
-37361

skipif mysql # not compatible
query II rowsort label-2222
SELECT + + 93, COUNT ( * ) * + - ( 11 ) * - - 41 * + 83 + - + ( + COUNT ( * ) ) * - 72 AS col0
----
93
-37361

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2223
SELECT - COUNT( * ) DIV + + 57 + NULLIF ( + - 1, - 57 + 11 ) + ( + 44 )
----
43

skipif mysql # not compatible
query I rowsort label-2223
SELECT - COUNT ( * ) / + + 57 + NULLIF ( + - 1, - 57 + 11 ) + ( + 44 )
----
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL 43 * 42 + 26 + - - ( + SUM( 52 ) ) AS col1
----
1884

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL 43 * 42 + 26 + - - ( + SUM ( 52 ) ) AS col1
----
1884

onlyif mysql # DIV for integer division: 
query I rowsort label-2226
SELECT - 55 DIV 22 + + 86
----
84

skipif mysql # not compatible
query I rowsort label-2226
SELECT - 55 / 22 + + 86
----
84

query I rowsort
SELECT + - 58 * 4 - 62 AS col2
----
-294

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT + 59 * - + 54 + - - 10 + - MIN( + 12 )
----
-3188

skipif mysql # not compatible
query I rowsort label-2229
SELECT + 59 * - + 54 + - - 10 + - MIN ( + 12 )
----
-3188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2230
SELECT - COUNT( * ) + - SUM( DISTINCT - CAST( 92 AS SIGNED ) ) * - 17 * 67 AS col2
----
-104789

skipif mysql # not compatible
query I rowsort label-2230
SELECT - COUNT ( * ) + - SUM ( DISTINCT - CAST ( 92 AS INTEGER ) ) * - 17 * 67 AS col2
----
-104789

query I rowsort
SELECT ALL 64 * - + 17 + + 12
----
-1076

query II rowsort
SELECT + 86, 93 col0
----
86
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2233
SELECT - 63 + + ( COALESCE ( 59, + 97 * + - COUNT( * ), + COUNT( * ) * - CAST( NULL AS SIGNED ) ) ) AS col0, + COALESCE ( + 9, 9 )
----
-4
9

skipif mysql # not compatible
query II rowsort label-2233
SELECT - 63 + + ( COALESCE ( 59, + 97 * + - COUNT ( * ), + COUNT ( * ) * - CAST ( NULL AS INTEGER ) ) ) AS col0, + COALESCE ( + 9, 9 )
----
-4
9

query I rowsort
SELECT ALL + 96 * + - 65
----
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT ALL + 14 * + SUM( 77 )
----
1078

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL + 14 * + SUM ( 77 )
----
1078

onlyif mysql # aggregate syntax: 
query II rowsort label-2236
SELECT - 29 * 3 * + + MAX( - + 82 ) * + 13 + 77 + 90 * + + 29, - 13 AS col2
----
95429
-13

skipif mysql # not compatible
query II rowsort label-2236
SELECT - 29 * 3 * + + MAX ( - + 82 ) * + 13 + 77 + 90 * + + 29, - 13 AS col2
----
95429
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2237
SELECT - ( + + 6 ) * SUM( DISTINCT - 57 ) - + 42 AS col0, + 86
----
300
86

skipif mysql # not compatible
query II rowsort label-2237
SELECT - ( + + 6 ) * SUM ( DISTINCT - 57 ) - + 42 AS col0, + 86
----
300
86

query I rowsort
SELECT - 27 * 16 * + 37
----
-15984

query I rowsort
SELECT - 86 + + 37 + + - 13 AS col1
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-2240
SELECT ALL COALESCE ( - 61, - ( - - 65 ) DIV - 19 DIV ( - 44 ), 57 * - - 87 + 38 * 0 )
----
-61

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL COALESCE ( - 61, - ( - - 65 ) / - 19 / ( - 44 ), 57 * - - 87 + 38 * 0 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2241
SELECT DISTINCT CASE 48 WHEN + 31 / + 39 THEN 14 * 79 - 96 + - CAST( NULL AS SIGNED ) WHEN - + 7 / 6 + + 31 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT CASE 48 WHEN + 31 / + 39 THEN 14 * 79 - 96 + - CAST ( NULL AS INTEGER ) WHEN - + 7 / 6 + + 31 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT + 62 + - + NULLIF ( - ( - COUNT( * ) ), - 44 * + 41 ) * - 42 + - NULLIF ( 60, - - 62 / - COUNT( * ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-2242
SELECT + 62 + - + NULLIF ( - ( - COUNT ( * ) ), - 44 * + 41 ) * - 42 + - NULLIF ( 60, - - 62 / - COUNT ( * ) ) AS col2
----
44

query II rowsort
SELECT - 91 + 46 AS col0, 93 col0
----
-45
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2244
SELECT DISTINCT MAX( DISTINCT + 95 ) AS col0, + 41 AS col1
----
95
41

skipif mysql # not compatible
query II rowsort label-2244
SELECT DISTINCT MAX ( DISTINCT + 95 ) AS col0, + 41 AS col1
----
95
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2245
SELECT ALL NULLIF ( - - 72, - COALESCE ( - 63, + 11 + + CAST( + 94 AS DECIMAL ), ( + 55 ) ) )
----
72

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL NULLIF ( - - 72, - COALESCE ( - 63, + 11 + + CAST ( + 94 AS REAL ), ( + 55 ) ) )
----
72

query I rowsort
SELECT DISTINCT 20 * ( ( ( 96 ) ) ) * - 70
----
-134400

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT - 43 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-2247
SELECT - 43 / - 54
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2248
SELECT - 55 * CAST( NULL AS DECIMAL ) AS col0, - 8 * 25 AS col0
----
NULL
-200

skipif mysql # not compatible
query II rowsort label-2248
SELECT - 55 * CAST ( NULL AS REAL ) AS col0, - 8 * 25 AS col0
----
NULL
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT - COALESCE ( 55, - COUNT( + - 89 ), + + COUNT( * ) ) - + 80
----
-135

skipif mysql # not compatible
query I rowsort label-2249
SELECT - COALESCE ( 55, - COUNT ( + - 89 ), + + COUNT ( * ) ) - + 80
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2250
SELECT - MAX( - CAST( 20 AS SIGNED ) )
----
20

skipif mysql # not compatible
query I rowsort label-2250
SELECT - MAX ( - CAST ( 20 AS INTEGER ) )
----
20

query II rowsort
SELECT DISTINCT ( + - 22 ) col0, 46 * 78
----
-22
3588

onlyif mysql # aggregate syntax: 
query II rowsort label-2252
SELECT + SUM( ALL 46 ) AS col2, + COUNT( * ) + + 65 * - 73
----
46
-4744

skipif mysql # not compatible
query II rowsort label-2252
SELECT + SUM ( ALL 46 ) AS col2, + COUNT ( * ) + + 65 * - 73
----
46
-4744

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT ALL 59 * COUNT( * ) col1
----
59

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL 59 * COUNT ( * ) col1
----
59

query I rowsort
SELECT - - 24 - 64
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2255
SELECT ALL - 97 DIV 32 + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL - 97 / 32 + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2256
SELECT DISTINCT - NULLIF ( 80, COUNT( * ) ) DIV 25 + - 86 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT - NULLIF ( 80, COUNT ( * ) ) / 25 + - 86 AS col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2257
SELECT DISTINCT 74 * - + 40 - 71 * 78 + - 17 - COALESCE ( 13, + + CAST( NULL AS SIGNED ), COUNT( * ) * - 62 * + 4 - - 33 + - + 50 ) + 62 + + 6 * 28 * 47 * + 19 DIV - + COUNT( * ) + 24 + + + COUNT( * ) + + + COALESCE ( + - 67, - 46 DIV - 4 + SUM( ALL + 56 ) * 2 + - NULLIF ( + 93, 24 * ( + - COALESCE ( + - 55, - - 59, + 47 DIV - 36 * - COUNT( * ) * 8 DIV - + 64 * - ( + 13 ) ) ) * - 74 DIV 53 * - CAST( NULL AS SIGNED ) ), - 34 * + 64 * + MIN( CAST( - 39 AS SIGNED ) ) + 27 * 51 ) * 50
----
-161815

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT 74 * - + 40 - 71 * 78 + - 17 - COALESCE ( 13, + + CAST ( NULL AS INTEGER ), COUNT ( * ) * - 62 * + 4 - - 33 + - + 50 ) + 62 + + 6 * 28 * 47 * + 19 / - + COUNT ( * ) + 24 + + + COUNT ( * ) + + + COALESCE ( + - 67, - 46 / - 4 + SUM ( ALL + 56 ) * 2 + - NULLIF ( + 93, 24 * ( + - COALESCE ( + - 55, - - 59, + 47 / - 36 * - COUNT ( * ) * 8 / - + 64 * - ( + 13 ) ) ) * - 74 / 53 * - CAST ( NULL AS INTEGER ) ), - 34 * + 64 * + MIN ( CAST ( - 39 AS INTEGER ) ) + 27 * 51 ) * 50
----
-161815

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2258
SELECT ALL + 39 * - 28 - - 45 DIV 29 + - - 18 AS col0, COALESCE ( + 82, 21 + - 36, - 84, - - 99 ) + - - 85 + - - 45 * - COALESCE ( - 63, + + SUM( - - 73 ), + CASE - 16 WHEN + 59 THEN - + 17 - - 46 + 23 DIV 70 WHEN 13 THEN NULL WHEN - 27 THEN NULL ELSE NULL END, + 91 * + - 25 ) + - 1 - + - 97 + - CAST( NULL AS SIGNED ) DIV - + 41 * + + 23 AS col0
----
-1073
NULL

skipif mysql # not compatible
query II rowsort label-2258
SELECT ALL + 39 * - 28 - - 45 / 29 + - - 18 AS col0, COALESCE ( + 82, 21 + - 36, - 84, - - 99 ) + - - 85 + - - 45 * - COALESCE ( - 63, + + SUM ( - - 73 ), + CASE - 16 WHEN + 59 THEN - + 17 - - 46 + 23 / 70 WHEN 13 THEN NULL WHEN - 27 THEN NULL ELSE NULL END, + 91 * + - 25 ) + - 1 - + - 97 + - CAST ( NULL AS INTEGER ) / - + 41 * + + 23 AS col0
----
-1073
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT + - COUNT( * ) * - + 97 + + 44 * 28 * - 70 * + + COUNT( * ) * - 93 AS col0
----
8020417

skipif mysql # not compatible
query I rowsort label-2259
SELECT + - COUNT ( * ) * - + 97 + + 44 * 28 * - 70 * + + COUNT ( * ) * - 93 AS col0
----
8020417

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT ALL + 3 * 25 - 61 - - 69 DIV 96 * 52
----
14

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL + 3 * 25 - 61 - - 69 / 96 * 52
----
14

query I rowsort
SELECT ALL + 87 * - 57 - + 35
----
-4994

onlyif mysql # DIV for integer division: 
query I rowsort label-2262
SELECT + 57 DIV 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2262
SELECT + 57 / 98 AS col0
----
0

query I rowsort
SELECT DISTINCT 63 * + 40 col1
----
2520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2264
SELECT - ( - 75 ) * 7 + - CAST( + 79 AS SIGNED ) - - 33
----
479

skipif mysql # not compatible
query I rowsort label-2264
SELECT - ( - 75 ) * 7 + - CAST ( + 79 AS INTEGER ) - - 33
----
479

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT 28 * 74 * + ( - 80 ) + SUM( DISTINCT - - 24 ) AS col2
----
-165736

skipif mysql # not compatible
query I rowsort label-2265
SELECT 28 * 74 * + ( - 80 ) + SUM ( DISTINCT - - 24 ) AS col2
----
-165736

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT NULLIF ( 75, + COUNT( * ) )
----
75

skipif mysql # not compatible
query I rowsort label-2266
SELECT NULLIF ( 75, + COUNT ( * ) )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2267
SELECT ALL + 41, - COUNT( * ) AS col0
----
41
-1

skipif mysql # not compatible
query II rowsort label-2267
SELECT ALL + 41, - COUNT ( * ) AS col0
----
41
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2268
SELECT - 3 * + CAST( NULL AS SIGNED ) * 6 AS col1, + CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2268
SELECT - 3 * + CAST ( NULL AS INTEGER ) * 6 AS col1, + CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2271
SELECT DISTINCT + ( - 76 ) * + + CAST( 30 AS SIGNED )
----
-2280

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT + ( - 76 ) * + + CAST ( 30 AS INTEGER )
----
-2280

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2273
SELECT + 14 + - - 86 - - ( - 25 ) + 25 / 22 * + CAST( NULL AS SIGNED ) * + AVG ( 4 ) / + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2273
SELECT + 14 + - - 86 - - ( - 25 ) + 25 / 22 * + CAST ( NULL AS INTEGER ) * + AVG ( 4 ) / + 71
----
NULL

query I rowsort
SELECT + 31 * + 72 AS col0
----
2232

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2276
SELECT DISTINCT - COUNT( * ) + - CASE - MIN( DISTINCT 36 ) WHEN - 3 THEN NULL WHEN + 92 THEN - - 93 * 31 DIV + 53 ELSE - 26 END * + 14, - 88 * + 33 AS col2
----
363
-2904

skipif mysql # not compatible
query II rowsort label-2276
SELECT DISTINCT - COUNT ( * ) + - CASE - MIN ( DISTINCT 36 ) WHEN - 3 THEN NULL WHEN + 92 THEN - - 93 * 31 / + 53 ELSE - 26 END * + 14, - 88 * + 33 AS col2
----
363
-2904

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2278
SELECT 92 AS col2, 95 + + + CAST( - 25 AS SIGNED )
----
92
70

skipif mysql # not compatible
query II rowsort label-2278
SELECT 92 AS col2, 95 + + + CAST ( - 25 AS INTEGER )
----
92
70

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

skipif mysql # not compatible
query I rowsort label-2279
SELECT - - COUNT ( * ) + - + 44 AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2280
SELECT DISTINCT COUNT( * ), NULLIF ( + - CAST( NULL AS SIGNED ), - - 36 * 91 / - COUNT( * ) + + 33 ) / + - 78 * - - 36 * - NULLIF ( + 68, - 10 ) + + NULLIF ( 44, + CAST( NULL AS DECIMAL ) ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2280
SELECT DISTINCT COUNT ( * ), NULLIF ( + - CAST ( NULL AS INTEGER ), - - 36 * 91 / - COUNT ( * ) + + 33 ) / + - 78 * - - 36 * - NULLIF ( + 68, - 10 ) + + NULLIF ( 44, + CAST ( NULL AS REAL ) ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2281
SELECT - COUNT( * ) * + 72 DIV + 1 AS col0
----
-72

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2282
SELECT DISTINCT - - 47 + + COUNT( * ) DIV 25
----
47

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT - - 47 + + COUNT ( * ) / 25
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT - CASE 67 WHEN COUNT( * ) + + COUNT( * ) THEN - + 82 WHEN - 71 + - 30 THEN NULL END + + 29 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT - CASE 67 WHEN COUNT ( * ) + + COUNT ( * ) THEN - + 82 WHEN - 71 + - 30 THEN NULL END + + 29 col2
----
NULL

query II rowsort
SELECT ALL - 73 + 43 * + - 42, 9 + 85 * - + ( - 50 ) AS col0
----
-1879
4259

query I rowsort
SELECT ALL 93 + - + 88
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT DISTINCT - ( 0 ) * NULLIF ( + 58, - CASE - CASE MAX( 80 ) WHEN - CASE 74 WHEN - + NULLIF ( - 25, + 12 + - + 63 + + 34 + - - 1 * - + 35 ) THEN NULL WHEN - + 9 / - 63 + + 77 + + 21 + - COUNT( * ) * + 29 THEN - 26 END THEN + 5 END WHEN COUNT( * ) THEN NULL WHEN 58 THEN + COALESCE ( - 78, + 54 ) ELSE NULL END )
----
0

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT - ( 0 ) * NULLIF ( + 58, - CASE - CASE MAX ( 80 ) WHEN - CASE 74 WHEN - + NULLIF ( - 25, + 12 + - + 63 + + 34 + - - 1 * - + 35 ) THEN NULL WHEN - + 9 / - 63 + + 77 + + 21 + - COUNT ( * ) * + 29 THEN - 26 END THEN + 5 END WHEN COUNT ( * ) THEN NULL WHEN 58 THEN + COALESCE ( - 78, + 54 ) ELSE NULL END )
----
0

query I rowsort
SELECT 86 + - 5 AS col0
----
81

query I rowsort
SELECT - 7 * 13 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT COUNT( * ) * - + MAX( - + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-2289
SELECT COUNT ( * ) * - + MAX ( - + 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT + COUNT( * ) + 86 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2290
SELECT + COUNT ( * ) + 86 AS col2
----
87

query II rowsort
SELECT ALL - 35 AS col1, 12 * - 91 AS col2
----
-35
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT + + MAX( + 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2292
SELECT + + MAX ( + 13 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT + 76 * - COUNT( * ) + 56 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-2293
SELECT + 76 * - COUNT ( * ) + 56 AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2294
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) * + 32 * 99 - - ( - + 94 ) * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-2294
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) * + 32 * 99 - - ( - + 94 ) * 74
----
NULL

query I rowsort
SELECT ALL + 29 - + 75 * 95
----
-7096

query I rowsort
SELECT - 65 + 14 AS col1
----
-51

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

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

query II rowsort
SELECT ALL - 35, 28 AS col1
----
-35
28

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2301
SELECT - 84 DIV + 78 + - 6 + + 76 + 85 + - 25 * - - 37
----
-771

skipif mysql # not compatible
query I rowsort label-2301
SELECT - 84 / + 78 + - 6 + + 76 + 85 + - 25 * - - 37
----
-771

query I rowsort
SELECT 80 * - - ( + ( 77 ) ) * 78 * + 43
----
20660640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2303
SELECT 15 + ( + - ( - 16 ) ) DIV 83 * - - MIN( 44 )
----
15

skipif mysql # not compatible
query I rowsort label-2303
SELECT 15 + ( + - ( - 16 ) ) / 83 * - - MIN ( 44 )
----
15

query II rowsort
SELECT 86 + 98 AS col0, 78
----
184
78

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT 22 DIV 34 col0
----
0

skipif mysql # not compatible
query I rowsort label-2305
SELECT 22 / 34 col0
----
0

query I rowsort
SELECT DISTINCT 9 * - + 12
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2307
SELECT DISTINCT - 79 DIV + + COALESCE ( - + 3, COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT - 79 / + + COALESCE ( - + 3, COUNT ( * ) )
----
26

query I rowsort
SELECT DISTINCT 73 * + + 20 * 3 AS col0
----
4380

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT ALL - CASE + 81 WHEN + 73 THEN ( MAX( + 4 ) ) WHEN + + ( - 13 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL - CASE + 81 WHEN + 73 THEN ( MAX ( + 4 ) ) WHEN + + ( - 13 ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2310
SELECT ALL 8 + CAST( NULL AS SIGNED ) AS col1, 17 * + COUNT( + 64 ) * - COUNT( * )
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-2310
SELECT ALL 8 + CAST ( NULL AS INTEGER ) AS col1, 17 * + COUNT ( + 64 ) * - COUNT ( * )
----
NULL
-17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2312
SELECT NULLIF ( - 35, + 50 DIV - ( 43 ) + - - 35 + + - 93 * 44 ) + - 67 - + 9 DIV 61
----
-102

skipif mysql # not compatible
query I rowsort label-2312
SELECT NULLIF ( - 35, + 50 / - ( 43 ) + - - 35 + + - 93 * 44 ) + - 67 - + 9 / 61
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2313
SELECT ALL 2 + + MAX( 66 ) * + - CAST( NULL AS SIGNED ) + MAX( DISTINCT - 91 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL 2 + + MAX ( 66 ) * + - CAST ( NULL AS INTEGER ) + MAX ( DISTINCT - 91 ) AS col2
----
NULL

query II rowsort
SELECT 50 + + + 48 AS col1, + 13 * - 12
----
98
-156

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

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

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

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

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

query I rowsort
SELECT 70 - - COALESCE ( - 92, - + 49 ) * 7 AS col0
----
-574

query I rowsort
SELECT - 70 + + + 57 AS col2
----
-13

query I rowsort
SELECT ALL - - 69 * - - 49 col0
----
3381

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT 91 + + + CASE + + 44 WHEN + - 45 * 36 * + COUNT( * ) THEN NULL WHEN + + NULLIF ( 74, + 68 ) THEN - 71 END * - + 90 * COUNT( * ) + + 87 + 13 * - 87 * + + 72 * 16 * + COUNT( * ) + MIN( ALL 13 ) * 52 * - MIN( DISTINCT - 65 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT 91 + + + CASE + + 44 WHEN + - 45 * 36 * + COUNT ( * ) THEN NULL WHEN + + NULLIF ( 74, + 68 ) THEN - 71 END * - + 90 * COUNT ( * ) + + 87 + 13 * - 87 * + + 72 * 16 * + COUNT ( * ) + MIN ( ALL 13 ) * 52 * - MIN ( DISTINCT - 65 ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT + 59 - + COUNT ( * ) - + COUNT ( * ) AS col1
----
57

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2324
SELECT 62 * - 17, + NULLIF ( - 41, - + 16 / - 55 + + ( - + CAST( NULL AS SIGNED ) ) ) AS col0
----
-1054
-41

skipif mysql # not compatible
query II rowsort label-2324
SELECT 62 * - 17, + NULLIF ( - 41, - + 16 / - 55 + + ( - + CAST ( NULL AS INTEGER ) ) ) AS col0
----
-1054
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-2325
SELECT ALL + 55 DIV - 42
----
-1

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL + 55 / - 42
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT 56 * - 57 - + COUNT( * ) - 54 - + ( - - 49 ) + - 63 AS col0
----
-3359

skipif mysql # not compatible
query I rowsort label-2326
SELECT 56 * - 57 - + COUNT ( * ) - 54 - + ( - - 49 ) + - 63 AS col0
----
-3359

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT 80 DIV - + 74 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2327
SELECT 80 / - + 74 AS col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT ALL - MAX( - 50 ) * 14 + + + 4
----
704

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL - MAX ( - 50 ) * 14 + + + 4
----
704

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2330
SELECT ALL - NULLIF ( - 9, - CAST( ( - - 31 ) AS DECIMAL ) + - 42 )
----
9

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL - NULLIF ( - 9, - CAST ( ( - - 31 ) AS REAL ) + - 42 )
----
9

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

query I rowsort
SELECT ALL - 66 + + 99 + - ( 76 ) * - - ( - - 85 ) AS col1
----
-6427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2333
SELECT 57 AS col1, + AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col0, COUNT( * )
----
57
NULL
1

skipif mysql # not compatible
query III rowsort label-2333
SELECT 57 AS col1, + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * )
----
57
NULL
1

query I rowsort
SELECT 95 + - - 46
----
141

query I rowsort
SELECT 2 * + - 98 + - 88 col0
----
-284

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

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

query I rowsort
SELECT 21 - 36
----
-15

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2339
SELECT - 59 * - 38 + 15 DIV 74
----
2242

skipif mysql # not compatible
query I rowsort label-2339
SELECT - 59 * - 38 + 15 / 74
----
2242

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT ALL NULLIF ( 15, - 21 ) + - COUNT( ALL + 66 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL NULLIF ( 15, - 21 ) + - COUNT ( ALL + 66 ) AS col0
----
14

query I rowsort
SELECT + 1 + - ( 87 + - 18 * - 96 )
----
-1814

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT + MIN( ALL + 37 ) + + NULLIF ( + 77, - 53 * - 5 ) col0
----
114

skipif mysql # not compatible
query I rowsort label-2343
SELECT + MIN ( ALL + 37 ) + + NULLIF ( + 77, - 53 * - 5 ) col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT + ( + MIN( - 60 ) ) + 2
----
-58

skipif mysql # not compatible
query I rowsort label-2344
SELECT + ( + MIN ( - 60 ) ) + 2
----
-58

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

skipif mysql # not compatible
query I rowsort label-2345
SELECT + MAX ( - CAST ( NULL AS INTEGER ) ) * - 90
----
NULL

query I rowsort
SELECT - ( + 17 ) * - 86 AS col2
----
1462

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT ALL 6 DIV + 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL 6 / + 37 AS col0
----
0

query I rowsort
SELECT + 71 * - ( + ( + 49 ) ) AS col0
----
-3479

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT - COALESCE ( 5, 79 + MIN( 17 + - 61 ) ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-2349
SELECT - COALESCE ( 5, 79 + MIN ( 17 + - 61 ) ) AS col2
----
-5

query I rowsort
SELECT + ( 70 ) + - NULLIF ( 11 + + 33 * - 85, 66 ) AS col2
----
2864

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT + COUNT( * ) * MIN( - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-2352
SELECT + COUNT ( * ) * MIN ( - 77 )
----
-77

query I rowsort
SELECT ALL 99 * - 44 AS col2
----
-4356

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

skipif mysql # not compatible
query I rowsort label-2354
SELECT + COUNT ( * ) + + 42 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT + COALESCE ( 54, - COUNT( 3 ), + ( - 80 ) )
----
54

skipif mysql # not compatible
query I rowsort label-2355
SELECT + COALESCE ( 54, - COUNT ( 3 ), + ( - 80 ) )
----
54

query I rowsort
SELECT ALL 63 * + 10
----
630

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2357
SELECT DISTINCT + CASE 93 WHEN + 43 THEN - CASE + ( - 89 ) WHEN 47 THEN NULL WHEN CAST( + 76 AS DECIMAL ) + - 72 / COUNT( * ) THEN 89 ELSE + 15 END - 30 WHEN 30 + + 36 THEN + COUNT( * ) ELSE + 28 END
----
28

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT + CASE 93 WHEN + 43 THEN - CASE + ( - 89 ) WHEN 47 THEN NULL WHEN CAST ( + 76 AS REAL ) + - 72 / COUNT ( * ) THEN 89 ELSE + 15 END - 30 WHEN 30 + + 36 THEN + COUNT ( * ) ELSE + 28 END
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT ALL + 6 DIV + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2358
SELECT ALL + 6 / + 73 AS col2
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( 31, 36 ) * 64 + 71 AS col2
----
2055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2360
SELECT CASE NULLIF ( - 41, + 14 + 19 ) WHEN + ( 3 ) THEN 61 + + CAST( - 78 AS SIGNED ) ELSE - COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2360
SELECT CASE NULLIF ( - 41, + 14 + 19 ) WHEN + ( 3 ) THEN 61 + + CAST ( - 78 AS INTEGER ) ELSE - COUNT ( * ) END AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2361
SELECT 98 * SUM( DISTINCT CAST( - 0 AS SIGNED ) ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2361
SELECT 98 * SUM ( DISTINCT CAST ( - 0 AS INTEGER ) ) + - COUNT ( * )
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2363
SELECT - 91 DIV - 43
----
2

skipif mysql # not compatible
query I rowsort label-2363
SELECT - 91 / - 43
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT - 9 * + COUNT( 12 )
----
-9

skipif mysql # not compatible
query I rowsort label-2364
SELECT - 9 * + COUNT ( 12 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT ALL + 86 * + 10 + + SUM( + 89 )
----
949

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL + 86 * + 10 + + SUM ( + 89 )
----
949

query I rowsort
SELECT 98 * + 15 + 55
----
1525

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

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

query I rowsort
SELECT DISTINCT + 44 * + 77
----
3388

query I rowsort
SELECT + 29 + + 67 AS col0
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT - NULLIF ( 45, COUNT( ALL 99 ) ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-2371
SELECT - NULLIF ( 45, COUNT ( ALL 99 ) ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT + 56 + SUM( - 34 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2372
SELECT + 56 + SUM ( - 34 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT ALL - 44 * NULLIF ( - 62 + COUNT( * ), 15 * + ( - 42 ) + - 40 )
----
2684

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL - 44 * NULLIF ( - 62 + COUNT ( * ), 15 * + ( - 42 ) + - 40 )
----
2684

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

skipif mysql # not compatible
query I rowsort label-2374
SELECT - + COUNT ( * ) * - SUM ( DISTINCT 90 ) AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2375
SELECT ALL - CASE - 50 WHEN 32 THEN - 0 * - ( 83 * + 15 ) WHEN COALESCE ( CAST( - NULLIF ( - 27, - 68 / + 17 ) AS DECIMAL ), - SUM( DISTINCT + 42 ) * 79 ) THEN 81 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL - CASE - 50 WHEN 32 THEN - 0 * - ( 83 * + 15 ) WHEN COALESCE ( CAST ( - NULLIF ( - 27, - 68 / + 17 ) AS REAL ), - SUM ( DISTINCT + 42 ) * 79 ) THEN 81 ELSE NULL END
----
NULL

query I rowsort
SELECT - NULLIF ( - 8, 70 * ( + 78 / 89 ) ) + + ( 31 + ( 48 ) * + 64 ) AS col2
----
3111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2377
SELECT DISTINCT + COUNT( * ) DIV 47 col1
----
0

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT + COUNT ( * ) / 47 col1
----
0

query I rowsort
SELECT + COALESCE ( + 69, 40 ) * - 34 AS col0
----
-2346

query I rowsort
SELECT - 75 - - 32
----
-43

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

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

query I rowsort
SELECT + + 81 + - 41 * 13 col1
----
-452

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

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

query I rowsort
SELECT + - COALESCE ( 17, + 31 ) + + 79
----
62

query I rowsort
SELECT + + 32 + + 97
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2385
SELECT ALL + COUNT( * ) + - COUNT( * ) DIV 95 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL + COUNT ( * ) + - COUNT ( * ) / 95 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT ALL - CASE 79 WHEN 45 * + COUNT( * ) THEN NULL WHEN + 5 THEN NULL WHEN 6 THEN + 15 ELSE NULL END + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL - CASE 79 WHEN 45 * + COUNT ( * ) THEN NULL WHEN + 5 THEN NULL WHEN 6 THEN + 15 ELSE NULL END + + 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2387
SELECT DISTINCT 22 + + 72 * CASE + 5 WHEN COUNT( * ) / + 21 THEN 87 WHEN 33 THEN CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT 22 + + 72 * CASE + 5 WHEN COUNT ( * ) / + 21 THEN 87 WHEN 33 THEN CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT ALL SUM( - 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL SUM ( - 89 ) AS col2
----
-89

query I rowsort
SELECT + 51 * - 41 AS col2
----
-2091

query I rowsort
SELECT ALL 57 + + 46
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2392
SELECT DISTINCT + 52 DIV COUNT( * ) + + 18 col1
----
70

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT + 52 / COUNT ( * ) + + 18 col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2393
SELECT + 9 DIV + + 55 + 23 * 52
----
1196

skipif mysql # not compatible
query I rowsort label-2393
SELECT + 9 / + + 55 + 23 * 52
----
1196

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

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

query I rowsort
SELECT - 21 * + 51 col2
----
-1071

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

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

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

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL + 42 / + COUNT ( * ) + + 19 AS col1
----
61

query I rowsort
SELECT + 85 * + 93 AS col1
----
7905

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL CASE COUNT( * ) WHEN + 32 THEN NULL WHEN + 6 / MIN( - 85 ) THEN - 50 + 42 WHEN - 39 THEN NULL ELSE 3 * 37 END * 99
----
10989

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL CASE COUNT ( * ) WHEN + 32 THEN NULL WHEN + 6 / MIN ( - 85 ) THEN - 50 + 42 WHEN - 39 THEN NULL ELSE 3 * 37 END * 99
----
10989

query I rowsort
SELECT DISTINCT ( - 53 ) * 20 AS col2
----
-1060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2401
SELECT ALL - 65 DIV ( COUNT( * ) ) - 15 * - ( 90 + - 90 ) col2
----
-65

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL - 65 / ( COUNT ( * ) ) - 15 * - ( 90 + - 90 ) col2
----
-65

query I rowsort
SELECT 46 * - - 3
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-2403
SELECT DISTINCT - 58 DIV - + 66
----
0

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT - 58 / - + 66
----
0

query I rowsort
SELECT NULLIF ( 84, + ( + 84 ) + - ( - 68 ) ) + 48
----
132

query I rowsort
SELECT + 51 * 31 - 60 AS col0
----
1521

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

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

query I rowsort
SELECT + 55 * - 62 * 75 + 53 * ( 4 ) + 48
----
-255490

query I rowsort
SELECT 7 * - - 13 * 0 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT - MIN( - 64 ) * - 48 + - NULLIF ( 97, 89 )
----
-3169

skipif mysql # not compatible
query I rowsort label-2409
SELECT - MIN ( - 64 ) * - 48 + - NULLIF ( 97, 89 )
----
-3169

query I rowsort
SELECT + 40 * + + 2 - + COALESCE ( 70, 83 * 67 )
----
10

query I rowsort
SELECT 99 + + - 13 + - 87 * ( + 74 - + NULLIF ( - 37, 68 ) ) AS col2
----
-9571

onlyif mysql # DIV for integer division: 
query I rowsort label-2412
SELECT ALL 49 DIV - + 41 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL 49 / - + 41 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT DISTINCT - + 21 * - 62 * COALESCE ( COUNT( * ) * MAX( - 54 ), 59 * - 66 )
----
-70308

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT - + 21 * - 62 * COALESCE ( COUNT ( * ) * MAX ( - 54 ), 59 * - 66 )
----
-70308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2414
SELECT COUNT( * ) + - - NULLIF ( + ( + 57 ), 57 + - MAX( ALL + 96 + + 2 ) * CAST( NULL AS SIGNED ) ) + + ( - 40 + - 96 * + 59 )
----
-5646

skipif mysql # not compatible
query I rowsort label-2414
SELECT COUNT ( * ) + - - NULLIF ( + ( + 57 ), 57 + - MAX ( ALL + 96 + + 2 ) * CAST ( NULL AS INTEGER ) ) + + ( - 40 + - 96 * + 59 )
----
-5646

query I rowsort
SELECT 55 * - - 54 AS col0
----
2970

query I rowsort
SELECT 14 - + 12 + + 8 col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2417
SELECT - CASE - 66 WHEN 69 + 58 THEN 62 WHEN - CAST( 42 AS SIGNED ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT - CASE - 66 WHEN 69 + 58 THEN 62 WHEN - CAST ( 42 AS INTEGER ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + 65 * + - 90 * 15
----
-87750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2419
SELECT ALL + 97 + + ( + SUM( 20 ) ) DIV COUNT( * )
----
117

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL + 97 + + ( + SUM ( 20 ) ) / COUNT ( * )
----
117

query I rowsort
SELECT ( 99 ) + 52 * - 65 AS col0
----
-3281

query I rowsort
SELECT DISTINCT - + 16 + - - 73
----
57

query I rowsort
SELECT DISTINCT + ( - 61 ) + 12 AS col2
----
-49

query I rowsort
SELECT ALL 46 * 6 AS col2
----
276

query I rowsort
SELECT ALL - 33 + + 92 AS col0
----
59

query I rowsort
SELECT ALL + 79 + 0 col0
----
79

query I rowsort
SELECT 86 + - NULLIF ( 46, 20 ) AS col1
----
40

query I rowsort
SELECT 89 * + - 59
----
-5251

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2428
SELECT ALL 10 * CAST( - 5 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL 10 * CAST ( - 5 AS INTEGER )
----
-50

query I rowsort
SELECT 95 + + - 20 + - - 19 + - 45 * 2
----
4

query I rowsort
SELECT COALESCE ( - 86, 55 * ( 49 * 79 ) ) + 56 AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2431
SELECT 79 AS col2, 41 + COALESCE ( 91, CAST( 61 AS SIGNED ) * 4 - 68 * - COUNT( * ) ) - + 51 AS col2
----
79
81

skipif mysql # not compatible
query II rowsort label-2431
SELECT 79 AS col2, 41 + COALESCE ( 91, CAST ( 61 AS INTEGER ) * 4 - 68 * - COUNT ( * ) ) - + 51 AS col2
----
79
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT ALL ( + - SUM( 10 ) ) + 55 * 40 AS col1
----
2190

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL ( + - SUM ( 10 ) ) + 55 * 40 AS col1
----
2190

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT - 17 * - - COUNT( + - 86 ) * - 26 + 70
----
512

skipif mysql # not compatible
query I rowsort label-2433
SELECT - 17 * - - COUNT ( + - 86 ) * - 26 + 70
----
512

query I rowsort
SELECT 14 * - - 69 AS col1
----
966

query I rowsort
SELECT ALL ( 70 ) - + 88 * - 7
----
686

query I rowsort
SELECT ALL 32 * 58
----
1856

onlyif mysql # aggregate syntax: 
query II rowsort label-2437
SELECT DISTINCT - COUNT( * ) col0, - 18 + SUM( ALL + 38 )
----
-1
20

skipif mysql # not compatible
query II rowsort label-2437
SELECT DISTINCT - COUNT ( * ) col0, - 18 + SUM ( ALL + 38 )
----
-1
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT + 84 * 6 + - CASE 54 WHEN + 69 THEN 51 WHEN COUNT( ALL - 28 ) + 99 THEN NULL END + + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT + 84 * 6 + - CASE 54 WHEN + 69 THEN 51 WHEN COUNT ( ALL - 28 ) + 99 THEN NULL END + + 58 AS col0
----
NULL

query I rowsort
SELECT 75 + + 92
----
167

query I rowsort
SELECT ALL 81 * - 45 AS col1
----
-3645

query I rowsort
SELECT 22 * + - 64
----
-1408

query I rowsort
SELECT - 20 * + + 1 + - - 50 - + 63
----
-33

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

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

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

query I rowsort
SELECT ALL 47 * - 47
----
-2209

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT - 5 * + + 69 * COUNT( * ) AS col0
----
-345

skipif mysql # not compatible
query I rowsort label-2448
SELECT - 5 * + + 69 * COUNT ( * ) AS col0
----
-345

query II rowsort
SELECT + 40 AS col1, 33 AS col0
----
40
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2450
SELECT 24 DIV - CAST( + - 80 AS SIGNED ) * 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2450
SELECT 24 / - CAST ( + - 80 AS INTEGER ) * 89 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT - - COUNT( * ) * - - 62 + 11 + COUNT( * ) * ( 9 ) + - 79
----
3

skipif mysql # not compatible
query I rowsort label-2452
SELECT - - COUNT ( * ) * - - 62 + 11 + COUNT ( * ) * ( 9 ) + - 79
----
3

query I rowsort
SELECT NULLIF ( - + 18, 79 - + 75 ) + 99
----
81

query I rowsort
SELECT ALL - + 43 + - 31 + 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL - COUNT( * ) + + 46 * - 37 * + 39
----
-66379

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL - COUNT ( * ) + + 46 * - 37 * + 39
----
-66379

query II rowsort
SELECT - - 62 AS col2, 30
----
62
30

query I rowsort
SELECT ALL + 10 * + 89
----
890

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

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT + 99 + - COUNT ( * ) AS col0
----
98

query II rowsort
SELECT DISTINCT 13, ( - 6 ) AS col0
----
13
-6

query II rowsort
SELECT DISTINCT + 14 AS col2, NULLIF ( 81, + NULLIF ( 44, - 56 * 75 ) )
----
14
81

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

skipif mysql # not compatible
query I rowsort label-2461
SELECT 86 * CAST ( NULL AS INTEGER ) * - 67 AS col0
----
NULL

query I rowsort
SELECT 31 + 8
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT 34 * - - 9 * + MIN( 42 ) col0
----
12852

skipif mysql # not compatible
query I rowsort label-2463
SELECT 34 * - - 9 * + MIN ( 42 ) col0
----
12852

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT 40 + 62 + - COUNT( * ) * 73 * + 68
----
-4862

skipif mysql # not compatible
query I rowsort label-2464
SELECT 40 + 62 + - COUNT ( * ) * 73 * + 68
----
-4862

query I rowsort
SELECT ALL - 2 - - + 87 AS col2
----
85

query I rowsort
SELECT ALL + NULLIF ( + 87, 26 ) - 22 - COALESCE ( + 70, - 86 ) * - 2 * 71
----
10005

query I rowsort
SELECT 24 * + 61 * + ( - + 49 ) AS col1
----
-71736

query I rowsort
SELECT ALL - CASE + - 98 WHEN - 27 THEN NULL ELSE 77 END * + 97
----
-7469

query I rowsort
SELECT DISTINCT 91 * - 91
----
-8281

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

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

query I rowsort
SELECT ALL - 76 * - 82 * + - 16 * 45
----
-4487040

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT NULLIF ( + + 0, + 75 / - 69 / ( + NULLIF ( AVG ( 3 ), 88 ) ) + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2472
SELECT NULLIF ( + + 0, + 75 / - 69 / ( + NULLIF ( AVG ( 3 ), 88 ) ) + COUNT ( * ) ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT - 78 * AVG ( ALL CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT - 78 * AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT NULLIF ( - SUM( 4 ), - 28 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-2474
SELECT NULLIF ( - SUM ( 4 ), - 28 ) AS col0
----
-4

query I rowsort
SELECT + COALESCE ( + 4, + 64 + 15 ) AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2476
SELECT ALL 92 DIV + - 34 * + COUNT( * ) AS col0
----
-2

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2477
SELECT ALL + ( 16 ), - 60 * - + COUNT( * ) + + COUNT( * ) * + 74 AS col1
----
16
134

skipif mysql # not compatible
query II rowsort label-2477
SELECT ALL + ( 16 ), - 60 * - + COUNT ( * ) + + COUNT ( * ) * + 74 AS col1
----
16
134

query I rowsort
SELECT DISTINCT 46 * + 56 + 67
----
2643

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL ( + 66 ) * - 29 + + CASE COUNT( DISTINCT + ( + 12 ) ) WHEN - 29 * 30 THEN NULL ELSE MAX( DISTINCT - 2 ) - 32 END col1
----
-1948

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL ( + 66 ) * - 29 + + CASE COUNT ( DISTINCT + ( + 12 ) ) WHEN - 29 * 30 THEN NULL ELSE MAX ( DISTINCT - 2 ) - 32 END col1
----
-1948

query I rowsort
SELECT - + 91 + + ( 47 )
----
-44

query I rowsort
SELECT ALL + 74 * COALESCE ( - 37, - 25 ) - NULLIF ( - 99, + 7 ) + 82 AS col2
----
-2557

query I rowsort
SELECT + + 9 * 32 + 29 + + 54
----
371

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT ALL COUNT( * ) * + 50 - + COUNT( * ) + + + 99 AS col1
----
148

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL COUNT ( * ) * + 50 - + COUNT ( * ) + + + 99 AS col1
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2484
SELECT DISTINCT - CASE COUNT( + 6 ) WHEN - CAST( NULL AS SIGNED ) THEN COUNT( * ) END * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT - CASE COUNT ( + 6 ) WHEN - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) END * 99
----
NULL

query II rowsort
SELECT + ( - 24 ) AS col0, 33 AS col0
----
-24
33

query I rowsort
SELECT DISTINCT - 28 + 9
----
-19

query I rowsort
SELECT ALL - 70 + - - 40
----
-30

query I rowsort
SELECT DISTINCT 66 * 26 * - + 35 * 1
----
-60060

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT - 32 * COUNT( * ) + - + 3 + + COUNT( * ) * 70 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-2489
SELECT - 32 * COUNT ( * ) + - + 3 + + COUNT ( * ) * 70 AS col2
----
35

query I rowsort
SELECT ALL + 89 + - - 35 AS col0
----
124

query I rowsort
SELECT ALL - 20 + - 48 + + 84 AS col0
----
16

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

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

query I rowsort
SELECT + 92 * 22
----
2024

query I rowsort
SELECT - 57 + + 64 AS col0
----
7

query I rowsort
SELECT ALL + COALESCE ( - + 45, + 77 ) * + 8
----
-360

query II rowsort
SELECT 4 AS col0, 36 AS col1
----
4
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT DISTINCT ( - - ( + - 11 ) ) * 61 * - 84 * 67 + - COUNT( 84 ) * 57
----
3776331

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT ( - - ( + - 11 ) ) * 61 * - 84 * 67 + - COUNT ( 84 ) * 57
----
3776331

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT ALL COUNT( 33 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL COUNT ( 33 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2500
SELECT + 26 + - - 6 - + + 31 * + + COUNT( * ) * + COUNT( * ) DIV + 59 + 31 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2500
SELECT + 26 + - - 6 - + + 31 * + + COUNT ( * ) * + COUNT ( * ) / + 59 + 31 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT - 91 * SUM( DISTINCT + 8 ) * - + 81 AS col0
----
58968

skipif mysql # not compatible
query I rowsort label-2501
SELECT - 91 * SUM ( DISTINCT + 8 ) * - + 81 AS col0
----
58968

query I rowsort
SELECT + 2 + + ( 38 ) - - 59 AS col0
----
99

query II rowsort
SELECT ALL NULLIF ( 3, 76 ) col2, 37 AS col2
----
3
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2504
SELECT - 94, + COUNT( * ) col0
----
-94
1

skipif mysql # not compatible
query II rowsort label-2504
SELECT - 94, + COUNT ( * ) col0
----
-94
1

query I rowsort
SELECT - ( 25 ) * 50 + + - 60 AS col2
----
-1310

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT ALL + SUM( DISTINCT - 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL + SUM ( DISTINCT - 69 ) AS col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2508
SELECT DISTINCT 14 DIV - + 53 + - - 14 + ( + + COUNT( * ) )
----
15

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT 14 / - + 53 + - - 14 + ( + + COUNT ( * ) )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2509
SELECT ALL + MAX( 4 ) DIV - ( 60 ) * 13 DIV + 23 + 40
----
40

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL + MAX ( 4 ) / - ( 60 ) * 13 / + 23 + 40
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2510
SELECT - 12, 2 DIV - COUNT( * ) AS col0
----
-12
-2

skipif mysql # not compatible
query II rowsort label-2510
SELECT - 12, 2 / - COUNT ( * ) AS col0
----
-12
-2

query I rowsort
SELECT DISTINCT + 84 * - 63 AS col1
----
-5292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT ALL - 27 / - CAST( NULL AS SIGNED ) * + - 71 + + 3 + + 35 * + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL - 27 / - CAST ( NULL AS INTEGER ) * + - 71 + + 3 + + 35 * + 35
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2513
SELECT DISTINCT COUNT( * ) DIV + - 31 - - 58 - 73 + - 63
----
-78

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT COUNT ( * ) / + - 31 - - 58 - 73 + - 63
----
-78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2514
SELECT - 26 DIV CAST( - 17 AS SIGNED ) + - + 25
----
-24

skipif mysql # not compatible
query I rowsort label-2514
SELECT - 26 / CAST ( - 17 AS INTEGER ) + - + 25
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT - AVG ( + 55 ) * + 46 + - + CASE 4 WHEN + 45 THEN NULL WHEN 86 THEN + 24 END / - ( SUM( 70 ) * + 16 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT - AVG ( + 55 ) * + 46 + - + CASE 4 WHEN + 45 THEN NULL WHEN 86 THEN + 24 END / - ( SUM ( 70 ) * + 16 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT + COUNT( * ) + + 68 * + MIN( - + 46 ) AS col2
----
-3127

skipif mysql # not compatible
query I rowsort label-2516
SELECT + COUNT ( * ) + + 68 * + MIN ( - + 46 ) AS col2
----
-3127

onlyif mysql # aggregate syntax: 
query II rowsort label-2517
SELECT + 86 AS col1, COUNT( * ) + + 11
----
86
12

skipif mysql # not compatible
query II rowsort label-2517
SELECT + 86 AS col1, COUNT ( * ) + + 11
----
86
12

onlyif mysql # DIV for integer division: 
query II rowsort label-2518
SELECT DISTINCT + 41 AS col2, 72 * - COALESCE ( - + 47, + + 57, + 56 DIV 29 - - 70 ) AS col1
----
41
3384

skipif mysql # not compatible
query II rowsort label-2518
SELECT DISTINCT + 41 AS col2, 72 * - COALESCE ( - + 47, + + 57, + 56 / 29 - - 70 ) AS col1
----
41
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT DISTINCT 22 * + SUM( - 93 ) + 46
----
-2000

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT 22 * + SUM ( - 93 ) + 46
----
-2000

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT ALL + NULLIF ( - CASE COUNT( * ) WHEN + 22 THEN 71 + + 21 * - ( 56 * + 93 ) END, 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL + NULLIF ( - CASE COUNT ( * ) WHEN + 22 THEN 71 + + 21 * - ( 56 * + 93 ) END, 95 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT + + COUNT( * ) * + + SUM( + ( - 91 ) ) + - + 81 + - MIN( - 10 ) * + 31 * - NULLIF ( - 68, - 31 / SUM( ALL 59 ) ) AS col2
----
20908

skipif mysql # not compatible
query I rowsort label-2521
SELECT + + COUNT ( * ) * + + SUM ( + ( - 91 ) ) + - + 81 + - MIN ( - 10 ) * + 31 * - NULLIF ( - 68, - 31 / SUM ( ALL 59 ) ) AS col2
----
20908

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

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + + + 3 + COUNT ( * ) + + + 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2523
SELECT 87, CASE - + 78 WHEN - ( - + 87 ) + - 69 THEN ( - MAX( 76 ) ) WHEN CASE - 20 WHEN - 21 THEN 69 ELSE NULL END + - 81 THEN + 60 * + SUM( 8 ) END + + SUM( ALL 83 + 89 ) AS col2
----
87
NULL

skipif mysql # not compatible
query II rowsort label-2523
SELECT 87, CASE - + 78 WHEN - ( - + 87 ) + - 69 THEN ( - MAX ( 76 ) ) WHEN CASE - 20 WHEN - 21 THEN 69 ELSE NULL END + - 81 THEN + 60 * + SUM ( 8 ) END + + SUM ( ALL 83 + 89 ) AS col2
----
87
NULL

query I rowsort
SELECT + 98 * + 25 + - ( - 42 ) col0
----
2492

query I rowsort
SELECT ALL CASE - + 12 WHEN 96 * + - 14 THEN NULL WHEN - 42 / - 5 THEN + 22 END / - 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT - 42 * - 49 * + 81 + - SUM( DISTINCT 81 ) + - COUNT( * )
----
166616

skipif mysql # not compatible
query I rowsort label-2526
SELECT - 42 * - 49 * + 81 + - SUM ( DISTINCT 81 ) + - COUNT ( * )
----
166616

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT + 12 * - COUNT( * ) - + 96
----
-108

skipif mysql # not compatible
query I rowsort label-2527
SELECT + 12 * - COUNT ( * ) - + 96
----
-108

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

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

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

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

query I rowsort
SELECT + 69 * - 68 * - 77
----
361284

query I rowsort
SELECT + 62 + - 22
----
40

query II rowsort
SELECT 76 AS col0, 91
----
76
91

query II rowsort
SELECT DISTINCT 22 AS col1, 45 * 8 * 43 AS col0
----
22
15480

onlyif mysql # DIV for integer division: 
query I rowsort label-2534
SELECT ALL COALESCE ( - 39, - + 27 + ( 91 ), + + 66 DIV 0 ) * 25
----
-975

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL COALESCE ( - 39, - + 27 + ( 91 ), + + 66 / 0 ) * 25
----
-975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2535
SELECT COALESCE ( - + 42, + 88 * - - CASE + COUNT( * ) WHEN - 89 THEN 51 WHEN CASE CAST( NULL AS SIGNED ) WHEN 48 THEN - 95 ELSE 66 * ( 31 ) END + 73 THEN - 90 END, - 42 ) + + 24
----
-18

skipif mysql # not compatible
query I rowsort label-2535
SELECT COALESCE ( - + 42, + 88 * - - CASE + COUNT ( * ) WHEN - 89 THEN 51 WHEN CASE CAST ( NULL AS INTEGER ) WHEN 48 THEN - 95 ELSE 66 * ( 31 ) END + 73 THEN - 90 END, - 42 ) + + 24
----
-18

query II rowsort
SELECT - 81 col0, + 82 AS col0
----
-81
82

query I rowsort
SELECT NULLIF ( + - 29, + - 46 ) * - ( - 76 )
----
-2204

query I rowsort
SELECT 65 + - ( + 45 ) + 34
----
54

query II rowsort
SELECT ALL 37, - 33 AS col2
----
37
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2540
SELECT 76, + 20 + + COUNT( * ) + - - 27 AS col0
----
76
48

skipif mysql # not compatible
query II rowsort label-2540
SELECT 76, + 20 + + COUNT ( * ) + - - 27 AS col0
----
76
48

query I rowsort
SELECT 75 + + + 34 AS col1
----
109

query I rowsort
SELECT ALL + 13 + + 20 + - 34
----
-1

query I rowsort
SELECT DISTINCT - 95 + + + 22 * 75 AS col1
----
1555

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

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

query II rowsort
SELECT DISTINCT 54, 96 * - 58 * 42 AS col0
----
54
-233856

query I rowsort
SELECT ALL 31 + + 93 AS col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT MIN( - 6 ) * + 80 * COUNT( * ) AS col1
----
-480

skipif mysql # not compatible
query I rowsort label-2547
SELECT MIN ( - 6 ) * + 80 * COUNT ( * ) AS col1
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL COALESCE ( - 37, - COUNT( * ), - 79 ) + - - 5
----
-32

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL COALESCE ( - 37, - COUNT ( * ), - 79 ) + - - 5
----
-32

query I rowsort
SELECT 99 * - 97
----
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT - NULLIF ( + 20, + 14 + - + 95 + - + COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-2550
SELECT - NULLIF ( + 20, + 14 + - + 95 + - + COUNT ( * ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT ALL + COUNT( * ) * - - 29 * + + 45 AS col2
----
1305

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL + COUNT ( * ) * - - 29 * + + 45 AS col2
----
1305

onlyif mysql # aggregate syntax: 
query II rowsort label-2552
SELECT + SUM( NULLIF ( - 44, 73 ) ), 6 AS col2
----
-44
6

skipif mysql # not compatible
query II rowsort label-2552
SELECT + SUM ( NULLIF ( - 44, 73 ) ), 6 AS col2
----
-44
6

query I rowsort
SELECT + COALESCE ( - 86, 25 + + 77 ) col2
----
-86

query I rowsort
SELECT + 93 * - - 67 col2
----
6231

onlyif mysql # DIV for integer division: 
query I rowsort label-2555
SELECT + 16 DIV 70 * ( - - 61 ) * 37 - - 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-2555
SELECT + 16 / 70 * ( - - 61 ) * 37 - - 26 AS col1
----
26

query III rowsort
SELECT DISTINCT - 9 col0, 63 * ( - - 78 ) AS col2, - + 67
----
-9
4914
-67

query I rowsort
SELECT 68 - 25
----
43

query I rowsort
SELECT ALL 16 + - - 33
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2559
SELECT - 60 DIV + 7 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-2559
SELECT - 60 / + 7 AS col2
----
-8

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

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

query I rowsort
SELECT - ( + 75 ) + - 99
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL + + COUNT( * ) * + - 96 * - - 12 * - 21 AS col0
----
24192

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL + + COUNT ( * ) * + - 96 * - - 12 * - 21 AS col0
----
24192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT CAST( NULL AS SIGNED ) * + 80 * - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT CAST ( NULL AS INTEGER ) * + 80 * - 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2564
SELECT 98 * + MIN( - + 35 ) + 69 AS col2, - 65 AS col1
----
-3361
-65

skipif mysql # not compatible
query II rowsort label-2564
SELECT 98 * + MIN ( - + 35 ) + 69 AS col2, - 65 AS col1
----
-3361
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2565
SELECT CASE 73 WHEN + COUNT( * ) THEN NULL WHEN - + 78 * + - ( AVG ( ALL 91 ) ) / CAST( NULL AS SIGNED ) THEN 33 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2565
SELECT CASE 73 WHEN + COUNT ( * ) THEN NULL WHEN - + 78 * + - ( AVG ( ALL 91 ) ) / CAST ( NULL AS INTEGER ) THEN 33 END AS col1
----
NULL

query I rowsort
SELECT ALL - 87 - - 30 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT + + NULLIF ( + COALESCE ( 17, + + COUNT( * ), - 14 ), - 33 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2567
SELECT + + NULLIF ( + COALESCE ( 17, + + COUNT ( * ), - 14 ), - 33 ) AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2568
SELECT DISTINCT - CASE - 21 WHEN + 73 THEN NULL WHEN + - 83 THEN + CAST( 10 AS SIGNED ) + 92 END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT - CASE - 21 WHEN + 73 THEN NULL WHEN + - 83 THEN + CAST ( 10 AS INTEGER ) + 92 END * COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT 34 + + ( 78 ) AS col0, + 0
----
112
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2570
SELECT 40 DIV - 39 AS col1, 11 * - 32 + - 60
----
-1
-412

skipif mysql # not compatible
query II rowsort label-2570
SELECT 40 / - 39 AS col1, 11 * - 32 + - 60
----
-1
-412

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2571
SELECT ( - 61 ) + - + 61 * + - 37 + 46 - - + CAST( NULL AS DECIMAL ) * + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT ( - 61 ) + - + 61 * + - 37 + 46 - - + CAST ( NULL AS REAL ) * + 22 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 67 + + + ( 21 )
----
88

query I rowsort
SELECT DISTINCT 72 * - 45 * + + 74 AS col0
----
-239760

query I rowsort
SELECT 14 + + 27 - + 19 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT + 88 / - CASE - 98 WHEN - 94 + + COUNT( * ) THEN + 47 ELSE NULL END + - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT + 88 / - CASE - 98 WHEN - 94 + + COUNT ( * ) THEN + 47 ELSE NULL END + - 76 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2577
SELECT ALL - 11 * COUNT( * ) - + 54 * 27 - - + CAST( - 50 AS SIGNED ) + - COALESCE ( 18, COUNT( * ) ) * + SUM( 91 )
----
-3157

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL - 11 * COUNT ( * ) - + 54 * 27 - - + CAST ( - 50 AS INTEGER ) + - COALESCE ( 18, COUNT ( * ) ) * + SUM ( 91 )
----
-3157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2578
SELECT ALL CAST( NULL AS SIGNED ) / + 95 + - 37 + - 20 * + + 45 + + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL CAST ( NULL AS INTEGER ) / + 95 + - 37 + - 20 * + + 45 + + 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL - + COUNT( * ) * - 28 - - 27
----
55

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - + COUNT ( * ) * - 28 - - 27
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2580
SELECT ALL + CAST( + 43 AS SIGNED ) * + 38
----
1634

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL + CAST ( + 43 AS INTEGER ) * + 38
----
1634

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT ALL - MAX( ALL - ( ( - 73 ) ) ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL - MAX ( ALL - ( ( - 73 ) ) ) AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2582
SELECT - CAST( 85 AS SIGNED ) * - MAX( - 31 )
----
-2635

skipif mysql # not compatible
query I rowsort label-2582
SELECT - CAST ( 85 AS INTEGER ) * - MAX ( - 31 )
----
-2635

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT DISTINCT 45 * + COUNT( * ) * + 77 * + - COUNT( * ) AS col2
----
-3465

skipif mysql # not compatible
query I rowsort label-2583
SELECT DISTINCT 45 * + COUNT ( * ) * + 77 * + - COUNT ( * ) AS col2
----
-3465

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT ALL + + 30 * - - CASE - - 28 WHEN - 79 THEN NULL WHEN - + 81 THEN - CASE + NULLIF ( 90, ( COUNT( * ) ) ) WHEN + ( 82 ) THEN NULL WHEN - 16 * 0 THEN 19 + - 38 WHEN - 17 THEN 36 - + 62 END - - 31 WHEN ( 16 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL + + 30 * - - CASE - - 28 WHEN - 79 THEN NULL WHEN - + 81 THEN - CASE + NULLIF ( 90, ( COUNT ( * ) ) ) WHEN + ( 82 ) THEN NULL WHEN - 16 * 0 THEN 19 + - 38 WHEN - 17 THEN 36 - + 62 END - - 31 WHEN ( 16 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2585
SELECT + COUNT( * ) + - - COUNT( * ) AS col2, 58 * + - ( - + ( NULLIF ( - 92, 44 ) ) )
----
2
-5336

skipif mysql # not compatible
query II rowsort label-2585
SELECT + COUNT ( * ) + - - COUNT ( * ) AS col2, 58 * + - ( - + ( NULLIF ( - 92, 44 ) ) )
----
2
-5336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2586
SELECT ALL - - CAST( - ( 40 ) AS SIGNED ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL - - CAST ( - ( 40 ) AS INTEGER ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT - - COALESCE ( 82, + 75 + 57 ) * NULLIF ( + + 57, 44 ) + ( 27 - COUNT( * ) )
----
4700

skipif mysql # not compatible
query I rowsort label-2587
SELECT - - COALESCE ( 82, + 75 + 57 ) * NULLIF ( + + 57, 44 ) + ( 27 - COUNT ( * ) )
----
4700

query I rowsort
SELECT DISTINCT - 30 * + 63
----
-1890

query I rowsort
SELECT - 98 * - 73 AS col0
----
7154

query I rowsort
SELECT 21 * - 53 - - NULLIF ( + + 34, 3 * + + 89 + + 14 * + 91 )
----
-1079

query I rowsort
SELECT + 27 * - 10
----
-270

query II rowsort
SELECT + 68, 38 AS col0
----
68
38

query I rowsort
SELECT DISTINCT - COALESCE ( + + 16, NULLIF ( - 85, 99 ) ) + - 92 + + 96 * + + 38 AS col0
----
3540

query I rowsort
SELECT - 62 * + + 23
----
-1426

query I rowsort
SELECT - 68 * + 83 AS col0
----
-5644

query I rowsort
SELECT ALL - 13 + - ( - 93 ) * - 58
----
-5407

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT ALL + 58 + + ( + + SUM( DISTINCT + + 1 ) )
----
59

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL + 58 + + ( + + SUM ( DISTINCT + + 1 ) )
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL - COUNT( * ) * 45 * + - COALESCE ( - 45, 32 + + 18 + + + 59 * + 76 ) AS col1
----
-2025

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL - COUNT ( * ) * 45 * + - COALESCE ( - 45, 32 + + 18 + + + 59 * + 76 ) AS col1
----
-2025

onlyif mysql # aggregate syntax: 
query II rowsort label-2600
SELECT ALL - 13 + 68 + + 59, ( COUNT( * ) ) AS col0
----
114
1

skipif mysql # not compatible
query II rowsort label-2600
SELECT ALL - 13 + 68 + + 59, ( COUNT ( * ) ) AS col0
----
114
1

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

skipif mysql # not compatible
query I rowsort label-2601
SELECT DISTINCT 79 / - + COUNT ( * )
----
-79

query I rowsort
SELECT ALL - 95 + + 11 * - CASE + ( - - 47 ) WHEN + 83 THEN - 73 ELSE NULL END
----
NULL

query I rowsort
SELECT - 96 * + + 15 AS col0
----
-1440

onlyif mysql # DIV for integer division: 
query I rowsort label-2604
SELECT - 13 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-2604
SELECT - 13 / - 70
----
0

query I rowsort
SELECT + NULLIF ( - 88, - 24 ) + - + 27 + - + CASE + 87 WHEN - 23 / 81 THEN + COALESCE ( 65, 78 ) + 66 END / 67 / 55 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2606
SELECT - 2 col0, COALESCE ( - MAX( DISTINCT 19 ), + MIN( ALL + - CAST( NULL AS SIGNED ) ) - - + NULLIF ( CASE COUNT( * ) WHEN 41 THEN - 79 * + CAST( NULL AS SIGNED ) END, + NULLIF ( - 90, + COUNT( ALL 4 ) * ( - COALESCE ( - COUNT( * ), + 87 ) ) ) ), 20 ) / NULLIF ( + CASE - 91 WHEN - 19 THEN NULL ELSE + 79 END / - CASE + 42 / + 93 - - 72 WHEN MIN( ALL 78 ) + + 12 THEN NULL WHEN - 25 THEN + 11 - - 45 ELSE NULL END, - 71 + + 96 ) AS col1
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-2606
SELECT - 2 col0, COALESCE ( - MAX ( DISTINCT 19 ), + MIN ( ALL + - CAST ( NULL AS INTEGER ) ) - - + NULLIF ( CASE COUNT ( * ) WHEN 41 THEN - 79 * + CAST ( NULL AS INTEGER ) END, + NULLIF ( - 90, + COUNT ( ALL 4 ) * ( - COALESCE ( - COUNT ( * ), + 87 ) ) ) ), 20 ) / NULLIF ( + CASE - 91 WHEN - 19 THEN NULL ELSE + 79 END / - CASE + 42 / + 93 - - 72 WHEN MIN ( ALL 78 ) + + 12 THEN NULL WHEN - 25 THEN + 11 - - 45 ELSE NULL END, - 71 + + 96 ) AS col1
----
-2
NULL

query I rowsort
SELECT + 95 + - - 85 col2
----
180

query I rowsort
SELECT + 62 + - 47 + ( + + ( - 57 ) )
----
-42

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2610
SELECT + 19 + + - 98 + + 22 * - NULLIF ( - 42, - CAST( NULLIF ( + 43, - 41 + + COUNT( * ) ) AS SIGNED ) ) + - 62
----
783

skipif mysql # not compatible
query I rowsort label-2610
SELECT + 19 + + - 98 + + 22 * - NULLIF ( - 42, - CAST ( NULLIF ( + 43, - 41 + + COUNT ( * ) ) AS INTEGER ) ) + - 62
----
783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2611
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + ( + 74 ) * + 32 + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + ( + 74 ) * + 32 + - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT ALL MIN( ALL - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL MIN ( ALL - 29 )
----
-29

query II rowsort
SELECT - 4 AS col2, - 5 * - ( + - 99 )
----
-4
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT CASE - COUNT( * ) WHEN - + CASE + 66 WHEN + - CASE + 35 WHEN + 61 THEN 39 ELSE 37 * - 61 END * + 59 THEN 37 * - 58 END THEN NULL WHEN - 91 + 62 THEN 21 WHEN 15 * MAX( DISTINCT - 28 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2614
SELECT CASE - COUNT ( * ) WHEN - + CASE + 66 WHEN + - CASE + 35 WHEN + 61 THEN 39 ELSE 37 * - 61 END * + 59 THEN 37 * - 58 END THEN NULL WHEN - 91 + 62 THEN 21 WHEN 15 * MAX ( DISTINCT - 28 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2615
SELECT + 8 * + SUM( 58 ), 72 AS col2
----
464
72

skipif mysql # not compatible
query II rowsort label-2615
SELECT + 8 * + SUM ( 58 ), 72 AS col2
----
464
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2616
SELECT + 17 DIV - 66 + + 51
----
51

skipif mysql # not compatible
query I rowsort label-2616
SELECT + 17 / - 66 + + 51
----
51

query II rowsort
SELECT ALL + - 61 AS col0, + 41 + + ( - - ( + 95 ) ) AS col0
----
-61
136

onlyif mysql # DIV for integer division: 
query II rowsort label-2618
SELECT ALL + 98, - 80 DIV - + 10 AS col0
----
98
8

skipif mysql # not compatible
query II rowsort label-2618
SELECT ALL + 98, - 80 / - + 10 AS col0
----
98
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2619
SELECT + + 90 - 13 DIV - 87 col2
----
90

skipif mysql # not compatible
query I rowsort label-2619
SELECT + + 90 - 13 / - 87 col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2620
SELECT DISTINCT 23 DIV - 71 + + COUNT( * ) * MAX( ALL - 82 ) - + - 78 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT 23 / - 71 + + COUNT ( * ) * MAX ( ALL - 82 ) - + - 78 AS col0
----
-4

query I rowsort
SELECT + + ( - + ( 64 ) ) * + 2
----
-128

onlyif mysql # DIV for integer division: 
query III rowsort label-2622
SELECT + 10 + - 15 DIV - + 48 + + - 32 AS col2, + 91 AS col2, - + 92 AS col2
----
-22
91
-92

skipif mysql # not compatible
query III rowsort label-2622
SELECT + 10 + - 15 / - + 48 + + - 32 AS col2, + 91 AS col2, - + 92 AS col2
----
-22
91
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2623
SELECT + CAST( + 40 AS SIGNED ) AS col0, ( + COUNT( * ) )
----
40
1

skipif mysql # not compatible
query II rowsort label-2623
SELECT + CAST ( + 40 AS INTEGER ) AS col0, ( + COUNT ( * ) )
----
40
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ALL NULLIF ( - 93, + - 15 * - MIN( + - 91 ) * NULLIF ( + AVG ( DISTINCT - 85 ), 98 - 29 ) * COUNT( * ) ) * + 77 AS col2
----
-7161

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL NULLIF ( - 93, + - 15 * - MIN ( + - 91 ) * NULLIF ( + AVG ( DISTINCT - 85 ), 98 - 29 ) * COUNT ( * ) ) * + 77 AS col2
----
-7161

query I rowsort
SELECT ALL 98 * - - 89 AS col2
----
8722

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT CASE - COUNT( * ) WHEN + 4 THEN - + 36 * + 57 - 44 ELSE 23 END AS col1
----
23

skipif mysql # not compatible
query I rowsort label-2626
SELECT CASE - COUNT ( * ) WHEN + 4 THEN - + 36 * + 57 - 44 ELSE 23 END AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT - COUNT( * ) * + + 28 + - - 72
----
44

skipif mysql # not compatible
query I rowsort label-2627
SELECT - COUNT ( * ) * + + 28 + - - 72
----
44

query I rowsort
SELECT COALESCE ( + 72, + 29 )
----
72

query I rowsort
SELECT ALL 36 * - - NULLIF ( - 34, + - 62 ) + - 71 + 85
----
-1210

query I rowsort
SELECT DISTINCT + NULLIF ( - 86, + + 74 ) AS col1
----
-86

query I rowsort
SELECT ALL 73 * + + 95 + - 49 + + 16
----
6902

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT DISTINCT COUNT( * ) * - 2 + - 94 + - 31
----
-127

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT COUNT ( * ) * - 2 + - 94 + - 31
----
-127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2633
SELECT + NULLIF ( + 51, - ( - 83 ) * - CAST( NULL AS SIGNED ) / + ( - 93 ) - - 90 - + - 58 + - 27 * + 25 ) + COALESCE ( 36, + 10 ) * 93
----
3399

skipif mysql # not compatible
query I rowsort label-2633
SELECT + NULLIF ( + 51, - ( - 83 ) * - CAST ( NULL AS INTEGER ) / + ( - 93 ) - - 90 - + - 58 + - 27 * + 25 ) + COALESCE ( 36, + 10 ) * 93
----
3399

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT + 73 * + NULLIF ( + - 50, - 16 * + + 39 - + 74 + 19 + + MIN( 69 ) + 47 * COALESCE ( 9, 53 ) ) * 47
----
-171550

skipif mysql # not compatible
query I rowsort label-2634
SELECT + 73 * + NULLIF ( + - 50, - 16 * + + 39 - + 74 + 19 + + MIN ( 69 ) + 47 * COALESCE ( 9, 53 ) ) * 47
----
-171550

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL - 91 * NULLIF ( + - ( - COUNT( * ) ), + 18 - - 70 + + 38 * + 68 * + + COUNT( * ) - 63 * ( COUNT( * ) ) ) * + 54
----
-4914

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL - 91 * NULLIF ( + - ( - COUNT ( * ) ), + 18 - - 70 + + 38 * + 68 * + + COUNT ( * ) - 63 * ( COUNT ( * ) ) ) * + 54
----
-4914

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT MIN( DISTINCT - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-2636
SELECT MIN ( DISTINCT - 98 )
----
-98

query I rowsort
SELECT DISTINCT - 82 - + 10 AS col2
----
-92

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

query II rowsort
SELECT - 90 * - 63 AS col1, - 20 * - 4 AS col0
----
5670
80

query I rowsort
SELECT ALL + NULLIF ( + + ( 24 ), - 66 ) * + 31 + + - 12 AS col2
----
732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2641
SELECT - + CAST( ( + NULLIF ( + 65, - 41 + + 79 - + 61 / + 80 ) ) AS SIGNED ) + - 67 + CAST( NULL AS SIGNED ) * 10 * - 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT - + CAST ( ( + NULLIF ( + 65, - 41 + + 79 - + 61 / + 80 ) ) AS INTEGER ) + - 67 + CAST ( NULL AS INTEGER ) * 10 * - 42 AS col0
----
NULL

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

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

query I rowsort
SELECT - - 21 + + 86 AS col0
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-2644
SELECT DISTINCT + 24 DIV 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT + 24 / 56 AS col2
----
0

query I rowsort
SELECT - 79 + + 63
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2646
SELECT + COUNT( ALL - 16 ) DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-2646
SELECT + COUNT ( ALL - 16 ) / - 49
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2647
SELECT ALL + - 50 DIV + + 62, 30 AS col0
----
0
30

skipif mysql # not compatible
query II rowsort label-2647
SELECT ALL + - 50 / + + 62, 30 AS col0
----
0
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT CASE + - COUNT( * ) WHEN 95 - 99 + + ( - - 53 ) + - 24 THEN NULL ELSE + + COALESCE ( + + 24, - 6 ) * - 30 END AS col0
----
-720

skipif mysql # not compatible
query I rowsort label-2649
SELECT CASE + - COUNT ( * ) WHEN 95 - 99 + + ( - - 53 ) + - 24 THEN NULL ELSE + + COALESCE ( + + 24, - 6 ) * - 30 END AS col0
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT ALL + COUNT( * ) * 98 + - 23
----
75

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL + COUNT ( * ) * 98 + - 23
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2651
SELECT - + 94 + 83 AS col1, COUNT( * )
----
-11
1

skipif mysql # not compatible
query II rowsort label-2651
SELECT - + 94 + 83 AS col1, COUNT ( * )
----
-11
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT + 42 + CASE - 83 WHEN + CAST( - 73 AS SIGNED ) + + + AVG ( ALL + 88 ) * 85 THEN - 74 + 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2652
SELECT + 42 + CASE - 83 WHEN + CAST ( - 73 AS INTEGER ) + + + AVG ( ALL + 88 ) * 85 THEN - 74 + 44 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT DISTINCT + 6 + + 95 - + - COUNT( * ) + COUNT( * ) * - + 82 * - 81 AS col0
----
6744

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT + 6 + + 95 - + - COUNT ( * ) + COUNT ( * ) * - + 82 * - 81 AS col0
----
6744

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT ALL COUNT( * ) + + 98 - 39 + + 49 * - 53 col0
----
-2537

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL COUNT ( * ) + + 98 - 39 + + 49 * - 53 col0
----
-2537

query I rowsort
SELECT 24 * + + 69
----
1656

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT + NULLIF ( - 93, - 37 * + - 42 + + CASE 17 WHEN 34 THEN - - 8 WHEN + COALESCE ( 96, - ( - 63 ) / 56 ) THEN NULL WHEN 33 THEN NULL WHEN COALESCE ( ( COUNT( * ) ), 37 ) * - 67 THEN NULL END ) * 36 + 67
----
-3281

skipif mysql # not compatible
query I rowsort label-2656
SELECT + NULLIF ( - 93, - 37 * + - 42 + + CASE 17 WHEN 34 THEN - - 8 WHEN + COALESCE ( 96, - ( - 63 ) / 56 ) THEN NULL WHEN 33 THEN NULL WHEN COALESCE ( ( COUNT ( * ) ), 37 ) * - 67 THEN NULL END ) * 36 + 67
----
-3281

query II rowsort
SELECT ALL - 98 AS col0, 52 col2
----
-98
52

query I rowsort
SELECT DISTINCT 16 + 69 AS col2
----
85

query I rowsort
SELECT ALL 74 + + 46 + - 74 * - 11 + 63 + + 96
----
1093

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

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

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

query I rowsort
SELECT ALL 68 * - ( ( 41 ) ) AS col2
----
-2788

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2663
SELECT ( + 98 ) DIV + COALESCE ( COUNT( * ), - + 76, + - MIN( DISTINCT + 46 ) )
----
98

skipif mysql # not compatible
query I rowsort label-2663
SELECT ( + 98 ) / + COALESCE ( COUNT ( * ), - + 76, + - MIN ( DISTINCT + 46 ) )
----
98

query I rowsort
SELECT ( + 81 ) * 15
----
1215

query I rowsort
SELECT ALL 8 * + 60 AS col0
----
480

query I rowsort
SELECT ALL 67 * - 61 AS col2
----
-4087

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2668
SELECT 0 + - 47 + - - 75 + - ( 25 ) * 80 * 65 DIV 69 AS col1
----
-1856

skipif mysql # not compatible
query I rowsort label-2668
SELECT 0 + - 47 + - - 75 + - ( 25 ) * 80 * 65 / 69 AS col1
----
-1856

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL + 32 - 83 * + COUNT( * ) + + 33
----
-18

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL + 32 - 83 * + COUNT ( * ) + + 33
----
-18

query II rowsort
SELECT DISTINCT 49 col0, 48 + - CASE 85 WHEN - 62 * + 98 THEN - 84 ELSE NULL END AS col1
----
49
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2671
SELECT DISTINCT 7 * + 67 * - CAST( 92 AS SIGNED ) AS col1
----
-43148

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT 7 * + 67 * - CAST ( 92 AS INTEGER ) AS col1
----
-43148

query I rowsort
SELECT 38 + - 83
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2673
SELECT + 33 + + NULLIF ( - 37, COUNT( * ) ) - - - COUNT( * ) DIV + 16
----
-4

skipif mysql # not compatible
query I rowsort label-2673
SELECT + 33 + + NULLIF ( - 37, COUNT ( * ) ) - - - COUNT ( * ) / + 16
----
-4

query II rowsort
SELECT - + 14 AS col1, + 51
----
-14
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT ALL + NULLIF ( - + 76, ( - COUNT( * ) ) ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL + NULLIF ( - + 76, ( - COUNT ( * ) ) ) AS col2
----
-76

query I rowsort
SELECT DISTINCT COALESCE ( + 33, - 86, + 84 * + 11 + - 0 ) AS col2
----
33

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

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

query I rowsort
SELECT ALL - + 10 + 80 AS col0
----
70

query I rowsort
SELECT - 27 * - 84 + + 33 + + + 85 AS col0
----
2386

query I rowsort
SELECT ALL + 68 + + 0 col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT DISTINCT + NULLIF ( COUNT( * ), 33 - - 66 )
----
1

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT + NULLIF ( COUNT ( * ), 33 - - 66 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2682
SELECT - 40 * - + 51 * + COUNT( * ) + - - CAST( - 66 AS SIGNED ) AS col2
----
1974

skipif mysql # not compatible
query I rowsort label-2682
SELECT - 40 * - + 51 * + COUNT ( * ) + - - CAST ( - 66 AS INTEGER ) AS col2
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT COALESCE ( 57, - - 1 + COUNT( * ) + - 91 ) - - 19
----
76

skipif mysql # not compatible
query I rowsort label-2683
SELECT COALESCE ( 57, - - 1 + COUNT ( * ) + - 91 ) - - 19
----
76

query I rowsort
SELECT - COALESCE ( - 65, + 14, - NULLIF ( + 42, - + 35 / - 68 ) )
----
65

query I rowsort
SELECT ALL + 18 + + 6 - + + 70 AS col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2686
SELECT - + 40 * - COUNT( - + CAST( 85 AS SIGNED ) ) DIV - + 71 * 20 + - - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2686
SELECT - + 40 * - COUNT ( - + CAST ( 85 AS INTEGER ) ) / - + 71 * 20 + - - COUNT ( * ) col1
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2688
SELECT SUM( DISTINCT - - 33 ) * 40 + 80 + - - 3 + - CAST( + 85 AS SIGNED ) col1
----
1318

skipif mysql # not compatible
query I rowsort label-2688
SELECT SUM ( DISTINCT - - 33 ) * 40 + 80 + - - 3 + - CAST ( + 85 AS INTEGER ) col1
----
1318

query II rowsort
SELECT + 56, - NULLIF ( - 29, - 68 + - + 14 ) AS col1
----
56
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT 49 - COUNT( * ) - 17 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2690
SELECT 49 - COUNT ( * ) - 17 AS col1
----
31

query II rowsort
SELECT DISTINCT - 20 AS col0, 10 + + 80 * + 32
----
-20
2570

query I rowsort
SELECT 59 - 61 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2693
SELECT ALL + COUNT( * ) + - COALESCE ( - COUNT( * ), + 43 DIV COUNT( 57 ) * + - 2 - 41, - + 61 + + + 63 DIV - + COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL + COUNT ( * ) + - COALESCE ( - COUNT ( * ), + 43 / COUNT ( 57 ) * + - 2 - 41, - + 61 + + + 63 / - + COUNT ( * ) )
----
2

query I rowsort
SELECT ALL - 63 - 6
----
-69

query I rowsort
SELECT DISTINCT + 9 * - 66 AS col1
----
-594

query I rowsort
SELECT ALL + 91 * + 46 AS col1
----
4186

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2697
SELECT 30 AS col1, COALESCE ( + + 27, + 74 * - 62 + + ( CASE - ( + CAST( + 89 AS SIGNED ) ) WHEN - 8 THEN NULL ELSE 63 END ) + + 7 - 79 ) AS col0
----
30
27

skipif mysql # not compatible
query II rowsort label-2697
SELECT 30 AS col1, COALESCE ( + + 27, + 74 * - 62 + + ( CASE - ( + CAST ( + 89 AS INTEGER ) ) WHEN - 8 THEN NULL ELSE 63 END ) + + 7 - 79 ) AS col0
----
30
27

query I rowsort
SELECT 94 - + 94 * - 4
----
470

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT SUM( + 94 ) * + + 56 AS col1
----
5264

skipif mysql # not compatible
query I rowsort label-2700
SELECT SUM ( + 94 ) * + + 56 AS col1
----
5264

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2701
SELECT CAST( NULL AS DECIMAL ) * SUM( DISTINCT 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT CAST ( NULL AS REAL ) * SUM ( DISTINCT 75 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2702
SELECT DISTINCT CASE - 3 WHEN - 25 THEN NULL WHEN + - 98 - - - SUM( DISTINCT - 94 ) - 90 - + 7 THEN 79 WHEN - AVG ( + 17 ) * 66 THEN 44 ELSE + 30 END DIV 22 col1
----
1

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT CASE - 3 WHEN - 25 THEN NULL WHEN + - 98 - - - SUM ( DISTINCT - 94 ) - 90 - + 7 THEN 79 WHEN - AVG ( + 17 ) * 66 THEN 44 ELSE + 30 END / 22 col1
----
1

query I rowsort
SELECT ALL NULLIF ( + - 58, + 39 * + - ( + + 86 ) ) * - 73 + 64 * + + 97
----
10442

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT ( - 39 ) + - - 44 - COUNT( * ) + - 44 - + - 41 + - + CASE + CASE - 51 WHEN COUNT( * ) THEN + - 94 * 51 WHEN COUNT( * ) THEN - 74 + 58 * 24 END WHEN 95 THEN NULL WHEN + 44 THEN 48 * - COUNT( * ) WHEN ( - 91 ) * - 68 THEN NULL END * 62 / + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT ( - 39 ) + - - 44 - COUNT ( * ) + - 44 - + - 41 + - + CASE + CASE - 51 WHEN COUNT ( * ) THEN + - 94 * 51 WHEN COUNT ( * ) THEN - 74 + 58 * 24 END WHEN 95 THEN NULL WHEN + 44 THEN 48 * - COUNT ( * ) WHEN ( - 91 ) * - 68 THEN NULL END * 62 / + 33 AS col1
----
NULL

query I rowsort
SELECT 99 * + 33
----
3267

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT + 57 * + MAX( DISTINCT - ( + 15 ) ) AS col2
----
-855

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT + 57 * + MAX ( DISTINCT - ( + 15 ) ) AS col2
----
-855

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

skipif mysql # not compatible
query I rowsort label-2708
SELECT + 8 / + 27
----
0

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT CAST( - 94 AS SIGNED ) * + - 25 * + - ( 91 ) AS col0
----
-213850

skipif mysql # not compatible
query I rowsort label-2712
SELECT CAST ( - 94 AS INTEGER ) * + - 25 * + - ( 91 ) AS col0
----
-213850

query I rowsort
SELECT ALL 1 + + + 1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT + NULLIF ( + - 50, + 79 ) + + ( + CASE + - COUNT( * ) WHEN 21 * - CASE + 59 WHEN - 57 THEN + NULLIF ( 21, - COUNT( 55 ) * ( 74 ) + 42 * + 12 ) + 43 END THEN 72 - 26 * 80 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT + NULLIF ( + - 50, + 79 ) + + ( + CASE + - COUNT ( * ) WHEN 21 * - CASE + 59 WHEN - 57 THEN + NULLIF ( 21, - COUNT ( 55 ) * ( 74 ) + 42 * + 12 ) + 43 END THEN 72 - 26 * 80 ELSE NULL END )
----
NULL

query II rowsort
SELECT 0 col2, - ( - CASE + 12 WHEN + 84 * + 5 + - - AVG ( ALL + 25 ) THEN 23 END ) + + - 97
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2716
SELECT ALL 28 + COUNT( * ) * + - CAST( - 43 AS SIGNED ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL 28 + COUNT ( * ) * + - CAST ( - 43 AS INTEGER ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ALL - MIN( DISTINCT - 19 ) + + 17
----
36

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL - MIN ( DISTINCT - 19 ) + + 17
----
36

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2719
SELECT ALL + COUNT( * ) * + - 17, + 85 col2
----
-17
85

skipif mysql # not compatible
query II rowsort label-2719
SELECT ALL + COUNT ( * ) * + - 17, + 85 col2
----
-17
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT ALL - COUNT( * ) + - - ( 55 ) * - + 94
----
-5171

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL - COUNT ( * ) + - - ( 55 ) * - + 94
----
-5171

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT - + 11 - + - SUM( + 99 )
----
88

skipif mysql # not compatible
query I rowsort label-2721
SELECT - + 11 - + - SUM ( + 99 )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2722
SELECT - - NULLIF ( CAST( ( - 45 ) AS SIGNED ), ( + 97 ) ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-2722
SELECT - - NULLIF ( CAST ( ( - 45 ) AS INTEGER ), ( + 97 ) ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-2723
SELECT - - COUNT( * ) + + - 78, - 47 AS col2
----
-77
-47

skipif mysql # not compatible
query II rowsort label-2723
SELECT - - COUNT ( * ) + + - 78, - 47 AS col2
----
-77
-47

query I rowsort
SELECT ALL 17 + - 86 + + - 8 AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2725
SELECT CASE 11 WHEN - 52 * + + MAX( + 87 ) * - 53 - + 81 - - 87 + + 53 / COUNT( * ) + - + 56 + - ( - 32 + + COUNT( * ) ) THEN ( 72 ) WHEN AVG ( ALL CAST( NULL AS SIGNED ) ) + 37 * + 81 THEN 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT CASE 11 WHEN - 52 * + + MAX ( + 87 ) * - 53 - + 81 - - 87 + + 53 / COUNT ( * ) + - + 56 + - ( - 32 + + COUNT ( * ) ) THEN ( 72 ) WHEN AVG ( ALL CAST ( NULL AS INTEGER ) ) + 37 * + 81 THEN 61 ELSE NULL END
----
NULL

query I rowsort
SELECT - + 62 + + + 65 AS col2
----
3

query II rowsort
SELECT ALL + + 78 + - 73 AS col0, - 92 col0
----
5
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2728
SELECT + 0 * + - CAST( 79 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2728
SELECT + 0 * + - CAST ( 79 AS INTEGER ) AS col2
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2730
SELECT 31 DIV + 46 + - ( + - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-2730
SELECT 31 / + 46 + - ( + - 27 )
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2731
SELECT - COALESCE ( 34, ( - 9 ), + - 68 + 35 - + COUNT( * ) * - 30, 64 ) + - - COALESCE ( + 14, + 2, 34 DIV ( + COUNT( * ) ) + - 28 * - COUNT( * ) ) + 55 * 3 AS col2
----
145

skipif mysql # not compatible
query I rowsort label-2731
SELECT - COALESCE ( 34, ( - 9 ), + - 68 + 35 - + COUNT ( * ) * - 30, 64 ) + - - COALESCE ( + 14, + 2, 34 / ( + COUNT ( * ) ) + - 28 * - COUNT ( * ) ) + 55 * 3 AS col2
----
145

query I rowsort
SELECT ALL 67 * - - 71 * - + 86 * - 90 - - - 5 + NULLIF ( 4, + + 19 + - 78 ) AS col2
----
36819179

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2733
SELECT COALESCE ( - 9, + COUNT( * ) DIV 95 - - 32 - + 45 * - 56 ), 66 + - COUNT( * ) + - 67 AS col1
----
-9
-2

skipif mysql # not compatible
query II rowsort label-2733
SELECT COALESCE ( - 9, + COUNT ( * ) / 95 - - 32 - + 45 * - 56 ), 66 + - COUNT ( * ) + - 67 AS col1
----
-9
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-2734
SELECT - 3 DIV + - 6 col2, + 4 AS col0
----
0
4

skipif mysql # not compatible
query II rowsort label-2734
SELECT - 3 / + - 6 col2, + 4 AS col0
----
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL + COALESCE ( - 17, - + 88 * + 91 * - COUNT( * ) )
----
-17

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL + COALESCE ( - 17, - + 88 * + 91 * - COUNT ( * ) )
----
-17

query I rowsort
SELECT COALESCE ( COALESCE ( - 70, + 51 ), - 33 )
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2737
SELECT + 92 * + COALESCE ( 21, + + COUNT( * ) * + 60 + - 55 + 2 DIV - - 45 ) + 4 AS col2
----
1936

skipif mysql # not compatible
query I rowsort label-2737
SELECT + 92 * + COALESCE ( 21, + + COUNT ( * ) * + 60 + - 55 + 2 / - - 45 ) + 4 AS col2
----
1936

query I rowsort
SELECT ALL + COALESCE ( + 72, + - 11 ) col2
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-2739
SELECT - 50 * - 89, 22 + + + 29 DIV - 26 AS col2
----
4450
21

skipif mysql # not compatible
query II rowsort label-2739
SELECT - 50 * - 89, 22 + + + 29 / - 26 AS col2
----
4450
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2740
SELECT - 55 + + + 36 DIV + 6 + - 71 + - 27 DIV + + COUNT( * ) AS col2
----
-147

skipif mysql # not compatible
query I rowsort label-2740
SELECT - 55 + + + 36 / + 6 + - 71 + - 27 / + + COUNT ( * ) AS col2
----
-147

query I rowsort
SELECT ALL - 32 * - 93 * 8 AS col2
----
23808

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT - 67 DIV - ( + + 7 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2742
SELECT - 67 / - ( + + 7 ) AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2743
SELECT + 73 * - + COALESCE ( ( CASE MIN( DISTINCT + 90 ) WHEN ( - 5 ) THEN - 21 * + 84 WHEN - 53 THEN NULL ELSE + - 42 END ), - 75, - ( + 62 ) ) DIV + COUNT( * )
----
3066

skipif mysql # not compatible
query I rowsort label-2743
SELECT + 73 * - + COALESCE ( ( CASE MIN ( DISTINCT + 90 ) WHEN ( - 5 ) THEN - 21 * + 84 WHEN - 53 THEN NULL ELSE + - 42 END ), - 75, - ( + 62 ) ) / + COUNT ( * )
----
3066

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT ALL + MIN( - - 48 ) * + 42 * + COALESCE ( + - 17, - ( + 68 ) + + COALESCE ( 52, + + 23 ) + - - 9 + - 5 ) AS col2
----
-34272

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL + MIN ( - - 48 ) * + 42 * + COALESCE ( + - 17, - ( + 68 ) + + COALESCE ( 52, + + 23 ) + - - 9 + - 5 ) AS col2
----
-34272

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT DISTINCT + CASE 21 WHEN + 45 * - - 24 + COUNT( * ) - - - 4 THEN + 42 / - COUNT( * ) + - 51 * + COUNT( * ) * 61 ELSE NULL END * 44 + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT + CASE 21 WHEN + 45 * - - 24 + COUNT ( * ) - - - 4 THEN + 42 / - COUNT ( * ) + - 51 * + COUNT ( * ) * 61 ELSE NULL END * 44 + 52 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2746
SELECT COALESCE ( - 77, + CASE - CAST( + 40 AS DECIMAL ) WHEN + SUM( ALL - + 26 ) THEN NULL WHEN + COALESCE ( + - 66, 80 ) THEN + 75 - COUNT( * ) ELSE NULL END )
----
-77

skipif mysql # not compatible
query I rowsort label-2746
SELECT COALESCE ( - 77, + CASE - CAST ( + 40 AS REAL ) WHEN + SUM ( ALL - + 26 ) THEN NULL WHEN + COALESCE ( + - 66, 80 ) THEN + 75 - COUNT ( * ) ELSE NULL END )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2747
SELECT - 13 * + COALESCE ( + 94, - - 81 DIV - - 21 )
----
-1222

skipif mysql # not compatible
query I rowsort label-2747
SELECT - 13 * + COALESCE ( + 94, - - 81 / - - 21 )
----
-1222

query I rowsort
SELECT + ( + 66 ) * + 55 - 53 col1
----
3577

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT - - 89 - - CASE + SUM( - 88 ) WHEN + + 66 + + + 0 + - + 43 + COUNT( * ) / - + COUNT( * ) * + 65 * - 92 * - - 24 * 31 THEN 23 * 58 + - COALESCE ( 11, - ( - SUM( 10 ) ), + ( - COUNT( * ) ) * + 15 ) WHEN + 86 * COALESCE ( 85 * COUNT( * ), COUNT( * ), + 99 - - 72 ) + + 92 THEN 29 ELSE 76 END
----
165

skipif mysql # not compatible
query I rowsort label-2750
SELECT - - 89 - - CASE + SUM ( - 88 ) WHEN + + 66 + + + 0 + - + 43 + COUNT ( * ) / - + COUNT ( * ) * + 65 * - 92 * - - 24 * 31 THEN 23 * 58 + - COALESCE ( 11, - ( - SUM ( 10 ) ), + ( - COUNT ( * ) ) * + 15 ) WHEN + 86 * COALESCE ( 85 * COUNT ( * ), COUNT ( * ), + 99 - - 72 ) + + 92 THEN 29 ELSE 76 END
----
165

query I rowsort
SELECT - 45 * - 77
----
3465

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

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

query I rowsort
SELECT DISTINCT + 18 * - 56 + 60 AS col1
----
-948

query I rowsort
SELECT ALL + 12 + + 4 + - 54 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT + + ( - - 73 ) * - 89 * - COUNT( * ) * - 94 * + 59 AS col2
----
-36032362

skipif mysql # not compatible
query I rowsort label-2755
SELECT + + ( - - 73 ) * - 89 * - COUNT ( * ) * - 94 * + 59 AS col2
----
-36032362

query II rowsort
SELECT DISTINCT - - 14 + 62, 50 AS col1
----
76
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2757
SELECT DISTINCT - 96 + + 19, COUNT( - 25 ) DIV - 77 - + - 3 AS col1
----
-77
3

skipif mysql # not compatible
query II rowsort label-2757
SELECT DISTINCT - 96 + + 19, COUNT ( - 25 ) / - 77 - + - 3 AS col1
----
-77
3

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

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT - COUNT ( + - 90 ) / + COUNT ( * ) col1
----
-1

query I rowsort
SELECT DISTINCT + 21 + + 26
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2760
SELECT ALL + 63 * - + 52 AS col2, - 11 * - + 76 * - 35 * + 72 * + 51 + 13 - 50 * - CASE + MAX( DISTINCT 15 ) WHEN 37 + + 91 THEN NULL ELSE + 70 END AS col0
----
-3276
-107439207

skipif mysql # not compatible
query II rowsort label-2760
SELECT ALL + 63 * - + 52 AS col2, - 11 * - + 76 * - 35 * + 72 * + 51 + 13 - 50 * - CASE + MAX ( DISTINCT 15 ) WHEN 37 + + 91 THEN NULL ELSE + 70 END AS col0
----
-3276
-107439207

query I rowsort
SELECT ALL + 51 + - 15 * - - 11 AS col0
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-2762
SELECT - 48 DIV 46 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2762
SELECT - 48 / 46 AS col0
----
-1

query I rowsort
SELECT + 18 + + - 89
----
-71

query II rowsort
SELECT + ( + 19 ), 20 col1
----
19
20

query I rowsort
SELECT DISTINCT + ( + 67 ) + + 26
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT + - ( + 10 ) * - COUNT( * ) * + - 91 AS col1
----
-910

skipif mysql # not compatible
query I rowsort label-2766
SELECT + - ( + 10 ) * - COUNT ( * ) * + - 91 AS col1
----
-910

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2769
SELECT ALL - NULLIF ( - 70, - 25 ) * CAST( - CASE 59 WHEN + + 66 THEN NULL ELSE + - 43 END AS SIGNED ) * 90 * - 34 + + 68 DIV - 87 + 77 AS col0
----
-9210523

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - NULLIF ( - 70, - 25 ) * CAST ( - CASE 59 WHEN + + 66 THEN NULL ELSE + - 43 END AS INTEGER ) * 90 * - 34 + + 68 / - 87 + 77 AS col0
----
-9210523

query I rowsort
SELECT - ( COALESCE ( - 40, + 35 + - 79, + 44 ) )
----
40

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

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

query I rowsort
SELECT ALL - 63 - NULLIF ( + 65, - 75 )
----
-128

query I rowsort
SELECT + 27 * 27
----
729

query I rowsort
SELECT - 62 * 62
----
-3844

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2775
SELECT NULLIF ( + 10, + - COUNT( * ) * - 98 * - 59 + + COUNT( * ) * - ( + + COUNT( * ) ) * - - CASE - 23 WHEN 61 * 47 THEN NULL WHEN - + 73 * + 40 - 93 THEN 48 WHEN + 1 THEN - CAST( 34 AS DECIMAL ) ELSE COUNT( * ) * 29 END / + CAST( + COUNT( * ) AS SIGNED ) ) * + 66 + 72 AS col2
----
732

skipif mysql # not compatible
query I rowsort label-2775
SELECT NULLIF ( + 10, + - COUNT ( * ) * - 98 * - 59 + + COUNT ( * ) * - ( + + COUNT ( * ) ) * - - CASE - 23 WHEN 61 * 47 THEN NULL WHEN - + 73 * + 40 - 93 THEN 48 WHEN + 1 THEN - CAST ( 34 AS REAL ) ELSE COUNT ( * ) * 29 END / + CAST ( + COUNT ( * ) AS INTEGER ) ) * + 66 + 72 AS col2
----
732

query I rowsort
SELECT + 91 * + 67
----
6097

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

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

query I rowsort
SELECT + 26 * 42 AS col0
----
1092

query I rowsort
SELECT ALL - 37 * + 83
----
-3071

query I rowsort
SELECT + 44 - - 24 col1
----
68

query I rowsort
SELECT + 62 * + COALESCE ( - 13, + 52 ) * ( + 70 ) + 43 * + - 43
----
-58269

onlyif mysql # aggregate syntax: 
query II rowsort label-2782
SELECT 74 * + 83 + 10, 1 * - COUNT( * ) AS col0
----
6152
-1

skipif mysql # not compatible
query II rowsort label-2782
SELECT 74 * + 83 + 10, 1 * - COUNT ( * ) AS col0
----
6152
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2783
SELECT + CAST( + - 57 AS SIGNED ) + 89, + ( - - 42 ) AS col1
----
32
42

skipif mysql # not compatible
query II rowsort label-2783
SELECT + CAST ( + - 57 AS INTEGER ) + 89, + ( - - 42 ) AS col1
----
32
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT CASE - - 22 WHEN + 59 THEN - 95 * + - ( 24 ) WHEN 42 * - + 9 + + - 85 * + 6 THEN - - 69 ELSE NULL END * + 54 * COUNT( * ) + - 35 + - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2784
SELECT CASE - - 22 WHEN + 59 THEN - 95 * + - ( 24 ) WHEN 42 * - + 9 + + - 85 * + 6 THEN - - 69 ELSE NULL END * + 54 * COUNT ( * ) + - 35 + - 83 AS col0
----
NULL

query I rowsort
SELECT - 66 - - + 73 AS col0
----
7

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

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT - - 4 * + - 25 + - COUNT ( * ) + 76 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT ALL - + 79 + - + ( - MIN( - 99 ) ) - + 22 * - 9 * + - 84
----
-16810

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL - + 79 + - + ( - MIN ( - 99 ) ) - + 22 * - 9 * + - 84
----
-16810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2788
SELECT ALL + + NULLIF ( 47, 41 ) + - CAST( + 80 AS SIGNED ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL + + NULLIF ( 47, 41 ) + - CAST ( + 80 AS INTEGER ) AS col2
----
-33

query I rowsort
SELECT DISTINCT - 83 + + 18
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2790
SELECT ALL - NULLIF ( + 12, 71 + + CASE - 64 WHEN - 36 THEN - COUNT( * ) + + ( + - 95 ) WHEN - 81 + - - 0 * + + 14 THEN CAST( NULL AS SIGNED ) ELSE + CAST( NULL AS SIGNED ) * COALESCE ( 61, COUNT( * ) ) END ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL - NULLIF ( + 12, 71 + + CASE - 64 WHEN - 36 THEN - COUNT ( * ) + + ( + - 95 ) WHEN - 81 + - - 0 * + + 14 THEN CAST ( NULL AS INTEGER ) ELSE + CAST ( NULL AS INTEGER ) * COALESCE ( 61, COUNT ( * ) ) END ) col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL - 55 + + - COUNT( * ) * - 20
----
-35

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL - 55 + + - COUNT ( * ) * - 20
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2792
SELECT - 91 * - - 43 - + 29 + - COUNT( * ) * - CAST( - 36 AS SIGNED ) * + + 93 * + 92 * + - 44 + + 85 AS col0
----
13548847

skipif mysql # not compatible
query I rowsort label-2792
SELECT - 91 * - - 43 - + 29 + - COUNT ( * ) * - CAST ( - 36 AS INTEGER ) * + + 93 * + 92 * + - 44 + + 85 AS col0
----
13548847

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT 12 * COUNT( * ) - COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-2793
SELECT 12 * COUNT ( * ) - COUNT ( * ) AS col1
----
11

query I rowsort
SELECT 15 + - 53
----
-38

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

skipif mysql # not compatible
query I rowsort label-2795
SELECT + MIN ( + - 22 )
----
-22

query I rowsort
SELECT 61 * + - 76
----
-4636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2797
SELECT COUNT( 10 ) + - CAST( NULL AS SIGNED ) - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT COUNT ( 10 ) + - CAST ( NULL AS INTEGER ) - 75 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 94 - + 30
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT + MIN( - CASE + 14 WHEN - 7 * + - 42 THEN NULL ELSE 68 + - 73 END ) + + 7 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-2799
SELECT + MIN ( - CASE + 14 WHEN - 7 * + - 42 THEN NULL ELSE 68 + - 73 END ) + + 7 AS col2
----
12

query I rowsort
SELECT ALL - 90 * CASE - 44 WHEN - 41 THEN + 60 WHEN + - 54 / + + 63 THEN NULL WHEN - + 99 + 81 THEN ( + 16 ) / 9 END
----
NULL

query I rowsort
SELECT CASE ( 20 ) WHEN 92 + 10 THEN - - 68 END + 69
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT ALL + - ( - 29 ) DIV + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL + - ( - 29 ) / + 92 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-2803
SELECT 58 * - 42 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 86 * 41 AS col1
----
3526

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2805
SELECT ALL 44 * - + ( - CAST( + 17 AS SIGNED ) )
----
748

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL 44 * - + ( - CAST ( + 17 AS INTEGER ) )
----
748

query I rowsort
SELECT 3 + - + 73 AS col0
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2807
SELECT 74 + + 82 + + 20 - + 46 - - 31 + COUNT( * ) + + - 53 DIV + MIN( + 76 ) * - + 16 * - 75 + - 37 AS col2, + 33
----
125
33

skipif mysql # not compatible
query II rowsort label-2807
SELECT 74 + + 82 + + 20 - + 46 - - 31 + COUNT ( * ) + + - 53 / + MIN ( + 76 ) * - + 16 * - 75 + - 37 AS col2, + 33
----
125
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2808
SELECT ALL 8 * + - 8 DIV 93 * 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL 8 * + - 8 / 93 * 37 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2809
SELECT 5 DIV + + 98 * - - 4 + + 34 + + - ( CAST( NULL AS SIGNED ) ) * - 36 AS col1, COALESCE ( 66, 91 ) * - COUNT( ALL 96 ) DIV + + 68 - 0 * ( 45 )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2809
SELECT 5 / + + 98 * - - 4 + + 34 + + - ( CAST ( NULL AS INTEGER ) ) * - 36 AS col1, COALESCE ( 66, 91 ) * - COUNT ( ALL 96 ) / + + 68 - 0 * ( 45 )
----
NULL
0

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

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

query I rowsort
SELECT ( - + 58 ) + + 23 + + 46
----
11

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2814
SELECT ALL 78 + + 85, - SUM( + 68 ) AS col0
----
163
-68

skipif mysql # not compatible
query II rowsort label-2814
SELECT ALL 78 + + 85, - SUM ( + 68 ) AS col0
----
163
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-2815
SELECT DISTINCT COALESCE ( 10, - 31 ) + + ( - COUNT( * ) ) AS col2, - 82 AS col1
----
9
-82

skipif mysql # not compatible
query II rowsort label-2815
SELECT DISTINCT COALESCE ( 10, - 31 ) + + ( - COUNT ( * ) ) AS col2, - 82 AS col1
----
9
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-2816
SELECT 90 * 53 AS col2, NULLIF ( 83, - + 10 ) * 15 + + COUNT( * ) + + 91 * + COALESCE ( - + 53, + 81 ) + - ( + + CASE 58 WHEN - 27 THEN NULL ELSE 89 * - 35 END )
----
4770
-462

skipif mysql # not compatible
query II rowsort label-2816
SELECT 90 * 53 AS col2, NULLIF ( 83, - + 10 ) * 15 + + COUNT ( * ) + + 91 * + COALESCE ( - + 53, + 81 ) + - ( + + CASE 58 WHEN - 27 THEN NULL ELSE 89 * - 35 END )
----
4770
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-2817
SELECT - 45 DIV - 39 + + 12
----
13

skipif mysql # not compatible
query I rowsort label-2817
SELECT - 45 / - 39 + + 12
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2818
SELECT DISTINCT COUNT( * ) * + 39 col1, + 50
----
39
50

skipif mysql # not compatible
query II rowsort label-2818
SELECT DISTINCT COUNT ( * ) * + 39 col1, + 50
----
39
50

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

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

query I rowsort
SELECT 38 + + - 11 + + 77 + - 68 AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2821
SELECT DISTINCT 1 + - 98 + - - ( - NULLIF ( + + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ), - 81 ) ) AS col0, - 92 * + - 76 AS col0
----
-97
6992

skipif mysql # not compatible
query II rowsort label-2821
SELECT DISTINCT 1 + - 98 + - - ( - NULLIF ( + + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ), - 81 ) ) AS col0, - 92 * + - 76 AS col0
----
-97
6992

query I rowsort
SELECT DISTINCT + + 14 * - 1 * - 14
----
196

query I rowsort
SELECT 27 * - + ( + + 21 )
----
-567

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

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

query I rowsort
SELECT ( - - 52 )
----
52

query I rowsort
SELECT ALL 38 + + - 11 + 36
----
63

query I rowsort
SELECT ALL 51 + + 16 * + + 49
----
835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2828
SELECT - 88 * + 1 * 32 / 88 + CAST( NULL AS SIGNED ) + COUNT( * ) - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2828
SELECT - 88 * + 1 * 32 / 88 + CAST ( NULL AS INTEGER ) + COUNT ( * ) - 37 AS col1
----
NULL

query I rowsort
SELECT 50 * - 73
----
-3650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2830
SELECT ALL - + CASE + 83 WHEN + CAST( - COUNT( ALL - 13 ) AS SIGNED ) THEN - 44 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL - + CASE + 83 WHEN + CAST ( - COUNT ( ALL - 13 ) AS INTEGER ) THEN - 44 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + - NULLIF ( - - 39, + + 21 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2832
SELECT + ( + MAX( DISTINCT + 45 ) ) + - + CAST( 55 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-2832
SELECT + ( + MAX ( DISTINCT + 45 ) ) + - + CAST ( 55 AS INTEGER )
----
-10

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2834
SELECT ( - - 80 ) AS col2, - 87 + NULLIF ( - 37, 98 * - - 61 * 43 * - 9 * + + SUM( ALL + 61 ) )
----
80
-124

skipif mysql # not compatible
query II rowsort label-2834
SELECT ( - - 80 ) AS col2, - 87 + NULLIF ( - 37, 98 * - - 61 * 43 * - 9 * + + SUM ( ALL + 61 ) )
----
80
-124

query I rowsort
SELECT DISTINCT + 52 * ( 40 ) AS col0
----
2080

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2836
SELECT + 13 * - + CAST( NULL AS DECIMAL ) - + 47 * - + 68 * + 14 AS col2, 90
----
NULL
90

skipif mysql # not compatible
query II rowsort label-2836
SELECT + 13 * - + CAST ( NULL AS REAL ) - + 47 * - + 68 * + 14 AS col2, 90
----
NULL
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT DISTINCT - 61 * - COUNT( * ) col2
----
61

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT - 61 * - COUNT ( * ) col2
----
61

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

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

query I rowsort
SELECT 99 * + ( 43 )
----
4257

onlyif mysql # aggregate syntax: 
query II rowsort label-2841
SELECT SUM( ALL 25 ), + COUNT( * ) * 90 AS col2
----
25
90

skipif mysql # not compatible
query II rowsort label-2841
SELECT SUM ( ALL 25 ), + COUNT ( * ) * 90 AS col2
----
25
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT 52 + 30 + 9 + - 73 * + COUNT( * ) + - - MAX( - + 85 )
----
-67

skipif mysql # not compatible
query I rowsort label-2842
SELECT 52 + 30 + 9 + - 73 * + COUNT ( * ) + - - MAX ( - + 85 )
----
-67

query II rowsort
SELECT 40, 86 AS col1
----
40
86

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

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

query II rowsort
SELECT - 68 AS col2, + 75
----
-68
75

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

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

query I rowsort
SELECT DISTINCT - 92 + 94 + + 66 AS col2
----
68

query I rowsort
SELECT DISTINCT + 28 + + - 37 * - 31 AS col1
----
1175

query I rowsort
SELECT 74 + 74
----
148

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2851
SELECT COALESCE ( 49, + + 1 * COALESCE ( + - SUM( ALL + ( - 44 ) ), - - 52 ) ) * - + ( + ( + 58 ) ) / + - 99 + 96 * - SUM( - + 21 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2851
SELECT COALESCE ( 49, + + 1 * COALESCE ( + - SUM ( ALL + ( - 44 ) ), - - 52 ) ) * - + ( + ( + 58 ) ) / + - 99 + 96 * - SUM ( - + 21 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT CASE + 9 WHEN + 51 THEN NULL WHEN 64 THEN + + 77 END, 44 AS col2
----
NULL
44

query I rowsort
SELECT - 37 + - ( + - 56 ) AS col0
----
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2855
SELECT ALL - ( MIN( DISTINCT 90 ) ) * - CAST( - 85 AS SIGNED ) * - + 97 + + - 50 + + CAST( NULL AS SIGNED ) + + 54 + + - 20 + + - 86 + + + 9 * 47 * - + ( - 67 ) - 29 * 48 * - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL - ( MIN ( DISTINCT 90 ) ) * - CAST ( - 85 AS INTEGER ) * - + 97 + + - 50 + + CAST ( NULL AS INTEGER ) + + 54 + + - 20 + + - 86 + + + 9 * 47 * - + ( - 67 ) - 29 * 48 * - 80 AS col1
----
NULL

query I rowsort
SELECT ALL + 2 * + 58 * + 72
----
8352

query I rowsort
SELECT ALL - 8 * 47 + 42 col2
----
-334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2858
SELECT + 31 - - COALESCE ( - + COALESCE ( - 64, + 10, + 84 * + + COUNT( + 49 ) * + COUNT( * ) + - 75 ), + 28 + - + 58 * CASE + 70 WHEN + COALESCE ( - 72, + COUNT( * ), 85, - ( + ( CAST( NULL AS DECIMAL ) ) ) ) THEN NULL WHEN + ( - 57 ) THEN NULL ELSE - NULLIF ( - CAST( 23 AS SIGNED ), 77 ) END ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2858
SELECT + 31 - - COALESCE ( - + COALESCE ( - 64, + 10, + 84 * + + COUNT ( + 49 ) * + COUNT ( * ) + - 75 ), + 28 + - + 58 * CASE + 70 WHEN + COALESCE ( - 72, + COUNT ( * ), 85, - ( + ( CAST ( NULL AS REAL ) ) ) ) THEN NULL WHEN + ( - 57 ) THEN NULL ELSE - NULLIF ( - CAST ( 23 AS INTEGER ), 77 ) END ) AS col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2859
SELECT - SUM( - 21 ) / - CAST( NULL AS DECIMAL ) + - 36 / + 43 - - 2 + + CASE 88 WHEN + - 69 * - 91 + + 94 * 59 + + 92 + - ( ( + CAST( NULL AS SIGNED ) ) ) * 1 * COUNT( * ) THEN 94 END * - COUNT( * ) + - 20 * + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2859
SELECT - SUM ( - 21 ) / - CAST ( NULL AS REAL ) + - 36 / + 43 - - 2 + + CASE 88 WHEN + - 69 * - 91 + + 94 * 59 + + 92 + - ( ( + CAST ( NULL AS INTEGER ) ) ) * 1 * COUNT ( * ) THEN 94 END * - COUNT ( * ) + - 20 * + 18 AS col0
----
NULL

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

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

query I rowsort
SELECT - 92 + 87 AS col1
----
-5

query II rowsort
SELECT + 53 AS col0, 43 * 10 AS col2
----
53
430

query I rowsort
SELECT + + 75 + - 71 AS col0
----
4

query II rowsort
SELECT DISTINCT + - 49, - 30 AS col0
----
-49
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2865
SELECT + + ( + 59 ) - - 74 + - - CAST( - CASE - 4 WHEN - 51 / - 13 THEN - + 85 * 92 + - COUNT( * ) WHEN + 45 * - CAST( + CASE + 15 WHEN 97 * 21 THEN NULL ELSE ( CAST( NULL AS SIGNED ) ) END AS SIGNED ) + 71 THEN - 61 + + 55 END AS SIGNED ) / - 2 * - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2865
SELECT + + ( + 59 ) - - 74 + - - CAST ( - CASE - 4 WHEN - 51 / - 13 THEN - + 85 * 92 + - COUNT ( * ) WHEN + 45 * - CAST ( + CASE + 15 WHEN 97 * 21 THEN NULL ELSE ( CAST ( NULL AS INTEGER ) ) END AS INTEGER ) + 71 THEN - 61 + + 55 END AS INTEGER ) / - 2 * - 85 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT DISTINCT SUM( + - 69 ) * + COUNT( * ) * ( + 27 ) * + 79
----
-147177

skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT SUM ( + - 69 ) * + COUNT ( * ) * ( + 27 ) * + 79
----
-147177

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL + 11 * + + 25 * - 28 * - 69 - - COUNT( * ) AS col2
----
531301

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL + 11 * + + 25 * - 28 * - 69 - - COUNT ( * ) AS col2
----
531301

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

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

query I rowsort
SELECT ALL + - 44 * + 53 * - - 72 col0
----
-167904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2870
SELECT DISTINCT - 12 * + COALESCE ( - + 27, + 22 * - 61 + + 55, + 57 * - NULLIF ( + 88, - CAST( 20 AS SIGNED ) ) DIV + 6 * - 99 - - NULLIF ( COALESCE ( - 16, 29 + 64 ), COUNT( * ) DIV 78 ), 43 )
----
324

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT - 12 * + COALESCE ( - + 27, + 22 * - 61 + + 55, + 57 * - NULLIF ( + 88, - CAST ( 20 AS INTEGER ) ) / + 6 * - 99 - - NULLIF ( COALESCE ( - 16, 29 + 64 ), COUNT ( * ) / 78 ), 43 )
----
324

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT + 21 DIV + 78 * - + 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2871
SELECT + 21 / + 78 * - + 16 AS col0
----
0

query I rowsort
SELECT - - ( + - 44 ) * - + 65
----
2860

query I rowsort
SELECT - + 93 * + 25
----
-2325

query I rowsort
SELECT ALL + CASE WHEN - 66 IS NULL THEN + + 67 END
----
NULL

query I rowsort
SELECT + + 82 + + 65
----
147

query I rowsort
SELECT - - 18 + 9 * 76
----
702

onlyif mysql # DIV for integer division: 
query II rowsort label-2877
SELECT + 51 DIV + - 8 AS col1, 51 - - + 65 AS col2
----
-6
116

skipif mysql # not compatible
query II rowsort label-2877
SELECT + 51 / + - 8 AS col1, 51 - - + 65 AS col2
----
-6
116

query I rowsort
SELECT - 57 * CASE - 48 WHEN - 6 THEN NULL ELSE - 57 END col1
----
3249

query II rowsort
SELECT ALL 58, - 31 AS col2
----
58
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ALL - 78 + - COUNT( - 63 )
----
-79

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL - 78 + - COUNT ( - 63 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL + ( + COUNT( * ) ) * - 32 * - 47
----
1504

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL + ( + COUNT ( * ) ) * - 32 * - 47
----
1504

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

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

query II rowsort
SELECT 90, + 46 * - 66 AS col0
----
90
-3036

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

query I rowsort
SELECT - 91 + - 92 AS col1
----
-183

query I rowsort
SELECT - 67 + - - 64 AS col0
----
-3

query I rowsort
SELECT - 43 + 39 + + 41 AS col1
----
37

query I rowsort
SELECT DISTINCT ( + 48 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT - 31 + - MAX( + 94 ) AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-2889
SELECT - 31 + - MAX ( + 94 ) AS col0
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2890
SELECT ALL CAST( 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL CAST ( 52 AS INTEGER )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT ALL + CASE COUNT( * ) WHEN + 52 THEN - CASE - 43 WHEN - + 30 * + 79 THEN - 50 WHEN 46 THEN 7 WHEN - COALESCE ( + - ( - NULLIF ( + COALESCE ( + 32, 43 + - 44, 80 ), - 90 ) ), 18 + 18 * - COALESCE ( + COALESCE ( 12, + 32 - 9 ), 86, - 70 ) ) THEN NULL END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL + CASE COUNT ( * ) WHEN + 52 THEN - CASE - 43 WHEN - + 30 * + 79 THEN - 50 WHEN 46 THEN 7 WHEN - COALESCE ( + - ( - NULLIF ( + COALESCE ( + 32, 43 + - 44, 80 ), - 90 ) ), 18 + 18 * - COALESCE ( + COALESCE ( 12, + 32 - 9 ), 86, - 70 ) ) THEN NULL END ELSE NULL END
----
NULL

query I rowsort
SELECT - - 74 * - - 78 col0
----
5772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2893
SELECT ALL - 68 DIV + 13 + 69 - + 34 * 87 * - 45 - - COALESCE ( + 33, - - 72 - + CASE + CASE WHEN NOT 8 IN ( + 82, + 83 ) THEN + 91 WHEN 31 <> - 29 + - 82 THEN + 41 ELSE NULL END WHEN ( 14 ) THEN + 68 + COUNT( * ) * + ( 74 ) WHEN 95 THEN NULL END ) AS col0
----
133207

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL - 68 / + 13 + 69 - + 34 * 87 * - 45 - - COALESCE ( + 33, - - 72 - + CASE + CASE WHEN NOT 8 IN ( + 82, + 83 ) THEN + 91 WHEN 31 <> - 29 + - 82 THEN + 41 ELSE NULL END WHEN ( 14 ) THEN + 68 + COUNT ( * ) * + ( 74 ) WHEN 95 THEN NULL END ) AS col0
----
133207

query I rowsort
SELECT ALL - - 30 * + 73 AS col0
----
2190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2895
SELECT 24 / COUNT( * ) / + + 53 * - 67 + + - 72 + - 0 * - CAST( NULL AS SIGNED ) - + + COUNT( * ) * + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT 24 / COUNT ( * ) / + + 53 * - 67 + + - 72 + - 0 * - CAST ( NULL AS INTEGER ) - + + COUNT ( * ) * + 6 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2896
SELECT - 12 * 97 AS col2, AVG ( + + CASE - + 29 WHEN + + 63 THEN NULL WHEN + 45 * - CAST( NULL AS SIGNED ) * + 27 * - - 27 + - - 34 + + CAST( NULL AS SIGNED ) - CASE - - 73 WHEN + - 10 + 31 THEN - 19 WHEN 2 THEN + 48 + - 25 ELSE NULL END THEN NULL WHEN - 17 THEN + 78 ELSE NULL END ) + CAST( NULL AS SIGNED )
----
-1164
NULL

skipif mysql # not compatible
query II rowsort label-2896
SELECT - 12 * 97 AS col2, AVG ( + + CASE - + 29 WHEN + + 63 THEN NULL WHEN + 45 * - CAST ( NULL AS INTEGER ) * + 27 * - - 27 + - - 34 + + CAST ( NULL AS INTEGER ) - CASE - - 73 WHEN + - 10 + 31 THEN - 19 WHEN 2 THEN + 48 + - 25 ELSE NULL END THEN NULL WHEN - 17 THEN + 78 ELSE NULL END ) + CAST ( NULL AS INTEGER )
----
-1164
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT - NULLIF ( + COUNT( * ), - + AVG ( ALL - 26 ) + + 83 + - 98 + 10 ) * + - 9
----
9

skipif mysql # not compatible
query I rowsort label-2897
SELECT - NULLIF ( + COUNT ( * ), - + AVG ( ALL - 26 ) + + 83 + - 98 + 10 ) * + - 9
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2898
SELECT ALL + COUNT( * ) AS col1, 2 * + 81 + - SUM( 85 ) * + + COUNT( * )
----
1
77

skipif mysql # not compatible
query II rowsort label-2898
SELECT ALL + COUNT ( * ) AS col1, 2 * + 81 + - SUM ( 85 ) * + + COUNT ( * )
----
1
77

query I rowsort
SELECT ALL - 74 * - 81 * + 8
----
47952

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2900
SELECT ALL + 52 DIV + 9 + - COUNT( - CAST( - 99 AS DECIMAL ) ) DIV + + 76 * - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL + 52 / + 9 + - COUNT ( - CAST ( - 99 AS REAL ) ) / + + 76 * - COUNT ( * )
----
5

query I rowsort
SELECT ALL + - 25 * 97
----
-2425

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT + - CASE + 15 WHEN - NULLIF ( 80, + COUNT( * ) + - ( + - COALESCE ( - 54, - 83 * - + 55 + 28 - 88, 9 ) ) * - + 41 ) THEN - + 49 WHEN + 94 + + 20 THEN NULL ELSE COUNT( * ) END * ( 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-2902
SELECT + - CASE + 15 WHEN - NULLIF ( 80, + COUNT ( * ) + - ( + - COALESCE ( - 54, - 83 * - + 55 + 28 - 88, 9 ) ) * - + 41 ) THEN - + 49 WHEN + 94 + + 20 THEN NULL ELSE COUNT ( * ) END * ( 44 )
----
-44

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

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

query I rowsort
SELECT - 28 * 18 AS col2
----
-504

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2906
SELECT 31 * + 84 + - MAX( DISTINCT 39 ) + + ( - + 75 ) DIV + 65 col0
----
2564

skipif mysql # not compatible
query I rowsort label-2906
SELECT 31 * + 84 + - MAX ( DISTINCT 39 ) + + ( - + 75 ) / + 65 col0
----
2564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2907
SELECT ALL 12 * - 4 + + 56 + CAST( NULL AS SIGNED ) + + 70 - + ( 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL 12 * - 4 + + 56 + CAST ( NULL AS INTEGER ) + + 70 - + ( 16 ) AS col0
----
NULL

query I rowsort
SELECT ALL 85 * + 36
----
3060

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2909
SELECT + NULLIF ( + COUNT( * ), + + 71 * ( + - COUNT( * ) ) * + - 4 - - 90 ) - 14 DIV + + 89 * - 71, - 91 AS col0
----
1
-91

skipif mysql # not compatible
query II rowsort label-2909
SELECT + NULLIF ( + COUNT ( * ), + + 71 * ( + - COUNT ( * ) ) * + - 4 - - 90 ) - 14 / + + 89 * - 71, - 91 AS col0
----
1
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT ALL 86 * - COALESCE ( + 9, 14 ) * COUNT( * ) AS col1
----
-774

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL 86 * - COALESCE ( + 9, 14 ) * COUNT ( * ) AS col1
----
-774

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2911
SELECT DISTINCT + 80 * - 27 + + - CAST( - 6 AS SIGNED ) - + + 96 + + + 54 DIV - + 9 col2
----
-2256

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT + 80 * - 27 + + - CAST ( - 6 AS INTEGER ) - + + 96 + + + 54 / - + 9 col2
----
-2256

query I rowsort
SELECT + 9 * - ( - 81 )
----
729

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2914
SELECT - 50 * NULLIF ( - COUNT( * ), - - COALESCE ( + + AVG ( ALL + 48 ), - 38 ) * + - 14 + - CASE - 79 WHEN - 33 THEN + COALESCE ( - 24, + + NULLIF ( 72, 17 ) + - 21, CAST( 85 AS SIGNED ) ) * 71 WHEN + 88 THEN NULL END * SUM( 63 ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-2914
SELECT - 50 * NULLIF ( - COUNT ( * ), - - COALESCE ( + + AVG ( ALL + 48 ), - 38 ) * + - 14 + - CASE - 79 WHEN - 33 THEN + COALESCE ( - 24, + + NULLIF ( 72, 17 ) + - 21, CAST ( 85 AS INTEGER ) ) * 71 WHEN + 88 THEN NULL END * SUM ( 63 ) ) AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2915
SELECT ALL 73 + - NULLIF ( + 83, + 76 * 34 + - + 68 * 97 - 15 * + CASE - + COUNT( * ) WHEN + - 45 + CASE - COALESCE ( + 27, - 22 + - - ( - 18 ) * 46 ) WHEN + COUNT( * ) - + 27 THEN 29 / + 33 + + 27 END - 22 THEN COUNT( * ) * + 7 WHEN - CAST( - MAX( DISTINCT 29 ) AS SIGNED ) + - 82 * 56 THEN NULL ELSE 48 + 26 END ) + COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL 73 + - NULLIF ( + 83, + 76 * 34 + - + 68 * 97 - 15 * + CASE - + COUNT ( * ) WHEN + - 45 + CASE - COALESCE ( + 27, - 22 + - - ( - 18 ) * 46 ) WHEN + COUNT ( * ) - + 27 THEN 29 / + 33 + + 27 END - 22 THEN COUNT ( * ) * + 7 WHEN - CAST ( - MAX ( DISTINCT 29 ) AS INTEGER ) + - 82 * 56 THEN NULL ELSE 48 + 26 END ) + COUNT ( * ) AS col2
----
-9

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

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL + COUNT ( * ) + - - 9 AS col1
----
10

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

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

query I rowsort
SELECT 56 * + 46 col2
----
2576

query I rowsort
SELECT ALL + - 65 - + 40 + - 90 + 20 AS col1
----
-175

query I rowsort
SELECT 5 + - - 76 AS col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2921
SELECT 35 * 0 + COALESCE ( + 94, - + 33 DIV - ( - NULLIF ( - - 25, + + 29 ) ) + CAST( NULL AS SIGNED ) DIV - + ( - 1 ) - - COUNT( * ) + 77 - 57, + MAX( ALL - - 99 ) + 36, CASE + COUNT( * ) WHEN + 98 THEN - 93 END + + 48 )
----
94

skipif mysql # not compatible
query I rowsort label-2921
SELECT 35 * 0 + COALESCE ( + 94, - + 33 / - ( - NULLIF ( - - 25, + + 29 ) ) + CAST ( NULL AS INTEGER ) / - + ( - 1 ) - - COUNT ( * ) + 77 - 57, + MAX ( ALL - - 99 ) + 36, CASE + COUNT ( * ) WHEN + 98 THEN - 93 END + + 48 )
----
94

query I rowsort
SELECT ALL - NULLIF ( - 62, - 60 + - 25 ) AS col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2923
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ), + 10 + - 65 * - + ( - CAST( + + 19 AS SIGNED ) ) AS col0
----
NULL
-1225

skipif mysql # not compatible
query II rowsort label-2923
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ), + 10 + - 65 * - + ( - CAST ( + + 19 AS INTEGER ) ) AS col0
----
NULL
-1225

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2925
SELECT + + 24 DIV - COUNT( * ) + + - 7 * - NULLIF ( 86, 21 ) * - + 75 + 44 AS col2
----
-45130

skipif mysql # not compatible
query I rowsort label-2925
SELECT + + 24 / - COUNT ( * ) + + - 7 * - NULLIF ( 86, 21 ) * - + 75 + 44 AS col2
----
-45130

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT 61 + - + 80 + + - COUNT( * ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-2926
SELECT 61 + - + 80 + + - COUNT ( * ) col0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2927
SELECT - COUNT( * ) DIV 76, 72 - + CASE - + COUNT( * ) WHEN MIN( ( - - ( + 46 ) ) ) DIV - 15 THEN NULL WHEN - 95 * - 80 THEN - + 89 DIV - 49 WHEN + 4 * - COUNT( * ) * - + 7 + - 14 THEN NULL END AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2927
SELECT - COUNT ( * ) / 76, 72 - + CASE - + COUNT ( * ) WHEN MIN ( ( - - ( + 46 ) ) ) / - 15 THEN NULL WHEN - 95 * - 80 THEN - + 89 / - 49 WHEN + 4 * - COUNT ( * ) * - + 7 + - 14 THEN NULL END AS col0
----
0
NULL

query I rowsort
SELECT DISTINCT - 29 + 8 + - - 57 AS col0
----
36

query II rowsort
SELECT + 96 * + - 75 col1, 87 + - + 6
----
-7200
81

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

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

query I rowsort
SELECT DISTINCT 33 + 10 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT + 30 * - 45 + COUNT( * ) col1
----
-1349

skipif mysql # not compatible
query I rowsort label-2932
SELECT + 30 * - 45 + COUNT ( * ) col1
----
-1349

onlyif mysql # aggregate syntax: 
query II rowsort label-2933
SELECT 28, 95 + - COUNT( * ) + - + 14 AS col2
----
28
80

skipif mysql # not compatible
query II rowsort label-2933
SELECT 28, 95 + - COUNT ( * ) + - + 14 AS col2
----
28
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT 83 + - + 14 + + 34 DIV 94
----
69

skipif mysql # not compatible
query I rowsort label-2934
SELECT 83 + - + 14 + + 34 / 94
----
69

query I rowsort
SELECT 19 - 22 + + 58 * - 21
----
-1221

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2936
SELECT - 68, CAST( - - 54 AS SIGNED ) AS col2
----
-68
54

skipif mysql # not compatible
query II rowsort label-2936
SELECT - 68, CAST ( - - 54 AS INTEGER ) AS col2
----
-68
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL CASE + 77 WHEN AVG ( + 37 ) THEN - 89 / + 38 * - 8 + - + AVG ( DISTINCT + 74 ) - + 76 + COUNT( * ) ELSE NULL END - + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL CASE + 77 WHEN AVG ( + 37 ) THEN - 89 / + 38 * - 8 + - + AVG ( DISTINCT + 74 ) - + 76 + COUNT ( * ) ELSE NULL END - + 0
----
NULL

query I rowsort
SELECT 9 + - 41
----
-32

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

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

query I rowsort
SELECT ALL + 43 - - + 75
----
118

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

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

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL COUNT ( * ) - + + 59 AS col2
----
-58

query I rowsort
SELECT DISTINCT 31 * - + 32
----
-992

onlyif mysql # aggregate syntax: 
query II rowsort label-2944
SELECT - 90, + MAX( + 98 ) AS col1
----
-90
98

skipif mysql # not compatible
query II rowsort label-2944
SELECT - 90, + MAX ( + 98 ) AS col1
----
-90
98

query II rowsort
SELECT DISTINCT 95 AS col2, 41
----
95
41

query I rowsort
SELECT 71 + - 37 * 59 AS col2
----
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT COUNT( ALL - 7 ) * - CASE NULLIF ( - 69, - 70 ) WHEN 92 THEN + + COUNT( * ) * - + 4 + - 96 + COUNT( * ) WHEN - - 17 + - + 12 + + CASE - COUNT( * ) WHEN - - 87 THEN + 61 / + + MIN( DISTINCT 2 ) WHEN 53 * 70 THEN - 46 ELSE NULL END + 90 * - 16 / + 37 THEN + 7 * COUNT( * ) END * COUNT( ALL + 75 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2947
SELECT COUNT ( ALL - 7 ) * - CASE NULLIF ( - 69, - 70 ) WHEN 92 THEN + + COUNT ( * ) * - + 4 + - 96 + COUNT ( * ) WHEN - - 17 + - + 12 + + CASE - COUNT ( * ) WHEN - - 87 THEN + 61 / + + MIN ( DISTINCT 2 ) WHEN 53 * 70 THEN - 46 ELSE NULL END + 90 * - 16 / + 37 THEN + 7 * COUNT ( * ) END * COUNT ( ALL + 75 ) AS col0
----
NULL

query I rowsort
SELECT - CASE + 32 WHEN + 45 THEN - ( 1 ) END * + 75 * - 44
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2949
SELECT - ( - - ( + + 28 ) ) AS col2, 63, + COUNT( * ) * + 97 DIV + 69 AS col1
----
-28
63
1

skipif mysql # not compatible
query III rowsort label-2949
SELECT - ( - - ( + + 28 ) ) AS col2, 63, + COUNT ( * ) * + 97 / + 69 AS col1
----
-28
63
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT ALL + NULLIF ( - 1, - 74 + - 97 - - CASE 79 WHEN - 70 THEN NULL ELSE 99 END * + 90 ) * - - COUNT( * ) * - - 1 + 19 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL + NULLIF ( - 1, - 74 + - 97 - - CASE 79 WHEN - 70 THEN NULL ELSE 99 END * + 90 ) * - - COUNT ( * ) * - - 1 + 19 AS col0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2951
SELECT 27 DIV + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2951
SELECT 27 / + 65 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL 71 * - MIN( DISTINCT - 4 ) + 57
----
341

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL 71 * - MIN ( DISTINCT - 4 ) + 57
----
341

query I rowsort
SELECT - 1 * + 79 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT + SUM( ALL + + 12 ) col1
----
12

skipif mysql # not compatible
query I rowsort label-2954
SELECT + SUM ( ALL + + 12 ) col1
----
12

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

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

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

query II rowsort
SELECT ALL - 86 AS col1, 22 * - 75
----
-86
-1650

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

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

query II rowsort
SELECT ALL - 78 AS col1, 67
----
-78
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2960
SELECT + COUNT( * ) * + AVG ( + 57 ) / + 61 - - + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT + COUNT ( * ) * + AVG ( + 57 ) / + 61 - - + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT 13 * - - 99 * - 32 * - - COUNT( * )
----
-41184

skipif mysql # not compatible
query I rowsort label-2961
SELECT 13 * - - 99 * - 32 * - - COUNT ( * )
----
-41184

onlyif mysql # aggregate syntax: 
query II rowsort label-2962
SELECT DISTINCT - 28 + - 51, + COUNT( * ) AS col0
----
-79
1

skipif mysql # not compatible
query II rowsort label-2962
SELECT DISTINCT - 28 + - 51, + COUNT ( * ) AS col0
----
-79
1

query I rowsort
SELECT 87 + - + 42 * + 76 * - - 37 col1
----
-118017

query I rowsort
SELECT ALL + 56 * - - 4
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ALL - 11 - - - COALESCE ( COUNT( * ), CASE + - 29 WHEN - - 26 THEN NULL ELSE - + 49 + - 56 END, - 70 + 29 + + COALESCE ( - 2, 64 * + 6 ) ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL - 11 - - - COALESCE ( COUNT ( * ), CASE + - 29 WHEN - - 26 THEN NULL ELSE - + 49 + - 56 END, - 70 + 29 + + COALESCE ( - 2, 64 * + 6 ) ) col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2966
SELECT ALL CAST( NULL AS SIGNED ) - 23, 98 AS col0
----
NULL
98

skipif mysql # not compatible
query II rowsort label-2966
SELECT ALL CAST ( NULL AS INTEGER ) - 23, 98 AS col0
----
NULL
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2967
SELECT ALL COALESCE ( + 53, + COUNT( * ) * - - COALESCE ( - 15, + 68 ), 11 ), + 37 DIV ( + 27 ) AS col2
----
53
1

skipif mysql # not compatible
query II rowsort label-2967
SELECT ALL COALESCE ( + 53, + COUNT ( * ) * - - COALESCE ( - 15, + 68 ), 11 ), + 37 / ( + 27 ) AS col2
----
53
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT - 96 - - - SUM( DISTINCT - COALESCE ( 59, 56 ) ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-2968
SELECT - 96 - - - SUM ( DISTINCT - COALESCE ( 59, 56 ) ) AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2969
SELECT + 2 * + 66 * - + 13 * + ( + - CASE - 53 WHEN - + SUM( DISTINCT - 6 ) THEN CAST( NULL AS SIGNED ) - + 63 WHEN + CAST( - COUNT( * ) AS SIGNED ) / + COUNT( * ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2969
SELECT + 2 * + 66 * - + 13 * + ( + - CASE - 53 WHEN - + SUM ( DISTINCT - 6 ) THEN CAST ( NULL AS INTEGER ) - + 63 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) / + COUNT ( * ) THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT DISTINCT COALESCE ( - + 51, - CAST( + 97 AS SIGNED ), - ( - - 44 ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT COALESCE ( - + 51, - CAST ( + 97 AS INTEGER ), - ( - - 44 ) ) AS col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2971
SELECT ALL ( CASE - - CAST( NULL AS SIGNED ) WHEN 45 + 4 + + MAX( DISTINCT - + 90 ) THEN NULL ELSE 68 + 99 * - + 38 + + + 15 END )
----
-3679

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL ( CASE - - CAST ( NULL AS INTEGER ) WHEN 45 + 4 + + MAX ( DISTINCT - + 90 ) THEN NULL ELSE 68 + 99 * - + 38 + + + 15 END )
----
-3679

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2973
SELECT - MAX( ALL + ( + + 77 ) ) - COUNT( * ), + 5 col0
----
-78
5

skipif mysql # not compatible
query II rowsort label-2973
SELECT - MAX ( ALL + ( + + 77 ) ) - COUNT ( * ), + 5 col0
----
-78
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2974
SELECT + + CAST( + 99 AS SIGNED ) * 4 DIV CAST( 21 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-2974
SELECT + + CAST ( + 99 AS INTEGER ) * 4 / CAST ( 21 AS INTEGER )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT ALL ( - COUNT( * ) ) + - 60
----
-61

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL ( - COUNT ( * ) ) + - 60
----
-61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ALL + SUM( ALL - ( 27 ) ) col2
----
-27

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL + SUM ( ALL - ( 27 ) ) col2
----
-27

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

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

query I rowsort
SELECT + 19 * 23 * 66 AS col0
----
28842

query I rowsort
SELECT ALL 89 + - 34 AS col1
----
55

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

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

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

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

query I rowsort
SELECT + - 35 * + 71 AS col1
----
-2485

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2985
SELECT + + MIN( ALL - 64 ) + - 84 * - + 60 AS col0, 84 + - 89
----
4976
-5

skipif mysql # not compatible
query II rowsort label-2985
SELECT + + MIN ( ALL - 64 ) + - 84 * - + 60 AS col0, 84 + - 89
----
4976
-5

query I rowsort
SELECT ALL + 22 * + 8 - + 30 * 71 + - 70 - 38 AS col2
----
-2062

query I rowsort
SELECT DISTINCT + 87 * + - ( - 6 ) - - 54 + - 16
----
560

query I rowsort
SELECT ALL + + 13 * - + 38 + - 87 + 88
----
-493

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL - MAX( DISTINCT 5 ) * ( - - 21 )
----
-105

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL - MAX ( DISTINCT 5 ) * ( - - 21 )
----
-105

query I rowsort
SELECT ALL 51 * 80 - + + 29 * - 3 AS col0
----
4167

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT - 51 + NULLIF ( - ( + COALESCE ( 19, + 71 * + 4 + - 40 ) ), + 52 + - - SUM( ALL 64 ) + + - 31 * 16 ) + - 51
----
-121

skipif mysql # not compatible
query I rowsort label-2992
SELECT - 51 + NULLIF ( - ( + COALESCE ( 19, + 71 * + 4 + - 40 ) ), + 52 + - - SUM ( ALL 64 ) + + - 31 * 16 ) + - 51
----
-121

query I rowsort
SELECT - 27 + + - 15 * + - 11 AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT DISTINCT + COUNT( DISTINCT + 3 )
----
1

skipif mysql # not compatible
query I rowsort label-2994
SELECT DISTINCT + COUNT ( DISTINCT + 3 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2995
SELECT DISTINCT 3 * + - MIN( DISTINCT - + 79 ) DIV - - ( + COUNT( * ) ) + - COALESCE ( + 1, + 44 ) AS col2, 5 AS col1
----
236
5

skipif mysql # not compatible
query II rowsort label-2995
SELECT DISTINCT 3 * + - MIN ( DISTINCT - + 79 ) / - - ( + COUNT ( * ) ) + - COALESCE ( + 1, + 44 ) AS col2, 5 AS col1
----
236
5

query I rowsort
SELECT DISTINCT 53 * + 10 - ( + 24 )
----
506

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3000
SELECT - 83 * 61 * - CASE + AVG ( DISTINCT + - COALESCE ( + 9, CAST( - - 2 AS SIGNED ) - + + 92 * + 56 * 33 ) ) WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - 7 * + 46 - - + 31 THEN - 27 WHEN - 72 THEN NULL ELSE - CASE - 57 WHEN - 64 * 91 THEN NULL WHEN 53 THEN NULL ELSE - 34 END END + + 54 AS col1
----
172196

skipif mysql # not compatible
query I rowsort label-3000
SELECT - 83 * 61 * - CASE + AVG ( DISTINCT + - COALESCE ( + 9, CAST ( - - 2 AS INTEGER ) - + + 92 * + 56 * 33 ) ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 7 * + 46 - - + 31 THEN - 27 WHEN - 72 THEN NULL ELSE - CASE - 57 WHEN - 64 * 91 THEN NULL WHEN 53 THEN NULL ELSE - 34 END END + + 54 AS col1
----
172196

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT MAX( 53 )
----
53

skipif mysql # not compatible
query I rowsort label-3001
SELECT MAX ( 53 )
----
53

query I rowsort
SELECT - 78 - + + 97
----
-175

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT - 49 + 10 DIV + 94 * - 76
----
-49

skipif mysql # not compatible
query I rowsort label-3005
SELECT - 49 + 10 / + 94 * - 76
----
-49

query II rowsort
SELECT ALL - 53 + + 74 + + 19 + + 37 * ( - + 41 ) * + 74 * + + 6 col2, + NULLIF ( + 0, + + 56 )
----
-673508
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT DISTINCT COALESCE ( 29, - 95 DIV - 49, - 9 DIV - 85 )
----
29

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT COALESCE ( 29, - 95 / - 49, - 9 / - 85 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT ALL + 90 + + MAX( ALL - 50 )
----
40

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL + 90 + + MAX ( ALL - 50 )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3010
SELECT DISTINCT CASE MAX( - - 90 ) WHEN 29 * 30 / + + 92 THEN NULL ELSE + - 23 * + + 84 END, 22 AS col1
----
-1932
22

skipif mysql # not compatible
query II rowsort label-3010
SELECT DISTINCT CASE MAX ( - - 90 ) WHEN 29 * 30 / + + 92 THEN NULL ELSE + - 23 * + + 84 END, 22 AS col1
----
-1932
22

onlyif mysql # aggregate syntax: 
query II rowsort label-3011
SELECT DISTINCT - MAX( 74 ) + NULLIF ( + 59, + 68 * + - COUNT( DISTINCT + + 65 ) - + 41 ) * ( + 52 ), 59 AS col1
----
2994
59

skipif mysql # not compatible
query II rowsort label-3011
SELECT DISTINCT - MAX ( 74 ) + NULLIF ( + 59, + 68 * + - COUNT ( DISTINCT + + 65 ) - + 41 ) * ( + 52 ), 59 AS col1
----
2994
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT ALL - 94 + + + COUNT( + - 50 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL - 94 + + + COUNT ( + - 50 ) AS col0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3013
SELECT ALL - - 79 + - COUNT( * ) + 12 * + ( + - 19 ) - + 30 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL - - 79 + - COUNT ( * ) + 12 * + ( + - 19 ) - + 30 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 26 + - ( - 63 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-3015
SELECT + 39 + - - 81 * + - MAX( DISTINCT + 72 ) + + 26 AS col2, + 39 AS col1
----
-5767
39

skipif mysql # not compatible
query II rowsort label-3015
SELECT + 39 + - - 81 * + - MAX ( DISTINCT + 72 ) + + 26 AS col2, + 39 AS col1
----
-5767
39

query II rowsort
SELECT - 30, 52 * 69 + - + 88 AS col2
----
-30
3500

query I rowsort
SELECT - 92 * + 78
----
-7176

query I rowsort
SELECT ALL 36 + 52 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT DISTINCT 41 + + COUNT( - 32 ) + + 39 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT 41 + + COUNT ( - 32 ) + + 39 AS col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3020
SELECT DISTINCT + COUNT( * ) * 52 * 65 AS col0, CAST( NULL AS SIGNED )
----
3380
NULL

skipif mysql # not compatible
query II rowsort label-3020
SELECT DISTINCT + COUNT ( * ) * 52 * 65 AS col0, CAST ( NULL AS INTEGER )
----
3380
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT - + 18 * - - ( - NULLIF ( - ( MIN( - 50 ) ), - ( 86 ) ) ) * 69 - ( - MAX( 43 ) ) + + 62 + 51
----
62256

skipif mysql # not compatible
query I rowsort label-3021
SELECT - + 18 * - - ( - NULLIF ( - ( MIN ( - 50 ) ), - ( 86 ) ) ) * 69 - ( - MAX ( 43 ) ) + + 62 + 51
----
62256

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT + + 12 * + + CASE COUNT( * ) WHEN - + COALESCE ( COUNT( ALL - 64 ), - - 67 * - AVG ( + 36 ) ) THEN 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3022
SELECT + + 12 * + + CASE COUNT ( * ) WHEN - + COALESCE ( COUNT ( ALL - 64 ), - - 67 * - AVG ( + 36 ) ) THEN 40 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3023
SELECT NULLIF ( + 31, + 91 ) / + NULLIF ( - - 0, - + 44 / - + 69 ) / CAST( NULL AS SIGNED ) + COUNT( * ) * - 19 - + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT NULLIF ( + 31, + 91 ) / + NULLIF ( - - 0, - + 44 / - + 69 ) / CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 19 - + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT MIN( - 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-3024
SELECT MIN ( - 30 ) AS col0
----
-30

query II rowsort
SELECT - 87, 81 AS col2
----
-87
81

onlyif mysql # DIV for integer division: 
query II rowsort label-3026
SELECT ALL - 73 AS col2, 65 DIV - - 7
----
-73
9

skipif mysql # not compatible
query II rowsort label-3026
SELECT ALL - 73 AS col2, 65 / - - 7
----
-73
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3027
SELECT ALL 9 DIV + CAST( 45 AS SIGNED ) * + + 73 AS col2, - ( + 93 ) * - 95 + 62 * + 93 * 94 + 30 AS col0
----
0
550869

skipif mysql # not compatible
query II rowsort label-3027
SELECT ALL 9 / + CAST ( 45 AS INTEGER ) * + + 73 AS col2, - ( + 93 ) * - 95 + 62 * + 93 * 94 + 30 AS col0
----
0
550869

onlyif mysql # DIV for integer division: 
query I rowsort label-3028
SELECT 12 DIV 24 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3028
SELECT 12 / 24 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3029
SELECT ALL - 63, 8 DIV 70 AS col0
----
-63
0

skipif mysql # not compatible
query II rowsort label-3029
SELECT ALL - 63, 8 / 70 AS col0
----
-63
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3030
SELECT 2 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-3030
SELECT 2 / + 57
----
0

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

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

query I rowsort
SELECT 8 * + 28 * - - 78
----
17472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3033
SELECT - 79 * + - 17 + + CASE - 51 WHEN + CAST( - 27 AS SIGNED ) THEN - 90 + - 65 * - COALESCE ( + + 29, - ( + 84 ) + + + 95 - ( + 23 ), + COUNT( * ) ) ELSE + 18 - + + COALESCE ( - MIN( 23 ), - 3 ) * - 3 END + CASE + 82 WHEN COUNT( * ) THEN - 34 END * 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT - 79 * + - 17 + + CASE - 51 WHEN + CAST ( - 27 AS INTEGER ) THEN - 90 + - 65 * - COALESCE ( + + 29, - ( + 84 ) + + + 95 - ( + 23 ), + COUNT ( * ) ) ELSE + 18 - + + COALESCE ( - MIN ( 23 ), - 3 ) * - 3 END + CASE + 82 WHEN COUNT ( * ) THEN - 34 END * 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT ( COUNT( * ) ) * - - 81 * + 96 + 2 - + - 22
----
7800

skipif mysql # not compatible
query I rowsort label-3034
SELECT ( COUNT ( * ) ) * - - 81 * + 96 + 2 - + - 22
----
7800

onlyif mysql # DIV for integer division: 
query I rowsort label-3035
SELECT 53 + 77 + ( + ( + 43 ) ) DIV - ( + 37 )
----
129

skipif mysql # not compatible
query I rowsort label-3035
SELECT 53 + 77 + ( + ( + 43 ) ) / - ( + 37 )
----
129

query II rowsort
SELECT + 28 AS col2, + 64 * + - 92
----
28
-5888

query II rowsort
SELECT + 30, 99 AS col2
----
30
99

query I rowsort
SELECT 63 + 77 - + 22
----
118

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

query II rowsort
SELECT 87 AS col2, 31
----
87
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT DISTINCT ( - MIN( DISTINCT - 98 ) ) * 45
----
4410

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT ( - MIN ( DISTINCT - 98 ) ) * 45
----
4410

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT DISTINCT + 3 + 68 + - - MAX( ALL - - NULLIF ( + 42, + + NULLIF ( 66, 82 * 34 ) / - 22 ) ) + - ( - 71 ) col1
----
184

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT + 3 + 68 + - - MAX ( ALL - - NULLIF ( + 42, + + NULLIF ( 66, 82 * 34 ) / - 22 ) ) + - ( - 71 ) col1
----
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3043
SELECT + NULLIF ( - COUNT( * ), - CAST( - 25 AS SIGNED ) ) * + 65 DIV + ( + 18 ) + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3043
SELECT + NULLIF ( - COUNT ( * ), - CAST ( - 25 AS INTEGER ) ) * + 65 / + ( + 18 ) + COUNT ( * )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT 35 - - ( + 27 ) - - CAST( + - 81 AS SIGNED ) * - 68
----
5570

skipif mysql # not compatible
query I rowsort label-3044
SELECT 35 - - ( + 27 ) - - CAST ( + - 81 AS INTEGER ) * - 68
----
5570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3045
SELECT - CASE - 85 WHEN + CASE + NULLIF ( + + 62, - 24 ) WHEN 30 * - - COUNT( * ) / - 66 + - 77 * + 38 THEN NULL WHEN + + 52 THEN - - 60 WHEN + CASE + + CASE - 6 WHEN + 57 + + - 62 - - 84 * - 12 THEN ( + 79 ) END WHEN - CAST( NULL AS SIGNED ) + 86 * - 73 THEN NULL WHEN 89 * 3 THEN NULL WHEN 71 + 63 THEN NULL ELSE + CAST( + 73 AS SIGNED ) END / - 33 THEN NULL ELSE + 41 END * 79 THEN + COUNT( 63 ) WHEN - 60 * CAST( - 73 * - 69 AS DECIMAL ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3045
SELECT - CASE - 85 WHEN + CASE + NULLIF ( + + 62, - 24 ) WHEN 30 * - - COUNT ( * ) / - 66 + - 77 * + 38 THEN NULL WHEN + + 52 THEN - - 60 WHEN + CASE + + CASE - 6 WHEN + 57 + + - 62 - - 84 * - 12 THEN ( + 79 ) END WHEN - CAST ( NULL AS INTEGER ) + 86 * - 73 THEN NULL WHEN 89 * 3 THEN NULL WHEN 71 + 63 THEN NULL ELSE + CAST ( + 73 AS INTEGER ) END / - 33 THEN NULL ELSE + 41 END * 79 THEN + COUNT ( 63 ) WHEN - 60 * CAST ( - 73 * - 69 AS REAL ) THEN NULL END
----
NULL

query I rowsort
SELECT 25 * 12 AS col1
----
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3047
SELECT ALL 25 AS col1, 42 DIV + CAST( - 4 AS SIGNED ) + ( - + MIN( DISTINCT - 91 ) ) AS col1
----
25
81

skipif mysql # not compatible
query II rowsort label-3047
SELECT ALL 25 AS col1, 42 / + CAST ( - 4 AS INTEGER ) + ( - + MIN ( DISTINCT - 91 ) ) AS col1
----
25
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT DISTINCT NULLIF ( + 91, + 57 * + 20 ) + + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT NULLIF ( + 91, + 57 * + 20 ) + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) col0
----
NULL

query II rowsort
SELECT - 86 AS col2, 46 AS col2
----
-86
46

query I rowsort
SELECT ALL - 13 + - + 63 AS col1
----
-76

query I rowsort
SELECT 5 - 9 col2
----
-4

query I rowsort
SELECT ALL - 2 * 28
----
-56

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3054
SELECT + MAX( DISTINCT + 5 ) - - - 74 DIV + 91 + 36 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3054
SELECT + MAX ( DISTINCT + 5 ) - - - 74 / + 91 + 36 AS col1
----
41

query I rowsort
SELECT 84 + + + 28
----
112

query I rowsort
SELECT - 13 * + 29
----
-377

query II rowsort
SELECT 83 AS col2, - 32 AS col1
----
83
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT - COUNT( DISTINCT 98 ) + - 96
----
-97

skipif mysql # not compatible
query I rowsort label-3058
SELECT - COUNT ( DISTINCT 98 ) + - 96
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3059
SELECT - 40 - + - 81 + + 45 + - COUNT( * ) * + - 71 DIV 73 * - 64 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-3059
SELECT - 40 - + - 81 + + 45 + - COUNT ( * ) * + - 71 / 73 * - 64 AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3060
SELECT + 88 DIV + MAX( - + 10 ) + 7 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3060
SELECT + 88 / + MAX ( - + 10 ) + 7 AS col1
----
-1

query I rowsort
SELECT 53 * - - 30 + + 46
----
1636

query I rowsort
SELECT 97 * - 9 * + - 54 + - 78 AS col0
----
47064

onlyif mysql # aggregate syntax: 
query II rowsort label-3063
SELECT ALL 3 * SUM( - + 80 ) AS col1, ( - + COALESCE ( - 62, - - ( - COUNT( * ) ) + + COUNT( * ) + + MIN( + 93 ) + 91 * 6 * + 67 * + 51 + + + 49 ) ) * - 43
----
-240
-2666

skipif mysql # not compatible
query II rowsort label-3063
SELECT ALL 3 * SUM ( - + 80 ) AS col1, ( - + COALESCE ( - 62, - - ( - COUNT ( * ) ) + + COUNT ( * ) + + MIN ( + 93 ) + 91 * 6 * + 67 * + 51 + + + 49 ) ) * - 43
----
-240
-2666

query I rowsort
SELECT DISTINCT - 52 * - 53 * + 11 AS col0
----
30316

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

query I rowsort
SELECT ALL 67 * + 19 AS col2
----
1273

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT CASE - 29 WHEN - + 42 THEN NULL ELSE COUNT( * ) + - 40 + + - 90 END + 26
----
-103

skipif mysql # not compatible
query I rowsort label-3067
SELECT CASE - 29 WHEN - + 42 THEN NULL ELSE COUNT ( * ) + - 40 + + - 90 END + 26
----
-103

query I rowsort
SELECT DISTINCT 2 + + 29 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3069
SELECT DISTINCT CAST( + + 46 AS SIGNED ) + + COUNT( * ) + + 98 AS col0
----
145

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT CAST ( + + 46 AS INTEGER ) + + COUNT ( * ) + + 98 AS col0
----
145

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

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT 54 / - + COUNT ( * )
----
-54

query I rowsort
SELECT DISTINCT - NULLIF ( 71, - - 73 ) + + 61 + - ( + 86 ) AS col1
----
-96

query I rowsort
SELECT 56 * - - 2
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT COUNT( + 16 ) DIV - + 7 * - ( + COUNT( * ) ) * - + 50 * 52
----
0

skipif mysql # not compatible
query I rowsort label-3073
SELECT COUNT ( + 16 ) / - + 7 * - ( + COUNT ( * ) ) * - + 50 * 52
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT 33 + - MAX( DISTINCT + 37 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3075
SELECT 33 + - MAX ( DISTINCT + 37 ) AS col0
----
-4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3077
SELECT - CAST( NULL AS SIGNED ) * - 55 * 21 + + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3077
SELECT - CAST ( NULL AS INTEGER ) * - 55 * 21 + + + 10
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3078
SELECT - 81 - + 20 * COUNT( * ) DIV + 25
----
-81

skipif mysql # not compatible
query I rowsort label-3078
SELECT - 81 - + 20 * COUNT ( * ) / + 25
----
-81

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

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

query I rowsort
SELECT ALL 55 * 67
----
3685

query I rowsort
SELECT 50 + 20
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT ALL - ( + 45 ) + - COUNT( * ) * - 87 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL - ( + 45 ) + - COUNT ( * ) * - 87 AS col1
----
42

query I rowsort
SELECT + 47 + + 45
----
92

query I rowsort
SELECT DISTINCT - 6 * + - 18 / - CASE 51 WHEN - 26 THEN 76 END
----
NULL

query II rowsort
SELECT ALL - ( + - 63 ), - 74 AS col2
----
63
-74

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

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

query I rowsort
SELECT NULLIF ( + 2, 60 ) AS col0
----
2

query I rowsort
SELECT - 10 + - 83 + + + 17
----
-76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3089
SELECT - - 21 + - 30 + COALESCE ( CAST( NULL AS SIGNED ), 69, 90 * - + COALESCE ( + - 23, - 39, - + 40 - + 28 - + 23 DIV + + 17 * - 8 + + 21 ) ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3089
SELECT - - 21 + - 30 + COALESCE ( CAST ( NULL AS INTEGER ), 69, 90 * - + COALESCE ( + - 23, - 39, - + 40 - + 28 - + 23 / + + 17 * - 8 + + 21 ) ) AS col1
----
60

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

skipif mysql # not compatible
query I rowsort label-3090
SELECT - + 46 + + 94 + + COUNT ( * ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL - + 32 * - ( 89 ) + + + COUNT( + - CASE - 22 WHEN + 92 THEN NULL ELSE 51 * + NULLIF ( 88, + + ( 69 ) + 51 + - 80 * + 66 * - COALESCE ( CASE 9 WHEN - ( + + 28 ) THEN NULL WHEN + 61 - + 61 + 11 THEN 6 END, + ( 30 ) ) ) * 69 + 58 END ) + 69 * 24 AS col1
----
4505

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL - + 32 * - ( 89 ) + + + COUNT ( + - CASE - 22 WHEN + 92 THEN NULL ELSE 51 * + NULLIF ( 88, + + ( 69 ) + 51 + - 80 * + 66 * - COALESCE ( CASE 9 WHEN - ( + + 28 ) THEN NULL WHEN + 61 - + 61 + 11 THEN 6 END, + ( 30 ) ) ) * 69 + 58 END ) + 69 * 24 AS col1
----
4505

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT + + 35 DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-3092
SELECT + + 35 / 44
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3093
SELECT ALL + COUNT( * ) DIV 62 AS col2, - 4 col1
----
0
-4

skipif mysql # not compatible
query II rowsort label-3093
SELECT ALL + COUNT ( * ) / 62 AS col2, - 4 col1
----
0
-4

query I rowsort
SELECT DISTINCT - 7 * - ( + 32 ) + + 99 AS col0
----
323

query I rowsort
SELECT ALL 80 * + 85
----
6800

onlyif mysql # DIV for integer division: 
query II rowsort label-3096
SELECT DISTINCT 98 AS col1, 28 DIV + 95
----
98
0

skipif mysql # not compatible
query II rowsort label-3096
SELECT DISTINCT 98 AS col1, 28 / + 95
----
98
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3097
SELECT ALL COALESCE ( - ( - 63 ), 53, COALESCE ( + 49, + 91 DIV COALESCE ( + 73, ( - + 18 ) * + 87 ) + + 83 ) + 31 - - COUNT( * ) )
----
63

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL COALESCE ( - ( - 63 ), 53, COALESCE ( + 49, + 91 / COALESCE ( + 73, ( - + 18 ) * + 87 ) + + 83 ) + 31 - - COUNT ( * ) )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3098
SELECT NULLIF ( - COALESCE ( + 68, + - CAST( ( 86 ) AS SIGNED ) ), + COUNT( * ) + - - 73 - + + NULLIF ( + AVG ( ALL - + 97 ), 37 ) + AVG ( 73 ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3098
SELECT NULLIF ( - COALESCE ( + 68, + - CAST ( ( 86 ) AS INTEGER ) ), + COUNT ( * ) + - - 73 - + + NULLIF ( + AVG ( ALL - + 97 ), 37 ) + AVG ( 73 ) ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT + NULLIF ( + NULLIF ( - + COUNT( * ), SUM( ALL - - 16 ) - - - 71 ), + ( 47 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3099
SELECT + NULLIF ( + NULLIF ( - + COUNT ( * ), SUM ( ALL - - 16 ) - - - 71 ), + ( 47 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3100
SELECT - 44 DIV ( 18 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3100
SELECT - 44 / ( 18 ) AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3101
SELECT - COUNT( * ) DIV - 28 - + ( + - 39 ) * + 84 AS col2
----
3276

skipif mysql # not compatible
query I rowsort label-3101
SELECT - COUNT ( * ) / - 28 - + ( + - 39 ) * + 84 AS col2
----
3276

query I rowsort
SELECT COALESCE ( - 5, + 4 ) AS col1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT - 73 DIV + 65 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3103
SELECT - 73 / + 65 AS col2
----
-1

query I rowsort
SELECT NULLIF ( ( + 49 ), - 77 * - 50 ) AS col1
----
49

query II rowsort
SELECT + 15 AS col1, ( + 50 )
----
15
50

query I rowsort
SELECT NULLIF ( + + 28, - + 73 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT DISTINCT + 12 * - - ( + 78 ) * - - COUNT( * ) + + 50 * + - 16 + 59 * + 97 + + 71 AS col2
----
5930

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT + 12 * - - ( + 78 ) * - - COUNT ( * ) + + 50 * + - 16 + 59 * + 97 + + 71 AS col2
----
5930

query I rowsort
SELECT ALL 71 * 15 * - 56 + - 64
----
-59704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3109
SELECT COALESCE ( + 76, 73 DIV + 84 * + 69 * + SUM( DISTINCT - 90 ) + + - 93 + - - 47 * 11 * NULLIF ( 84, + 38 ) - - 30, 12 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3109
SELECT COALESCE ( + 76, 73 / + 84 * + 69 * + SUM ( DISTINCT - 90 ) + + - 93 + - - 47 * 11 * NULLIF ( 84, + 38 ) - - 30, 12 ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ALL + MAX( DISTINCT 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + MAX ( DISTINCT 88 ) AS col0
----
88

query II rowsort
SELECT ALL - 94 * - 72 * - + 86, 25 * + 95 AS col0
----
-582048
2375

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL 14 * COUNT( DISTINCT - 64 ) + - 55 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL 14 * COUNT ( DISTINCT - 64 ) + - 55 AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3113
SELECT CASE - CAST( NULL AS SIGNED ) WHEN - 78 - + + 13 THEN + - 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3113
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN - 78 - + + 13 THEN + - 55 END
----
NULL

query I rowsort
SELECT - 83 * + + 71 AS col2
----
-5893

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT DISTINCT - 77 * + 9 * + 17 * - COUNT( * ) AS col2
----
11781

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - 77 * + 9 * + 17 * - COUNT ( * ) AS col2
----
11781

query I rowsort
SELECT ( + + 6 ) * 58 - + 25 AS col0
----
323

query I rowsort
SELECT ALL + 56 * + ( + 63 ) - + ( - - 58 ) AS col1
----
3470

onlyif mysql # aggregate syntax: 
query II rowsort label-3118
SELECT ALL + ( ( + + 49 ) ) AS col2, 0 * + - COUNT( * ) AS col0
----
49
0

skipif mysql # not compatible
query II rowsort label-3118
SELECT ALL + ( ( + + 49 ) ) AS col2, 0 * + - COUNT ( * ) AS col0
----
49
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3119
SELECT - CASE - CAST( - 73 AS SIGNED ) WHEN + + 60 THEN NULL WHEN + 1 / - 68 + - COUNT( * ) THEN 35 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT - CASE - CAST ( - 73 AS INTEGER ) WHEN + + 60 THEN NULL WHEN + 1 / - 68 + - COUNT ( * ) THEN 35 ELSE NULL END col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3121
SELECT ALL COUNT( ALL - 59 ) DIV + 84 * - 7 * + 2 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL COUNT ( ALL - 59 ) / + 84 * - 7 * + 2 AS col0
----
0

query II rowsort
SELECT - 82 col2, - 0 col0
----
-82
0

query I rowsort
SELECT ALL 67 * 84 - 54 - + - ( + 51 )
----
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-3124
SELECT - 16 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-3124
SELECT - 16 / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT + ( 71 ) * - - MAX( DISTINCT + - 74 ) * COUNT( * ) * - 42 + - 67
----
220601

skipif mysql # not compatible
query I rowsort label-3125
SELECT + ( 71 ) * - - MAX ( DISTINCT + - 74 ) * COUNT ( * ) * - 42 + - 67
----
220601

query I rowsort
SELECT - - 30 - + 11 * 4
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3127
SELECT DISTINCT CASE + ( 43 ) WHEN + + 75 * - SUM( CAST( NULL AS SIGNED ) ) THEN 9 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT CASE + ( 43 ) WHEN + + 75 * - SUM ( CAST ( NULL AS INTEGER ) ) THEN 9 END * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - ( + 10 ) * - 78 + - - 16 AS col0
----
796

onlyif mysql # DIV for integer division: 
query I rowsort label-3129
SELECT + + 6 * - 5 DIV - - 47 * ( + + 68 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3129
SELECT + + 6 * - 5 / - - 47 * ( + + 68 ) AS col2
----
0

query I rowsort
SELECT ALL + 0 * - 62 + + 93 * - 19 * - + 49
----
86583

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT + COUNT( DISTINCT + 56 ) - 85
----
-84

skipif mysql # not compatible
query I rowsort label-3131
SELECT + COUNT ( DISTINCT + 56 ) - 85
----
-84

query I rowsort
SELECT ALL 18 + + 81
----
99

query II rowsort
SELECT 62 AS col2, + 98
----
62
98

query I rowsort
SELECT + 68 * - 3
----
-204

query I rowsort
SELECT + 80 + 33 * + + 25
----
905

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT ALL NULLIF ( - 54, + + MAX( 26 ) ) + + 86 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL NULLIF ( - 54, + + MAX ( 26 ) ) + + 86 AS col2
----
32

query I rowsort
SELECT + 32 + + + 23 * + - 15
----
-313

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT - COUNT( * ) - - 84
----
83

skipif mysql # not compatible
query I rowsort label-3138
SELECT - COUNT ( * ) - - 84
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-3139
SELECT DISTINCT + 80 * - - 88 AS col0, - COUNT( * )
----
7040
-1

skipif mysql # not compatible
query II rowsort label-3139
SELECT DISTINCT + 80 * - - 88 AS col0, - COUNT ( * )
----
7040
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3140
SELECT ALL + 24 DIV 89 + + COUNT( * ) * 81 AS col0, + 75 AS col0
----
81
75

skipif mysql # not compatible
query II rowsort label-3140
SELECT ALL + 24 / 89 + + COUNT ( * ) * 81 AS col0, + 75 AS col0
----
81
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT DISTINCT - ( - 44 ) DIV 69 - 8 + 83 + 41 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT - ( - 44 ) / 69 - 8 + 83 + 41 AS col2
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-3142
SELECT + 29 DIV - ( + 49 ) * NULLIF ( - 84, 70 ) + 53
----
53

skipif mysql # not compatible
query I rowsort label-3142
SELECT + 29 / - ( + 49 ) * NULLIF ( - 84, 70 ) + 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT + MAX( DISTINCT + 26 ) * - 47 * + + ( - + 43 ) AS col0
----
52546

skipif mysql # not compatible
query I rowsort label-3143
SELECT + MAX ( DISTINCT + 26 ) * - 47 * + + ( - + 43 ) AS col0
----
52546

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3145
SELECT - 91 DIV 61 + COUNT( * ) - + 18 DIV - - 14 - ( 26 ) AS col0, + 38 + - CASE + + 53 WHEN + 41 THEN - ( + 74 ) ELSE NULL END * + + 95 - 28
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-3145
SELECT - 91 / 61 + COUNT ( * ) - + 18 / - - 14 - ( 26 ) AS col0, + 38 + - CASE + + 53 WHEN + 41 THEN - ( + 74 ) ELSE NULL END * + + 95 - 28
----
-27
NULL

query I rowsort
SELECT + 42 * + - 60 * 49 AS col1
----
-123480

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL + MIN( ALL - + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL + MIN ( ALL - + 66 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT - NULLIF ( + 73, - 4 / - COUNT( * ) ) * 22
----
-1606

skipif mysql # not compatible
query I rowsort label-3148
SELECT - NULLIF ( + 73, - 4 / - COUNT ( * ) ) * 22
----
-1606

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3149
SELECT + 24 * - 98 + CAST( 41 AS SIGNED ) * - + 27
----
-3459

skipif mysql # not compatible
query I rowsort label-3149
SELECT + 24 * - 98 + CAST ( 41 AS INTEGER ) * - + 27
----
-3459

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT - - 20 + + MAX( - 28 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-3150
SELECT - - 20 + + MAX ( - 28 ) AS col1
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3151
SELECT + + 8 * + COUNT( * ) + NULLIF ( 12, + - AVG ( DISTINCT 78 ) ) * 19 + + - 11 DIV - 97 AS col2
----
236

skipif mysql # not compatible
query I rowsort label-3151
SELECT + + 8 * + COUNT ( * ) + NULLIF ( 12, + - AVG ( DISTINCT 78 ) ) * 19 + + - 11 / - 97 AS col2
----
236

query I rowsort
SELECT DISTINCT + 23 * 57 * + + ( + 74 ) - + - 42 * + + 19 + + + 75 AS col2
----
97887

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT ALL - MIN( DISTINCT - NULLIF ( - ( - + 87 ), - - 75 + 39 ) )
----
87

skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL - MIN ( DISTINCT - NULLIF ( - ( - + 87 ), - - 75 + 39 ) )
----
87

query I rowsort
SELECT 80 - - 77 * 88 * 57 * - + 33
----
-12745576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3155
SELECT + CAST( - 27 AS SIGNED ) * 86 + 10 AS col0
----
-2312

skipif mysql # not compatible
query I rowsort label-3155
SELECT + CAST ( - 27 AS INTEGER ) * 86 + 10 AS col0
----
-2312

query I rowsort
SELECT 82 + + - 14 + + 38 + + 42
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT MIN( ALL - 97 ) + - 88 + ( - 90 ) + + + 78 * 19 * - 64 + + 83 col1
----
-95040

skipif mysql # not compatible
query I rowsort label-3157
SELECT MIN ( ALL - 97 ) + - 88 + ( - 90 ) + + + 78 * 19 * - 64 + + 83 col1
----
-95040

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3158
SELECT - 50 / 39 * - 85 + ( - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3158
SELECT - 50 / 39 * - 85 + ( - + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT + ( - 3 ) * 74 + + 89 * - + 8 AS col0
----
-934

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT DISTINCT ( + - 9 ) DIV + - COALESCE ( + 74, - - ( - 36 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT ( + - 9 ) / + - COALESCE ( + 74, - - ( - 36 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3161
SELECT 21 DIV + 70 * - MIN( ALL - + COALESCE ( + 66, + + 85 DIV + 72 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3161
SELECT 21 / + 70 * - MIN ( ALL - + COALESCE ( + 66, + + 85 / + 72 ) ) AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-3162
SELECT 57 + - COUNT ( * ) AS col2
----
56

query I rowsort
SELECT DISTINCT 38 * + + ( - 69 ) AS col1
----
-2622

onlyif mysql # aggregate syntax: 
query III rowsort label-3164
SELECT ALL - 8 AS col1, ( + + 70 ) AS col0, + COUNT( * )
----
-8
70
1

skipif mysql # not compatible
query III rowsort label-3164
SELECT ALL - 8 AS col1, ( + + 70 ) AS col0, + COUNT ( * )
----
-8
70
1

query II rowsort
SELECT ALL - 11, 51 AS col2
----
-11
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3166
SELECT - 87 DIV - MAX( DISTINCT 34 ) - + 75 col2
----
-73

skipif mysql # not compatible
query I rowsort label-3166
SELECT - 87 / - MAX ( DISTINCT 34 ) - + 75 col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3167
SELECT CAST( AVG ( DISTINCT COALESCE ( 24, - - 17 ) ) AS SIGNED ) * 43 * - + 32 - ( 49 )
----
-33073

skipif mysql # not compatible
query I rowsort label-3167
SELECT CAST ( AVG ( DISTINCT COALESCE ( 24, - - 17 ) ) AS INTEGER ) * 43 * - + 32 - ( 49 )
----
-33073

query I rowsort
SELECT ALL + 32 * - 67 AS col0
----
-2144

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT DISTINCT 36 DIV + - 28 col1
----
-1

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT 36 / + - 28 col1
----
-1

query II rowsort
SELECT DISTINCT + + ( - 59 ) * + 18 * + 88 + + 33 AS col1, + 15 AS col2
----
-93423
15

query I rowsort
SELECT - 32 - 63 - + 87
----
-182

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT ALL 24 * - + 97 * - CASE + - 72 WHEN + COUNT( * ) / - 49 / + 40 - - 66 * - ( - ( - 74 ) ) + + 25 + 31 * - 7 THEN NULL WHEN - NULLIF ( - + NULLIF ( - - 51, - 27 + - 39 ), - NULLIF ( ( 55 ), - 48 ) * - CASE + 2 WHEN + 12 + + 0 * COUNT( * ) THEN NULL WHEN 53 THEN 95 - - COUNT( * ) ELSE NULL END ) THEN + NULLIF ( + COUNT( ALL 73 ), 0 ) ELSE - 83 END AS col1
----
-193224

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL 24 * - + 97 * - CASE + - 72 WHEN + COUNT ( * ) / - 49 / + 40 - - 66 * - ( - ( - 74 ) ) + + 25 + 31 * - 7 THEN NULL WHEN - NULLIF ( - + NULLIF ( - - 51, - 27 + - 39 ), - NULLIF ( ( 55 ), - 48 ) * - CASE + 2 WHEN + 12 + + 0 * COUNT ( * ) THEN NULL WHEN 53 THEN 95 - - COUNT ( * ) ELSE NULL END ) THEN + NULLIF ( + COUNT ( ALL 73 ), 0 ) ELSE - 83 END AS col1
----
-193224

query II rowsort
SELECT + 16, + 51 AS col2
----
16
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3176
SELECT - 63 + COUNT( * ) DIV + 15 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-3176
SELECT - 63 + COUNT ( * ) / + 15 AS col0
----
-63

query I rowsort
SELECT CASE - 22 WHEN - 76 THEN 61 WHEN - 81 THEN - 44 ELSE NULL END / + - 41
----
NULL

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

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

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

query I rowsort
SELECT 97 * 33
----
3201

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

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

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

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

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL - - COUNT ( * ) + - + 58 AS col2
----
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT + MAX( 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3186
SELECT + MAX ( 5 ) AS col1
----
5

query II rowsort
SELECT - - 66 AS col1, 16 * - 61 * + ( + ( 72 ) ) AS col2
----
66
-70272

query I rowsort
SELECT 53 - + 5 AS col1
----
48

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT 43 * - + 57 * - NULLIF ( + + COUNT( * ), - 71 )
----
2451

skipif mysql # not compatible
query I rowsort label-3191
SELECT 43 * - + 57 * - NULLIF ( + + COUNT ( * ), - 71 )
----
2451

query II rowsort
SELECT 21 + 2 AS col0, - 87
----
23
-87

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

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL - COUNT ( * ) + - 32 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT DISTINCT + CASE + SUM( - + 76 ) WHEN COUNT( * ) THEN + - 38 END + + - ( 5 ) * 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT + CASE + SUM ( - + 76 ) WHEN COUNT ( * ) THEN + - 38 END + + - ( 5 ) * 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL 97 + + COUNT( DISTINCT + - 35 ) col1
----
98

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL 97 + + COUNT ( DISTINCT + - 35 ) col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT ALL COUNT( - - 43 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL COUNT ( - - 43 ) AS col2
----
1

query I rowsort
SELECT 56 + - 6
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3198
SELECT ALL 91 DIV - 51 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL 91 / - 51 AS col0
----
-1

query I rowsort
SELECT 63 * + 97 * + 93 AS col1
----
568323

onlyif mysql # aggregate syntax: 
query II rowsort label-3200
SELECT DISTINCT COUNT( * ) AS col0, SUM( + 5 )
----
1
5

skipif mysql # not compatible
query II rowsort label-3200
SELECT DISTINCT COUNT ( * ) AS col0, SUM ( + 5 )
----
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT 37 + COUNT( * ) * + 55
----
92

skipif mysql # not compatible
query I rowsort label-3201
SELECT 37 + COUNT ( * ) * + 55
----
92

query II rowsort
SELECT - 69 AS col0, - 25 AS col0
----
-69
-25

query I rowsort
SELECT DISTINCT + 90 - + - 12 AS col2
----
102

query I rowsort
SELECT 53 * + 91 AS col2
----
4823

query I rowsort
SELECT ( - 23 ) - AVG ( + CASE 0 WHEN 32 THEN + ( 72 ) WHEN - - 70 * + - 15 THEN NULL ELSE NULL END ) + - 56 + - - 40 + 58 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 90 * - 98 AS col1
----
-8820

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT ALL MIN( ALL + 34 ) * - 78 AS col0
----
-2652

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL MIN ( ALL + 34 ) * - 78 AS col0
----
-2652

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL + 73 * - 54 * NULLIF ( - NULLIF ( 7, 32 ), - 47 / COUNT( * ) ) * 7 * - - COUNT( * ) + 14 AS col0
----
193172

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL + 73 * - 54 * NULLIF ( - NULLIF ( 7, 32 ), - 47 / COUNT ( * ) ) * 7 * - - COUNT ( * ) + 14 AS col0
----
193172

query I rowsort
SELECT DISTINCT + ( - + 89 ) * - + 2 + + 76 AS col0
----
254

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3210
SELECT + NULLIF ( COALESCE ( + CAST( 70 AS SIGNED ), - + 57 * + 41 - ( + 52 ) + + - 86 + - - 77 DIV - ( - CAST( NULL AS SIGNED ) ) + 10, - 65, - - 78 ), - CASE - + CASE 74 WHEN - 18 THEN + 8 + + 88 ELSE NULL END WHEN + 90 * ( - 78 ) * - 27 * - - 56 DIV 28 - + 4 THEN 96 ELSE NULL END DIV - 25 ) * COALESCE ( 40 * 78 - + 40, 7 ) AS col1
----
215600

skipif mysql # not compatible
query I rowsort label-3210
SELECT + NULLIF ( COALESCE ( + CAST ( 70 AS INTEGER ), - + 57 * + 41 - ( + 52 ) + + - 86 + - - 77 / - ( - CAST ( NULL AS INTEGER ) ) + 10, - 65, - - 78 ), - CASE - + CASE 74 WHEN - 18 THEN + 8 + + 88 ELSE NULL END WHEN + 90 * ( - 78 ) * - 27 * - - 56 / 28 - + 4 THEN 96 ELSE NULL END / - 25 ) * COALESCE ( 40 * 78 - + 40, 7 ) AS col1
----
215600

query II rowsort
SELECT - 89 AS col0, 42
----
-89
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3212
SELECT + - 43 + + + COALESCE ( - + CAST( NULL AS SIGNED ), - - 9, 90, - AVG ( - + 38 ) - + - AVG ( - - 58 ) + - 85 * + + 93 * - 72 * + COUNT( * ) ) DIV + + 83 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-3212
SELECT + - 43 + + + COALESCE ( - + CAST ( NULL AS INTEGER ), - - 9, 90, - AVG ( - + 38 ) - + - AVG ( - - 58 ) + - 85 * + + 93 * - 72 * + COUNT ( * ) ) / + + 83 AS col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3213
SELECT ALL + 22, CAST( 18 AS SIGNED ) AS col0
----
22
18

skipif mysql # not compatible
query II rowsort label-3213
SELECT ALL + 22, CAST ( 18 AS INTEGER ) AS col0
----
22
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3214
SELECT + + 68 DIV + + 51
----
1

skipif mysql # not compatible
query I rowsort label-3214
SELECT + + 68 / + + 51
----
1

query I rowsort
SELECT DISTINCT + NULLIF ( - - 57, + 74 ) * 46 * + 23 + + 1 - - - CASE 7 WHEN 44 THEN - + 55 WHEN + 90 * 97 + + AVG ( ALL 43 ) / 91 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 70 * - 54 + + + 6 + + 18 - - 68 * + 14 * - 57 * + 13 * 61
----
-43027548

query I rowsort
SELECT + 54 + - 54 AS col2
----
0

query I rowsort
SELECT - 85 * + COALESCE ( + 52, - 84 ) * - + 9 * - COALESCE ( 50, - 35 ) + 23 * + + 17 + + 3 AS col0
----
-1988606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3219
SELECT 41 * + 12 - + - ( - - NULLIF ( COALESCE ( + 11, - ( + 13 ) ), + + CAST( - 45 AS SIGNED ) + - ( + 86 ) ) ) + + 82 + + - 99 + - - COALESCE ( + 80, - - COUNT( * ) * + - 38 DIV + 33 * - + MAX( DISTINCT + 30 ) * - 42 + - - 70 * 56, + 63 * - 21 * - ( - ( 68 ) * 68 ) ) + 44 * + 6 * + 85 AS col0
----
23006

skipif mysql # not compatible
query I rowsort label-3219
SELECT 41 * + 12 - + - ( - - NULLIF ( COALESCE ( + 11, - ( + 13 ) ), + + CAST ( - 45 AS INTEGER ) + - ( + 86 ) ) ) + + 82 + + - 99 + - - COALESCE ( + 80, - - COUNT ( * ) * + - 38 / + 33 * - + MAX ( DISTINCT + 30 ) * - 42 + - - 70 * 56, + 63 * - 21 * - ( - ( 68 ) * 68 ) ) + 44 * + 6 * + 85 AS col0
----
23006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3220
SELECT - - 36 - - + 90 + + 10 + + - CAST( NULL AS SIGNED ) - + CAST( - - 57 AS SIGNED ) + + + 96 + 56 * + - MIN( - - 92 ) * + + 89 + + 52 + - 17 + - - 78 * + - 86 * - 64 * - COALESCE ( + 98, 78 ) - + + 80 * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT - - 36 - - + 90 + + 10 + + - CAST ( NULL AS INTEGER ) - + CAST ( - - 57 AS INTEGER ) + + + 96 + 56 * + - MIN ( - - 92 ) * + + 89 + + 52 + - 17 + - - 78 * + - 86 * - 64 * - COALESCE ( + 98, 78 ) - + + 80 * - 85
----
NULL

query II rowsort
SELECT - 31 AS col0, 91 * - 8
----
-31
-728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3222
SELECT ALL NULLIF ( + + 80, + 12 * - - 99 - - - CAST( NULL AS SIGNED ) * + 90 * CAST( 7 AS SIGNED ) ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL NULLIF ( + + 80, + 12 * - - 99 - - - CAST ( NULL AS INTEGER ) * + 90 * CAST ( 7 AS INTEGER ) ) AS col2
----
80

query I rowsort
SELECT - 3 + - 79 * 74
----
-5849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3224
SELECT ALL COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT - SUM( + 93 ) + - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-3225
SELECT - SUM ( + 93 ) + - COUNT ( * )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT ALL CASE + 55 WHEN - - 16 * + 71 + ( 9 ) THEN - CAST( - CASE + COUNT( - 3 ) WHEN + 70 * - 32 * - 5 / 83 * + COUNT( * ) THEN NULL ELSE - NULLIF ( + ( + 26 ), 34 ) END AS SIGNED ) WHEN + 25 + NULLIF ( - - 49, + ( + 65 ) - AVG ( + - 79 ) ) THEN NULL ELSE - 77 - 4 END AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL CASE + 55 WHEN - - 16 * + 71 + ( 9 ) THEN - CAST ( - CASE + COUNT ( - 3 ) WHEN + 70 * - 32 * - 5 / 83 * + COUNT ( * ) THEN NULL ELSE - NULLIF ( + ( + 26 ), 34 ) END AS INTEGER ) WHEN + 25 + NULLIF ( - - 49, + ( + 65 ) - AVG ( + - 79 ) ) THEN NULL ELSE - 77 - 4 END AS col2
----
-81

query I rowsort
SELECT + 67 * 45
----
3015

query I rowsort
SELECT - 73 * - 5 * - 29
----
-10585

query I rowsort
SELECT DISTINCT - 58 * + + ( - 8 )
----
464

onlyif mysql # aggregate syntax: 
query II rowsort label-3230
SELECT ALL CASE - + COUNT( - + 58 ) WHEN - ( - - ( - - COUNT( * ) ) ) THEN - - 80 - - + 39 END col0, - 62 AS col0
----
119
-62

skipif mysql # not compatible
query II rowsort label-3230
SELECT ALL CASE - + COUNT ( - + 58 ) WHEN - ( - - ( - - COUNT ( * ) ) ) THEN - - 80 - - + 39 END col0, - 62 AS col0
----
119
-62

query I rowsort
SELECT - 37 * - 43
----
1591

query I rowsort
SELECT DISTINCT ( - + 30 ) AS col1
----
-30

query I rowsort
SELECT DISTINCT - 59 * - 23
----
1357

onlyif mysql # aggregate syntax: 
query II rowsort label-3234
SELECT ALL ( + COUNT( * ) ) AS col0, CASE - 53 WHEN - 61 THEN + 84 END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3234
SELECT ALL ( + COUNT ( * ) ) AS col0, CASE - 53 WHEN - 61 THEN + 84 END
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3235
SELECT DISTINCT CAST( + 88 AS SIGNED ) AS col1, 40 + - 63
----
88
-23

skipif mysql # not compatible
query II rowsort label-3235
SELECT DISTINCT CAST ( + 88 AS INTEGER ) AS col1, 40 + - 63
----
88
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3236
SELECT + + COALESCE ( CAST( NULL AS SIGNED ), - COUNT( * ) * + CAST( NULL AS SIGNED ) - - - COUNT( - 42 ) ) / 75 - - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3236
SELECT + + COALESCE ( CAST ( NULL AS INTEGER ), - COUNT ( * ) * + CAST ( NULL AS INTEGER ) - - - COUNT ( - 42 ) ) / 75 - - 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL + NULLIF ( - ( - ( COUNT( * ) ) ), 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL + NULLIF ( - ( - ( COUNT ( * ) ) ), 46 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3238
SELECT - + ( + 19 ) * - 4 * - 97 + - 56 DIV - - 90
----
-7372

skipif mysql # not compatible
query I rowsort label-3238
SELECT - + ( + 19 ) * - 4 * - 97 + - 56 / - - 90
----
-7372

query I rowsort
SELECT + - 8 * - 22 + - - ( 24 ) * - 86 AS col0
----
-1888

query I rowsort
SELECT + 12 * 55 AS col0
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT - 75 * 62 - - COUNT( ( - 84 ) ) + + 15
----
-4634

skipif mysql # not compatible
query I rowsort label-3241
SELECT - 75 * 62 - - COUNT ( ( - 84 ) ) + + 15
----
-4634

onlyif mysql # aggregate syntax: 
query II rowsort label-3242
SELECT ALL + - MIN( DISTINCT - 90 ) col0, 14 AS col1
----
90
14

skipif mysql # not compatible
query II rowsort label-3242
SELECT ALL + - MIN ( DISTINCT - 90 ) col0, 14 AS col1
----
90
14

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3244
SELECT ALL + 73 * + AVG ( ALL 14 ) * - ( - + 27 ) + - - 25 - 28 - 48 + 45 * - + SUM( + 80 ) * + 97 * + - 16 + - 38 + - 85 + CAST( NULL AS SIGNED ) * + 17 * - - ( - + COUNT( * ) ) + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL + 73 * + AVG ( ALL 14 ) * - ( - + 27 ) + - - 25 - 28 - 48 + 45 * - + SUM ( + 80 ) * + 97 * + - 16 + - 38 + - 85 + CAST ( NULL AS INTEGER ) * + 17 * - - ( - + COUNT ( * ) ) + 24
----
NULL

query I rowsort
SELECT - - ( + - 7 ) * - 14 * - 62
----
-6076

query I rowsort
SELECT + - 90 + + 9 AS col0
----
-81

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

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

query I rowsort
SELECT + - 46 * + + 90 AS col1
----
-4140

onlyif mysql # DIV for integer division: 
query I rowsort label-3249
SELECT + 3 DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3249
SELECT + 3 / 88 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3250
SELECT DISTINCT 15 * 62 DIV COUNT( * ) col0
----
930

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT 15 * 62 / COUNT ( * ) col0
----
930

onlyif mysql # DIV for integer division: 
query I rowsort label-3251
SELECT DISTINCT COALESCE ( 40, - 78 ) DIV - + 16
----
-2

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT COALESCE ( 40, - 78 ) / - + 16
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT - NULLIF ( - COUNT( * ), + - 21 + + ( - 50 ) * + + ( 72 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3252
SELECT - NULLIF ( - COUNT ( * ), + - 21 + + ( - 50 ) * + + ( 72 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT + 50 * - 6 * - ( NULLIF ( - 82, - 52 * - + CASE - 78 WHEN - COUNT( * ) - - 68 THEN NULLIF ( - 53, + + 33 ) WHEN 23 * + 41 THEN NULL END * - 28 + + + 66 + + 76 ) ) AS col2
----
-24600

skipif mysql # not compatible
query I rowsort label-3253
SELECT + 50 * - 6 * - ( NULLIF ( - 82, - 52 * - + CASE - 78 WHEN - COUNT ( * ) - - 68 THEN NULLIF ( - 53, + + 33 ) WHEN 23 * + 41 THEN NULL END * - 28 + + + 66 + + 76 ) ) AS col2
----
-24600

query I rowsort
SELECT + 67 - + - 40
----
107

query I rowsort
SELECT + 44 + + 60
----
104

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

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL MAX ( - 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT + COUNT( * ) + 89 * ( - 39 ) * - COUNT( * ) * + + 9 AS col0
----
31240

skipif mysql # not compatible
query I rowsort label-3257
SELECT + COUNT ( * ) + 89 * ( - 39 ) * - COUNT ( * ) * + + 9 AS col0
----
31240

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

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

query I rowsort
SELECT + 14 - + 67
----
-53

query I rowsort
SELECT + ( + - 53 ) - - + 13
----
-40

query I rowsort
SELECT DISTINCT 13 + + + 65
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3262
SELECT ALL + 82 + - 36 - - 85 AS col2, COUNT( + 22 ) AS col2
----
131
1

skipif mysql # not compatible
query II rowsort label-3262
SELECT ALL + 82 + - 36 - - 85 AS col2, COUNT ( + 22 ) AS col2
----
131
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3263
SELECT CAST( + 86 AS SIGNED ) + - 48
----
38

skipif mysql # not compatible
query I rowsort label-3263
SELECT CAST ( + 86 AS INTEGER ) + - 48
----
38

query I rowsort
SELECT 16 - - - 78
----
-62

query I rowsort
SELECT ALL - 10 * - 40 col2
----
400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3266
SELECT - 60 * - 20 * - NULLIF ( - MAX( DISTINCT + 74 ), 84 ) * - 6 + + - 16 DIV 41 - + + 66 - - - 83 AS col1, - 51
----
-532949
-51

skipif mysql # not compatible
query II rowsort label-3266
SELECT - 60 * - 20 * - NULLIF ( - MAX ( DISTINCT + 74 ), 84 ) * - 6 + + - 16 / 41 - + + 66 - - - 83 AS col1, - 51
----
-532949
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT + 34 - - MAX( - + 15 ) + - COUNT( * ) col2
----
18

skipif mysql # not compatible
query I rowsort label-3267
SELECT + 34 - - MAX ( - + 15 ) + - COUNT ( * ) col2
----
18

query I rowsort
SELECT DISTINCT - 15 + + 3 * + - 51
----
-168

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3270
SELECT ALL + CAST( - 43 AS SIGNED ) + - 41, 83 + + 53 * + 93 + + 74 DIV - + 92 AS col0
----
-84
5012

skipif mysql # not compatible
query II rowsort label-3270
SELECT ALL + CAST ( - 43 AS INTEGER ) + - 41, 83 + + 53 * + 93 + + 74 / - + 92 AS col0
----
-84
5012

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT + - CASE - + ( 59 ) WHEN + 54 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE - ( + 61 ) - + - 40 END AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3271
SELECT + - CASE - + ( 59 ) WHEN + 54 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE - ( + 61 ) - + - 40 END AS col1
----
21

query I rowsort
SELECT + 76 + - ( - 27 )
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT 49 * SUM( - + 45 ) AS col2
----
-2205

skipif mysql # not compatible
query I rowsort label-3273
SELECT 49 * SUM ( - + 45 ) AS col2
----
-2205

query I rowsort
SELECT 51 + - 40 col2
----
11

query I rowsort
SELECT - 18 * - 98 + - 41 * - + 77 + 49 col1
----
4970

query I rowsort
SELECT DISTINCT - CASE - 12 WHEN 43 THEN 7 + - 4 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3277
SELECT ALL - CAST( + CAST( - + 67 AS SIGNED ) AS SIGNED ) * - - 5 * - COUNT( * ), - 61 * + NULLIF ( COUNT( * ), - CAST( 32 AS SIGNED ) ) AS col1
----
-335
-61

skipif mysql # not compatible
query II rowsort label-3277
SELECT ALL - CAST ( + CAST ( - + 67 AS INTEGER ) AS INTEGER ) * - - 5 * - COUNT ( * ), - 61 * + NULLIF ( COUNT ( * ), - CAST ( 32 AS INTEGER ) ) AS col1
----
-335
-61

query I rowsort
SELECT 72 - + 65 + 76 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT MAX( DISTINCT + 28 ) * - + 86 col0
----
-2408

skipif mysql # not compatible
query I rowsort label-3279
SELECT MAX ( DISTINCT + 28 ) * - + 86 col0
----
-2408

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT + COUNT( * ) * + 63 + + 24 col0
----
87

skipif mysql # not compatible
query I rowsort label-3280
SELECT + COUNT ( * ) * + 63 + + 24 col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT COUNT( ALL 48 ) * - 22 * 70 * + 27
----
-41580

skipif mysql # not compatible
query I rowsort label-3281
SELECT COUNT ( ALL 48 ) * - 22 * 70 * + 27
----
-41580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3282
SELECT ALL 8 DIV + 69 * MAX( DISTINCT + 17 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL 8 / + 69 * MAX ( DISTINCT + 17 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3283
SELECT DISTINCT 37 + + ( - COALESCE ( - - 70, - CASE + 21 WHEN - 60 THEN - - 58 * + + 99 + - 99 + + 88 ELSE - CAST( - + 28 AS SIGNED ) * - - 96 END * + 92 + - CAST( NULL AS SIGNED ) DIV 93 * + - AVG ( DISTINCT + - 78 ) DIV 91, - 99 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT 37 + + ( - COALESCE ( - - 70, - CASE + 21 WHEN - 60 THEN - - 58 * + + 99 + - 99 + + 88 ELSE - CAST ( - + 28 AS INTEGER ) * - - 96 END * + 92 + - CAST ( NULL AS INTEGER ) / 93 * + - AVG ( DISTINCT + - 78 ) / 91, - 99 ) )
----
-33

query I rowsort
SELECT ALL 66 * COALESCE ( - - 39, + 46 ) AS col1
----
2574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3285
SELECT CASE + 16 WHEN + + 67 * + 91 THEN NULL ELSE - 49 * - CASE + COALESCE ( - 77, + 76, + 12 ) WHEN + 94 * 37 + + 9 THEN NULL WHEN + + CAST( NULL AS SIGNED ) THEN NULL WHEN - COALESCE ( - MIN( ALL 16 ), - 84 ) + 15 - + 92 THEN + + 62 END + + COUNT( * ) + 2 - + + 81 * - 15 END * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT CASE + 16 WHEN + + 67 * + 91 THEN NULL ELSE - 49 * - CASE + COALESCE ( - 77, + 76, + 12 ) WHEN + 94 * 37 + + 9 THEN NULL WHEN + + CAST ( NULL AS INTEGER ) THEN NULL WHEN - COALESCE ( - MIN ( ALL 16 ), - 84 ) + 15 - + 92 THEN + + 62 END + + COUNT ( * ) + 2 - + + 81 * - 15 END * 30
----
NULL

query I rowsort
SELECT ALL 1 + + 40 + + 59
----
100

query I rowsort
SELECT 90 * ( 9 ) AS col2
----
810

query I rowsort
SELECT DISTINCT 71 * + ( - COALESCE ( + + 99, + 6 ) ) AS col1
----
-7029

query I rowsort
SELECT ALL + 50 * + 12
----
600

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3291
SELECT ALL COALESCE ( 67, 18, COUNT( * ) ) AS col2, - ( COUNT( 77 ) ) col2
----
67
-1

skipif mysql # not compatible
query II rowsort label-3291
SELECT ALL COALESCE ( 67, 18, COUNT ( * ) ) AS col2, - ( COUNT ( 77 ) ) col2
----
67
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL + CASE - 84 WHEN + ( - 79 ) THEN 88 * + 84 + + 31 WHEN 53 * + + COUNT( * ) / + AVG ( 88 ) + + MAX( ALL + + 44 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL + CASE - 84 WHEN + ( - 79 ) THEN 88 * + 84 + + 31 WHEN 53 * + + COUNT ( * ) / + AVG ( 88 ) + + MAX ( ALL + + 44 ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ( + 88 ) + - 93
----
-5

query I rowsort
SELECT ALL 90 * 21 + + 10 AS col1
----
1900

query II rowsort
SELECT + 65 - + + 50 AS col1, 23 * - + 94 AS col2
----
15
-2162

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT DISTINCT + + 36 * SUM( - + 86 ) * + 86 col2
----
-266256

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT + + 36 * SUM ( - + 86 ) * + 86 col2
----
-266256

query I rowsort
SELECT ALL + 0 * + + 80 - - 42
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3298
SELECT DISTINCT - CAST( - 42 AS SIGNED ), 48 DIV 91 * - CASE NULLIF ( - + 23, + COUNT( * ) ) WHEN - 15 THEN NULL ELSE - ( - - 46 ) END AS col0
----
42
0

skipif mysql # not compatible
query II rowsort label-3298
SELECT DISTINCT - CAST ( - 42 AS INTEGER ), 48 / 91 * - CASE NULLIF ( - + 23, + COUNT ( * ) ) WHEN - 15 THEN NULL ELSE - ( - - 46 ) END AS col0
----
42
0

query I rowsort
SELECT ALL - 73 * - 84 + + 53 col0
----
6185

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ALL - 36 * + + ( 28 ) - - COUNT( DISTINCT + 12 ) AS col1
----
-1007

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL - 36 * + + ( 28 ) - - COUNT ( DISTINCT + 12 ) AS col1
----
-1007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3301
SELECT ALL - SUM( ALL - + 41 ), - CAST( - - 61 AS SIGNED ) col1
----
41
-61

skipif mysql # not compatible
query II rowsort label-3301
SELECT ALL - SUM ( ALL - + 41 ), - CAST ( - - 61 AS INTEGER ) col1
----
41
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3302
SELECT ALL - COALESCE ( + + 11, 65 * ( - - 72 ) + - COALESCE ( 15, - CAST( NULL AS SIGNED ) * + 95 ) * - COUNT( * ), + 94 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL - COALESCE ( + + 11, 65 * ( - - 72 ) + - COALESCE ( 15, - CAST ( NULL AS INTEGER ) * + 95 ) * - COUNT ( * ), + 94 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT ALL - + MIN( COALESCE ( - + 19, 45, + 18 * 51 ) ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL - + MIN ( COALESCE ( - + 19, 45, + 18 * 51 ) ) AS col2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3304
SELECT 40 DIV + 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3304
SELECT 40 / + 47 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3305
SELECT MAX( DISTINCT - 63 ) DIV + COALESCE ( + - 84, 42 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3305
SELECT MAX ( DISTINCT - 63 ) / + COALESCE ( + - 84, 42 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3306
SELECT ALL + 17 DIV 5 col1
----
3

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL + 17 / 5 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT 46 * 72 * + COUNT( * )
----
3312

skipif mysql # not compatible
query I rowsort label-3307
SELECT 46 * 72 * + COUNT ( * )
----
3312

query I rowsort
SELECT DISTINCT - 99 * - + 69
----
6831

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL - NULLIF ( - COUNT( * ), 5 + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL - NULLIF ( - COUNT ( * ), 5 + 0 )
----
1

query I rowsort
SELECT DISTINCT + 27 * - 24
----
-648

query I rowsort
SELECT DISTINCT 26 * + - 96 * 64
----
-159744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3312
SELECT ALL + COALESCE ( - 33, + COUNT( * ) + - ( CASE - AVG ( - - 50 ) WHEN - 36 + + MIN( ALL - COALESCE ( - 6, 85 + - 12, - 82 + - 27 * CAST( NULL AS SIGNED ), + 66 + - CASE + + 82 WHEN 50 THEN NULL WHEN + 15 THEN 99 * 24 + + 90 END ) ) THEN NULL WHEN COUNT( * ) THEN + 63 DIV - CAST( COUNT( * ) AS SIGNED ) + + COUNT( + + 71 ) + 56 END ), 79 + + COUNT( DISTINCT + 14 ) DIV + 26 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL + COALESCE ( - 33, + COUNT ( * ) + - ( CASE - AVG ( - - 50 ) WHEN - 36 + + MIN ( ALL - COALESCE ( - 6, 85 + - 12, - 82 + - 27 * CAST ( NULL AS INTEGER ), + 66 + - CASE + + 82 WHEN 50 THEN NULL WHEN + 15 THEN 99 * 24 + + 90 END ) ) THEN NULL WHEN COUNT ( * ) THEN + 63 / - CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( + + 71 ) + 56 END ), 79 + + COUNT ( DISTINCT + 14 ) / + 26 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT DISTINCT - MAX( + 62 ) + + 86
----
24

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT - MAX ( + 62 ) + + 86
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3314
SELECT - CASE 26 WHEN 0 * - + CAST( NULL AS SIGNED ) - + 72 THEN - 35 * 97 END + CAST( NULL AS SIGNED ) + + 47 - + 87 * - 58 * + - 93 * - 62 AS col0, 59
----
NULL
59

skipif mysql # not compatible
query II rowsort label-3314
SELECT - CASE 26 WHEN 0 * - + CAST ( NULL AS INTEGER ) - + 72 THEN - 35 * 97 END + CAST ( NULL AS INTEGER ) + + 47 - + 87 * - 58 * + - 93 * - 62 AS col0, 59
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT DISTINCT CASE 51 WHEN - 92 + - + 57 THEN + 39 / + - 25 WHEN + 21 * + 42 THEN NULL ELSE + 24 * - 12 * - 60 * MAX( - 15 ) - 17 END
----
-259217

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT CASE 51 WHEN - 92 + - + 57 THEN + 39 / + - 25 WHEN + 21 * + 42 THEN NULL ELSE + 24 * - 12 * - 60 * MAX ( - 15 ) - 17 END
----
-259217

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT ALL - 55 + 37 + - 72 * ( - - COUNT( * ) )
----
-90

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL - 55 + 37 + - 72 * ( - - COUNT ( * ) )
----
-90

query I rowsort
SELECT - 31 + 60 col2
----
29

query I rowsort
SELECT DISTINCT 60 + + 86 col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT ALL COALESCE ( ( - COUNT( * ) ), - - 98, + 45 ) + - - 1 + 0 * + - 66
----
0

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL COALESCE ( ( - COUNT ( * ) ), - - 98, + 45 ) + - - 1 + 0 * + - 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT ALL - MIN( - + 30 ) + + 98 + 5 * - 71 * + CASE 8 WHEN - + NULLIF ( + 37, - - 21 ) THEN - 79 * + 82 WHEN + - 24 THEN NULL ELSE - 64 + + - 88 END
----
54088

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL - MIN ( - + 30 ) + + 98 + 5 * - 71 * + CASE 8 WHEN - + NULLIF ( + 37, - - 21 ) THEN - 79 * + 82 WHEN + - 24 THEN NULL ELSE - 64 + + - 88 END
----
54088

query I rowsort
SELECT + 0 - - 55 * 92 * - - 88 + - 93
----
445187

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT DISTINCT - + COUNT( * ) + ( - 49 ) + 24 * 92 AS col1
----
2158

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT - + COUNT ( * ) + ( - 49 ) + 24 * 92 AS col1
----
2158

query I rowsort
SELECT ALL ( - + NULLIF ( - 0, - 98 ) ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT ALL + 55 - 14 + - + 76 * COUNT( DISTINCT 83 ) * + - ( - + 71 )
----
-5355

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL + 55 - 14 + - + 76 * COUNT ( DISTINCT 83 ) * + - ( - + 71 )
----
-5355

query I rowsort
SELECT DISTINCT + 96 * - 39 AS col1
----
-3744

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT + 5 * + 78 * - 38 * COUNT( * ) AS col1
----
-14820

skipif mysql # not compatible
query I rowsort label-3327
SELECT + 5 * + 78 * - 38 * COUNT ( * ) AS col1
----
-14820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3328
SELECT ALL SUM( - 30 ) * - 35 * - 89 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL SUM ( - 30 ) * - 35 * - 89 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 79 * - 90 + + 26 AS col0
----
-7084

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

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

query II rowsort
SELECT 59, 30 + + - 5 AS col2
----
59
25

query I rowsort
SELECT + 62 + 16 col1
----
78

query II rowsort
SELECT ALL 43 AS col2, - 40
----
43
-40

query I rowsort
SELECT + + 8 * - 62 - 3 AS col2
----
-499

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

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL + COUNT ( * ) * + COUNT ( * ) + 18 col0
----
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT - ( + + 17 ) * - 31 * + 2 + + 44 * 72 + - - COUNT( * )
----
4223

skipif mysql # not compatible
query I rowsort label-3337
SELECT - ( + + 17 ) * - 31 * + 2 + + 44 * 72 + - - COUNT ( * )
----
4223

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

query I rowsort
SELECT + - 10 * - - CASE + - 38 WHEN 10 THEN NULL ELSE + 43 END + - ( + 8 ) AS col1
----
-438

query II rowsort
SELECT ALL + + 82 AS col2, - 44 * + 72 - 65 + + + 11 AS col1
----
82
-3222

query I rowsort
SELECT + 51 * + 31 + 27 AS col0
----
1608

query I rowsort
SELECT + 21 * + 24
----
504

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

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

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

query I rowsort
SELECT + - 81 + + 46 + + 46 AS col2
----
11

query II rowsort
SELECT + 28 AS col0, + 34
----
28
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3347
SELECT + 57 * + COUNT( * ) + + - CAST( NULL AS SIGNED ) / + MIN( + 89 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT + 57 * + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) / + MIN ( + 89 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 13 * + - 47 * - 41 col2
----
25051

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

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

query I rowsort
SELECT ALL 76 * 90 + - - 34 AS col1
----
6874

query I rowsort
SELECT NULLIF ( - - 18, 21 / 31 )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3352
SELECT ALL CAST( - - ( - 32 ) AS SIGNED ) * COUNT( * ) * - 41 + 24
----
1336

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL CAST ( - - ( - 32 ) AS INTEGER ) * COUNT ( * ) * - 41 + 24
----
1336

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL 19 * + 28 + - COUNT( * )
----
531

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL 19 * + 28 + - COUNT ( * )
----
531

query II rowsort
SELECT ALL + 20 col0, + 21 AS col2
----
20
21

query I rowsort
SELECT + ( - - ( - + 44 ) ) col1
----
-44

query II rowsort
SELECT + ( + 32 ), 84 AS col2
----
32
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3357
SELECT 23 * 33 * - - 84 + 18 + - 47 - - + 18 / CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * + COUNT( * ) * + 83 * 47 * - + NULLIF ( + 20, - + 89 ) - - - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT 23 * 33 * - - 84 + 18 + - 47 - - + 18 / CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * + COUNT ( * ) * + 83 * 47 * - + NULLIF ( + 20, - + 89 ) - - - 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT - 60 + ( + SUM( DISTINCT + 60 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3358
SELECT - 60 + ( + SUM ( DISTINCT + 60 ) ) AS col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3360
SELECT COUNT( * ) AS col2, + 98 DIV + - 52
----
1
-1

skipif mysql # not compatible
query II rowsort label-3360
SELECT COUNT ( * ) AS col2, + 98 / + - 52
----
1
-1

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

skipif mysql # not compatible
query I rowsort label-3361
SELECT - COUNT ( * ) * 58
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3362
SELECT DISTINCT - 78 DIV + MIN( DISTINCT 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-3362
SELECT DISTINCT - 78 / + MIN ( DISTINCT 73 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3363
SELECT ALL CASE - + 88 WHEN - COUNT( * ) * - 61 THEN NULL WHEN 98 + 81 THEN + SUM( ALL - - 73 ) * 67 WHEN - + COUNT( * ) + COUNT( * ) THEN NULL ELSE CASE - 10 WHEN + 37 * - 88 THEN + + ( - + COUNT( * ) ) WHEN + ( 51 ) - - MIN( DISTINCT - 1 ) * 16 - - + 97 THEN 44 END + - CAST( - 48 AS SIGNED ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL CASE - + 88 WHEN - COUNT ( * ) * - 61 THEN NULL WHEN 98 + 81 THEN + SUM ( ALL - - 73 ) * 67 WHEN - + COUNT ( * ) + COUNT ( * ) THEN NULL ELSE CASE - 10 WHEN + 37 * - 88 THEN + + ( - + COUNT ( * ) ) WHEN + ( 51 ) - - MIN ( DISTINCT - 1 ) * 16 - - + 97 THEN 44 END + - CAST ( - 48 AS INTEGER ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT COUNT( * ) * + 50 * + 79 + - - 32
----
3982

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT COUNT ( * ) * + 50 * + 79 + - - 32
----
3982

query I rowsort
SELECT DISTINCT + 78 * + 72 AS col2
----
5616

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3368
SELECT 12, ( 76 ) * + - 28 + - 74 + MIN( - 63 ) AS col2
----
12
-2265

skipif mysql # not compatible
query II rowsort label-3368
SELECT 12, ( 76 ) * + - 28 + - 74 + MIN ( - 63 ) AS col2
----
12
-2265

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

query II rowsort
SELECT DISTINCT + 67 * + - 15, 94 AS col0
----
-1005
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT - COUNT( 50 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3371
SELECT - COUNT ( 50 ) AS col1
----
-1

query I rowsort
SELECT + - 23 + 95 AS col1
----
72

query I rowsort
SELECT - + 12 * ( - 55 )
----
660

query I rowsort
SELECT DISTINCT - - 3 * - ( - 77 ) * + 6 + 35 - + + 14
----
1407

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL + NULLIF ( COUNT( * ), + + 91 ) - COUNT( * ) + + - 21 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL + NULLIF ( COUNT ( * ), + + 91 ) - COUNT ( * ) + + - 21 AS col1
----
-21

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

query II rowsort
SELECT DISTINCT 55 AS col2, 82
----
55
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL COUNT( * ) * - 1 + 22
----
21

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL COUNT ( * ) * - 1 + 22
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3379
SELECT + ( - NULLIF ( + CAST( + COUNT( * ) AS SIGNED ), + 99 + - + 43 ) ) DIV + 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3379
SELECT + ( - NULLIF ( + CAST ( + COUNT ( * ) AS INTEGER ), + 99 + - + 43 ) ) / + 74 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL - 91 * COUNT( * ) * + 31 col2
----
-2821

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL - 91 * COUNT ( * ) * + 31 col2
----
-2821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3381
SELECT - - 34 DIV - 7 + COUNT( * ) - - + 71
----
68

skipif mysql # not compatible
query I rowsort label-3381
SELECT - - 34 / - 7 + COUNT ( * ) - - + 71
----
68

query I rowsort
SELECT - 63 + 42 * - 90 AS col1
----
-3843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3383
SELECT + - COUNT( * ) DIV + COUNT( * ) + + 13
----
12

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3384
SELECT ALL - 98 DIV - + NULLIF ( - - 6, 47 * COALESCE ( 75, + COUNT( * ) DIV ( + 19 ) + COUNT( * ) - + 89 * - 95 * + + 19 ) * + 41 * + 18 ) + + - 55 + - - 30 * + ( + 84 ) AS col1
----
2481

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL - 98 / - + NULLIF ( - - 6, 47 * COALESCE ( 75, + COUNT ( * ) / ( + 19 ) + COUNT ( * ) - + 89 * - 95 * + + 19 ) * + 41 * + 18 ) + + - 55 + - - 30 * + ( + 84 ) AS col1
----
2481

onlyif mysql # DIV for integer division: 
query I rowsort label-3385
SELECT DISTINCT 41 DIV 70 + + 64 * + 94 + NULLIF ( 10, ( ( - 20 ) ) + + 66 + - - 42 )
----
6026

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT 41 / 70 + + 64 * + 94 + NULLIF ( 10, ( ( - 20 ) ) + + 66 + - - 42 )
----
6026

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ALL 97 + + - 95 * 98 + + 37 + COUNT( * ) + + 78
----
-9097

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL 97 + + - 95 * 98 + + 37 + COUNT ( * ) + + 78
----
-9097

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT DISTINCT 14 DIV + - 20 * - ( 45 )
----
0

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT 14 / + - 20 * - ( 45 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3388
SELECT ALL 49 + - 36 col2, ( + ( - 8 ) ) + 14 * COUNT( * )
----
13
6

skipif mysql # not compatible
query II rowsort label-3388
SELECT ALL 49 + - 36 col2, ( + ( - 8 ) ) + 14 * COUNT ( * )
----
13
6

query I rowsort
SELECT DISTINCT 8 + - - 77 col2
----
85

query II rowsort
SELECT 81 * - 12 AS col0, 68 AS col2
----
-972
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT 16 * - COUNT( * ) col2
----
-16

skipif mysql # not compatible
query I rowsort label-3391
SELECT 16 * - COUNT ( * ) col2
----
-16

query II rowsort
SELECT ALL 43 + 1 AS col2, + 59
----
44
59

query I rowsort
SELECT ALL 13 + + + ( 6 ) + + - 78 * + 32 * - 39 col2
----
97363

query I rowsort
SELECT ALL - CASE - 86 WHEN - NULLIF ( + 56, 45 * - 89 * ( - 6 ) ) THEN - 71 * - 51 END * 28 / + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT - MAX( 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT - MAX ( 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT DISTINCT COUNT( * ) - + 46
----
-45

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT COUNT ( * ) - + 46
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3397
SELECT ALL 7 * - + COUNT( * ) * + 70 AS col2, COUNT( * ) / - + CASE - - 46 WHEN + + 96 * + 34 THEN NULL WHEN 38 * - + 87 THEN + CAST( - 49 AS SIGNED ) END AS col2
----
-490
NULL

skipif mysql # not compatible
query II rowsort label-3397
SELECT ALL 7 * - + COUNT ( * ) * + 70 AS col2, COUNT ( * ) / - + CASE - - 46 WHEN + + 96 * + 34 THEN NULL WHEN 38 * - + 87 THEN + CAST ( - 49 AS INTEGER ) END AS col2
----
-490
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3398
SELECT DISTINCT - 38 - 99 col2, + COALESCE ( + 29, - 23 * - 40 ) DIV + - 87
----
-137
0

skipif mysql # not compatible
query II rowsort label-3398
SELECT DISTINCT - 38 - 99 col2, + COALESCE ( + 29, - 23 * - 40 ) / + - 87
----
-137
0

query I rowsort
SELECT ALL 42 * - 72
----
-3024

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3400
SELECT 32 * + AVG ( ALL + - CAST( NULL AS SIGNED ) ) AS col2, 56
----
NULL
56

skipif mysql # not compatible
query II rowsort label-3400
SELECT 32 * + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) AS col2, 56
----
NULL
56

query I rowsort
SELECT ALL NULLIF ( + ( 94 ), 86 ) AS col1
----
94

query I rowsort
SELECT + 4 + + 63
----
67

query II rowsort
SELECT + 78 * - 10 AS col1, - 94
----
-780
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3404
SELECT + CAST( NULL AS DECIMAL ) + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT + CAST ( NULL AS REAL ) + 53 AS col0
----
NULL

query I rowsort
SELECT - CASE 72 WHEN - 67 THEN 7 + - 17 + + + ( + 13 ) / + ( + 31 ) END AS col2
----
NULL

query I rowsort
SELECT - 26 * - 1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3407
SELECT 83 * COUNT( * ) + CAST( 4 AS SIGNED ) + + 11 - + - 30 * - + MAX( - 4 ) * 84 * 60 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT 83 * COUNT ( * ) + CAST ( 4 AS INTEGER ) + + 11 - + - 30 * - + MAX ( - 4 ) * 84 * 60 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3409
SELECT + CAST( NULL AS SIGNED ) + 92 * 73 + 96 + + 26, 84 AS col0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-3409
SELECT + CAST ( NULL AS INTEGER ) + 92 * 73 + 96 + + 26, 84 AS col0
----
NULL
84

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

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL COUNT ( * ) / 3
----
0

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

query I rowsort
SELECT DISTINCT + - 38 * 69 AS col0
----
-2622

onlyif mysql # aggregate syntax: 
query II rowsort label-3413
SELECT ALL - - COUNT( * ) + - 43 + + + 40 AS col1, 87
----
-2
87

skipif mysql # not compatible
query II rowsort label-3413
SELECT ALL - - COUNT ( * ) + - 43 + + + 40 AS col1, 87
----
-2
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT + COUNT( * ) + - + CASE CASE WHEN COUNT( * ) IS NULL THEN - 43 ELSE - 25 END WHEN - 52 * - 67 THEN - + 90 + + + 47 * - + 80 + 91 * - ( + - COUNT( * ) ) + - + 22 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT + COUNT ( * ) + - + CASE CASE WHEN COUNT ( * ) IS NULL THEN - 43 ELSE - 25 END WHEN - 52 * - 67 THEN - + 90 + + + 47 * - + 80 + 91 * - ( + - COUNT ( * ) ) + - + 22 END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3415
SELECT - COALESCE ( - + 35, - + 91 + + 86 - 76 + - 66 DIV - 1 )
----
35

skipif mysql # not compatible
query I rowsort label-3415
SELECT - COALESCE ( - + 35, - + 91 + + 86 - 76 + - 66 / - 1 )
----
35

query I rowsort
SELECT - 42 * + 5 AS col1
----
-210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3417
SELECT MIN( ALL - 93 ) + + CAST( NULL AS SIGNED ) / 16 * + 39 * - 58 * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT MIN ( ALL - 93 ) + + CAST ( NULL AS INTEGER ) / 16 * + 39 * - 58 * 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT + 17 + + MAX( 58 )
----
75

skipif mysql # not compatible
query I rowsort label-3418
SELECT + 17 + + MAX ( 58 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT DISTINCT - - 58 * - + COUNT( * ) * - COUNT( * ) * 59 - + 2 AS col0
----
3420

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT - - 58 * - + COUNT ( * ) * - COUNT ( * ) * 59 - + 2 AS col0
----
3420

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3421
SELECT ALL 9 + + 74 AS col0, - 32 * 95 DIV - 29 col1
----
83
104

skipif mysql # not compatible
query II rowsort label-3421
SELECT ALL 9 + + 74 AS col0, - 32 * 95 / - 29 col1
----
83
104

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

query I rowsort
SELECT ALL + 86 + ( 39 ) * 14 AS col2
----
632

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3424
SELECT COUNT( - 58 ) DIV - 95 + - 68 + + 93 * + 43 AS col1, - 69 + COALESCE ( + + 92, - + 37 + 86 * - MAX( ALL + - NULLIF ( + 84, 54 ) ) )
----
3931
23

skipif mysql # not compatible
query II rowsort label-3424
SELECT COUNT ( - 58 ) / - 95 + - 68 + + 93 * + 43 AS col1, - 69 + COALESCE ( + + 92, - + 37 + 86 * - MAX ( ALL + - NULLIF ( + 84, 54 ) ) )
----
3931
23

query I rowsort
SELECT 75 * + 68 AS col0
----
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT DISTINCT COUNT( * ) - - 93
----
94

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT COUNT ( * ) - - 93
----
94

query II rowsort
SELECT ALL - 55, 44 AS col0
----
-55
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3428
SELECT 60 * 45 DIV + 16 + - 19
----
149

skipif mysql # not compatible
query I rowsort label-3428
SELECT 60 * 45 / + 16 + - 19
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT DISTINCT + 69 - 84 + - - ( - COUNT( * ) ) * COUNT( * ) + 22 * - 21 * - 20 + ( + ( 10 ) ) + + ( + + COALESCE ( - 61, - 10 + MAX( ALL - - 80 ) + - - 89 * + - COUNT( * ) ) )
----
9173

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT + 69 - 84 + - - ( - COUNT ( * ) ) * COUNT ( * ) + 22 * - 21 * - 20 + ( + ( 10 ) ) + + ( + + COALESCE ( - 61, - 10 + MAX ( ALL - - 80 ) + - - 89 * + - COUNT ( * ) ) )
----
9173

onlyif mysql # aggregate syntax: 
query II rowsort label-3430
SELECT COUNT( * ) * + - 97 * - 92 AS col2, COUNT( * ) - + 39 AS col2
----
8924
-38

skipif mysql # not compatible
query II rowsort label-3430
SELECT COUNT ( * ) * + - 97 * - 92 AS col2, COUNT ( * ) - + 39 AS col2
----
8924
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT MIN( DISTINCT 61 ) * - - 68 - COUNT( ALL - 3 ) AS col2
----
4147

skipif mysql # not compatible
query I rowsort label-3431
SELECT MIN ( DISTINCT 61 ) * - - 68 - COUNT ( ALL - 3 ) AS col2
----
4147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3432
SELECT ( - + 48 ) + 83 + - + CAST( + COUNT( * ) AS SIGNED ) DIV 3
----
35

skipif mysql # not compatible
query I rowsort label-3432
SELECT ( - + 48 ) + 83 + - + CAST ( + COUNT ( * ) AS INTEGER ) / 3
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3433
SELECT 99 * - 18 * + COALESCE ( + SUM( ALL + 80 ), - - 22 * + COUNT( * ), + 0 DIV - 58 * + + 26 + COUNT( * ) - NULLIF ( + 70, 17 ) ) AS col1
----
-142560

skipif mysql # not compatible
query I rowsort label-3433
SELECT 99 * - 18 * + COALESCE ( + SUM ( ALL + 80 ), - - 22 * + COUNT ( * ), + 0 / - 58 * + + 26 + COUNT ( * ) - NULLIF ( + 70, 17 ) ) AS col1
----
-142560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3434
SELECT 97 * + - 8 * + + ( + 74 ) * COUNT( * ) - - 55 + ( CAST( NULL AS SIGNED ) ) col2, + ( + 21 ) AS col2
----
NULL
21

skipif mysql # not compatible
query II rowsort label-3434
SELECT 97 * + - 8 * + + ( + 74 ) * COUNT ( * ) - - 55 + ( CAST ( NULL AS INTEGER ) ) col2, + ( + 21 ) AS col2
----
NULL
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3435
SELECT ALL - 70, + NULLIF ( - COUNT( * ), COUNT( * ) ) col0
----
-70
-1

skipif mysql # not compatible
query II rowsort label-3435
SELECT ALL - 70, + NULLIF ( - COUNT ( * ), COUNT ( * ) ) col0
----
-70
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT COUNT( * ) + + - 81 * 45 + - 64 + - - 88
----
-3620

skipif mysql # not compatible
query I rowsort label-3436
SELECT COUNT ( * ) + + - 81 * 45 + - 64 + - - 88
----
-3620

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

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

query I rowsort
SELECT - 15 * + 60 col2
----
-900

onlyif mysql # aggregate syntax: 
query II rowsort label-3439
SELECT ALL 0 AS col1, + COUNT( 96 ) + 49
----
0
50

skipif mysql # not compatible
query II rowsort label-3439
SELECT ALL 0 AS col1, + COUNT ( 96 ) + 49
----
0
50

query I rowsort
SELECT DISTINCT - 84 * - COALESCE ( 72, + 53 * + 73 - - - 50 )
----
6048

query II rowsort
SELECT ALL + 43 AS col0, 12
----
43
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL 12 * + COUNT( * ) + 40 * - CASE MIN( ALL + NULLIF ( + + 28, 25 ) ) WHEN - 52 * NULLIF ( + - 4, 2 + 42 + 65 + + + 19 + + - 27 + - 16 ) * 89 THEN - 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL 12 * + COUNT ( * ) + 40 * - CASE MIN ( ALL + NULLIF ( + + 28, 25 ) ) WHEN - 52 * NULLIF ( + - 4, 2 + 42 + 65 + + + 19 + + - 27 + - 16 ) * 89 THEN - 55 END
----
NULL

query II rowsort
SELECT DISTINCT 28, - 26 AS col0
----
28
-26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT + MAX( 41 ) * + 80 - - ( + 75 ) * + 17 * - 97 AS col2
----
-120395

skipif mysql # not compatible
query I rowsort label-3445
SELECT + MAX ( 41 ) * + 80 - - ( + 75 ) * + 17 * - 97 AS col2
----
-120395

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

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

query II rowsort
SELECT ALL 18, 95 AS col0
----
18
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3448
SELECT DISTINCT + NULLIF ( - 77, - - 40 + + ( 74 ) * + 71 DIV + CASE 53 WHEN + 85 THEN - + 52 WHEN + AVG ( - - 45 ) THEN + 7 END ) DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT + NULLIF ( - 77, - - 40 + + ( 74 ) * + 71 / + CASE 53 WHEN + 85 THEN - + 52 WHEN + AVG ( - - 45 ) THEN + 7 END ) / + 81
----
0

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

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT SUM ( - - 86 ) AS col0
----
86

query I rowsort
SELECT ALL + 8 + - 66 - - 85 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT ALL - COUNT( ALL + 91 ) + 45 - + - CASE - + 33 WHEN - 88 THEN - - 74 + + - COUNT( * ) * + 39 WHEN 71 / + 16 * + - COUNT( DISTINCT - - ( 68 ) ) THEN NULL WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL - COUNT ( ALL + 91 ) + 45 - + - CASE - + 33 WHEN - 88 THEN - - 74 + + - COUNT ( * ) * + 39 WHEN 71 / + 16 * + - COUNT ( DISTINCT - - ( 68 ) ) THEN NULL WHEN - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3452
SELECT DISTINCT 42 DIV - + 8
----
-5

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT 42 / - + 8
----
-5

query I rowsort
SELECT ALL + 54 + + 39
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3454
SELECT ALL - 0 + 35 + + 2 + - CAST( - COUNT( * ) AS SIGNED ) DIV + + 72 * + 50 * + COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL - 0 + 35 + + 2 + - CAST ( - COUNT ( * ) AS INTEGER ) / + + 72 * + 50 * + COUNT ( * ) AS col0
----
37

query I rowsort
SELECT - 14 + + 93 AS col2
----
79

query I rowsort
SELECT 55 * + 52 + + 17
----
2877

query I rowsort
SELECT - 96 * 80
----
-7680

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT ALL + CASE 86 WHEN + MIN( ALL + + 30 ) THEN COUNT( * ) + - 71 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL + CASE 86 WHEN + MIN ( ALL + + 30 ) THEN COUNT ( * ) + - 71 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT COALESCE ( + - 53, 39 ) AS col1
----
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-3460
SELECT ALL + 92 * + - 48 AS col2, - 0 DIV - - 77 + + - 6
----
-4416
-6

skipif mysql # not compatible
query II rowsort label-3460
SELECT ALL + 92 * + - 48 AS col2, - 0 / - - 77 + + - 6
----
-4416
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT DISTINCT + 83 * - 67 * + COUNT( * )
----
-5561

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT + 83 * - 67 * + COUNT ( * )
----
-5561

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT - 66 - - 54 + - COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3462
SELECT - 66 - - 54 + - COUNT ( * ) AS col1
----
-13

query I rowsort
SELECT - 24 * - 59 * 88 AS col2
----
124608

query I rowsort
SELECT + 30 * - 67
----
-2010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3465
SELECT CASE - NULLIF ( + 6, - + CAST( NULL AS SIGNED ) ) WHEN COUNT( * ) - + 0 THEN NULL ELSE + + 80 END
----
80

skipif mysql # not compatible
query I rowsort label-3465
SELECT CASE - NULLIF ( + 6, - + CAST ( NULL AS INTEGER ) ) WHEN COUNT ( * ) - + 0 THEN NULL ELSE + + 80 END
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3466
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) DIV + + 91 col0
----
0

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) / + + 91 col0
----
0

query I rowsort
SELECT - 94 * - 66 * - 79
----
-490116

query I rowsort
SELECT ALL + - 21 * 85 * 26
----
-46410

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT DISTINCT + + 96 * + - 69 - COUNT( * )
----
-6625

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT + + 96 * + - 69 - COUNT ( * )
----
-6625

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL COUNT( * ) * + 51 + + 82 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL COUNT ( * ) * + 51 + + 82 AS col0
----
133

query I rowsort
SELECT + - 50 - - 5
----
-45

query I rowsort
SELECT - - 6 + + + 81 AS col1
----
87

query I rowsort
SELECT + - 0 * + 18 - + 16 * - 48 AS col2
----
768

query I rowsort
SELECT - 88 + + + 51 + 3
----
-34

query I rowsort
SELECT - 2 + + 92 + ( + 84 )
----
174

query I rowsort
SELECT + 72 - 77
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3477
SELECT + 16 + + + 45 col2, - 34 * ( + COALESCE ( - COUNT( - - 68 ), + - 61, - 33 * + + 8 * - 40 + + MIN( DISTINCT + + NULLIF ( + 24, + 75 ) ) ) )
----
61
34

skipif mysql # not compatible
query II rowsort label-3477
SELECT + 16 + + + 45 col2, - 34 * ( + COALESCE ( - COUNT ( - - 68 ), + - 61, - 33 * + + 8 * - 40 + + MIN ( DISTINCT + + NULLIF ( + 24, + 75 ) ) ) )
----
61
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3478
SELECT + CASE ( - 53 ) WHEN + CAST( 23 AS SIGNED ) THEN - - 16 END - + COUNT( * ) + - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT + CASE ( - 53 ) WHEN + CAST ( 23 AS INTEGER ) THEN - - 16 END - + COUNT ( * ) + - + 51
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3479
SELECT - MIN( 4 ) AS col1, 72 AS col0
----
-4
72

skipif mysql # not compatible
query II rowsort label-3479
SELECT - MIN ( 4 ) AS col1, 72 AS col0
----
-4
72

query I rowsort
SELECT + 29 + - 66 * - 15
----
1019

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT ALL - MIN( - 59 ) + - 54
----
5

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL - MIN ( - 59 ) + - 54
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT + + 73 + + 82 * + SUM( - 57 )
----
-4601

skipif mysql # not compatible
query I rowsort label-3482
SELECT + + 73 + + 82 * + SUM ( - 57 )
----
-4601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3483
SELECT DISTINCT 30 + + NULLIF ( - - COUNT( * ), - + AVG ( ALL + 10 ) - CAST( NULL AS SIGNED ) ) + COUNT( * ) * + 51 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT 30 + + NULLIF ( - - COUNT ( * ), - + AVG ( ALL + 10 ) - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * + 51 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT DISTINCT - MIN( ALL + 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT - MIN ( ALL + 87 ) AS col1
----
-87

query I rowsort
SELECT - 44 * - 86 AS col1
----
3784

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT DISTINCT MIN( DISTINCT + 40 ) - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT MIN ( DISTINCT + 40 ) - COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT DISTINCT MIN( ALL + 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT MIN ( ALL + 28 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL 97 - - COUNT( * ) col2
----
98

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL 97 - - COUNT ( * ) col2
----
98

query I rowsort
SELECT + 8 * + + 98 AS col1
----
784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3490
SELECT DISTINCT - 23 DIV + MIN( + 38 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT - 23 / + MIN ( + 38 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3491
SELECT ALL + CASE + 89 WHEN - NULLIF ( + COUNT( - + NULLIF ( - + 25, + + 25 ) ), + 80 * - + COUNT( * ) ) + + + 2 DIV + 74 THEN + 9 * 33 * - 25 DIV - 39 + CASE 37 WHEN COALESCE ( + COUNT( * ), 12 * + 55 + - 72 + - SUM( - 12 ) + + 21 * + 59 * - - 26 * + CAST( - AVG ( DISTINCT - 75 ) AS SIGNED ) * + 68 * - - 92 + + 78 ) THEN + - COUNT( * ) * 94 ELSE NULL END WHEN 44 THEN NULL ELSE 74 END - + 41
----
33

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL + CASE + 89 WHEN - NULLIF ( + COUNT ( - + NULLIF ( - + 25, + + 25 ) ), + 80 * - + COUNT ( * ) ) + + + 2 / + 74 THEN + 9 * 33 * - 25 / - 39 + CASE 37 WHEN COALESCE ( + COUNT ( * ), 12 * + 55 + - 72 + - SUM ( - 12 ) + + 21 * + 59 * - - 26 * + CAST ( - AVG ( DISTINCT - 75 ) AS INTEGER ) * + 68 * - - 92 + + 78 ) THEN + - COUNT ( * ) * 94 ELSE NULL END WHEN 44 THEN NULL ELSE 74 END - + 41
----
33

query II rowsort
SELECT ALL 57, 23 * - + 23 AS col0
----
57
-529

query I rowsort
SELECT - 2 - + 5
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3494
SELECT - 78 * - - COUNT( * ) DIV + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3494
SELECT - 78 * - - COUNT ( * ) / + 91 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3495
SELECT ALL 84 DIV - 6 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL 84 / - 6 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL + SUM( ALL + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL + SUM ( ALL + 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + 46 * - 12 * - - COUNT( * ) + + 89
----
-463

skipif mysql # not compatible
query I rowsort label-3497
SELECT + 46 * - 12 * - - COUNT ( * ) + + 89
----
-463

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3498
SELECT + 25 DIV - - CASE 68 WHEN + ( + 23 ) + - + 81 DIV + 44 THEN NULL ELSE + - 70 * + MAX( ALL + 27 ) END, COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-3498
SELECT + 25 / - - CASE 68 WHEN + ( + 23 ) + - + 81 / + 44 THEN NULL ELSE + - 70 * + MAX ( ALL + 27 ) END, COUNT ( * ) AS col2
----
0
1

query I rowsort
SELECT - 31 / CASE - 31 WHEN 98 THEN + + 86 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3500
SELECT 61 DIV - 89 + + COUNT( * ) + + 71 * 17
----
1208

skipif mysql # not compatible
query I rowsort label-3500
SELECT 61 / - 89 + + COUNT ( * ) + + 71 * 17
----
1208

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT 24 * - - 64 - - COUNT( * ) * 96 AS col1
----
1632

skipif mysql # not compatible
query I rowsort label-3501
SELECT 24 * - - 64 - - COUNT ( * ) * 96 AS col1
----
1632

query I rowsort
SELECT ALL + 34 * + 44
----
1496

query I rowsort
SELECT - 18 + - - 39 * + 10 * + 9 AS col2
----
3492

onlyif mysql # DIV for integer division: 
query I rowsort label-3504
SELECT DISTINCT - 6 DIV - 69 + 11
----
11

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT - 6 / - 69 + 11
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT - SUM( DISTINCT - 69 ) * NULLIF ( - 99, + 63 ) * - 99 AS col0
----
676269

skipif mysql # not compatible
query I rowsort label-3505
SELECT - SUM ( DISTINCT - 69 ) * NULLIF ( - 99, + 63 ) * - 99 AS col0
----
676269

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3506
SELECT - 77 * - COUNT( * ) + + + 4 + - 92 DIV + - COUNT( * )
----
173

skipif mysql # not compatible
query I rowsort label-3506
SELECT - 77 * - COUNT ( * ) + + + 4 + - 92 / + - COUNT ( * )
----
173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3507
SELECT ALL 98 * ( + + 24 ) DIV + - 75 + + MIN( - 33 )
----
-64

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL 98 * ( + + 24 ) / + - 75 + + MIN ( - 33 )
----
-64

query I rowsort
SELECT - 20 + + 54
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3509
SELECT ALL + + CAST( - + 82 AS SIGNED ) * - 87 * - 13 - - SUM( + - 37 ) + - 70 AS col0
----
-92849

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL + + CAST ( - + 82 AS INTEGER ) * - 87 * - 13 - - SUM ( + - 37 ) + - 70 AS col0
----
-92849

query I rowsort
SELECT - 33 + 1
----
-32

query II rowsort
SELECT ALL - 82 * + 9 + - 46 AS col2, 37 * - + 71
----
-784
-2627

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT + CASE + + 13 WHEN COUNT( * ) THEN + 30 + + - 73 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3512
SELECT + CASE + + 13 WHEN COUNT ( * ) THEN + 30 + + - 73 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3513
SELECT ALL - + 18 * + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL - + 18 * + - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3514
SELECT - - 69 DIV 25
----
2

skipif mysql # not compatible
query I rowsort label-3514
SELECT - - 69 / 25
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT ALL - COUNT( * ) * 9
----
-9

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL - COUNT ( * ) * 9
----
-9

query I rowsort
SELECT - 36 * - 45 col0
----
1620

query I rowsort
SELECT ALL + + 39 * 91
----
3549

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL + 22 - - NULLIF ( + 62, + COUNT( + 40 ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL + 22 - - NULLIF ( + 62, + COUNT ( + 40 ) ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT ALL - + 26 - COUNT( * ) + + 6 col1
----
-21

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL - + 26 - COUNT ( * ) + + 6 col1
----
-21

query I rowsort
SELECT 98 - - 90 + + 63 + - + 48 AS col1
----
203

query I rowsort
SELECT 44 - + 68
----
-24

query I rowsort
SELECT 88 * + 59
----
5192

query II rowsort
SELECT - 90 AS col2, 8 AS col2
----
-90
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL - 37 - - - 77 * + 13 + + 17 * + COUNT( - 53 )
----
-1021

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL - 37 - - - 77 * + 13 + + 17 * + COUNT ( - 53 )
----
-1021

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL ( - 4 ) * + 89 + - + COUNT( + + 5 ) AS col0
----
-357

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL ( - 4 ) * + 89 + - + COUNT ( + + 5 ) AS col0
----
-357

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3526
SELECT ALL 0, CAST( NULL AS SIGNED ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3526
SELECT ALL 0, CAST ( NULL AS INTEGER ) AS col0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT COUNT( * ) - 14 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-3527
SELECT COUNT ( * ) - 14 AS col2
----
-13

query I rowsort
SELECT DISTINCT 26 * + 83 AS col2
----
2158

query I rowsort
SELECT ALL 43 * 97 AS col1
----
4171

query I rowsort
SELECT 90 * ( - 81 ) * - - 73 * + 64 * - 35 AS col0
----
1192060800

onlyif mysql # aggregate syntax: 
query II rowsort label-3531
SELECT ALL 67 AS col2, - NULLIF ( 7, 39 * SUM( - 65 ) / SUM( + 97 ) / 89 ) * 16 * - + COALESCE ( + 52, - 25, 48 * - + 67 + + 17 ) * 8 + - 66 + + 74 * 80 + - - 85 AS col1
----
67
52531

skipif mysql # not compatible
query II rowsort label-3531
SELECT ALL 67 AS col2, - NULLIF ( 7, 39 * SUM ( - 65 ) / SUM ( + 97 ) / 89 ) * 16 * - + COALESCE ( + 52, - 25, 48 * - + 67 + + 17 ) * 8 + - 66 + + 74 * 80 + - - 85 AS col1
----
67
52531

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3532
SELECT ALL - ( 85 ) DIV COUNT( DISTINCT - 17 )
----
-85

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL - ( 85 ) / COUNT ( DISTINCT - 17 )
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-3533
SELECT DISTINCT - NULLIF ( - - COUNT( * ), - - ( - COALESCE ( + 29, AVG ( ( NULLIF ( + 76, + 66 ) ) ) ) ) - - COUNT( * ) ), - 73 AS col1
----
-1
-73

skipif mysql # not compatible
query II rowsort label-3533
SELECT DISTINCT - NULLIF ( - - COUNT ( * ), - - ( - COALESCE ( + 29, AVG ( ( NULLIF ( + 76, + 66 ) ) ) ) ) - - COUNT ( * ) ), - 73 AS col1
----
-1
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT DISTINCT ( + + 81 ) + 84 + + COUNT( 13 ) * + - 58 + + 28 * MAX( + - 41 ) * + 35 AS col2
----
-40073

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT ( + + 81 ) + 84 + + COUNT ( 13 ) * + - 58 + + 28 * MAX ( + - 41 ) * + 35 AS col2
----
-40073

query I rowsort
SELECT ALL + 3 + - ( + 91 )
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3536
SELECT + 88 AS col1, COUNT( * ) + + 98 DIV + 94
----
88
2

skipif mysql # not compatible
query II rowsort label-3536
SELECT + 88 AS col1, COUNT ( * ) + + 98 / + 94
----
88
2

query I rowsort
SELECT ALL - ( 63 ) + - 1 * - 79 AS col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-3538
SELECT CASE 24 WHEN - 27 THEN - SUM( - + 24 ) + + 75 - - 29 + 56 * + + 20 * 65 ELSE NULL END - 65 col2, - COALESCE ( + ( 34 ), - MAX( + 60 ) ) + - - 68
----
NULL
34

skipif mysql # not compatible
query II rowsort label-3538
SELECT CASE 24 WHEN - 27 THEN - SUM ( - + 24 ) + + 75 - - 29 + 56 * + + 20 * 65 ELSE NULL END - 65 col2, - COALESCE ( + ( 34 ), - MAX ( + 60 ) ) + - - 68
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT DISTINCT - + COUNT( * ) * + 12
----
-12

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT - + COUNT ( * ) * + 12
----
-12

query I rowsort
SELECT ALL + + 53 + - 80 * 98 col1
----
-7787

query III rowsort
SELECT DISTINCT - - 63 AS col1, 6 AS col0, - 24 AS col0
----
63
6
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT ALL - COUNT( * ) - + - COUNT( * ) + + + 65
----
65

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL - COUNT ( * ) - + - COUNT ( * ) + + + 65
----
65

query I rowsort
SELECT 41 - + 79
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3544
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - + NULLIF ( + + COUNT( ALL CAST( NULL AS SIGNED ) ), 89 / + + 7 * + 29 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - + NULLIF ( + + COUNT ( ALL CAST ( NULL AS INTEGER ) ), 89 / + + 7 * + 29 ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( 10 ) * + 21 * - 48
----
10080

query I rowsort
SELECT ALL - + 74 - + ( - + 80 )
----
6

query I rowsort
SELECT + NULLIF ( + - 86, + + 52 / + + ( + 67 ) ) * + 18
----
-1548

query I rowsort
SELECT + 87 + - 44 + - + 38 * + 56 col0
----
-2085

query II rowsort
SELECT - 32, NULLIF ( ( + 36 ), 18 * + 37 ) AS col0
----
-32
36

query I rowsort
SELECT ALL - + 99 * + - 73
----
7227

query I rowsort
SELECT NULLIF ( - 29, 58 ) + + 70
----
41

query I rowsort
SELECT 59 + - 39
----
20

query I rowsort
SELECT 94 + + 6 * + 80
----
574

query I rowsort
SELECT DISTINCT - 24 * + CASE 26 WHEN - ( - 17 ) THEN NULL WHEN + 26 THEN + 60 ELSE - 27 END col0
----
-1440

query I rowsort
SELECT 19 + 97
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-3556
SELECT 90 DIV ( + - ( 31 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-3556
SELECT 90 / ( + - ( 31 ) )
----
-2

query I rowsort
SELECT 29 + 66 + 41
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT DISTINCT + CASE + + 38 WHEN - 78 THEN + + 18 * + COALESCE ( 76, - ( + - COUNT( * ) ) * + - 53 ) ELSE NULL END / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT + CASE + + 38 WHEN - 78 THEN + + 18 * + COALESCE ( 76, - ( + - COUNT ( * ) ) * + - 53 ) ELSE NULL END / + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 72 + - 10 + - 88 col2
----
-26

query I rowsort
SELECT DISTINCT ( + 96 ) + - + 23 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT DISTINCT MIN( + 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT MIN ( + 74 ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3562
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) + 42 * 20
----
839

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) + 42 * 20
----
839

query I rowsort
SELECT DISTINCT 24 * + - 91 AS col2
----
-2184

query I rowsort
SELECT ALL 83 + - + 63
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT COALESCE ( 41, COUNT( * ) * - COUNT( * ), + + 71 * + COUNT( * ) - - 67, 47 ) + + + 84
----
125

skipif mysql # not compatible
query I rowsort label-3565
SELECT COALESCE ( 41, COUNT ( * ) * - COUNT ( * ), + + 71 * + COUNT ( * ) - - 67, 47 ) + + + 84
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3566
SELECT DISTINCT + CAST( + + 27 AS SIGNED ) + + 93 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT + CAST ( + + 27 AS INTEGER ) + + 93 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ALL 59 * + ( + COUNT( * ) )
----
59

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL 59 * + ( + COUNT ( * ) )
----
59

query I rowsort
SELECT 50 + - 1 AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3569
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED ) - + + 38 + + COUNT( * ) + + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) - + + 38 + + COUNT ( * ) + + 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3570
SELECT - COUNT( * ) DIV - 77 + - + ( + - 66 ) + + - 76 DIV - + NULLIF ( - 62, - COUNT( * ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3570
SELECT - COUNT ( * ) / - 77 + - + ( + - 66 ) + + - 76 / - + NULLIF ( - 62, - COUNT ( * ) ) AS col0
----
65

query II rowsort
SELECT 86 + + 22 AS col0, + 44 * - 91 * ( - + 15 ) + - + 53 AS col1
----
108
60007

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3572
SELECT - 10 * - - CAST( NULL AS DECIMAL ) + + + 66 - + - 39 * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3572
SELECT - 10 * - - CAST ( NULL AS REAL ) + + + 66 - + - 39 * 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT + MIN( - - 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3573
SELECT + MIN ( - - 16 ) AS col1
----
16

query II rowsort
SELECT - 68 + 2, ( - 43 ) AS col0
----
-66
-43

query II rowsort
SELECT + - 86 + + 38, 28 AS col1
----
-48
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3576
SELECT ALL ( - + 10 ) * + SUM( DISTINCT 79 ) + - - 66 - - - CAST( 66 AS SIGNED ) - - 32
----
-758

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL ( - + 10 ) * + SUM ( DISTINCT 79 ) + - - 66 - - - CAST ( 66 AS INTEGER ) - - 32
----
-758

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT + - CASE - ( - COALESCE ( + 48, + 74 + - COUNT( * ) * COUNT( * ), + - 64 * - 46 + - 21 ) ) WHEN + 14 THEN 41 * + ( 48 ) * - COUNT( * ) + - 3 - + 57 + - 73 + - 90 * - 77 * - 56 WHEN + - ( - 64 ) * - 86 + - AVG ( 10 ) * + - ( + 56 ) THEN + 74 * COUNT( * ) * - 58 * - - 56 - 24 * ( CASE + 36 WHEN - - MIN( ALL 43 ) + + 12 THEN - 44 + ( - 44 ) * + 47 ELSE NULL END ) END / - 48 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT + - CASE - ( - COALESCE ( + 48, + 74 + - COUNT ( * ) * COUNT ( * ), + - 64 * - 46 + - 21 ) ) WHEN + 14 THEN 41 * + ( 48 ) * - COUNT ( * ) + - 3 - + 57 + - 73 + - 90 * - 77 * - 56 WHEN + - ( - 64 ) * - 86 + - AVG ( 10 ) * + - ( + 56 ) THEN + 74 * COUNT ( * ) * - 58 * - - 56 - 24 * ( CASE + 36 WHEN - - MIN ( ALL 43 ) + + 12 THEN - 44 + ( - 44 ) * + 47 ELSE NULL END ) END / - 48 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT DISTINCT SUM( + - ( 38 ) ) * - - 31 * + 77
----
-90706

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT SUM ( + - ( 38 ) ) * - - 31 * + 77
----
-90706

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3579
SELECT - ( CAST( NULL AS DECIMAL ) ) * + COALESCE ( + 44, - ( + 42 ), - 24 ) + - 97 + NULLIF ( + ( + MAX( 55 ) ), + COALESCE ( + 44, + 12, + 98 * - 99 ) + 48 ) + - NULLIF ( - 44, 87 + 67 ) * + COUNT( * ) * - 6 + MAX( - - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3579
SELECT - ( CAST ( NULL AS REAL ) ) * + COALESCE ( + 44, - ( + 42 ), - 24 ) + - 97 + NULLIF ( + ( + MAX ( 55 ) ), + COALESCE ( + 44, + 12, + 98 * - 99 ) + 48 ) + - NULLIF ( - 44, 87 + 67 ) * + COUNT ( * ) * - 6 + MAX ( - - 49 )
----
NULL

query I rowsort
SELECT ALL - 31 * - - 26 - - + 74 - - 55 * + 99
----
4713

query I rowsort
SELECT + 7 * + ( + 31 )
----
217

query II rowsort
SELECT - 41, - 3 * + - 29 AS col1
----
-41
87

query II rowsort
SELECT 19 AS col0, 75 * + - 49 * + 64 * 80
----
19
-18816000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3584
SELECT 89 AS col1, 12 + - - 3 + - CAST( - - 38 AS SIGNED ) AS col1
----
89
-23

skipif mysql # not compatible
query II rowsort label-3584
SELECT 89 AS col1, 12 + - - 3 + - CAST ( - - 38 AS INTEGER ) AS col1
----
89
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3585
SELECT ALL + 1 DIV - 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL + 1 / - 30 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3586
SELECT ALL - CAST( NULL AS DECIMAL ) + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL - CAST ( NULL AS REAL ) + + 59
----
NULL

query I rowsort
SELECT - 2 - + 23 AS col2
----
-25

query I rowsort
SELECT - 78 * + 21
----
-1638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3589
SELECT ALL + CAST( - - 54 AS SIGNED ) * + - CAST( - + COUNT( + - 83 ) AS SIGNED ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL + CAST ( - - 54 AS INTEGER ) * + - CAST ( - + COUNT ( + - 83 ) AS INTEGER ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT ALL - COUNT( * ) + COALESCE ( - 44, - 63 )
----
-45

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL - COUNT ( * ) + COALESCE ( - 44, - 63 )
----
-45

query II rowsort
SELECT - 18, 5 + 51 AS col2
----
-18
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3592
SELECT ALL - 2 + + 33 + + COUNT( * ) + - COALESCE ( - 93, - - SUM( 99 ) ) + + - SUM( - 65 ) + 63 DIV + + 47 AS col0, - 26 * + 31
----
191
-806

skipif mysql # not compatible
query II rowsort label-3592
SELECT ALL - 2 + + 33 + + COUNT ( * ) + - COALESCE ( - 93, - - SUM ( 99 ) ) + + - SUM ( - 65 ) + 63 / + + 47 AS col0, - 26 * + 31
----
191
-806

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT - COUNT( * ) - - 82 col0
----
81

skipif mysql # not compatible
query I rowsort label-3593
SELECT - COUNT ( * ) - - 82 col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT - 24 - MIN( DISTINCT + + ( 5 ) ) - + - 6 * 81 AS col2
----
457

skipif mysql # not compatible
query I rowsort label-3594
SELECT - 24 - MIN ( DISTINCT + + ( 5 ) ) - + - 6 * 81 AS col2
----
457

query I rowsort
SELECT ALL - 12 + - 15 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT - COUNT( * ) * 84 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-3596
SELECT - COUNT ( * ) * 84 AS col1
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3597
SELECT + ( COALESCE ( - 27, + + MAX( - + 7 ), + + 45 ) ) * COUNT( * ) DIV - - 88 * + 33 + 74
----
74

skipif mysql # not compatible
query I rowsort label-3597
SELECT + ( COALESCE ( - 27, + + MAX ( - + 7 ), + + 45 ) ) * COUNT ( * ) / - - 88 * + 33 + 74
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3598
SELECT ALL + 39 DIV - 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL + 39 / - 92 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3599
SELECT - COUNT( * ) + - 60 - + ( + - 48 ) * - 61 * - ( + ( + 42 ) ) + - CASE + - COUNT( * ) WHEN + - 23 THEN - 48 END + + 52 * - 24 / - + COUNT( * ) - 3, 25 AS col0
----
NULL
25

skipif mysql # not compatible
query II rowsort label-3599
SELECT - COUNT ( * ) + - 60 - + ( + - 48 ) * - 61 * - ( + ( + 42 ) ) + - CASE + - COUNT ( * ) WHEN + - 23 THEN - 48 END + + 52 * - 24 / - + COUNT ( * ) - 3, 25 AS col0
----
NULL
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3600
SELECT ALL + COUNT( * ) DIV COUNT( * ) - - 4, 71 AS col2
----
5
71

skipif mysql # not compatible
query II rowsort label-3600
SELECT ALL + COUNT ( * ) / COUNT ( * ) - - 4, 71 AS col2
----
5
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3601
SELECT + + CAST( NULL AS SIGNED ) * + + AVG ( + + 32 ) * + 50 + - CAST( 21 AS SIGNED ) + + + COUNT( * ) + - ( 74 ) * CAST( - 62 AS SIGNED ), 99 AS col2
----
NULL
99

skipif mysql # not compatible
query II rowsort label-3601
SELECT + + CAST ( NULL AS INTEGER ) * + + AVG ( + + 32 ) * + 50 + - CAST ( 21 AS INTEGER ) + + + COUNT ( * ) + - ( 74 ) * CAST ( - 62 AS INTEGER ), 99 AS col2
----
NULL
99

query I rowsort
SELECT ALL + 95 * - + 13
----
-1235

onlyif mysql # aggregate syntax: 
query II rowsort label-3603
SELECT + 9, COUNT( - CASE 70 WHEN - 72 THEN NULL WHEN - 43 THEN - 45 * + 46 WHEN - + 92 * 68 + - - ( + - 69 ) THEN NULL END ) * - 5 AS col2
----
9
0

skipif mysql # not compatible
query II rowsort label-3603
SELECT + 9, COUNT ( - CASE 70 WHEN - 72 THEN NULL WHEN - 43 THEN - 45 * + 46 WHEN - + 92 * 68 + - - ( + - 69 ) THEN NULL END ) * - 5 AS col2
----
9
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3604
SELECT ALL + ( 90 ) DIV 64 - - 44 col1
----
45

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL + ( 90 ) / 64 - - 44 col1
----
45

query I rowsort
SELECT + - ( 80 ) col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3606
SELECT + 86 / CASE 15 WHEN + 70 THEN - - 86 WHEN - 45 + + 98 / 88 * + - 96 THEN - - 64 END - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT + 86 / CASE 15 WHEN + 70 THEN - - 86 WHEN - 45 + + 98 / 88 * + - 96 THEN - - 64 END - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 85 * + 21
----
1785

query I rowsort
SELECT - 55 - 61
----
-116

query II rowsort
SELECT ALL + - 99 AS col0, 59 col1
----
-99
59

query I rowsort
SELECT + 43 * - - 64
----
2752

query II rowsort
SELECT DISTINCT + + 47, + 94 AS col0
----
47
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3612
SELECT + - 30 DIV - ( MIN( ALL + 87 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3612
SELECT + - 30 / - ( MIN ( ALL + 87 ) )
----
0

query I rowsort
SELECT + + 14 - + 89
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3614
SELECT ALL + CAST( 46 AS SIGNED ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL + CAST ( 46 AS INTEGER ) AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3615
SELECT ALL + + CAST( - 47 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL + + CAST ( - 47 AS INTEGER )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT 78 * - COUNT( * ) - 90 AS col0
----
-168

skipif mysql # not compatible
query I rowsort label-3616
SELECT 78 * - COUNT ( * ) - 90 AS col0
----
-168

query II rowsort
SELECT + COALESCE ( - - ( 80 ), 27 ), 0 AS col1
----
80
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT + 14 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-3618
SELECT + 14 / - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT ALL - 79 * - - 60 * + + 0 + 86 + - 90 * + - COUNT( * ) + - - 39 * + COUNT( * ) * - MAX( 22 ) + 43
----
-639

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL - 79 * - - 60 * + + 0 + 86 + - 90 * + - COUNT ( * ) + - - 39 * + COUNT ( * ) * - MAX ( 22 ) + 43
----
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT - 91 * - + 15 * COUNT( * )
----
1365

skipif mysql # not compatible
query I rowsort label-3620
SELECT - 91 * - + 15 * COUNT ( * )
----
1365

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL + 29 * - 76 + - CASE - COUNT( * ) WHEN + - 60 THEN NULL ELSE + 79 + 45 + - 51 END * - CASE 47 WHEN - - 37 / - COALESCE ( - - COUNT( * ), - - 34 ) / - + COUNT( * ) + + 60 / 25 * + + 81 - - 66 THEN 23 WHEN + ( - 93 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL + 29 * - 76 + - CASE - COUNT ( * ) WHEN + - 60 THEN NULL ELSE + 79 + 45 + - 51 END * - CASE 47 WHEN - - 37 / - COALESCE ( - - COUNT ( * ), - - 34 ) / - + COUNT ( * ) + + 60 / 25 * + + 81 - - 66 THEN 23 WHEN + ( - 93 ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + 2 + - 90 + 73 AS col0
----
-15

query I rowsort
SELECT - 8 - + - 26 + - + 40
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT MIN( - 63 ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-3624
SELECT MIN ( - 63 ) col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3625
SELECT DISTINCT CASE - 54 WHEN - 4 - + - 21 THEN 13 + - CAST( + 39 AS SIGNED ) + - - COUNT( * ) + + - SUM( ALL 35 ) ELSE NULL END AS col2, + 46 AS col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-3625
SELECT DISTINCT CASE - 54 WHEN - 4 - + - 21 THEN 13 + - CAST ( + 39 AS INTEGER ) + - - COUNT ( * ) + + - SUM ( ALL 35 ) ELSE NULL END AS col2, + 46 AS col1
----
NULL
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT DISTINCT 19 + + COUNT( * ) + - 47
----
-27

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT 19 + + COUNT ( * ) + - 47
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3627
SELECT - 48 + CAST( NULL AS SIGNED ) / - + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3627
SELECT - 48 + CAST ( NULL AS INTEGER ) / - + 64
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3628
SELECT - CAST( 39 AS SIGNED ), 98 * + 14 + COUNT( * ) AS col0
----
-39
1373

skipif mysql # not compatible
query II rowsort label-3628
SELECT - CAST ( 39 AS INTEGER ), 98 * + 14 + COUNT ( * ) AS col0
----
-39
1373

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3629
SELECT ALL CASE - 66 WHEN COUNT( * ) DIV + ( - 91 ) * + 13 THEN 68 WHEN + COUNT( * ) THEN NULL ELSE - 57 DIV - 68 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL CASE - 66 WHEN COUNT ( * ) / + ( - 91 ) * + 13 THEN 68 WHEN + COUNT ( * ) THEN NULL ELSE - 57 / - 68 END AS col0
----
0

query I rowsort
SELECT - ( + 96 ) * + 15
----
-1440

query I rowsort
SELECT ALL + 44 * - + 20 * - 70
----
61600

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT ALL + COUNT( + + 23 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL + COUNT ( + + 23 ) AS col1
----
1

query I rowsort
SELECT - - ( + ( + 18 ) ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT DISTINCT + 47 * + - ( + COUNT( * ) ) col2
----
-47

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT + 47 * + - ( + COUNT ( * ) ) col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT + 64 * COUNT( * ) * + - 78 + - + ( - 58 ) * 31 AS col2
----
-3194

skipif mysql # not compatible
query I rowsort label-3635
SELECT + 64 * COUNT ( * ) * + - 78 + - + ( - 58 ) * 31 AS col2
----
-3194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3636
SELECT DISTINCT - AVG ( ALL 30 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT - AVG ( ALL 30 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3637
SELECT + 59 DIV - + 73 * + 76 DIV - MIN( DISTINCT + 1 ) * - 11 + - 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-3637
SELECT + 59 / - + 73 * + 76 / - MIN ( DISTINCT + 1 ) * - 11 + - 15 AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3638
SELECT 88 * 66 AS col2, + COUNT( DISTINCT - ( + - ( + + CAST( + 70 AS SIGNED ) ) ) ) + + + 29 * - + 77
----
5808
-2232

skipif mysql # not compatible
query II rowsort label-3638
SELECT 88 * 66 AS col2, + COUNT ( DISTINCT - ( + - ( + + CAST ( + 70 AS INTEGER ) ) ) ) + + + 29 * - + 77
----
5808
-2232

query I rowsort
SELECT 18 + + 33 * - - 6 AS col2
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3640
SELECT - - NULLIF ( + - CAST( NULLIF ( - NULLIF ( + COUNT( * ), - 25 - 21 ), 86 ) AS SIGNED ), + 47 / 3 ) * - + 17 - - COALESCE ( - 86, + 85 ) * + - 9 AS col0
----
757

skipif mysql # not compatible
query I rowsort label-3640
SELECT - - NULLIF ( + - CAST ( NULLIF ( - NULLIF ( + COUNT ( * ), - 25 - 21 ), 86 ) AS INTEGER ), + 47 / 3 ) * - + 17 - - COALESCE ( - 86, + 85 ) * + - 9 AS col0
----
757

query I rowsort
SELECT DISTINCT - COALESCE ( - 21, - - 0 )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3642
SELECT ALL - - 92 DIV - 48 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - - 92 / - 48 AS col0
----
-1

query I rowsort
SELECT + 84 * - 34 + ( - 21 )
----
-2877

query I rowsort
SELECT + 80 * + 16 + + COALESCE ( 45, + + 10 * + 67 - - + 2, - - 60 ) AS col2
----
1325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3645
SELECT ALL + 23 + + COALESCE ( - - 7, ( + 39 ), ( + 97 ) + + 41 ) * - 8 * - CAST( ( 22 ) AS SIGNED ) * + - 76 * + 99
----
-9269545

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL + 23 + + COALESCE ( - - 7, ( + 39 ), ( + 97 ) + + 41 ) * - 8 * - CAST ( ( 22 ) AS INTEGER ) * + - 76 * + 99
----
-9269545

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3646
SELECT 43 DIV + - MAX( ALL + COALESCE ( + 59, + 31 ) ) + - 91 - + 5 AS col2, COALESCE ( - 66, 35 ) * + 0 AS col1
----
-96
0

skipif mysql # not compatible
query II rowsort label-3646
SELECT 43 / + - MAX ( ALL + COALESCE ( + 59, + 31 ) ) + - 91 - + 5 AS col2, COALESCE ( - 66, 35 ) * + 0 AS col1
----
-96
0

query I rowsort
SELECT DISTINCT ( 56 ) + 83
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-3648
SELECT DISTINCT MAX( - 14 ) + + - COUNT( * ) col2, 59
----
-15
59

skipif mysql # not compatible
query II rowsort label-3648
SELECT DISTINCT MAX ( - 14 ) + + - COUNT ( * ) col2, 59
----
-15
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3649
SELECT ALL - 80, - COUNT( * ) AS col1
----
-80
-1

skipif mysql # not compatible
query II rowsort label-3649
SELECT ALL - 80, - COUNT ( * ) AS col1
----
-80
-1

query I rowsort
SELECT DISTINCT + 2 * 31 * + 33 AS col1
----
2046

query I rowsort
SELECT ALL - COALESCE ( + 39, + + 27 ) + - CASE - + 23 WHEN 43 THEN - 77 + 36 END AS col2
----
NULL

query I rowsort
SELECT 35 * - 48 AS col0
----
-1680

query I rowsort
SELECT DISTINCT 1 + + - 37 AS col0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3654
SELECT 54 DIV 40 col1
----
1

skipif mysql # not compatible
query I rowsort label-3654
SELECT 54 / 40 col1
----
1

query I rowsort
SELECT 25 * + 29
----
725

query I rowsort
SELECT 60 * 95 * - NULLIF ( 5, - + ( + 8 ) ) * + 90 AS col1
----
-2565000

query I rowsort
SELECT ALL 48 * + 62 AS col1
----
2976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3658
SELECT ALL ( + 45 ) - CASE WHEN + 38 BETWEEN - MAX( 86 ) AND + + ( - + COUNT( * ) ) + + CAST( + 85 AS SIGNED ) - - + COUNT( * ) THEN - 43 END
----
88

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL ( + 45 ) - CASE WHEN + 38 BETWEEN - MAX ( 86 ) AND + + ( - + COUNT ( * ) ) + + CAST ( + 85 AS INTEGER ) - - + COUNT ( * ) THEN - 43 END
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT NULLIF ( CAST( - - 91 AS SIGNED ), 81 * 79 ) - - ( - COALESCE ( + 18, ( - - 61 ), + 99 ) ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-3659
SELECT NULLIF ( CAST ( - - 91 AS INTEGER ), 81 * 79 ) - - ( - COALESCE ( + 18, ( - - 61 ), + 99 ) ) AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3660
SELECT ALL 0 * - COUNT( * ) * + - CAST( NULL AS SIGNED ) * 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL 0 * - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * 24 AS col2
----
NULL

query I rowsort
SELECT 61 + - 35 + + 95 + 60 * + + 23 * - - 79
----
109141

query I rowsort
SELECT 64 * - 31 col2
----
-1984

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT ALL - CASE AVG ( ALL + 94 ) WHEN 13 THEN NULL ELSE + COALESCE ( + ( 87 ), - NULLIF ( COUNT( * ), + COUNT( * ) ) * - 54 + + SUM( DISTINCT + 71 ), + 82 * - - MAX( ALL + - 84 ) + COUNT( * ) ) END
----
-87

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL - CASE AVG ( ALL + 94 ) WHEN 13 THEN NULL ELSE + COALESCE ( + ( 87 ), - NULLIF ( COUNT ( * ), + COUNT ( * ) ) * - 54 + + SUM ( DISTINCT + 71 ), + 82 * - - MAX ( ALL + - 84 ) + COUNT ( * ) ) END
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT + 98 * + COUNT( * ) * + ( 88 )
----
8624

skipif mysql # not compatible
query I rowsort label-3664
SELECT + 98 * + COUNT ( * ) * + ( 88 )
----
8624

query I rowsort
SELECT 2 + + 3 - 21 * - 33 AS col0
----
698

query I rowsort
SELECT DISTINCT - + 95 * + 55 + + 83
----
-5142

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3667
SELECT ALL - 52 + - ( - - 64 ) - - CAST( NULL AS SIGNED ) * + 86, + 90 * 75 col2
----
NULL
6750

skipif mysql # not compatible
query II rowsort label-3667
SELECT ALL - 52 + - ( - - 64 ) - - CAST ( NULL AS INTEGER ) * + 86, + 90 * 75 col2
----
NULL
6750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3668
SELECT 2 DIV MAX( DISTINCT + 49 ) + - - 35
----
35

skipif mysql # not compatible
query I rowsort label-3668
SELECT 2 / MAX ( DISTINCT + 49 ) + - - 35
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3669
SELECT ALL - MIN( ALL + 59 ) + - 65 + CAST( NULL AS DECIMAL ) + - 17 * + ( 7 ) - - + COUNT( * ) * 65 * + 76 / + - 80 * - - 48 / 37 * 13 + - CAST( NULL AS DECIMAL ) - + 12 * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL - MIN ( ALL + 59 ) + - 65 + CAST ( NULL AS REAL ) + - 17 * + ( 7 ) - - + COUNT ( * ) * 65 * + 76 / + - 80 * - - 48 / 37 * 13 + - CAST ( NULL AS REAL ) - + 12 * 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT MIN( ALL - 39 ) - + 98 AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-3670
SELECT MIN ( ALL - 39 ) - + 98 AS col2
----
-137

query I rowsort
SELECT ALL + + 60 + - 81 AS col1
----
-21

query I rowsort
SELECT + 53 - - ( + 86 )
----
139

query II rowsort
SELECT DISTINCT - 23 AS col2, + 13 AS col0
----
-23
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT 15 * + - 32 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT 15 * + - 32 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 45 * 30 AS col0
----
1350

onlyif mysql # DIV for integer division: 
query I rowsort label-3676
SELECT ALL - 42 DIV ( + 20 )
----
-2

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL - 42 / ( + 20 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL + NULLIF ( ( + COUNT( * ) ), - + 9 * + 38 / - - ( + + 28 ) ) + + 18
----
19

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL + NULLIF ( ( + COUNT ( * ) ), - + 9 * + 38 / - - ( + + 28 ) ) + + 18
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT 35 - + COUNT( ALL - 81 ) * + 40 - - - 7 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3678
SELECT 35 - + COUNT ( ALL - 81 ) * + 40 - - - 7 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT ALL - SUM( - - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL - SUM ( - - 12 )
----
-12

query I rowsort
SELECT ALL + 16 - - 73 * + 4 col2
----
308

query I rowsort
SELECT 34 + + + 97
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT 70 * - COUNT( * ) * - + 70 col1
----
4900

skipif mysql # not compatible
query I rowsort label-3682
SELECT 70 * - COUNT ( * ) * - + 70 col1
----
4900

query I rowsort
SELECT ALL - 44 * + 63 AS col0
----
-2772

query I rowsort
SELECT + CASE - 13 WHEN + 84 THEN + - 68 / 31 END - - 16 * - + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT COUNT( ALL 21 ) * 71 + - 8 + - ( + 72 ) * 30 + - - 77 AS col1
----
-2020

skipif mysql # not compatible
query I rowsort label-3685
SELECT COUNT ( ALL 21 ) * 71 + - 8 + - ( + 72 ) * 30 + - - 77 AS col1
----
-2020

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL - ( - COUNT( DISTINCT - 69 ) ) * 56 + + 48 + - - ( + 78 )
----
182

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL - ( - COUNT ( DISTINCT - 69 ) ) * 56 + + 48 + - - ( + 78 )
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT DISTINCT 12 DIV + ( + 62 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT 12 / + ( + 62 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT DISTINCT NULLIF ( + 91, + COUNT( * ) ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT NULLIF ( + 91, + COUNT ( * ) ) AS col0
----
91

query I rowsort
SELECT + 35 + - 9
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3690
SELECT - - 8 DIV - CAST( SUM( ALL + 12 ) AS SIGNED ) AS col0, + 66 AS col1
----
0
66

skipif mysql # not compatible
query II rowsort label-3690
SELECT - - 8 / - CAST ( SUM ( ALL + 12 ) AS INTEGER ) AS col0, + 66 AS col1
----
0
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3691
SELECT + - COUNT( * ) * + 96 AS col2, + 36
----
-96
36

skipif mysql # not compatible
query II rowsort label-3691
SELECT + - COUNT ( * ) * + 96 AS col2, + 36
----
-96
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3692
SELECT DISTINCT - 97 DIV - 32 - - + 62 * - + COUNT( * ) DIV - 35 DIV 16, - ( + 81 ) AS col0
----
3
-81

skipif mysql # not compatible
query II rowsort label-3692
SELECT DISTINCT - 97 / - 32 - - + 62 * - + COUNT ( * ) / - 35 / 16, - ( + 81 ) AS col0
----
3
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3693
SELECT ALL MAX( + + 22 ), 77 col2
----
22
77

skipif mysql # not compatible
query II rowsort label-3693
SELECT ALL MAX ( + + 22 ), 77 col2
----
22
77

query II rowsort
SELECT - 28 AS col0, + 25
----
-28
25

query I rowsort
SELECT ALL 52 * 57 AS col1
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT + COUNT( * ) + + 40 * + NULLIF ( - 68, 34 + 11 + + + 90 )
----
-2719

skipif mysql # not compatible
query I rowsort label-3696
SELECT + COUNT ( * ) + + 40 * + NULLIF ( - 68, 34 + 11 + + + 90 )
----
-2719

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3697
SELECT + ( 59 ) * + 11 * + CAST( NULL AS SIGNED ) AS col2, 65
----
NULL
65

skipif mysql # not compatible
query II rowsort label-3697
SELECT + ( 59 ) * + 11 * + CAST ( NULL AS INTEGER ) AS col2, 65
----
NULL
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3698
SELECT ALL CASE - ( 78 ) WHEN + 38 THEN NULL ELSE + + 15 DIV + 22 + + - 51 + + + 44 END * - + COUNT( * ) * - ( + - 54 ) + + + 76 AS col1
----
454

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL CASE - ( 78 ) WHEN + 38 THEN NULL ELSE + + 15 / + 22 + + - 51 + + + 44 END * - + COUNT ( * ) * - ( + - 54 ) + + + 76 AS col1
----
454

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT ALL 74 + COUNT( * ) * 86 col0
----
160

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL 74 + COUNT ( * ) * 86 col0
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT 32, + SUM( - - 7 ) AS col1
----
32
7

skipif mysql # not compatible
query II rowsort label-3700
SELECT 32, + SUM ( - - 7 ) AS col1
----
32
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL 32 * CASE WHEN NOT NULLIF ( + - 9, 39 + + COUNT( * ) ) IS NULL THEN 80 ELSE NULL END AS col1
----
2560

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL 32 * CASE WHEN NOT NULLIF ( + - 9, 39 + + COUNT ( * ) ) IS NULL THEN 80 ELSE NULL END AS col1
----
2560

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT DISTINCT 36 + ( - + COUNT( * ) ) + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT 36 + ( - + COUNT ( * ) ) + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT ALL - - 33 * - + 31 + + 78 + + + COUNT( * ) AS col0
----
-944

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL - - 33 * - + 31 + + 78 + + + COUNT ( * ) AS col0
----
-944

onlyif mysql # DIV for integer division: 
query I rowsort label-3704
SELECT - 12 DIV - 60 + + + 36 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3704
SELECT - 12 / - 60 + + + 36 AS col1
----
36

query I rowsort
SELECT + 51 + 44
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3706
SELECT - - 76 DIV - 42 + + 27 + + - 25 DIV - 94
----
26

skipif mysql # not compatible
query I rowsort label-3706
SELECT - - 76 / - 42 + + 27 + + - 25 / - 94
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3707
SELECT DISTINCT + CASE - CAST( + - 55 AS SIGNED ) WHEN + ( - - 91 ) * + + 17 THEN NULL WHEN + 69 * - 69 * + 66 THEN NULL WHEN 91 THEN NULL ELSE + 22 * - ( 1 ) END AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT + CASE - CAST ( + - 55 AS INTEGER ) WHEN + ( - - 91 ) * + + 17 THEN NULL WHEN + 69 * - 69 * + 66 THEN NULL WHEN 91 THEN NULL ELSE + 22 * - ( 1 ) END AS col2
----
-22

query I rowsort
SELECT ALL + 81 * - + 72 - - 30 col2
----
-5802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3709
SELECT DISTINCT 3 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT 3 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT - 32 * - MIN( + 78 ) * + 6
----
14976

skipif mysql # not compatible
query I rowsort label-3710
SELECT - 32 * - MIN ( + 78 ) * + 6
----
14976

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT ALL COUNT( * ) * - + 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL COUNT ( * ) * - + 3 AS col1
----
-3

query II rowsort
SELECT + 61 * 73 AS col1, 44 AS col1
----
4453
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3713
SELECT + ( - 46 ), 25 * - 33 + + COUNT( ALL - + 4 ) * + 42 col2
----
-46
-783

skipif mysql # not compatible
query II rowsort label-3713
SELECT + ( - 46 ), 25 * - 33 + + COUNT ( ALL - + 4 ) * + 42 col2
----
-46
-783

query I rowsort
SELECT - 25 + NULLIF ( 29, 40 + + 71 ) col2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3715
SELECT DISTINCT + COUNT( - + 40 ), 15 AS col2
----
1
15

skipif mysql # not compatible
query II rowsort label-3715
SELECT DISTINCT + COUNT ( - + 40 ), 15 AS col2
----
1
15

query I rowsort
SELECT + 96 * + 98 * + 27
----
254016

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT - COUNT( * ) * + - COALESCE ( 94, + 50 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3717
SELECT - COUNT ( * ) * + - COALESCE ( 94, + 50 ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3718
SELECT + CAST( + + 84 AS SIGNED ) AS col0, 44 DIV MAX( + 17 ) AS col2
----
84
2

skipif mysql # not compatible
query II rowsort label-3718
SELECT + CAST ( + + 84 AS INTEGER ) AS col0, 44 / MAX ( + 17 ) AS col2
----
84
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3719
SELECT - COUNT( * ) DIV - MAX( + + 66 )
----
0

skipif mysql # not compatible
query I rowsort label-3719
SELECT - COUNT ( * ) / - MAX ( + + 66 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT NULLIF ( + MIN( DISTINCT - 28 ), 40 )
----
-28

skipif mysql # not compatible
query I rowsort label-3720
SELECT NULLIF ( + MIN ( DISTINCT - 28 ), 40 )
----
-28

query I rowsort
SELECT ALL 95 * - + 41 * - - 35 col0
----
-136325

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT NULLIF ( + + COUNT( * ), + - COUNT( DISTINCT + 68 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3722
SELECT NULLIF ( + + COUNT ( * ), + - COUNT ( DISTINCT + 68 ) ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3723
SELECT - MIN( ALL - 26 ) DIV - 2 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-3723
SELECT - MIN ( ALL - 26 ) / - 2 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3724
SELECT ALL + CAST( NULL AS SIGNED ) / + + 2, 83 * + ( - ( - MAX( + 40 ) ) ) AS col0
----
NULL
3320

skipif mysql # not compatible
query II rowsort label-3724
SELECT ALL + CAST ( NULL AS INTEGER ) / + + 2, 83 * + ( - ( - MAX ( + 40 ) ) ) AS col0
----
NULL
3320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3725
SELECT DISTINCT CAST( - 42 AS SIGNED ) AS col0, - COUNT( * ) col2
----
-42
-1

skipif mysql # not compatible
query II rowsort label-3725
SELECT DISTINCT CAST ( - 42 AS INTEGER ) AS col0, - COUNT ( * ) col2
----
-42
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3726
SELECT ALL - COUNT( * ) * - 99 AS col1, - 96
----
99
-96

skipif mysql # not compatible
query II rowsort label-3726
SELECT ALL - COUNT ( * ) * - 99 AS col1, - 96
----
99
-96

query I rowsort
SELECT DISTINCT NULLIF ( - + 80, + 14 * + 63 )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3728
SELECT + 4 * - 13 + + MIN( - 49 ) * - ( 84 ) - - 84 + + 71 DIV + 36 AS col1
----
4149

skipif mysql # not compatible
query I rowsort label-3728
SELECT + 4 * - 13 + + MIN ( - 49 ) * - ( 84 ) - - 84 + + 71 / + 36 AS col1
----
4149

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT - MIN( ALL + 93 ) * + COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3729
SELECT - MIN ( ALL + 93 ) * + COUNT ( * ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT - ( - 42 ) - - 70 * - + COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-3730
SELECT - ( - 42 ) - - 70 * - + COUNT ( * ) AS col2
----
-28

query I rowsort
SELECT - 10 - - 84 AS col1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3732
SELECT - COUNT( * ) DIV + - 87
----
0

skipif mysql # not compatible
query I rowsort label-3732
SELECT - COUNT ( * ) / + - 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3733
SELECT DISTINCT + MIN( DISTINCT - - 88 ) + + 32 * - COALESCE ( - 25, - + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) * - COUNT( * ) + - COUNT( * ) + + 47 ) + 81 - + + CAST( + + COUNT( * ) AS SIGNED ) * - - CASE WHEN NOT ( NULL ) IS NOT NULL THEN 52 ELSE NULL END * AVG ( - 82 ) + - - ( + 50 ) * + + NULLIF ( CASE - 23 WHEN + 22 THEN + 54 END, + 27 + - NULLIF ( + 93, + 24 + 51 ) ) / + + COUNT( - 37 ) / - + CASE + + COUNT( * ) WHEN - - 70 THEN + 95 + - 1 WHEN - COUNT( * ) THEN NULL END / - 91 + - - 93 + - 69 + + 71 + + 63 * + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT + MIN ( DISTINCT - - 88 ) + + 32 * - COALESCE ( - 25, - + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - COUNT ( * ) + + 47 ) + 81 - + + CAST ( + + COUNT ( * ) AS INTEGER ) * - - CASE WHEN NOT ( NULL ) IS NOT NULL THEN 52 ELSE NULL END * AVG ( - 82 ) + - - ( + 50 ) * + + NULLIF ( CASE - 23 WHEN + 22 THEN + 54 END, + 27 + - NULLIF ( + 93, + 24 + 51 ) ) / + + COUNT ( - 37 ) / - + CASE + + COUNT ( * ) WHEN - - 70 THEN + 95 + - 1 WHEN - COUNT ( * ) THEN NULL END / - 91 + - - 93 + - 69 + + 71 + + 63 * + 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT + NULLIF ( - - 72, - 28 * - COUNT( * ) + + 78 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3734
SELECT + NULLIF ( - - 72, - 28 * - COUNT ( * ) + + 78 ) AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3735
SELECT ALL + COALESCE ( + 95, 98 ) DIV - + CAST( - 54 AS SIGNED ), 32 AS col1
----
1
32

skipif mysql # not compatible
query II rowsort label-3735
SELECT ALL + COALESCE ( + 95, 98 ) / - + CAST ( - 54 AS INTEGER ), 32 AS col1
----
1
32

query I rowsort
SELECT + + COALESCE ( 22, 61 ) * 67 AS col0
----
1474

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3737
SELECT - + 86 * + CAST( 45 AS SIGNED )
----
-3870

skipif mysql # not compatible
query I rowsort label-3737
SELECT - + 86 * + CAST ( 45 AS INTEGER )
----
-3870

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT ALL + + 14 DIV + + 66 * - ( - 80 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + + 14 / + + 66 * - ( - 80 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3739
SELECT ( + + 60 ) AS col2, COALESCE ( + - 19, + - COUNT( * ) + - 65, + 35 DIV CAST( NULL AS SIGNED ) + - - ( CASE - 66 WHEN - + 51 THEN - 86 + + 64 ELSE NULL END ) ) + + 12 AS col1
----
60
-7

skipif mysql # not compatible
query II rowsort label-3739
SELECT ( + + 60 ) AS col2, COALESCE ( + - 19, + - COUNT ( * ) + - 65, + 35 / CAST ( NULL AS INTEGER ) + - - ( CASE - 66 WHEN - + 51 THEN - 86 + + 64 ELSE NULL END ) ) + + 12 AS col1
----
60
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3740
SELECT ALL + - NULLIF ( - COUNT( * ), ( 34 ) + + 11 * - 78 * - 43 + - COALESCE ( + 81, + MAX( + 8 ) ) ) / - ( - + 44 ) + CAST( NULL AS SIGNED ) - 95 AS col2, - 35
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-3740
SELECT ALL + - NULLIF ( - COUNT ( * ), ( 34 ) + + 11 * - 78 * - 43 + - COALESCE ( + 81, + MAX ( + 8 ) ) ) / - ( - + 44 ) + CAST ( NULL AS INTEGER ) - 95 AS col2, - 35
----
NULL
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT ALL MIN( - - 93 ) * - 96 AS col2
----
-8928

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL MIN ( - - 93 ) * - 96 AS col2
----
-8928

query I rowsort
SELECT ALL + 40 * 15
----
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT + 73 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3743
SELECT + 73 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3744
SELECT + CAST( + ( + + 6 ) AS SIGNED ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3744
SELECT + CAST ( + ( + + 6 ) AS INTEGER ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT DISTINCT SUM( + 38 ) * + ( - 50 )
----
-1900

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT SUM ( + 38 ) * + ( - 50 )
----
-1900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT CAST( + 49 AS SIGNED ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3746
SELECT CAST ( + 49 AS INTEGER ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-3747
SELECT + 37 - + ( - COUNT( * ) ) AS col2, + 27 + - 63
----
38
-36

skipif mysql # not compatible
query II rowsort label-3747
SELECT + 37 - + ( - COUNT ( * ) ) AS col2, + 27 + - 63
----
38
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT + 14 + + - COUNT( * ) + - + COUNT( * ) + + COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-3748
SELECT + 14 + + - COUNT ( * ) + - + COUNT ( * ) + + COUNT ( * ) AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3749
SELECT ALL - 8 AS col0, + CAST( NULL AS SIGNED ) AS col1
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-3749
SELECT ALL - 8 AS col0, + CAST ( NULL AS INTEGER ) AS col1
----
-8
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3750
SELECT - CAST( NULL AS SIGNED ) * - 63 / + + AVG ( ALL + CASE - NULLIF ( - 46, - 40 ) WHEN - 87 THEN NULL ELSE + - 98 / - 92 + + 57 - - + 5 END ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT - CAST ( NULL AS INTEGER ) * - 63 / + + AVG ( ALL + CASE - NULLIF ( - 46, - 40 ) WHEN - 87 THEN NULL ELSE + - 98 / - 92 + + 57 - - + 5 END ) + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT 53 + COUNT( * ) + COUNT( - - ( 9 ) ) + - - COUNT( * ) col1
----
56

skipif mysql # not compatible
query I rowsort label-3751
SELECT 53 + COUNT ( * ) + COUNT ( - - ( 9 ) ) + - - COUNT ( * ) col1
----
56

query I rowsort
SELECT DISTINCT + 99 * + 10 AS col1
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT ( COUNT( - - 32 ) ) * - + 0
----
0

skipif mysql # not compatible
query I rowsort label-3753
SELECT ( COUNT ( - - 32 ) ) * - + 0
----
0

query I rowsort
SELECT ( + 75 ) - + 89 * 71 AS col1
----
-6244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3755
SELECT ALL + AVG ( ALL + CAST( NULL AS SIGNED ) ) * ( + - 51 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL + AVG ( ALL + CAST ( NULL AS INTEGER ) ) * ( + - 51 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3756
SELECT ALL - 26 + - 1 DIV - COUNT( * ), - CAST( - 20 AS SIGNED ) - + + 95 - COUNT( * ) * 71 AS col0
----
-25
-146

skipif mysql # not compatible
query II rowsort label-3756
SELECT ALL - 26 + - 1 / - COUNT ( * ), - CAST ( - 20 AS INTEGER ) - + + 95 - COUNT ( * ) * 71 AS col0
----
-25
-146

query I rowsort
SELECT 79 + - + 14 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT + 0 * - + 24 + + 59 + + + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-3758
SELECT + 0 * - + 24 + + 59 + + + COUNT ( * )
----
60

query I rowsort
SELECT ALL + 81 + 69 AS col2
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-3760
SELECT COUNT( * ) + - 6 * + 42 col0, + 75
----
-251
75

skipif mysql # not compatible
query II rowsort label-3760
SELECT COUNT ( * ) + - 6 * + 42 col0, + 75
----
-251
75

query I rowsort
SELECT ALL - - 46 + + 59
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3762
SELECT ALL + - CAST( - MAX( COALESCE ( + CASE + 65 WHEN ( - 38 ) THEN 89 * + - ( - COALESCE ( 75, + CAST( + - ( + 92 ) AS SIGNED ) ) ) * + 62 WHEN 28 THEN + 13 END, + 57 ) ) AS SIGNED ) + - 60 col1
----
-3

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL + - CAST ( - MAX ( COALESCE ( + CASE + 65 WHEN ( - 38 ) THEN 89 * + - ( - COALESCE ( 75, + CAST ( + - ( + 92 ) AS INTEGER ) ) ) * + 62 WHEN 28 THEN + 13 END, + 57 ) ) AS INTEGER ) + - 60 col1
----
-3

query II rowsort
SELECT DISTINCT + 3 AS col1, + 76 AS col2
----
3
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3764
SELECT ALL - 18 AS col0, + CAST( NULL AS SIGNED ) * - 61
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-3764
SELECT ALL - 18 AS col0, + CAST ( NULL AS INTEGER ) * - 61
----
-18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT NULLIF ( - - ( + CASE - COUNT( * ) WHEN - - 49 - - + 77 + + 43 THEN NULL WHEN - - 48 THEN - 32 ELSE NULL END ), - 54 + - SUM( ALL 56 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT NULLIF ( - - ( + CASE - COUNT ( * ) WHEN - - 49 - - + 77 + + 43 THEN NULL WHEN - - 48 THEN - 32 ELSE NULL END ), - 54 + - SUM ( ALL 56 ) )
----
NULL

query I rowsort
SELECT DISTINCT - - 16 + + 87
----
103

query I rowsort
SELECT + 58 + + 5
----
63

query I rowsort
SELECT DISTINCT + 62 * 34
----
2108

onlyif mysql # aggregate syntax: 
query II rowsort label-3769
SELECT ALL 58 AS col1, COUNT( * ) * 68
----
58
68

skipif mysql # not compatible
query II rowsort label-3769
SELECT ALL 58 AS col1, COUNT ( * ) * 68
----
58
68

query I rowsort
SELECT 57 * - 5
----
-285

query I rowsort
SELECT - 80 * 68 * + 84
----
-456960

query I rowsort
SELECT 87 + CASE + 76 WHEN + COALESCE ( + 23, - 3 + + 72 ) THEN - 15 WHEN - - 54 THEN NULL END
----
NULL

query II rowsort
SELECT ALL - 46 AS col0, 2
----
-46
2

query I rowsort
SELECT DISTINCT + + 12 * - 89 * + 23
----
-24564

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL + 69 * + 64 + 14 - 71 * - + ( - NULLIF ( - - 14, - + 52 * 23 * MAX( + 97 ) - - 43 ) )
----
3436

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL + 69 * + 64 + 14 - 71 * - + ( - NULLIF ( - - 14, - + 52 * 23 * MAX ( + 97 ) - - 43 ) )
----
3436

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT - 56 + + 54 + - - MAX( 18 )
----
16

skipif mysql # not compatible
query I rowsort label-3776
SELECT - 56 + + 54 + - - MAX ( 18 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT DISTINCT - COUNT( ( + ( - 27 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3777
SELECT DISTINCT - COUNT ( ( + ( - 27 ) ) ) AS col0
----
-1

query II rowsort
SELECT 18 * 81 AS col1, - 80 AS col1
----
1458
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3779
SELECT - SUM( ALL + - 91 ) * + - 60 + 23 DIV - 54 * + 86 + - 42 + - NULLIF ( 36, - 12 )
----
-5538

skipif mysql # not compatible
query I rowsort label-3779
SELECT - SUM ( ALL + - 91 ) * + - 60 + 23 / - 54 * + 86 + - 42 + - NULLIF ( 36, - 12 )
----
-5538

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT DISTINCT + COALESCE ( + - 18, - 99, + - SUM( DISTINCT 75 ) * + 42, - 15 ) / - - MIN( 91 ) * 44 / - CASE - - 9 WHEN - 15 THEN 47 * + 53 + - 45 END * + COUNT( * ) * + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT + COALESCE ( + - 18, - 99, + - SUM ( DISTINCT 75 ) * + 42, - 15 ) / - - MIN ( 91 ) * 44 / - CASE - - 9 WHEN - 15 THEN 47 * + 53 + - 45 END * + COUNT ( * ) * + 77
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3781
SELECT 21 DIV - 74 + NULLIF ( NULLIF ( + 80, - + CASE 30 WHEN - 28 * - + 97 THEN + 33 * + 46 END + - 30 ), + - 38 ) + - COUNT( * ) * 35 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3781
SELECT 21 / - 74 + NULLIF ( NULLIF ( + 80, - + CASE 30 WHEN - 28 * - + 97 THEN + 33 * + 46 END + - 30 ), + - 38 ) + - COUNT ( * ) * 35 AS col2
----
45

query I rowsort
SELECT ALL 2 * + + 20 AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3783
SELECT DISTINCT - 12 DIV COALESCE ( - 12, - - 37, - COUNT( * ) * + - 66 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT - 12 / COALESCE ( - 12, - - 37, - COUNT ( * ) * + - 66 ) col0
----
1

query I rowsort
SELECT ALL 78 * + 87
----
6786

query I rowsort
SELECT ALL 42 * 35 * 22
----
32340

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT CASE + + 72 WHEN - + 72 THEN - SUM( - - 11 ) END * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT CASE + + 72 WHEN - + 72 THEN - SUM ( - - 11 ) END * + 93
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3787
SELECT ( - 47 ) * + 77 + + COUNT( * ) + + COUNT( * ) * + 73 - - 19 AS col1, 76
----
-3526
76

skipif mysql # not compatible
query II rowsort label-3787
SELECT ( - 47 ) * + 77 + + COUNT ( * ) + + COUNT ( * ) * + 73 - - 19 AS col1, 76
----
-3526
76

query I rowsort
SELECT ALL - 85 + - - 85 AS col2
----
0

query I rowsort
SELECT DISTINCT + 69 * + 8 AS col0
----
552

query II rowsort
SELECT 2 + 18 col1, - 22
----
20
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT - 28 * - ( - NULLIF ( + 36, + COUNT( * ) ) ) AS col0
----
-1008

skipif mysql # not compatible
query I rowsort label-3791
SELECT - 28 * - ( - NULLIF ( + 36, + COUNT ( * ) ) ) AS col0
----
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT + 97 * ( - 20 ) + + MIN( - - 26 ) - + 31 + + COUNT( * ) AS col2
----
-1944

skipif mysql # not compatible
query I rowsort label-3792
SELECT + 97 * ( - 20 ) + + MIN ( - - 26 ) - + 31 + + COUNT ( * ) AS col2
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT - SUM( ALL + + 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-3793
SELECT - SUM ( ALL + + 29 )
----
-29

query II rowsort
SELECT ALL ( + 80 ) AS col0, - 52 AS col2
----
80
-52

query I rowsort
SELECT + 95 - 31 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT ( 75 ) + - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-3796
SELECT ( 75 ) + - COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT ALL - - ( + COALESCE ( + 72, + COUNT( * ), 82 * + 94 ) ) * - 61
----
-4392

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL - - ( + COALESCE ( + 72, + COUNT ( * ), 82 * + 94 ) ) * - 61
----
-4392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3798
SELECT DISTINCT - 81 - - + CASE 21 WHEN 29 THEN + COUNT( * ) WHEN COUNT( * ) * - 12 + + 55 THEN NULL ELSE NULL END + + 70 AS col1, - CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3798
SELECT DISTINCT - 81 - - + CASE 21 WHEN 29 THEN + COUNT ( * ) WHEN COUNT ( * ) * - 12 + + 55 THEN NULL ELSE NULL END + + 70 AS col1, - CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3799
SELECT 41 - - MAX( 90 ) - 35 + - 31, 24 + 6 + 1 * 33 * - 4 + - + 32 DIV + + 34 AS col2, + COUNT( * ) * 84 * + 35 + 53 AS col0
----
65
-102
2993

skipif mysql # not compatible
query III rowsort label-3799
SELECT 41 - - MAX ( 90 ) - 35 + - 31, 24 + 6 + 1 * 33 * - 4 + - + 32 / + + 34 AS col2, + COUNT ( * ) * 84 * + 35 + 53 AS col0
----
65
-102
2993

query I rowsort
SELECT 28 * + + 21 AS col2
----
588

query II rowsort
SELECT 6 AS col2, 96 col2
----
6
96

query II rowsort
SELECT 41 AS col1, + 82
----
41
82

query I rowsort
SELECT ALL CASE 53 WHEN 1 THEN 75 WHEN - ( + 66 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3804
SELECT CASE - 29 WHEN 51 THEN NULL ELSE - COUNT( * ) + 31 + 50 END / COUNT( * ) - + - NULLIF ( - + 21, - 84 ) * COUNT( * ) + - 0 - - 31 * + 41 + + CAST( NULL AS SIGNED ) + + + 48 * + ( + 89 ) + CAST( NULL AS SIGNED ) - 60 * 26 * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT CASE - 29 WHEN 51 THEN NULL ELSE - COUNT ( * ) + 31 + 50 END / COUNT ( * ) - + - NULLIF ( - + 21, - 84 ) * COUNT ( * ) + - 0 - - 31 * + 41 + + CAST ( NULL AS INTEGER ) + + + 48 * + ( + 89 ) + CAST ( NULL AS INTEGER ) - 60 * 26 * 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT COALESCE ( 66, + 48, 70 * - 10 * - COUNT( * ) )
----
66

skipif mysql # not compatible
query I rowsort label-3805
SELECT COALESCE ( 66, + 48, 70 * - 10 * - COUNT ( * ) )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT ALL 30 * - CASE - 78 WHEN + 64 THEN NULL WHEN - 19 + - COUNT( * ) + - + 88 THEN - - 89 + - COUNT( * ) * - 89 END + - COUNT( * ) * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL 30 * - CASE - 78 WHEN + 64 THEN NULL WHEN - 19 + - COUNT ( * ) + - + 88 THEN - - 89 + - COUNT ( * ) * - 89 END + - COUNT ( * ) * - 46
----
NULL

query I rowsort
SELECT - 36 * 15
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT + COUNT( + + 55 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3808
SELECT + COUNT ( + + 55 ) AS col0
----
1

query I rowsort
SELECT CASE 26 WHEN 46 THEN + + NULLIF ( - - AVG ( DISTINCT ( + 57 ) ), - + 93 ) * - 49 + - 88 / 68 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT + COUNT( - 27 ) * - ( - + 69 ) - - + 6 + 20 + 91 col1
----
186

skipif mysql # not compatible
query I rowsort label-3810
SELECT + COUNT ( - 27 ) * - ( - + 69 ) - - + 6 + 20 + 91 col1
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT ALL + 29 * + NULLIF ( - NULLIF ( - 4, 97 ), - + MAX( ALL 15 ) + 75 + - ( - 59 ) + COUNT( * ) + 0 * + + 44 * - 69 * ( - + 61 ) * - - 32 ) + 16 AS col0
----
132

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL + 29 * + NULLIF ( - NULLIF ( - 4, 97 ), - + MAX ( ALL 15 ) + 75 + - ( - 59 ) + COUNT ( * ) + 0 * + + 44 * - 69 * ( - + 61 ) * - - 32 ) + 16 AS col0
----
132

query II rowsort
SELECT + 64 AS col2, - 16 col0
----
64
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT - 83 * COUNT( * ) + + + 64 * + 72
----
4525

skipif mysql # not compatible
query I rowsort label-3813
SELECT - 83 * COUNT ( * ) + + + 64 * + 72
----
4525

query II rowsort
SELECT DISTINCT 87 * - - 57 * + - 79 AS col0, + 54 AS col2
----
-391761
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3815
SELECT - - CAST( NULL AS SIGNED ) * + ( - 19 ) + - 74 + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT - - CAST ( NULL AS INTEGER ) * + ( - 19 ) + - 74 + - 85
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + 96 + - 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + 96 + - 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT + ( ( - COUNT( * ) ) ) * - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3817
SELECT + ( ( - COUNT ( * ) ) ) * - COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3818
SELECT ALL + COUNT( * ) AS col2, - 0 + + COUNT( * ) * - 4 AS col1
----
1
-4

skipif mysql # not compatible
query II rowsort label-3818
SELECT ALL + COUNT ( * ) AS col2, - 0 + + COUNT ( * ) * - 4 AS col1
----
1
-4

query I rowsort
SELECT ALL 59 * - 53
----
-3127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT ALL + 52 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL + 52 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT + - COUNT( * ) * + 96 - + 63 + + 24 * + COUNT( * ) + + 54 * ( + 9 ) + 45 * - 35 AS col0
----
-1224

skipif mysql # not compatible
query I rowsort label-3821
SELECT + - COUNT ( * ) * + 96 - + 63 + + 24 * + COUNT ( * ) + + 54 * ( + 9 ) + 45 * - 35 AS col0
----
-1224

query I rowsort
SELECT + 42 + - 13 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL CASE 89 WHEN 41 THEN - 62 / - 4 * - 69 - 72 - + 68 WHEN - - MAX( - 88 ) - + 92 * - 23 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL CASE 89 WHEN 41 THEN - 62 / - 4 * - 69 - 72 - + 68 WHEN - - MAX ( - 88 ) - + 92 * - 23 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ( SUM( ALL - + NULLIF ( 72, + + 91 - 27 + 58 ) ) )
----
-72

skipif mysql # not compatible
query I rowsort label-3824
SELECT ( SUM ( ALL - + NULLIF ( 72, + + 91 - 27 + 58 ) ) )
----
-72

query I rowsort
SELECT - - CASE + + 48 WHEN 30 * + 67 THEN ( - ( + + 12 ) ) END / 70 + 26 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3826
SELECT + COUNT( * ) + 79 DIV + 96 * ( - - 86 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3826
SELECT + COUNT ( * ) + 79 / + 96 * ( - - 86 ) AS col2
----
1

query II rowsort
SELECT 13 col2, + 27 AS col2
----
13
27

query I rowsort
SELECT DISTINCT 38 * - NULLIF ( + 11, + + 20 ) * - - 36 * + 15
----
-225720

query I rowsort
SELECT ALL NULLIF ( - - 74, + 19 )
----
74

query I rowsort
SELECT + 67 + + 16
----
83

query I rowsort
SELECT ALL + 94 + + NULLIF ( 85, 22 - - 48 * + + 98 * + 70 )
----
179

query I rowsort
SELECT DISTINCT 66 + 31 AS col1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT ALL 25 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL 25 / + 84
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3834
SELECT - COUNT( * ) + + - 12 DIV - 80 * + + 87 + 73 DIV + 14 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3834
SELECT - COUNT ( * ) + + - 12 / - 80 * + + 87 + 73 / + 14 AS col2
----
4

query I rowsort
SELECT DISTINCT CASE 26 WHEN 67 THEN - 54 + + + 40 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT CAST( - + 29 AS SIGNED ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-3836
SELECT CAST ( - + 29 AS INTEGER ) AS col0
----
-29

query I rowsort
SELECT DISTINCT + NULLIF ( - 51, + 99 * + 94 )
----
-51

query II rowsort
SELECT DISTINCT + 11, - 56 AS col2
----
11
-56

query II rowsort
SELECT + 73 AS col0, - 79
----
73
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3840
SELECT ALL 37 / - 35 + + NULLIF ( COUNT( * ), 35 * - 1 + + 76 ) - - - CASE - 6 WHEN MAX( 89 ) THEN - 52 WHEN - ( - 89 ) THEN 57 * - 81 + + ( CAST( NULL AS SIGNED ) ) + 40 END AS col2, + 93 * - - SUM( ALL 46 ) - + - 71 - 77 AS col2, - 46 + 55
----
NULL
4272
9

skipif mysql # not compatible
query III rowsort label-3840
SELECT ALL 37 / - 35 + + NULLIF ( COUNT ( * ), 35 * - 1 + + 76 ) - - - CASE - 6 WHEN MAX ( 89 ) THEN - 52 WHEN - ( - 89 ) THEN 57 * - 81 + + ( CAST ( NULL AS INTEGER ) ) + 40 END AS col2, + 93 * - - SUM ( ALL 46 ) - + - 71 - 77 AS col2, - 46 + 55
----
NULL
4272
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3841
SELECT + NULLIF ( + 12, CAST( NULL AS SIGNED ) + + 1 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3841
SELECT + NULLIF ( + 12, CAST ( NULL AS INTEGER ) + + 1 ) AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3842
SELECT + - CASE - 27 WHEN - 19 THEN + NULLIF ( - 40, - COALESCE ( + COUNT( * ), - - ( - SUM( - 14 ) ) * - + 90 * + CAST( 51 AS SIGNED ) * - 91 ) + - - 77 ) / - - 53 * + 87 WHEN - - 45 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT + - CASE - 27 WHEN - 19 THEN + NULLIF ( - 40, - COALESCE ( + COUNT ( * ), - - ( - SUM ( - 14 ) ) * - + 90 * + CAST ( 51 AS INTEGER ) * - 91 ) + - - 77 ) / - - 53 * + 87 WHEN - - 45 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT - 50 DIV + 18
----
-2

skipif mysql # not compatible
query I rowsort label-3843
SELECT - 50 / + 18
----
-2

query II rowsort
SELECT + 19 * - + 83 * + - 88 + + - 45 AS col0, 33 AS col2
----
138731
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT - + COALESCE ( - 58, - - COUNT( * ), + + 96 ) * 87 - - 68 AS col2
----
5114

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT - + COALESCE ( - 58, - - COUNT ( * ), + + 96 ) * 87 - - 68 AS col2
----
5114

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT NULLIF ( - + 97, + 67 + - MIN( - 65 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-3846
SELECT NULLIF ( - + 97, + 67 + - MIN ( - 65 ) )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT - - COUNT( * ) * 37 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-3847
SELECT - - COUNT ( * ) * 37 AS col0
----
37

query I rowsort
SELECT DISTINCT + 25 * 74
----
1850

query II rowsort
SELECT ALL + + 43 col1, + 81 AS col2
----
43
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3850
SELECT + COALESCE ( 98, + COUNT( * ) * - 11 + + 36 DIV - 44 DIV - ( 70 ) DIV - + AVG ( 13 ) + - 99 + + - 58 DIV + + 37 ) + - 16 * - ( 95 )
----
1618

skipif mysql # not compatible
query I rowsort label-3850
SELECT + COALESCE ( 98, + COUNT ( * ) * - 11 + + 36 / - 44 / - ( 70 ) / - + AVG ( 13 ) + - 99 + + - 58 / + + 37 ) + - 16 * - ( 95 )
----
1618

query II rowsort
SELECT 73 AS col0, 85 * - 37
----
73
-3145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3852
SELECT - - COALESCE ( - + 93, - 75 ) * + CAST( + + 28 AS SIGNED )
----
-2604

skipif mysql # not compatible
query I rowsort label-3852
SELECT - - COALESCE ( - + 93, - 75 ) * + CAST ( + + 28 AS INTEGER )
----
-2604

query I rowsort
SELECT + 35 * + - 9
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT ALL + CASE ( 50 ) WHEN + MIN( DISTINCT 91 ) THEN - + 36 * - 31 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL + CASE ( 50 ) WHEN + MIN ( DISTINCT 91 ) THEN - + 36 * - 31 END col0
----
NULL

query II rowsort
SELECT ALL + 44, 54 col1
----
44
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3856
SELECT - COUNT( * ) * - 39 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-3856
SELECT - COUNT ( * ) * - 39 / 98
----
0

query II rowsort
SELECT DISTINCT 20 + 81 AS col0, + 8
----
101
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3858
SELECT ALL 79 + 76, MAX( + 18 ) + 75 * + 27 + + COUNT( * ) AS col2
----
155
2044

skipif mysql # not compatible
query II rowsort label-3858
SELECT ALL 79 + 76, MAX ( + 18 ) + 75 * + 27 + + COUNT ( * ) AS col2
----
155
2044

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT SUM( - 77 ) * - 11 * - - 16 - - COUNT( * ) * - 25 * + COUNT( 80 ) * + 49
----
12327

skipif mysql # not compatible
query I rowsort label-3859
SELECT SUM ( - 77 ) * - 11 * - - 16 - - COUNT ( * ) * - 25 * + COUNT ( 80 ) * + 49
----
12327

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT DISTINCT 84 + - NULLIF ( - COUNT( * ), + + 19 ) * - 91 + + + 93 + COUNT( * ) - - 92 * 25 * - 9 AS col2
----
-20613

skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT 84 + - NULLIF ( - COUNT ( * ), + + 19 ) * - 91 + + + 93 + COUNT ( * ) - - 92 * 25 * - 9 AS col2
----
-20613

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3861
SELECT ALL 19 + - + CAST( NULL AS SIGNED ) AS col2, + 74 col0
----
NULL
74

skipif mysql # not compatible
query II rowsort label-3861
SELECT ALL 19 + - + CAST ( NULL AS INTEGER ) AS col2, + 74 col0
----
NULL
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3862
SELECT MAX( - ( - CAST( NULL AS SIGNED ) ) ) - + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT MAX ( - ( - CAST ( NULL AS INTEGER ) ) ) - + + 5
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3863
SELECT DISTINCT + 18 DIV 82, - ( - 60 ) AS col2
----
0
60

skipif mysql # not compatible
query II rowsort label-3863
SELECT DISTINCT + 18 / 82, - ( - 60 ) AS col2
----
0
60

query I rowsort
SELECT 94 - + 68
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3865
SELECT CAST( NULL AS SIGNED ) / - + CAST( NULL AS SIGNED ) / - - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3865
SELECT CAST ( NULL AS INTEGER ) / - + CAST ( NULL AS INTEGER ) / - - 46 AS col1
----
NULL

query I rowsort
SELECT 84 * 95 col1
----
7980

query II rowsort
SELECT ALL - 46 * + ( + 1 ) AS col0, + 86 AS col0
----
-46
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3868
SELECT - + 73 * - ( - 75 ) + - + COUNT( * ) DIV - + MAX( 68 ) * - - 52 * + 12 + - 85
----
-5560

skipif mysql # not compatible
query I rowsort label-3868
SELECT - + 73 * - ( - 75 ) + - + COUNT ( * ) / - + MAX ( 68 ) * - - 52 * + 12 + - 85
----
-5560

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT MIN( DISTINCT - 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-3869
SELECT MIN ( DISTINCT - 94 ) AS col1
----
-94

query I rowsort
SELECT + 41 * 85 * - + 17 AS col2
----
-59245

query I rowsort
SELECT - 36 * + 84 + - 10 AS col2
----
-3034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3872
SELECT ALL - 0 + COUNT( ALL - CAST( 8 AS SIGNED ) ) * 33 * - + ( + 78 )
----
-2574

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL - 0 + COUNT ( ALL - CAST ( 8 AS INTEGER ) ) * 33 * - + ( + 78 )
----
-2574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3873
SELECT ALL ( + 28 ) + + CAST( - 44 AS SIGNED ) + COUNT( * ) - + 64 - + MIN( + 76 ) AS col0
----
-155

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL ( + 28 ) + + CAST ( - 44 AS INTEGER ) + COUNT ( * ) - + 64 - + MIN ( + 76 ) AS col0
----
-155

query I rowsort
SELECT ALL 38 + - 74 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT 73 + + - ( COUNT( * ) ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-3875
SELECT 73 + + - ( COUNT ( * ) ) AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3876
SELECT DISTINCT + 49 * + 38 * + 24 * - CASE + 51 WHEN COALESCE ( + - 62, - 39, + 28 + - 6 + - 12 * + + 43 ) * - + 70 - + ( 74 ) THEN 35 - - NULLIF ( + - CAST( NULL AS SIGNED ), + 72 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT + 49 * + 38 * + 24 * - CASE + 51 WHEN COALESCE ( + - 62, - 39, + 28 + - 6 + - 12 * + + 43 ) * - + 70 - + ( 74 ) THEN 35 - - NULLIF ( + - CAST ( NULL AS INTEGER ), + 72 ) END AS col1
----
NULL

query I rowsort
SELECT ALL - 94 + - 93 * + - 37 * - 73 AS col1
----
-251287

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT MAX( DISTINCT + + 65 ) + 65 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-3878
SELECT MAX ( DISTINCT + + 65 ) + 65 AS col1
----
130

query I rowsort
SELECT 69 + - + 35
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3880
SELECT COUNT( * ) - - - 37 + + 72 DIV - 72 + 80
----
43

skipif mysql # not compatible
query I rowsort label-3880
SELECT COUNT ( * ) - - - 37 + + 72 / - 72 + 80
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3881
SELECT 78 + - - COUNT( * ) + 38 + - + 32 * + 64 + 39 DIV - 98 * - NULLIF ( SUM( DISTINCT - 53 ), - - 12 ) + + + 23 + - - 98 + 85 * - + 67 + + 65 DIV + - SUM( + ( + 81 ) ) AS col1
----
-7505

skipif mysql # not compatible
query I rowsort label-3881
SELECT 78 + - - COUNT ( * ) + 38 + - + 32 * + 64 + 39 / - 98 * - NULLIF ( SUM ( DISTINCT - 53 ), - - 12 ) + + + 23 + - - 98 + 85 * - + 67 + + 65 / + - SUM ( + ( + 81 ) ) AS col1
----
-7505

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT DISTINCT MAX( DISTINCT 14 )
----
14

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT MAX ( DISTINCT 14 )
----
14

query I rowsort
SELECT NULLIF ( + 5, + ( 8 ) + + 11 ) * 34 * + - 13
----
-2210

query II rowsort
SELECT DISTINCT 22, 64 col1
----
22
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT ALL COUNT( * ) * NULLIF ( - 55, - 27 )
----
-55

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL COUNT ( * ) * NULLIF ( - 55, - 27 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3886
SELECT MAX( DISTINCT CAST( NULL AS DECIMAL ) ) * - + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3886
SELECT MAX ( DISTINCT CAST ( NULL AS REAL ) ) * - + 28 AS col0
----
NULL

query II rowsort
SELECT ALL - + 15, - 58 AS col2
----
-15
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT DISTINCT - 47 * + MAX( DISTINCT + 10 ) * 52 AS col2
----
-24440

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT - 47 * + MAX ( DISTINCT + 10 ) * 52 AS col2
----
-24440

onlyif mysql # DIV for integer division: 
query I rowsort label-3889
SELECT ALL ( - 53 ) DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL ( - 53 ) / 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3890
SELECT + - 23 AS col1, - MIN( + 89 ) * 66 * + CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL )
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-3890
SELECT + - 23 AS col1, - MIN ( + 89 ) * 66 * + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL )
----
-23
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3891
SELECT ALL - - 38, COUNT( * ) AS col1
----
38
1

skipif mysql # not compatible
query II rowsort label-3891
SELECT ALL - - 38, COUNT ( * ) AS col1
----
38
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT ALL + + SUM( DISTINCT - + 23 ) col2
----
-23

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL + + SUM ( DISTINCT - + 23 ) col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3893
SELECT + + COUNT( * ) * 37 + 0 col0, + 32 DIV + NULLIF ( 86, + - 28 ) - - + ( + - COUNT( * ) )
----
37
-1

skipif mysql # not compatible
query II rowsort label-3893
SELECT + + COUNT ( * ) * 37 + 0 col0, + 32 / + NULLIF ( 86, + - 28 ) - - + ( + - COUNT ( * ) )
----
37
-1

query I rowsort
SELECT ALL 54 * - 77 + + 22 AS col2
----
-4136

query I rowsort
SELECT - 11 * - 57 * + 44
----
27588

onlyif mysql # aggregate syntax: 
query II rowsort label-3896
SELECT DISTINCT + 63 + - 97 + 16 * 88 col1, ( - - COUNT( ALL 49 ) )
----
1374
1

skipif mysql # not compatible
query II rowsort label-3896
SELECT DISTINCT + 63 + - 97 + 16 * 88 col1, ( - - COUNT ( ALL 49 ) )
----
1374
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT - ( - - 52 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT - ( - - 52 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3898
SELECT DISTINCT - 18 * - 8 * + 63 * - + ( + CAST( NULL AS SIGNED ) ) AS col2, 68 AS col2
----
NULL
68

skipif mysql # not compatible
query II rowsort label-3898
SELECT DISTINCT - 18 * - 8 * + 63 * - + ( + CAST ( NULL AS INTEGER ) ) AS col2, 68 AS col2
----
NULL
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3899
SELECT DISTINCT MAX( + - 55 ) AS col1, 81
----
-55
81

skipif mysql # not compatible
query II rowsort label-3899
SELECT DISTINCT MAX ( + - 55 ) AS col1, 81
----
-55
81

onlyif mysql # DIV for integer division: 
query II rowsort label-3900
SELECT ALL - 36 DIV 72 AS col0, + 99
----
0
99

skipif mysql # not compatible
query II rowsort label-3900
SELECT ALL - 36 / 72 AS col0, + 99
----
0
99

query I rowsort
SELECT ALL + 45 - + 66
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3902
SELECT DISTINCT - CASE COUNT( * ) WHEN + 7 THEN + 98 - - SUM( - 65 ) WHEN + + AVG ( DISTINCT - 23 ) THEN - + 55 ELSE - 9 * + 2 + - + CAST( NULL AS SIGNED ) END * 86 * - 42 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT - CASE COUNT ( * ) WHEN + 7 THEN + 98 - - SUM ( - 65 ) WHEN + + AVG ( DISTINCT - 23 ) THEN - + 55 ELSE - 9 * + 2 + - + CAST ( NULL AS INTEGER ) END * 86 * - 42 + - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT - 7 / - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT - 7 / - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT - 24 * 19 * + NULLIF ( + - COUNT( * ), COUNT( 21 ) ) AS col2
----
456

skipif mysql # not compatible
query I rowsort label-3904
SELECT - 24 * 19 * + NULLIF ( + - COUNT ( * ), COUNT ( 21 ) ) AS col2
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT ALL - 0 * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL - 0 * - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT - ( + 92 ) - - 15
----
-77

query I rowsort
SELECT ALL + 47 * + + 7
----
329

query I rowsort
SELECT - 30 * 11 AS col1
----
-330

query I rowsort
SELECT ALL - 60 + + 99 AS col2
----
39

query I rowsort
SELECT + 57 * + 40
----
2280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3911
SELECT DISTINCT + 57 DIV - + 21 + - - COUNT( ALL + - COALESCE ( + 35, + - 96 ) ) + - + 55 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT + 57 / - + 21 + - - COUNT ( ALL + - COALESCE ( + 35, + - 96 ) ) + - + 55 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT + NULLIF ( COUNT( * ), - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3912
SELECT + NULLIF ( COUNT ( * ), - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT - 10 + - SUM( ALL + 34 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-3913
SELECT - 10 + - SUM ( ALL + 34 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT + COUNT( DISTINCT - ( - 43 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3914
SELECT + COUNT ( DISTINCT - ( - 43 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT DISTINCT MAX( DISTINCT - + 99 ) * 46
----
-4554

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT MAX ( DISTINCT - + 99 ) * 46
----
-4554

query I rowsort
SELECT + - 25 * + 77
----
-1925

query I rowsort
SELECT - - 14 + - - 65
----
79

query I rowsort
SELECT DISTINCT - 75 * - - 2
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT ALL - ( 6 ) * - + COUNT( * ) + + 20 * - 80 + CASE - 90 WHEN + 33 / ( - 5 ) - COUNT( * ) THEN - 50 ELSE 7 END AS col0
----
-1587

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL - ( 6 ) * - + COUNT ( * ) + + 20 * - 80 + CASE - 90 WHEN + 33 / ( - 5 ) - COUNT ( * ) THEN - 50 ELSE 7 END AS col0
----
-1587

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT DISTINCT - 20 / ( CASE + MIN( ALL 64 ) WHEN 16 THEN NULL WHEN - 6 + + 36 THEN 47 * COALESCE ( COUNT( * ), - 60 ) / - 58 + + - 80 ELSE CASE + 73 WHEN 90 + + 17 THEN 25 WHEN + 30 - - 91 THEN NULL END END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT - 20 / ( CASE + MIN ( ALL 64 ) WHEN 16 THEN NULL WHEN - 6 + + 36 THEN 47 * COALESCE ( COUNT ( * ), - 60 ) / - 58 + + - 80 ELSE CASE + 73 WHEN 90 + + 17 THEN 25 WHEN + 30 - - 91 THEN NULL END END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3921
SELECT + 95 + - COUNT( * ) DIV + - 97 * COALESCE ( + 50, - 95 * - - 26 * + + MIN( + 80 ) * - ( + 21 ), 30 DIV + 69 + + COUNT( - CAST( NULL AS SIGNED ) ) * - 18 ) col1
----
95

skipif mysql # not compatible
query I rowsort label-3921
SELECT + 95 + - COUNT ( * ) / + - 97 * COALESCE ( + 50, - 95 * - - 26 * + + MIN ( + 80 ) * - ( + 21 ), 30 / + 69 + + COUNT ( - CAST ( NULL AS INTEGER ) ) * - 18 ) col1
----
95

query I rowsort
SELECT + + 87 * - 2 AS col1
----
-174

query I rowsort
SELECT - ( - - 13 ) AS col1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT ALL 80 * + + 27 * + 83 - - 69 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL 80 * + + 27 * + 83 - - 69 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + CASE 95 WHEN - + 69 THEN NULL WHEN + + 94 + + - AVG ( - 62 ) - + 16 * + - 47 THEN 50 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT - MIN( DISTINCT - 55 ) + - 12 + ( - 36 ) + - - 2 + + COUNT( * ) * + 55 + 38 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-3926
SELECT - MIN ( DISTINCT - 55 ) + - 12 + ( - 36 ) + - - 2 + + COUNT ( * ) * + 55 + 38 AS col1
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3927
SELECT CASE - - CASE MAX( DISTINCT - COALESCE ( - 72, - CAST( NULL AS SIGNED ) ) ) WHEN - - 47 + 52 THEN + 60 END WHEN + + 92 * AVG ( - 44 ) THEN NULL ELSE + ( - 17 ) END
----
-17

skipif mysql # not compatible
query I rowsort label-3927
SELECT CASE - - CASE MAX ( DISTINCT - COALESCE ( - 72, - CAST ( NULL AS INTEGER ) ) ) WHEN - - 47 + 52 THEN + 60 END WHEN + + 92 * AVG ( - 44 ) THEN NULL ELSE + ( - 17 ) END
----
-17

query II rowsort
SELECT + 37 AS col2, 92 + 59
----
37
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3929
SELECT CASE - - 37 WHEN - ( 71 ) * - + 32 THEN NULL WHEN - SUM( - 13 ) + - 71 * - CAST( NULL AS SIGNED ) + - COUNT( * ) THEN AVG ( DISTINCT - CAST( + 48 AS DECIMAL ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT CASE - - 37 WHEN - ( 71 ) * - + 32 THEN NULL WHEN - SUM ( - 13 ) + - 71 * - CAST ( NULL AS INTEGER ) + - COUNT ( * ) THEN AVG ( DISTINCT - CAST ( + 48 AS REAL ) ) END
----
NULL

query I rowsort
SELECT + ( + + 65 ) * - 2 AS col2
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3931
SELECT - CAST( NULL AS SIGNED ) col0, 82 + 45 - 76 AS col0
----
NULL
51

skipif mysql # not compatible
query II rowsort label-3931
SELECT - CAST ( NULL AS INTEGER ) col0, 82 + 45 - 76 AS col0
----
NULL
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3932
SELECT ALL COALESCE ( 55, - ( + - 39 ) + - 46 - NULLIF ( - ( 46 ), CAST( NULL AS SIGNED ) + + SUM( DISTINCT - 64 ) / + 51 ) * - 0 * + + 79, 59 ) AS col0, - MAX( ( + 6 ) ) + - 35
----
55
-41

skipif mysql # not compatible
query II rowsort label-3932
SELECT ALL COALESCE ( 55, - ( + - 39 ) + - 46 - NULLIF ( - ( 46 ), CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT - 64 ) / + 51 ) * - 0 * + + 79, 59 ) AS col0, - MAX ( ( + 6 ) ) + - 35
----
55
-41

query I rowsort
SELECT ALL 19 * - 52 col1
----
-988

query I rowsort
SELECT - 31 * - - 34 AS col2
----
-1054

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT DISTINCT 54 * + COUNT( * ) * - 40
----
-2160

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT 54 * + COUNT ( * ) * - 40
----
-2160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3936
SELECT + 12 + 44 - - + CASE + - 7 WHEN + COUNT( * ) THEN COUNT( * ) * CAST( NULL AS DECIMAL ) - - 26 + + 13 + + 85 * + - 15 * 63 * + 11 WHEN 30 * - 12 * - CASE CAST( 97 AS SIGNED ) WHEN + + COUNT( * ) THEN + - 43 * - + CASE 22 WHEN AVG ( - 21 ) THEN NULL ELSE 44 + + 30 END ELSE NULL END / - 90 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT + 12 + 44 - - + CASE + - 7 WHEN + COUNT ( * ) THEN COUNT ( * ) * CAST ( NULL AS REAL ) - - 26 + + 13 + + 85 * + - 15 * 63 * + 11 WHEN 30 * - 12 * - CASE CAST ( 97 AS INTEGER ) WHEN + + COUNT ( * ) THEN + - 43 * - + CASE 22 WHEN AVG ( - 21 ) THEN NULL ELSE 44 + + 30 END ELSE NULL END / - 90 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL ( + + 58 ) AS col0
----
58

query I rowsort
SELECT - 88 + - - 19
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ALL MAX( DISTINCT + - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL MAX ( DISTINCT + - 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT MIN( + 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT MIN ( + 97 ) AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3941
SELECT ALL - ( + 43 ) * 79 * CAST( + + 31 AS SIGNED ) + + - 94
----
-105401

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL - ( + 43 ) * 79 * CAST ( + + 31 AS INTEGER ) + + - 94
----
-105401

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT ALL CAST( + + 5 AS SIGNED ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL CAST ( + + 5 AS INTEGER ) AS col1
----
5

query I rowsort
SELECT DISTINCT - 88 + - 10 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT + 97 * - SUM( + 86 * 82 ) col1
----
-684044

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT + 97 * - SUM ( + 86 * 82 ) col1
----
-684044

query I rowsort
SELECT ALL - 43 + + 81
----
38

query I rowsort
SELECT - 34 + - 4
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL - COUNT( DISTINCT 86 ) + 84 * 59 AS col0
----
4955

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL - COUNT ( DISTINCT 86 ) + 84 * 59 AS col0
----
4955

query I rowsort
SELECT - 5 * + 94
----
-470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3949
SELECT DISTINCT + MAX( ALL ( - CAST( NULL AS SIGNED ) ) ) * 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT + MAX ( ALL ( - CAST ( NULL AS INTEGER ) ) ) * 85 AS col1
----
NULL

query I rowsort
SELECT 28 * - 86
----
-2408

query I rowsort
SELECT 64 * 96
----
6144

query I rowsort
SELECT ALL - 80 + + 45
----
-35

query I rowsort
SELECT 38 * - 32
----
-1216

query I rowsort
SELECT ALL - ( - 63 ) + 36
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT - MAX( ALL - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT - MAX ( ALL - 28 )
----
28

query I rowsort
SELECT 53 * 92
----
4876

query I rowsort
SELECT 89 * 4 AS col0
----
356

query I rowsort
SELECT DISTINCT 20 * 21 AS col1
----
420

query I rowsort
SELECT ALL 55 * 83 col0
----
4565

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL - 45 - - COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL - 45 - - COUNT ( * ) AS col2
----
-44

query I rowsort
SELECT 79 * + 57 AS col2
----
4503

query I rowsort
SELECT DISTINCT - 36 * - 69
----
2484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3963
SELECT MAX( + 25 ) DIV COUNT( * ) col1
----
25

skipif mysql # not compatible
query I rowsort label-3963
SELECT MAX ( + 25 ) / COUNT ( * ) col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3964
SELECT ALL COUNT( * ) DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL COUNT ( * ) / + 35
----
0

query I rowsort
SELECT 82 * + 51 - 25 * + 27
----
3507

query I rowsort
SELECT 73 * 18 + - 55
----
1259

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3967
SELECT COUNT( - 55 ) DIV 17
----
0

skipif mysql # not compatible
query I rowsort label-3967
SELECT COUNT ( - 55 ) / 17
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT NULLIF ( + 76, ( - 71 ) ) / CAST( - CASE - 15 WHEN 92 THEN NULL WHEN 99 + + 79 THEN - 83 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3968
SELECT NULLIF ( + 76, ( - 71 ) ) / CAST ( - CASE - 15 WHEN 92 THEN NULL WHEN 99 + + 79 THEN - 83 ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ALL COUNT( * ) + - 48
----
-47

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL COUNT ( * ) + - 48
----
-47

query I rowsort
SELECT NULLIF ( 18, - 69 * + 68 ) + 17
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT ALL SUM( DISTINCT + 18 ) + - 91
----
-73

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL SUM ( DISTINCT + 18 ) + - 91
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3972
SELECT DISTINCT COALESCE ( 91, 77 + 93 ) + COUNT( * ) DIV - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT COALESCE ( 91, 77 + 93 ) + COUNT ( * ) / - COUNT ( * )
----
90

query I rowsort
SELECT DISTINCT 64 * 72 AS col0
----
4608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3974
SELECT ALL - 69 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL - 69 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT COUNT( * ) - 74 * - 94
----
6957

skipif mysql # not compatible
query I rowsort label-3975
SELECT COUNT ( * ) - 74 * - 94
----
6957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT ALL + 77 + - ( + 52 - - COALESCE ( + 64, + 17 * + 87 ) / CAST( NULL AS SIGNED ) ) / + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL + 77 + - ( + 52 - - COALESCE ( + 64, + 17 * + 87 ) / CAST ( NULL AS INTEGER ) ) / + 54 AS col2
----
NULL

query I rowsort
SELECT - 1 - - 89 * - 18
----
-1603

query I rowsort
SELECT 70 * 5 AS col2
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT ALL - CASE + 35 WHEN COALESCE ( 5, 90 + + MAX( DISTINCT 18 ) ) / - 49 THEN - 93 * 57 END / SUM( 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL - CASE + 35 WHEN COALESCE ( 5, 90 + + MAX ( DISTINCT 18 ) ) / - 49 THEN - 93 * 57 END / SUM ( 98 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT DISTINCT + COUNT( DISTINCT - 0 )
----
1

skipif mysql # not compatible
query I rowsort label-3980
SELECT DISTINCT + COUNT ( DISTINCT - 0 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT ALL - 42 DIV 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL - 42 / 49 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3982
SELECT ALL + 25 DIV + CASE 97 + AVG ( 63 ) WHEN + 25 THEN NULL WHEN 73 DIV + 53 + 58 THEN 20 DIV 28 - + 6 WHEN + COUNT( * ) THEN NULL ELSE - 8 END
----
-3

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL + 25 / + CASE 97 + AVG ( 63 ) WHEN + 25 THEN NULL WHEN 73 / + 53 + 58 THEN 20 / 28 - + 6 WHEN + COUNT ( * ) THEN NULL ELSE - 8 END
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3983
SELECT - ( ( - 35 ) ) DIV 73 + 66
----
66

skipif mysql # not compatible
query I rowsort label-3983
SELECT - ( ( - 35 ) ) / 73 + 66
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3984
SELECT ALL - - 89 - 61 DIV - ( 55 + 36 * COUNT( * ) )
----
89

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL - - 89 - 61 / - ( 55 + 36 * COUNT ( * ) )
----
89

query I rowsort
SELECT ALL + 92 * 57 col0
----
5244

query I rowsort
SELECT + 8 + - 91 AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT - 17 DIV + 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT - 17 / + 27 AS col0
----
0

query I rowsort
SELECT ALL - - 13 * + 44 AS col0
----
572

query I rowsort
SELECT ALL - + ( - 79 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT DISTINCT - COALESCE ( + 0, + 77, - 43, - COUNT( * ) + 29 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT - COALESCE ( + 0, + 77, - 43, - COUNT ( * ) + 29 ) col1
----
0

query I rowsort
SELECT ALL - 50 * - 70 AS col0
----
3500

query I rowsort
SELECT 7 + 48
----
55

query I rowsort
SELECT 78 * 96
----
7488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3994
SELECT - CAST( NULL AS SIGNED ) * + 43 + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3994
SELECT - CAST ( NULL AS INTEGER ) * + 43 + - 17
----
NULL

query I rowsort
SELECT ALL - 41 + + 11
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT ALL + MAX( - 4 ) + + 11 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL + MAX ( - 4 ) + + 11 AS col2
----
7

query I rowsort
SELECT DISTINCT - 60 + + 16 col0
----
-44

query I rowsort
SELECT DISTINCT COALESCE ( + + 44, + 70 ) + 33 AS col0
----
77

query I rowsort
SELECT ALL + 88 + + + 64 * - 24
----
-1448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4000
SELECT ALL ( COUNT( * ) ) + + ( + 86 ) DIV - COUNT( * ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL ( COUNT ( * ) ) + + ( + 86 ) / - COUNT ( * ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT DISTINCT CASE COUNT( * ) WHEN 24 + 95 THEN NULL WHEN ( - 86 ) + 94 THEN ( - COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT CASE COUNT ( * ) WHEN 24 + 95 THEN NULL WHEN ( - 86 ) + 94 THEN ( - COUNT ( * ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 29, 18, - 88 ) AS col2
----
29

query I rowsort
SELECT 3 * 73 AS col0
----
219

query I rowsort
SELECT 38 + 6 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT + COUNT( - - 57 ) * 36 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4005
SELECT + COUNT ( - - 57 ) * 36 AS col1
----
36

query I rowsort
SELECT COALESCE ( - 78, 27 + 32 ) AS col0
----
-78

query I rowsort
SELECT + + 1 + - - 45
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4008
SELECT + 89 * 84 DIV 55 + 47 AS col2
----
182

skipif mysql # not compatible
query I rowsort label-4008
SELECT + 89 * 84 / 55 + 47 AS col2
----
182

query I rowsort
SELECT + 59 * + 25 + 35 AS col1
----
1510

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT ALL + SUM( ( - 24 ) ) * - 44
----
1056

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL + SUM ( ( - 24 ) ) * - 44
----
1056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT + + 51 + - CAST( 42 AS SIGNED ) + 70 * + 56 AS col1
----
3929

skipif mysql # not compatible
query I rowsort label-4011
SELECT + + 51 + - CAST ( 42 AS INTEGER ) + 70 * + 56 AS col1
----
3929

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT - COALESCE ( + + 40, - 89 - - CASE + SUM( - 54 ) WHEN + 58 THEN 91 END ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4012
SELECT - COALESCE ( + + 40, - 89 - - CASE + SUM ( - 54 ) WHEN + 58 THEN 91 END ) AS col1
----
-40

query I rowsort
SELECT + + 2 * + 74 + 31 AS col0
----
179

query I rowsort
SELECT ALL 9 * + 37 AS col0
----
333

query I rowsort
SELECT + + 74 * 10 AS col1
----
740

query I rowsort
SELECT DISTINCT + 63 * - 73 + - 25
----
-4624

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT ALL MAX( 12 )
----
12

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL MAX ( 12 )
----
12

query I rowsort
SELECT + 5 * - COALESCE ( + 19, 39 - 84 )
----
-95

query I rowsort
SELECT + + 75 * - 98 col0
----
-7350

query I rowsort
SELECT DISTINCT + + ( + 52 ) AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4021
SELECT DISTINCT 79 DIV 36 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT 79 / 36 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4022
SELECT + COALESCE ( + 30, + 84, CAST( + SUM( - ( ( + NULLIF ( + 8, ( 41 ) ) ) ) ) AS SIGNED ) * + CASE - 83 * COUNT( * ) WHEN + CASE 73 WHEN COUNT( * ) THEN + 19 END THEN 90 * + ( + 87 * - 65 ) WHEN + SUM( 32 ) THEN + 35 + 47 WHEN 33 * - 20 THEN NULL END - - 85 )
----
30

skipif mysql # not compatible
query I rowsort label-4022
SELECT + COALESCE ( + 30, + 84, CAST ( + SUM ( - ( ( + NULLIF ( + 8, ( 41 ) ) ) ) ) AS INTEGER ) * + CASE - 83 * COUNT ( * ) WHEN + CASE 73 WHEN COUNT ( * ) THEN + 19 END THEN 90 * + ( + 87 * - 65 ) WHEN + SUM ( 32 ) THEN + 35 + 47 WHEN 33 * - 20 THEN NULL END - - 85 )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4023
SELECT + ( + NULLIF ( + ( CASE + 77 WHEN - 38 + 81 THEN - 38 * + COUNT( * ) END ), 67 ) ) * CAST( + COUNT( * ) * + 75 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT + ( + NULLIF ( + ( CASE + 77 WHEN - 38 + 81 THEN - 38 * + COUNT ( * ) END ), 67 ) ) * CAST ( + COUNT ( * ) * + 75 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT COALESCE ( - CASE - ( + CAST( NULL AS SIGNED ) ) WHEN 0 THEN + 42 WHEN 26 * ( - 9 * 59 ) - - 28 THEN NULL END, 94 ) col0
----
94

skipif mysql # not compatible
query I rowsort label-4024
SELECT COALESCE ( - CASE - ( + CAST ( NULL AS INTEGER ) ) WHEN 0 THEN + 42 WHEN 26 * ( - 9 * 59 ) - - 28 THEN NULL END, 94 ) col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4025
SELECT - 66 DIV NULLIF ( + COALESCE ( 22, + 92 * COUNT( * ) + + 89 ), MAX( ALL CAST( + COALESCE ( - 68, - 50 ) AS SIGNED ) ) ) * - COALESCE ( 83 * - 5, 97 ) + COUNT( ALL - 86 + + 99 )
----
-1244

skipif mysql # not compatible
query I rowsort label-4025
SELECT - 66 / NULLIF ( + COALESCE ( 22, + 92 * COUNT ( * ) + + 89 ), MAX ( ALL CAST ( + COALESCE ( - 68, - 50 ) AS INTEGER ) ) ) * - COALESCE ( 83 * - 5, 97 ) + COUNT ( ALL - 86 + + 99 )
----
-1244

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT NULLIF ( - 14, + COUNT( * ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4026
SELECT NULLIF ( - 14, + COUNT ( * ) ) AS col1
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4027
SELECT - 60 DIV - COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4027
SELECT - 60 / - COUNT ( * ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL + COUNT( * ) * + + COUNT( * ) * - COUNT( * ) * 9 + 58
----
49

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) * - COUNT ( * ) * 9 + 58
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT + 66 * - 9 * + + COUNT( * ) - + 66
----
-660

skipif mysql # not compatible
query I rowsort label-4029
SELECT + 66 * - 9 * + + COUNT ( * ) - + 66
----
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT DISTINCT 47 * COUNT( * ) + 82
----
129

skipif mysql # not compatible
query I rowsort label-4030
SELECT DISTINCT 47 * COUNT ( * ) + 82
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4031
SELECT ALL 21 * 45 * - + CAST( NULL AS SIGNED ) + CASE 17 WHEN - 64 + - 42 * NULLIF ( 87 / + 8, 44 / 78 ) THEN 21 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL 21 * 45 * - + CAST ( NULL AS INTEGER ) + CASE 17 WHEN - 64 + - 42 * NULLIF ( 87 / + 8, 44 / 78 ) THEN 21 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 65, 38 ) * - 11 + 48
----
763

query I rowsort
SELECT NULLIF ( ( + - NULLIF ( + 85, - 45 / + 4 + - 45 * ( 91 ) ) ), 63 * 61 ) AS col1
----
-85

query I rowsort
SELECT ALL - 85 * 24 + + 38 + 52 AS col2
----
-1950

query I rowsort
SELECT - 35 + - NULLIF ( + AVG ( DISTINCT + 31 ), + 31 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT - 94 - SUM( 7 ) AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-4036
SELECT - 94 - SUM ( 7 ) AS col0
----
-101

query I rowsort
SELECT DISTINCT ( + + 60 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4038
SELECT ALL - 91 * + 19 / + + 20 + + CASE WHEN NOT + 58 - + 10 > + MIN( - 92 ) THEN 29 + - MIN( ALL CAST( NULL AS SIGNED ) ) END / 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL - 91 * + 19 / + + 20 + + CASE WHEN NOT + 58 - + 10 > + MIN ( - 92 ) THEN 29 + - MIN ( ALL CAST ( NULL AS INTEGER ) ) END / 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL + 8 * COUNT( * ) + 94
----
102

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + 8 * COUNT ( * ) + 94
----
102

query I rowsort
SELECT - 82 * 98 * - 29 AS col2
----
233044

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT SUM( DISTINCT 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-4041
SELECT SUM ( DISTINCT 55 ) AS col2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4042
SELECT - 99 DIV 88 * ( + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-4042
SELECT - 99 / 88 * ( + 72 )
----
-72

query I rowsort
SELECT ALL - ( 60 ) AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4044
SELECT DISTINCT + + 60 DIV - 4 + - 54 + + 23
----
-46

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT + + 60 / - 4 + - 54 + + 23
----
-46

query I rowsort
SELECT ALL - 86 * 28 - 51 + - 57 AS col0
----
-2516

query I rowsort
SELECT COALESCE ( - + 45, + + 82 ) col2
----
-45

query I rowsort
SELECT DISTINCT - - 47 - 93 - + 67
----
-113

query II rowsort
SELECT ALL 26, 16 + - + 47 AS col2
----
26
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4049
SELECT DISTINCT 54 - + + 48 - + + CAST( 90 AS SIGNED ) + + 48
----
-36

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT 54 - + + 48 - + + CAST ( 90 AS INTEGER ) + + 48
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT + COUNT( * ) * - 78 * COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-4050
SELECT + COUNT ( * ) * - 78 * COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT - SUM( ALL 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-4051
SELECT - SUM ( ALL 24 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4052
SELECT + + ( + + 43 ) * 80 * + CAST( NULL AS SIGNED ) + SUM( DISTINCT - 22 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT + + ( + + 43 ) * 80 * + CAST ( NULL AS INTEGER ) + SUM ( DISTINCT - 22 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4053
SELECT + 22, MIN( - - 60 ) * - 63 col2
----
22
-3780

skipif mysql # not compatible
query II rowsort label-4053
SELECT + 22, MIN ( - - 60 ) * - 63 col2
----
22
-3780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4054
SELECT DISTINCT 38 DIV COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT 38 / COUNT ( * )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT ALL NULLIF ( + COUNT( * ), + MAX( ALL + 78 ) + + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL NULLIF ( + COUNT ( * ), + MAX ( ALL + 78 ) + + 19 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT DISTINCT - COUNT( + + ( - 35 ) ) * - 83
----
83

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT - COUNT ( + + ( - 35 ) ) * - 83
----
83

query I rowsort
SELECT ALL 79 + - 86
----
-7

query I rowsort
SELECT + + 13 - 71 AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4059
SELECT ALL - 7 * - CASE - ( - 23 ) WHEN + 37 * 99 THEN ( CAST( + 66 AS SIGNED ) ) END + - 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL - 7 * - CASE - ( - 23 ) WHEN + 37 * 99 THEN ( CAST ( + 66 AS INTEGER ) ) END + - 13 AS col2
----
NULL

query I rowsort
SELECT + ( 33 ) + + + 5 + - + 46
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4061
SELECT ALL + ( + COALESCE ( + 31, 65 ) ) DIV - ( 96 + - 63 ) + ( 93 + - 44 )
----
49

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL + ( + COALESCE ( + 31, 65 ) ) / - ( 96 + - 63 ) + ( 93 + - 44 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4062
SELECT CAST( + 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-4062
SELECT CAST ( + 16 AS INTEGER )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT ( + + ( + + 15 ) ) * - + 87 + 84 + + COUNT( * ) AS col0
----
-1220

skipif mysql # not compatible
query I rowsort label-4063
SELECT ( + + ( + + 15 ) ) * - + 87 + 84 + + COUNT ( * ) AS col0
----
-1220

onlyif mysql # aggregate syntax: 
query II rowsort label-4064
SELECT DISTINCT COUNT( * ) * + + 37, NULLIF ( - 84, - 15 ) AS col1
----
37
-84

skipif mysql # not compatible
query II rowsort label-4064
SELECT DISTINCT COUNT ( * ) * + + 37, NULLIF ( - 84, - 15 ) AS col1
----
37
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4065
SELECT DISTINCT COUNT( * ) DIV 32 + + 6 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT COUNT ( * ) / 32 + + 6 AS col2
----
6

query I rowsort
SELECT + 24 + + + ( 32 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT - 18 * - + MAX( ALL - 31 )
----
-558

skipif mysql # not compatible
query I rowsort label-4067
SELECT - 18 * - + MAX ( ALL - 31 )
----
-558

onlyif mysql # DIV for integer division: 
query I rowsort label-4068
SELECT ALL 24 DIV + - 88
----
0

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL 24 / + - 88
----
0

query I rowsort
SELECT 15 * + - 29 + 12 AS col1
----
-423

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT COALESCE ( + - COUNT( * ), - + 19 ) * - 99
----
99

skipif mysql # not compatible
query I rowsort label-4070
SELECT COALESCE ( + - COUNT ( * ), - + 19 ) * - 99
----
99

query I rowsort
SELECT - 54 * - ( + ( + 84 ) ) * - 93 + + 22 AS col2
----
-421826

query I rowsort
SELECT ALL - ( + 78 ) - + 99 AS col2
----
-177

query I rowsort
SELECT 22 * + + 3 AS col2
----
66

query I rowsort
SELECT 58 * + + 71
----
4118

query I rowsort
SELECT 79 * + 78 + + 95 - 63 * + 35
----
4052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT CAST( NULL AS SIGNED ) * - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT CAST ( NULL AS INTEGER ) * - 73 AS col2
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + + 43, - 54 * + - 88 * + 14 - - 41 * + 30 ) AS col1
----
-43

query II rowsort
SELECT 38 + + 64 AS col1, 59 * + 10 * 46 col2
----
102
27140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT ALL ( + CAST( NULL AS SIGNED ) ) * + - 74 - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) * + - 74 - 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT DISTINCT - COALESCE ( - + 15, + 91, + COUNT( - 33 ) ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT - COALESCE ( - + 15, + 91, + COUNT ( - 33 ) ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4081
SELECT ALL MIN( ALL - + 22 ) AS col1, 67
----
-22
67

skipif mysql # not compatible
query II rowsort label-4081
SELECT ALL MIN ( ALL - + 22 ) AS col1, 67
----
-22
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4082
SELECT + 65 * + 83 * + + 43 + - - CASE CAST( 74 AS SIGNED ) WHEN 22 * MIN( ALL 90 ) + 94 THEN + ( + 50 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4082
SELECT + 65 * + 83 * + + 43 + - - CASE CAST ( 74 AS INTEGER ) WHEN 22 * MIN ( ALL 90 ) + 94 THEN + ( + 50 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4083
SELECT ALL COALESCE ( - 54, - CAST( - 97 AS SIGNED ) - 4 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL COALESCE ( - 54, - CAST ( - 97 AS INTEGER ) - 4 ) AS col2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4084
SELECT ALL CAST( + - MIN( + + 56 ) AS SIGNED ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL CAST ( + - MIN ( + + 56 ) AS INTEGER ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT + ( + + COUNT( * ) ) * + + 65 * NULLIF ( + ( 16 ), 25 + + 69 / + ( - 66 ) )
----
1040

skipif mysql # not compatible
query I rowsort label-4085
SELECT + ( + + COUNT ( * ) ) * + + 65 * NULLIF ( + ( 16 ), 25 + + 69 / + ( - 66 ) )
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT - 69 + + 73 * + - MIN( ALL 85 ) * - 42 AS col0
----
260541

skipif mysql # not compatible
query I rowsort label-4086
SELECT - 69 + + 73 * + - MIN ( ALL 85 ) * - 42 AS col0
----
260541

onlyif mysql # DIV for integer division: 
query I rowsort label-4087
SELECT 55 + + 41 DIV + - 32 + - 56
----
-2

skipif mysql # not compatible
query I rowsort label-4087
SELECT 55 + + 41 / + - 32 + - 56
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4088
SELECT - CAST( + + SUM( DISTINCT 41 ) AS SIGNED ) - + 75 + + 15 DIV - 23 * 3
----
-116

skipif mysql # not compatible
query I rowsort label-4088
SELECT - CAST ( + + SUM ( DISTINCT 41 ) AS INTEGER ) - + 75 + + 15 / - 23 * 3
----
-116

query I rowsort
SELECT ALL - 14 * - 90 - + 96 AS col1
----
1164

onlyif mysql # DIV for integer division: 
query I rowsort label-4090
SELECT - 97 + 47 + - 0 + + 14 DIV - 73 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4090
SELECT - 97 + 47 + - 0 + + 14 / - 73 AS col0
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4091
SELECT ALL - COUNT( * ) DIV + 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL - COUNT ( * ) / + 29 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4092
SELECT - MIN( + 90 ) AS col0, 81 + 25 AS col0
----
-90
106

skipif mysql # not compatible
query II rowsort label-4092
SELECT - MIN ( + 90 ) AS col0, 81 + 25 AS col0
----
-90
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT ALL - NULLIF ( + COUNT( + - 16 ), - 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL - NULLIF ( + COUNT ( + - 16 ), - 99 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4094
SELECT + ( - COUNT( * ) ), COUNT( * ) + 2 AS col1
----
-1
3

skipif mysql # not compatible
query II rowsort label-4094
SELECT + ( - COUNT ( * ) ), COUNT ( * ) + 2 AS col1
----
-1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4095
SELECT 93 DIV + 23 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4095
SELECT 93 / + 23 AS col1
----
4

query II rowsort
SELECT ALL + + 27 + + 16, ( + + 44 ) AS col0
----
43
44

query I rowsort
SELECT DISTINCT - + 65 + - - CASE + + 32 WHEN - 6 THEN NULL ELSE 68 END
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT ALL + 62 + - CASE 4 WHEN - 39 THEN COUNT( * ) WHEN - 56 - 59 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL + 62 + - CASE 4 WHEN - 39 THEN COUNT ( * ) WHEN - 56 - 59 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 88 * - - 22
----
1936

onlyif mysql # aggregate syntax: 
query II rowsort label-4100
SELECT 37 col1, + SUM( DISTINCT + - NULLIF ( - 86, - 26 / 22 ) ) * 48 AS col2
----
37
4128

skipif mysql # not compatible
query II rowsort label-4100
SELECT 37 col1, + SUM ( DISTINCT + - NULLIF ( - 86, - 26 / 22 ) ) * 48 AS col2
----
37
4128

query I rowsort
SELECT ALL 43 * 20 AS col2
----
860

onlyif mysql # DIV for integer division: 
query I rowsort label-4102
SELECT 7 DIV 30 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-4102
SELECT 7 / 30 / - 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4103
SELECT ALL - 55 + 9 * CAST( NULL AS SIGNED ) + - 80 + + 91 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL - 55 + 9 * CAST ( NULL AS INTEGER ) + - 80 + + 91 + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT ALL CAST( NULL AS SIGNED ) + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL CAST ( NULL AS INTEGER ) + - 93
----
NULL

query I rowsort
SELECT DISTINCT 83 * + - 73 AS col2
----
-6059

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT 42 * + COUNT( * ) * - + 9
----
-378

skipif mysql # not compatible
query I rowsort label-4106
SELECT 42 * + COUNT ( * ) * - + 9
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL 0 - CASE 32 WHEN + MAX( DISTINCT - ( + 85 ) ) THEN 41 * - 36 WHEN + 57 * 46 - 5 * - 88 THEN ( - COUNT( * ) ) ELSE NULL END * 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL 0 - CASE 32 WHEN + MAX ( DISTINCT - ( + 85 ) ) THEN 41 * - 36 WHEN + 57 * 46 - 5 * - 88 THEN ( - COUNT ( * ) ) ELSE NULL END * 14 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT 84 DIV 85 * 56 + + 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4108
SELECT 84 / 85 * 56 + + 78 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL CASE + 78 WHEN + - 78 + + + 53 / - + CASE - 56 WHEN + 92 * + COUNT( * ) + 66 THEN - 76 / 53 ELSE NULL END THEN COUNT( DISTINCT - 83 ) + 23 ELSE NULL END - AVG ( ALL - 26 - - 59 ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL CASE + 78 WHEN + - 78 + + + 53 / - + CASE - 56 WHEN + 92 * + COUNT ( * ) + 66 THEN - 76 / 53 ELSE NULL END THEN COUNT ( DISTINCT - 83 ) + 23 ELSE NULL END - AVG ( ALL - 26 - - 59 ) / - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 82 * 16 col1
----
1312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4111
SELECT ALL COALESCE ( - 86, - COUNT( * ) DIV COUNT( * ) + + 18 ) - + 58
----
-144

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL COALESCE ( - 86, - COUNT ( * ) / COUNT ( * ) + + 18 ) - + 58
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL - 69 - + + NULLIF ( 36, - 46 + + MAX( - NULLIF ( - 11, 40 ) ) ) + + 2 * - 98
----
-301

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL - 69 - + + NULLIF ( 36, - 46 + + MAX ( - NULLIF ( - 11, 40 ) ) ) + + 2 * - 98
----
-301

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT + 78 * + - COUNT( * ) col1
----
-78

skipif mysql # not compatible
query I rowsort label-4113
SELECT + 78 * + - COUNT ( * ) col1
----
-78

query I rowsort
SELECT + ( - - 77 ) AS col0
----
77

query II rowsort
SELECT DISTINCT - 87 AS col2, - 14
----
-87
-14

query I rowsort
SELECT ALL - 9 * - 14
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-4117
SELECT - 45 DIV 43 + + + 28 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4117
SELECT - 45 / 43 + + + 28 AS col2
----
27

query I rowsort
SELECT 90 * ( + - 86 ) + + 6 + 6 AS col0
----
-7728

query I rowsort
SELECT DISTINCT - + ( 19 ) * 77 * - ( + 15 ) * 61
----
1338645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4120
SELECT ALL + CAST( NULL AS SIGNED ) * + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 79
----
NULL

query I rowsort
SELECT 54 * + + 66 + + + 8
----
3572

query I rowsort
SELECT ALL + 32 + - - 82 AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT ALL 55 * + + ( - MIN( - - 71 ) ) AS col2
----
-3905

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL 55 * + + ( - MIN ( - - 71 ) ) AS col2
----
-3905

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4124
SELECT + 94 * + 4 + 79 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT + 94 * + 4 + 79 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 51 + + - 78 * + - 7 * - + 91 AS col1
----
-49737

onlyif mysql # aggregate syntax: 
query II rowsort label-4126
SELECT DISTINCT ( COUNT( * ) ) * + + 86 AS col2, 84 + - - 42 - 99 / CASE 28 WHEN CASE ( 38 ) WHEN - SUM( ALL - 11 ) * 58 - - 36 THEN 38 - - 5 END * + COUNT( * ) + + 62 / - 67 THEN NULL WHEN NULLIF ( 5, 1 + - 98 ) * + 26 + 21 THEN + 97 END AS col2
----
86
NULL

skipif mysql # not compatible
query II rowsort label-4126
SELECT DISTINCT ( COUNT ( * ) ) * + + 86 AS col2, 84 + - - 42 - 99 / CASE 28 WHEN CASE ( 38 ) WHEN - SUM ( ALL - 11 ) * 58 - - 36 THEN 38 - - 5 END * + COUNT ( * ) + + 62 / - 67 THEN NULL WHEN NULLIF ( 5, 1 + - 98 ) * + 26 + 21 THEN + 97 END AS col2
----
86
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL + 82 + - ( - - ( COUNT( * ) ) )
----
81

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL + 82 + - ( - - ( COUNT ( * ) ) )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4128
SELECT + CASE + - COUNT( * ) WHEN + CAST( + - 12 AS SIGNED ) THEN - 68 ELSE 93 END + + 27 * 14 AS col0
----
471

skipif mysql # not compatible
query I rowsort label-4128
SELECT + CASE + - COUNT ( * ) WHEN + CAST ( + - 12 AS INTEGER ) THEN - 68 ELSE 93 END + + 27 * 14 AS col0
----
471

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT 39 * 24 * + - ( + + 19 ) - + - MAX( 1 ) AS col0
----
-17783

skipif mysql # not compatible
query I rowsort label-4129
SELECT 39 * 24 * + - ( + + 19 ) - + - MAX ( 1 ) AS col0
----
-17783

query I rowsort
SELECT ALL - + 62 + 21 + - 4
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4131
SELECT ALL - CAST( - 30 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL - CAST ( - 30 AS INTEGER )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-4132
SELECT - 83 - - COUNT( DISTINCT + 71 ), COUNT( + 98 ) AS col1
----
-82
1

skipif mysql # not compatible
query II rowsort label-4132
SELECT - 83 - - COUNT ( DISTINCT + 71 ), COUNT ( + 98 ) AS col1
----
-82
1

query I rowsort
SELECT 97 + + 92 AS col1
----
189

query II rowsort
SELECT ALL 79 + - ( - - 86 ) * + 54 AS col1, 43 + + 60
----
-4565
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT ALL SUM( - 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL SUM ( - 18 ) AS col0
----
-18

query I rowsort
SELECT 7 + - - 27 AS col0
----
34

query I rowsort
SELECT ALL + 24 + 67 + 65
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT DISTINCT MIN( ALL - 36 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT MIN ( ALL - 36 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT - 7 * - - CASE + 80 WHEN + ( 49 ) * - + SUM( 78 ) + - 71 - - 54 THEN 20 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT - 7 * - - CASE + 80 WHEN + ( 49 ) * - + SUM ( 78 ) + - 71 - - 54 THEN 20 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 12 * - + 14 col2
----
-168

query II rowsort
SELECT ALL + 93 AS col0, 94
----
93
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4142
SELECT ALL ( + 40 ) DIV COUNT( * ) + - + ( + - 19 )
----
59

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL ( + 40 ) / COUNT ( * ) + - + ( + - 19 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT - 76 * + + COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-4143
SELECT - 76 * + + COUNT ( * ) AS col2
----
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-4144
SELECT DISTINCT + 7 DIV - 65 AS col2, ( + 63 )
----
0
63

skipif mysql # not compatible
query II rowsort label-4144
SELECT DISTINCT + 7 / - 65 AS col2, ( + 63 )
----
0
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT + COUNT( * ) + ( + 85 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-4145
SELECT + COUNT ( * ) + ( + 85 ) AS col2
----
86

query III rowsort
SELECT ALL + 96 AS col2, - 98 + - 34 * - 43 AS col2, 23 AS col0
----
96
1364
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT + 76 + CAST( NULL AS SIGNED ) + CAST( + 43 AS SIGNED ) + - + 55 - - + 32 * CASE CAST( + 61 AS SIGNED ) WHEN 28 THEN 74 * - 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT + 76 + CAST ( NULL AS INTEGER ) + CAST ( + 43 AS INTEGER ) + - + 55 - - + 32 * CASE CAST ( + 61 AS INTEGER ) WHEN 28 THEN 74 * - 98 END
----
NULL

query II rowsort
SELECT 95 AS col1, + 94 * - + 49
----
95
-4606

query II rowsort
SELECT ALL + - ( 75 ) AS col1, - 46 * - + 71 + + 54
----
-75
3320

query II rowsort
SELECT 69 * 49 * + 61 + - + 86 AS col2, 5
----
206155
5

query I rowsort
SELECT DISTINCT + COALESCE ( - - 94, - 37 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4152
SELECT + + NULLIF ( 25, + - 21 / MIN( ALL - 59 ) + + + CAST( + 10 AS SIGNED ) ) + 19
----
44

skipif mysql # not compatible
query I rowsort label-4152
SELECT + + NULLIF ( 25, + - 21 / MIN ( ALL - 59 ) + + + CAST ( + 10 AS INTEGER ) ) + 19
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4153
SELECT DISTINCT + COUNT( DISTINCT + + ( NULLIF ( + 93, 28 * - ( 6 ) - 1 ) ) ) * + 63 + + 9 * ( - CAST( NULL AS SIGNED ) * + 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT + COUNT ( DISTINCT + + ( NULLIF ( + 93, 28 * - ( 6 ) - 1 ) ) ) * + 63 + + 9 * ( - CAST ( NULL AS INTEGER ) * + 3 )
----
NULL

query II rowsort
SELECT ALL + + 26 AS col0, 57 col1
----
26
57

query I rowsort
SELECT + - 66 + ( 34 ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-4156
SELECT + - COUNT( * ) * + - 84 col0, - 36 AS col1
----
84
-36

skipif mysql # not compatible
query II rowsort label-4156
SELECT + - COUNT ( * ) * + - 84 col0, - 36 AS col1
----
84
-36

query I rowsort
SELECT ALL + + NULLIF ( + COALESCE ( CASE 79 WHEN - - 33 THEN + COALESCE ( 25, 75 * 38 + + 93 ) END, NULLIF ( 26, 42 * 47 ) ), + 12 )
----
26

query II rowsort
SELECT ALL + + 9 AS col0, + 34
----
9
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4159
SELECT + + COUNT( * ) * - 62 * 95 + + 8 DIV + - COALESCE ( + + 15, 12 * 24, 57 )
----
-5890

skipif mysql # not compatible
query I rowsort label-4159
SELECT + + COUNT ( * ) * - 62 * 95 + + 8 / + - COALESCE ( + + 15, 12 * 24, 57 )
----
-5890

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4160
SELECT ALL 48 + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL 48 + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT DISTINCT - 64 * - - 28 + COUNT( * ) AS col1
----
-1791

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT - 64 * - - 28 + COUNT ( * ) AS col1
----
-1791

query I rowsort
SELECT DISTINCT + ( - 6 ) + - + 48 + 38 + - 32
----
-48

query I rowsort
SELECT DISTINCT 71 + + 62 AS col1
----
133

query I rowsort
SELECT + 15 + ( - + 87 ) AS col2
----
-72

query I rowsort
SELECT ALL - NULLIF ( + + 38, + 86 + + 48 ) + - - 50 * + - 45 AS col1
----
-2288

query II rowsort
SELECT - + 10 AS col2, + 33
----
-10
33

query I rowsort
SELECT + + 39 + + 26 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT ALL - 70 * 10 + + 66 * + 43 * - 60 + + COUNT( * ) AS col0
----
-170979

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL - 70 * 10 + + 66 * + 43 * - 60 + + COUNT ( * ) AS col0
----
-170979

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT + 49 + - - 67 - MIN( DISTINCT - 92 )
----
208

skipif mysql # not compatible
query I rowsort label-4169
SELECT + 49 + - - 67 - MIN ( DISTINCT - 92 )
----
208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4170
SELECT ALL - CASE 47 WHEN + 13 THEN NULL ELSE 71 - ( ( - - CAST( NULL AS SIGNED ) ) ) + + CAST( NULL AS SIGNED ) END - CASE - NULLIF ( 17, + 64 ) WHEN ( 9 ) + + 32 * + COUNT( * ) THEN + 75 WHEN + 47 THEN NULL END * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL - CASE 47 WHEN + 13 THEN NULL ELSE 71 - ( ( - - CAST ( NULL AS INTEGER ) ) ) + + CAST ( NULL AS INTEGER ) END - CASE - NULLIF ( 17, + 64 ) WHEN ( 9 ) + + 32 * + COUNT ( * ) THEN + 75 WHEN + 47 THEN NULL END * 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4171
SELECT - CAST( - + 60 AS SIGNED ) AS col0, + COUNT( * ) col0
----
60
1

skipif mysql # not compatible
query II rowsort label-4171
SELECT - CAST ( - + 60 AS INTEGER ) AS col0, + COUNT ( * ) col0
----
60
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4172
SELECT - 43 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-4172
SELECT - 43 / - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT DISTINCT SUM( ALL + 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT SUM ( ALL + 95 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT - MAX( + 80 ) + - 59 - - 27 * + MIN( ALL + + 98 )
----
2507

skipif mysql # not compatible
query I rowsort label-4174
SELECT - MAX ( + 80 ) + - 59 - - 27 * + MIN ( ALL + + 98 )
----
2507

query I rowsort
SELECT + 83 * + 43 * + + 86
----
306934

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT - MIN( DISTINCT - 6 ) * - - 18 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-4176
SELECT - MIN ( DISTINCT - 6 ) * - - 18 AS col2
----
108

query I rowsort
SELECT ALL COALESCE ( - ( 48 ), - + 29 ) AS col1
----
-48

query II rowsort
SELECT DISTINCT + 11 * 77, 26 AS col2
----
847
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4179
SELECT ALL + 93 * + ( + + 81 ) AS col0, SUM( DISTINCT - + 94 ) AS col2
----
7533
-94

skipif mysql # not compatible
query II rowsort label-4179
SELECT ALL + 93 * + ( + + 81 ) AS col0, SUM ( DISTINCT - + 94 ) AS col2
----
7533
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - MIN( + 53 ) * 84
----
-4452

skipif mysql # not compatible
query I rowsort label-4180
SELECT - MIN ( + 53 ) * 84
----
-4452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4181
SELECT - 17 / + + CASE + 48 WHEN 23 + - + 19 THEN - + 52 / CASE COUNT( * ) WHEN + 75 THEN 15 * 20 ELSE NULL END * + CAST( NULL AS SIGNED ) + + SUM( ALL - CAST( NULL AS SIGNED ) ) WHEN 72 + + 29 THEN ( + 3 ) + MAX( - 69 + 98 * - 72 ) WHEN 8 + - COUNT( * ) * + 44 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT - 17 / + + CASE + 48 WHEN 23 + - + 19 THEN - + 52 / CASE COUNT ( * ) WHEN + 75 THEN 15 * 20 ELSE NULL END * + CAST ( NULL AS INTEGER ) + + SUM ( ALL - CAST ( NULL AS INTEGER ) ) WHEN 72 + + 29 THEN ( + 3 ) + MAX ( - 69 + 98 * - 72 ) WHEN 8 + - COUNT ( * ) * + 44 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4182
SELECT + MAX( DISTINCT - 29 ), + 22 AS col2
----
-29
22

skipif mysql # not compatible
query II rowsort label-4182
SELECT + MAX ( DISTINCT - 29 ), + 22 AS col2
----
-29
22

query I rowsort
SELECT - 36 * + + 93
----
-3348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4184
SELECT DISTINCT CASE + 46 WHEN - 65 * + 96 THEN 15 + - + ( - 42 ) * COUNT( * ) ELSE NULL END * COALESCE ( + 62, 74 * - CASE CAST( 59 AS SIGNED ) * 90 WHEN MAX( 82 ) THEN - 24 / 11 + CAST( NULL AS DECIMAL ) * COUNT( * ) END + - 75 * 6 ) + + 14 / - ( - 8 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT CASE + 46 WHEN - 65 * + 96 THEN 15 + - + ( - 42 ) * COUNT ( * ) ELSE NULL END * COALESCE ( + 62, 74 * - CASE CAST ( 59 AS INTEGER ) * 90 WHEN MAX ( 82 ) THEN - 24 / 11 + CAST ( NULL AS REAL ) * COUNT ( * ) END + - 75 * 6 ) + + 14 / - ( - 8 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4185
SELECT - - 37 - - CAST( NULL AS DECIMAL ) + + COUNT( + 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT - - 37 - - CAST ( NULL AS REAL ) + + COUNT ( + 65 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL 21 * - MIN( DISTINCT + 91 ) + - + 44
----
-1955

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL 21 * - MIN ( DISTINCT + 91 ) + - + 44
----
-1955

query II rowsort
SELECT - 16 * 93 + - 37, 41 * - + 8 AS col1
----
-1525
-328

query I rowsort
SELECT + - 29 * + 22
----
-638

onlyif mysql # aggregate syntax: 
query II rowsort label-4189
SELECT + SUM( DISTINCT + 74 ), + 30 AS col1
----
74
30

skipif mysql # not compatible
query II rowsort label-4189
SELECT + SUM ( DISTINCT + 74 ), + 30 AS col1
----
74
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4190
SELECT ALL COUNT( ( + + 58 ) ) * + ( - 40 ) DIV 28 - + + 30 - ( - 39 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL COUNT ( ( + + 58 ) ) * + ( - 40 ) / 28 - + + 30 - ( - 39 ) AS col1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT CAST( + + ( - - 3 ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-4191
SELECT CAST ( + + ( - - 3 ) AS INTEGER )
----
3

query I rowsort
SELECT - - 69 * + 61 + + - 93
----
4116

query I rowsort
SELECT DISTINCT - 78 * + 9 + - - 86 - - + 8 AS col0
----
-608

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT + - NULLIF ( 31, - MAX( ALL + 74 ) ) + + 52 col2
----
21

skipif mysql # not compatible
query I rowsort label-4194
SELECT + - NULLIF ( 31, - MAX ( ALL + 74 ) ) + + 52 col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4195
SELECT ALL + 30 * 42 + + COUNT( * ) * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL + 30 * 42 + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4196
SELECT DISTINCT + CASE WHEN 87 NOT BETWEEN MIN( - 10 ) * + 77 AND ( + CAST( - 22 AS SIGNED ) * + AVG ( 61 ) + - 64 ) THEN + 91 + - CAST( ( + ( - ( - ( - 79 ) ) ) ) AS SIGNED ) WHEN NOT ( NULLIF ( COUNT( * ), + 19 ) ) NOT BETWEEN NULL AND COUNT( * ) THEN NULL END
----
170

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT + CASE WHEN 87 NOT BETWEEN MIN ( - 10 ) * + 77 AND ( + CAST ( - 22 AS INTEGER ) * + AVG ( 61 ) + - 64 ) THEN + 91 + - CAST ( ( + ( - ( - ( - 79 ) ) ) ) AS INTEGER ) WHEN NOT ( NULLIF ( COUNT ( * ), + 19 ) ) NOT BETWEEN NULL AND COUNT ( * ) THEN NULL END
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4197
SELECT DISTINCT + COUNT( * ) * 37 - CASE - - 10 WHEN + + COUNT( * ) THEN - + 67 DIV + 66 ELSE - + 94 END AS col1
----
131

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT + COUNT ( * ) * 37 - CASE - - 10 WHEN + + COUNT ( * ) THEN - + 67 / + 66 ELSE - + 94 END AS col1
----
131

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4198
SELECT ( - - 78 ) * + + 62 * - 3 - - 24 * CAST( NULL AS DECIMAL ), - 54 * + - 23 * ( - 58 ) AS col2
----
NULL
-72036

skipif mysql # not compatible
query II rowsort label-4198
SELECT ( - - 78 ) * + + 62 * - 3 - - 24 * CAST ( NULL AS REAL ), - 54 * + - 23 * ( - 58 ) AS col2
----
NULL
-72036

query II rowsort
SELECT 80 AS col1, - 51
----
80
-51

query I rowsort
SELECT 6 + - 74 col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4201
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * - 97 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * - 97 AS col2
----
-97

query I rowsort
SELECT COALESCE ( - 65, - 83 ) * 47 col1
----
-3055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4203
SELECT ALL CAST( - ( - 57 ) AS SIGNED ) * + + NULLIF ( - 37, - 23 * + COUNT( * ) ) * - CASE COUNT( + 77 ) WHEN 96 DIV + 83 THEN - 37 WHEN 9 THEN NULL END
----
-78033

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL CAST ( - ( - 57 ) AS INTEGER ) * + + NULLIF ( - 37, - 23 * + COUNT ( * ) ) * - CASE COUNT ( + 77 ) WHEN 96 / + 83 THEN - 37 WHEN 9 THEN NULL END
----
-78033

onlyif mysql # DIV for integer division: 
query I rowsort label-4204
SELECT 58 DIV - - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4204
SELECT 58 / - - 85 AS col1
----
0

query I rowsort
SELECT ALL CASE - + 33 WHEN - - 34 THEN NULL ELSE + + 24 END * + - NULLIF ( - 75, - 33 )
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT COUNT( * ) + + SUM( + 70 ) * 11 AS col0
----
771

skipif mysql # not compatible
query I rowsort label-4206
SELECT COUNT ( * ) + + SUM ( + 70 ) * 11 AS col0
----
771

query II rowsort
SELECT ALL 49 AS col0, + 20 AS col2
----
49
20

query I rowsort
SELECT ALL 71 * 6 col0
----
426

query I rowsort
SELECT 41 + 25
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4210
SELECT 48 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-4210
SELECT 48 / - 97
----
0

query II rowsort
SELECT DISTINCT 8, CASE + 44 WHEN + + 24 + + + ( - 11 ) + + 70 THEN NULL ELSE + 8 END
----
8
8

query II rowsort
SELECT 95 AS col1, 22 * + 82 * 65 * + - 29 * 74 AS col0
----
95
-251639960

query II rowsort
SELECT DISTINCT 62, + 21 + 20 - + 40 AS col1
----
62
1

query I rowsort
SELECT 31 + + 51 AS col2
----
82

query II rowsort
SELECT ALL - 2, - 65 AS col1
----
-2
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT COALESCE ( 68, + 85 * - 76 ) + + + COALESCE ( + - ( - - 54 ), - CAST( NULL AS SIGNED ), 2 + + 57 * 79 ) + 71 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4216
SELECT COALESCE ( 68, + 85 * - 76 ) + + + COALESCE ( + - ( - - 54 ), - CAST ( NULL AS INTEGER ), 2 + + 57 * 79 ) + 71 AS col0
----
85

query II rowsort
SELECT + 71, - 41 + 58 col1
----
71
17

query I rowsort
SELECT 83 * - + 11 * + 84 * + + CASE - + 69 WHEN + - 5 THEN - CASE - 47 WHEN + 14 THEN + 47 WHEN 17 THEN NULL END ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 90 + - 22 AS col2
----
68

query I rowsort
SELECT ALL - 35 + ( 38 ) + 90 * + - 75
----
-6747

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4221
SELECT 57 + - - NULLIF ( + - COALESCE ( + 49, + 40 ), - - 21 * + 51 * + + COUNT( * ) ) DIV + 11 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4221
SELECT 57 + - - NULLIF ( + - COALESCE ( + 49, + 40 ), - - 21 * + 51 * + + COUNT ( * ) ) / + 11 AS col0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4222
SELECT ALL + - 73 + + 3 * - + 84 AS col2, COALESCE ( - 53, + 48 ) * - COALESCE ( + + 17, - NULLIF ( 21, + ( - 92 ) ) + - COALESCE ( - 77, - COUNT( * ) ) ) + + 98 + - COUNT( ALL CASE 84 WHEN - 86 - 11 THEN 71 WHEN - 78 THEN NULL END - ( 45 ) )
----
-325
999

skipif mysql # not compatible
query II rowsort label-4222
SELECT ALL + - 73 + + 3 * - + 84 AS col2, COALESCE ( - 53, + 48 ) * - COALESCE ( + + 17, - NULLIF ( 21, + ( - 92 ) ) + - COALESCE ( - 77, - COUNT ( * ) ) ) + + 98 + - COUNT ( ALL CASE 84 WHEN - 86 - 11 THEN 71 WHEN - 78 THEN NULL END - ( 45 ) )
----
-325
999

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4223
SELECT ALL + 30 * 42 + - + 66 AS col0, CAST( - COUNT( * ) AS SIGNED ) col0
----
1194
-1

skipif mysql # not compatible
query II rowsort label-4223
SELECT ALL + 30 * 42 + - + 66 AS col0, CAST ( - COUNT ( * ) AS INTEGER ) col0
----
1194
-1

query I rowsort
SELECT DISTINCT 3 + - + 41 AS col0
----
-38

query I rowsort
SELECT ALL - - ( 34 )
----
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4226
SELECT DISTINCT + + CAST( + 41 AS SIGNED ) * - 93 DIV 87 DIV + - 59 col1
----
0

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT + + CAST ( + 41 AS INTEGER ) * - 93 / 87 / + - 59 col1
----
0

query I rowsort
SELECT DISTINCT - 39 + 79
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT DISTINCT - MAX( + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT - MAX ( + 60 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4229
SELECT + NULLIF ( COUNT( * ), + NULLIF ( - + 81, - 49 + + - 66 + + 93 * - - CAST( NULL AS DECIMAL ) * ( CAST( - NULLIF ( COUNT( * ), MAX( 36 ) * + 7 ) AS SIGNED ) ) + MAX( 68 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4229
SELECT + NULLIF ( COUNT ( * ), + NULLIF ( - + 81, - 49 + + - 66 + + 93 * - - CAST ( NULL AS REAL ) * ( CAST ( - NULLIF ( COUNT ( * ), MAX ( 36 ) * + 7 ) AS INTEGER ) ) + MAX ( 68 ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT NULLIF ( - 9, 18 * - 30 - 4 ) * + COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4230
SELECT NULLIF ( - 9, 18 * - 30 - 4 ) * + COUNT ( * ) AS col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4231
SELECT + + CAST( 81 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-4231
SELECT + + CAST ( 81 AS INTEGER )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT ALL + COUNT( * ) - + 73 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL + COUNT ( * ) - + 73 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT 24 + - 1 + - CASE WHEN + 15 IS NOT NULL THEN + + COUNT( * ) + - - 32 END
----
-10

skipif mysql # not compatible
query I rowsort label-4233
SELECT 24 + - 1 + - CASE WHEN + 15 IS NOT NULL THEN + + COUNT ( * ) + - - 32 END
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4234
SELECT + 54 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-4234
SELECT + 54 / + 74
----
0

query II rowsort
SELECT ALL - 83, + 94 AS col0
----
-83
94

query I rowsort
SELECT - ( NULLIF ( - 73, + 50 ) ) + + ( + 31 ) * 82 * + + 85 AS col1
----
216143

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4237
SELECT ALL - 72, 95 / + + CAST( NULL AS SIGNED ) AS col1
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-4237
SELECT ALL - 72, 95 / + + CAST ( NULL AS INTEGER ) AS col1
----
-72
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL SUM( + 68 )
----
68

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL SUM ( + 68 )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4239
SELECT DISTINCT - + 14 DIV - + COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4239
SELECT DISTINCT - + 14 / - + COUNT ( * ) AS col2
----
14

query I rowsort
SELECT 28 * - - 9 * 61 + - 72 AS col0
----
15300

onlyif mysql # aggregate syntax: 
query II rowsort label-4241
SELECT DISTINCT - 92 - + 67 * + + COALESCE ( + + 4, 64 * + + 82, - COUNT( * ) ) AS col0, - 76 * 7 * 62 AS col1
----
-360
-32984

skipif mysql # not compatible
query II rowsort label-4241
SELECT DISTINCT - 92 - + 67 * + + COALESCE ( + + 4, 64 * + + 82, - COUNT ( * ) ) AS col0, - 76 * 7 * 62 AS col1
----
-360
-32984

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4242
SELECT DISTINCT + 20 * 97 DIV 99 * - 2 * - MIN( - 41 ) AS col2
----
-1558

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT + 20 * 97 / 99 * - 2 * - MIN ( - 41 ) AS col2
----
-1558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 17
----
NULL

query I rowsort
SELECT ( + 39 ) * + 39 AS col0
----
1521

query I rowsort
SELECT DISTINCT + ( 35 ) * + 89 AS col0
----
3115

query I rowsort
SELECT 51 * 58 AS col0
----
2958

query I rowsort
SELECT ALL - 2 + + - 81
----
-83

query I rowsort
SELECT ALL 24 + 32 * - 2 AS col1
----
-40

query I rowsort
SELECT 57 + - - 8 AS col2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4250
SELECT ALL 71 DIV + COUNT( 5 )
----
71

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL 71 / + COUNT ( 5 )
----
71

query I rowsort
SELECT 41 * - 27 * + 51 AS col2
----
-56457

query I rowsort
SELECT 76 + - - 13
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4253
SELECT DISTINCT 6 + - + 86, 59 * - + COUNT( * ) - + - 0 * - 35 - + + 42 AS col0
----
-80
-101

skipif mysql # not compatible
query II rowsort label-4253
SELECT DISTINCT 6 + - + 86, 59 * - + COUNT ( * ) - + - 0 * - 35 - + + 42 AS col0
----
-80
-101

query I rowsort
SELECT ALL 64 + 72 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT 23 * + SUM( - 72 )
----
-1656

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT 23 * + SUM ( - 72 )
----
-1656

query II rowsort
SELECT 66 * 42, 1 AS col1
----
2772
1

query I rowsort
SELECT + + ( + + 79 )
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4258
SELECT ALL CAST( NULL AS DECIMAL ) * ( + 59 ) + - 30 + + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL CAST ( NULL AS REAL ) * ( + 59 ) + - 30 + + 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT DISTINCT + + CASE + NULLIF ( 66, - ( + COALESCE ( + COUNT( * ), - - 17 ) ) * - COUNT( * ) * + 92 ) WHEN 8 + + 64 THEN NULL ELSE 80 END * ( - 51 ) + 46 col0
----
-4034

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT + + CASE + NULLIF ( 66, - ( + COALESCE ( + COUNT ( * ), - - 17 ) ) * - COUNT ( * ) * + 92 ) WHEN 8 + + 64 THEN NULL ELSE 80 END * ( - 51 ) + 46 col0
----
-4034

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4260
SELECT ALL - - 83 * COUNT( * ) DIV + 10 + 47 + + SUM( ALL - 79 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL - - 83 * COUNT ( * ) / + 10 + 47 + + SUM ( ALL - 79 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT + COUNT( * ) * 18 * - ( 33 )
----
-594

skipif mysql # not compatible
query I rowsort label-4261
SELECT + COUNT ( * ) * 18 * - ( 33 )
----
-594

query I rowsort
SELECT DISTINCT - NULLIF ( - 78, 87 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4263
SELECT ALL + + MIN( - 88 ) * + 24 * + 58 + + 31 - - CAST( NULL AS SIGNED ) * 75 * - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL + + MIN ( - 88 ) * + 24 * + 58 + + 31 - - CAST ( NULL AS INTEGER ) * 75 * - 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4264
SELECT 8 - - 71 * + MAX( DISTINCT + - 60 ) AS col1, 22 AS col1
----
-4252
22

skipif mysql # not compatible
query II rowsort label-4264
SELECT 8 - - 71 * + MAX ( DISTINCT + - 60 ) AS col1, 22 AS col1
----
-4252
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT ALL - + COUNT( - 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL - + COUNT ( - 3 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4266
SELECT ALL CAST( NULL AS SIGNED ) - + COUNT( * ), + 68 * - 9 AS col0
----
NULL
-612

skipif mysql # not compatible
query II rowsort label-4266
SELECT ALL CAST ( NULL AS INTEGER ) - + COUNT ( * ), + 68 * - 9 AS col0
----
NULL
-612

query I rowsort
SELECT ALL - 91 * + 62 * 33 AS col1
----
-186186

query I rowsort
SELECT ALL + + NULLIF ( 68, 69 ) col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ( + 39 ) * + 66 - - 81 + + COALESCE ( + ( - + 27 ), + 66 * + + 26 * 8 ) + COUNT( * )
----
2629

skipif mysql # not compatible
query I rowsort label-4269
SELECT ( + 39 ) * + 66 - - 81 + + COALESCE ( + ( - + 27 ), + 66 * + + 26 * 8 ) + COUNT ( * )
----
2629

query I rowsort
SELECT ALL - 47 * + 55
----
-2585

query I rowsort
SELECT + 27 * + 44 AS col0
----
1188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT - 97 * - 86 * CASE + 76 WHEN - CAST( - 62 AS SIGNED ) - + + 22 THEN NULL WHEN 30 THEN + 76 + 91 WHEN 78 THEN + COUNT( * ) / 14 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT - 97 * - 86 * CASE + 76 WHEN - CAST ( - 62 AS INTEGER ) - + + 22 THEN NULL WHEN 30 THEN + 76 + 91 WHEN 78 THEN + COUNT ( * ) / 14 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL COUNT( ALL + 23 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL COUNT ( ALL + 23 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT COUNT( ALL + 10 )
----
1

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT COUNT ( ALL + 10 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4275
SELECT DISTINCT COALESCE ( + 68, + 47 ) + - COUNT( * ) DIV + + 36 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT COALESCE ( + 68, + 47 ) + - COUNT ( * ) / + + 36 AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4276
SELECT DISTINCT - 61 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT - 61 / + 76
----
0

query I rowsort
SELECT DISTINCT - 52 + 7
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4278
SELECT - 13 DIV ( + ( + 53 ) ) DIV - + 33 + + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4278
SELECT - 13 / ( + ( + 53 ) ) / - + 33 + + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - 30 - - ( + 48 ) AS col1
----
18

query I rowsort
SELECT - 77 + + 83 + - 0 - + 38 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT - SUM( DISTINCT - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-4281
SELECT - SUM ( DISTINCT - 42 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4282
SELECT ALL + 35 + - 67 + MIN( ALL - - CAST( NULL AS SIGNED ) ) * 49 AS col1, + 95 + + ( + 90 ) col0
----
NULL
185

skipif mysql # not compatible
query II rowsort label-4282
SELECT ALL + 35 + - 67 + MIN ( ALL - - CAST ( NULL AS INTEGER ) ) * 49 AS col1, + 95 + + ( + 90 ) col0
----
NULL
185

query I rowsort
SELECT + 59 * + 99
----
5841

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT - 70 + - + 67 + + MAX( + + 83 ) * + + 14 AS col2
----
1025

skipif mysql # not compatible
query I rowsort label-4284
SELECT - 70 + - + 67 + + MAX ( + + 83 ) * + + 14 AS col2
----
1025

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4285
SELECT - COUNT( * ) col1, COALESCE ( + 36, 63 DIV + 53 ) AS col2
----
-1
36

skipif mysql # not compatible
query II rowsort label-4285
SELECT - COUNT ( * ) col1, COALESCE ( + 36, 63 / + 53 ) AS col2
----
-1
36

query I rowsort
SELECT DISTINCT - 62 * + + 65 * + 0 col0
----
0

query II rowsort
SELECT ALL 69, - 25 * - - 74 * - - 58 AS col2
----
69
-107300

query I rowsort
SELECT - 23 + - 74 AS col1
----
-97

query I rowsort
SELECT ALL - 72 + + 51 * - 40 + + - ( - 42 )
----
-2070

query I rowsort
SELECT + - 50 + - 95 AS col0
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL - COUNT( * ) - + 79 * - COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL - COUNT ( * ) - + 79 * - COUNT ( * ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4292
SELECT DISTINCT + CASE SUM( - CAST( NULL AS SIGNED ) ) WHEN + CASE + COUNT( * ) WHEN + - MAX( + 55 ) THEN NULL WHEN + 6 - 92 + + NULLIF ( - 57, + 20 / + COUNT( * ) ) + + ( + 96 + 14 * + 15 ) * NULLIF ( CASE - 69 WHEN - 23 + - 51 THEN + 62 + + 42 ELSE 3 * - 3 + + 13 * - 39 END, 53 ) THEN NULL WHEN + 40 * + MIN( - 82 * 95 ) THEN NULL ELSE 44 END THEN NULL WHEN - 52 THEN 84 ELSE NULL END / - MAX( DISTINCT 95 + 21 * + 96 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT + CASE SUM ( - CAST ( NULL AS INTEGER ) ) WHEN + CASE + COUNT ( * ) WHEN + - MAX ( + 55 ) THEN NULL WHEN + 6 - 92 + + NULLIF ( - 57, + 20 / + COUNT ( * ) ) + + ( + 96 + 14 * + 15 ) * NULLIF ( CASE - 69 WHEN - 23 + - 51 THEN + 62 + + 42 ELSE 3 * - 3 + + 13 * - 39 END, 53 ) THEN NULL WHEN + 40 * + MIN ( - 82 * 95 ) THEN NULL ELSE 44 END THEN NULL WHEN - 52 THEN 84 ELSE NULL END / - MAX ( DISTINCT 95 + 21 * + 96 ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( - 58 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT - + 64 + + 42 - - - 97 * + + COUNT( * )
----
-119

skipif mysql # not compatible
query I rowsort label-4294
SELECT - + 64 + + 42 - - - 97 * + + COUNT ( * )
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-4295
SELECT ALL 1 DIV 99 - + + 91 + + 72
----
-19

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL 1 / 99 - + + 91 + + 72
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4296
SELECT ALL 39 * CAST( - - 21 AS SIGNED ) AS col1
----
819

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL 39 * CAST ( - - 21 AS INTEGER ) AS col1
----
819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4297
SELECT + 9 + + CAST( 19 AS SIGNED ) + - + 3 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4297
SELECT + 9 + + CAST ( 19 AS INTEGER ) + - + 3 AS col0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4298
SELECT DISTINCT - - ( + 82 ) DIV - COUNT( * ) - 36
----
-118

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT - - ( + 82 ) / - COUNT ( * ) - 36
----
-118

onlyif mysql # DIV for integer division: 
query II rowsort label-4299
SELECT - 30 DIV + 46 + - - 49 AS col0, 44 - 64 AS col0
----
49
-20

skipif mysql # not compatible
query II rowsort label-4299
SELECT - 30 / + 46 + - - 49 AS col0, 44 - 64 AS col0
----
49
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL - 43 * - 64 * + COUNT( ALL - - 15 ) * + 20 + - - SUM( - 60 )
----
54980

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL - 43 * - 64 * + COUNT ( ALL - - 15 ) * + 20 + - - SUM ( - 60 )
----
54980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4301
SELECT DISTINCT + - COALESCE ( - 76, + - 37 * - CASE COUNT( * ) WHEN - 52 THEN NULL ELSE 59 - - COUNT( * ) - - 58 * - 4 DIV 10 END - ( CASE - ( - 20 ) WHEN - CAST( NULL AS SIGNED ) + + 4 THEN 87 END ) ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT + - COALESCE ( - 76, + - 37 * - CASE COUNT ( * ) WHEN - 52 THEN NULL ELSE 59 - - COUNT ( * ) - - 58 * - 4 / 10 END - ( CASE - ( - 20 ) WHEN - CAST ( NULL AS INTEGER ) + + 4 THEN 87 END ) ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT ALL + - MAX( DISTINCT - 90 )
----
90

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL + - MAX ( DISTINCT - 90 )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4303
SELECT + 59 * - + MIN( + - 77 ) + + - ( + 11 ) AS col0, - 65
----
4532
-65

skipif mysql # not compatible
query II rowsort label-4303
SELECT + 59 * - + MIN ( + - 77 ) + + - ( + 11 ) AS col0, - 65
----
4532
-65

query I rowsort
SELECT ALL 28 * - 74 AS col1
----
-2072

onlyif mysql # aggregate syntax: 
query II rowsort label-4305
SELECT + MIN( - + ( - 49 ) ) + + + 67 + + 8 AS col1, 57 AS col1
----
124
57

skipif mysql # not compatible
query II rowsort label-4305
SELECT + MIN ( - + ( - 49 ) ) + + + 67 + + 8 AS col1, 57 AS col1
----
124
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT + - NULLIF ( + - 83, - COUNT( * ) )
----
83

skipif mysql # not compatible
query I rowsort label-4306
SELECT + - NULLIF ( + - 83, - COUNT ( * ) )
----
83

query I rowsort
SELECT + 25 * - - 56
----
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT CASE - 79 WHEN - 61 THEN MAX( 30 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT CASE - 79 WHEN - 61 THEN MAX ( 30 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT ALL + 6 * ( - 71 ) + - - 42 + 37 + + - 50 * COUNT( * ) AS col0
----
-397

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL + 6 * ( - 71 ) + - - 42 + 37 + + - 50 * COUNT ( * ) AS col0
----
-397

query I rowsort
SELECT ALL - 75 * + 61 AS col1
----
-4575

query I rowsort
SELECT + 37 + - + 77 * 30
----
-2273

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT ALL COUNT( * ) * + + SUM( - 91 ) + + 17
----
-74

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL COUNT ( * ) * + + SUM ( - 91 ) + + 17
----
-74

query II rowsort
SELECT DISTINCT + 83 AS col0, - 20 AS col2
----
83
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-4314
SELECT DISTINCT + 96 * + 65 + COUNT( * ) * 87, - 87 + + CASE COUNT( * ) WHEN - 47 THEN AVG ( DISTINCT 75 ) WHEN - 52 * - 0 THEN NULL ELSE NULL END col1
----
6327
NULL

skipif mysql # not compatible
query II rowsort label-4314
SELECT DISTINCT + 96 * + 65 + COUNT ( * ) * 87, - 87 + + CASE COUNT ( * ) WHEN - 47 THEN AVG ( DISTINCT 75 ) WHEN - 52 * - 0 THEN NULL ELSE NULL END col1
----
6327
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT DISTINCT 88 * NULLIF ( - - 31, + 36 ) * + 86 * + NULLIF ( + CASE ( + NULLIF ( + 47, + NULLIF ( - 35, 34 ) * - 50 ) ) WHEN + 43 * 75 + + 11 THEN + 92 + 31 * NULLIF ( 86 * 43, 61 * COUNT( * ) ) WHEN - 7 THEN + 60 ELSE - 28 + + 0 END, 68 ) + - 87
----
-6569111

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT 88 * NULLIF ( - - 31, + 36 ) * + 86 * + NULLIF ( + CASE ( + NULLIF ( + 47, + NULLIF ( - 35, 34 ) * - 50 ) ) WHEN + 43 * 75 + + 11 THEN + 92 + 31 * NULLIF ( 86 * 43, 61 * COUNT ( * ) ) WHEN - 7 THEN + 60 ELSE - 28 + + 0 END, 68 ) + - 87
----
-6569111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4316
SELECT - CAST( NULL AS SIGNED ) col1, - 12
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-4316
SELECT - CAST ( NULL AS INTEGER ) col1, - 12
----
NULL
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-4317
SELECT MIN( DISTINCT + 43 ) AS col2, 53
----
43
53

skipif mysql # not compatible
query II rowsort label-4317
SELECT MIN ( DISTINCT + 43 ) AS col2, 53
----
43
53

query I rowsort
SELECT DISTINCT ( 43 ) AS col1
----
43

query I rowsort
SELECT DISTINCT ( - 72 ) + - - 20 * + 46
----
848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT ALL 53 + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL 53 + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4321
SELECT ALL + 13 DIV - - MIN( + ( - + 59 ) ) * + 97
----
0

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL + 13 / - - MIN ( + ( - + 59 ) ) * + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ALL + 4 - - - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL + 4 - - - COUNT ( * )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4323
SELECT - COALESCE ( + 20, + - 54 * - 40 * + + 7 ) * - 28 + - 90 * - 97 + - + MIN( DISTINCT + + 20 ) * - 17 * + NULLIF ( 62 DIV 71, 16 + - 84 )
----
9290

skipif mysql # not compatible
query I rowsort label-4323
SELECT - COALESCE ( + 20, + - 54 * - 40 * + + 7 ) * - 28 + - 90 * - 97 + - + MIN ( DISTINCT + + 20 ) * - 17 * + NULLIF ( 62 / 71, 16 + - 84 )
----
9290

query I rowsort
SELECT ALL - 40 - ( + 19 )
----
-59

query II rowsort
SELECT ALL ( - NULLIF ( - 78, + 22 ) ) AS col1, - 22 + - - 67 * 45 col1
----
78
2993

query II rowsort
SELECT + 48 col1, + 99 * + - 32 - 46 AS col1
----
48
-3214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4327
SELECT - + 76 * 50 * + CAST( 9 AS SIGNED )
----
-34200

skipif mysql # not compatible
query I rowsort label-4327
SELECT - + 76 * 50 * + CAST ( 9 AS INTEGER )
----
-34200

query I rowsort
SELECT ALL - 7 - - ( + - 43 ) * - - 6 AS col2
----
-265

query I rowsort
SELECT DISTINCT - + 11 * 64 AS col2
----
-704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4330
SELECT ALL - ( - + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) ) * - 59 * - MAX( + 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL - ( - + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) ) * - 59 * - MAX ( + 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT DISTINCT + NULLIF ( 62, + 12 * - + SUM( - - 87 ) + - 69 * 50 * - 69 * - - ( + + COUNT( DISTINCT 38 ) ) * + COALESCE ( 7 * - 81, 25, + 18 ) ) * + 1
----
62

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT + NULLIF ( 62, + 12 * - + SUM ( - - 87 ) + - 69 * 50 * - 69 * - - ( + + COUNT ( DISTINCT 38 ) ) * + COALESCE ( 7 * - 81, 25, + 18 ) ) * + 1
----
62

query I rowsort
SELECT 71 + + 80
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4333
SELECT + + 14 AS col0, - CAST( NULL AS SIGNED ) - 26 * 22 + - 14
----
14
NULL

skipif mysql # not compatible
query II rowsort label-4333
SELECT + + 14 AS col0, - CAST ( NULL AS INTEGER ) - 26 * 22 + - 14
----
14
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4334
SELECT - ( - ( ( - - 31 ) ) ) / - CASE SUM( DISTINCT 24 ) WHEN 85 THEN NULL WHEN - 83 * - 5 * + - ( - CAST( + ( + 1 ) AS SIGNED ) ) * + 11 THEN - 25 ELSE NULL END + ( 98 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT - ( - ( ( - - 31 ) ) ) / - CASE SUM ( DISTINCT 24 ) WHEN 85 THEN NULL WHEN - 83 * - 5 * + - ( - CAST ( + ( + 1 ) AS INTEGER ) ) * + 11 THEN - 25 ELSE NULL END + ( 98 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4335
SELECT ALL + 31 DIV - - ( + 87 ) + - 58 - + 92 AS col1
----
-150

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL + 31 / - - ( + 87 ) + - 58 - + 92 AS col1
----
-150

query II rowsort
SELECT + - ( - - 59 ) AS col0, + 90 * - + 75 AS col2
----
-59
-6750

onlyif mysql # DIV for integer division: 
query I rowsort label-4337
SELECT 50 DIV + - 36 - - 21
----
20

skipif mysql # not compatible
query I rowsort label-4337
SELECT 50 / + - 36 - - 21
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT ALL + 79 DIV - 22 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL + 79 / - 22 AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4339
SELECT NULLIF ( + - 96, + 85 ) DIV - 42 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4339
SELECT NULLIF ( + - 96, + 85 ) / - 42 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT 49 + - COUNT( * ) + 29 + + 1
----
78

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT 49 + - COUNT ( * ) + 29 + + 1
----
78

query I rowsort
SELECT DISTINCT ( 71 ) * + + 20 * + 71
----
100820

onlyif mysql # aggregate syntax: 
query II rowsort label-4342
SELECT ALL COUNT( * ) + + 15 AS col0, + 83 * - 21 AS col0
----
16
-1743

skipif mysql # not compatible
query II rowsort label-4342
SELECT ALL COUNT ( * ) + + 15 AS col0, + 83 * - 21 AS col0
----
16
-1743

query I rowsort
SELECT DISTINCT 13 + - + 46 + + - NULLIF ( - 76, 88 ) * - + 8 AS col1
----
-641

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT COUNT( - 24 ) * - 12
----
-12

skipif mysql # not compatible
query I rowsort label-4344
SELECT COUNT ( - 24 ) * - 12
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4345
SELECT ALL 89 + - - 62 + 3 * + + CASE - 43 WHEN - + 22 * - CAST( NULL AS SIGNED ) THEN + 67 WHEN - 50 * - + COUNT( * ) THEN NULL END * - + 46 + + + MIN( DISTINCT 15 ) + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL 89 + - - 62 + 3 * + + CASE - 43 WHEN - + 22 * - CAST ( NULL AS INTEGER ) THEN + 67 WHEN - 50 * - + COUNT ( * ) THEN NULL END * - + 46 + + + MIN ( DISTINCT 15 ) + 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4346
SELECT DISTINCT 0 - - 54 * COALESCE ( + 10, + - 72 * - 6 - + CAST( ( 0 ) AS SIGNED ) * - ( - 66 ) )
----
540

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT 0 - - 54 * COALESCE ( + 10, + - 72 * - 6 - + CAST ( ( 0 ) AS INTEGER ) * - ( - 66 ) )
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT + COUNT( * ) * + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT + COUNT ( * ) * + - 30
----
-30

query II rowsort
SELECT ALL - 72 - - 1, - 35 col2
----
-71
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL + NULLIF ( + CASE + 26 WHEN - - 60 * - 78 - ( + 51 ) * - + 2 THEN - ( - 92 ) / - 26 WHEN - 30 THEN 50 * - 51 END, 55 ) * + ( - SUM( DISTINCT 46 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL + NULLIF ( + CASE + 26 WHEN - - 60 * - 78 - ( + 51 ) * - + 2 THEN - ( - 92 ) / - 26 WHEN - 30 THEN 50 * - 51 END, 55 ) * + ( - SUM ( DISTINCT 46 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4350
SELECT ALL 5 * 63 AS col0, COUNT( * ) * - 84
----
315
-84

skipif mysql # not compatible
query II rowsort label-4350
SELECT ALL 5 * 63 AS col0, COUNT ( * ) * - 84
----
315
-84

query I rowsort
SELECT ( 34 ) - 47
----
-13

query I rowsort
SELECT ALL 99 - - ( 43 ) * + 17 AS col1
----
830

query I rowsort
SELECT - - NULLIF ( - - 22, - 93 ) col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4354
SELECT ALL + CAST( NULL AS SIGNED ) * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + CAST ( NULL AS INTEGER ) * 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT 65 * SUM( ALL + 6 )
----
390

skipif mysql # not compatible
query I rowsort label-4355
SELECT 65 * SUM ( ALL + 6 )
----
390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4356
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col2, 62 col0
----
1
62

skipif mysql # not compatible
query II rowsort label-4356
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col2, 62 col0
----
1
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4357
SELECT 14 + + 74 DIV + 1
----
88

skipif mysql # not compatible
query I rowsort label-4357
SELECT 14 + + 74 / + 1
----
88

query II rowsort
SELECT - 5 + 52, 45 AS col0
----
47
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT + ( + COUNT( * ) ) * - COUNT( ALL + 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-4359
SELECT + ( + COUNT ( * ) ) * - COUNT ( ALL + 45 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT 6 + - ( + + COUNT( * ) ) col1
----
5

skipif mysql # not compatible
query I rowsort label-4360
SELECT 6 + - ( + + COUNT ( * ) ) col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4361
SELECT ALL + COALESCE ( - - SUM( DISTINCT + - 54 ), ( 16 ) + + - 76 ) DIV + 4 + + - 7 + - 67 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL + COALESCE ( - - SUM ( DISTINCT + - 54 ), ( 16 ) + + - 76 ) / + 4 + + - 7 + - 67 AS col1
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4362
SELECT COUNT( * ) DIV - 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4362
SELECT COUNT ( * ) / - 15 AS col2
----
0

query II rowsort
SELECT ALL - ( - 21 ) AS col2, + 85 AS col0
----
21
85

query I rowsort
SELECT + ( 78 ) * - - 80 + + - 67 AS col1
----
6173

onlyif mysql # aggregate syntax: 
query II rowsort label-4365
SELECT 13 * - 87 * - + 86 AS col2, COUNT( * ) * - ( - - 72 ) AS col2
----
97266
-72

skipif mysql # not compatible
query II rowsort label-4365
SELECT 13 * - 87 * - + 86 AS col2, COUNT ( * ) * - ( - - 72 ) AS col2
----
97266
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-4366
SELECT 65 DIV - + 69 - + - 85 + + - 27
----
58

skipif mysql # not compatible
query I rowsort label-4366
SELECT 65 / - + 69 - + - 85 + + - 27
----
58

query I rowsort
SELECT ALL - 60 + + 3 * 58 AS col0
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4368
SELECT ALL - - 29 + + 74 + - ( - MIN( + ( + 7 ) ) ) + + - CAST( + 76 AS SIGNED ), 88 * + 33 - - + 44 * + 71 AS col1
----
34
6028

skipif mysql # not compatible
query II rowsort label-4368
SELECT ALL - - 29 + + 74 + - ( - MIN ( + ( + 7 ) ) ) + + - CAST ( + 76 AS INTEGER ), 88 * + 33 - - + 44 * + 71 AS col1
----
34
6028

query I rowsort
SELECT ALL + 69 * 38 AS col2
----
2622

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT 5 * - - CASE MAX( - + ( - 52 ) ) WHEN + 11 / - + 34 THEN NULL WHEN + + 82 THEN - 25 END * + 81 + - - 5 + COUNT( DISTINCT - 64 ) * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4370
SELECT 5 * - - CASE MAX ( - + ( - 52 ) ) WHEN + 11 / - + 34 THEN NULL WHEN + + 82 THEN - 25 END * + 81 + - - 5 + COUNT ( DISTINCT - 64 ) * 7
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4371
SELECT DISTINCT + + COUNT( * ) * + 93 * + ( - COALESCE ( - - MAX( + 56 ), + + 59 DIV - - NULLIF ( 11, ( + - CAST( - - COUNT( * ) AS SIGNED ) ) ) + + SUM( ( 82 ) ) ) ) - + 79 AS col1
----
-5287

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT + + COUNT ( * ) * + 93 * + ( - COALESCE ( - - MAX ( + 56 ), + + 59 / - - NULLIF ( 11, ( + - CAST ( - - COUNT ( * ) AS INTEGER ) ) ) + + SUM ( ( 82 ) ) ) ) - + 79 AS col1
----
-5287

onlyif mysql # aggregate syntax: 
query II rowsort label-4372
SELECT 54 * 82, - 26 + - 91 + - - 64 + - 42 * - + 40 + SUM( - 94 ) AS col0
----
4428
1533

skipif mysql # not compatible
query II rowsort label-4372
SELECT 54 * 82, - 26 + - 91 + - - 64 + - 42 * - + 40 + SUM ( - 94 ) AS col0
----
4428
1533

onlyif mysql # aggregate syntax: 
query II rowsort label-4373
SELECT + 29, + 19 * - 0 - - - COUNT( * ) col2
----
29
-1

skipif mysql # not compatible
query II rowsort label-4373
SELECT + 29, + 19 * - 0 - - - COUNT ( * ) col2
----
29
-1

query II rowsort
SELECT 45, - 43 AS col0
----
45
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4375
SELECT + CASE - COALESCE ( - + 54, + + NULLIF ( - + 62, 86 / - 86 ), - 41, 1 * - CAST( - 30 AS SIGNED ) - + MAX( + 46 ) ) WHEN + ( 65 ) THEN - 90 WHEN 75 + 64 / 75 THEN NULL ELSE NULL END * - MAX( DISTINCT - 23 / + 3 ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT + CASE - COALESCE ( - + 54, + + NULLIF ( - + 62, 86 / - 86 ), - 41, 1 * - CAST ( - 30 AS INTEGER ) - + MAX ( + 46 ) ) WHEN + ( 65 ) THEN - 90 WHEN 75 + 64 / 75 THEN NULL ELSE NULL END * - MAX ( DISTINCT - 23 / + 3 ) + - COUNT ( * )
----
NULL

query II rowsort
SELECT 58 col2, 97 AS col0
----
58
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4377
SELECT ALL - 85 + + + CAST( NULL AS SIGNED ) / + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL - 85 + + + CAST ( NULL AS INTEGER ) / + 3
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4378
SELECT DISTINCT + 30 DIV 1
----
30

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT + 30 / 1
----
30

query II rowsort
SELECT ALL - 22 AS col0, - 25 AS col0
----
-22
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT COUNT( * ) * - ( + - 50 ) + + 6
----
56

skipif mysql # not compatible
query I rowsort label-4380
SELECT COUNT ( * ) * - ( + - 50 ) + + 6
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4381
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - ( 89 ) + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - ( 89 ) + + COUNT ( * ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4382
SELECT DISTINCT 59 - 90 + + 46 + + + 7 DIV + - 15 * + 5 AS col1, - 98 AS col1
----
15
-98

skipif mysql # not compatible
query II rowsort label-4382
SELECT DISTINCT 59 - 90 + + 46 + + + 7 / + - 15 * + 5 AS col1, - 98 AS col1
----
15
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT DISTINCT - 31 * - + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT - 31 * - + COUNT ( * )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4384
SELECT ALL 35 - - - CAST( - + 64 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL 35 - - - CAST ( - + 64 AS INTEGER )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4385
SELECT 86 * - CAST( NULL AS SIGNED ) / - - COUNT( * ) * - + 17 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT 86 * - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) * - + 17 col1
----
NULL

query I rowsort
SELECT ALL - 13 * + + 36 AS col0
----
-468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4387
SELECT DISTINCT + 58 * 87 * + CAST( - COALESCE ( COUNT( * ), + COUNT( * ) ) AS SIGNED ) AS col0
----
-5046

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT + 58 * 87 * + CAST ( - COALESCE ( COUNT ( * ), + COUNT ( * ) ) AS INTEGER ) AS col0
----
-5046

query II rowsort
SELECT 39 col0, - 34 + 93
----
39
59

query I rowsort
SELECT COALESCE ( + 45, 61 ) + 73 + - + 17
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-4390
SELECT - 21 AS col0, COUNT( * ) AS col2
----
-21
1

skipif mysql # not compatible
query II rowsort label-4390
SELECT - 21 AS col0, COUNT ( * ) AS col2
----
-21
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4391
SELECT - COUNT( * ) + 88 + + 16 + - + 19 AS col2, 35
----
84
35

skipif mysql # not compatible
query II rowsort label-4391
SELECT - COUNT ( * ) + 88 + + 16 + - + 19 AS col2, 35
----
84
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4392
SELECT ALL - 93 col1, COALESCE ( + 49, 68 DIV + 18 + - + MAX( + + 86 ) + - - 13, - - CAST( + - AVG ( DISTINCT 31 ) AS SIGNED ) ) + + ( 96 )
----
-93
145

skipif mysql # not compatible
query II rowsort label-4392
SELECT ALL - 93 col1, COALESCE ( + 49, 68 / + 18 + - + MAX ( + + 86 ) + - - 13, - - CAST ( + - AVG ( DISTINCT 31 ) AS INTEGER ) ) + + ( 96 )
----
-93
145

query I rowsort
SELECT ALL - 24 * + 2
----
-48

query I rowsort
SELECT DISTINCT + - 69 + - + 40 AS col1
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT + - 75 * COUNT( * ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-4395
SELECT + - 75 * COUNT ( * ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-4396
SELECT COUNT( * ) AS col1, + 25 AS col1
----
1
25

skipif mysql # not compatible
query II rowsort label-4396
SELECT COUNT ( * ) AS col1, + 25 AS col1
----
1
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT SUM( ALL + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-4397
SELECT SUM ( ALL + 47 )
----
47

query II rowsort
SELECT - + 85 AS col2, 31
----
-85
31

query II rowsort
SELECT + 12, + 20 + - 68 col0
----
12
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT ALL COUNT( * ) + 82
----
83

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL COUNT ( * ) + 82
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT ALL CASE + 81 WHEN 67 * - 31 THEN + + 45 * - - COUNT( * ) + COUNT( * ) - 52 - SUM( DISTINCT + 86 ) * + AVG ( DISTINCT 62 ) + - 31 WHEN + 81 + MAX( + ( 11 ) ) THEN 26 WHEN CASE COALESCE ( CASE + COUNT( * ) WHEN 67 * + 0 THEN - 75 WHEN 16 + 85 * 40 THEN NULL ELSE 11 END, 10 ) WHEN 62 * + 82 + 6 THEN NULL ELSE + 25 + - 5 END + - 55 / 33 THEN 45 * - 42 END * + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL CASE + 81 WHEN 67 * - 31 THEN + + 45 * - - COUNT ( * ) + COUNT ( * ) - 52 - SUM ( DISTINCT + 86 ) * + AVG ( DISTINCT 62 ) + - 31 WHEN + 81 + MAX ( + ( 11 ) ) THEN 26 WHEN CASE COALESCE ( CASE + COUNT ( * ) WHEN 67 * + 0 THEN - 75 WHEN 16 + 85 * 40 THEN NULL ELSE 11 END, 10 ) WHEN 62 * + 82 + 6 THEN NULL ELSE + 25 + - 5 END + - 55 / 33 THEN 45 * - 42 END * + 31 AS col2
----
NULL

query I rowsort
SELECT ALL + - 39 + + 78 AS col0
----
39

query I rowsort
SELECT ALL 27 * - 42 + 98 * 42
----
2982

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT + 21 * - 75 + + - 94 DIV - - 3 + 72
----
-1534

skipif mysql # not compatible
query I rowsort label-4404
SELECT + 21 * - 75 + + - 94 / - - 3 + 72
----
-1534

onlyif mysql # DIV for integer division: 
query I rowsort label-4405
SELECT - 66 DIV + - 78 * - 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4405
SELECT - 66 / + - 78 * - 3 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4406
SELECT - ( - COUNT( * ) ) * - COUNT( * ) * - ( - 37 ) DIV 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4406
SELECT - ( - COUNT ( * ) ) * - COUNT ( * ) * - ( - 37 ) / 87 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT - 98 * + - 36 * - SUM( DISTINCT + + 47 )
----
-165816

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT - 98 * + - 36 * - SUM ( DISTINCT + + 47 )
----
-165816

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL + 44 * 80 * - + COUNT( * ) AS col2
----
-3520

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL + 44 * 80 * - + COUNT ( * ) AS col2
----
-3520

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL 14 * + + 88 - - NULLIF ( ( ( + 68 ) ), - + COALESCE ( + 53, + - 67 ) * COUNT( * ) ) + - 42 AS col2
----
1258

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL 14 * + + 88 - - NULLIF ( ( ( + 68 ) ), - + COALESCE ( + 53, + - 67 ) * COUNT ( * ) ) + - 42 AS col2
----
1258

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT 53 DIV - 49 + - ( - 80 ) col1
----
79

skipif mysql # not compatible
query I rowsort label-4410
SELECT 53 / - 49 + - ( - 80 ) col1
----
79

query I rowsort
SELECT - ( - 94 ) + 34
----
128

query I rowsort
SELECT COALESCE ( 86, + NULLIF ( - 24, + 37 ), 7 )
----
86

query I rowsort
SELECT ALL + 44 * - 54 col2
----
-2376

onlyif mysql # DIV for integer division: 
query I rowsort label-4414
SELECT COALESCE ( 38, - 17 + + CASE + + 37 WHEN 40 THEN NULL WHEN 3 * + 57 THEN + 76 ELSE + ( + 25 ) DIV 22 END + + 31 * - 40 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4414
SELECT COALESCE ( 38, - 17 + + CASE + + 37 WHEN 40 THEN NULL WHEN 3 * + 57 THEN + 76 ELSE + ( + 25 ) / 22 END + + 31 * - 40 ) AS col1
----
38

query I rowsort
SELECT - 76 * + ( 74 ) * - 33 * + 19 * + 5
----
17631240

onlyif mysql # aggregate syntax: 
query II rowsort label-4416
SELECT - 40 * - - 26 AS col0, COALESCE ( MAX( 64 ), CASE WHEN NOT ( + 24 ) IN ( - + 51, 63 ) THEN + 74 END ) * - CASE - COUNT( * ) WHEN - 64 THEN 59 ELSE NULL END
----
-1040
NULL

skipif mysql # not compatible
query II rowsort label-4416
SELECT - 40 * - - 26 AS col0, COALESCE ( MAX ( 64 ), CASE WHEN NOT ( + 24 ) IN ( - + 51, 63 ) THEN + 74 END ) * - CASE - COUNT ( * ) WHEN - 64 THEN 59 ELSE NULL END
----
-1040
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT + 46 * SUM( DISTINCT 17 ) AS col2
----
782

skipif mysql # not compatible
query I rowsort label-4417
SELECT + 46 * SUM ( DISTINCT 17 ) AS col2
----
782

query I rowsort
SELECT ALL NULLIF ( - ( + - 63 ), CASE - 1 WHEN + 84 THEN NULL ELSE 30 - 30 END * - + AVG ( DISTINCT + 36 ) + - 74 )
----
63

query I rowsort
SELECT ALL - 70 * + 92 + + - 91 AS col0
----
-6531

query I rowsort
SELECT ALL - - 63 + - 0 * - 79 * COALESCE ( - 45, + 80 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT - - 79 + + MIN( DISTINCT ( ( COALESCE ( + 36, - + 86 + 22 + + 47 - 97 ) ) ) )
----
115

skipif mysql # not compatible
query I rowsort label-4421
SELECT - - 79 + + MIN ( DISTINCT ( ( COALESCE ( + 36, - + 86 + 22 + + 47 - 97 ) ) ) )
----
115

query I rowsort
SELECT ALL + 68 * + - 56 * 46 col1
----
-175168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4423
SELECT - NULLIF ( 28, + - 79 ) + + COUNT( * ) AS col1, - 66 DIV - 72
----
-27
0

skipif mysql # not compatible
query II rowsort label-4423
SELECT - NULLIF ( 28, + - 79 ) + + COUNT ( * ) AS col1, - 66 / - 72
----
-27
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT + 9 * + COUNT( - + 67 )
----
9

skipif mysql # not compatible
query I rowsort label-4424
SELECT + 9 * + COUNT ( - + 67 )
----
9

query I rowsort
SELECT + 23 * - 89 + + + 92 + 75 AS col2
----
-1880

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT - - MAX( - 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-4426
SELECT - - MAX ( - 32 ) AS col1
----
-32

query I rowsort
SELECT DISTINCT + ( - 67 ) AS col2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4428
SELECT ALL NULLIF ( - 64, + 60 ) + + 84 + NULLIF ( + 21, + + 47 * + - CAST( NULL AS SIGNED ) - 36 + - + 28 ) + + NULLIF ( - + 78, - + 44 + - + ( 94 ) * 46 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL NULLIF ( - 64, + 60 ) + + 84 + NULLIF ( + 21, + + 47 * + - CAST ( NULL AS INTEGER ) - 36 + - + 28 ) + + NULLIF ( - + 78, - + 44 + - + ( 94 ) * 46 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT + - CAST( NULL AS SIGNED ) + - 31 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT + - CAST ( NULL AS INTEGER ) + - 31 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4430
SELECT ALL MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4431
SELECT + - 88 + - CAST( + + SUM( DISTINCT - 25 ) AS SIGNED ) + - 61 col2
----
-124

skipif mysql # not compatible
query I rowsort label-4431
SELECT + - 88 + - CAST ( + + SUM ( DISTINCT - 25 ) AS INTEGER ) + - 61 col2
----
-124

query I rowsort
SELECT ALL - 83 + - 23 + 43 * 98 * 28
----
117886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4433
SELECT DISTINCT - NULLIF ( 33, + 15 ) * 91 DIV - + 93 - - 99 + - 84 + + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT - NULLIF ( 33, + 15 ) * 91 / - + 93 - - 99 + - 84 + + COUNT ( * )
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-4434
SELECT - + 2 * + 93 DIV 11 DIV + - 30 * + 83 AS col1, 20 AS col0
----
0
20

skipif mysql # not compatible
query II rowsort label-4434
SELECT - + 2 * + 93 / 11 / + - 30 * + 83 AS col1, 20 AS col0
----
0
20

query II rowsort
SELECT + 39 + 56 - 95 * - + 16, - 27 + - 57 col0
----
1615
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4436
SELECT DISTINCT MAX( + CASE + 9 WHEN 86 THEN NULL WHEN - + 43 THEN - CAST( NULL AS SIGNED ) END ) * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT MAX ( + CASE + 9 WHEN 86 THEN NULL WHEN - + 43 THEN - CAST ( NULL AS INTEGER ) END ) * 87
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( - 41, + + ( - - 21 ) )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-4438
SELECT + NULLIF ( + - 53, 43 ) + + 83 * 5 * 43 DIV - 4 + + 43 * - 50 - - ( - 58 ) AS col1
----
-6722

skipif mysql # not compatible
query I rowsort label-4438
SELECT + NULLIF ( + - 53, 43 ) + + 83 * 5 * 43 / - 4 + + 43 * - 50 - - ( - 58 ) AS col1
----
-6722

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT + ( + MIN( 57 ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4439
SELECT + ( + MIN ( 57 ) ) AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4440
SELECT ALL 83 DIV - 9
----
-9

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL 83 / - 9
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT + MIN( - + 87 ) * - + ( - NULLIF ( 31, 4 * - 89 * + 36 * - 91 ) )
----
-2697

skipif mysql # not compatible
query I rowsort label-4441
SELECT + MIN ( - + 87 ) * - + ( - NULLIF ( 31, 4 * - 89 * + 36 * - 91 ) )
----
-2697

query I rowsort
SELECT + 65 * - 81
----
-5265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT + NULLIF ( 53, - COALESCE ( - 24, - 30 ) ) / CAST( NULL AS SIGNED ) * 6 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT + NULLIF ( 53, - COALESCE ( - 24, - 30 ) ) / CAST ( NULL AS INTEGER ) * 6 * 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT ALL + MAX( ALL - 48 ) * - 20 + 88 - 41 * + 68
----
-1740

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL + MAX ( ALL - 48 ) * - 20 + 88 - 41 * + 68
----
-1740

query I rowsort
SELECT + ( - 87 ) + + 90 AS col0
----
3

query I rowsort
SELECT ( - - 52 ) AS col1
----
52

query I rowsort
SELECT DISTINCT 82 + - 4
----
78

query I rowsort
SELECT ALL - ( 6 ) AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4449
SELECT - 96 * + CAST( NULL AS SIGNED ) + + 80 + + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4449
SELECT - 96 * + CAST ( NULL AS INTEGER ) + + 80 + + - 95
----
NULL

query I rowsort
SELECT ALL + 88 + + + 71
----
159

query II rowsort
SELECT + - 12 AS col2, - 81 + + 61
----
-12
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4452
SELECT - CAST( NULL AS SIGNED ) * + ( + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT - CAST ( NULL AS INTEGER ) * + ( + 15 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4453
SELECT ALL - 1 AS col0, + COUNT( + CAST( NULL AS SIGNED ) ) AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-4453
SELECT ALL - 1 AS col0, + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4454
SELECT - MAX( - + 91 ) + + CASE 73 WHEN + 46 THEN + - COUNT( * ) + 38 * 15 ELSE + CASE + 51 WHEN - CASE + 0 WHEN - + ( - 71 ) THEN - CAST( NULL AS DECIMAL ) * - 5 ELSE - 13 END / 34 THEN 4 ELSE NULL END + ( + 93 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT - MAX ( - + 91 ) + + CASE 73 WHEN + 46 THEN + - COUNT ( * ) + 38 * 15 ELSE + CASE + 51 WHEN - CASE + 0 WHEN - + ( - 71 ) THEN - CAST ( NULL AS REAL ) * - 5 ELSE - 13 END / 34 THEN 4 ELSE NULL END + ( + 93 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT - - MAX( DISTINCT - 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4455
SELECT - - MAX ( DISTINCT - 53 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT + COUNT( * ) + + + 73
----
74

skipif mysql # not compatible
query I rowsort label-4456
SELECT + COUNT ( * ) + + + 73
----
74

query I rowsort
SELECT ALL - ( + 12 ) + 86 + - - 56 + + 16
----
146

query II rowsort
SELECT 22 * CASE 80 WHEN + ( 84 ) / + 67 THEN NULL WHEN - 25 THEN + 85 END, 28 AS col0
----
NULL
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT ALL + - ( - COUNT( DISTINCT + 41 ) ) + + - 78 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL + - ( - COUNT ( DISTINCT + 41 ) ) + + - 78 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT ALL MAX( + + 93 ) col1
----
93

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL MAX ( + + 93 ) col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4461
SELECT + 74 DIV + + 74 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4461
SELECT + 74 / + + 74 AS col0
----
1

query I rowsort
SELECT ALL 13 * - - 32
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ALL + NULLIF ( COUNT( * ), 89 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL + NULLIF ( COUNT ( * ), 89 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4464
SELECT DISTINCT + 65 * + 85 + + + 78 DIV - 69 AS col2
----
5524

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT + 65 * + 85 + + + 78 / - 69 AS col2
----
5524

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT DISTINCT + - MIN( ALL + 4 ) - 11
----
-15

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT + - MIN ( ALL + 4 ) - 11
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4466
SELECT - COUNT( * ) DIV + ( + 80 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4466
SELECT - COUNT ( * ) / + ( + 80 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4467
SELECT - 10 DIV 22 + + + 62 + + MIN( 23 ) * + 66 - + 72 DIV + 64 AS col1
----
1579

skipif mysql # not compatible
query I rowsort label-4467
SELECT - 10 / 22 + + + 62 + + MIN ( 23 ) * + 66 - + 72 / + 64 AS col1
----
1579

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4468
SELECT + 76 / + + 11 + 1 + + + MAX( DISTINCT + CAST( NULL AS SIGNED ) ), 20 - - 28 AS col1
----
NULL
48

skipif mysql # not compatible
query II rowsort label-4468
SELECT + 76 / + + 11 + 1 + + + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ), 20 - - 28 AS col1
----
NULL
48

query I rowsort
SELECT CASE + - 0 WHEN 76 THEN NULL ELSE - 48 * - ( + NULLIF ( 25, 86 ) ) + + 94 END * 85
----
109990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4470
SELECT 60 - - 76 + - 7 * + + CAST( 22 AS SIGNED ) DIV + COUNT( * ) - - - 76 * + MAX( + CAST( CAST( + NULLIF ( + - 68, 42 ) AS SIGNED ) AS SIGNED ) )
----
5150

skipif mysql # not compatible
query I rowsort label-4470
SELECT 60 - - 76 + - 7 * + + CAST ( 22 AS INTEGER ) / + COUNT ( * ) - - - 76 * + MAX ( + CAST ( CAST ( + NULLIF ( + - 68, 42 ) AS INTEGER ) AS INTEGER ) )
----
5150

query II rowsort
SELECT - 29 AS col0, 23
----
-29
23

query II rowsort
SELECT 55 AS col0, 51
----
55
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4473
SELECT DISTINCT - 18, CAST( 32 AS SIGNED ) - - CASE - 75 WHEN 23 * + 53 + + 78 + - - 26 - 19 + + 36 + - - 85 + - + 13 * - 76 + - MIN( DISTINCT + + 77 ) + 82 * 56 * + NULLIF ( - 28 * - 54, - COUNT( * ) ) THEN 72 ELSE 6 * + 79 - - 77 * 54 END * 77 AS col0
----
-18
356696

skipif mysql # not compatible
query II rowsort label-4473
SELECT DISTINCT - 18, CAST ( 32 AS INTEGER ) - - CASE - 75 WHEN 23 * + 53 + + 78 + - - 26 - 19 + + 36 + - - 85 + - + 13 * - 76 + - MIN ( DISTINCT + + 77 ) + 82 * 56 * + NULLIF ( - 28 * - 54, - COUNT ( * ) ) THEN 72 ELSE 6 * + 79 - - 77 * 54 END * 77 AS col0
----
-18
356696

query II rowsort
SELECT + 40 AS col1, - 37
----
40
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT MAX( + 57 ) * - + ( 82 ) + - + 35
----
-4709

skipif mysql # not compatible
query I rowsort label-4475
SELECT MAX ( + 57 ) * - + ( 82 ) + - + 35
----
-4709

onlyif mysql # aggregate syntax: 
query II rowsort label-4476
SELECT 76 * + 21 * + COUNT( * ) * + + 51 AS col2, 14 + - 75
----
81396
-61

skipif mysql # not compatible
query II rowsort label-4476
SELECT 76 * + 21 * + COUNT ( * ) * + + 51 AS col2, 14 + - 75
----
81396
-61

query II rowsort
SELECT ALL - 21, 96 + + 23 - - 2 AS col1
----
-21
121

query II rowsort
SELECT + 6 AS col0, - 39 AS col0
----
6
-39

query I rowsort
SELECT DISTINCT 82 + 17
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4480
SELECT DISTINCT + COALESCE ( 82, + ( - + 71 ) + + 12 ) + 50, - SUM( ALL + + 90 ) * - ( + + 66 ) AS col1
----
132
5940

skipif mysql # not compatible
query II rowsort label-4480
SELECT DISTINCT + COALESCE ( 82, + ( - + 71 ) + + 12 ) + 50, - SUM ( ALL + + 90 ) * - ( + + 66 ) AS col1
----
132
5940

query I rowsort
SELECT ALL - 82 + 13 * + 99 col0
----
1205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4482
SELECT + 70, + COUNT( * ) + + + 39 / - CASE - COUNT( 19 ) WHEN - - 41 * - + 5 THEN + + CAST( + 61 AS SIGNED ) END AS col2
----
70
NULL

skipif mysql # not compatible
query II rowsort label-4482
SELECT + 70, + COUNT ( * ) + + + 39 / - CASE - COUNT ( 19 ) WHEN - - 41 * - + 5 THEN + + CAST ( + 61 AS INTEGER ) END AS col2
----
70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT + + COUNT( * ) * - COUNT( * ) * + COUNT( * ) + - 89
----
-90

skipif mysql # not compatible
query I rowsort label-4483
SELECT + + COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) + - 89
----
-90

query I rowsort
SELECT ALL - - COALESCE ( ( - - 97 ), 74 * - 23 * - + 81, - - 12 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT MIN( - 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-4485
SELECT MIN ( - 75 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT ALL + COUNT( DISTINCT 86 ) + + - 79 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL + COUNT ( DISTINCT 86 ) + + - 79 AS col0
----
-78

query II rowsort
SELECT - ( 22 ) - - 12 * 8 AS col0, + 71 * - + 47 * + + 91
----
74
-303667

query I rowsort
SELECT ALL - + NULLIF ( 19, - 21 * 85 ) AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4489
SELECT DISTINCT - 85 * + COALESCE ( + - SUM( + - 37 ), COUNT( * ) * 96 + + + 69 + - 45 - - - 86 * 84 * + 30 * + 20 + - CAST( COUNT( * ) AS SIGNED ) * 49 DIV + CAST( - MAX( + 65 ) AS SIGNED ) + AVG ( + 45 + - 99 ) DIV 31 )
----
-3145

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT - 85 * + COALESCE ( + - SUM ( + - 37 ), COUNT ( * ) * 96 + + + 69 + - 45 - - - 86 * 84 * + 30 * + 20 + - CAST ( COUNT ( * ) AS INTEGER ) * 49 / + CAST ( - MAX ( + 65 ) AS INTEGER ) + AVG ( + 45 + - 99 ) / 31 )
----
-3145

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4490
SELECT DISTINCT + COUNT( * ), COUNT( * ) - + - 77 + + + 55 DIV + + COUNT( * ) - - 96 AS col0
----
1
229

skipif mysql # not compatible
query II rowsort label-4490
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) - + - 77 + + + 55 / + + COUNT ( * ) - - 96 AS col0
----
1
229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT ALL 27 - CAST( + + CAST( + + 79 AS SIGNED ) AS SIGNED ) + 24 + - 72 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL 27 - CAST ( + + CAST ( + + 79 AS INTEGER ) AS INTEGER ) + 24 + - 72 AS col1
----
-100

query II rowsort
SELECT DISTINCT + 1, 6 + - ( 30 ) AS col1
----
1
-24

query I rowsort
SELECT ALL - 35 - 69 + - 96 AS col0
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT + 24 * + - COUNT( * ) col0
----
-24

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT + 24 * + - COUNT ( * ) col0
----
-24

query I rowsort
SELECT 6 - - 18 * + 60 AS col0
----
1086

query I rowsort
SELECT + 7 - - 98
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT + COUNT( * ) * - - COUNT( * ) * - - 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4497
SELECT + COUNT ( * ) * - - COUNT ( * ) * - - 12 AS col0
----
12

query II rowsort
SELECT 65 AS col0, 16 * 96 * + 10 + - 94
----
65
15266

query I rowsort
SELECT ALL NULLIF ( 88, + 17 - - 69 )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT 85 + 51 * 95 + - + 71 + 26 - + 90 DIV - ( + 45 ) + 66
----
4953

skipif mysql # not compatible
query I rowsort label-4500
SELECT 85 + 51 * 95 + - + 71 + 26 - + 90 / - ( + 45 ) + 66
----
4953

query I rowsort
SELECT - 74 + - 33 AS col1
----
-107

query I rowsort
SELECT ALL + 85 * ( 90 )
----
7650

query I rowsort
SELECT 70 + 89
----
159

query I rowsort
SELECT 79 + + 91
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL MIN( + - 78 ) * 12 + ( - COUNT( * ) )
----
-937

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL MIN ( + - 78 ) * 12 + ( - COUNT ( * ) )
----
-937

query I rowsort
SELECT ALL + 85 * - NULLIF ( - 41, + 52 ) AS col0
----
3485

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT 95 + + ( - COUNT( * ) ) * - - 37
----
58

skipif mysql # not compatible
query I rowsort label-4507
SELECT 95 + + ( - COUNT ( * ) ) * - - 37
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4508
SELECT DISTINCT + 68 * + 91 col1, COALESCE ( - COUNT( ALL 83 ), - + 77 * - 2, - 58 ) - - 30
----
6188
29

skipif mysql # not compatible
query II rowsort label-4508
SELECT DISTINCT + 68 * + 91 col1, COALESCE ( - COUNT ( ALL 83 ), - + 77 * - 2, - 58 ) - - 30
----
6188
29

query I rowsort
SELECT 69 * - 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4510
SELECT 31 DIV + + 4 + - 6 DIV + - 23 col1
----
7

skipif mysql # not compatible
query I rowsort label-4510
SELECT 31 / + + 4 + - 6 / + - 23 col1
----
7

query I rowsort
SELECT NULLIF ( + 18, - 38 * + - 0 ) col2
----
18

query I rowsort
SELECT ALL - 23 * 9
----
-207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4513
SELECT DISTINCT 82 * 70 * SUM( DISTINCT 45 ) * CAST( - 76 AS SIGNED ) + - COUNT( * ) AS col1, COUNT( * ) + CASE 85 WHEN - - 97 THEN + 43 WHEN - - 78 * 82 * + ( 21 ) + + - 8 THEN + 12 WHEN - 46 * + 77 + ( 58 ) THEN 48 ELSE - MAX( 34 ) END + - 74 DIV 38
----
-19630801
-34

skipif mysql # not compatible
query II rowsort label-4513
SELECT DISTINCT 82 * 70 * SUM ( DISTINCT 45 ) * CAST ( - 76 AS INTEGER ) + - COUNT ( * ) AS col1, COUNT ( * ) + CASE 85 WHEN - - 97 THEN + 43 WHEN - - 78 * 82 * + ( 21 ) + + - 8 THEN + 12 WHEN - 46 * + 77 + ( 58 ) THEN 48 ELSE - MAX ( 34 ) END + - 74 / 38
----
-19630801
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT - 18 * - + MIN( DISTINCT + - 1 )
----
-18

skipif mysql # not compatible
query I rowsort label-4514
SELECT - 18 * - + MIN ( DISTINCT + - 1 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT 86 * COUNT( * ) + - + 45 * + 5 - - 68 + 78 + - - 25 + + 96 + - - COUNT( * ) * ( - - 5 )
----
133

skipif mysql # not compatible
query I rowsort label-4515
SELECT 86 * COUNT ( * ) + - + 45 * + 5 - - 68 + 78 + - - 25 + + 96 + - - COUNT ( * ) * ( - - 5 )
----
133

query II rowsort
SELECT ALL 57 * - 60 + + 3, - 55 * 9 AS col0
----
-3417
-495

query I rowsort
SELECT ALL 25 * - - 98 * - + 46 + + 4 col1
----
-112696

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL - COUNT( * ) * + - 71 + 80 * - 53 * + - SUM( DISTINCT + + 10 )
----
42471

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL - COUNT ( * ) * + - 71 + 80 * - 53 * + - SUM ( DISTINCT + + 10 )
----
42471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4519
SELECT ALL + CASE + 97 WHEN - 0 THEN + 14 END * - 35 + - - CAST( - 82 AS SIGNED ) + 34 + - - 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL + CASE + 97 WHEN - 0 THEN + 14 END * - 35 + - - CAST ( - 82 AS INTEGER ) + 34 + - - 31 AS col1
----
NULL

query I rowsort
SELECT CASE - 82 WHEN 35 THEN - - 66 + + + ( - 81 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4521
SELECT - 99 + + COUNT( * ) DIV - 54 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-4521
SELECT - 99 + + COUNT ( * ) / - 54 AS col0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4522
SELECT 51 DIV - - 66 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4522
SELECT 51 / - - 66 + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT 0 * + 76 * + - 9 + + + 52 + 19 + - 75
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4524
SELECT + COUNT( * ) * - 1 col2, + 1 AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-4524
SELECT + COUNT ( * ) * - 1 col2, + 1 AS col1
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL + - SUM( - 53 ) * MAX( + - 87 ) col1
----
-4611

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL + - SUM ( - 53 ) * MAX ( + - 87 ) col1
----
-4611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4526
SELECT - 97 * + CAST( + 17 AS SIGNED ) * + 41 * + 55 - - + COALESCE ( + + 0, + ( - COUNT( * ) ) + - CAST( NULL AS SIGNED ) DIV + 76 ) AS col1
----
-3718495

skipif mysql # not compatible
query I rowsort label-4526
SELECT - 97 * + CAST ( + 17 AS INTEGER ) * + 41 * + 55 - - + COALESCE ( + + 0, + ( - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) / + 76 ) AS col1
----
-3718495

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT ALL - SUM( DISTINCT 78 ) * + - COUNT( * ) - COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL - SUM ( DISTINCT 78 ) * + - COUNT ( * ) - COUNT ( * ) AS col2
----
77

query I rowsort
SELECT + NULLIF ( 82, 70 * - 16 ) AS col2
----
82

query I rowsort
SELECT + ( + + 39 ) * 84 + + + 77 AS col0
----
3353

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4530
SELECT + + CAST( NULL AS SIGNED ) * - + ( - - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4530
SELECT + + CAST ( NULL AS INTEGER ) * - + ( - - 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT + + 15 * - 78 * - - COUNT( * ) + - + 82 AS col0
----
-1252

skipif mysql # not compatible
query I rowsort label-4531
SELECT + + 15 * - 78 * - - COUNT ( * ) + - + 82 AS col0
----
-1252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT + - 10 + - CASE + COUNT( * ) WHEN - + 63 + - CAST( NULL AS SIGNED ) + + 0 * + 24 * 1 THEN - 48 END * + + 54 + - + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT + - 10 + - CASE + COUNT ( * ) WHEN - + 63 + - CAST ( NULL AS INTEGER ) + + 0 * + 24 * 1 THEN - 48 END * + + 54 + - + 59 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4533
SELECT ALL 61 / - 18 - - + 31 - + CASE 34 WHEN 12 THEN - COALESCE ( - - COUNT( * ), 69 ) WHEN - 57 THEN + ( + + ( + 50 ) ) * CAST( NULL AS SIGNED ) / - NULLIF ( - 5, - + COUNT( * ) * 73 - - 0 ) + + 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL 61 / - 18 - - + 31 - + CASE 34 WHEN 12 THEN - COALESCE ( - - COUNT ( * ), 69 ) WHEN - 57 THEN + ( + + ( + 50 ) ) * CAST ( NULL AS INTEGER ) / - NULLIF ( - 5, - + COUNT ( * ) * 73 - - 0 ) + + 7 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4534
SELECT + 31 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-4534
SELECT + 31 / + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT - COUNT( * ) + COUNT( * ) + + 23 * 97 * + 68
----
151708

skipif mysql # not compatible
query I rowsort label-4535
SELECT - COUNT ( * ) + COUNT ( * ) + + 23 * 97 * + 68
----
151708

query I rowsort
SELECT DISTINCT + 71 * + 58 + + 17 AS col2
----
4135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4537
SELECT ALL 19 DIV - 5, - MAX( + + 35 ) AS col0
----
-3
-35

skipif mysql # not compatible
query II rowsort label-4537
SELECT ALL 19 / - 5, - MAX ( + + 35 ) AS col0
----
-3
-35

query I rowsort
SELECT ALL + - 13 * + 66
----
-858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4539
SELECT ALL COALESCE ( 75, - + 55 * - CAST( NULL AS SIGNED ) DIV COUNT( * ) DIV - 81 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL COALESCE ( 75, - + 55 * - CAST ( NULL AS INTEGER ) / COUNT ( * ) / - 81 ) AS col0
----
75

query I rowsort
SELECT ALL 66 + - - ( - 84 ) * 6 AS col1
----
-438

query I rowsort
SELECT DISTINCT + 81 + - 17 - 56 col1
----
8

query I rowsort
SELECT - 30 * - 85
----
2550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4543
SELECT DISTINCT CASE + 56 WHEN CAST( NULL AS SIGNED ) * - 96 + + ( 81 ) + 62 * - + 70 + + - 54 THEN 34 * - - 25 WHEN 37 THEN - 19 ELSE 53 END AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT CASE + 56 WHEN CAST ( NULL AS INTEGER ) * - 96 + + ( 81 ) + 62 * - + 70 + + - 54 THEN 34 * - - 25 WHEN 37 THEN - 19 ELSE 53 END AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4544
SELECT DISTINCT - 96 DIV + - 29 + - 26 col2
----
-23

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT - 96 / + - 29 + - 26 col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL + COUNT( DISTINCT + + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL + COUNT ( DISTINCT + + 50 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4546
SELECT DISTINCT + 52 / + 40 + - - 49 * - + 2 + + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT + 52 / + 40 + - - 49 * - + 2 + + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - 58 + - + 1 AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4548
SELECT CAST( NULL AS SIGNED ) AS col2, 62 + + - 90 + - 30
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-4548
SELECT CAST ( NULL AS INTEGER ) AS col2, 62 + + - 90 + - 30
----
NULL
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4549
SELECT DISTINCT + 19 DIV 22 + + 18 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT + 19 / 22 + + 18 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT ALL + CASE + 71 WHEN CAST( - 40 AS SIGNED ) * 3 THEN 12 + + 57 + + + 58 ELSE + + 31 * - 19 - - - 12 END AS col0
----
-601

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL + CASE + 71 WHEN CAST ( - 40 AS INTEGER ) * 3 THEN 12 + + 57 + + + 58 ELSE + + 31 * - 19 - - - 12 END AS col0
----
-601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4551
SELECT ( SUM( DISTINCT + 95 ) ), + 52 * - - CAST( 70 AS SIGNED ) + + 78 AS col1
----
95
3718

skipif mysql # not compatible
query II rowsort label-4551
SELECT ( SUM ( DISTINCT + 95 ) ), + 52 * - - CAST ( 70 AS INTEGER ) + + 78 AS col1
----
95
3718

query I rowsort
SELECT ( 44 ) AS col0
----
44

query II rowsort
SELECT DISTINCT + 94, - 31 AS col1
----
94
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT - + 66 * - 47 * - - COUNT( * ) + + 21 * 82 + 21
----
4845

skipif mysql # not compatible
query I rowsort label-4554
SELECT - + 66 * - 47 * - - COUNT ( * ) + + 21 * 82 + 21
----
4845

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT + - SUM( DISTINCT 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-4555
SELECT + - SUM ( DISTINCT 45 ) AS col1
----
-45

query II rowsort
SELECT - 20 * + - 43 + 17 * - 11 AS col1, ( + 92 ) AS col2
----
673
92

query I rowsort
SELECT - - 53 - - - 7 AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4558
SELECT DISTINCT + 42 * 91 * CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col2, 69 + + 92
----
NULL
1
161

skipif mysql # not compatible
query III rowsort label-4558
SELECT DISTINCT + 42 * 91 * CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col2, 69 + + 92
----
NULL
1
161

onlyif mysql # aggregate syntax: 
query II rowsort label-4559
SELECT ALL + COUNT( * ) col0, - 88 * + 65 AS col1
----
1
-5720

skipif mysql # not compatible
query II rowsort label-4559
SELECT ALL + COUNT ( * ) col0, - 88 * + 65 AS col1
----
1
-5720

query I rowsort
SELECT ALL NULLIF ( - ( + COALESCE ( - 29, - 39 ) ), + ( + 35 ) ) AS col2
----
29

query I rowsort
SELECT ALL CASE 97 WHEN + + 3 / - 83 - 97 THEN - + 4 + 84 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4562
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 26 AS col0
----
NULL

query I rowsort
SELECT - 72 + + 5
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT - COALESCE ( - 25, + COALESCE ( 89, SUM( ALL + + 23 ) ) * COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-4564
SELECT - COALESCE ( - 25, + COALESCE ( 89, SUM ( ALL + + 23 ) ) * COUNT ( * ) )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4565
SELECT + COALESCE ( - - COUNT( * ), - - COUNT( * ) * 96 - + + 4 * COUNT( - 27 ), + CAST( NULL AS SIGNED ) DIV ( - 11 ) - + - 88 ) + COALESCE ( + 92, - 79 ) * - + 88
----
-8095

skipif mysql # not compatible
query I rowsort label-4565
SELECT + COALESCE ( - - COUNT ( * ), - - COUNT ( * ) * 96 - + + 4 * COUNT ( - 27 ), + CAST ( NULL AS INTEGER ) / ( - 11 ) - + - 88 ) + COALESCE ( + 92, - 79 ) * - + 88
----
-8095

query I rowsort
SELECT + 54 - - 58
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4567
SELECT COUNT( DISTINCT + + CAST( 11 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4567
SELECT COUNT ( DISTINCT + + CAST ( 11 AS INTEGER ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4568
SELECT - 30 DIV - + 17
----
1

skipif mysql # not compatible
query I rowsort label-4568
SELECT - 30 / - + 17
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ( + COUNT( * ) ) + 96
----
97

skipif mysql # not compatible
query I rowsort label-4569
SELECT ( + COUNT ( * ) ) + 96
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT COUNT( * ) + 16 * + 72
----
1153

skipif mysql # not compatible
query I rowsort label-4570
SELECT COUNT ( * ) + 16 * + 72
----
1153

query II rowsort
SELECT 85 * - 96, - 48 * 60 AS col1
----
-8160
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT 91 + - SUM( ALL 90 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4572
SELECT 91 + - SUM ( ALL 90 ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4573
SELECT DISTINCT 11 - - ( - NULLIF ( COALESCE ( - + 83, - ( 87 ) ), - SUM( + 94 ) + + 43 * - 93 ) ) + CAST( - + 98 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT 11 - - ( - NULLIF ( COALESCE ( - + 83, - ( 87 ) ), - SUM ( + 94 ) + + 43 * - 93 ) ) + CAST ( - + 98 AS INTEGER )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT 39 + - CAST( NULL AS SIGNED ) + + CAST( - ( 22 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4574
SELECT 39 + - CAST ( NULL AS INTEGER ) + + CAST ( - ( 22 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL - COUNT( * ) - - COUNT( + 75 ) + COUNT( * ) + + CASE + 21 WHEN + 91 THEN - 73 WHEN + 44 * - 76 THEN + 37 + + 72 + - + 26 WHEN + 48 - - 89 * 22 THEN AVG ( ALL + 15 ) ELSE NULL END * + 78 / + COUNT( * ) * 17 * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL - COUNT ( * ) - - COUNT ( + 75 ) + COUNT ( * ) + + CASE + 21 WHEN + 91 THEN - 73 WHEN + 44 * - 76 THEN + 37 + + 72 + - + 26 WHEN + 48 - - 89 * 22 THEN AVG ( ALL + 15 ) ELSE NULL END * + 78 / + COUNT ( * ) * 17 * 40
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4576
SELECT 10 * + SUM( + 74 ) * 6 col1, + 5 * 37 col2
----
4440
185

skipif mysql # not compatible
query II rowsort label-4576
SELECT 10 * + SUM ( + 74 ) * 6 col1, + 5 * 37 col2
----
4440
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4577
SELECT ALL - CASE - CAST( NULL AS SIGNED ) WHEN - 14 THEN COUNT( * ) * COUNT( * ) WHEN 70 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - CASE - CAST ( NULL AS INTEGER ) WHEN - 14 THEN COUNT ( * ) * COUNT ( * ) WHEN 70 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT DISTINCT - - CAST( - ( + 84 ) AS SIGNED ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT - - CAST ( - ( + 84 ) AS INTEGER ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT 9 * - + 0 + + MAX( + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-4579
SELECT 9 * - + 0 + + MAX ( + 36 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4580
SELECT ALL - - CAST( 40 AS SIGNED ) AS col2, 84
----
40
84

skipif mysql # not compatible
query II rowsort label-4580
SELECT ALL - - CAST ( 40 AS INTEGER ) AS col2, 84
----
40
84

query I rowsort
SELECT 81 * + 79 AS col1
----
6399

query I rowsort
SELECT DISTINCT - + 84 * + 51 * - + ( + 39 )
----
167076

query I rowsort
SELECT + 60 + - 3
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4584
SELECT AVG ( ALL - 89 ) / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4584
SELECT AVG ( ALL - 89 ) / CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 1 * - 56 + + 37
----
-19

query I rowsort
SELECT + 27 + 87
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL - + 5 * + 29 * + CASE - 37 WHEN NULLIF ( + 2, 71 ) / MIN( DISTINCT 15 ) * + 54 * 29 - 39 + + 69 THEN NULL WHEN 39 THEN - NULLIF ( 30, - + 65 ) + ( - 41 ) END / - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL - + 5 * + 29 * + CASE - 37 WHEN NULLIF ( + 2, 71 ) / MIN ( DISTINCT 15 ) * + 54 * 29 - 39 + + 69 THEN NULL WHEN 39 THEN - NULLIF ( 30, - + 65 ) + ( - 41 ) END / - 59
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4588
SELECT + CAST( NULL AS SIGNED ) + + 7, - 84 AS col2
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-4588
SELECT + CAST ( NULL AS INTEGER ) + + 7, - 84 AS col2
----
NULL
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4589
SELECT ALL 80 / 25 * + - NULLIF ( - + NULLIF ( + CAST( NULL AS DECIMAL ), MIN( - 92 ) / + CAST( + - 89 AS SIGNED ) ), - COUNT( * ) + + CAST( NULL AS DECIMAL ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL 80 / 25 * + - NULLIF ( - + NULLIF ( + CAST ( NULL AS REAL ), MIN ( - 92 ) / + CAST ( + - 89 AS INTEGER ) ), - COUNT ( * ) + + CAST ( NULL AS REAL ) ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 29 * + + 69
----
2001

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT ALL - + 29 + - 32 * - - ( + + 33 ) + - + COUNT( * ) AS col0
----
-1086

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL - + 29 + - 32 * - - ( + + 33 ) + - + COUNT ( * ) AS col0
----
-1086

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4592
SELECT + 13 * + 59 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT + 13 * + 59 + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT DISTINCT - 19 + + CASE 59 WHEN 61 THEN - 69 WHEN 2 + - CASE 58 WHEN 43 + 82 THEN + ( + COALESCE ( + 98, - MIN( + CASE + + ( - + ( + + CASE - + 98 WHEN - 58 THEN 51 + - 36 END ) ) WHEN - 7 THEN NULL ELSE 16 * 95 END ) ) ) + 67 END * 86 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT - 19 + + CASE 59 WHEN 61 THEN - 69 WHEN 2 + - CASE 58 WHEN 43 + 82 THEN + ( + COALESCE ( + 98, - MIN ( + CASE + + ( - + ( + + CASE - + 98 WHEN - 58 THEN 51 + - 36 END ) ) WHEN - 7 THEN NULL ELSE 16 * 95 END ) ) ) + 67 END * 86 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4594
SELECT 5 + + - CAST( - + 10 AS SIGNED ) + 4 + 14 * - 26 + COALESCE ( + 60, + - 88 - + 70 )
----
-285

skipif mysql # not compatible
query I rowsort label-4594
SELECT 5 + + - CAST ( - + 10 AS INTEGER ) + 4 + 14 * - 26 + COALESCE ( + 60, + - 88 - + 70 )
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT DISTINCT 78 * - 63 * + 16 * + - ( - + MAX( - 2 ) ) AS col2
----
157248

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT 78 * - 63 * + 16 * + - ( - + MAX ( - 2 ) ) AS col2
----
157248

query I rowsort
SELECT DISTINCT - 81 + - 78
----
-159

query I rowsort
SELECT ALL 13 + + 66
----
79

query I rowsort
SELECT DISTINCT CASE 80 WHEN - 17 THEN NULL WHEN + + 80 THEN - 19 ELSE + 83 END + - + 2 * - - 53
----
-125

query II rowsort
SELECT 56 AS col1, - 22 AS col2
----
56
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-4600
SELECT DISTINCT 40 AS col2, + COUNT( * )
----
40
1

skipif mysql # not compatible
query II rowsort label-4600
SELECT DISTINCT 40 AS col2, + COUNT ( * )
----
40
1

query I rowsort
SELECT 85 - + 84 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT MIN( + ( + 47 ) ) + + 31 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4602
SELECT MIN ( + ( + 47 ) ) + + 31 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT COUNT( * ) * + MAX( ( 73 ) ) col1
----
73

skipif mysql # not compatible
query I rowsort label-4603
SELECT COUNT ( * ) * + MAX ( ( 73 ) ) col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT COALESCE ( - - 11, - 82, + 67 - + 82 * 45 * + MAX( ALL + 42 ) ) * + 79
----
869

skipif mysql # not compatible
query I rowsort label-4604
SELECT COALESCE ( - - 11, - 82, + 67 - + 82 * 45 * + MAX ( ALL + 42 ) ) * + 79
----
869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4605
SELECT 20 - - 61 + + CAST( 15 AS SIGNED ) + - 26 * CAST( NULL AS SIGNED ) / 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT 20 - - 61 + + CAST ( 15 AS INTEGER ) + - 26 * CAST ( NULL AS INTEGER ) / 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT ALL ( + ( CASE ( COUNT( * ) ) WHEN + + COUNT( * ) THEN - ( + - 18 ) END ) ) * + 59 AS col2
----
1062

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL ( + ( CASE ( COUNT ( * ) ) WHEN + + COUNT ( * ) THEN - ( + - 18 ) END ) ) * + 59 AS col2
----
1062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4607
SELECT NULLIF ( + - COUNT( * ), - 85 ) - + 33 * - 18 AS col2, MIN( - NULLIF ( + - 57, + + 88 * - CAST( NULL AS SIGNED ) ) ) AS col2
----
593
57

skipif mysql # not compatible
query II rowsort label-4607
SELECT NULLIF ( + - COUNT ( * ), - 85 ) - + 33 * - 18 AS col2, MIN ( - NULLIF ( + - 57, + + 88 * - CAST ( NULL AS INTEGER ) ) ) AS col2
----
593
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4608
SELECT ALL COUNT( * ) DIV 45 * + 74 * 26
----
0

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL COUNT ( * ) / 45 * + 74 * 26
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4609
SELECT DISTINCT 16 AS col2, MAX( DISTINCT 30 )
----
16
30

skipif mysql # not compatible
query II rowsort label-4609
SELECT DISTINCT 16 AS col2, MAX ( DISTINCT 30 )
----
16
30

query I rowsort
SELECT - 8 * + 58 * - - 15 + 93
----
-6867

query I rowsort
SELECT ALL 78 * + 32
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT + - COUNT( * ) * + COUNT( * ) + + COALESCE ( - 89, - - ( + - 97 ) ) + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-4612
SELECT + - COUNT ( * ) * + COUNT ( * ) + + COALESCE ( - 89, - - ( + - 97 ) ) + COUNT ( * )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL + 8 * - - COUNT( * ) * - - 44 AS col2
----
352

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL + 8 * - - COUNT ( * ) * - - 44 AS col2
----
352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4614
SELECT + CASE - COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN + CAST( - - 7 AS SIGNED ) + - 1 THEN NULL ELSE + - 67 + + - COUNT( * ) - + - COUNT( * ) * 22 END * + 31 AS col0
----
-1426

skipif mysql # not compatible
query I rowsort label-4614
SELECT + CASE - COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN + CAST ( - - 7 AS INTEGER ) + - 1 THEN NULL ELSE + - 67 + + - COUNT ( * ) - + - COUNT ( * ) * 22 END * + 31 AS col0
----
-1426

query I rowsort
SELECT ( - 62 ) * + 49 + + 95
----
-2943

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL 69 * 25 * - COUNT( * ) + + 81 + MIN( ALL + 13 ) AS col2
----
-1631

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL 69 * 25 * - COUNT ( * ) + + 81 + MIN ( ALL + 13 ) AS col2
----
-1631

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT + SUM( + 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4617
SELECT + SUM ( + 13 ) AS col2
----
13

query I rowsort
SELECT 6 * + NULLIF ( - 80, - 79 * - - 40 ) col1
----
-480

query I rowsort
SELECT + 15 + - NULLIF ( - COALESCE ( + - 58, ( 7 ) ), + 45 ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL - COUNT( ALL - 15 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL - COUNT ( ALL - 15 ) col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4621
SELECT 98 DIV - 39 - NULLIF ( - 82, 73 + - + 46 )
----
80

skipif mysql # not compatible
query I rowsort label-4621
SELECT 98 / - 39 - NULLIF ( - 82, 73 + - + 46 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4622
SELECT ALL 8 + + - 8 DIV 9 * - + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL 8 + + - 8 / 9 * - + COUNT ( * )
----
8

query I rowsort
SELECT + 47 * + 94 + + 45 * + - 86 * + 21 AS col0
----
-76852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4624
SELECT - 94 * CAST( NULL AS SIGNED ) + 8 + 92 / - - SUM( DISTINCT + CAST( + + 5 AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT - 94 * CAST ( NULL AS INTEGER ) + 8 + 92 / - - SUM ( DISTINCT + CAST ( + + 5 AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - - 77 + + 40
----
117

query I rowsort
SELECT ALL + 32 * 89 * - - 97
----
276256

query I rowsort
SELECT 77 + - 58 AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4628
SELECT + 74 DIV + 59 + 40 + + 71 + + 25
----
137

skipif mysql # not compatible
query I rowsort label-4628
SELECT + 74 / + 59 + 40 + + 71 + + 25
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT - 13 * - COUNT( * ) * - 69 + 51 AS col1
----
-846

skipif mysql # not compatible
query I rowsort label-4629
SELECT - 13 * - COUNT ( * ) * - 69 + 51 AS col1
----
-846

onlyif mysql # DIV for integer division: 
query I rowsort label-4630
SELECT ALL - 68 + 35 DIV - 6 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL - 68 + 35 / - 6 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT + 16 * - + COUNT( * ) + + 47
----
31

skipif mysql # not compatible
query I rowsort label-4631
SELECT + 16 * - + COUNT ( * ) + + 47
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4632
SELECT ALL + 95 DIV 71 * + 46
----
46

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL + 95 / 71 * + 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT DISTINCT MAX( + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT MAX ( + 94 )
----
94

query II rowsort
SELECT DISTINCT 35 AS col2, - 95
----
35
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT - CAST( - - 25 AS SIGNED ) + + 2 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4635
SELECT - CAST ( - - 25 AS INTEGER ) + + 2 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT - 89 - - ( + ( - 56 ) ) - 17 + NULLIF ( - 76, 84 * + + MIN( 21 ) + 89 ) * - COUNT( * ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-4636
SELECT - 89 - - ( + ( - 56 ) ) - 17 + NULLIF ( - 76, 84 * + + MIN ( 21 ) + 89 ) * - COUNT ( * ) AS col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4637
SELECT - 65 - - - COUNT( * ) * - MAX( + 68 ) DIV 54 + + 21 - 7
----
-50

skipif mysql # not compatible
query I rowsort label-4637
SELECT - 65 - - - COUNT ( * ) * - MAX ( + 68 ) / 54 + + 21 - 7
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT ALL COALESCE ( - 97, - 16, - NULLIF ( - 69, - 44 ) + + - COUNT( * ) + 88 * - - 42 * + - COUNT( * ) * - COUNT( * ), - 20 + + 49 ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL COALESCE ( - 97, - 16, - NULLIF ( - 69, - 44 ) + + - COUNT ( * ) + 88 * - - 42 * + - COUNT ( * ) * - COUNT ( * ), - 20 + + 49 ) col2
----
-97

query I rowsort
SELECT - 35 + + 81 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT + COUNT( * ) + - ( - + 49 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4640
SELECT + COUNT ( * ) + - ( - + 49 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT DISTINCT COALESCE ( - + 79, + - COUNT( * ) )
----
-79

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT COALESCE ( - + 79, + - COUNT ( * ) )
----
-79

query I rowsort
SELECT - 29 + - 41 + + 86 col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT ALL MIN( - COALESCE ( + + 72, + 25, 47 ) ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL MIN ( - COALESCE ( + + 72, + 25, 47 ) ) col2
----
-72

query I rowsort
SELECT DISTINCT COALESCE ( - ( + - 55 ), + 69, - ( + 26 ) * - 21 - - 98 * + 84 + + 21 + + 59 ) AS col2
----
55

query I rowsort
SELECT - 5 + 99 - + ( + 17 ) col1
----
77

query I rowsort
SELECT - + 6 + + - 88 AS col2
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4647
SELECT - - COUNT( * ) DIV 89 + + 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4647
SELECT - - COUNT ( * ) / 89 + + 13 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT + COUNT( * ) * COALESCE ( - 67, + 26 - - - 45 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4648
SELECT + COUNT ( * ) * COALESCE ( - 67, + 26 - - - 45 ) AS col2
----
-67

query I rowsort
SELECT + + 68 + - 2 + - 73 AS col0
----
-7

query II rowsort
SELECT 2 col1, 46 col2
----
2
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL + - SUM( ALL - 83 )
----
83

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL + - SUM ( ALL - 83 )
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4652
SELECT ALL CAST( NULL AS DECIMAL ) * - 7 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL CAST ( NULL AS REAL ) * - 7 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4653
SELECT ALL + COUNT( * ) * + COUNT( ALL 61 ) * - 8 * + - 21 + - 41 * 13 + COUNT( - 23 ), CAST( NULL AS SIGNED ) AS col0
----
-364
NULL

skipif mysql # not compatible
query II rowsort label-4653
SELECT ALL + COUNT ( * ) * + COUNT ( ALL 61 ) * - 8 * + - 21 + - 41 * 13 + COUNT ( - 23 ), CAST ( NULL AS INTEGER ) AS col0
----
-364
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT + + MAX( - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-4654
SELECT + + MAX ( - 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT + + COUNT( * ) * + ( - COUNT( * ) ) - + + 84 - 87 + + + 30 * - 35 + - + 13 + - 42 * + COUNT( * ) + + - 90 * - 4 AS col0
----
-917

skipif mysql # not compatible
query I rowsort label-4655
SELECT + + COUNT ( * ) * + ( - COUNT ( * ) ) - + + 84 - 87 + + + 30 * - 35 + - + 13 + - 42 * + COUNT ( * ) + + - 90 * - 4 AS col0
----
-917

query I rowsort
SELECT + - 30 * + 69
----
-2070

query I rowsort
SELECT + 45 + - ( - + 59 )
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT - MIN( - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-4658
SELECT - MIN ( - 79 )
----
79

query I rowsort
SELECT ALL + NULLIF ( 29, + - ( + 47 ) / - CASE + + 30 WHEN 21 + 29 THEN NULL WHEN - 86 + 81 THEN - 12 * + 10 * + 81 ELSE NULL END ) AS col1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT - CAST( + 55 AS SIGNED ) + + 84 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4660
SELECT - CAST ( + 55 AS INTEGER ) + + 84 AS col2
----
29

query I rowsort
SELECT ALL - COALESCE ( + 12, 75 ) * - 8 + 63 * - - 21 + - - 53 * 82
----
5765

query I rowsort
SELECT + 54 * + 47 + - 56
----
2482

query II rowsort
SELECT + 19 + + 72, 40 * + + 78 AS col1
----
91
3120

query I rowsort
SELECT ALL + ( - 16 ) * 8 AS col0
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4665
SELECT + CAST( - 85 AS SIGNED ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4665
SELECT + CAST ( - 85 AS INTEGER ) AS col0
----
-85

query I rowsort
SELECT - 13 * + - 68 * 96
----
84864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4667
SELECT 0 * - + CASE - + COUNT( * ) WHEN - 73 THEN + - 94 ELSE - + COUNT( * ) END + - CAST( 95 AS SIGNED ) * + ( 28 ) * - - CASE 44 WHEN 34 THEN + 65 END - - - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT 0 * - + CASE - + COUNT ( * ) WHEN - 73 THEN + - 94 ELSE - + COUNT ( * ) END + - CAST ( 95 AS INTEGER ) * + ( 28 ) * - - CASE 44 WHEN 34 THEN + 65 END - - - 39 AS col1
----
NULL

query I rowsort
SELECT - 48 * - COALESCE ( + 5, + 30 ) AS col1
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4669
SELECT COUNT( DISTINCT + 36 ) AS col0, + 34 + 72 DIV - 68 - - + COALESCE ( - + 53, 6 + - - 24 * 1 DIV 19, 34 DIV CASE - AVG ( 24 ) WHEN 27 * 38 + + ( + 69 ) - - 3 DIV 10 * - COUNT( * ) - + 91 THEN 18 * - 56 WHEN - 0 * CASE 5 WHEN COUNT( * ) THEN NULL WHEN 79 - + 25 THEN 1 END THEN + 78 + 11 WHEN 82 THEN + NULLIF ( + COUNT( * ), + CAST( - COALESCE ( - 7, + COUNT( * ), - NULLIF ( + 64, + 68 * 39 ) * + COALESCE ( 1, 76, - 55 DIV + 32 ) ) AS SIGNED ) * - CAST( NULL AS SIGNED ) ) ELSE 72 + + 57 END ) * + 71 AS col1
----
1
-3730

skipif mysql # not compatible
query II rowsort label-4669
SELECT COUNT ( DISTINCT + 36 ) AS col0, + 34 + 72 / - 68 - - + COALESCE ( - + 53, 6 + - - 24 * 1 / 19, 34 / CASE - AVG ( 24 ) WHEN 27 * 38 + + ( + 69 ) - - 3 / 10 * - COUNT ( * ) - + 91 THEN 18 * - 56 WHEN - 0 * CASE 5 WHEN COUNT ( * ) THEN NULL WHEN 79 - + 25 THEN 1 END THEN + 78 + 11 WHEN 82 THEN + NULLIF ( + COUNT ( * ), + CAST ( - COALESCE ( - 7, + COUNT ( * ), - NULLIF ( + 64, + 68 * 39 ) * + COALESCE ( 1, 76, - 55 / + 32 ) ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) ) ELSE 72 + + 57 END ) * + 71 AS col1
----
1
-3730

query II rowsort
SELECT + 77 * - + 40, 35 AS col2
----
-3080
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT DISTINCT + ( 28 ) * - COUNT( * ) * 66 * - - 23
----
-42504

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT + ( 28 ) * - COUNT ( * ) * 66 * - - 23
----
-42504

query I rowsort
SELECT + 12 * 67 AS col0
----
804

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4673
SELECT DISTINCT + 27 * + - COUNT( * ) * 27 - + + 22 + - COUNT( DISTINCT + 0 ) DIV COALESCE ( + CASE - 22 WHEN - + 16 THEN + NULLIF ( + + AVG ( ( - 54 ) ), + - ( + 8 ) ) * - + 76 + - 12 ELSE NULL END, + 34 * + 89 * + - 51 * + - 86 * ( + 67 ) ) + - 41
----
-792

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT + 27 * + - COUNT ( * ) * 27 - + + 22 + - COUNT ( DISTINCT + 0 ) / COALESCE ( + CASE - 22 WHEN - + 16 THEN + NULLIF ( + + AVG ( ( - 54 ) ), + - ( + 8 ) ) * - + 76 + - 12 ELSE NULL END, + 34 * + 89 * + - 51 * + - 86 * ( + 67 ) ) + - 41
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ALL MIN( + 81 ) * + 24 * - 61
----
-118584

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL MIN ( + 81 ) * + 24 * - 61
----
-118584

query I rowsort
SELECT DISTINCT 53 * + - ( - 9 ) AS col2
----
477

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT ALL - 47 DIV 42 * + + 26 col0
----
-26

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL - 47 / 42 * + + 26 col0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-4677
SELECT + 69 - 33 * 85 DIV + - 95 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4677
SELECT + 69 - 33 * 85 / + - 95 AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4678
SELECT ALL ( CAST( - + 91 AS SIGNED ) )
----
-91

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL ( CAST ( - + 91 AS INTEGER ) )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT - 87 * - + COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-4679
SELECT - 87 * - + COUNT ( * ) AS col2
----
87

query I rowsort
SELECT - 46 + 12
----
-34

query I rowsort
SELECT DISTINCT ( - ( 33 ) )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4682
SELECT - + 2 + 63 + - 65 - + - 3 + + 6 * - 79 + 49 AS col1, + 79 / - CAST( NULL AS SIGNED ) - 50
----
-426
NULL

skipif mysql # not compatible
query II rowsort label-4682
SELECT - + 2 + 63 + - 65 - + - 3 + + 6 * - 79 + 49 AS col1, + 79 / - CAST ( NULL AS INTEGER ) - 50
----
-426
NULL

query I rowsort
SELECT + 27 * + 92 + - 94 * + 71
----
-4190

query I rowsort
SELECT - 70 - ( + 48 ) + + 54 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * 92
----
-91

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * 92
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT - 97 + 99 + + 62 + - - COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4686
SELECT - 97 + 99 + + 62 + - - COUNT ( * ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT ALL - - COUNT( * ) + + + 73 * - - 73 AS col1
----
5330

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL - - COUNT ( * ) + + + 73 * - - 73 AS col1
----
5330

onlyif mysql # DIV for integer division: 
query I rowsort label-4688
SELECT + 29 DIV - 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4688
SELECT + 29 / - 99 AS col2
----
0

query I rowsort
SELECT + - 95 - + ( + 48 ) col2
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT DISTINCT - 82 * - COUNT( 72 ) + + 1 - 97 + + 45 * - 26 * + + COUNT( DISTINCT - - 92 ) col2
----
-1184

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT - 82 * - COUNT ( 72 ) + + 1 - 97 + + 45 * - 26 * + + COUNT ( DISTINCT - - 92 ) col2
----
-1184

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT DISTINCT - + CASE - - ( + 61 ) WHEN + 22 THEN + 74 * - ( - - 86 ) * - 25 * - 65 WHEN COUNT( + 88 ) THEN NULL ELSE NULL END / + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT - + CASE - - ( + 61 ) WHEN + 22 THEN + 74 * - ( - - 86 ) * - 25 * - 65 WHEN COUNT ( + 88 ) THEN NULL ELSE NULL END / + 71
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4692
SELECT ALL + + 18 - - ( - COUNT( * ) ) DIV COUNT( * ) - 80 - 17 * + 7
----
-182

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL + + 18 - - ( - COUNT ( * ) ) / COUNT ( * ) - 80 - 17 * + 7
----
-182

query I rowsort
SELECT ALL - 49 * - 30 * 45 * - 55
----
-3638250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4694
SELECT ALL - 5 DIV - + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL - 5 / - + COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT DISTINCT MIN( ALL 60 ) - - NULLIF ( - 73, - + 54 - 71 / 8 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT MIN ( ALL 60 ) - - NULLIF ( - 73, - + 54 - 71 / 8 ) AS col2
----
-13

query II rowsort
SELECT 72 AS col2, - 50 + 98
----
72
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4697
SELECT ( - ( + - 55 ) ) * ( + 92 ) + - + COUNT( * ) * - 40 + COUNT( * ) DIV - 36
----
5100

skipif mysql # not compatible
query I rowsort label-4697
SELECT ( - ( + - 55 ) ) * ( + 92 ) + - + COUNT ( * ) * - 40 + COUNT ( * ) / - 36
----
5100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4698
SELECT DISTINCT CASE + - COALESCE ( 68, 2, - - 85 * + CAST( 93 AS SIGNED ) * + 40 * + 21 ) WHEN COUNT( * ) * + COALESCE ( + 72, 82 * + CAST( + 53 AS SIGNED ) * - 49 * 40 - + + 5 ) THEN - - 88 WHEN - + MAX( 17 ) THEN COUNT( * ) ELSE - + 29 + + 95 * 55 END * - 11 col2
----
-57156

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT CASE + - COALESCE ( 68, 2, - - 85 * + CAST ( 93 AS INTEGER ) * + 40 * + 21 ) WHEN COUNT ( * ) * + COALESCE ( + 72, 82 * + CAST ( + 53 AS INTEGER ) * - 49 * 40 - + + 5 ) THEN - - 88 WHEN - + MAX ( 17 ) THEN COUNT ( * ) ELSE - + 29 + + 95 * 55 END * - 11 col2
----
-57156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4699
SELECT NULLIF ( + + CAST( NULL AS SIGNED ), - COALESCE ( + ( + 22 ), - - 96 ) ) * - CASE - MIN( + + 62 ) WHEN + - 89 / + + 7 * + - 67 + 2 * 73 THEN ( - 55 ) WHEN + - ( - MIN( + 68 ) ) THEN NULL ELSE + 88 * COUNT( * ) + + + 47 + - COUNT( * ) END * 9 + - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT NULLIF ( + + CAST ( NULL AS INTEGER ), - COALESCE ( + ( + 22 ), - - 96 ) ) * - CASE - MIN ( + + 62 ) WHEN + - 89 / + + 7 * + - 67 + 2 * 73 THEN ( - 55 ) WHEN + - ( - MIN ( + 68 ) ) THEN NULL ELSE + 88 * COUNT ( * ) + + + 47 + - COUNT ( * ) END * 9 + - 29 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4700
SELECT NULLIF ( CAST( NULL AS SIGNED ), 63 ) + + 48 * - + 92 / + - 53 AS col0, - 74 AS col1
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-4700
SELECT NULLIF ( CAST ( NULL AS INTEGER ), 63 ) + + 48 * - + 92 / + - 53 AS col0, - 74 AS col1
----
NULL
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT COALESCE ( - + 56, + + 85, - + CASE - ( - 83 ) WHEN 90 * ( + - 99 ) * - 56 THEN + ( + COUNT( * ) ) ELSE NULL END ) - - 99 + + 62 * - 97 AS col1
----
-5971

skipif mysql # not compatible
query I rowsort label-4701
SELECT COALESCE ( - + 56, + + 85, - + CASE - ( - 83 ) WHEN 90 * ( + - 99 ) * - 56 THEN + ( + COUNT ( * ) ) ELSE NULL END ) - - 99 + + 62 * - 97 AS col1
----
-5971

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT DISTINCT - COUNT( ALL - 46 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT - COUNT ( ALL - 46 ) col0
----
-1

query I rowsort
SELECT - 70 * + ( - + 33 ) + + NULLIF ( + 13, + 38 ) + - 44 * - 53
----
4655

onlyif mysql # aggregate syntax: 
query II rowsort label-4704
SELECT 48 + - + CASE + 58 WHEN + + 2 THEN NULL WHEN - + 98 * - 4 THEN - + ( + + 0 ) / - CASE + COUNT( DISTINCT - + ( + 41 ) ) WHEN - + 7 / + 71 + + - COUNT( * ) * - 56 + + + 82 THEN 34 * + 4 END + + 28 + - COUNT( * ) ELSE NULL END, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4704
SELECT 48 + - + CASE + 58 WHEN + + 2 THEN NULL WHEN - + 98 * - 4 THEN - + ( + + 0 ) / - CASE + COUNT ( DISTINCT - + ( + 41 ) ) WHEN - + 7 / + 71 + + - COUNT ( * ) * - 56 + + + 82 THEN 34 * + 4 END + + 28 + - COUNT ( * ) ELSE NULL END, COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT 19 + + 17 col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT 55 - COUNT( * ) + + 46 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-4706
SELECT 55 - COUNT ( * ) + + 46 AS col2
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT ALL 81 DIV - + 77
----
-1

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL 81 / - + 77
----
-1

query I rowsort
SELECT ALL NULLIF ( - 88, + - 23 - - 45 ) + - 7 + - 56 + 47
----
-104

query I rowsort
SELECT 64 + - 32 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT 38 * MIN( + 27 ) AS col0
----
1026

skipif mysql # not compatible
query I rowsort label-4710
SELECT 38 * MIN ( + 27 ) AS col0
----
1026

query I rowsort
SELECT ALL - 43 + + - 54 AS col1
----
-97

query II rowsort
SELECT 56 AS col0, + 14 AS col0
----
56
14

query I rowsort
SELECT 81 + + 65
----
146

query I rowsort
SELECT DISTINCT 29 * - 18 AS col2
----
-522

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4715
SELECT 73 + - 34 DIV - 50 DIV COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-4715
SELECT 73 + - 34 / - 50 / COUNT ( * )
----
73

query II rowsort
SELECT - - 4 col2, 24 AS col1
----
4
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT MAX( DISTINCT + 98 ) + + 42 AS col0, + 48
----
140
48

skipif mysql # not compatible
query II rowsort label-4717
SELECT MAX ( DISTINCT + 98 ) + + 42 AS col0, + 48
----
140
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4718
SELECT - 35 DIV MIN( DISTINCT 92 ) DIV + 22
----
0

skipif mysql # not compatible
query I rowsort label-4718
SELECT - 35 / MIN ( DISTINCT 92 ) / + 22
----
0

query I rowsort
SELECT 50 * 75 - 17 - 30 AS col2
----
3703

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT - 44 + + + 72 * - 9 + - 9 - + MIN( - 74 ) * 33 - - 86 * - COUNT( * ) + 72
----
1727

skipif mysql # not compatible
query I rowsort label-4720
SELECT - 44 + + + 72 * - 9 + - 9 - + MIN ( - 74 ) * 33 - - 86 * - COUNT ( * ) + 72
----
1727

query I rowsort
SELECT 52 * + 27
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT - ( + - 52 ) + + NULLIF ( + - 95, MIN( - + 34 ) * - 55 ) * - 51 AS col2
----
4897

skipif mysql # not compatible
query I rowsort label-4722
SELECT - ( + - 52 ) + + NULLIF ( + - 95, MIN ( - + 34 ) * - 55 ) * - 51 AS col2
----
4897

query I rowsort
SELECT 42 + 93 + + 19
----
154

query I rowsort
SELECT DISTINCT - - ( + 48 ) AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4725
SELECT ALL - 53 * - + 81 * - 54 * - + 92 AS col1, ( - COUNT( * ) ) / - CAST( NULL AS SIGNED )
----
21327624
NULL

skipif mysql # not compatible
query II rowsort label-4725
SELECT ALL - 53 * - + 81 * - 54 * - + 92 AS col1, ( - COUNT ( * ) ) / - CAST ( NULL AS INTEGER )
----
21327624
NULL

query I rowsort
SELECT + 93 + - - 39 * + 24 AS col1
----
1029

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT ALL - COUNT( * ) * - 72 * - 27 * - - 22
----
-42768

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - COUNT ( * ) * - 72 * - 27 * - - 22
----
-42768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4728
SELECT 98 * CAST( + + 47 AS SIGNED ) col1
----
4606

skipif mysql # not compatible
query I rowsort label-4728
SELECT 98 * CAST ( + + 47 AS INTEGER ) col1
----
4606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4729
SELECT 37 / + 75 + 90 * + + CAST( NULL AS SIGNED ) * 39 * - + ( + CAST( + 50 AS SIGNED ) ) * - - 61 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT 37 / + 75 + 90 * + + CAST ( NULL AS INTEGER ) * 39 * - + ( + CAST ( + 50 AS INTEGER ) ) * - - 61 * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - ( - - 97 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT COUNT( * ) + - 45 * - 77
----
3466

skipif mysql # not compatible
query I rowsort label-4731
SELECT COUNT ( * ) + - 45 * - 77
----
3466

query I rowsort
SELECT 10 * + - 90 + + 86
----
-814

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ALL - MIN( DISTINCT - 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL - MIN ( DISTINCT - 71 ) AS col0
----
71

query I rowsort
SELECT ALL - ( + 94 ) col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4735
SELECT 29 * 42 AS col2, CASE - 42 WHEN ( - + 55 ) THEN 61 WHEN + AVG ( - 55 ) * + NULLIF ( + 87, + 90 ) + + + COUNT( * ) - - SUM( ALL - 43 ) THEN 74 * + 69 * 77 - - 29 ELSE + + 90 + + + 66 * - - CAST( NULL AS DECIMAL ) + + 45 END * + COUNT( * ) + 46 * - ( 61 ) AS col0
----
1218
NULL

skipif mysql # not compatible
query II rowsort label-4735
SELECT 29 * 42 AS col2, CASE - 42 WHEN ( - + 55 ) THEN 61 WHEN + AVG ( - 55 ) * + NULLIF ( + 87, + 90 ) + + + COUNT ( * ) - - SUM ( ALL - 43 ) THEN 74 * + 69 * 77 - - 29 ELSE + + 90 + + + 66 * - - CAST ( NULL AS REAL ) + + 45 END * + COUNT ( * ) + 46 * - ( 61 ) AS col0
----
1218
NULL

query I rowsort
SELECT DISTINCT 35 + - 99 col1
----
-64

query I rowsort
SELECT ALL 94 * - + 87 * - 92 AS col1
----
752376

query I rowsort
SELECT ALL 40 + + 54 col2
----
94

query I rowsort
SELECT 29 * 6 AS col1
----
174

query I rowsort
SELECT ALL 34 + 32 + 24 - + 31
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4741
SELECT ALL - 84 + + - COUNT( - 8 ) * + 64 AS col2, 78 + COUNT( * ) + - 72
----
-148
7

skipif mysql # not compatible
query II rowsort label-4741
SELECT ALL - 84 + + - COUNT ( - 8 ) * + 64 AS col2, 78 + COUNT ( * ) + - 72
----
-148
7

query I rowsort
SELECT + COALESCE ( - 15, - - 39 * - - 27 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4743
SELECT - MAX( ALL 72 ) * ( + + 51 ) AS col0, CAST( NULL AS SIGNED ) - NULLIF ( + - 0, + 20 - + - COUNT( * ) )
----
-3672
NULL

skipif mysql # not compatible
query II rowsort label-4743
SELECT - MAX ( ALL 72 ) * ( + + 51 ) AS col0, CAST ( NULL AS INTEGER ) - NULLIF ( + - 0, + 20 - + - COUNT ( * ) )
----
-3672
NULL

query I rowsort
SELECT ALL - 9 + + + 35 * 73
----
2546

query I rowsort
SELECT 75 + + 56 AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT DISTINCT 63 * + - COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT 63 * + - COUNT ( * ) AS col0
----
-63

query I rowsort
SELECT 65 * - 65 + - 2 + 73 AS col0
----
-4154

query I rowsort
SELECT + - 43 * + 23
----
-989

query I rowsort
SELECT - + 37 + - 64 + - 26 AS col0
----
-127

query I rowsort
SELECT DISTINCT - 4 * - - 74 * + 5
----
-1480

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT DISTINCT COUNT( * ) - - 38
----
39

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT COUNT ( * ) - - 38
----
39

query I rowsort
SELECT DISTINCT 47 * - + NULLIF ( + - 3, - 14 )
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-4753
SELECT ALL 52 * 62 AS col1, + ( + COUNT( * ) )
----
3224
1

skipif mysql # not compatible
query II rowsort label-4753
SELECT ALL 52 * 62 AS col1, + ( + COUNT ( * ) )
----
3224
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4754
SELECT - NULLIF ( + + 95, - + 47 ) DIV + + MIN( - 28 ) col1
----
3

skipif mysql # not compatible
query I rowsort label-4754
SELECT - NULLIF ( + + 95, - + 47 ) / + + MIN ( - 28 ) col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4755
SELECT ALL + COALESCE ( + 94, - 63 - + - COUNT( * ) * + 57, - + CAST( + COUNT( * ) AS SIGNED ), 16 ) col0
----
94

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL + COALESCE ( + 94, - 63 - + - COUNT ( * ) * + 57, - + CAST ( + COUNT ( * ) AS INTEGER ), 16 ) col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT + - 16 * + - SUM( - + COALESCE ( - - 22, + 19 ) )
----
-352

skipif mysql # not compatible
query I rowsort label-4756
SELECT + - 16 * + - SUM ( - + COALESCE ( - - 22, + 19 ) )
----
-352

query I rowsort
SELECT + 48 + + 68 * + 18
----
1272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4758
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN 24 * ( + 56 ) THEN + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN 24 * ( + 56 ) THEN + 95 END
----
NULL

query II rowsort
SELECT DISTINCT + 65 AS col2, 23 * - 34
----
65
-782

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4760
SELECT - 13 * + 45 DIV + + COUNT( * ) AS col2, + 72 + NULLIF ( - 45, + - 40 ) AS col0
----
-585
27

skipif mysql # not compatible
query II rowsort label-4760
SELECT - 13 * + 45 / + + COUNT ( * ) AS col2, + 72 + NULLIF ( - 45, + - 40 ) AS col0
----
-585
27

query I rowsort
SELECT DISTINCT - 84 * - 98 + - 51
----
8181

query I rowsort
SELECT DISTINCT - 70 * - + 54 col2
----
3780

query I rowsort
SELECT ALL + 51 * - 64 + - - 50 AS col1
----
-3214

query I rowsort
SELECT - 47 + + ( + - 44 ) - + - 20 - + - 13 * + 24 * 22
----
6793

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT - SUM( ALL - 63 ) * + NULLIF ( 87, 68 ) + + COALESCE ( 24, - 70 ) AS col1
----
5505

skipif mysql # not compatible
query I rowsort label-4765
SELECT - SUM ( ALL - 63 ) * + NULLIF ( 87, 68 ) + + COALESCE ( 24, - 70 ) AS col1
----
5505

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4766
SELECT ALL 92 * 21 * + COALESCE ( COUNT( * ), - COUNT( * ) + 27 + 17, + 61 + + COUNT( * ) - + COUNT( * ) DIV 33 ) + 88 AS col1
----
2020

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL 92 * 21 * + COALESCE ( COUNT ( * ), - COUNT ( * ) + 27 + 17, + 61 + + COUNT ( * ) - + COUNT ( * ) / 33 ) + 88 AS col1
----
2020

onlyif mysql # aggregate syntax: 
query II rowsort label-4767
SELECT - 23 + + 21 * + + 70 AS col1, NULLIF ( + 9, + - COUNT( * ) )
----
1447
9

skipif mysql # not compatible
query II rowsort label-4767
SELECT - 23 + + 21 * + + 70 AS col1, NULLIF ( + 9, + - COUNT ( * ) )
----
1447
9

query I rowsort
SELECT - 40 + + + 57 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL + COUNT( * ) * COUNT( * ) + + 27 + - 27
----
1

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL + COUNT ( * ) * COUNT ( * ) + + 27 + - 27
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4770
SELECT DISTINCT + 60 / + 37 * + SUM( CAST( NULL AS DECIMAL ) ) / - 52 + + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT + 60 / + 37 * + SUM ( CAST ( NULL AS REAL ) ) / - 52 + + - 65
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 74, + - 45 * - 55 )
----
-74

query I rowsort
SELECT + + 32 * + 96
----
3072

query I rowsort
SELECT - - 63 + - 23
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4774
SELECT + - ( - + 90 ) + - 9 DIV - 24 * - - CASE CAST( + 50 AS SIGNED ) WHEN 67 THEN 18 * 46 * + COUNT( * ) + + + 58 ELSE + 86 DIV + 99 + - + 39 + - + 56 * + + 50 - + - NULLIF ( + 55, + 71 * - 66 + + 74 + + CASE + - 80 WHEN - 88 THEN - 43 END + + 18 ) + 12 * 91 END
----
90

skipif mysql # not compatible
query I rowsort label-4774
SELECT + - ( - + 90 ) + - 9 / - 24 * - - CASE CAST ( + 50 AS INTEGER ) WHEN 67 THEN 18 * 46 * + COUNT ( * ) + + + 58 ELSE + 86 / + 99 + - + 39 + - + 56 * + + 50 - + - NULLIF ( + 55, + 71 * - 66 + + 74 + + CASE + - 80 WHEN - 88 THEN - 43 END + + 18 ) + 12 * 91 END
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4775
SELECT DISTINCT CASE - - 93 WHEN + 41 * + ( + CAST( NULL AS DECIMAL ) ) THEN NULL WHEN - ( - - CASE - 16 WHEN - 71 * COUNT( * ) THEN - SUM( - - 36 ) * - CASE + - CAST( NULL AS SIGNED ) WHEN 58 * COALESCE ( + 0, + COUNT( CASE + CAST( NULL AS SIGNED ) WHEN - 52 THEN NULL WHEN 1 THEN + - 80 * + 29 WHEN - 70 THEN NULL ELSE NULL END ) + - CASE 33 WHEN - ( + 88 ) + 4 THEN 51 + - 20 ELSE NULL END * 52 ) * - 40 THEN NULL ELSE 84 END + + CASE - 23 WHEN 11 THEN - NULLIF ( + 56, 94 * - CAST( NULL AS SIGNED ) ) * 49 END * 94 WHEN + 87 THEN NULL ELSE - 42 + ( ( 93 ) ) END ) THEN - ( 9 ) / 27 + 28 WHEN COUNT( * ) THEN COUNT( * ) * - 43 + - 5 * 11 ELSE NULL END * - 93 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT CASE - - 93 WHEN + 41 * + ( + CAST ( NULL AS REAL ) ) THEN NULL WHEN - ( - - CASE - 16 WHEN - 71 * COUNT ( * ) THEN - SUM ( - - 36 ) * - CASE + - CAST ( NULL AS INTEGER ) WHEN 58 * COALESCE ( + 0, + COUNT ( CASE + CAST ( NULL AS INTEGER ) WHEN - 52 THEN NULL WHEN 1 THEN + - 80 * + 29 WHEN - 70 THEN NULL ELSE NULL END ) + - CASE 33 WHEN - ( + 88 ) + 4 THEN 51 + - 20 ELSE NULL END * 52 ) * - 40 THEN NULL ELSE 84 END + + CASE - 23 WHEN 11 THEN - NULLIF ( + 56, 94 * - CAST ( NULL AS INTEGER ) ) * 49 END * 94 WHEN + 87 THEN NULL ELSE - 42 + ( ( 93 ) ) END ) THEN - ( 9 ) / 27 + 28 WHEN COUNT ( * ) THEN COUNT ( * ) * - 43 + - 5 * 11 ELSE NULL END * - 93 col2
----
NULL

query I rowsort
SELECT + - 8 + 63 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT + COUNT( * ) * - 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4777
SELECT + COUNT ( * ) * - 38 AS col0
----
-38

query I rowsort
SELECT DISTINCT - - 87 * + 73
----
6351

query II rowsort
SELECT ALL 15 AS col0, - 67 + + 95
----
15
28

query II rowsort
SELECT + + ( - + 79 ) * - 32, - 67 AS col1
----
2528
-67

query I rowsort
SELECT + 80 + + 91 * + - 76 AS col2
----
-6836

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT ALL - MIN( ALL + 69 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL - MIN ( ALL + 69 ) AS col0
----
-69

query I rowsort
SELECT + + 45 + + + 32
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT + - MAX( 28 ) + + - 71 + 7
----
-92

skipif mysql # not compatible
query I rowsort label-4784
SELECT + - MAX ( 28 ) + + - 71 + 7
----
-92

query II rowsort
SELECT + 11 * - CASE WHEN - 22 <> NULL THEN - + 55 ELSE NULL END, + 38 AS col2
----
NULL
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4786
SELECT ALL 50 AS col1, ( + COUNT( + 1 ) ) AS col2
----
50
1

skipif mysql # not compatible
query II rowsort label-4786
SELECT ALL 50 AS col1, ( + COUNT ( + 1 ) ) AS col2
----
50
1

query I rowsort
SELECT ALL ( 82 ) + - 21
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + 30 + COUNT( * ) - - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-4788
SELECT + 30 + COUNT ( * ) - - COUNT ( * )
----
32

query I rowsort
SELECT DISTINCT 30 * 83 AS col1
----
2490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT CAST( + NULLIF ( + - 50, - 76 * + 67 ) AS SIGNED ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4790
SELECT CAST ( + NULLIF ( + - 50, - 76 * + 67 ) AS INTEGER ) AS col0
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT ALL + ( - COUNT( * ) ) DIV + ( - 48 ) + 91 + + 34 + - + COUNT( * )
----
124

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + ( - COUNT ( * ) ) / + ( - 48 ) + 91 + + 34 + - + COUNT ( * )
----
124

query I rowsort
SELECT + 71 * - 54 AS col1
----
-3834

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4793
SELECT COUNT( * ) DIV NULLIF ( 32, 51 ) + + 34
----
34

skipif mysql # not compatible
query I rowsort label-4793
SELECT COUNT ( * ) / NULLIF ( 32, 51 ) + + 34
----
34

query I rowsort
SELECT - ( 24 ) + - 9 - ( - 84 ) AS col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4795
SELECT ( - COALESCE ( - 17, CAST( NULL AS SIGNED ), - + COUNT( * ) + + - 41 ) )
----
17

skipif mysql # not compatible
query I rowsort label-4795
SELECT ( - COALESCE ( - 17, CAST ( NULL AS INTEGER ), - + COUNT ( * ) + + - 41 ) )
----
17

query II rowsort
SELECT ALL + 93 AS col0, 11 AS col1
----
93
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ( + NULLIF ( + COUNT( * ), + ( + 18 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4797
SELECT ( + NULLIF ( + COUNT ( * ), + ( + 18 ) ) ) AS col0
----
1

query I rowsort
SELECT ALL + 12 * + + 21 AS col2
----
252

query I rowsort
SELECT DISTINCT + 39 * 42
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT - MAX( - - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-4800
SELECT - MAX ( - - 38 )
----
-38

query I rowsort
SELECT ALL + + 89 * - 63
----
-5607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4802
SELECT + CAST( - 57 AS SIGNED ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-4802
SELECT + CAST ( - 57 AS INTEGER ) col2
----
-57

query I rowsort
SELECT ALL + + 64 * - + 71 col1
----
-4544

query II rowsort
SELECT + 26 AS col2, 45 AS col0
----
26
45

onlyif mysql # aggregate syntax: 
query II rowsort label-4805
SELECT + 59 AS col2, MAX( 6 ) - 12 + 90 AS col1
----
59
84

skipif mysql # not compatible
query II rowsort label-4805
SELECT + 59 AS col2, MAX ( 6 ) - 12 + 90 AS col1
----
59
84

query I rowsort
SELECT - 14 * 60
----
-840

query II rowsort
SELECT DISTINCT + 63 AS col2, 12
----
63
12

query I rowsort
SELECT DISTINCT NULLIF ( + 73, - 40 * + 56 )
----
73

query I rowsort
SELECT DISTINCT - NULLIF ( 89, + + 85 )
----
-89

query I rowsort
SELECT ALL - 65 * + 6
----
-390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4811
SELECT SUM( DISTINCT 65 ) DIV 19 + - 46
----
-43

skipif mysql # not compatible
query I rowsort label-4811
SELECT SUM ( DISTINCT 65 ) / 19 + - 46
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4812
SELECT ALL + - 72 DIV + 73 AS col2, - COUNT( * ) * - - 97 AS col0
----
0
-97

skipif mysql # not compatible
query II rowsort label-4812
SELECT ALL + - 72 / + 73 AS col2, - COUNT ( * ) * - - 97 AS col0
----
0
-97

query I rowsort
SELECT ALL - NULLIF ( + 90, - - 6 ) AS col1
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4814
SELECT + 73 * + 42 DIV - + 2 - - 39 + + 77 - - 51 * + + MIN( DISTINCT - - 54 ) * 20 DIV + COUNT( * ) + + - 50 + 3 * - - SUM( 5 ) AS col1
----
53628

skipif mysql # not compatible
query I rowsort label-4814
SELECT + 73 * + 42 / - + 2 - - 39 + + 77 - - 51 * + + MIN ( DISTINCT - - 54 ) * 20 / + COUNT ( * ) + + - 50 + 3 * - - SUM ( 5 ) AS col1
----
53628

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT COUNT( * ) + 35 col0
----
36

skipif mysql # not compatible
query I rowsort label-4815
SELECT COUNT ( * ) + 35 col0
----
36

query I rowsort
SELECT - ( 8 ) + 17 AS col0
----
9

query I rowsort
SELECT ALL 70 * + 54
----
3780

query I rowsort
SELECT DISTINCT + + 67 * + 46 AS col0
----
3082

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL ( + 50 ) + - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL ( + 50 ) + - COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT COUNT( * ) - MIN( - 28 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4820
SELECT COUNT ( * ) - MIN ( - 28 ) AS col1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4821
SELECT ALL 89 + + 32 + 32 + - 81 DIV - 18
----
157

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL 89 + + 32 + 32 + - 81 / - 18
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT COUNT( * ) * - - 11 * - 18 * + - 49 * + 13 AS col0
----
126126

skipif mysql # not compatible
query I rowsort label-4822
SELECT COUNT ( * ) * - - 11 * - 18 * + - 49 * + 13 AS col0
----
126126

query I rowsort
SELECT ( 12 ) * 60 col1
----
720

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4824
SELECT DISTINCT CAST( + COALESCE ( + + 35, - - 79 - + + CAST( + - 66 AS SIGNED ) ) AS SIGNED ) + + + COALESCE ( - COALESCE ( CAST( + 85 AS SIGNED ), + - 74, + 0 DIV + 81 * + 11 ), + - NULLIF ( - 48, - CAST( - + 57 AS SIGNED ) ) DIV - 71 + + 75, + ( + CAST( NULL AS SIGNED ) ) * + 52 )
----
-50

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT CAST ( + COALESCE ( + + 35, - - 79 - + + CAST ( + - 66 AS INTEGER ) ) AS INTEGER ) + + + COALESCE ( - COALESCE ( CAST ( + 85 AS INTEGER ), + - 74, + 0 / + 81 * + 11 ), + - NULLIF ( - 48, - CAST ( - + 57 AS INTEGER ) ) / - 71 + + 75, + ( + CAST ( NULL AS INTEGER ) ) * + 52 )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4825
SELECT CAST( 79 AS SIGNED ) - + 25 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4825
SELECT CAST ( 79 AS INTEGER ) - + 25 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL 18 * - 15 * COUNT( * ) AS col0
----
-270

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL 18 * - 15 * COUNT ( * ) AS col0
----
-270

query I rowsort
SELECT DISTINCT - ( + + 85 ) + - 81 - 7
----
-173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4828
SELECT DISTINCT CAST( NULL AS SIGNED ) / 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 69
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4829
SELECT DISTINCT 70 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT DISTINCT 70 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4830
SELECT CAST( + 56 AS SIGNED ) * + - COUNT( * ) + - + 72 + - - COUNT( DISTINCT - 37 ) + + 74 col1
----
-53

skipif mysql # not compatible
query I rowsort label-4830
SELECT CAST ( + 56 AS INTEGER ) * + - COUNT ( * ) + - + 72 + - - COUNT ( DISTINCT - 37 ) + + 74 col1
----
-53

query I rowsort
SELECT ALL - 80 - - + 78
----
-2

query I rowsort
SELECT DISTINCT 17 * 30 * + 61
----
31110

onlyif mysql # aggregate syntax: 
query II rowsort label-4833
SELECT - 9 * - + COUNT( * ) + + 27 - - - 52 * - 35, 24 * - 36 AS col2
----
1856
-864

skipif mysql # not compatible
query II rowsort label-4833
SELECT - 9 * - + COUNT ( * ) + + 27 - - - 52 * - 35, 24 * - 36 AS col2
----
1856
-864

query I rowsort
SELECT 48 * + 50 * 65
----
156000

query II rowsort
SELECT 83 * 35, + 21 AS col2
----
2905
21

query I rowsort
SELECT - 85 + - ( + 58 ) - 97 + + 34
----
-206

query I rowsort
SELECT + 94 * - 21 * + + 27
----
-53298

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4838
SELECT 73 + - COALESCE ( - 60, + ( + + MAX( ALL + 92 ) ) + + 39 * + 61 / 26 ) / + 20 - + 13 * + CAST( NULL AS DECIMAL ) AS col0, 78 - ( - 64 ) AS col1
----
NULL
142

skipif mysql # not compatible
query II rowsort label-4838
SELECT 73 + - COALESCE ( - 60, + ( + + MAX ( ALL + 92 ) ) + + 39 * + 61 / 26 ) / + 20 - + 13 * + CAST ( NULL AS REAL ) AS col0, 78 - ( - 64 ) AS col1
----
NULL
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT ALL - + MIN( - - 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL - + MIN ( - - 98 ) AS col1
----
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4840
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - - 56 * - 20 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT + CAST ( NULL AS REAL ) * - - 56 * - 20 col1
----
NULL

query I rowsort
SELECT 42 + - + 51 AS col2
----
-9

query I rowsort
SELECT ALL - 25 * + - 52 + ( + - 14 )
----
1286

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT DISTINCT + - COUNT( * ) * 78 * - 31 - + + 55
----
2363

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT + - COUNT ( * ) * 78 * - 31 - + + 55
----
2363

query I rowsort
SELECT 22 * 86 * + 89 + + ( - - 65 ) AS col2
----
168453

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT - SUM( ALL + 83 ) + - - ( - 3 )
----
-86

skipif mysql # not compatible
query I rowsort label-4845
SELECT - SUM ( ALL + 83 ) + - - ( - 3 )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4846
SELECT DISTINCT - - 44 + 5 DIV + 23 + - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT - - 44 + 5 / + 23 + - COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT DISTINCT 3 + + MAX( DISTINCT - 27 )
----
-24

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT 3 + + MAX ( DISTINCT - 27 )
----
-24

query II rowsort
SELECT ALL - - 94 + - - 57, - CASE + 82 WHEN + - 80 THEN + 31 + + 68 ELSE NULL END AS col0
----
151
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT ALL + ( - - ( CASE 25 WHEN - - 98 * 73 THEN - COUNT( - 3 ) WHEN 45 THEN - - 88 WHEN - - 74 - - AVG ( - 61 ) THEN NULL END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL + ( - - ( CASE 25 WHEN - - 98 * 73 THEN - COUNT ( - 3 ) WHEN 45 THEN - - 88 WHEN - - 74 - - AVG ( - 61 ) THEN NULL END ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4850
SELECT - 60 DIV + 23 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4850
SELECT - 60 / + 23 AS col1
----
-2

query II rowsort
SELECT ALL 66, + 60 AS col0
----
66
60

query I rowsort
SELECT DISTINCT 36 * - 6 AS col0
----
-216

query I rowsort
SELECT 13 - - 33 * ( + 36 )
----
1201

query I rowsort
SELECT 20 + - 16 * - 81 - 54 * - + ( 94 ) AS col2
----
6392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4855
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 51 + - COUNT( * ) + - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 51 + - COUNT ( * ) + - 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT ALL COUNT( + - 44 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL COUNT ( + - 44 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4857
SELECT 68 + CAST( + + 77 AS SIGNED )
----
145

skipif mysql # not compatible
query I rowsort label-4857
SELECT 68 + CAST ( + + 77 AS INTEGER )
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT 39 * + CAST( + 20 AS SIGNED ) col1
----
780

skipif mysql # not compatible
query I rowsort label-4858
SELECT 39 * + CAST ( + 20 AS INTEGER ) col1
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT DISTINCT + ( + 35 ) - + COALESCE ( MIN( - - 17 ), 21 * + 37 + - - 15 * COALESCE ( 46, + + ( 83 ) ) ) + - + 99 + 6 * - 35
----
-291

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT + ( + 35 ) - + COALESCE ( MIN ( - - 17 ), 21 * + 37 + - - 15 * COALESCE ( 46, + + ( 83 ) ) ) + - + 99 + 6 * - 35
----
-291

onlyif mysql # aggregate syntax: 
query II rowsort label-4860
SELECT 37 AS col2, - COUNT( * ) * COUNT( * )
----
37
-1

skipif mysql # not compatible
query II rowsort label-4860
SELECT 37 AS col2, - COUNT ( * ) * COUNT ( * )
----
37
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4861
SELECT DISTINCT + COUNT( * ) * + 66 * + 55 col2, - 27 * 0 + + 74 * + + 45
----
3630
3330

skipif mysql # not compatible
query II rowsort label-4861
SELECT DISTINCT + COUNT ( * ) * + 66 * + 55 col2, - 27 * 0 + + 74 * + + 45
----
3630
3330

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT ALL - COUNT( ALL - 68 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL - COUNT ( ALL - 68 ) AS col0
----
-1

query II rowsort
SELECT ALL - 9 AS col0, - 12 AS col0
----
-9
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ( + 47 ) * - + MAX( ALL 52 ) + 59
----
-2385

skipif mysql # not compatible
query I rowsort label-4864
SELECT ( + 47 ) * - + MAX ( ALL 52 ) + 59
----
-2385

query II rowsort
SELECT DISTINCT - 15 AS col1, ( - 27 ) + - - 68 + 4
----
-15
45

query I rowsort
SELECT COALESCE ( 32, - + 6, + + 54 * - + 71 )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4867
SELECT ALL + 25 AS col0, MAX( 67 ) + COUNT( * )
----
25
68

skipif mysql # not compatible
query II rowsort label-4867
SELECT ALL + 25 AS col0, MAX ( 67 ) + COUNT ( * )
----
25
68

query II rowsort
SELECT ALL + 28, 84 col2
----
28
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT - 34 * - 84 * MIN( + 43 ) col2
----
122808

skipif mysql # not compatible
query I rowsort label-4869
SELECT - 34 * - 84 * MIN ( + 43 ) col2
----
122808

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT + 40 + COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-4870
SELECT + 40 + COUNT ( * ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT + CASE + COUNT( * ) WHEN + 69 + + 54 THEN - - 84 + 91 ELSE + 88 END col1
----
88

skipif mysql # not compatible
query I rowsort label-4871
SELECT + CASE + COUNT ( * ) WHEN + 69 + + 54 THEN - - 84 + 91 ELSE + 88 END col1
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4872
SELECT + CAST( NULL AS DECIMAL ) AS col2, 85 AS col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-4872
SELECT + CAST ( NULL AS REAL ) AS col2, 85 AS col1
----
NULL
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4873
SELECT + - CAST( NULL AS SIGNED ) / + AVG ( + + 1 ) - - + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT + - CAST ( NULL AS INTEGER ) / + AVG ( + + 1 ) - - + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT DISTINCT + MIN( DISTINCT + 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + MIN ( DISTINCT + 99 ) AS col0
----
99

query I rowsort
SELECT DISTINCT 84 * + ( - + 26 ) * 25
----
-54600

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT + 33 * - 86 + + + COUNT( * )
----
-2837

skipif mysql # not compatible
query I rowsort label-4876
SELECT + 33 * - 86 + + + COUNT ( * )
----
-2837

query I rowsort
SELECT + 46 * + + 34 * + 91 + - 44 + - 88 + + 23 + + 93 + + - 49 * NULLIF ( + 51, - - 80 )
----
139809

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT + - MIN( ALL + - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-4878
SELECT + - MIN ( ALL + - 98 )
----
98

query II rowsort
SELECT ALL + + 25 AS col1, + 18
----
25
18

query I rowsort
SELECT DISTINCT 47 + - NULLIF ( - - 55, + + 51 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4881
SELECT ALL + 13 + ( + 40 ), ( - COUNT( * ) ) * - + MIN( DISTINCT - - 49 ) AS col2
----
53
49

skipif mysql # not compatible
query II rowsort label-4881
SELECT ALL + 13 + ( + 40 ), ( - COUNT ( * ) ) * - + MIN ( DISTINCT - - 49 ) AS col2
----
53
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4882
SELECT CASE + 59 WHEN + 13 * - 48 THEN + 29 WHEN 12 + - 34 + - 18 * + COUNT( - CAST( 34 AS SIGNED ) ) * + 33 THEN 51 * + 80 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4882
SELECT CASE + 59 WHEN + 13 * - 48 THEN + 29 WHEN 12 + - 34 + - 18 * + COUNT ( - CAST ( 34 AS INTEGER ) ) * + 33 THEN 51 * + 80 END AS col1
----
NULL

query I rowsort
SELECT ALL 18 + - - 2 AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4884
SELECT CAST( NULL AS SIGNED ) AS col1, - 37 AS col1
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-4884
SELECT CAST ( NULL AS INTEGER ) AS col1, - 37 AS col1
----
NULL
-37

query II rowsort
SELECT - 30, - 7 AS col1
----
-30
-7

query I rowsort
SELECT + 54 + + ( + 10 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT ALL COUNT( DISTINCT 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL COUNT ( DISTINCT 37 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4888
SELECT + 30 + + 78 + + CAST( - 19 AS SIGNED ) * + 52 * + 73 * + 92 + 89 AS col1
----
-6635211

skipif mysql # not compatible
query I rowsort label-4888
SELECT + 30 + + 78 + + CAST ( - 19 AS INTEGER ) * + 52 * + 73 * + 92 + 89 AS col1
----
-6635211

query I rowsort
SELECT - 36 - + 43 - ( - + NULLIF ( - + 21, 86 ) )
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT ALL - COUNT( * ) * - 93 * - - 81 * 97 * + - 27 AS col2
----
-19728927

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL - COUNT ( * ) * - 93 * - - 81 * 97 * + - 27 AS col2
----
-19728927

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT DISTINCT COUNT( 54 )
----
1

skipif mysql # not compatible
query I rowsort label-4891
SELECT DISTINCT COUNT ( 54 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4892
SELECT + 7 + + COUNT( * ), + COALESCE ( + + NULLIF ( + NULLIF ( + + COUNT( * ), - 70 ), + ( + 35 ) ), - 9 ) AS col2
----
8
1

skipif mysql # not compatible
query II rowsort label-4892
SELECT + 7 + + COUNT ( * ), + COALESCE ( + + NULLIF ( + NULLIF ( + + COUNT ( * ), - 70 ), + ( + 35 ) ), - 9 ) AS col2
----
8
1

query I rowsort
SELECT ALL - 98 - - ( - 5 )
----
-103

query I rowsort
SELECT - 0 * + - 15 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL 6 * SUM( - 18 )
----
-108

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL 6 * SUM ( - 18 )
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT DISTINCT COUNT( DISTINCT - - 93 )
----
1

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT COUNT ( DISTINCT - - 93 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4897
SELECT ALL - 98 - - - NULLIF ( - 71, 72 ) + - - CAST( NULL AS SIGNED ) + COALESCE ( - - 46, + 1 ) + NULLIF ( - 14, - MIN( - - 96 ) + - + 55 + 69 ) AS col0, 19
----
NULL
19

skipif mysql # not compatible
query II rowsort label-4897
SELECT ALL - 98 - - - NULLIF ( - 71, 72 ) + - - CAST ( NULL AS INTEGER ) + COALESCE ( - - 46, + 1 ) + NULLIF ( - 14, - MIN ( - - 96 ) + - + 55 + 69 ) AS col0, 19
----
NULL
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT - MAX( 74 ) * 73 AS col1
----
-5402

skipif mysql # not compatible
query I rowsort label-4898
SELECT - MAX ( 74 ) * 73 AS col1
----
-5402

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4899
SELECT - COALESCE ( - - MIN( - 1 ), COUNT( * ) ) DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-4899
SELECT - COALESCE ( - - MIN ( - 1 ), COUNT ( * ) ) / + 28
----
0

query I rowsort
SELECT ALL + 62 * + - ( - 89 )
----
5518

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT - COUNT( * ) * 6 * - + 42 * - 76
----
-19152

skipif mysql # not compatible
query I rowsort label-4901
SELECT - COUNT ( * ) * 6 * - + 42 * - 76
----
-19152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4902
SELECT ALL + 53 * ( COALESCE ( + 54, AVG ( + 45 ) ) ) / - CAST( NULL AS SIGNED ) + - 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL + 53 * ( COALESCE ( + 54, AVG ( + 45 ) ) ) / - CAST ( NULL AS INTEGER ) + - 96 AS col1
----
NULL

query I rowsort
SELECT ALL - 90 * + 52
----
-4680

query I rowsort
SELECT DISTINCT - 17 * + 12
----
-204

query I rowsort
SELECT - 3 * + 39 * - - ( - 11 ) AS col2
----
1287

query II rowsort
SELECT DISTINCT + ( - - COALESCE ( - 66, - 91 ) ), 6 * + + 39 AS col2
----
-66
234

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT 98 * - COUNT( * ) + 79 - 98 col1
----
-117

skipif mysql # not compatible
query I rowsort label-4907
SELECT 98 * - COUNT ( * ) + 79 - 98 col1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT ALL - 61 * - 3 + 50 - COUNT( * ) * + + 72 * - - 41
----
-2719

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL - 61 * - 3 + 50 - COUNT ( * ) * + + 72 * - - 41
----
-2719

query I rowsort
SELECT ALL - 54 * + 65 * + + 30 + - - 82 - - + 59 * 87
----
-100085

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT + 6 + CAST( 73 AS SIGNED ) * + ( 48 )
----
3510

skipif mysql # not compatible
query I rowsort label-4910
SELECT + 6 + CAST ( 73 AS INTEGER ) * + ( 48 )
----
3510

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT ALL - ( + - 85 ) DIV + 18 + 47 * 82 AS col1
----
3858

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL - ( + - 85 ) / + 18 + 47 * 82 AS col1
----
3858

query I rowsort
SELECT ALL + - 59 col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT - COUNT( * ) * + + ( - 58 ) * ( - + 64 ) * + 78 * 51 + + 42 + + 12 + - 26 AS col0
----
-14766308

skipif mysql # not compatible
query I rowsort label-4913
SELECT - COUNT ( * ) * + + ( - 58 ) * ( - + 64 ) * + 78 * 51 + + 42 + + 12 + - 26 AS col0
----
-14766308

query I rowsort
SELECT DISTINCT + - NULLIF ( + 17, - 40 + + 22 ) col2
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4915
SELECT DISTINCT - SUM( ALL + - 9 ) * + 8 - + 59, - 59 AS col0
----
13
-59

skipif mysql # not compatible
query II rowsort label-4915
SELECT DISTINCT - SUM ( ALL + - 9 ) * + 8 - + 59, - 59 AS col0
----
13
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4916
SELECT + + 27 DIV - 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4916
SELECT + + 27 / - 69 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4917
SELECT + 48 * - CAST( + + 51 AS SIGNED ) AS col2, 56 - - 13 * + 49 + + COUNT( * ) AS col0
----
-2448
694

skipif mysql # not compatible
query II rowsort label-4917
SELECT + 48 * - CAST ( + + 51 AS INTEGER ) AS col2, 56 - - 13 * + 49 + + COUNT ( * ) AS col0
----
-2448
694

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT SUM( DISTINCT + ( + + 16 ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4918
SELECT SUM ( DISTINCT + ( + + 16 ) ) AS col0
----
16

query II rowsort
SELECT ALL 98 * 90 - - 88 AS col0, 45 * + + 58
----
8908
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT MAX( - 9 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4920
SELECT MAX ( - 9 ) AS col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4921
SELECT + COUNT( * ) DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-4921
SELECT + COUNT ( * ) / - 79
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4922
SELECT ALL ( 28 ) DIV + + 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL ( 28 ) / + + 37 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4923
SELECT + NULLIF ( + COUNT( * ), - NULLIF ( - 82, + + 0 * - - 10 + - + CAST( - + ( + MAX( ALL + 92 ) ) AS SIGNED ) - - - 12 + COALESCE ( - 89, - 5 ) + + 63 * 62 - COUNT( * ) - + AVG ( + 52 ) ) + 70 + + MAX( DISTINCT + 55 ) * - 90 ) + 73 + + 86 col2, + COUNT( * )
----
160
1

skipif mysql # not compatible
query II rowsort label-4923
SELECT + NULLIF ( + COUNT ( * ), - NULLIF ( - 82, + + 0 * - - 10 + - + CAST ( - + ( + MAX ( ALL + 92 ) ) AS INTEGER ) - - - 12 + COALESCE ( - 89, - 5 ) + + 63 * 62 - COUNT ( * ) - + AVG ( + 52 ) ) + 70 + + MAX ( DISTINCT + 55 ) * - 90 ) + 73 + + 86 col2, + COUNT ( * )
----
160
1

onlyif mysql # aggregate syntax: DIV for integer