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 division: 
query I rowsort label-4924
SELECT ALL - 93 * - 63 DIV + COUNT( * )
----
5859

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL - 93 * - 63 / + COUNT ( * )
----
5859

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4925
SELECT + MAX( ALL 6 ) + - + 55 + 19 * - + 30 + MAX( DISTINCT - 43 ) DIV MAX( + - 59 ) - - - 33 + NULLIF ( - 77, 91 + + 77 ) AS col1
----
-729

skipif mysql # not compatible
query I rowsort label-4925
SELECT + MAX ( ALL 6 ) + - + 55 + 19 * - + 30 + MAX ( DISTINCT - 43 ) / MAX ( + - 59 ) - - - 33 + NULLIF ( - 77, 91 + + 77 ) AS col1
----
-729

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

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

query I rowsort
SELECT ALL 52 * + 61 AS col1
----
3172

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT MIN( DISTINCT + + 94 ) + + 60 + + 93 * + 49 + + 93
----
4804

skipif mysql # not compatible
query I rowsort label-4928
SELECT MIN ( DISTINCT + + 94 ) + + 60 + + 93 * + 49 + + 93
----
4804

query I rowsort
SELECT 90 - 96
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4930
SELECT DISTINCT - 76 * + + 93 * - + CAST( NULL AS SIGNED ) AS col1, - 40
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-4930
SELECT DISTINCT - 76 * + + 93 * - + CAST ( NULL AS INTEGER ) AS col1, - 40
----
NULL
-40

query I rowsort
SELECT ALL 10 + + 97 AS col1
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-4932
SELECT ALL + NULLIF ( 84, + 88 * + 47 * + 44 ) DIV + + ( + 70 )
----
1

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL + NULLIF ( 84, + 88 * + 47 * + 44 ) / + + ( + 70 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4933
SELECT + CAST( NULL AS SIGNED ) * + AVG ( - - 32 ) * ( - 71 ) * + + 68 + COUNT( * ) + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT + CAST ( NULL AS INTEGER ) * + AVG ( - - 32 ) * ( - 71 ) * + + 68 + COUNT ( * ) + + 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL - 87 + MIN( + 5 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL - 87 + MIN ( + 5 ) AS col0
----
-82

query II rowsort
SELECT + NULLIF ( + - 27, 63 ) AS col1, - 81
----
-27
-81

query I rowsort
SELECT - 24 + + + ( - 47 )
----
-71

query I rowsort
SELECT DISTINCT + 5 + + 2 AS col1
----
7

query I rowsort
SELECT ALL - 46 + - + 30
----
-76

query I rowsort
SELECT ALL + 88 * + 64 col0
----
5632

query II rowsort
SELECT - 90 * + ( - 38 ) * - - 39 * 94 AS col0, ( ( + - 24 ) )
----
12537720
-24

query I rowsort
SELECT + 4 * + 61 AS col0
----
244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4942
SELECT + - CASE - 71 WHEN + - NULLIF ( 22, + - 91 ) * CASE - 13 WHEN + 63 * 23 THEN NULL WHEN + + CAST( NULL AS SIGNED ) / - SUM( ALL 74 ) * - - 92 - 46 + + 13 + + 44 * COUNT( * ) + 47 THEN + 39 * - 17 + + 93 END * - NULLIF ( 88, + 54 + + + 54 + 18 - - + 50 ) - - COALESCE ( + 19, - 0 * + 31, 52 * 88 ) THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT + - CASE - 71 WHEN + - NULLIF ( 22, + - 91 ) * CASE - 13 WHEN + 63 * 23 THEN NULL WHEN + + CAST ( NULL AS INTEGER ) / - SUM ( ALL 74 ) * - - 92 - 46 + + 13 + + 44 * COUNT ( * ) + 47 THEN + 39 * - 17 + + 93 END * - NULLIF ( 88, + 54 + + + 54 + 18 - - + 50 ) - - COALESCE ( + 19, - 0 * + 31, 52 * 88 ) THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL + COUNT( * ) - - 70 + + + 55 + 41 * + 19 * - COUNT( * )
----
-653

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL + COUNT ( * ) - - 70 + + + 55 + 41 * + 19 * - COUNT ( * )
----
-653

query I rowsort
SELECT DISTINCT - CASE + 9 WHEN 15 THEN + 37 WHEN + 35 * + 17 + 12 / 71 THEN + + 86 WHEN 32 * - 71 + 90 THEN NULL END * - 94 AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( 20, - 63 * 97 + - 6 + + 30 + - 48 ) AS col0
----
20

query I rowsort
SELECT - NULLIF ( 60, 9 ) * + - COALESCE ( CASE 31 WHEN + + 46 * - - 56 THEN + 7 END, - 80 )
----
-4800

query I rowsort
SELECT 39 * - 10 * - 3
----
1170

query I rowsort
SELECT 98 * - 96 - - 82 AS col0
----
-9326

onlyif mysql # DIV for integer division: 
query I rowsort label-4949
SELECT DISTINCT + ( 38 ) DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT + ( 38 ) / 52
----
0

query I rowsort
SELECT ALL 71 * - 94 AS col1
----
-6674

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

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

query II rowsort
SELECT DISTINCT + 80 * 34 AS col1, 36
----
2720
36

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

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

query I rowsort
SELECT 57 + + - 91 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT MAX( - 18 ) - + - ( ( - 36 ) )
----
-54

skipif mysql # not compatible
query I rowsort label-4955
SELECT MAX ( - 18 ) - + - ( ( - 36 ) )
----
-54

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4957
SELECT MIN( - - 91 ) + + 39 DIV + - 27
----
90

skipif mysql # not compatible
query I rowsort label-4957
SELECT MIN ( - - 91 ) + + 39 / + - 27
----
90

query I rowsort
SELECT DISTINCT - 17 * + - 95 col2
----
1615

query II rowsort
SELECT DISTINCT 46, 37 AS col2
----
46
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4960
SELECT DISTINCT 40 DIV 23 * 72 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT 40 / 23 * 72 AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4961
SELECT ALL 99 + - 57 * + 62 * 5, 59 - + 27 DIV - MIN( DISTINCT + 80 ) * + 24 col2
----
-17571
59

skipif mysql # not compatible
query II rowsort label-4961
SELECT ALL 99 + - 57 * + 62 * 5, 59 - + 27 / - MIN ( DISTINCT + 80 ) * + 24 col2
----
-17571
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT DISTINCT 10 + 24 - + + NULLIF ( + 67, + 93 * + 1 ) DIV - - 33
----
32

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT 10 + 24 - + + NULLIF ( + 67, + 93 * + 1 ) / - - 33
----
32

query II rowsort
SELECT ALL 5, ( 54 ) AS col0
----
5
54

query II rowsort
SELECT 91 AS col0, 70 * + - 95
----
91
-6650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4965
SELECT ALL 63 + + COALESCE ( + + CASE - + 90 WHEN + + 13 THEN 41 WHEN + + 67 THEN - 92 ELSE NULL END, - ( COUNT( * ) ) * - - COUNT( * ) DIV - 95 * - 57 )
----
63

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL 63 + + COALESCE ( + + CASE - + 90 WHEN + + 13 THEN 41 WHEN + + 67 THEN - 92 ELSE NULL END, - ( COUNT ( * ) ) * - - COUNT ( * ) / - 95 * - 57 )
----
63

query I rowsort
SELECT 4 + 7
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT - SUM( DISTINCT + 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-4967
SELECT - SUM ( DISTINCT + 68 ) AS col0
----
-68

query I rowsort
SELECT DISTINCT - 9 + + 22 * 59
----
1289

query I rowsort
SELECT ALL - + 4 * ( - - 47 ) + - 89 AS col0
----
-277

query I rowsort
SELECT + 61 - + 82
----
-21

query II rowsort
SELECT DISTINCT - 14, + 43 AS col0
----
-14
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4972
SELECT DISTINCT 68 * + 22 + - - 50 * + ( - CASE - SUM( DISTINCT - 85 ) WHEN 72 THEN COUNT( * ) * COUNT( * ) WHEN + MAX( ALL + 58 ) THEN - - 2 * NULLIF ( - NULLIF ( ( 96 ), - 81 + + 10 + 19 * - - 85 ), - 45 ) + 88 ELSE - - CAST( 47 AS SIGNED ) * 53 DIV + + SUM( - - 41 ) END )
----
-1504

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT 68 * + 22 + - - 50 * + ( - CASE - SUM ( DISTINCT - 85 ) WHEN 72 THEN COUNT ( * ) * COUNT ( * ) WHEN + MAX ( ALL + 58 ) THEN - - 2 * NULLIF ( - NULLIF ( ( 96 ), - 81 + + 10 + 19 * - - 85 ), - 45 ) + 88 ELSE - - CAST ( 47 AS INTEGER ) * 53 / + + SUM ( - - 41 ) END )
----
-1504

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT - CASE - 52 WHEN - 71 THEN 16 + + SUM( - - 54 ) WHEN + 45 / - - 6 THEN NULL ELSE + 99 END * + COUNT( DISTINCT - 25 ) * + COUNT( * ) * + 11 + - - ( + 68 ) + 62
----
-959

skipif mysql # not compatible
query I rowsort label-4973
SELECT - CASE - 52 WHEN - 71 THEN 16 + + SUM ( - - 54 ) WHEN + 45 / - - 6 THEN NULL ELSE + 99 END * + COUNT ( DISTINCT - 25 ) * + COUNT ( * ) * + 11 + - - ( + 68 ) + 62
----
-959

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4975
SELECT - 27 * + + 42 - + 36 * 50 DIV + CAST( + 29 AS SIGNED )
----
-1196

skipif mysql # not compatible
query I rowsort label-4975
SELECT - 27 * + + 42 - + 36 * 50 / + CAST ( + 29 AS INTEGER )
----
-1196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4976
SELECT DISTINCT + - COUNT( + - COALESCE ( 46, + 26 ) ) DIV + 76 + + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT + - COUNT ( + - COALESCE ( 46, + 26 ) ) / + 76 + + - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4977
SELECT ALL - + 22 - - - COUNT( * ) * 29 * - - 36, 30 - CAST( NULLIF ( + 30, 82 ) AS SIGNED ) DIV - 1 AS col1
----
-1066
60

skipif mysql # not compatible
query II rowsort label-4977
SELECT ALL - + 22 - - - COUNT ( * ) * 29 * - - 36, 30 - CAST ( NULLIF ( + 30, 82 ) AS INTEGER ) / - 1 AS col1
----
-1066
60

onlyif mysql # DIV for integer division: 
query II rowsort label-4978
SELECT 90 AS col2, 20 * 69 DIV - + NULLIF ( + 95, 42 + 85 )
----
90
-14

skipif mysql # not compatible
query II rowsort label-4978
SELECT 90 AS col2, 20 * 69 / - + NULLIF ( + 95, 42 + 85 )
----
90
-14

query II rowsort
SELECT ALL - 55 AS col0, - 26
----
-55
-26

onlyif mysql # DIV for integer division: 
query II rowsort label-4980
SELECT 42 - - 26 + - + 23 * + 96, 13 DIV ( - 85 ) * - 24 col1
----
-2140
0

skipif mysql # not compatible
query II rowsort label-4980
SELECT 42 - - 26 + - + 23 * + 96, 13 / ( - 85 ) * - 24 col1
----
-2140
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4981
SELECT + CAST( NULL AS SIGNED ) AS col2, + 23 DIV + 33 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4981
SELECT + CAST ( NULL AS INTEGER ) AS col2, + 23 / + 33 AS col0
----
NULL
0

query II rowsort
SELECT ALL - 1 col0, - 82
----
-1
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4983
SELECT - ( + - ( - - 19 ) ) DIV 53 + + 41 + - + 40 AS col2, + ( - - MIN( + + 20 ) ) AS col1
----
1
20

skipif mysql # not compatible
query II rowsort label-4983
SELECT - ( + - ( - - 19 ) ) / 53 + + 41 + - + 40 AS col2, + ( - - MIN ( + + 20 ) ) AS col1
----
1
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT ALL - NULLIF ( + MAX( ALL - 81 ), - COUNT( * ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL - NULLIF ( + MAX ( ALL - 81 ), - COUNT ( * ) ) AS col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4985
SELECT + COALESCE ( 46, - COUNT( + - ( ( + 27 ) ) ) + - + 76 + 28 * NULLIF ( 61, - 31 ) + - 77 * - + COUNT( * ), 87 * 56 + + 30 * 27 DIV - ( - 38 ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4985
SELECT + COALESCE ( 46, - COUNT ( + - ( ( + 27 ) ) ) + - + 76 + 28 * NULLIF ( 61, - 31 ) + - 77 * - + COUNT ( * ), 87 * 56 + + 30 * 27 / - ( - 38 ) ) AS col1
----
46

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4987
SELECT ALL + MAX( 6 ) DIV + 9
----
0

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL + MAX ( 6 ) / + 9
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4989
SELECT DISTINCT + 20 * 85 DIV - COUNT( * )
----
-1700

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT + 20 * 85 / - COUNT ( * )
----
-1700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4990
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ) / 80 AS col2, + NULLIF ( - + 43, + 8 - + + 58 + COALESCE ( + + 37, 63 - + 23 + 21, + - 9 * - ( ( + - ( + - 57 ) ) ) * + 21 ) + - 94 * + 33 + - + 31 + - - 19 * + - 42 ) AS col1
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-4990
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) / 80 AS col2, + NULLIF ( - + 43, + 8 - + + 58 + COALESCE ( + + 37, 63 - + 23 + 21, + - 9 * - ( ( + - ( + - 57 ) ) ) * + 21 ) + - 94 * + 33 + - + 31 + - - 19 * + - 42 ) AS col1
----
NULL
-43

query II rowsort
SELECT 67 + - 57 AS col1, 61 * 78 + + ( + - 38 ) * + + 46 col0
----
10
3010

query I rowsort
SELECT 74 * - - 90 * 96
----
639360

query I rowsort
SELECT ALL + COALESCE ( + 34, - - 19 ) AS col0
----
34

query I rowsort
SELECT - 59 + + - 34 * + 5
----
-229

query I rowsort
SELECT DISTINCT NULLIF ( 45, AVG ( + 53 ) )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL CASE + - 38 WHEN - ( + 22 ) THEN - 94 / - COUNT( * ) / - 10 + + - 68 - + + 93 + COUNT( * ) * + + 49 * - CASE - 78 WHEN 94 THEN NULL ELSE 9 * - 63 * + 48 - + - 87 + 14 END / - 73 + - + 13 + 80 + - 33 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL CASE + - 38 WHEN - ( + 22 ) THEN - 94 / - COUNT ( * ) / - 10 + + - 68 - + + 93 + COUNT ( * ) * + + 49 * - CASE - 78 WHEN 94 THEN NULL ELSE 9 * - 63 * + 48 - + - 87 + 14 END / - 73 + - + 13 + 80 + - 33 END AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 82, + + 99 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT DISTINCT + 49 * 99 * - NULLIF ( + + NULLIF ( ( + 26 ), - 53 ), - + COUNT( * ) - - COUNT( * ) ) AS col2
----
-126126

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT + 49 * 99 * - NULLIF ( + + NULLIF ( ( + 26 ), - 53 ), - + COUNT ( * ) - - COUNT ( * ) ) AS col2
----
-126126

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT ALL 23 + - CASE - + 95 WHEN - + ( + + 55 ) - - COALESCE ( + - COUNT( * ), - NULLIF ( - + 43, - 75 - ( - + 54 ) + ( - COALESCE ( - + 19, 72 * - + ( - - 19 ) ) ) ), 13 ) * + - 80 THEN + COUNT( + 36 ) WHEN + 31 THEN - - 50 END / + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL 23 + - CASE - + 95 WHEN - + ( + + 55 ) - - COALESCE ( + - COUNT ( * ), - NULLIF ( - + 43, - 75 - ( - + 54 ) + ( - COALESCE ( - + 19, 72 * - + ( - - 19 ) ) ) ), 13 ) * + - 80 THEN + COUNT ( + 36 ) WHEN + 31 THEN - - 50 END / + + 65
----
NULL

query I rowsort
SELECT DISTINCT - 22 + + + 4 AS col0
----
-18

query I rowsort
SELECT ALL CASE - 77 WHEN + 33 * - 36 THEN + 89 - + 40 ELSE NULL END + + 56 - - 79 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 58 + + 90 AS col1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT DISTINCT MIN( 53 ) + + 1
----
54

skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT MIN ( 53 ) + + 1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT DISTINCT CASE 97 WHEN COUNT( * ) THEN - 48 + + 86 + - 9 + - 39 * - - 70 * 88 ELSE + - ( - 83 ) + + + COALESCE ( - COUNT( * ), ( - 9 ) ) * - 19 + + SUM( ALL 96 ) END col1
----
198

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT CASE 97 WHEN COUNT ( * ) THEN - 48 + + 86 + - 9 + - 39 * - - 70 * 88 ELSE + - ( - 83 ) + + + COALESCE ( - COUNT ( * ), ( - 9 ) ) * - 19 + + SUM ( ALL 96 ) END col1
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT ALL - 31 * + NULLIF ( + COALESCE ( - 1, - 35 ), - ( + + CAST( NULL AS SIGNED ) ) )
----
31

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL - 31 * + NULLIF ( + COALESCE ( - 1, - 35 ), - ( + + CAST ( NULL AS INTEGER ) ) )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT - NULLIF ( + ( COALESCE ( - + 22, - + ( - 27 ) + + 97 ) ), CAST( NULL AS SIGNED ) ) - + 86
----
-64

skipif mysql # not compatible
query I rowsort label-5006
SELECT - NULLIF ( + ( COALESCE ( - + 22, - + ( - 27 ) + + 97 ) ), CAST ( NULL AS INTEGER ) ) - + 86
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT - NULLIF ( - + 80, - NULLIF ( - + 15, 27 + + CAST( NULL AS SIGNED ) ) + - - ( - COALESCE ( - 64, - 38 ) ) ) + - + 74
----
6

skipif mysql # not compatible
query I rowsort label-5007
SELECT - NULLIF ( - + 80, - NULLIF ( - + 15, 27 + + CAST ( NULL AS INTEGER ) ) + - - ( - COALESCE ( - 64, - 38 ) ) ) + - + 74
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5008
SELECT DISTINCT ( + ( - MAX( DISTINCT - 28 ) ) ) DIV + + 95 - + COUNT( * ) + 6 DIV - 38 + 56
----
55

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT ( + ( - MAX ( DISTINCT - 28 ) ) ) / + + 95 - + COUNT ( * ) + 6 / - 38 + 56
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT ALL COUNT( ALL - NULLIF ( 38, - 88 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL COUNT ( ALL - NULLIF ( 38, - 88 ) )
----
1

query I rowsort
SELECT ALL - 55 * + 14 AS col1
----
-770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5011
SELECT + CASE - - CAST( + COUNT( * ) AS SIGNED ) WHEN + + 90 THEN NULL WHEN + CAST( 73 AS SIGNED ) THEN 60 + - + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * COUNT( * ) * + 82 ELSE CAST( - 64 AS SIGNED ) END + + + 14 + 14 * - + 80 DIV COUNT( DISTINCT 43 ) + + - ( + + COUNT( * ) ) DIV COALESCE ( 96, + AVG ( + 47 ) )
----
-1170

skipif mysql # not compatible
query I rowsort label-5011
SELECT + CASE - - CAST ( + COUNT ( * ) AS INTEGER ) WHEN + + 90 THEN NULL WHEN + CAST ( 73 AS INTEGER ) THEN 60 + - + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * + 82 ELSE CAST ( - 64 AS INTEGER ) END + + + 14 + 14 * - + 80 / COUNT ( DISTINCT 43 ) + + - ( + + COUNT ( * ) ) / COALESCE ( 96, + AVG ( + 47 ) )
----
-1170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5012
SELECT - ( + + MAX( 58 ) ) * - 51 DIV COUNT( * ) + + + 68 + + - 95 * - 28 + - 28 AS col2
----
5658

skipif mysql # not compatible
query I rowsort label-5012
SELECT - ( + + MAX ( 58 ) ) * - 51 / COUNT ( * ) + + + 68 + + - 95 * - 28 + - 28 AS col2
----
5658

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT DISTINCT + COUNT( * ) * - 81 * 73
----
-5913

skipif mysql # not compatible
query I rowsort label-5014
SELECT DISTINCT + COUNT ( * ) * - 81 * 73
----
-5913

query I rowsort
SELECT + 13 * + 70 AS col0
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT - 11 * MAX( DISTINCT - + 60 ) - - - 29 + - + 94 + COUNT( * ) + + 48
----
586

skipif mysql # not compatible
query I rowsort label-5016
SELECT - 11 * MAX ( DISTINCT - + 60 ) - - - 29 + - + 94 + COUNT ( * ) + + 48
----
586

query I rowsort
SELECT + - 65 * + COALESCE ( - + 25, + ( - COALESCE ( + 62, + 5 ) ) ) AS col1
----
1625

query I rowsort
SELECT ALL + + COALESCE ( + 19, NULLIF ( 11, + 46 ) )
----
19

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

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

query I rowsort
SELECT - 54 * - ( + 97 ) AS col0
----
5238

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT 34 * + 29 * 8 - - + COUNT( * ) + - - 47 AS col2
----
7936

skipif mysql # not compatible
query I rowsort label-5021
SELECT 34 * + 29 * 8 - - + COUNT ( * ) + - - 47 AS col2
----
7936

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT NULLIF ( - MAX( + 26 ), + + COUNT( * ) ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-5022
SELECT NULLIF ( - MAX ( + 26 ), + + COUNT ( * ) ) AS col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5023
SELECT + 18 - - + CAST( 54 AS SIGNED ), 25 AS col2
----
72
25

skipif mysql # not compatible
query II rowsort label-5023
SELECT + 18 - - + CAST ( 54 AS INTEGER ), 25 AS col2
----
72
25

query I rowsort
SELECT - 24 * + 32
----
-768

query I rowsort
SELECT ALL - 35 * - 38 AS col0
----
1330

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT CASE - + 48 WHEN + 27 THEN NULL WHEN + + 59 THEN NULL ELSE 31 * - COUNT( * ) * - 11 + + 85 END AS col0
----
426

skipif mysql # not compatible
query I rowsort label-5026
SELECT CASE - + 48 WHEN + 27 THEN NULL WHEN + + 59 THEN NULL ELSE 31 * - COUNT ( * ) * - 11 + + 85 END AS col0
----
426

query II rowsort
SELECT + 83 AS col2, + 30
----
83
30

query I rowsort
SELECT ALL 16 * + - 58 + - + 30
----
-958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5029
SELECT CAST( 12 AS SIGNED ) * + CASE - - SUM( - 73 ) WHEN - + AVG ( + 95 ) THEN + - ( + + COUNT( DISTINCT 65 ) ) + + 57 END - + NULLIF ( - COUNT( * ), + 1 + ( - 25 ) * 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5029
SELECT CAST ( 12 AS INTEGER ) * + CASE - - SUM ( - 73 ) WHEN - + AVG ( + 95 ) THEN + - ( + + COUNT ( DISTINCT 65 ) ) + + 57 END - + NULLIF ( - COUNT ( * ), + 1 + ( - 25 ) * 26 )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5031
SELECT - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) - - 92 + + - 99 - - ( + + 69 ) - - 85 * + 29 * - - CAST( NULL AS SIGNED ) * - 73 + - - 47 + - + CAST( 96 AS SIGNED ) - 35 + + 20 * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) - - 92 + + - 99 - - ( + + 69 ) - - 85 * + 29 * - - CAST ( NULL AS INTEGER ) * - 73 + - - 47 + - + CAST ( 96 AS INTEGER ) - 35 + + 20 * + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL COALESCE ( 9, COUNT( * ), + 67 * - 99 ) * - 15 + + 79 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL COALESCE ( 9, COUNT ( * ), + 67 * - 99 ) * - 15 + + 79 AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5033
SELECT ALL CAST( + NULLIF ( - - SUM( - + 52 ), - 21 ) AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL CAST ( + NULLIF ( - - SUM ( - + 52 ), - 21 ) AS INTEGER )
----
-52

query I rowsort
SELECT ALL - 45 + 62 AS col2
----
17

query I rowsort
SELECT - 51 + - + CASE COALESCE ( 48, - + 7 ) WHEN + 73 * + - 65 * 59 THEN + 79 WHEN - 97 THEN NULL ELSE + - 3 END * + 69
----
156

query I rowsort
SELECT ALL ( + + 52 ) AS col0
----
52

query II rowsort
SELECT 16 AS col1, 34 * + - 65
----
16
-2210

query I rowsort
SELECT - - 70 * + - 80
----
-5600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5039
SELECT ALL - CASE + 83 WHEN + 74 + 36 + 47 * - 44 * - + 58 * - + 11 / 21 THEN NULL WHEN + 88 THEN NULL ELSE SUM( + 75 ) / CAST( NULL AS DECIMAL ) * + NULLIF ( - - 2, ( - + MAX( ALL - 32 ) ) + - NULLIF ( - 59, CAST( - + AVG ( DISTINCT + 58 ) AS SIGNED ) ) ) - - SUM( + 88 ) END * - 60 * 27 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL - CASE + 83 WHEN + 74 + 36 + 47 * - 44 * - + 58 * - + 11 / 21 THEN NULL WHEN + 88 THEN NULL ELSE SUM ( + 75 ) / CAST ( NULL AS REAL ) * + NULLIF ( - - 2, ( - + MAX ( ALL - 32 ) ) + - NULLIF ( - 59, CAST ( - + AVG ( DISTINCT + 58 ) AS INTEGER ) ) ) - - SUM ( + 88 ) END * - 60 * 27 col0
----
NULL

query I rowsort
SELECT ALL + + 81 - + ( - - 59 )
----
22

query II rowsort
SELECT ALL + 69, 48 col1
----
69
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT DISTINCT - 26 * + + COALESCE ( + - SUM( DISTINCT + 52 ), - 12 ) + - ( - COUNT( * ) ) AS col1
----
1353

skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT - 26 * + + COALESCE ( + - SUM ( DISTINCT + 52 ), - 12 ) + - ( - COUNT ( * ) ) AS col1
----
1353

query I rowsort
SELECT ALL - 15 * + + ( - 32 ) AS col1
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL COUNT( * ) * - 15 * + + 83
----
-1245

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL COUNT ( * ) * - 15 * + + 83
----
-1245

query II rowsort
SELECT 39 AS col0, 29 + - - 76 + + 58
----
39
163

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5047
SELECT MIN( DISTINCT - CAST( 63 AS SIGNED ) ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-5047
SELECT MIN ( DISTINCT - CAST ( 63 AS INTEGER ) ) AS col2
----
-63

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

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

query I rowsort
SELECT + - 80 * - 57
----
4560

query I rowsort
SELECT 77 * + + 67 - - 79 - + 47
----
5191

query II rowsort
SELECT ALL + - 42 col2, + 64
----
-42
64

query I rowsort
SELECT ALL 30 * 96
----
2880

onlyif mysql # aggregate syntax: 
query II rowsort label-5053
SELECT + COUNT( * ) AS col2, COUNT( * ) - 38 - 32 * + COUNT( * )
----
1
-69

skipif mysql # not compatible
query II rowsort label-5053
SELECT + COUNT ( * ) AS col2, COUNT ( * ) - 38 - 32 * + COUNT ( * )
----
1
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT ALL - COUNT( * ) + + CASE + + COALESCE ( 45, 0 + - 10 ) WHEN - + 97 * + - 71 THEN + COUNT( * ) * 81 ELSE - 52 * + 28 + ( 87 ) + - - 72 + - + 16 END * + + ( - 16 )
----
21007

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL - COUNT ( * ) + + CASE + + COALESCE ( 45, 0 + - 10 ) WHEN - + 97 * + - 71 THEN + COUNT ( * ) * 81 ELSE - 52 * + 28 + ( 87 ) + - - 72 + - + 16 END * + + ( - 16 )
----
21007

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT ALL 36 + - 53 - COUNT( * ) * + 29 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL 36 + - 53 - COUNT ( * ) * + 29 AS col2
----
-46

query I rowsort
SELECT 83 - - + 48
----
131

query I rowsort
SELECT 67 + + + 52
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT ALL - 76 + - CASE - 31 WHEN - 59 / - 19 * + + 66 THEN NULL WHEN + + 40 + - 8 THEN + 49 ELSE + 30 * + - MIN( + - 78 ) END
----
-2416

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL - 76 + - CASE - 31 WHEN - 59 / - 19 * + + 66 THEN NULL WHEN + + 40 + - 8 THEN + 49 ELSE + 30 * + - MIN ( + - 78 ) END
----
-2416

query I rowsort
SELECT DISTINCT 53 * 54 * - 50 AS col2
----
-143100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5061
SELECT ( COUNT( * ) ) * 54 * + ( + - MIN( - 5 ) ) + + ( + 9 ) * + 0 * - + 68 DIV - - COUNT( * ) + 52 + 73 + ( + + COALESCE ( - 85, - - ( - + NULLIF ( - + 28, + + 53 ) ), + SUM( + - 96 ) * 54 * + 6 + 20 DIV 90 ) ) * - 58
----
5325

skipif mysql # not compatible
query I rowsort label-5061
SELECT ( COUNT ( * ) ) * 54 * + ( + - MIN ( - 5 ) ) + + ( + 9 ) * + 0 * - + 68 / - - COUNT ( * ) + 52 + 73 + ( + + COALESCE ( - 85, - - ( - + NULLIF ( - + 28, + + 53 ) ), + SUM ( + - 96 ) * 54 * + 6 + 20 / 90 ) ) * - 58
----
5325

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ALL COUNT( * ) + - 26 * MAX( NULLIF ( + 27, + 51 ) )
----
-701

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL COUNT ( * ) + - 26 * MAX ( NULLIF ( + 27, + 51 ) )
----
-701

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT MAX( DISTINCT - 95 ) * - 62
----
5890

skipif mysql # not compatible
query I rowsort label-5065
SELECT MAX ( DISTINCT - 95 ) * - 62
----
5890

query I rowsort
SELECT 18 * 67 * + - 26
----
-31356

onlyif mysql # DIV for integer division: 
query I rowsort label-5067
SELECT ALL 40 DIV - 35
----
-1

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL 40 / - 35
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5068
SELECT MIN( ALL ( + 2 ) ) + - CAST( 70 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-5068
SELECT MIN ( ALL ( + 2 ) ) + - CAST ( 70 AS INTEGER )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5069
SELECT ALL + 69 * - CASE - ( + 2 ) WHEN - - 94 * - COALESCE ( - CAST( NULL AS SIGNED ), 92, - 64 + COUNT( * ) + + + 72 + 33 + + COUNT( * ) * - CASE + ( 39 ) WHEN - 12 THEN AVG ( DISTINCT 99 ) END / + - 71 ) + 9 THEN NULL ELSE + CAST( NULL AS SIGNED ) END * - 66 + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL + 69 * - CASE - ( + 2 ) WHEN - - 94 * - COALESCE ( - CAST ( NULL AS INTEGER ), 92, - 64 + COUNT ( * ) + + + 72 + 33 + + COUNT ( * ) * - CASE + ( 39 ) WHEN - 12 THEN AVG ( DISTINCT 99 ) END / + - 71 ) + 9 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END * - 66 + + 26
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5071
SELECT DISTINCT - - CAST( - ( - 27 ) AS SIGNED ) - + - 66 + - - 28 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT - - CAST ( - ( - 27 ) AS INTEGER ) - + - 66 + - - 28 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT + SUM( - - 2 ) * 30 + + 42 + - - 41 * + + 83 AS col2
----
3505

skipif mysql # not compatible
query I rowsort label-5072
SELECT + SUM ( - - 2 ) * 30 + + 42 + - - 41 * + + 83 AS col2
----
3505

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT COALESCE ( - COALESCE ( - 52, + + 17 ), - ( + COUNT( + 73 ) ) + - 94 * + 43 * - - 74 ) * - + COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-5073
SELECT COALESCE ( - COALESCE ( - 52, + + 17 ), - ( + COUNT ( + 73 ) ) + - 94 * + 43 * - - 74 ) * - + COUNT ( * )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT + 7 + - SUM( CASE - 39 WHEN 47 + + 78 THEN + 45 + - 39 WHEN - 78 * - + 90 + - + 41 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5074
SELECT + 7 + - SUM ( CASE - 39 WHEN 47 + + 78 THEN + 45 + - 39 WHEN - 78 * - + 90 + - + 41 THEN NULL END )
----
NULL

query I rowsort
SELECT 20 - + 7 + + 84
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5076
SELECT - CASE 65 WHEN 13 THEN + 8 DIV + 23 WHEN - 66 THEN NULL ELSE + NULLIF ( - 78, - ( + + COUNT( * ) ) ) * - + 93 + 19 * COUNT( * ) + + 76 + + + ( 90 ) + - - CAST( NULL AS SIGNED ) + 7 * + - ( - COUNT( * ) ) END + - AVG ( DISTINCT - 94 ) AS col0, - 9 - - - COALESCE ( - 85, COUNT( * ) * - + 98 DIV + + CAST( COUNT( * ) AS SIGNED ) - - CAST( - 1 AS SIGNED ) + - 6 DIV + ( - - 81 ) DIV COUNT( * ) ) + 41
----
NULL
117

skipif mysql # not compatible
query II rowsort label-5076
SELECT - CASE 65 WHEN 13 THEN + 8 / + 23 WHEN - 66 THEN NULL ELSE + NULLIF ( - 78, - ( + + COUNT ( * ) ) ) * - + 93 + 19 * COUNT ( * ) + + 76 + + + ( 90 ) + - - CAST ( NULL AS INTEGER ) + 7 * + - ( - COUNT ( * ) ) END + - AVG ( DISTINCT - 94 ) AS col0, - 9 - - - COALESCE ( - 85, COUNT ( * ) * - + 98 / + + CAST ( COUNT ( * ) AS INTEGER ) - - CAST ( - 1 AS INTEGER ) + - 6 / + ( - - 81 ) / COUNT ( * ) ) + 41
----
NULL
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5077
SELECT ALL CAST( + COALESCE ( - 45, + COUNT( 0 ) + + 44, - COUNT( * ) ) AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL CAST ( + COALESCE ( - 45, + COUNT ( 0 ) + + 44, - COUNT ( * ) ) AS INTEGER ) AS col1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5078
SELECT 27 + - 15 + - + CAST( NULL AS SIGNED ) * - 81 / - - COUNT( * ) + + 46 * - COUNT( * ) + - 53 * + 86 * + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT 27 + - 15 + - + CAST ( NULL AS INTEGER ) * - 81 / - - COUNT ( * ) + + 46 * - COUNT ( * ) + - 53 * + 86 * + 39 AS col0
----
NULL

query II rowsort
SELECT ALL + - 36 + - 85 col0, - 64 AS col2
----
-121
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5080
SELECT DISTINCT CAST( - 76 AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT CAST ( - 76 AS INTEGER )
----
-76

query I rowsort
SELECT DISTINCT + 84 + + 47 * - 38
----
-1702

query II rowsort
SELECT DISTINCT + + 7 + 10 * 21 - + - 19 AS col2, 37 * - 68 AS col1
----
236
-2516

query I rowsort
SELECT ALL - - 44 + 98 + 48 AS col0
----
190

onlyif mysql # aggregate syntax: 
query II rowsort label-5084
SELECT ALL + + NULLIF ( - 36, - COUNT( * ) ) * - 11 AS col1, - 37
----
396
-37

skipif mysql # not compatible
query II rowsort label-5084
SELECT ALL + + NULLIF ( - 36, - COUNT ( * ) ) * - 11 AS col1, - 37
----
396
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5085
SELECT 93 + + CAST( + MIN( DISTINCT + 9 ) AS SIGNED ) AS col0
----
102

skipif mysql # not compatible
query I rowsort label-5085
SELECT 93 + + CAST ( + MIN ( DISTINCT + 9 ) AS INTEGER ) AS col0
----
102

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5087
SELECT 73 * - MAX( - 56 ) AS col1, 2
----
4088
2

skipif mysql # not compatible
query II rowsort label-5087
SELECT 73 * - MAX ( - 56 ) AS col1, 2
----
4088
2

query I rowsort
SELECT ALL - NULLIF ( - - 50, - - NULLIF ( - - 45, - 61 ) )
----
-50

query I rowsort
SELECT ALL - ( - 90 ) AS col0
----
90

query I rowsort
SELECT DISTINCT - 63 + 12 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5091
SELECT ALL CASE WHEN NOT NULL IS NOT NULL THEN + 86 END * + 88 * - 41, + 23 * COUNT( * ) AS col0
----
-310288
23

skipif mysql # not compatible
query II rowsort label-5091
SELECT ALL CASE WHEN NOT NULL IS NOT NULL THEN + 86 END * + 88 * - 41, + 23 * COUNT ( * ) AS col0
----
-310288
23

query I rowsort
SELECT ALL - 45 - 84 + 46 * - 7
----
-451

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT MAX( - + 30 ) - + NULLIF ( - 50, + 24 + - 15 )
----
20

skipif mysql # not compatible
query I rowsort label-5093
SELECT MAX ( - + 30 ) - + NULLIF ( - 50, + 24 + - 15 )
----
20

query I rowsort
SELECT ALL 99 * 60
----
5940

onlyif mysql # aggregate syntax: 
query II rowsort label-5095
SELECT COUNT( * ) * + 50 * + 68 AS col2, 76 AS col1
----
3400
76

skipif mysql # not compatible
query II rowsort label-5095
SELECT COUNT ( * ) * + 50 * + 68 AS col2, 76 AS col1
----
3400
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT 98 * + 10 * COUNT( + - 12 ) / CASE - 81 WHEN - + CASE 51 WHEN - 98 * 21 THEN + MAX( 48 ) ELSE NULL END * 9 + - 23 THEN + 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT 98 * + 10 * COUNT ( + - 12 ) / CASE - 81 WHEN - + CASE 51 WHEN - 98 * 21 THEN + MAX ( 48 ) ELSE NULL END * 9 + - 23 THEN + 32 END AS col2
----
NULL

query I rowsort
SELECT NULLIF ( + 14, 11 ) + 48 * + 51 * - - 62 * + 54 AS col1
----
8195918

query I rowsort
SELECT ALL 93 - 66 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT COUNT( * ) - - 60 + 28 * - 66
----
-1787

skipif mysql # not compatible
query I rowsort label-5099
SELECT COUNT ( * ) - - 60 + 28 * - 66
----
-1787

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

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

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

query I rowsort
SELECT 73 * + 63
----
4599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5103
SELECT + CASE COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN + COUNT( DISTINCT + - 9 ) END + - - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5103
SELECT + CASE COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN + COUNT ( DISTINCT + - 9 ) END + - - 67
----
NULL

query II rowsort
SELECT ALL 83 AS col2, - 77 + - 78 - - 0
----
83
-155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5105
SELECT DISTINCT - COUNT( * ) DIV - SUM( - - 62 ) * - 7 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT - COUNT ( * ) / - SUM ( - - 62 ) * - 7 AS col0
----
0

query I rowsort
SELECT - 79 - - 19
----
-60

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

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

query I rowsort
SELECT DISTINCT + 83 + + 74 AS col0
----
157

query I rowsort
SELECT DISTINCT - - 71 * + 97
----
6887

onlyif mysql # DIV for integer division: 
query I rowsort label-5110
SELECT ALL + 55 + - + 57 DIV ( + 95 )
----
55

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL + 55 + - + 57 / ( + 95 )
----
55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5112
SELECT - CAST( + ( 82 ) AS SIGNED ) AS col2, + 98 AS col2
----
-82
98

skipif mysql # not compatible
query II rowsort label-5112
SELECT - CAST ( + ( 82 ) AS INTEGER ) AS col2, + 98 AS col2
----
-82
98

query I rowsort
SELECT + 21 + - 44
----
-23

query I rowsort
SELECT NULLIF ( - 44, - - 57 ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT - 12 - 27 + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-5115
SELECT - 12 - 27 + COUNT ( * )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5116
SELECT + ( 5 ) * - - MAX( - - 60 ) * 10 * - 39 + - ( 65 ) + 76 * + - CAST( - - 46 AS SIGNED )
----
-120561

skipif mysql # not compatible
query I rowsort label-5116
SELECT + ( 5 ) * - - MAX ( - - 60 ) * 10 * - 39 + - ( 65 ) + 76 * + - CAST ( - - 46 AS INTEGER )
----
-120561

query I rowsort
SELECT DISTINCT + 4 * ( 38 ) AS col2
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT - 41 + - - COUNT( * ) + - 55 * + COUNT( * ) * + 44 * - 66 + + + COUNT( * )
----
159681

skipif mysql # not compatible
query I rowsort label-5118
SELECT - 41 + - - COUNT ( * ) + - 55 * + COUNT ( * ) * + 44 * - 66 + + + COUNT ( * )
----
159681

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT + COUNT( * ) * + 19 + - - 85 + - 28 + - - 39 * + 27 + + - 22 * - 52
----
2273

skipif mysql # not compatible
query I rowsort label-5119
SELECT + COUNT ( * ) * + 19 + - - 85 + - 28 + - - 39 * + 27 + + - 22 * - 52
----
2273

query I rowsort
SELECT - 59 * - 20 AS col2
----
1180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5121
SELECT DISTINCT + COUNT( * ) * 20 DIV - + 46
----
0

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT + COUNT ( * ) * 20 / - + 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT - 35 - - - COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5122
SELECT - 35 - - - COUNT ( * ) AS col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5123
SELECT ALL + MIN( + 51 ), 24 DIV + + 31 - + 43 * + 31 * + 0 AS col0
----
51
0

skipif mysql # not compatible
query II rowsort label-5123
SELECT ALL + MIN ( + 51 ), 24 / + + 31 - + 43 * + 31 * + 0 AS col0
----
51
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5124
SELECT - CAST( NULL AS SIGNED ) + - ( - 92 ) + - 49 / - SUM( ALL + 67 ) * 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT - CAST ( NULL AS INTEGER ) + - ( - 92 ) + - 49 / - SUM ( ALL + 67 ) * 68 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5125
SELECT NULLIF ( + + CAST( NULL AS SIGNED ), AVG ( - 72 ) * ( + 16 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT NULLIF ( + + CAST ( NULL AS INTEGER ), AVG ( - 72 ) * ( + 16 ) ) AS col1
----
NULL

query II rowsort
SELECT ALL - 41 * - 16 AS col0, + 60 AS col2
----
656
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT 14 * - + 79 * - - ( + - MIN( ALL + + 42 ) ) * - 65 - 99 + + COUNT( * ) + + 27
----
-3019451

skipif mysql # not compatible
query I rowsort label-5127
SELECT 14 * - + 79 * - - ( + - MIN ( ALL + + 42 ) ) * - 65 - 99 + + COUNT ( * ) + + 27
----
-3019451

onlyif mysql # DIV for integer division: 
query I rowsort label-5128
SELECT ALL 87 DIV - 5
----
-17

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL 87 / - 5
----
-17

query I rowsort
SELECT - 93 * - 73 AS col1
----
6789

query I rowsort
SELECT - 84 * + + 74 * 95 + 52
----
-590468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5131
SELECT ALL + CASE - + COUNT( * ) WHEN - 92 + - - 77 THEN NULL WHEN + - COUNT( + + 54 ) + + ( - 88 ) * 99 * + - COUNT( * ) + - 7 THEN - - 99 + + - 64 + 66 + - CAST( NULL AS DECIMAL ) * + SUM( + CAST( NULL AS SIGNED ) ) WHEN + 65 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL + CASE - + COUNT ( * ) WHEN - 92 + - - 77 THEN NULL WHEN + - COUNT ( + + 54 ) + + ( - 88 ) * 99 * + - COUNT ( * ) + - 7 THEN - - 99 + + - 64 + 66 + - CAST ( NULL AS REAL ) * + SUM ( + CAST ( NULL AS INTEGER ) ) WHEN + 65 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + 69 * - 77
----
-5313

onlyif mysql # DIV for integer division: 
query I rowsort label-5133
SELECT + 27 + - 98 DIV + 43
----
25

skipif mysql # not compatible
query I rowsort label-5133
SELECT + 27 + - 98 / + 43
----
25

query II rowsort
SELECT 15 AS col0, - 36
----
15
-36

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

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

query I rowsort
SELECT + + 25 * - 37
----
-925

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

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

query I rowsort
SELECT - NULLIF ( 53, 96 ) AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5139
SELECT ALL - 45 + + CASE - 94 WHEN 99 + + 6 * 59 - + 6 THEN - NULLIF ( 96, - 55 - + COALESCE ( + 54, - CAST( + COUNT( * ) AS SIGNED ), + + 20 ) * - - SUM( DISTINCT - ( + 34 ) ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL - 45 + + CASE - 94 WHEN 99 + + 6 * 59 - + 6 THEN - NULLIF ( 96, - 55 - + COALESCE ( + 54, - CAST ( + COUNT ( * ) AS INTEGER ), + + 20 ) * - - SUM ( DISTINCT - ( + 34 ) ) ) ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5141
SELECT 70 AS col2, 3 * MIN( + - ( + CAST( NULL AS DECIMAL ) ) ) + + NULLIF ( + - 52, + 74 + 95 - - 28 * - 3 ) * + + 89
----
70
NULL

skipif mysql # not compatible
query II rowsort label-5141
SELECT 70 AS col2, 3 * MIN ( + - ( + CAST ( NULL AS REAL ) ) ) + + NULLIF ( + - 52, + 74 + 95 - - 28 * - 3 ) * + + 89
----
70
NULL

query I rowsort
SELECT ALL + - ( + 49 ) * + - 77 * - 61 * + + 48
----
-11047344

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

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

query II rowsort
SELECT DISTINCT 6 AS col0, 99 + - 15 + - ( ( - 5 ) ) AS col1
----
6
89

query II rowsort
SELECT ALL + 13 col1, + 18
----
13
18

query I rowsort
SELECT + 39 + 37 * + 85
----
3184

query I rowsort
SELECT ALL 8 + + 41 * - 41
----
-1673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5148
SELECT - 92 * - MIN( + CASE - 88 WHEN + 68 * + 79 + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 64 * 30 + + 65 + + 55 + + + CAST( ( + - 86 ) AS SIGNED ) + 29 THEN CAST( NULL AS DECIMAL ) * + 3 + + - 45 - - 37 END ) + + 82 - - + CASE + - 46 WHEN - + 79 / - CAST( NULL AS SIGNED ) THEN NULL ELSE + 17 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT - 92 * - MIN ( + CASE - 88 WHEN + 68 * + 79 + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 64 * 30 + + 65 + + 55 + + + CAST ( ( + - 86 ) AS INTEGER ) + 29 THEN CAST ( NULL AS REAL ) * + 3 + + - 45 - - 37 END ) + + 82 - - + CASE + - 46 WHEN - + 79 / - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 17 END AS col1
----
NULL

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

query II rowsort
SELECT 51 AS col0, CASE 87 WHEN - + 70 THEN 78 WHEN - - 15 THEN NULL END AS col0
----
51
NULL

query I rowsort
SELECT + + ( + - 81 ) + 69 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-5152
SELECT ALL - COUNT( * ) + COALESCE ( 83, + COALESCE ( + 28, + 15 ) ) col1, + 38
----
82
38

skipif mysql # not compatible
query II rowsort label-5152
SELECT ALL - COUNT ( * ) + COALESCE ( 83, + COALESCE ( + 28, + 15 ) ) col1, + 38
----
82
38

onlyif mysql # aggregate syntax: 
query II rowsort label-5153
SELECT - - COUNT( * ), 45 col2
----
1
45

skipif mysql # not compatible
query II rowsort label-5153
SELECT - - COUNT ( * ), 45 col2
----
1
45

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5155
SELECT ALL 77 DIV + 54
----
1

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL 77 / + 54
----
1

query II rowsort
SELECT + 89 + - 15 AS col2, 75 AS col1
----
74
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL + COUNT( * ) * 25 col2
----
25

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL + COUNT ( * ) * 25 col2
----
25

query I rowsort
SELECT + ( - + 18 ) + - 6 * - 44 AS col1
----
246

query I rowsort
SELECT ALL 71 - - 39 + - 92 * 61 AS col1
----
-5502

query I rowsort
SELECT ALL 30 * + 61
----
1830

query I rowsort
SELECT + 36 * - 29
----
-1044

onlyif mysql # DIV for integer division: 
query I rowsort label-5162
SELECT + 53 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-5162
SELECT + 53 / 93
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5163
SELECT - 59 DIV ( 28 ) AS col2, COUNT( * )
----
-2
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5164
SELECT ALL COUNT( * ) * - ( 72 ) * - MIN( - 39 ) * + + 99 + + 47 + + + 30 - - 28 * CASE - + 37 WHEN - 1 THEN 80 ELSE CASE ( 78 ) WHEN - 76 + - + CAST( NULL AS SIGNED ) + + 21 / + - ( + ( + NULLIF ( + + 14, + + CASE 25 WHEN + - ( - COUNT( * ) ) THEN + 72 END ) ) ) THEN NULL WHEN + + 82 THEN 5 + 63 ELSE NULL END END * + 7 / + CAST( NULL AS SIGNED ) + 5 / + + ( - MIN( ALL - 57 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL COUNT ( * ) * - ( 72 ) * - MIN ( - 39 ) * + + 99 + + 47 + + + 30 - - 28 * CASE - + 37 WHEN - 1 THEN 80 ELSE CASE ( 78 ) WHEN - 76 + - + CAST ( NULL AS INTEGER ) + + 21 / + - ( + ( + NULLIF ( + + 14, + + CASE 25 WHEN + - ( - COUNT ( * ) ) THEN + 72 END ) ) ) THEN NULL WHEN + + 82 THEN 5 + 63 ELSE NULL END END * + 7 / + CAST ( NULL AS INTEGER ) + 5 / + + ( - MIN ( ALL - 57 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5165
SELECT CAST( COUNT( * ) AS SIGNED ) AS col0, - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-5165
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col0, - COUNT ( * ) AS col2
----
1
-1

query I rowsort
SELECT DISTINCT + CASE - 29 WHEN - 37 * - - 68 THEN 52 ELSE - 87 * - 31 END col0
----
2697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5167
SELECT CAST( - - 68 AS SIGNED ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5167
SELECT CAST ( - - 68 AS INTEGER ) AS col2
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT DISTINCT + ( SUM( - 82 ) ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT + ( SUM ( - 82 ) ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT + MAX( - + 61 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT + MAX ( - + 61 ) AS col2
----
-61

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5172
SELECT ALL + CASE + 22 WHEN + 97 + 16 THEN - 67 + + + COUNT( DISTINCT 34 ) * - COUNT( * ) + 86 * 71 END AS col1, + 63 AS col1
----
NULL
63

skipif mysql # not compatible
query II rowsort label-5172
SELECT ALL + CASE + 22 WHEN + 97 + 16 THEN - 67 + + + COUNT ( DISTINCT 34 ) * - COUNT ( * ) + 86 * 71 END AS col1, + 63 AS col1
----
NULL
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5173
SELECT - 69 * 33 AS col2, - MAX( + - 80 ) + - MIN( + NULLIF ( - 78, - 11 ) ) AS col0
----
-2277
158

skipif mysql # not compatible
query II rowsort label-5173
SELECT - 69 * 33 AS col2, - MAX ( + - 80 ) + - MIN ( + NULLIF ( - 78, - 11 ) ) AS col0
----
-2277
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5174
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) - 28 AS col1, - 91 - 14 AS col1
----
NULL
-105

skipif mysql # not compatible
query II rowsort label-5174
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) - 28 AS col1, - 91 - 14 AS col1
----
NULL
-105

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

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

query I rowsort
SELECT ALL - 61 * + NULLIF ( 7, + - 96 ) + - 8 AS col0
----
-435

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

skipif mysql # not compatible
query I rowsort label-5177
SELECT - 16 + - + COUNT ( * ) + - 32 AS col2
----
-49

query I rowsort
SELECT ALL 42 * - 57 + 19
----
-2375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5179
SELECT ALL COUNT( * ) * + 64 + - - 32 * - 3 + + 52 + + - 20 DIV - 16
----
21

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL COUNT ( * ) * + 64 + - - 32 * - 3 + + 52 + + - 20 / - 16
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5180
SELECT DISTINCT - + 72 * + ( + 40 ) * + + 16 - - CAST( NULL AS SIGNED ) + - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT - + 72 * + ( + 40 ) * + + 16 - - CAST ( NULL AS INTEGER ) + - - 17
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5181
SELECT - 28 - - 22 * - 67 AS col2, 88 + - CASE + 78 WHEN + 93 THEN - 39 * CASE - 23 WHEN + 30 / 95 THEN - + 96 * - 81 / + 71 + 73 ELSE - 16 * 62 / - COUNT( * ) + + 65 END + + + COUNT( * ) + + 35 * + 37 * ( - + 67 ) * - 17 * + - 4 * - 46 * NULLIF ( - - 11, - 86 * 4 * + 34 ) + - CASE + 8 WHEN + - 11 THEN - 60 ELSE NULL END * + 49 WHEN ( ( + 94 ) ) * - COUNT( * ) THEN NULL WHEN 14 THEN 67 WHEN COUNT( * ) * 91 THEN NULL WHEN 49 * 92 THEN - 96 END col1
----
-1502
NULL

skipif mysql # not compatible
query II rowsort label-5181
SELECT - 28 - - 22 * - 67 AS col2, 88 + - CASE + 78 WHEN + 93 THEN - 39 * CASE - 23 WHEN + 30 / 95 THEN - + 96 * - 81 / + 71 + 73 ELSE - 16 * 62 / - COUNT ( * ) + + 65 END + + + COUNT ( * ) + + 35 * + 37 * ( - + 67 ) * - 17 * + - 4 * - 46 * NULLIF ( - - 11, - 86 * 4 * + 34 ) + - CASE + 8 WHEN + - 11 THEN - 60 ELSE NULL END * + 49 WHEN ( ( + 94 ) ) * - COUNT ( * ) THEN NULL WHEN 14 THEN 67 WHEN COUNT ( * ) * 91 THEN NULL WHEN 49 * 92 THEN - 96 END col1
----
-1502
NULL

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

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL - CAST ( + 48 AS INTEGER ) + - 96
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5183
SELECT - CASE + MAX( ALL 32 ) WHEN + - 73 * + ( CAST( - + CASE - 32 WHEN + + 28 THEN - - CAST( - ( + + 99 ) AS SIGNED ) + - 99 ELSE - MAX( ALL 82 ) * - 38 + - - 50 END AS SIGNED ) ) THEN + MIN( DISTINCT ( + 21 ) ) + 83 + + - COUNT( * ) * + COUNT( * ) - - + 86 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5183
SELECT - CASE + MAX ( ALL 32 ) WHEN + - 73 * + ( CAST ( - + CASE - 32 WHEN + + 28 THEN - - CAST ( - ( + + 99 ) AS INTEGER ) + - 99 ELSE - MAX ( ALL 82 ) * - 38 + - - 50 END AS INTEGER ) ) THEN + MIN ( DISTINCT ( + 21 ) ) + 83 + + - COUNT ( * ) * + COUNT ( * ) - - + 86 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 38 * + 56 AS col2
----
2128

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT DISTINCT COUNT( * ) - - + 9 - - 86
----
96

skipif mysql # not compatible
query I rowsort label-5186
SELECT DISTINCT COUNT ( * ) - - + 9 - - 86
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5187
SELECT ALL - 14 * - CAST( + AVG ( + - 98 ) AS SIGNED ) - + 60
----
-1432

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL - 14 * - CAST ( + AVG ( + - 98 ) AS INTEGER ) - + 60
----
-1432

query I rowsort
SELECT ALL + 12 - 3
----
9

query II rowsort
SELECT DISTINCT 60 AS col2, 35 AS col2
----
60
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5190
SELECT ALL 77 - - 21 * - 56, - COUNT( * ) AS col0
----
-1099
-1

skipif mysql # not compatible
query II rowsort label-5190
SELECT ALL 77 - - 21 * - 56, - COUNT ( * ) AS col0
----
-1099
-1

query I rowsort
SELECT 12 * + ( - 42 )
----
-504

query I rowsort
SELECT 82 + + - 77 AS col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5193
SELECT ALL 76 DIV + - 47 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL 76 / + - 47 AS col2
----
-1

query I rowsort
SELECT 23 * + - 82 + NULLIF ( - 4, - 11 * - + 85 + - 2 ) AS col0
----
-1890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5195
SELECT DISTINCT - MIN( DISTINCT CAST( - + 59 AS SIGNED ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT - MIN ( DISTINCT CAST ( - + 59 AS INTEGER ) ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL - SUM( ALL 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL - SUM ( ALL 75 ) AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5197
SELECT - COUNT( * ) * + - CAST( + COUNT( ALL - 1 ) AS SIGNED ) * + 46 + + 88 + - 99 + 9 DIV COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5197
SELECT - COUNT ( * ) * + - CAST ( + COUNT ( ALL - 1 ) AS INTEGER ) * + 46 + + 88 + - 99 + 9 / COUNT ( * ) AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5198
SELECT COUNT( * ) DIV + + 90 * 68 * + 49
----
0

skipif mysql # not compatible
query I rowsort label-5198
SELECT COUNT ( * ) / + + 90 * 68 * + 49
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5199
SELECT DISTINCT MIN( DISTINCT - 45 ) * 16 DIV + 93 * - COUNT( * ) col0
----
7

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT MIN ( DISTINCT - 45 ) * 16 / + 93 * - COUNT ( * ) col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT - 69 * - - MAX( ALL - + 2 ) * - 28 + + - 79 col0
----
-3943

skipif mysql # not compatible
query I rowsort label-5200
SELECT - 69 * - - MAX ( ALL - + 2 ) * - 28 + + - 79 col0
----
-3943

onlyif mysql # aggregate syntax: 
query II rowsort label-5201
SELECT 0 AS col0, 73 + + COUNT( - 15 ) AS col1
----
0
74

skipif mysql # not compatible
query II rowsort label-5201
SELECT 0 AS col0, 73 + + COUNT ( - 15 ) AS col1
----
0
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT 46 DIV 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5202
SELECT 46 / 52 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT + 88 * + COUNT( 38 ) - - + 63 + - + 50 - 98
----
3

skipif mysql # not compatible
query I rowsort label-5204
SELECT + 88 * + COUNT ( 38 ) - - + 63 + - + 50 - 98
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5205
SELECT ( - 38 ) * 18 + - COUNT( * ) + - 37 DIV + 23, - 4 col2
----
-686
-4

skipif mysql # not compatible
query II rowsort label-5205
SELECT ( - 38 ) * 18 + - COUNT ( * ) + - 37 / + 23, - 4 col2
----
-686
-4

query I rowsort
SELECT ALL - 20 + 9 col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5207
SELECT ALL 45 + + - 64 + + 99 + + CAST( - 91 AS SIGNED ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL 45 + + - 64 + + 99 + + CAST ( - 91 AS INTEGER ) AS col2
----
-11

query I rowsort
SELECT ALL - - 68 col0
----
68

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

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

query II rowsort
SELECT DISTINCT - 68 AS col1, - 52
----
-68
-52

query I rowsort
SELECT + 65 * 44
----
2860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5212
SELECT + COUNT( * ) * - + ( + + 55 ) DIV 5 * - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-5212
SELECT + COUNT ( * ) * - + ( + + 55 ) / 5 * - COUNT ( * )
----
11

query I rowsort
SELECT - CASE WHEN NOT NULL IS NULL THEN 23 END + + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT 19 + CASE - CASE + 64 WHEN + 9 THEN 44 + + COUNT( * ) * - - 48 WHEN - + 51 THEN NULL END WHEN + - COUNT( * ) * - + 59 / - - 29 + 65 + - 15 THEN + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT 19 + CASE - CASE + 64 WHEN + 9 THEN 44 + + COUNT ( * ) * - - 48 WHEN - + 51 THEN NULL END WHEN + - COUNT ( * ) * - + 59 / - - 29 + 65 + - 15 THEN + COUNT ( * ) ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - 31 AS col2, 71 AS col2
----
-31
71

query I rowsort
SELECT DISTINCT + 2 - + 52 AS col2
----
-50

query I rowsort
SELECT ALL 71 * ( - 39 ) AS col2
----
-2769

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5219
SELECT + 23 + + + 65 + 0 col1, - CAST( NULL AS SIGNED ) * + + COUNT( * )
----
88
NULL

skipif mysql # not compatible
query II rowsort label-5219
SELECT + 23 + + + 65 + 0 col1, - CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
88
NULL

query I rowsort
SELECT 89 + + 48
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5221
SELECT DISTINCT - ( 65 ) - + - 92 + + 94 + - 27 DIV - 40 + - - 79 * + 15 * - COUNT( * ) * COUNT( * ) AS col1
----
-1064

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT - ( 65 ) - + - 92 + + 94 + - 27 / - 40 + - - 79 * + 15 * - COUNT ( * ) * COUNT ( * ) AS col1
----
-1064

query I rowsort
SELECT - COALESCE ( - - 0, + 85, - 58 )
----
0

query I rowsort
SELECT + 50 + ( + - 61 ) AS col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5224
SELECT 76 DIV ( - MAX( ALL - 87 ) ) * - + 34
----
0

skipif mysql # not compatible
query I rowsort label-5224
SELECT 76 / ( - MAX ( ALL - 87 ) ) * - + 34
----
0

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

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

query II rowsort
SELECT 83 * 13, 39 - - 60 AS col1
----
1079
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5227
SELECT COUNT( * ) + 60, + 92 + - 56 - + 42 AS col2
----
61
-6

skipif mysql # not compatible
query II rowsort label-5227
SELECT COUNT ( * ) + 60, + 92 + - 56 - + 42 AS col2
----
61
-6

query I rowsort
SELECT 21 * - 62 AS col2
----
-1302

query I rowsort
SELECT ALL - 82 * 31
----
-2542

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

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

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

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

query I rowsort
SELECT ALL 70 + 83 - + + 91 col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5233
SELECT ALL - CASE + 2 WHEN - 74 THEN + 44 * 10 DIV - COUNT( * ) + 1 + 70 * 90 * 84 ELSE 93 END * + 31 * CAST( + SUM( ALL 23 ) AS SIGNED ) AS col2
----
-66309

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL - CASE + 2 WHEN - 74 THEN + 44 * 10 / - COUNT ( * ) + 1 + 70 * 90 * 84 ELSE 93 END * + 31 * CAST ( + SUM ( ALL 23 ) AS INTEGER ) AS col2
----
-66309

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT ALL MIN( + ( + + NULLIF ( + 13, + + 51 ) ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL MIN ( + ( + + NULLIF ( + 13, + + 51 ) ) ) AS col2
----
13

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

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

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

skipif mysql # not compatible
query I rowsort label-5236
SELECT 98 - - CAST ( NULL AS INTEGER ) * 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT NULLIF ( - COUNT( * ), - - NULLIF ( 4, 47 * + - 55 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5237
SELECT NULLIF ( - COUNT ( * ), - - NULLIF ( 4, 47 * + - 55 ) ) AS col2
----
-1

query I rowsort
SELECT 37 * - 12
----
-444

onlyif mysql # DIV for integer division: 
query I rowsort label-5239
SELECT ALL - COALESCE ( - - 25, + ( + 60 ), 43 DIV 47 ) * + - 71 + + + 49 col2
----
1824

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL - COALESCE ( - - 25, + ( + 60 ), 43 / 47 ) * + - 71 + + + 49 col2
----
1824

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

skipif mysql # not compatible
query I rowsort label-5240
SELECT NULLIF ( - COUNT ( * ), + 99 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT CASE - + 31 WHEN + 64 - + COUNT( DISTINCT 59 ) THEN - - 6 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5241
SELECT CASE - + 31 WHEN + 64 - + COUNT ( DISTINCT 59 ) THEN - - 6 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 90 * 48 + + 49
----
4369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5243
SELECT 26 DIV + + ( + MAX( DISTINCT + - 35 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5243
SELECT 26 / + + ( + MAX ( DISTINCT + - 35 ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5244
SELECT ALL - 57 * + + CAST( NULL AS SIGNED ) * - 35 + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL - 57 * + + CAST ( NULL AS INTEGER ) * - 35 + - 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5245
SELECT DISTINCT - COUNT( * ) * 54 + + + CAST( NULL AS SIGNED ) + ( 13 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT - COUNT ( * ) * 54 + + + CAST ( NULL AS INTEGER ) + ( 13 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5246
SELECT ALL - CAST( NULL AS DECIMAL ) * + + 66 * + - 75 + + ( COUNT( ALL + 25 ) ) * 93 + - - 85 + + + NULLIF ( 4, 93 ) - + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL - CAST ( NULL AS REAL ) * + + 66 * + - 75 + + ( COUNT ( ALL + 25 ) ) * 93 + - - 85 + + + NULLIF ( 4, 93 ) - + - 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT + + 94 * + - ( + 65 ) + + + COUNT( * ) AS col0
----
-6109

skipif mysql # not compatible
query I rowsort label-5247
SELECT + + 94 * + - ( + 65 ) + + + COUNT ( * ) AS col0
----
-6109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5248
SELECT ALL + MIN( + 22 ) DIV + + CAST( - 24 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL + MIN ( + 22 ) / + + CAST ( - 24 AS INTEGER )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5249
SELECT + - CAST( NULL AS DECIMAL ) * + + 7 * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT + - CAST ( NULL AS REAL ) * + + 7 * 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5250
SELECT + - MAX( CAST( - + 92 AS SIGNED ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5250
SELECT + - MAX ( CAST ( - + 92 AS INTEGER ) ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT ALL COUNT( 57 ) * - 38 * + - 37
----
1406

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL COUNT ( 57 ) * - 38 * + - 37
----
1406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5252
SELECT ALL + COUNT( * ) * - - 70 - - - 90 * + 17 * - 45 + + - 35 + - 55 + CAST( 12 AS SIGNED ) AS col1, CAST( NULL AS SIGNED )
----
68842
NULL

skipif mysql # not compatible
query II rowsort label-5252
SELECT ALL + COUNT ( * ) * - - 70 - - - 90 * + 17 * - 45 + + - 35 + - 55 + CAST ( 12 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER )
----
68842
NULL

query I rowsort
SELECT + 19 * + 90 AS col2
----
1710

query I rowsort
SELECT + 63 + - 65 * - 71 AS col0
----
4678

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5255
SELECT - 54 * + 53 + + ( + + CAST( + 5 AS SIGNED ) ) AS col0
----
-2857

skipif mysql # not compatible
query I rowsort label-5255
SELECT - 54 * + 53 + + ( + + CAST ( + 5 AS INTEGER ) ) AS col0
----
-2857

query I rowsort
SELECT DISTINCT + 45 - + - 9
----
54

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT + + COUNT( * ) * - + 54 + + 23 + 6 + 13
----
-12

skipif mysql # not compatible
query I rowsort label-5259
SELECT + + COUNT ( * ) * - + 54 + + 23 + 6 + 13
----
-12

query I rowsort
SELECT - 35 * COALESCE ( - 79, - 3 ) - 20 col2
----
2745

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5261
SELECT ALL 4 DIV + 38 DIV COUNT( ALL - 27 ), 50 AS col2
----
0
50

skipif mysql # not compatible
query II rowsort label-5261
SELECT ALL 4 / + 38 / COUNT ( ALL - 27 ), 50 AS col2
----
0
50

query I rowsort
SELECT ALL + 59 * 7
----
413

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5263
SELECT + ( + 17 ) * - 31 * + - COUNT( * ) - - COUNT( * ) - - + 24 DIV 65
----
528

skipif mysql # not compatible
query I rowsort label-5263
SELECT + ( + 17 ) * - 31 * + - COUNT ( * ) - - COUNT ( * ) - - + 24 / 65
----
528

query I rowsort
SELECT - 12 * + - 37 * + 4 * + 97
----
172272

onlyif mysql # aggregate syntax: 
query II rowsort label-5265
SELECT - 71, NULLIF ( - COUNT( * ), - - 31 ) col0
----
-71
-1

skipif mysql # not compatible
query II rowsort label-5265
SELECT - 71, NULLIF ( - COUNT ( * ), - - 31 ) col0
----
-71
-1

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

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

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

query I rowsort
SELECT DISTINCT + 41 + - 88 + + 78
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5269
SELECT + MIN( 25 ) + + 37, - 74 AS col1
----
62
-74

skipif mysql # not compatible
query II rowsort label-5269
SELECT + MIN ( 25 ) + + 37, - 74 AS col1
----
62
-74

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

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

query I rowsort
SELECT ALL + 23 + 47
----
70

query I rowsort
SELECT - 40 + + 48 AS col0
----
8

query I rowsort
SELECT - 17 + 49
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5274
SELECT ALL + CAST( + NULLIF ( - + 49, + 5 - - 14 + 93 * - NULLIF ( AVG ( 35 ), COUNT( * ) ) ) AS SIGNED ) * 43 * - 68
----
143276

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL + CAST ( + NULLIF ( - + 49, + 5 - - 14 + 93 * - NULLIF ( AVG ( 35 ), COUNT ( * ) ) ) AS INTEGER ) * 43 * - 68
----
143276

query I rowsort
SELECT - 93 + + 53
----
-40

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5277
SELECT 97 * 38 + 26 + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT 97 * 38 + 26 + + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5278
SELECT ALL 67 DIV - + 24 + + 14 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL 67 / - + 24 + + 14 AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5279
SELECT - CAST( - 47 AS SIGNED ) * 24 + 59 + - + 75 * ( + ( + 89 ) ) * - + 61 + + 2 * + 15 + + 25 AS col1
----
408417

skipif mysql # not compatible
query I rowsort label-5279
SELECT - CAST ( - 47 AS INTEGER ) * 24 + 59 + - + 75 * ( + ( + 89 ) ) * - + 61 + + 2 * + 15 + + 25 AS col1
----
408417

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5281
SELECT ALL + 16 AS col0, - 92 * - 67 / + COUNT( * ) * - 1 * + - 53 - 86 / CAST( NULL AS DECIMAL )
----
16
NULL

skipif mysql # not compatible
query II rowsort label-5281
SELECT ALL + 16 AS col0, - 92 * - 67 / + COUNT ( * ) * - 1 * + - 53 - 86 / CAST ( NULL AS REAL )
----
16
NULL

query I rowsort
SELECT DISTINCT + + 56 * 37
----
2072

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT - COUNT( * ) * - 83 * NULLIF ( SUM( + + 37 ), MAX( - 15 ) * - + 73 ) AS col1
----
3071

skipif mysql # not compatible
query I rowsort label-5284
SELECT - COUNT ( * ) * - 83 * NULLIF ( SUM ( + + 37 ), MAX ( - 15 ) * - + 73 ) AS col1
----
3071

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT DISTINCT + 28 * 8 - + - MAX( ALL 87 ) AS col0
----
311

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT + 28 * 8 - + - MAX ( ALL 87 ) AS col0
----
311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5286
SELECT + COUNT( * ) AS col1, 87 + - ( + COALESCE ( - 24, + 34 DIV - 70 * - 55 * - - 40 * - 75, + CAST( ( - - 91 ) AS SIGNED ) * + 17 * 18 DIV - - 3 ) )
----
1
111

skipif mysql # not compatible
query II rowsort label-5286
SELECT + COUNT ( * ) AS col1, 87 + - ( + COALESCE ( - 24, + 34 / - 70 * - 55 * - - 40 * - 75, + CAST ( ( - - 91 ) AS INTEGER ) * + 17 * 18 / - - 3 ) )
----
1
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL - 27 * + + SUM( DISTINCT 81 ) AS col2
----
-2187

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL - 27 * + + SUM ( DISTINCT 81 ) AS col2
----
-2187

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

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

query I rowsort
SELECT ALL 36 * 1 + - + COALESCE ( - + 52, 31 * - 80 ) + - 7
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5290
SELECT - 49 DIV + 6 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-5290
SELECT - 49 / + 6 AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5291
SELECT + COALESCE ( - ( + + 22 ), + 41 + + 73 + + NULLIF ( + 62, - COUNT( * ) + - - 95 ), 75 - COUNT( * ) ) / 99 + + 10 * - + ( + CAST( NULL AS SIGNED ) ) + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT + COALESCE ( - ( + + 22 ), + 41 + + 73 + + NULLIF ( + 62, - COUNT ( * ) + - - 95 ), 75 - COUNT ( * ) ) / 99 + + 10 * - + ( + CAST ( NULL AS INTEGER ) ) + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT DISTINCT - NULLIF ( 82, + + 80 * + ( + CASE + - COUNT( * ) WHEN 32 THEN + COUNT( * ) + + NULLIF ( 20, + ( 81 ) + - 31 ) WHEN + ( + COUNT( * ) ) / - 91 + + + 47 THEN 20 + 69 ELSE - 2 END ) ) * - + COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT - NULLIF ( 82, + + 80 * + ( + CASE + - COUNT ( * ) WHEN 32 THEN + COUNT ( * ) + + NULLIF ( 20, + ( 81 ) + - 31 ) WHEN + ( + COUNT ( * ) ) / - 91 + + + 47 THEN 20 + 69 ELSE - 2 END ) ) * - + COUNT ( * ) AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT + - 69 + - 12 - SUM( + 21 ) + - - 8 * CAST( - 37 AS SIGNED ) + + ( + 69 ) + + 69 + 54 AS col1
----
-206

skipif mysql # not compatible
query I rowsort label-5293
SELECT + - 69 + - 12 - SUM ( + 21 ) + - - 8 * CAST ( - 37 AS INTEGER ) + + ( + 69 ) + + 69 + 54 AS col1
----
-206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5294
SELECT + 76 * - MIN( DISTINCT - ( + - 19 ) ) + + + 35 + + ( 6 ) + - ( - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT + 76 * - MIN ( DISTINCT - ( + - 19 ) ) + + + 35 + + ( 6 ) + - ( - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT SUM( - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-5295
SELECT SUM ( - 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT ALL + 78 * 70 * + - CASE + - 11 WHEN 29 THEN NULL ELSE + COUNT( * ) END + + + 28 col1
----
-5432

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL + 78 * 70 * + - CASE + - 11 WHEN 29 THEN NULL ELSE + COUNT ( * ) END + + + 28 col1
----
-5432

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

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

query I rowsort
SELECT ALL + NULLIF ( + 42, + 23 * + 87 ) * - 51
----
-2142

query I rowsort
SELECT + 53 + - + 46
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5300
SELECT DISTINCT ( 73 ) + 15 * COALESCE ( + 85, + 38 * - 70 * COUNT( * ) + + 64 + - - 60, COUNT( + + 39 ) DIV - SUM( - 98 ) + 76 + - ( - - 24 ) ) + ( + COUNT( * ) ) col0
----
1349

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT ( 73 ) + 15 * COALESCE ( + 85, + 38 * - 70 * COUNT ( * ) + + 64 + - - 60, COUNT ( + + 39 ) / - SUM ( - 98 ) + 76 + - ( - - 24 ) ) + ( + COUNT ( * ) ) col0
----
1349

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

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

query I rowsort
SELECT + 17 * + + 39
----
663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5303
SELECT - COALESCE ( - - 47, 39 * - COUNT( * ) DIV - + SUM( + 64 ) ) + + 68 col2
----
21

skipif mysql # not compatible
query I rowsort label-5303
SELECT - COALESCE ( - - 47, 39 * - COUNT ( * ) / - + SUM ( + 64 ) ) + + 68 col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT DISTINCT + NULLIF ( + 87, - CASE + - 68 WHEN - + 53 * + - 51 * - 64 + 78 THEN - ( + 6 ) * - - 98 + + 11 * COALESCE ( - + 74, ( - + 13 ) + 41, - + MIN( ALL - 80 ) ) + + 20 ELSE NULL END * + MIN( DISTINCT - - COALESCE ( 7, + 31, - - 0 ) ) / - 44 * + 51 ) * ( + 17 ) * - COUNT( * ) - 25
----
-1504

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT + NULLIF ( + 87, - CASE + - 68 WHEN - + 53 * + - 51 * - 64 + 78 THEN - ( + 6 ) * - - 98 + + 11 * COALESCE ( - + 74, ( - + 13 ) + 41, - + MIN ( ALL - 80 ) ) + + 20 ELSE NULL END * + MIN ( DISTINCT - - COALESCE ( 7, + 31, - - 0 ) ) / - 44 * + 51 ) * ( + 17 ) * - COUNT ( * ) - 25
----
-1504

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT DISTINCT ( + - COUNT( ALL 84 ) ) + - - 61 + - 79 * - 41 AS col1
----
3299

skipif mysql # not compatible
query I rowsort label-5305
SELECT DISTINCT ( + - COUNT ( ALL 84 ) ) + - - 61 + - 79 * - 41 AS col1
----
3299

query II rowsort
SELECT 97 AS col1, 66
----
97
66

onlyif mysql # aggregate syntax: 
query II rowsort label-5307
SELECT ALL + 92 + + + 64, + COUNT( * ) + CASE + 82 WHEN + MAX( + - 45 ) + + 87 + - - 93 THEN - - COALESCE ( + 47, + 7 / + 61 + - 99 ) * + 54 WHEN 32 * + - 84 THEN NULL END AS col1
----
156
NULL

skipif mysql # not compatible
query II rowsort label-5307
SELECT ALL + 92 + + + 64, + COUNT ( * ) + CASE + 82 WHEN + MAX ( + - 45 ) + + 87 + - - 93 THEN - - COALESCE ( + 47, + 7 / + 61 + - 99 ) * + 54 WHEN 32 * + - 84 THEN NULL END AS col1
----
156
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5308
SELECT ALL CAST( 13 AS SIGNED ) * + 87 * + 61
----
68991

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL CAST ( 13 AS INTEGER ) * + 87 * + 61
----
68991

query II rowsort
SELECT ALL 48 AS col2, 0 AS col0
----
48
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5310
SELECT 10, + 32 DIV 44 + + 32 AS col0
----
10
32

skipif mysql # not compatible
query II rowsort label-5310
SELECT 10, + 32 / 44 + + 32 AS col0
----
10
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5311
SELECT ALL - 66 DIV 15 DIV + 36 * + - 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL - 66 / 15 / + 36 * + - 17 AS col1
----
0

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

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

query I rowsort
SELECT 7 * - 28 AS col1
----
-196

query II rowsort
SELECT - 54 AS col0, ( - - 84 )
----
-54
84

query I rowsort
SELECT DISTINCT - 89 * + + 8 AS col2
----
-712

query I rowsort
SELECT - 54 * + 29 * - 72 + 72
----
112824

onlyif mysql # DIV for integer division: 
query II rowsort label-5317
SELECT + 54 AS col0, + 80 DIV + 28
----
54
2

skipif mysql # not compatible
query II rowsort label-5317
SELECT + 54 AS col0, + 80 / + 28
----
54
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5318
SELECT - COUNT( * ) DIV + - 97 + 85 + ( SUM( DISTINCT 2 ) ) - + - 27 + + COALESCE ( + 90, - COUNT( * ), - COUNT( 12 ) ) AS col0
----
204

skipif mysql # not compatible
query I rowsort label-5318
SELECT - COUNT ( * ) / + - 97 + 85 + ( SUM ( DISTINCT 2 ) ) - + - 27 + + COALESCE ( + 90, - COUNT ( * ), - COUNT ( 12 ) ) AS col0
----
204

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5321
SELECT DISTINCT + - MAX( + - 26 ) * + 70 * - - 13 + - 9 + - 67 * + - CASE - ( - CAST( + - 57 AS SIGNED ) ) WHEN + CAST( NULL AS SIGNED ) THEN - AVG ( DISTINCT 48 ) WHEN - + 7 THEN NULL ELSE NULL END * + 78 / - 60 AS col2, 48
----
NULL
48

skipif mysql # not compatible
query II rowsort label-5321
SELECT DISTINCT + - MAX ( + - 26 ) * + 70 * - - 13 + - 9 + - 67 * + - CASE - ( - CAST ( + - 57 AS INTEGER ) ) WHEN + CAST ( NULL AS INTEGER ) THEN - AVG ( DISTINCT 48 ) WHEN - + 7 THEN NULL ELSE NULL END * + 78 / - 60 AS col2, 48
----
NULL
48

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

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

query II rowsort
SELECT 56 * - 50 AS col2, + 57 col0
----
-2800
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT COUNT( * ) + - 53, - 26 AS col2
----
-52
-26

skipif mysql # not compatible
query II rowsort label-5324
SELECT COUNT ( * ) + - 53, - 26 AS col2
----
-52
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT MAX( + + NULLIF ( 39, ( 98 ) - 88 + - 35 ) ) col1
----
39

skipif mysql # not compatible
query I rowsort label-5325
SELECT MAX ( + + NULLIF ( 39, ( 98 ) - 88 + - 35 ) ) col1
----
39

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

skipif mysql # not compatible
query I rowsort label-5326
SELECT - NULLIF ( - COUNT ( * ), + 5 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 41 + 63 * - 60 AS col1
----
-3821

query I rowsort
SELECT 21 + 98 + 65 AS col0
----
184

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5329
SELECT 27 DIV + - COUNT( * ) AS col2, + 32 - + + 11 + 81, 57 * + COUNT( * ) AS col1
----
-27
102
57

skipif mysql # not compatible
query III rowsort label-5329
SELECT 27 / + - COUNT ( * ) AS col2, + 32 - + + 11 + 81, 57 * + COUNT ( * ) AS col1
----
-27
102
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT ALL - COUNT( * ) + 9 - + + 47 * - 20
----
948

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL - COUNT ( * ) + 9 - + + 47 * - 20
----
948

onlyif mysql # aggregate syntax: 
query II rowsort label-5331
SELECT COUNT( * ) * + 59 AS col0, - 37 - + - 51 * - + 29
----
59
-1516

skipif mysql # not compatible
query II rowsort label-5331
SELECT COUNT ( * ) * + 59 AS col0, - 37 - + - 51 * - + 29
----
59
-1516

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

skipif mysql # not compatible
query I rowsort label-5332
SELECT 11 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 46 * 35 AS col0
----
1610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5334
SELECT COUNT( * ) + - 84 + - ( 48 ) + + 73 + - COUNT( * ) + - CAST( NULLIF ( 91, - + CASE - CAST( NULL AS SIGNED ) WHEN 59 THEN + + COUNT( * ) WHEN 17 * - 89 THEN 82 WHEN - 52 THEN NULL END + - 7 ) AS SIGNED ) + + 4 * 85 + COUNT( * )
----
191

skipif mysql # not compatible
query I rowsort label-5334
SELECT COUNT ( * ) + - 84 + - ( 48 ) + + 73 + - COUNT ( * ) + - CAST ( NULLIF ( 91, - + CASE - CAST ( NULL AS INTEGER ) WHEN 59 THEN + + COUNT ( * ) WHEN 17 * - 89 THEN 82 WHEN - 52 THEN NULL END + - 7 ) AS INTEGER ) + + 4 * 85 + COUNT ( * )
----
191

query II rowsort
SELECT 42 + + - 72 AS col0, - ( + - 67 )
----
-30
67

query I rowsort
SELECT 77 - + 19 + - 69
----
-11

query I rowsort
SELECT + 15 + - - 30 + - - 95
----
140

query I rowsort
SELECT + 85 - + 3 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5339
SELECT ALL - + SUM( DISTINCT + 18 ) * - - CAST( + - ( + CAST( - ( + 12 ) AS SIGNED ) ) AS SIGNED )
----
-216

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL - + SUM ( DISTINCT + 18 ) * - - CAST ( + - ( + CAST ( - ( + 12 ) AS INTEGER ) ) AS INTEGER )
----
-216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5340
SELECT 40 DIV + CAST( + - MAX( - 89 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5340
SELECT 40 / + CAST ( + - MAX ( - 89 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5341
SELECT - CASE - - 90 WHEN + 0 THEN + CAST( - 20 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT - CASE - - 90 WHEN + 0 THEN + CAST ( - 20 AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5342
SELECT - COALESCE ( 49, + 27 ) * + COUNT( * ) + - 45 - + 5 DIV + ( - 45 )
----
-94

skipif mysql # not compatible
query I rowsort label-5342
SELECT - COALESCE ( 49, + 27 ) * + COUNT ( * ) + - 45 - + 5 / + ( - 45 )
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-5343
SELECT ALL - ( 37 ) DIV + + 3 + - - 95 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - ( 37 ) / + + 3 + - - 95 AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5344
SELECT - 40 DIV 93 * + COUNT( * ) + + 53 * - + 14 AS col0, - NULLIF ( + 21, 45 )
----
-742
-21

skipif mysql # not compatible
query II rowsort label-5344
SELECT - 40 / 93 * + COUNT ( * ) + + 53 * - + 14 AS col0, - NULLIF ( + 21, 45 )
----
-742
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5345
SELECT COALESCE ( + CAST( NULL AS SIGNED ), + 56 + - 3, + ( + 22 ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5345
SELECT COALESCE ( + CAST ( NULL AS INTEGER ), + 56 + - 3, + ( + 22 ) ) AS col2
----
53

query I rowsort
SELECT ALL - 92 * + - 22 * + - 46
----
-93104

query I rowsort
SELECT 30 * 60
----
1800

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5348
SELECT ALL - 37 + 54 + + CAST( NULL AS DECIMAL ) - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL - 37 + 54 + + CAST ( NULL AS REAL ) - 29
----
NULL

query II rowsort
SELECT 49 AS col0, 23 AS col1
----
49
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT 17 + + NULLIF ( - 59, - SUM( + 23 ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-5351
SELECT 17 + + NULLIF ( - 59, - SUM ( + 23 ) ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-5352
SELECT MAX( ALL 89 ) - 78, + 20 AS col1
----
11
20

skipif mysql # not compatible
query II rowsort label-5352
SELECT MAX ( ALL 89 ) - 78, + 20 AS col1
----
11
20

query I rowsort
SELECT ALL - 92 - + - 99 * - 52 * 35
----
-180272

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT - COUNT( ALL + 0 ) + ( - + 54 )
----
-55

skipif mysql # not compatible
query I rowsort label-5354
SELECT - COUNT ( ALL + 0 ) + ( - + 54 )
----
-55

query I rowsort
SELECT - 46 * 86 col2
----
-3956

query I rowsort
SELECT ALL 58 * + 12
----
696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5357
SELECT + COALESCE ( 76, CAST( NULL AS SIGNED ) + 97, + 87 * CAST( NULL AS SIGNED ) - - 87 * - + NULLIF ( - 68, + 46 * + 78 * 68 - - COALESCE ( - 70, - - COUNT( * ) + - 92 / - 51 + + 6, 91 * + + 98 ) * - 47 * - COUNT( * ) ) * + COUNT( * ) ) + - 28 * - 78 * + + 38, + 43 * NULLIF ( + 81, - 52 ) AS col0
----
83068
3483

skipif mysql # not compatible
query II rowsort label-5357
SELECT + COALESCE ( 76, CAST ( NULL AS INTEGER ) + 97, + 87 * CAST ( NULL AS INTEGER ) - - 87 * - + NULLIF ( - 68, + 46 * + 78 * 68 - - COALESCE ( - 70, - - COUNT ( * ) + - 92 / - 51 + + 6, 91 * + + 98 ) * - 47 * - COUNT ( * ) ) * + COUNT ( * ) ) + - 28 * - 78 * + + 38, + 43 * NULLIF ( + 81, - 52 ) AS col0
----
83068
3483

query I rowsort
SELECT - 10 * 6 * - + 85 AS col2
----
5100

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

skipif mysql # not compatible
query I rowsort label-5359
SELECT + COUNT ( * ) + - 75 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL 98 * - CASE + + COUNT( * ) WHEN - 74 * 59 + - 85 THEN + 76 * 4 * - 61 WHEN + 3 * + 49 + + + 17 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL 98 * - CASE + + COUNT ( * ) WHEN - 74 * 59 + - 85 THEN + 76 * 4 * - 61 WHEN + 3 * + 49 + + + 17 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5361
SELECT + 10 + + 17 + + ( 15 ) - - 65 * + + COUNT( * ) AS col2, - 19
----
107
-19

skipif mysql # not compatible
query II rowsort label-5361
SELECT + 10 + + 17 + + ( 15 ) - - 65 * + + COUNT ( * ) AS col2, - 19
----
107
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT + CASE 56 WHEN - COUNT( * ) / - COUNT( * ) THEN - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT + CASE 56 WHEN - COUNT ( * ) / - COUNT ( * ) THEN - 78 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5363
SELECT ALL - NULLIF ( + NULLIF ( - 47, - COUNT( * ) ), - CAST( 69 AS SIGNED ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL - NULLIF ( + NULLIF ( - 47, - COUNT ( * ) ), - CAST ( 69 AS INTEGER ) ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5364
SELECT - + 65 * + MIN( ALL - 75 ) AS col1, - COUNT( * )
----
4875
-1

skipif mysql # not compatible
query II rowsort label-5364
SELECT - + 65 * + MIN ( ALL - 75 ) AS col1, - COUNT ( * )
----
4875
-1

query I rowsort
SELECT + - 48 - + + 60 AS col1
----
-108

query II rowsort
SELECT - 34 AS col0, + 72 AS col1
----
-34
72

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

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

query I rowsort
SELECT + ( + NULLIF ( + 7, + AVG ( ALL 69 ) ) ) - 68 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT - 99 * + + 19 + + COUNT( * ) AS col1
----
-1880

skipif mysql # not compatible
query I rowsort label-5369
SELECT - 99 * + + 19 + + COUNT ( * ) AS col1
----
-1880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5370
SELECT - CASE 58 WHEN - COUNT( * ) / + - COALESCE ( - 31, + COALESCE ( - - 12, 28 * + + 24, - + COALESCE ( - COUNT( * ), + 87, - 70, + 42 * + MIN( ALL - + 64 ) + + 43 + + 8 + + 26 + - - ( - COUNT( * ) ) ) ) / + 72 + - AVG ( + + 74 ) * + 25, - - COUNT( * ), + 31 * + + ( 89 ) + + 67 + + 79 - CAST( - + 51 AS SIGNED ) ) * - 9 + + CAST( NULL AS SIGNED ) THEN + ( - - COALESCE ( + - NULLIF ( 88, - - MIN( 87 ) + ( + + 42 ) ), + 98 ) ) WHEN 28 THEN - 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT - CASE 58 WHEN - COUNT ( * ) / + - COALESCE ( - 31, + COALESCE ( - - 12, 28 * + + 24, - + COALESCE ( - COUNT ( * ), + 87, - 70, + 42 * + MIN ( ALL - + 64 ) + + 43 + + 8 + + 26 + - - ( - COUNT ( * ) ) ) ) / + 72 + - AVG ( + + 74 ) * + 25, - - COUNT ( * ), + 31 * + + ( 89 ) + + 67 + + 79 - CAST ( - + 51 AS INTEGER ) ) * - 9 + + CAST ( NULL AS INTEGER ) THEN + ( - - COALESCE ( + - NULLIF ( 88, - - MIN ( 87 ) + ( + + 42 ) ), + 98 ) ) WHEN 28 THEN - 6 END
----
NULL

query I rowsort
SELECT DISTINCT 27 * - 66 + - 62 - 35 + + 23 AS col0
----
-1856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5372
SELECT ALL + - CASE 78 WHEN + 53 - - - 29 THEN + - 42 - - 28 WHEN - CASE WHEN NOT COUNT( * ) <= + + 63 THEN NULL ELSE + 5 * + - 97 END THEN NULL END * - - 15 + 32 * + - 69 + - CAST( NULL AS SIGNED ) - + - SUM( DISTINCT - 37 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL + - CASE 78 WHEN + 53 - - - 29 THEN + - 42 - - 28 WHEN - CASE WHEN NOT COUNT ( * ) <= + + 63 THEN NULL ELSE + 5 * + - 97 END THEN NULL END * - - 15 + 32 * + - 69 + - CAST ( NULL AS INTEGER ) - + - SUM ( DISTINCT - 37 ) AS col1
----
NULL

query II rowsort
SELECT + - 3 AS col0, 47 AS col2
----
-3
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5374
SELECT + + COUNT( * ) - + + NULLIF ( - ( + 6 ), - + CASE - NULLIF ( - - 93, - 30 ) WHEN - 29 * - 40 + + 4 + + 16 + + 36 + + 41 + - CAST( NULL AS SIGNED ) + - 63 + + 57 + SUM( + 27 ) * - 1 THEN - COUNT( * ) * + 16 + + COUNT( * ) END ) AS col1, 51 AS col0
----
7
51

skipif mysql # not compatible
query II rowsort label-5374
SELECT + + COUNT ( * ) - + + NULLIF ( - ( + 6 ), - + CASE - NULLIF ( - - 93, - 30 ) WHEN - 29 * - 40 + + 4 + + 16 + + 36 + + 41 + - CAST ( NULL AS INTEGER ) + - 63 + + 57 + SUM ( + 27 ) * - 1 THEN - COUNT ( * ) * + 16 + + COUNT ( * ) END ) AS col1, 51 AS col0
----
7
51

query I rowsort
SELECT NULLIF ( 32, 1 ) AS col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5376
SELECT - + COUNT( - 73 ) DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-5376
SELECT - + COUNT ( - 73 ) / 50
----
0

query I rowsort
SELECT + 24 * + + 35 AS col2
----
840

query I rowsort
SELECT - 30 * + 6 AS col1
----
-180

query I rowsort
SELECT + 0 + 26 + - + 9 * + 93
----
-811

query I rowsort
SELECT + 94 * 96 * + - 6 AS col2
----
-54144

query I rowsort
SELECT ALL 39 * + - ( + + 82 ) * + 33 - + + 28 * - 88 * + 86
----
106370

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

query II rowsort
SELECT DISTINCT - 79 * + 21, + 70 AS col2
----
-1659
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5384
SELECT + 34 * + + 28 * + CASE - 48 WHEN - COUNT( * ) * + + NULLIF ( - - 52, CASE WHEN NULL IS NULL THEN NULL ELSE CASE 79 WHEN - 48 THEN NULL WHEN - 7 THEN 54 ELSE 56 DIV 13 + 15 + 10 DIV + 8 END END ) + + CAST( + COUNT( * ) AS SIGNED ) - 41 * + 91 THEN NULL WHEN - ( 59 ) THEN NULL WHEN - 10 * AVG ( ALL + CAST( + 98 AS SIGNED ) ) * + 7 THEN NULL ELSE - 15 DIV + 55 END DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-5384
SELECT + 34 * + + 28 * + CASE - 48 WHEN - COUNT ( * ) * + + NULLIF ( - - 52, CASE WHEN NULL IS NULL THEN NULL ELSE CASE 79 WHEN - 48 THEN NULL WHEN - 7 THEN 54 ELSE 56 / 13 + 15 + 10 / + 8 END END ) + + CAST ( + COUNT ( * ) AS INTEGER ) - 41 * + 91 THEN NULL WHEN - ( 59 ) THEN NULL WHEN - 10 * AVG ( ALL + CAST ( + 98 AS INTEGER ) ) * + 7 THEN NULL ELSE - 15 / + 55 END / - 88
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT ALL CASE + - 70 WHEN - COUNT( * ) * + + 50 * ( + - 34 ) * - 51 + + 3 THEN + 21 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL CASE + - 70 WHEN - COUNT ( * ) * + + 50 * ( + - 34 ) * - 51 + + 3 THEN + 21 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5387
SELECT - 4 * CAST( 33 AS SIGNED )
----
-132

skipif mysql # not compatible
query I rowsort label-5387
SELECT - 4 * CAST ( 33 AS INTEGER )
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-5388
SELECT ALL ( - 31 ) AS col1, 38 * - 67 - COALESCE ( - 7, - - ( + - 98 ) + - 60 + - + 10, COUNT( * ) * 21 )
----
-31
-2539

skipif mysql # not compatible
query II rowsort label-5388
SELECT ALL ( - 31 ) AS col1, 38 * - 67 - COALESCE ( - 7, - - ( + - 98 ) + - 60 + - + 10, COUNT ( * ) * 21 )
----
-31
-2539

query I rowsort
SELECT DISTINCT + 89 * + + 48 * + 38 AS col2
----
162336

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT ALL COALESCE ( - + COUNT( * ), - - COUNT( * ) + - 81 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL COALESCE ( - + COUNT ( * ), - - COUNT ( * ) + - 81 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT - 98 - COUNT( * ) * - 42
----
-56

skipif mysql # not compatible
query I rowsort label-5391
SELECT - 98 - COUNT ( * ) * - 42
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5392
SELECT DISTINCT - COUNT( * ) + + 65 + + CAST( 97 AS SIGNED )
----
161

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT - COUNT ( * ) + + 65 + + CAST ( 97 AS INTEGER )
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-5393
SELECT ALL + 99 DIV 4 + + 1
----
25

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL + 99 / 4 + + 1
----
25

query I rowsort
SELECT + 47 * - 93 col2
----
-4371

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT DISTINCT + 66 * + 0 * + ( + 14 ) - + 23 * - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT + 66 * + 0 * + ( + 14 ) - + 23 * - COUNT ( * )
----
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT + MAX( + - CASE - + 32 WHEN + 36 THEN - 87 WHEN - ( - ( - 70 ) ) THEN NULL END ) - - 27 * - COALESCE ( + 98, 98, - 93 / + ( + 62 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT + MAX ( + - CASE - + 32 WHEN + 36 THEN - 87 WHEN - ( - ( - 70 ) ) THEN NULL END ) - - 27 * - COALESCE ( + 98, 98, - 93 / + ( + 62 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5398
SELECT ALL - NULLIF ( 0, + - COALESCE ( + 86, 29 / 8 ) * - 27 - + 79 ) + 49, + COUNT( + 90 ) * - - 97 AS col2
----
49
97

skipif mysql # not compatible
query II rowsort label-5398
SELECT ALL - NULLIF ( 0, + - COALESCE ( + 86, 29 / 8 ) * - 27 - + 79 ) + 49, + COUNT ( + 90 ) * - - 97 AS col2
----
49
97

query I rowsort
SELECT - NULLIF ( - + ( 61 ), + + 57 ) col1
----
61

query I rowsort
SELECT DISTINCT + ( + 12 ) * - 52
----
-624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5401
SELECT ALL - CAST( NULL AS SIGNED ) + CASE - - 29 WHEN AVG ( + - 7 ) THEN 6 WHEN + CASE - 81 WHEN COUNT( * ) * + COUNT( - 35 ) - 84 + + CAST( - CAST( + MIN( 55 ) AS SIGNED ) AS SIGNED ) + + 67 * + - CASE WHEN NULL NOT BETWEEN 89 AND - 7 THEN 73 - - MIN( ALL - - CAST( - + 48 AS SIGNED ) ) ELSE NULL END * + 56 - - + 69 THEN NULL WHEN + - SUM( DISTINCT + ( 2 ) ) + - + 50 THEN - 29 END * 0 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL - CAST ( NULL AS INTEGER ) + CASE - - 29 WHEN AVG ( + - 7 ) THEN 6 WHEN + CASE - 81 WHEN COUNT ( * ) * + COUNT ( - 35 ) - 84 + + CAST ( - CAST ( + MIN ( 55 ) AS INTEGER ) AS INTEGER ) + + 67 * + - CASE WHEN NULL NOT BETWEEN 89 AND - 7 THEN 73 - - MIN ( ALL - - CAST ( - + 48 AS INTEGER ) ) ELSE NULL END * + 56 - - + 69 THEN NULL WHEN + - SUM ( DISTINCT + ( 2 ) ) + - + 50 THEN - 29 END * 0 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT DISTINCT MIN( DISTINCT - - ( COALESCE ( + - 5, + 40 - + - 44 ) ) )
----
-5

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT MIN ( DISTINCT - - ( COALESCE ( + - 5, + 40 - + - 44 ) ) )
----
-5

query I rowsort
SELECT ALL + NULLIF ( + 63, - 28 ) AS col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT DISTINCT 75 DIV 92 + 75 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT 75 / 92 + 75 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT + + SUM( ALL + 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5405
SELECT + + SUM ( ALL + 3 ) AS col1
----
3

query I rowsort
SELECT + - 12 + + + 38 + 54
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5407
SELECT DISTINCT COALESCE ( CAST( + + COUNT( * ) AS SIGNED ), + 77 - + 41 + + + 53 ) * - 44 + 20
----
-24

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT COALESCE ( CAST ( + + COUNT ( * ) AS INTEGER ), + 77 - + 41 + + + 53 ) * - 44 + 20
----
-24

query II rowsort
SELECT ALL + 91 AS col1, - 34 * + 82
----
91
-2788

query I rowsort
SELECT ALL CASE + + CASE 12 WHEN CASE 30 WHEN + 24 * - 41 * - 65 THEN - 41 END THEN + 38 END WHEN ( - - 61 ) THEN + 35 * 61 WHEN - 63 - 2 + + 96 / ( 61 ) THEN 27 END / + ( + 33 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT COALESCE ( - 18, 67 * + COALESCE ( 92, + 2 * + + 15, + 91 ) ) * + - MAX( 21 ) - + - COUNT( * ) * - - 8 + - - 40 AS col0
----
426

skipif mysql # not compatible
query I rowsort label-5410
SELECT COALESCE ( - 18, 67 * + COALESCE ( 92, + 2 * + + 15, + 91 ) ) * + - MAX ( 21 ) - + - COUNT ( * ) * - - 8 + - - 40 AS col0
----
426

query I rowsort
SELECT ALL 82 * - 66
----
-5412

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5412
SELECT 52 + ( + 70 ) + - + CAST( NULL AS DECIMAL ) * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT 52 + ( + 70 ) + - + CAST ( NULL AS REAL ) * 3
----
NULL

query I rowsort
SELECT NULLIF ( - 20, - 34 ) * 95
----
-1900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5414
SELECT CAST( 53 AS SIGNED ) * + + 65
----
3445

skipif mysql # not compatible
query I rowsort label-5414
SELECT CAST ( 53 AS INTEGER ) * + + 65
----
3445

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT - 28 * + 35 * + + AVG ( - 10 ) * - - 19 - 22 * CASE WHEN NOT NULL <= NULL THEN 99 END * - + 40 - + + 8 + - ( + 79 ) + + COUNT( ALL + 87 ) * - - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT - 28 * + 35 * + + AVG ( - 10 ) * - - 19 - 22 * CASE WHEN NOT NULL <= NULL THEN 99 END * - + 40 - + + 8 + - ( + 79 ) + + COUNT ( ALL + 87 ) * - - 56 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5417
SELECT CAST( - - 39 AS SIGNED ) + MIN( + 7 ) + - 12 AS col1, - 20 + - - 11 - - + 34 + - ( - 51 ) * + - 82 * - + COUNT( * ) AS col1
----
34
4207

skipif mysql # not compatible
query II rowsort label-5417
SELECT CAST ( - - 39 AS INTEGER ) + MIN ( + 7 ) + - 12 AS col1, - 20 + - - 11 - - + 34 + - ( - 51 ) * + - 82 * - + COUNT ( * ) AS col1
----
34
4207

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT 87 + + + COALESCE ( - 23, ( COUNT( * ) ) * - + 26 - + + 56 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5418
SELECT 87 + + + COALESCE ( - 23, ( COUNT ( * ) ) * - + 26 - + + 56 ) AS col2
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5419
SELECT DISTINCT + 30 DIV - 23
----
-1

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT + 30 / - 23
----
-1

query II rowsort
SELECT ALL 43, 38 * 85 AS col1
----
43
3230

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT COUNT( - + 6 ) * ( + 42 ) col1
----
42

skipif mysql # not compatible
query I rowsort label-5421
SELECT COUNT ( - + 6 ) * ( + 42 ) col1
----
42

query II rowsort
SELECT 98 AS col2, 4 + - 20 + 75 AS col1
----
98
59

query I rowsort
SELECT DISTINCT + 70 + - 26
----
44

query I rowsort
SELECT ALL + + 77 + - + 6 + - 7 AS col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5425
SELECT COALESCE ( 99, 42 * + 13 * 18 ) * + - 80 * - - 43 * + 41 DIV - - ( + COUNT( * ) ) col0
----
-13962960

skipif mysql # not compatible
query I rowsort label-5425
SELECT COALESCE ( 99, 42 * + 13 * 18 ) * + - 80 * - - 43 * + 41 / - - ( + COUNT ( * ) ) col0
----
-13962960

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT COUNT( * ) + 30 * + SUM( ALL - 53 ) + 18 + + - 81 * + 80 AS col2
----
-8051

skipif mysql # not compatible
query I rowsort label-5426
SELECT COUNT ( * ) + 30 * + SUM ( ALL - 53 ) + 18 + + - 81 * + 80 AS col2
----
-8051

onlyif mysql # aggregate syntax: 
query III rowsort label-5427
SELECT ALL - + 65 + + 86 + - + COUNT( * ) AS col0, + MIN( ALL 50 ) + + 49 + - 98 * 46, + + 98 col0
----
20
-4409
98

skipif mysql # not compatible
query III rowsort label-5427
SELECT ALL - + 65 + + 86 + - + COUNT ( * ) AS col0, + MIN ( ALL 50 ) + + 49 + - 98 * 46, + + 98 col0
----
20
-4409
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT ALL + CASE - 22 WHEN ( MAX( + 54 ) ) + 61 THEN NULL ELSE - ( - ( - 88 ) ) * - 86 END + - - ( - - 99 ) + + 9 * 1
----
7676

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL + CASE - 22 WHEN ( MAX ( + 54 ) ) + 61 THEN NULL ELSE - ( - ( - 88 ) ) * - 86 END + - - ( - - 99 ) + + 9 * 1
----
7676

query III rowsort
SELECT DISTINCT + 28 AS col0, 59 + 6 AS col2, 42 col1
----
28
65
42

query II rowsort
SELECT ALL + 30, + ( + - 91 ) * + 6 * + 2 AS col0
----
30
-1092

onlyif mysql # DIV for integer division: 
query I rowsort label-5432
SELECT 33 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-5432
SELECT 33 / + 43
----
0

query I rowsort
SELECT - 87 * ( - + ( - 83 ) ) - 78 AS col2
----
-7299

onlyif mysql # DIV for integer division: 
query I rowsort label-5434
SELECT DISTINCT + - 60 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-5434
SELECT DISTINCT + - 60 / + 88
----
0

query I rowsort
SELECT 12 - 83 + - + 86
----
-157

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5437
SELECT ALL CASE + COUNT( * ) WHEN - 48 THEN + 10 WHEN + ( - COUNT( * ) ) THEN + 15 + - 83 * + COALESCE ( + 38, - 45 ) * - COUNT( 46 ) END * - 52, 64 col1
----
NULL
64

skipif mysql # not compatible
query II rowsort label-5437
SELECT ALL CASE + COUNT ( * ) WHEN - 48 THEN + 10 WHEN + ( - COUNT ( * ) ) THEN + 15 + - 83 * + COALESCE ( + 38, - 45 ) * - COUNT ( 46 ) END * - 52, 64 col1
----
NULL
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT ALL - COUNT( ALL - 44 ) * - 2 * 4 * - 91
----
-728

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL - COUNT ( ALL - 44 ) * - 2 * 4 * - 91
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT DISTINCT + 24 - - 61 + + SUM( + + 54 ) * COUNT( * ) AS col2
----
139

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT + 24 - - 61 + + SUM ( + + 54 ) * COUNT ( * ) AS col2
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5440
SELECT COUNT( * ) - NULLIF ( - - 78, - + 55 ) col0, - 96 DIV + - COUNT( * ) AS col0
----
-77
96

skipif mysql # not compatible
query II rowsort label-5440
SELECT COUNT ( * ) - NULLIF ( - - 78, - + 55 ) col0, - 96 / + - COUNT ( * ) AS col0
----
-77
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT 55 - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-5441
SELECT 55 - COUNT ( * )
----
54

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5443
SELECT COUNT( * ) * + 68 DIV - 89 * + COALESCE ( + 63, - - 96 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5443
SELECT COUNT ( * ) * + 68 / - 89 * + COALESCE ( + 63, - - 96 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5444
SELECT 34 * 29 + + MAX( ALL 77 ) - + + 87 + - 23 * 92, ( + 13 ) * + 24 * - + COUNT( * ) AS col2
----
-1140
-312

skipif mysql # not compatible
query II rowsort label-5444
SELECT 34 * 29 + + MAX ( ALL 77 ) - + + 87 + - 23 * 92, ( + 13 ) * + 24 * - + COUNT ( * ) AS col2
----
-1140
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT CASE + 43 WHEN - 61 THEN - 90 WHEN + 87 * - MAX( DISTINCT 20 ) - + + 43 * 31 * 83 * + 20 THEN NULL END * - + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT CASE + 43 WHEN - 61 THEN - 90 WHEN + 87 * - MAX ( DISTINCT 20 ) - + + 43 * 31 * 83 * + 20 THEN NULL END * - + 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5446
SELECT ALL + CAST( - MAX( + 87 ) AS SIGNED ) + - - COUNT( * ) + 87 + 30 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL + CAST ( - MAX ( + 87 ) AS INTEGER ) + - - COUNT ( * ) + 87 + 30 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 16 + 40
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL 69 + - - MAX( DISTINCT 17 )
----
86

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL 69 + - - MAX ( DISTINCT 17 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5450
SELECT DISTINCT 80 + + AVG ( + 82 ) * - 99 * - CAST( NULL AS SIGNED ) / + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT 80 + + AVG ( + 82 ) * - 99 * - CAST ( NULL AS INTEGER ) / + 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL 39 * MIN( - 67 )
----
-2613

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL 39 * MIN ( - 67 )
----
-2613

query I rowsort
SELECT CASE - - 89 WHEN + + ( + 18 ) + - 13 + 47 * - - 18 THEN + - 98 * + NULLIF ( + 55, + 99 ) + 11 + + 91 * - + 28 WHEN - 34 THEN 51 END + + - 70 + - 76 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 74 * - 97 * + 96 AS col2
----
-689088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT CAST( NULL AS SIGNED ) - - - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT CAST ( NULL AS INTEGER ) - - - 39 AS col1
----
NULL

query II rowsort
SELECT - 18 AS col1, - 69 AS col1
----
-18
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT NULLIF ( - - 2, + - 23 ) * - SUM( + 85 ) * - ( + COUNT( ALL + 52 ) ) * - COALESCE ( SUM( + 95 ), 25 ) AS col0
----
-16150

skipif mysql # not compatible
query I rowsort label-5456
SELECT NULLIF ( - - 2, + - 23 ) * - SUM ( + 85 ) * - ( + COUNT ( ALL + 52 ) ) * - COALESCE ( SUM ( + 95 ), 25 ) AS col0
----
-16150

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT - + NULLIF ( + NULLIF ( - - ( - + ( - 72 ) ), - COUNT( * ) ), - COUNT( * ) - + 10 ) col1
----
-72

skipif mysql # not compatible
query I rowsort label-5457
SELECT - + NULLIF ( + NULLIF ( - - ( - + ( - 72 ) ), - COUNT ( * ) ), - COUNT ( * ) - + 10 ) col1
----
-72

query II rowsort
SELECT + 91, 91 AS col0
----
91
91

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5460
SELECT + COALESCE ( CASE 2 WHEN + CAST( NULL AS SIGNED ) / + 47 THEN NULL WHEN - COUNT( * ) - - ( + 56 ) / 19 THEN NULL ELSE 91 * - - ( - 95 ) - 87 + + 61 * + 16 END, + 63 + + 80 ) AS col1
----
-7756

skipif mysql # not compatible
query I rowsort label-5460
SELECT + COALESCE ( CASE 2 WHEN + CAST ( NULL AS INTEGER ) / + 47 THEN NULL WHEN - COUNT ( * ) - - ( + 56 ) / 19 THEN NULL ELSE 91 * - - ( - 95 ) - 87 + + 61 * + 16 END, + 63 + + 80 ) AS col1
----
-7756

query II rowsort
SELECT ALL - 22 AS col2, 72
----
-22
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5462
SELECT DISTINCT + 47 - + 41 + - MAX( ALL + 50 ) + + + CAST( MIN( 38 ) AS SIGNED ) * - 53 AS col0
----
-2058

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT + 47 - + 41 + - MAX ( ALL + 50 ) + + + CAST ( MIN ( 38 ) AS INTEGER ) * - 53 AS col0
----
-2058

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5464
SELECT ALL 92 DIV + 22 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL 92 / + 22 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT COUNT( * ) + + 19 col2
----
20

skipif mysql # not compatible
query I rowsort label-5465
SELECT COUNT ( * ) + + 19 col2
----
20

query I rowsort
SELECT ALL - 65 * + - 93 * - 65
----
-392925

query I rowsort
SELECT + 84 + 58
----
142

query I rowsort
SELECT + 68 - + 97 * - 13
----
1329

query I rowsort
SELECT - + 35 + + ( - - 96 ) + - + 38
----
23

query II rowsort
SELECT ALL - 17 AS col1, + 17 AS col2
----
-17
17

onlyif mysql # DIV for integer division: 
query II rowsort label-5471
SELECT ALL - 47 DIV - 62 * - + 63 AS col0, 60
----
0
60

skipif mysql # not compatible
query II rowsort label-5471
SELECT ALL - 47 / - 62 * - + 63 AS col0, 60
----
0
60

query I rowsort
SELECT 10 * - ( - 53 ) + - 33
----
497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5473
SELECT DISTINCT + CASE + 63 WHEN - + COUNT( * ) THEN NULL WHEN + + 48 THEN - 22 + + 51 + 82 - + 57 * - + 65 * + - CAST( - 19 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT + CASE + 63 WHEN - + COUNT ( * ) THEN NULL WHEN + + 48 THEN - 22 + + 51 + 82 - + 57 * - + 65 * + - CAST ( - 19 AS INTEGER ) END AS col0
----
NULL

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

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

query I rowsort
SELECT - 64 * + NULLIF ( 52, - 98 * + 11 * + 50 )
----
-3328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5476
SELECT DISTINCT 51 * - + 20 * - COUNT( * ) + + MIN( DISTINCT - 97 ) + + NULLIF ( - 20, + + 42 ) DIV 89
----
923

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT 51 * - + 20 * - COUNT ( * ) + + MIN ( DISTINCT - 97 ) + + NULLIF ( - 20, + + 42 ) / 89
----
923

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT DISTINCT - 30 * + CASE COUNT( * ) WHEN + ( - - 36 ) + - + COUNT( * ) THEN - 92 * 87 + - 32 END * - + MIN( 39 ) * - + 74 + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT - 30 * + CASE COUNT ( * ) WHEN + ( - - 36 ) + - + COUNT ( * ) THEN - 92 * 87 + - 32 END * - + MIN ( 39 ) * - + 74 + + 43
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5478
SELECT ALL + 75 * - 44, - COUNT( * ) AS col2
----
-3300
-1

skipif mysql # not compatible
query II rowsort label-5478
SELECT ALL + 75 * - 44, - COUNT ( * ) AS col2
----
-3300
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT ALL 26 * - ( - 27 ) + + MAX( ALL - 39 )
----
663

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL 26 * - ( - 27 ) + + MAX ( ALL - 39 )
----
663

query I rowsort
SELECT DISTINCT + 58 * 20
----
1160

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT COUNT( * ) * - 95 - 59 - - 94 * + 44 * 24
----
99110

skipif mysql # not compatible
query I rowsort label-5481
SELECT COUNT ( * ) * - 95 - 59 - - 94 * + 44 * 24
----
99110

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5482
SELECT ALL 94 * 57 + 19 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL 94 * 57 + 19 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT ALL - - COUNT( * ) * + COALESCE ( - 33, - + 85 ) + COUNT( * ) col1
----
-32

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL - - COUNT ( * ) * + COALESCE ( - 33, - + 85 ) + COUNT ( * ) col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5484
SELECT + + 49 + - 83, 70 * + - CASE + CASE + 75 WHEN + 85 + + CAST( 88 AS DECIMAL ) + - 39 THEN - 0 WHEN - + 85 + - 91 + - - ( - 86 ) - + + SUM( - - 29 ) THEN NULL END WHEN - - 7 THEN NULL ELSE + - CASE - 53 WHEN + MIN( ALL + 50 ) * + ( 45 ) * + 51 THEN + 39 WHEN + 94 THEN NULL END END / 98 AS col0
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-5484
SELECT + + 49 + - 83, 70 * + - CASE + CASE + 75 WHEN + 85 + + CAST ( 88 AS REAL ) + - 39 THEN - 0 WHEN - + 85 + - 91 + - - ( - 86 ) - + + SUM ( - - 29 ) THEN NULL END WHEN - - 7 THEN NULL ELSE + - CASE - 53 WHEN + MIN ( ALL + 50 ) * + ( 45 ) * + 51 THEN + 39 WHEN + 94 THEN NULL END END / 98 AS col0
----
-34
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5485
SELECT - MAX( - - 1 ) AS col0, + COUNT( * ) + - 43 AS col2
----
-1
-42

skipif mysql # not compatible
query II rowsort label-5485
SELECT - MAX ( - - 1 ) AS col0, + COUNT ( * ) + - 43 AS col2
----
-1
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5486
SELECT DISTINCT 81 * - 70 * 39 / + + 16 * + 92 * - COALESCE ( - + CAST( NULL AS SIGNED ), + 96 ) / CAST( NULL AS SIGNED ) + - COUNT( * ) + - + SUM( DISTINCT 53 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT 81 * - 70 * 39 / + + 16 * + 92 * - COALESCE ( - + CAST ( NULL AS INTEGER ), + 96 ) / CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - + SUM ( DISTINCT 53 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5487
SELECT ALL CAST( 86 AS SIGNED ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL CAST ( 86 AS INTEGER ) AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5488
SELECT DISTINCT - 35 - - CAST( + 9 AS SIGNED ) * + 17 * + 8 AS col1, MIN( ALL + 15 ) - CAST( NULL AS SIGNED ) * - COALESCE ( - 65, - 61 + 26 ) + - 99 + - - COUNT( * ) - + - 67 + 18 AS col1
----
1189
NULL

skipif mysql # not compatible
query II rowsort label-5488
SELECT DISTINCT - 35 - - CAST ( + 9 AS INTEGER ) * + 17 * + 8 AS col1, MIN ( ALL + 15 ) - CAST ( NULL AS INTEGER ) * - COALESCE ( - 65, - 61 + 26 ) + - 99 + - - COUNT ( * ) - + - 67 + 18 AS col1
----
1189
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5489
SELECT CAST( + 98 AS SIGNED ) AS col1, - 68 AS col0
----
98
-68

skipif mysql # not compatible
query II rowsort label-5489
SELECT CAST ( + 98 AS INTEGER ) AS col1, - 68 AS col0
----
98
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-5490
SELECT CASE + 99 WHEN 88 * - 56 * + 77 / + - 20 THEN + COUNT( * ) END AS col2, 12 AS col1
----
NULL
12

skipif mysql # not compatible
query II rowsort label-5490
SELECT CASE + 99 WHEN 88 * - 56 * + 77 / + - 20 THEN + COUNT ( * ) END AS col2, 12 AS col1
----
NULL
12

query I rowsort
SELECT + ( 74 ) + - - 52 + - 81
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5492
SELECT + + 50 DIV + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5492
SELECT + + 50 / + 52 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT + 96 * + CASE + ( - - 91 ) WHEN + - 48 THEN NULL ELSE 26 + - COUNT( - + 53 ) + + 26 * + + COUNT( + 28 ) END
----
4896

skipif mysql # not compatible
query I rowsort label-5493
SELECT + 96 * + CASE + ( - - 91 ) WHEN + - 48 THEN NULL ELSE 26 + - COUNT ( - + 53 ) + + 26 * + + COUNT ( + 28 ) END
----
4896

query I rowsort
SELECT ALL + 6 * + + 82
----
492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT - NULLIF ( + - CAST( NULL AS SIGNED ), - 57 * + 38 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT - NULLIF ( + - CAST ( NULL AS INTEGER ), - 57 * + 38 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5496
SELECT - 41 * + 35 * - COUNT( * ) AS col1, 21 * + 62 AS col1
----
1435
1302

skipif mysql # not compatible
query II rowsort label-5496
SELECT - 41 * + 35 * - COUNT ( * ) AS col1, 21 * + 62 AS col1
----
1435
1302

query I rowsort
SELECT ALL 6 + + - 97
----
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT COUNT( * ) * - 44 - - 96 + 80 + - 33 * 21
----
-561

skipif mysql # not compatible
query I rowsort label-5499
SELECT COUNT ( * ) * - 44 - - 96 + 80 + - 33 * 21
----
-561

query I rowsort
SELECT ALL - 43 * 51
----
-2193

query I rowsort
SELECT DISTINCT 29 * + - 54
----
-1566

query I rowsort
SELECT - 40 * - - 81 * + ( 95 )
----
-307800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5503
SELECT - ( + + 79 ) - - 70 - + COUNT( * ) DIV - 91
----
-9

skipif mysql # not compatible
query I rowsort label-5503
SELECT - ( + + 79 ) - - 70 - + COUNT ( * ) / - 91
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5504
SELECT DISTINCT COUNT( * ) DIV 10 + + 86
----
86

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT COUNT ( * ) / 10 + + 86
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5505
SELECT - ( - 30 ) + CAST( - 83 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-5505
SELECT - ( - 30 ) + CAST ( - 83 AS INTEGER )
----
-53

query I rowsort
SELECT - 80 * + 43
----
-3440

query I rowsort
SELECT ALL + CASE 65 WHEN - + 48 * - + 22 THEN 38 ELSE NULL END * - - 44 * 52
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT DISTINCT - 31 * - 39 * ( COUNT( * ) ) AS col2
----
1209

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT - 31 * - 39 * ( COUNT ( * ) ) AS col2
----
1209

query II rowsort
SELECT ALL + 82 col2, NULLIF ( + 28, + - ( + 80 ) * - 9 ) AS col2
----
82
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5511
SELECT - CASE - - 34 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + COUNT( * ) THEN 67 * + + 96 - COUNT( * ) + - 60 END + + + 66 + + - COALESCE ( + 97, 47 * 48 * 46 ) * 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5511
SELECT - CASE - - 34 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN 67 * + + 96 - COUNT ( * ) + - 60 END + + + 66 + + - COALESCE ( + 97, 47 * 48 * 46 ) * 99 AS col1
----
NULL

query I rowsort
SELECT + 27 * + 85 AS col0
----
2295

query I rowsort
SELECT 42 * - 21 + - 39 * - - 31 AS col2
----
-2091

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT SUM( + 14 ) * 96 col1
----
1344

skipif mysql # not compatible
query I rowsort label-5514
SELECT SUM ( + 14 ) * 96 col1
----
1344

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

query I rowsort
SELECT ALL - ( - - 59 ) + + - 49 col2
----
-108

query I rowsort
SELECT ALL 52 + - - 9 * - ( + - 59 ) AS col0
----
583

onlyif mysql # aggregate syntax: 
query II rowsort label-5518
SELECT CASE 28 WHEN - + COALESCE ( + 36, COUNT( * ) + COUNT( * ) ) THEN COUNT( ALL + + 51 ) END * + COUNT( * ), + 4 + + 96 + + - ( + CASE 9 WHEN 75 + - 97 THEN + 34 END ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5518
SELECT CASE 28 WHEN - + COALESCE ( + 36, COUNT ( * ) + COUNT ( * ) ) THEN COUNT ( ALL + + 51 ) END * + COUNT ( * ), + 4 + + 96 + + - ( + CASE 9 WHEN 75 + - 97 THEN + 34 END ) AS col1
----
NULL
NULL

query II rowsort
SELECT DISTINCT 81 + - 52 AS col0, 51 AS col2
----
29
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT ALL - 12 * COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL - 12 * COUNT ( * )
----
-12

query I rowsort
SELECT DISTINCT 57 + + 4
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5522
SELECT CASE + 16 WHEN - + CAST( CAST( 18 AS SIGNED ) AS DECIMAL ) THEN 0 WHEN + 2 THEN + 64 * - - COUNT( * ) ELSE COALESCE ( + 71, - - 12 + - + COALESCE ( - + 14, + - COUNT( 13 ), + 12 ) + + 12, - 68 + CAST( 69 AS SIGNED ) * 29 ) END * - CAST( NULL AS SIGNED ) * - CAST( 76 AS SIGNED ) * - 19 - - 5 + + 79 * - - 8 / - + ( - 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT CASE + 16 WHEN - + CAST ( CAST ( 18 AS INTEGER ) AS REAL ) THEN 0 WHEN + 2 THEN + 64 * - - COUNT ( * ) ELSE COALESCE ( + 71, - - 12 + - + COALESCE ( - + 14, + - COUNT ( 13 ), + 12 ) + + 12, - 68 + CAST ( 69 AS INTEGER ) * 29 ) END * - CAST ( NULL AS INTEGER ) * - CAST ( 76 AS INTEGER ) * - 19 - - 5 + + 79 * - - 8 / - + ( - 20 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5523
SELECT 99 + + 75 + + + 73 * + - COUNT( * ) col1, - 4
----
101
-4

skipif mysql # not compatible
query II rowsort label-5523
SELECT 99 + + 75 + + + 73 * + - COUNT ( * ) col1, - 4
----
101
-4

query I rowsort
SELECT ALL 10 * - 86 AS col1
----
-860

onlyif mysql # aggregate syntax: 
query II rowsort label-5525
SELECT 76 * - - 10 + - COUNT( * ) * 17, NULLIF ( + - 88, - 63 ) * ( - 63 ) * - + ( + CASE ( 41 ) WHEN 35 * + 79 * - 42 THEN + - 47 * + 91 ELSE NULL END ) * 49 / + 94 + - COALESCE ( COUNT( * ), - 75, 71 * + 58 + COUNT( * ) ) AS col0
----
743
NULL

skipif mysql # not compatible
query II rowsort label-5525
SELECT 76 * - - 10 + - COUNT ( * ) * 17, NULLIF ( + - 88, - 63 ) * ( - 63 ) * - + ( + CASE ( 41 ) WHEN 35 * + 79 * - 42 THEN + - 47 * + 91 ELSE NULL END ) * 49 / + 94 + - COALESCE ( COUNT ( * ), - 75, 71 * + 58 + COUNT ( * ) ) AS col0
----
743
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5526
SELECT - ( - 6 ) * + 23 * + + 0 + - 49 + - COALESCE ( - + MAX( + 55 ), - 68 DIV - 96, + ( 20 ) ) col2
----
6

skipif mysql # not compatible
query I rowsort label-5526
SELECT - ( - 6 ) * + 23 * + + 0 + - 49 + - COALESCE ( - + MAX ( + 55 ), - 68 / - 96, + ( 20 ) ) col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5527
SELECT DISTINCT - CASE + ( - COUNT( * ) ) WHEN - ( COUNT( * ) ) * - 41 THEN 94 * 11 + 90 * - CASE - 9 WHEN - + 18 + COUNT( * ) THEN + 89 ELSE NULL END - - CASE - 10 WHEN - 86 THEN NULL WHEN + MIN( DISTINCT + 46 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN + + COUNT( * ) + 41 END ELSE - 2 END col0
----
2

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT - CASE + ( - COUNT ( * ) ) WHEN - ( COUNT ( * ) ) * - 41 THEN 94 * 11 + 90 * - CASE - 9 WHEN - + 18 + COUNT ( * ) THEN + 89 ELSE NULL END - - CASE - 10 WHEN - 86 THEN NULL WHEN + MIN ( DISTINCT + 46 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN + + COUNT ( * ) + 41 END ELSE - 2 END col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT CASE 31 WHEN - + 89 * 73 + - + COALESCE ( 84, + + 86 + + + MIN( ALL + - 49 ) ) * - 7 * 58 - 14 + - 10 * 44 THEN COUNT( * ) + - COUNT( ALL + 14 ) + + 69 + 70 * - 25 * + 67 ELSE NULL END * - ( + - MAX( + 17 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT CASE 31 WHEN - + 89 * 73 + - + COALESCE ( 84, + + 86 + + + MIN ( ALL + - 49 ) ) * - 7 * 58 - 14 + - 10 * 44 THEN COUNT ( * ) + - COUNT ( ALL + 14 ) + + 69 + 70 * - 25 * + 67 ELSE NULL END * - ( + - MAX ( + 17 ) )
----
NULL

query I rowsort
SELECT ALL 74 * - 28
----
-2072

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT ALL - + NULLIF ( - COUNT( * ), + - 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL - + NULLIF ( - COUNT ( * ), + - 73 ) AS col1
----
1

query I rowsort
SELECT - ( - 90 ) + 55 + 68 AS col0
----
213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5533
SELECT 76 DIV - - 33 + - 9 + - + COUNT( * ) DIV + - 21 * + 44 * - 98 * + 59 * 2 + 13
----
6

skipif mysql # not compatible
query I rowsort label-5533
SELECT 76 / - - 33 + - 9 + - + COUNT ( * ) / + - 21 * + 44 * - 98 * + 59 * 2 + 13
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5534
SELECT ALL + 38 * COUNT( * ) AS col2, SUM( 16 ) + - + 44
----
38
-28

skipif mysql # not compatible
query II rowsort label-5534
SELECT ALL + 38 * COUNT ( * ) AS col2, SUM ( 16 ) + - + 44
----
38
-28

onlyif mysql # DIV for integer division: 
query II rowsort label-5535
SELECT + 37 + + + 79 AS col1, 54 DIV + 57 * + 32 AS col0
----
116
0

skipif mysql # not compatible
query II rowsort label-5535
SELECT + 37 + + + 79 AS col1, 54 / + 57 * + 32 AS col0
----
116
0

query II rowsort
SELECT - COALESCE ( + 23, + - 11 ) * 53 AS col1, 50 AS col0
----
-1219
50

query I rowsort
SELECT ALL + - ( 10 ) * 90 col1
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT CASE ( + COUNT( * ) ) WHEN + + 8 THEN NULL ELSE + 86 END * - 88 * + 24
----
-181632

skipif mysql # not compatible
query I rowsort label-5538
SELECT CASE ( + COUNT ( * ) ) WHEN + + 8 THEN NULL ELSE + 86 END * - 88 * + 24
----
-181632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5539
SELECT + 20 + - 76 + + - 62 * - CAST( NULL AS SIGNED ) - + + 49 - - NULLIF ( 86, - + 77 ) * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT + 20 + - 76 + + - 62 * - CAST ( NULL AS INTEGER ) - + + 49 - - NULLIF ( 86, - + 77 ) * + 17
----
NULL

query I rowsort
SELECT DISTINCT + 44 * 44 AS col0
----
1936

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ALL - 86 * - SUM( + 96 )
----
8256

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL - 86 * - SUM ( + 96 )
----
8256

query I rowsort
SELECT ALL + - 59 + + 74 * + + 2 + + + 66
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT DISTINCT + CASE + COUNT( * ) WHEN + COUNT( 30 ) THEN NULL WHEN + 24 * 63 + + 65 + 66 - + 75 + - 66 * COUNT( * ) * + 76 * + COUNT( * ) * 15 THEN + - 73 ELSE NULLIF ( - 27, + 83 + - 4 / - 85 * + ( 74 ) + + COUNT( - - 40 ) ) END + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT + CASE + COUNT ( * ) WHEN + COUNT ( 30 ) THEN NULL WHEN + 24 * 63 + + 65 + 66 - + 75 + - 66 * COUNT ( * ) * + 76 * + COUNT ( * ) * 15 THEN + - 73 ELSE NULLIF ( - 27, + 83 + - 4 / - 85 * + ( 74 ) + + COUNT ( - - 40 ) ) END + - 72
----
NULL

query I rowsort
SELECT ALL - + 46 * + 62 * + 18 AS col2
----
-51336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5545
SELECT - 14 + COUNT( * ) + + - 13 - + - 84 - - 80 + 92 * - 79 * - CAST( NULL AS SIGNED ) * + 47 + + + 66 * - + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT - 14 + COUNT ( * ) + + - 13 - + - 84 - - 80 + 92 * - 79 * - CAST ( NULL AS INTEGER ) * + 47 + + + 66 * - + 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT ALL + MIN( + 16 ) + - - ( + 69 ) * ( MAX( ALL + 64 ) ) AS col2
----
4432

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL + MIN ( + 16 ) + - - ( + 69 ) * ( MAX ( ALL + 64 ) ) AS col2
----
4432

query I rowsort
SELECT + 53 * - 74 col1
----
-3922

query II rowsort
SELECT - 27 * + + 2 AS col2, 37 + + 75
----
-54
112

query I rowsort
SELECT ALL - 88 + 45 AS col0
----
-43

query I rowsort
SELECT 81 + - - 46
----
127

query I rowsort
SELECT 55 * + 27 AS col1
----
1485

query I rowsort
SELECT ALL 76 + - 99 AS col2
----
-23

query I rowsort
SELECT ALL - 89 + 51 AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5554
SELECT DISTINCT 11 * + 2 * + 42, + COALESCE ( + 71, 80 - + COUNT( * ), 92 DIV - + 92 + + 65 + + 14 - + 86 * + 15 - + - 67 * + COUNT( * ) DIV + + 22 ) AS col1
----
924
71

skipif mysql # not compatible
query II rowsort label-5554
SELECT DISTINCT 11 * + 2 * + 42, + COALESCE ( + 71, 80 - + COUNT ( * ), 92 / - + 92 + + 65 + + 14 - + 86 * + 15 - + - 67 * + COUNT ( * ) / + + 22 ) AS col1
----
924
71

query I rowsort
SELECT ALL + 25 * + - 4
----
-100

query I rowsort
SELECT DISTINCT - 71 + + - 14
----
-85

query I rowsort
SELECT ALL + 16 + - 59 + - + 45 AS col2
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-5558
SELECT - 25 AS col0, 50 DIV + 95
----
-25
0

skipif mysql # not compatible
query II rowsort label-5558
SELECT - 25 AS col0, 50 / + 95
----
-25
0

query I rowsort
SELECT ALL - 53 - + COALESCE ( - - 9, - 93 ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-5560
SELECT - 27 AS col1, SUM( + 66 ) AS col0
----
-27
66

skipif mysql # not compatible
query II rowsort label-5560
SELECT - 27 AS col1, SUM ( + 66 ) AS col0
----
-27
66

query I rowsort
SELECT ( + - 70 ) * - + ( - NULLIF ( + 88, + 33 / + + 90 + - 95 + - 24 * + 47 * - COALESCE ( 86, - - 28 * - + 27 + - + 97 + + 43, + 85 * - - 33 ) ) ) + 29 * + 72
----
-4072

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5562
SELECT ( + 25 ) * + + 46 * - 36 - - 20 + 1 + + + 92 * - CAST( NULL AS DECIMAL ) + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5562
SELECT ( + 25 ) * + + 46 * - 36 - - 20 + 1 + + + 92 * - CAST ( NULL AS REAL ) + 77
----
NULL

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

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

query I rowsort
SELECT ( - 69 ) * 96
----
-6624

query I rowsort
SELECT ALL - NULLIF ( - - 59, 66 )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5566
SELECT DISTINCT CAST( 60 AS SIGNED ) * 65 + + 26
----
3926

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT CAST ( 60 AS INTEGER ) * 65 + + 26
----
3926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5567
SELECT ALL - 76 AS col1, + MIN( + 18 ) AS col1, CAST( NULL AS SIGNED ) + 69 + 54 / 54 + 36 + + 67 * + 58 AS col0
----
-76
18
NULL

skipif mysql # not compatible
query III rowsort label-5567
SELECT ALL - 76 AS col1, + MIN ( + 18 ) AS col1, CAST ( NULL AS INTEGER ) + 69 + 54 / 54 + 36 + + 67 * + 58 AS col0
----
-76
18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT 15 - SUM( 97 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-5568
SELECT 15 - SUM ( 97 ) AS col1
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5569
SELECT ALL 27 DIV - ( 79 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL 27 / - ( 79 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5570
SELECT 86 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-5570
SELECT 86 / 88
----
0

query I rowsort
SELECT - 25 * ( ( - 77 ) ) - 82 AS col0
----
1843

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT 5 + 28 DIV - COALESCE ( + ( 18 ), 99 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5572
SELECT 5 + 28 / - COALESCE ( + ( 18 ), 99 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT + NULLIF ( - 19, COUNT( * ) ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5573
SELECT + NULLIF ( - 19, COUNT ( * ) ) AS col1
----
-19

query I rowsort
SELECT + 61 + 42
----
103

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

query I rowsort
SELECT DISTINCT + 94 * + 84 + + 3
----
7899

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5577
SELECT DISTINCT COALESCE ( + COUNT( DISTINCT - 4 ), 81, - COUNT( * ) DIV + 73 ) * + 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT COALESCE ( + COUNT ( DISTINCT - 4 ), 81, - COUNT ( * ) / + 73 ) * + 76 AS col1
----
76

query I rowsort
SELECT + CASE - 3 WHEN 3 THEN NULL ELSE 28 END
----
28

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

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

query I rowsort
SELECT ALL ( + 57 ) + - 61
----
-4

query I rowsort
SELECT + 36 + 90 * 43 AS col2
----
3906

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5582
SELECT - CASE 81 WHEN COUNT( * ) THEN NULL ELSE - 55 DIV + 30 END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5582
SELECT - CASE 81 WHEN COUNT ( * ) THEN NULL ELSE - 55 / + 30 END AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT ALL 7 + NULLIF ( - 62 + CAST( 93 AS SIGNED ), + 4 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL 7 + NULLIF ( - 62 + CAST ( 93 AS INTEGER ), + 4 ) AS col1
----
38

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

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

query I rowsort
SELECT - ( 26 ) * 96
----
-2496

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

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

query I rowsort
SELECT ALL - 84 + - 54
----
-138

query I rowsort
SELECT - 82 * 27 AS col2
----
-2214

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT DISTINCT 88 * MIN( 25 )
----
2200

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT 88 * MIN ( 25 )
----
2200

query I rowsort
SELECT DISTINCT 6 - 11 col0
----
-5

query I rowsort
SELECT - 17 * 88
----
-1496

query I rowsort
SELECT - 35 + - 48 AS col1
----
-83

query I rowsort
SELECT + 46 * ( - 52 ) AS col1
----
-2392

query I rowsort
SELECT - ( 75 ) + 94 AS col1
----
19

query I rowsort
SELECT - 81 * 68 AS col0
----
-5508

query I rowsort
SELECT - 87 + 67 * 13 AS col0
----
784

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

query I rowsort
SELECT - 99 + + 56 AS col2
----
-43

query I rowsort
SELECT ALL CASE + 44 WHEN 25 THEN + 21 / 23 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT DISTINCT MAX( ALL 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT MAX ( ALL 81 ) AS col1
----
81

query I rowsort
SELECT DISTINCT + 67 * - NULLIF ( + 81, - 55 + - 80 * ( 72 ) )
----
-5427

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL CASE + ( 36 ) WHEN 85 THEN - 84 ELSE + 89 - COALESCE ( COALESCE ( - NULLIF ( 69, COALESCE ( 78, - 91 / NULLIF ( SUM( DISTINCT 11 ), 92 + COUNT( * ) ) + - 98 ) + - 57 ), - 50 ), COALESCE ( - 10, - 2 ) ) END AS col0
----
158

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL CASE + ( 36 ) WHEN 85 THEN - 84 ELSE + 89 - COALESCE ( COALESCE ( - NULLIF ( 69, COALESCE ( 78, - 91 / NULLIF ( SUM ( DISTINCT 11 ), 92 + COUNT ( * ) ) + - 98 ) + - 57 ), - 50 ), COALESCE ( - 10, - 2 ) ) END AS col0
----
158

query I rowsort
SELECT DISTINCT NULLIF ( - 26, + 81 / COALESCE ( - 79, ( + 86 ) ) ) col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT ALL + MAX( + ( 14 ) ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL + MAX ( + ( 14 ) ) AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5605
SELECT DISTINCT + CASE + COUNT( * ) WHEN - 76 * - 91 THEN 46 WHEN 16 THEN NULL WHEN - CAST( NULL AS DECIMAL ) THEN NULLIF ( + 76, + 82 ) * 53 END * - ( + ( 39 ) * 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT + CASE + COUNT ( * ) WHEN - 76 * - 91 THEN 46 WHEN 16 THEN NULL WHEN - CAST ( NULL AS REAL ) THEN NULLIF ( + 76, + 82 ) * 53 END * - ( + ( 39 ) * 53 )
----
NULL

query I rowsort
SELECT - 92 * 16 AS col0
----
-1472

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT + 97 + - MAX( + 18 + - 15 ) * - 47 AS col2
----
238

skipif mysql # not compatible
query I rowsort label-5607
SELECT + 97 + - MAX ( + 18 + - 15 ) * - 47 AS col2
----
238

query I rowsort
SELECT + - ( + 95 ) * - 27
----
2565

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

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

query I rowsort
SELECT + + AVG ( CASE NULLIF ( 7, + 0 ) WHEN + 34 THEN 91 + + 62 END )
----
NULL

query I rowsort
SELECT - + 72 * 71
----
-5112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5612
SELECT CAST( + COUNT( * ) AS SIGNED ) * + 53 + 31
----
84

skipif mysql # not compatible
query I rowsort label-5612
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + 53 + 31
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5613
SELECT - 33 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-5613
SELECT - 33 / + 74
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - ( - 66 + + 31 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - ( - 66 + + 31 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5615
SELECT DISTINCT - 44 * 90 + + CASE - COUNT( * ) + 88 * - 82 WHEN + CASE WHEN - 89 > - CAST( ( COUNT( * ) ) AS SIGNED ) THEN 60 ELSE NULL END THEN - 30 ELSE NULL END * ( + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT - 44 * 90 + + CASE - COUNT ( * ) + 88 * - 82 WHEN + CASE WHEN - 89 > - CAST ( ( COUNT ( * ) ) AS INTEGER ) THEN 60 ELSE NULL END THEN - 30 ELSE NULL END * ( + 14 )
----
NULL

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

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

query I rowsort
SELECT + + ( + 17 ) + 27 AS col1
----
44

query I rowsort
SELECT DISTINCT + COALESCE ( NULLIF ( + 56, ( - 24 ) + 75 / - 12 ), 24, + ( + 61 ) * 18 ) * + ( + 8 ) + 1
----
449

query I rowsort
SELECT ALL + + NULLIF ( 62, + 49 )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5620
SELECT DISTINCT 48 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT 48 / - 54
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5621
SELECT + ( 13 ) DIV - 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5621
SELECT + ( 13 ) / - 71 AS col0
----
0

query I rowsort
SELECT + 49 * + 30
----
1470

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT DISTINCT + CASE - 39 WHEN + ( COUNT( - 21 ) ) + + 40 THEN 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT + CASE - 39 WHEN + ( COUNT ( - 21 ) ) + + 40 THEN 54 END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 65 * - 59 * + 20
----
-76700

query I rowsort
SELECT ALL CASE 68 WHEN - 59 THEN 65 ELSE - 45 END AS col1
----
-45

query I rowsort
SELECT ALL 88 * - 11 - 24 AS col1
----
-992

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

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

query I rowsort
SELECT + 23 * - 82 col0
----
-1886

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5631
SELECT SUM( DISTINCT - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT SUM ( DISTINCT - CAST ( NULL AS REAL ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL MAX ( ALL 86 )
----
86

query I rowsort
SELECT - 5 + - 17
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5634
SELECT DISTINCT CASE 83 WHEN + 16 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 96 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT CASE 83 WHEN + 16 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 96 ELSE NULL END col0
----
NULL

query I rowsort
SELECT DISTINCT - 36 * - 7 AS col1
----
252

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

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

query I rowsort
SELECT ALL 34 * - 65 AS col1
----
-2210

query I rowsort
SELECT ALL + 91 * + ( 40 )
----
3640

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

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

query I rowsort
SELECT - 39 * 62
----
-2418

query I rowsort
SELECT DISTINCT + 82 + - - 71 col0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-5642
SELECT - 15 DIV - 10 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5642
SELECT - 15 / - 10 AS col0
----
1

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

query I rowsort
SELECT ALL - CASE WHEN NULL IS NOT NULL THEN 98 END + 35
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5645
SELECT 62 - - + 22 DIV COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-5645
SELECT 62 - - + 22 / COUNT ( * ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT 92 * 45 * - COUNT( * )
----
-4140

skipif mysql # not compatible
query I rowsort label-5646
SELECT 92 * 45 * - COUNT ( * )
----
-4140

query I rowsort
SELECT ALL - - ( + 26 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT CASE - - SUM( DISTINCT 9 ) WHEN - COUNT( * ) THEN NULL WHEN - 56 + - COUNT( * ) THEN - 20 ELSE COUNT( * ) * - COUNT( * ) END col2
----
-1

skipif mysql # not compatible
query I rowsort label-5648
SELECT CASE - - SUM ( DISTINCT 9 ) WHEN - COUNT ( * ) THEN NULL WHEN - 56 + - COUNT ( * ) THEN - 20 ELSE COUNT ( * ) * - COUNT ( * ) END col2
----
-1

query I rowsort
SELECT DISTINCT - + 15 + + 54
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5650
SELECT + 58 - + ( - CAST( + 66 AS SIGNED ) ) + 38 * 3 AS col2
----
238

skipif mysql # not compatible
query I rowsort label-5650
SELECT + 58 - + ( - CAST ( + 66 AS INTEGER ) ) + 38 * 3 AS col2
----
238

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT ALL - + 40 + 33 + COUNT( ALL 13 )
----
-6

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL - + 40 + 33 + COUNT ( ALL 13 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5653
SELECT ALL - 5 + + ( 49 ) DIV CASE CASE - ( 63 ) WHEN 3 THEN - ( + 52 ) + - COUNT( * ) DIV + 38 ELSE NULL END WHEN 44 THEN - 19 WHEN 88 + - 59 THEN NULL ELSE - 99 * + 85 END AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL - 5 + + ( 49 ) / CASE CASE - ( 63 ) WHEN 3 THEN - ( + 52 ) + - COUNT ( * ) / + 38 ELSE NULL END WHEN 44 THEN - 19 WHEN 88 + - 59 THEN NULL ELSE - 99 * + 85 END AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT COALESCE ( - 11, CASE ( - 11 ) WHEN COALESCE ( COALESCE ( + 72, 24, 96 + 49 ), + 84 ) THEN + 85 * - 92 WHEN 49 + + COUNT( * ) THEN NULL ELSE NULL END, + COALESCE ( 69, + 44 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-5654
SELECT COALESCE ( - 11, CASE ( - 11 ) WHEN COALESCE ( COALESCE ( + 72, 24, 96 + 49 ), + 84 ) THEN + 85 * - 92 WHEN 49 + + COUNT ( * ) THEN NULL ELSE NULL END, + COALESCE ( 69, + 44 ) )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-5655
SELECT 31 DIV - 43 + 55
----
55

skipif mysql # not compatible
query I rowsort label-5655
SELECT 31 / - 43 + 55
----
55

query I rowsort
SELECT DISTINCT - 61 * + 30 AS col0
----
-1830

query I rowsort
SELECT ALL - + 98 - - ( 98 ) + + COALESCE ( - 29, 9 + - 52 * + 76 )
----
-29

query I rowsort
SELECT CASE - ( + 25 ) WHEN 11 THEN NULL WHEN AVG ( DISTINCT - 24 ) THEN NULL WHEN 40 * 37 THEN 55 END * 33 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5659
SELECT ALL - 22 DIV - COUNT( * ) + 18
----
40

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL - 22 / - COUNT ( * ) + 18
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT DISTINCT - 11 - + + 70 + - COUNT( * ) * - 42 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT - 11 - + + 70 + - COUNT ( * ) * - 42 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-5661
SELECT + 2 AS col0, + 53 + COUNT( * ) AS col0
----
2
54

skipif mysql # not compatible
query II rowsort label-5661
SELECT + 2 AS col0, + 53 + COUNT ( * ) AS col0
----
2
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT COUNT( - 36 ) + - 20 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5662
SELECT COUNT ( - 36 ) + - 20 AS col0
----
-19

query I rowsort
SELECT 55 * ( + + 78 )
----
4290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5664
SELECT ALL 17 DIV - + MAX( - 62 ) * 17
----
0

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL 17 / - + MAX ( - 62 ) * 17
----
0

query I rowsort
SELECT 64 * + - 62 AS col1
----
-3968

query I rowsort
SELECT ( + 35 ) * + + 66 + - 57 AS col0
----
2253

query I rowsort
SELECT DISTINCT 11 * + 21 * + 35
----
8085

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT SUM( ALL 43 ) + + SUM( DISTINCT - 4 )
----
39

skipif mysql # not compatible
query I rowsort label-5668
SELECT SUM ( ALL 43 ) + + SUM ( DISTINCT - 4 )
----
39

query II rowsort
SELECT ALL 69 AS col2, 27 AS col1
----
69
27

query I rowsort
SELECT ALL 46 * - NULLIF ( + 93, - 59 + 4 )
----
-4278

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

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

query II rowsort
SELECT - 76 AS col1, + 36 * + ( 5 ) AS col2
----
-76
180

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

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

query I rowsort
SELECT ( 79 ) + 82 - + 97
----
64

query II rowsort
SELECT - 87 col2, + 84
----
-87
84

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

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

query I rowsort
SELECT ALL COALESCE ( - 81, - + 26 ) + 53 AS col2
----
-28

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

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

query I rowsort
SELECT 34 + ( - 66 ) * - 52 AS col0
----
3466

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT ALL MAX( - - 95 ) + + 15 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL MAX ( - - 95 ) + + 15 AS col1
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5681
SELECT COUNT( * ) + - 80 DIV COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-5681
SELECT COUNT ( * ) + - 80 / COUNT ( * ) AS col2
----
-79

query II rowsort
SELECT 6, + 41 + - 98 AS col1
----
6
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT DISTINCT + MIN( ALL - - 63 ) * 91 + + 56 AS col2
----
5789

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT + MIN ( ALL - - 63 ) * 91 + + 56 AS col2
----
5789

onlyif mysql # DIV for integer division: 
query I rowsort label-5685
SELECT + 6 DIV - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5685
SELECT + 6 / - 86 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5686
SELECT ALL + CASE CAST( + 48 AS SIGNED ) WHEN 63 + + 50 THEN - 22 + - 68 ELSE + 0 DIV COUNT( * ) END + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL + CASE CAST ( + 48 AS INTEGER ) WHEN 63 + + 50 THEN - 22 + - 68 ELSE + 0 / COUNT ( * ) END + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT COUNT( ALL - 74 )
----
1

skipif mysql # not compatible
query I rowsort label-5687
SELECT COUNT ( ALL - 74 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT DISTINCT + 27 + - MAX( - 46 ) + CASE - COUNT( * ) WHEN + 67 + + 52 * - 86 THEN 56 * MAX( - 61 / 28 ) WHEN 86 THEN + 85 * COUNT( * ) + 69 * 7 WHEN NULLIF ( + 41, + NULLIF ( - 87, - COUNT( * ) / + 29 ) * ( + 49 ) ) THEN COALESCE ( + ( - ( MAX( ALL + 83 ) ) ), + 16 + - MIN( NULLIF ( 56, 89 + - 25 * + 50 ) ) / 77 ) * + 19 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT + 27 + - MAX ( - 46 ) + CASE - COUNT ( * ) WHEN + 67 + + 52 * - 86 THEN 56 * MAX ( - 61 / 28 ) WHEN 86 THEN + 85 * COUNT ( * ) + 69 * 7 WHEN NULLIF ( + 41, + NULLIF ( - 87, - COUNT ( * ) / + 29 ) * ( + 49 ) ) THEN COALESCE ( + ( - ( MAX ( ALL + 83 ) ) ), + 16 + - MIN ( NULLIF ( 56, 89 + - 25 * + 50 ) ) / 77 ) * + 19 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT ALL - MAX( DISTINCT 15 ) + - + 11
----
-26

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL - MAX ( DISTINCT 15 ) + - + 11
----
-26

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5691
SELECT DISTINCT + 0 * - NULLIF ( 27, - CASE - 74 WHEN 93 THEN 46 WHEN NULLIF ( - 10, + CAST( NULL AS DECIMAL ) ) * - ( 66 / - 22 ) THEN NULL ELSE 71 END )
----
0

skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT + 0 * - NULLIF ( 27, - CASE - 74 WHEN 93 THEN 46 WHEN NULLIF ( - 10, + CAST ( NULL AS REAL ) ) * - ( 66 / - 22 ) THEN NULL ELSE 71 END )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5692
SELECT - COUNT( * ) DIV - 95 + - 52 col1
----
-52

skipif mysql # not compatible
query I rowsort label-5692
SELECT - COUNT ( * ) / - 95 + - 52 col1
----
-52

query I rowsort
SELECT - 81 * - + 58 AS col2
----
4698

query I rowsort
SELECT ALL - - 37 + 11
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT ALL + COUNT( * ) - - 20 + 7 + 76
----
104

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL + COUNT ( * ) - - 20 + 7 + 76
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5696
SELECT 25 DIV - 19 * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5696
SELECT 25 / - 19 * COUNT ( * ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5697
SELECT ALL + 17 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL + 17 / + 77
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT - COALESCE ( CAST( 11 AS SIGNED ), 93 - 55, 99 * 35 ) * 17 AS col2
----
-187

skipif mysql # not compatible
query I rowsort label-5698
SELECT - COALESCE ( CAST ( 11 AS INTEGER ), 93 - 55, 99 * 35 ) * 17 AS col2
----
-187

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

skipif mysql # not compatible
query II rowsort label-5699
SELECT - CAST ( NULL AS INTEGER ) AS col0, 12 * - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5700
SELECT ALL - + CAST( - + 9 AS SIGNED ) - - 13 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-5700
SELECT ALL - + CAST ( - + 9 AS INTEGER ) - - 13 AS col1
----
22

query II rowsort
SELECT ALL - - 28 AS col0, 75 AS col1
----
28
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT 25 + - - COUNT( * ) * - + NULLIF ( 89, 37 )
----
-64

skipif mysql # not compatible
query I rowsort label-5702
SELECT 25 + - - COUNT ( * ) * - + NULLIF ( 89, 37 )
----
-64

query I rowsort
SELECT + + COALESCE ( 84, ( 76 ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT DISTINCT - + 95 * - - COUNT( * ) + CASE - 90 WHEN 26 THEN MAX( DISTINCT - 90 ) WHEN - AVG ( 9 ) * COALESCE ( 90, - 30, AVG ( 1 ) * - MAX( + 59 * 24 ) + COALESCE ( + 82 + - 40 * COUNT( * ), - 58 ), + 67 / + 65 ) THEN - ( 1 ) * 95 ELSE NULL END * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT - + 95 * - - COUNT ( * ) + CASE - 90 WHEN 26 THEN MAX ( DISTINCT - 90 ) WHEN - AVG ( 9 ) * COALESCE ( 90, - 30, AVG ( 1 ) * - MAX ( + 59 * 24 ) + COALESCE ( + 82 + - 40 * COUNT ( * ), - 58 ), + 67 / + 65 ) THEN - ( 1 ) * 95 ELSE NULL END * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 0 * + 90
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5706
SELECT - 79 * - - 53 + - CASE 2 WHEN CAST( NULL AS SIGNED ) * 90 THEN + 69 + 92 ELSE ( 81 ) * - 98 END AS col2
----
3751

skipif mysql # not compatible
query I rowsort label-5706
SELECT - 79 * - - 53 + - CASE 2 WHEN CAST ( NULL AS INTEGER ) * 90 THEN + 69 + 92 ELSE ( 81 ) * - 98 END AS col2
----
3751

query I rowsort
SELECT DISTINCT + 53 * + - 24
----
-1272

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5709
SELECT DISTINCT - COALESCE ( - CAST( NULL AS SIGNED ), 85 * + + 11 + 68 ) AS col1
----
-1003

skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT - COALESCE ( - CAST ( NULL AS INTEGER ), 85 * + + 11 + 68 ) AS col1
----
-1003

query I rowsort
SELECT ALL 40 + + ( + 34 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT ALL MIN( 40 )
----
40

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL MIN ( 40 )
----
40

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

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

query II rowsort
SELECT ALL - 63 + 87, + ( 41 ) * 87 AS col1
----
24
3567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5714
SELECT + MAX( - 74 ) DIV + 76 * 48
----
0

skipif mysql # not compatible
query I rowsort label-5714
SELECT + MAX ( - 74 ) / + 76 * 48
----
0

query I rowsort
SELECT - 86 * + + 24
----
-2064

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT + MAX( ALL + 43 ) * + 28
----
1204

skipif mysql # not compatible
query I rowsort label-5716
SELECT + MAX ( ALL + 43 ) * + 28
----
1204

query I rowsort
SELECT - 62 * - 93 * + ( + - 20 )
----
-115320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5718
SELECT - MAX( + CAST( NULL AS SIGNED ) ) AS col1, 47 + - - 0 * 5
----
NULL
47

skipif mysql # not compatible
query II rowsort label-5718
SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) AS col1, 47 + - - 0 * 5
----
NULL
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5719
SELECT ALL + 1 + 2 + + COUNT( + - CAST( NULL AS SIGNED ) ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL + 1 + 2 + + COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
3

query I rowsort
SELECT ALL 82 * + 73
----
5986

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

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

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

skipif mysql # not compatible
query I rowsort label-5722
SELECT + - COUNT ( * ) * - - 51 + + CAST ( 45 AS INTEGER ) - - 1 / + 93
----
-6

query I rowsort
SELECT + - COALESCE ( - + 19, 93 * - 80 ) * - 40
----
-760

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5725
SELECT ALL - CAST( - - 32 AS SIGNED ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL - CAST ( - - 32 AS INTEGER ) AS col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5726
SELECT DISTINCT - MAX( DISTINCT CAST( NULL AS SIGNED ) ) / SUM( ALL 33 ) + 55 * 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5726
SELECT DISTINCT - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) / SUM ( ALL 33 ) + 55 * 88 AS col2
----
NULL

query I rowsort
SELECT + - 83 + + NULLIF ( - 29, - 71 )
----
-112

query I rowsort
SELECT ALL + + 63 * 73 - 48 + + + 2
----
4553

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

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

query I rowsort
SELECT ALL + 2 * - 36 - - 58
----
-14

query I rowsort
SELECT ALL + 22 * - 42 + + 2 + + + 4 + - 6 AS col2
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT + COUNT( * ) - 99 + 44 + + - COUNT( * ) + 10
----
-45

skipif mysql # not compatible
query I rowsort label-5732
SELECT + COUNT ( * ) - 99 + 44 + + - COUNT ( * ) + 10
----
-45

query I rowsort
SELECT ALL 12 * - 59 AS col0
----
-708

onlyif mysql # aggregate syntax: 
query II rowsort label-5734
SELECT ALL + COUNT( 99 ) AS col2, - 48 * - - 97
----
1
-4656

skipif mysql # not compatible
query II rowsort label-5734
SELECT ALL + COUNT ( 99 ) AS col2, - 48 * - - 97
----
1
-4656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5735
SELECT + + COALESCE ( + CAST( NULL AS SIGNED ), - 87 ) * 63 AS col2
----
-5481

skipif mysql # not compatible
query I rowsort label-5735
SELECT + + COALESCE ( + CAST ( NULL AS INTEGER ), - 87 ) * 63 AS col2
----
-5481

query I rowsort
SELECT DISTINCT + 94 * - 55
----
-5170

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

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

query I rowsort
SELECT + 0 * + - 53
----
0

query I rowsort
SELECT - 65 * - 90 AS col1
----
5850

query I rowsort
SELECT ALL 82 * - ( + - 81 ) AS col0
----
6642

query I rowsort
SELECT NULLIF ( - 5, 53 ) AS col1
----
-5

query I rowsort
SELECT ALL + CASE - 57 WHEN 75 THEN + - 28 * + + 42 - 33 + + 64 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 0 * - NULLIF ( - - 32, + 79 ) * + + 36 + - 8 * 80
----
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT NULLIF ( + SUM( - NULLIF ( - 36, + 22 ) ), + ( + 68 ) )
----
36

skipif mysql # not compatible
query I rowsort label-5744
SELECT NULLIF ( + SUM ( - NULLIF ( - 36, + 22 ) ), + ( + 68 ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT ALL - COUNT( * ) * + 76 + - 8 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL - COUNT ( * ) * + 76 + - 8 AS col2
----
-84

query I rowsort
SELECT - 99 * + - ( - 65 ) * 17
----
-109395

query I rowsort
SELECT ALL - 6 * + + 63 * 84 * - 26 * + - 96 + + 52 col1
----
-79252940

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5748
SELECT - CAST( NULL AS DECIMAL ) + - AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ), + ( + + 85 ) AS col2
----
NULL
85

skipif mysql # not compatible
query II rowsort label-5748
SELECT - CAST ( NULL AS REAL ) + - AVG ( DISTINCT + CAST ( NULL AS REAL ) ), + ( + + 85 ) AS col2
----
NULL
85

query I rowsort
SELECT DISTINCT + 23 * 13 col0
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT 32 * + COUNT( * ) + 3 + - - 80 + + 18 col2
----
133

skipif mysql # not compatible
query I rowsort label-5750
SELECT 32 * + COUNT ( * ) + 3 + - - 80 + + 18 col2
----
133

query I rowsort
SELECT - 92 - - 44 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT - MIN( ALL - - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-5752
SELECT - MIN ( ALL - - 92 )
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5753
SELECT - 63 + + + MAX( ALL + 90 ) + 44 DIV 36 DIV 6
----
27

skipif mysql # not compatible
query I rowsort label-5753
SELECT - 63 + + + MAX ( ALL + 90 ) + 44 / 36 / 6
----
27

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5756
SELECT - COUNT( * ) + - ( - 11 ), + 27 AS col0
----
10
27

skipif mysql # not compatible
query II rowsort label-5756
SELECT - COUNT ( * ) + - ( - 11 ), + 27 AS col0
----
10
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5757
SELECT - - 47 + + 73 + + 21 + - 6 + - 41 * 39 DIV 3
----
-398

skipif mysql # not compatible
query I rowsort label-5757
SELECT - - 47 + + 73 + + 21 + - 6 + - 41 * 39 / 3
----
-398

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT ALL + 42 - SUM( 4 ) + + - 39 + + 53 * COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL + 42 - SUM ( 4 ) + + - 39 + + 53 * COUNT ( * )
----
52

query I rowsort
SELECT - NULLIF ( 88, 62 ) AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5760
SELECT + + 72 + - 37 * - 48 + + CAST( + - COUNT( * ) AS SIGNED ) - 42
----
1805

skipif mysql # not compatible
query I rowsort label-5760
SELECT + + 72 + - 37 * - 48 + + CAST ( + - COUNT ( * ) AS INTEGER ) - 42
----
1805

onlyif mysql # DIV for integer division: 
query I rowsort label-5761
SELECT ALL - + ( COALESCE ( - + ( - 44 ), - 20, 79 - + 47 ) ) - + NULLIF ( 68, + 60 * 23 ) DIV 5
----
-57

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL - + ( COALESCE ( - + ( - 44 ), - 20, 79 - + 47 ) ) - + NULLIF ( 68, + 60 * 23 ) / 5
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-5762
SELECT - + 61 DIV + - 77 + 81 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-5762
SELECT - + 61 / + - 77 + 81 AS col0
----
81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5764
SELECT ALL - - 33 DIV + + COALESCE ( + 30, - ( + ( + 97 ) ), - 27 + 66, + 40 ) + 46
----
47

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL - - 33 / + + COALESCE ( + 30, - ( + ( + 97 ) ), - 27 + 66, + 40 ) + 46
----
47

query I rowsort
SELECT + 47 * + - 30 AS col2
----
-1410

query I rowsort
SELECT ALL + 17 * - - 98 AS col2
----
1666

onlyif mysql # DIV for integer division: 
query I rowsort label-5767
SELECT ALL - + 66 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL - + 66 / + 68
----
0

query II rowsort
SELECT - 26 AS col2, + 12
----
-26
12

query I rowsort
SELECT ALL 43 * NULLIF ( + 48, 18 * AVG ( DISTINCT + 60 ) ) + - 77
----
1987

query I rowsort
SELECT ALL + - 53 * 84 * + 50 col1
----
-222600

query I rowsort
SELECT + 27 + - 50 * - 53
----
2677

query I rowsort
SELECT ALL ( - - ( + - COALESCE ( - + 14, - - 10 + - 71 ) ) ) AS col2
----
14

query I rowsort
SELECT - COALESCE ( - 75, - 94 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5774
SELECT + + COUNT( DISTINCT - - 79 ) + + 72 DIV + - ( + 18 )
----
-3

skipif mysql # not compatible
query I rowsort label-5774
SELECT + + COUNT ( DISTINCT - - 79 ) + + 72 / + - ( + 18 )
----
-3

query I rowsort
SELECT - + CASE + - 34 WHEN + 30 THEN - ( - 86 ) * + 99 WHEN - 40 + 7 THEN NULL END * - 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5776
SELECT + + 54 * - COUNT( * ) DIV + + COUNT( * ), 52 * + - 42 AS col0
----
-54
-2184

skipif mysql # not compatible
query II rowsort label-5776
SELECT + + 54 * - COUNT ( * ) / + + COUNT ( * ), 52 * + - 42 AS col0
----
-54
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT MIN( DISTINCT - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-5777
SELECT MIN ( DISTINCT - 54 ) AS col1
----
-54

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5779
SELECT ALL + 44, + COUNT( * ) + 47 AS col0
----
44
48

skipif mysql # not compatible
query II rowsort label-5779
SELECT ALL + 44, + COUNT ( * ) + 47 AS col0
----
44
48

query I rowsort
SELECT + - ( + - 37 ) * - 99 + - 99
----
-3762

query I rowsort
SELECT ALL 23 * - 44 col1
----
-1012

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5783
SELECT ALL 52 DIV - 96 * - + 57 + - 97
----
-97

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL 52 / - 96 * - + 57 + - 97
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5784
SELECT DISTINCT CAST( NULL AS SIGNED ) / - MAX( + - 78 ) + - 13, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5784
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - MAX ( + - 78 ) + - 13, + COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5785
SELECT DISTINCT + 76 AS col2, 67 * - - CAST( + + 99 AS SIGNED ) + - + 30 AS col0
----
76
6603

skipif mysql # not compatible
query II rowsort label-5785
SELECT DISTINCT + 76 AS col2, 67 * - - CAST ( + + 99 AS INTEGER ) + - + 30 AS col0
----
76
6603

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT + 23 + COUNT( * ) + + 24
----
48

skipif mysql # not compatible
query I rowsort label-5787
SELECT + 23 + COUNT ( * ) + + 24
----
48

query I rowsort
SELECT ALL 87 * - 86
----
-7482

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT 36 * + CASE WHEN 28 < - 65 THEN + COUNT( * ) WHEN NOT NULL <= NULL THEN - COUNT( * ) * COUNT( * ) - 35 END / - 91 + + 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5789
SELECT 36 * + CASE WHEN 28 < - 65 THEN + COUNT ( * ) WHEN NOT NULL <= NULL THEN - COUNT ( * ) * COUNT ( * ) - 35 END / - 91 + + 18 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT ALL - COUNT( - NULLIF ( + 36, + 41 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL - COUNT ( - NULLIF ( + 36, + 41 ) )
----
-1

query I rowsort
SELECT ( + 71 ) * - - 10 col0
----
710

query I rowsort
SELECT 44 * - 89
----
-3916

query II rowsort
SELECT ALL - 79 AS col1, 12 * 34
----
-79
408

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT ALL - ( - NULLIF ( + SUM( ALL - 38 ), 75 + - 27 + + COUNT( * ) ) ) + 59
----
21

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL - ( - NULLIF ( + SUM ( ALL - 38 ), 75 + - 27 + + COUNT ( * ) ) ) + 59
----
21

query II rowsort
SELECT + 84, CASE 47 WHEN + 93 THEN NULL WHEN + + 33 THEN 95 * - 4 + + 42 END AS col1
----
84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT ALL + COALESCE ( 83, - COUNT( * ) + + + COUNT( * ), - ( + 65 ) ) - - 51
----
134

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL + COALESCE ( 83, - COUNT ( * ) + + + COUNT ( * ), - ( + 65 ) ) - - 51
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5798
SELECT 30 * + - CASE + 24 WHEN + NULLIF ( - SUM( - 44 ), NULLIF ( + 68, 62 / 82 ) ) - + COUNT( * ) * + CASE - 99 + CASE 84 - 33 WHEN CAST( 13 AS SIGNED ) * NULLIF ( - 0, 55 * + 25 ) THEN NULL WHEN - 41 * - 76 THEN + COUNT( - 14 ) - + COUNT( * ) * + AVG ( + 6 ) WHEN + 13 THEN - 85 END WHEN MAX( DISTINCT 65 ) THEN 75 END THEN + 84 / COALESCE ( + SUM( + 4 ), 32 ) END * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5798
SELECT 30 * + - CASE + 24 WHEN + NULLIF ( - SUM ( - 44 ), NULLIF ( + 68, 62 / 82 ) ) - + COUNT ( * ) * + CASE - 99 + CASE 84 - 33 WHEN CAST ( 13 AS INTEGER ) * NULLIF ( - 0, 55 * + 25 ) THEN NULL WHEN - 41 * - 76 THEN + COUNT ( - 14 ) - + COUNT ( * ) * + AVG ( + 6 ) WHEN + 13 THEN - 85 END WHEN MAX ( DISTINCT 65 ) THEN 75 END THEN + 84 / COALESCE ( + SUM ( + 4 ), 32 ) END * 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT DISTINCT ( COALESCE ( - 84, 99 * - - 54 * 36 + - 14 ) ) - COUNT( * ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT ( COALESCE ( - 84, 99 * - - 54 * 36 + - 14 ) ) - COUNT ( * ) AS col0
----
-85

query II rowsort
SELECT DISTINCT 46 AS col0, 9 * + - ( + 10 ) col0
----
46
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5801
SELECT ALL + 1 - - - 2 * - - CAST( + 26 AS SIGNED ) * + + ( + - 36 ) AS col1
----
1873

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL + 1 - - - 2 * - - CAST ( + 26 AS INTEGER ) * + + ( + - 36 ) AS col1
----
1873

query I rowsort
SELECT 85 - - 71 * 97 AS col1
----
6972

query I rowsort
SELECT ALL - + 31 * - + 28 * + 59
----
51212

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT MAX( + 25 ) * - 47 AS col1
----
-1175

skipif mysql # not compatible
query I rowsort label-5804
SELECT MAX ( + 25 ) * - 47 AS col1
----
-1175

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT DISTINCT NULLIF ( - COUNT( * ), + 34 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT NULLIF ( - COUNT ( * ), + 34 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5806
SELECT ALL 43, SUM( DISTINCT + 43 )
----
43
43

skipif mysql # not compatible
query II rowsort label-5806
SELECT ALL 43, SUM ( DISTINCT + 43 )
----
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT 3 + + MAX( - ( 61 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-5807
SELECT 3 + + MAX ( - ( 61 ) )
----
-58

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5809
SELECT ALL COUNT( * ) col1, MAX( - NULLIF ( + 72, 88 + + 27 ) ) + + MIN( - 54 )
----
1
-126

skipif mysql # not compatible
query II rowsort label-5809
SELECT ALL COUNT ( * ) col1, MAX ( - NULLIF ( + 72, 88 + + 27 ) ) + + MIN ( - 54 )
----
1
-126

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

query I rowsort
SELECT - 91 + + 56
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-5812
SELECT - - 69 AS col1, MAX( + 61 )
----
69
61

skipif mysql # not compatible
query II rowsort label-5812
SELECT - - 69 AS col1, MAX ( + 61 )
----
69
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5813
SELECT + COUNT( * ) DIV NULLIF ( - 61, + 75 * - COUNT( DISTINCT 64 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5813
SELECT + COUNT ( * ) / NULLIF ( - 61, + 75 * - COUNT ( DISTINCT 64 ) )
----
0

query I rowsort
SELECT 72 + + - 41 + - 81
----
-50

query I rowsort
SELECT ALL 44 * + 9 + 66 AS col0
----
462

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5817
SELECT ALL COUNT( * ) + + 40 + 70 + - - COUNT( * ) DIV - + 23 + 69 + COALESCE ( 9, MAX( 30 ) ) * 90
----
990

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL COUNT ( * ) + + 40 + 70 + - - COUNT ( * ) / - + 23 + 69 + COALESCE ( 9, MAX ( 30 ) ) * 90
----
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5818
SELECT ALL - NULLIF ( - + 98, + - CAST( NULL AS SIGNED ) * - ( + 42 ) * + COUNT( * ) + MAX( DISTINCT + 55 ) ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL - NULLIF ( - + 98, + - CAST ( NULL AS INTEGER ) * - ( + 42 ) * + COUNT ( * ) + MAX ( DISTINCT + 55 ) ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT ALL COUNT( * ) + + COUNT( * ) + - - 51 * - 89 * MAX( - - 67 ) + - + COUNT( * ) * + 40
----
-304151

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL COUNT ( * ) + + COUNT ( * ) + - - 51 * - 89 * MAX ( - - 67 ) + - + COUNT ( * ) * + 40
----
-304151

query II rowsort
SELECT DISTINCT + 95 + + 51, 40 AS col2
----
146
40

onlyif mysql # aggregate syntax: 
query III rowsort label-5821
SELECT DISTINCT - 31 + - + 87 AS col0, + 32 + 59 * - + 73, COUNT( * ) AS col2
----
-118
-4275
1

skipif mysql # not compatible
query III rowsort label-5821
SELECT DISTINCT - 31 + - + 87 AS col0, + 32 + 59 * - + 73, COUNT ( * ) AS col2
----
-118
-4275
1

query I rowsort
SELECT + 42 * 61 * + 13 * + 75 - + + ( 81 ) + + 10 * 21
----
2498079

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5823
SELECT 5 * + CASE + 39 WHEN + 79 * + 11 * ( + AVG ( 37 ) ) * 34 + + 27 + - 16 THEN 42 WHEN NULLIF ( ( MAX( + NULLIF ( 11, 57 * 98 ) ) ), + ( COALESCE ( 87, - 46 + - COALESCE ( COUNT( * ), + 46 ), + 28 + ( + 22 + 82 ) ) ) ) THEN ( - 6 ) * + 98 ELSE + COUNT( * ) DIV + 13 + SUM( - 96 ) END AS col0
----
-480

skipif mysql # not compatible
query I rowsort label-5823
SELECT 5 * + CASE + 39 WHEN + 79 * + 11 * ( + AVG ( 37 ) ) * 34 + + 27 + - 16 THEN 42 WHEN NULLIF ( ( MAX ( + NULLIF ( 11, 57 * 98 ) ) ), + ( COALESCE ( 87, - 46 + - COALESCE ( COUNT ( * ), + 46 ), + 28 + ( + 22 + 82 ) ) ) ) THEN ( - 6 ) * + 98 ELSE + COUNT ( * ) / + 13 + SUM ( - 96 ) END AS col0
----
-480

query I rowsort
SELECT 41 * - 26 * + 9 col2
----
-9594

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5825
SELECT DISTINCT 16 DIV - MIN( ALL - + 36 ) * - 29 * - 36 col2
----
0

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT 16 / - MIN ( ALL - + 36 ) * - 29 * - 36 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5826
SELECT 30 - - MIN( ALL CAST( NULL AS SIGNED ) ) AS col0, + 99 + - 69 + 59 * + 35 AS col2
----
NULL
2095

skipif mysql # not compatible
query II rowsort label-5826
SELECT 30 - - MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col0, + 99 + - 69 + 59 * + 35 AS col2
----
NULL
2095

onlyif mysql # DIV for integer division: 
query I rowsort label-5827
SELECT DISTINCT 80 DIV - 19 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT 80 / - 19 AS col0
----
-4

query I rowsort
SELECT ALL ( 3 ) - 81
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT ALL COUNT( * ) * - - 57 col1
----
57

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL COUNT ( * ) * - - 57 col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5830
SELECT 20 / CASE - CAST( - + AVG ( DISTINCT + 92 ) AS SIGNED ) WHEN - 58 THEN - MAX( 58 ) WHEN 69 / + 91 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT 20 / CASE - CAST ( - + AVG ( DISTINCT + 92 ) AS INTEGER ) WHEN - 58 THEN - MAX ( 58 ) WHEN 69 / + 91 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5831
SELECT DISTINCT COUNT( * ) * + 63 * - - 45 AS col1, 97 AS col0
----
2835
97

skipif mysql # not compatible
query II rowsort label-5831
SELECT DISTINCT COUNT ( * ) * + 63 * - - 45 AS col1, 97 AS col0
----
2835
97

query I rowsort
SELECT ( - + 53 ) + - 81 col0
----
-134

query I rowsort
SELECT + 15 - 13 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT ALL COUNT( * ) * - 83 + 10 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL COUNT ( * ) * - 83 + 10 AS col2
----
-73

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

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

query I rowsort
SELECT ( + 31 ) * - - 46 col1
----
1426

query I rowsort
SELECT 69 + + + 74
----
143

query I rowsort
SELECT 56 * 70 - + 20
----
3900

query I rowsort
SELECT 15 + + 93 AS col2
----
108

query II rowsort
SELECT 17 * + 61 AS col1, 98 AS col1
----
1037
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5841
SELECT - 22 + - + COUNT( * ) AS col0, + COUNT( DISTINCT + - 1 ) col0
----
-23
1

skipif mysql # not compatible
query II rowsort label-5841
SELECT - 22 + - + COUNT ( * ) AS col0, + COUNT ( DISTINCT + - 1 ) col0
----
-23
1

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

skipif mysql # not compatible
query I rowsort label-5842
SELECT ( + COUNT ( ALL + 90 ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5843
SELECT 38 + 77 - + 96 + + 15 DIV - ( NULLIF ( + 42, + 74 * - 43 ) ) + ( 76 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5843
SELECT 38 + 77 - + 96 + + 15 / - ( NULLIF ( + 42, + 74 * - 43 ) ) + ( 76 ) AS col1
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5844
SELECT + 89 * - 0 AS col2, COUNT( ALL 73 ) DIV COUNT( * ) + COUNT( - 31 ) + 38 DIV 53 + 73
----
0
75

skipif mysql # not compatible
query II rowsort label-5844
SELECT + 89 * - 0 AS col2, COUNT ( ALL 73 ) / COUNT ( * ) + COUNT ( - 31 ) + 38 / 53 + 73
----
0
75

query I rowsort
SELECT + ( + NULLIF ( - 16, 40 + ( - ( + 49 ) ) ) )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-5846
SELECT ALL 67 + - 0 DIV 97 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL 67 + - 0 / 97 AS col1
----
67

query I rowsort
SELECT ALL - 13 + - 5 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-5848
SELECT DISTINCT - + COUNT( * ) + 81 * + COUNT( DISTINCT + 58 ) * 79 AS col1, - MIN( DISTINCT - + 28 ) - - 21 * - COUNT( DISTINCT COALESCE ( + 44, - ( + 36 ) * 24 ) + - 64 ) AS col2
----
6398
7

skipif mysql # not compatible
query II rowsort label-5848
SELECT DISTINCT - + COUNT ( * ) + 81 * + COUNT ( DISTINCT + 58 ) * 79 AS col1, - MIN ( DISTINCT - + 28 ) - - 21 * - COUNT ( DISTINCT COALESCE ( + 44, - ( + 36 ) * 24 ) + - 64 ) AS col2
----
6398
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5849
SELECT 9 * SUM( + CASE + 63 WHEN - ( 93 ) THEN + CAST( NULL AS SIGNED ) + 9 + + 29 END ) * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5849
SELECT 9 * SUM ( + CASE + 63 WHEN - ( 93 ) THEN + CAST ( NULL AS INTEGER ) + 9 + + 29 END ) * 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT ALL MIN( - 38 ) col2
----
-38

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL MIN ( - 38 ) col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5851
SELECT - CASE MIN( DISTINCT + 14 ) WHEN - 69 * - - NULLIF ( - 67, - 78 + 59 ) THEN NULL WHEN COALESCE ( - CAST( NULL AS SIGNED ), - 89 + 83 * 91 ) * 7 THEN CASE - CAST( NULL AS SIGNED ) WHEN COALESCE ( + 43, 89 + + 1 * + COALESCE ( 31 + 3 * 85, 26 ) ) THEN + COUNT( * ) * 53 WHEN 12 * 81 THEN NULL WHEN NULLIF ( COUNT( * ), 89 ) + 42 THEN 54 WHEN 45 THEN - 68 + 12 END * - 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5851
SELECT - CASE MIN ( DISTINCT + 14 ) WHEN - 69 * - - NULLIF ( - 67, - 78 + 59 ) THEN NULL WHEN COALESCE ( - CAST ( NULL AS INTEGER ), - 89 + 83 * 91 ) * 7 THEN CASE - CAST ( NULL AS INTEGER ) WHEN COALESCE ( + 43, 89 + + 1 * + COALESCE ( 31 + 3 * 85, 26 ) ) THEN + COUNT ( * ) * 53 WHEN 12 * 81 THEN NULL WHEN NULLIF ( COUNT ( * ), 89 ) + 42 THEN 54 WHEN 45 THEN - 68 + 12 END * - 60 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5852
SELECT - 3, CASE - - MAX( DISTINCT - - 61 ) WHEN + + 8 THEN NULL ELSE + 45 * MAX( + 48 ) END AS col1
----
-3
2160

skipif mysql # not compatible
query II rowsort label-5852
SELECT - 3, CASE - - MAX ( DISTINCT - - 61 ) WHEN + + 8 THEN NULL ELSE + 45 * MAX ( + 48 ) END AS col1
----
-3
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT ALL + 41 * - + 50 * + - 4 * + 77 + 53 + - NULLIF ( COUNT( * ), + 63 + 98 / 8 )
----
631452

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL + 41 * - + 50 * + - 4 * + 77 + 53 + - NULLIF ( COUNT ( * ), + 63 + 98 / 8 )
----
631452

query I rowsort
SELECT NULLIF ( + 42, - - 19 )
----
42

query I rowsort
SELECT - 76 * - 51 * - + 31
----
-120156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5856
SELECT ALL + ( - - COUNT( * ) ) DIV - 92 + + 22 + + COUNT( * ) * - SUM( DISTINCT + + 54 )
----
-32

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL + ( - - COUNT ( * ) ) / - 92 + + 22 + + COUNT ( * ) * - SUM ( DISTINCT + + 54 )
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5857
SELECT DISTINCT + 91 DIV - ( - CASE - 1 WHEN COUNT( * ) THEN ( MAX( DISTINCT 62 ) ) * - SUM( - 2 ) + + 58 ELSE - 28 - + 11 * - 59 END )
----
0

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT + 91 / - ( - CASE - 1 WHEN COUNT ( * ) THEN ( MAX ( DISTINCT 62 ) ) * - SUM ( - 2 ) + + 58 ELSE - 28 - + 11 * - 59 END )
----
0

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

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

query I rowsort
SELECT - 40 * 14
----
-560

query I rowsort
SELECT - 16 * 15
----
-240

query I rowsort
SELECT - 33 + + 11
----
-22

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

query I rowsort
SELECT + 37 * + - 80 + + ( - - ( + - 89 ) )
----
-3049

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5867
SELECT + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + - CAST( NULL AS SIGNED ) * + - NULLIF ( - 63, - AVG ( - CAST( NULL AS SIGNED ) ) ) * + - COUNT( * ) + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + - NULLIF ( - 63, - AVG ( - CAST ( NULL AS INTEGER ) ) ) * + - COUNT ( * ) + 75
----
NULL

query II rowsort
SELECT DISTINCT + 10 AS col0, + 33 AS col2
----
10
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5869
SELECT + - 99 * - CASE - - 10 WHEN + 17 * ( + 11 ) - 22 - 94 THEN NULL WHEN + COUNT( * ) * - 17 THEN NULL WHEN 26 THEN NULL ELSE 1 END + CAST( 38 AS SIGNED )
----
137

skipif mysql # not compatible
query I rowsort label-5869
SELECT + - 99 * - CASE - - 10 WHEN + 17 * ( + 11 ) - 22 - 94 THEN NULL WHEN + COUNT ( * ) * - 17 THEN NULL WHEN 26 THEN NULL ELSE 1 END + CAST ( 38 AS INTEGER )
----
137

onlyif mysql # DIV for integer division: 
query II rowsort label-5870
SELECT ALL 83 DIV - + 67 + - + 24, - 48 AS col0
----
-25
-48

skipif mysql # not compatible
query II rowsort label-5870
SELECT ALL 83 / - + 67 + - + 24, - 48 AS col0
----
-25
-48

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

skipif mysql # not compatible
query I rowsort label-5871
SELECT - SUM ( ALL - - 19 )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5872
SELECT + - 49 DIV + + 53 * + 49 + 50 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5872
SELECT + - 49 / + + 53 * + 49 + 50 AS col2
----
50

query II rowsort
SELECT ALL + 96 col0, 39
----
96
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5874
SELECT - - 40, - 31 * SUM( ALL + - 65 ) * + + 73 col0
----
40
147095

skipif mysql # not compatible
query II rowsort label-5874
SELECT - - 40, - 31 * SUM ( ALL + - 65 ) * + + 73 col0
----
40
147095

onlyif mysql # aggregate syntax: 
query II rowsort label-5875
SELECT - - 83 AS col0, 21 * - - 99 * 87 * - COUNT( * )
----
83
-180873

skipif mysql # not compatible
query II rowsort label-5875
SELECT - - 83 AS col0, 21 * - - 99 * 87 * - COUNT ( * )
----
83
-180873

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5876
SELECT + ( COUNT( DISTINCT 82 ) ) DIV - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5876
SELECT + ( COUNT ( DISTINCT 82 ) ) / - 71 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5877
SELECT + 6 DIV + 74 * + 40
----
0

skipif mysql # not compatible
query I rowsort label-5877
SELECT + 6 / + 74 * + 40
----
0

query I rowsort
SELECT + - 72 - 20 * - + 25
----
428

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5879
SELECT - - 60, NULLIF ( - 53, - CAST( 64 AS SIGNED ) ) AS col1
----
60
-53

skipif mysql # not compatible
query II rowsort label-5879
SELECT - - 60, NULLIF ( - 53, - CAST ( 64 AS INTEGER ) ) AS col1
----
60
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT + 20 * 56 * + - 13 - 9 * 29 * + - 41 + + - COUNT( * ) AS col1
----
-3860

skipif mysql # not compatible
query I rowsort label-5880
SELECT + 20 * 56 * + - 13 - 9 * 29 * + - 41 + + - COUNT ( * ) AS col1
----
-3860

query I rowsort
SELECT ALL - 3 + + 42 * + COALESCE ( + - 26, 4, + 10 * + 66 ) + + 98 AS col0
----
-997

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5882
SELECT DISTINCT 94 + + MAX( DISTINCT - + 78 ) + - + 27, + 82 * + + 9 DIV + + 1 col1
----
-11
738

skipif mysql # not compatible
query II rowsort label-5882
SELECT DISTINCT 94 + + MAX ( DISTINCT - + 78 ) + - + 27, + 82 * + + 9 / + + 1 col1
----
-11
738

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5884
SELECT ALL 12 + + CAST( NULL AS DECIMAL ) + + 13 * 2 + 43 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL 12 + + CAST ( NULL AS REAL ) + + 13 * 2 + 43 col1
----
NULL

query II rowsort
SELECT - - 40 AS col0, ( - 34 ) + - - 18
----
40
-16

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

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

query I rowsort
SELECT DISTINCT + 84 + + 75 AS col0
----
159

query II rowsort
SELECT ALL 7 AS col1, - 8 + 61
----
7
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5889
SELECT ALL + COUNT( - 9 ) + - 97, - 33 DIV + COUNT( * ) + - + 81 AS col0
----
-96
-114

skipif mysql # not compatible
query II rowsort label-5889
SELECT ALL + COUNT ( - 9 ) + - 97, - 33 / + COUNT ( * ) + - + 81 AS col0
----
-96
-114

query II rowsort
SELECT + 53 + 9 - 18 + - 17 * + 66 * - + 31 AS col0, 86
----
34826
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5891
SELECT - 82 * - CAST( ( - + CASE + - 35 WHEN + SUM( - 81 ) / + 90 THEN NULL ELSE + 31 * + 25 END ) AS SIGNED )
----
-63550

skipif mysql # not compatible
query I rowsort label-5891
SELECT - 82 * - CAST ( ( - + CASE + - 35 WHEN + SUM ( - 81 ) / + 90 THEN NULL ELSE + 31 * + 25 END ) AS INTEGER )
----
-63550

onlyif mysql # aggregate syntax: 
query II rowsort label-5892
SELECT ALL SUM( + 6 ), - 18 AS col1
----
6
-18

skipif mysql # not compatible
query II rowsort label-5892
SELECT ALL SUM ( + 6 ), - 18 AS col1
----
6
-18

query I rowsort
SELECT ALL 64 - 56 AS col1
----
8

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

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

query I rowsort
SELECT + 46 + - - 34 * - 68 + + - 8 AS col1
----
-2274

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT ALL COALESCE ( NULLIF ( - 31, + + 52 * - 13 - 92 - + + 53 ), - MIN( DISTINCT - 75 ) ) * ( + 25 ) AS col0
----
-775

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL COALESCE ( NULLIF ( - 31, + + 52 * - 13 - 92 - + + 53 ), - MIN ( DISTINCT - 75 ) ) * ( + 25 ) AS col0
----
-775

query I rowsort
SELECT - 16 * - 7
----
112

query I rowsort
SELECT DISTINCT + CASE 82 WHEN 92 THEN + 46 * 62 WHEN 69 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5899
SELECT + ( 19 ) * + COUNT( * ) + - 44 * - ( 57 ) + + ( ( + ( CAST( 1 AS SIGNED ) ) ) ) AS col1
----
2528

skipif mysql # not compatible
query I rowsort label-5899
SELECT + ( 19 ) * + COUNT ( * ) + - 44 * - ( 57 ) + + ( ( + ( CAST ( 1 AS INTEGER ) ) ) ) AS col1
----
2528

onlyif mysql # DIV for integer division: 
query II rowsort label-5900
SELECT + 80 DIV 63 * + 13 * - 35 AS col2, 24
----
-455
24

skipif mysql # not compatible
query II rowsort label-5900
SELECT + 80 / 63 * + 13 * - 35 AS col2, 24
----
-455
24

query II rowsort
SELECT - 95 * + - 10 * + + COALESCE ( 17, 66 ) - + ( 46 ), - 58 + - - 40 * - 13 AS col0
----
16104
-578

query I rowsort
SELECT - 56 * + 53
----
-2968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5903
SELECT ALL + NULLIF ( + CAST( NULL AS SIGNED ), + + COUNT( * ) / 61 / 8 + - - COUNT( + 25 ) ) / 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL + NULLIF ( + CAST ( NULL AS INTEGER ), + + COUNT ( * ) / 61 / 8 + - - COUNT ( + 25 ) ) / 42
----
NULL

query I rowsort
SELECT - 41 * - 44 * + 67 + 99
----
120967

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT ALL + 24 * - - 64 * + - 19 + - MIN( - - 51 ) + + - MAX( - 79 ) AS col2
----
-29156

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL + 24 * - - 64 * + - 19 + - MIN ( - - 51 ) + + - MAX ( - 79 ) AS col2
----
-29156

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT 62 * + MIN( DISTINCT - + 78 ) + + 98 - - + 63 - + 29 + - 18 + + - 18
----
-4740

skipif mysql # not compatible
query I rowsort label-5906
SELECT 62 * + MIN ( DISTINCT - + 78 ) + + 98 - - + 63 - + 29 + - 18 + + - 18
----
-4740

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT - + MAX( DISTINCT + 50 ) * - COUNT( * ) * 81 * - 10 col0
----
-40500

skipif mysql # not compatible
query I rowsort label-5908
SELECT - + MAX ( DISTINCT + 50 ) * - COUNT ( * ) * 81 * - 10 col0
----
-40500

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT DISTINCT MAX( + - 45 ) * - NULLIF ( + 38, ( 14 ) * ( CASE + + 86 WHEN ( 64 ) * + 24 THEN NULL ELSE 22 END ) * COUNT( * ) ) * + 82 + 6
----
140226

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT MAX ( + - 45 ) * - NULLIF ( + 38, ( 14 ) * ( CASE + + 86 WHEN ( 64 ) * + 24 THEN NULL ELSE 22 END ) * COUNT ( * ) ) * + 82 + 6
----
140226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5910
SELECT ALL 32 * - + 14 + + - COUNT( * ) + - 22 - - COALESCE ( + COUNT( * ), + 57 * - 10 + + 7, - 19 ) DIV 71 AS col0
----
-471

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL 32 * - + 14 + + - COUNT ( * ) + - 22 - - COALESCE ( + COUNT ( * ), + 57 * - 10 + + 7, - 19 ) / 71 AS col0
----
-471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5911
SELECT + MIN( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5912
SELECT + 36 * - CAST( 70 AS SIGNED ) + - ( + 82 )
----
-2602

skipif mysql # not compatible
query I rowsort label-5912
SELECT + 36 * - CAST ( 70 AS INTEGER ) + - ( + 82 )
----
-2602

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT ALL NULLIF ( + COUNT( * ), - MAX( ALL 24 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL NULLIF ( + COUNT ( * ), - MAX ( ALL 24 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5914
SELECT - CASE 27 WHEN - + 15 + COALESCE ( + - 71, + + 68 / 25, - + MIN( - + ( - 85 ) ) ) * COUNT( * ) THEN - 18 + 3 WHEN - CASE - ( - 90 ) WHEN + 22 * 42 THEN + COALESCE ( - 97, - 25, CAST( NULL AS SIGNED ) ) WHEN - ( 0 ) - 40 THEN NULL WHEN - 46 THEN CAST( - CASE + 27 WHEN + COUNT( * ) + + 30 * 0 THEN NULL WHEN NULLIF ( + COALESCE ( + 80, + COUNT( * ) + - 23 * 11, 60, - COUNT( - 92 ) * + 61 ), 65 - 58 ) THEN - SUM( 45 ) - 97 ELSE NULL END AS SIGNED ) END THEN NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5914
SELECT - CASE 27 WHEN - + 15 + COALESCE ( + - 71, + + 68 / 25, - + MIN ( - + ( - 85 ) ) ) * COUNT ( * ) THEN - 18 + 3 WHEN - CASE - ( - 90 ) WHEN + 22 * 42 THEN + COALESCE ( - 97, - 25, CAST ( NULL AS INTEGER ) ) WHEN - ( 0 ) - 40 THEN NULL WHEN - 46 THEN CAST ( - CASE + 27 WHEN + COUNT ( * ) + + 30 * 0 THEN NULL WHEN NULLIF ( + COALESCE ( + 80, + COUNT ( * ) + - 23 * 11, 60, - COUNT ( - 92 ) * + 61 ), 65 - 58 ) THEN - SUM ( 45 ) - 97 ELSE NULL END AS INTEGER ) END THEN NULL END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT ALL 40 * - + 67 + SUM( - 44 ) + - ( + 46 ) AS col2
----
-2770

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL 40 * - + 67 + SUM ( - 44 ) + - ( + 46 ) AS col2
----
-2770

query I rowsort
SELECT DISTINCT + 83 * + 60 * - 27 * 29
----
-3899340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5917
SELECT + 71 + 97 - - COUNT( * ) DIV 54 * - - 50
----
168

skipif mysql # not compatible
query I rowsort label-5917
SELECT + 71 + 97 - - COUNT ( * ) / 54 * - - 50
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT ALL - COUNT( * ) * COUNT( * ) * - 67 * - + ( COUNT( * ) ) * - 43 + 89
----
2970

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL - COUNT ( * ) * COUNT ( * ) * - 67 * - + ( COUNT ( * ) ) * - 43 + 89
----
2970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5919
SELECT + 80 + - CASE COUNT( * ) WHEN - 89 + - - 18 - + ( + 22 ) THEN NULL WHEN - + 40 THEN + COALESCE ( - 20, 71 / - 60 - + CAST( NULL AS SIGNED ) / - CAST( NULL AS DECIMAL ) ) + - 50 * 13 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5919
SELECT + 80 + - CASE COUNT ( * ) WHEN - 89 + - - 18 - + ( + 22 ) THEN NULL WHEN - + 40 THEN + COALESCE ( - 20, 71 / - 60 - + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS REAL ) ) + - 50 * 13 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + + 86 + + 94
----
180

query I rowsort
SELECT 47 + - 4
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT NULLIF ( - 84, + - SUM( - 41 ) ) * + + 66
----
-5544

skipif mysql # not compatible
query I rowsort label-5922
SELECT NULLIF ( - 84, + - SUM ( - 41 ) ) * + + 66
----
-5544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5923
SELECT CAST( 71 AS SIGNED ) * - + COUNT( * ) - + 69 + - - 53
----
-87

skipif mysql # not compatible
query I rowsort label-5923
SELECT CAST ( 71 AS INTEGER ) * - + COUNT ( * ) - + 69 + - - 53
----
-87

query I rowsort
SELECT DISTINCT 85 * - 37
----
-3145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5925
SELECT DISTINCT ( + 93 ) * - ( + - CAST( - - AVG ( 14 ) AS SIGNED ) ) + + 79
----
1381

skipif mysql # not compatible
query I rowsort label-5925
SELECT DISTINCT ( + 93 ) * - ( + - CAST ( - - AVG ( 14 ) AS INTEGER ) ) + + 79
----
1381

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT DISTINCT COUNT( * ) - + 59
----
-58

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT COUNT ( * ) - + 59
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT DISTINCT - MIN( - 55 ) * 32
----
1760

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT - MIN ( - 55 ) * 32
----
1760

onlyif mysql # DIV for integer division: 
query I rowsort label-5928
SELECT DISTINCT 93 DIV 4
----
23

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT 93 / 4
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5929
SELECT DISTINCT 61 AS col2, + CAST( NULL AS SIGNED )
----
61
NULL

skipif mysql # not compatible
query II rowsort label-5929
SELECT DISTINCT 61 AS col2, + CAST ( NULL AS INTEGER )
----
61
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5930
SELECT ALL 11 DIV + COALESCE ( 92, - ( 95 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL 11 / + COALESCE ( 92, - ( 95 ) ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT COUNT( * ) * + 68 * - ( + ( - 88 ) ) AS col1
----
5984

skipif mysql # not compatible
query I rowsort label-5931
SELECT COUNT ( * ) * + 68 * - ( + ( - 88 ) ) AS col1
----
5984

query II rowsort
SELECT DISTINCT 72 AS col0, - 26 + 98 AS col1
----
72
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5933
SELECT ALL CAST( + - NULLIF ( + 7, + ( 23 ) * - - 97 * - NULLIF ( + - 20, - 21 ) ) AS SIGNED ) * 16 * - 9 + + ( COALESCE ( CASE - NULLIF ( + 73, + ( 43 ) * 88 - + 58 ) WHEN - SUM( 76 ) / - 39 THEN + 41 ELSE MAX( ALL 90 ) * - 90 END, - COUNT( * ) ) + 60 ) AS col2
----
-7032

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL CAST ( + - NULLIF ( + 7, + ( 23 ) * - - 97 * - NULLIF ( + - 20, - 21 ) ) AS INTEGER ) * 16 * - 9 + + ( COALESCE ( CASE - NULLIF ( + 73, + ( 43 ) * 88 - + 58 ) WHEN - SUM ( 76 ) / - 39 THEN + 41 ELSE MAX ( ALL 90 ) * - 90 END, - COUNT ( * ) ) + 60 ) AS col2
----
-7032

query I rowsort
SELECT 69 * + 31 col1
----
2139

query I rowsort
SELECT - 28 * 28 + + 93 * - 72
----
-7480

query I rowsort
SELECT DISTINCT + 38 * - + ( 83 ) AS col0
----
-3154

query II rowsort
SELECT DISTINCT + 29 + + 15 * 75 AS col1, 68
----
1154
68

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

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

query I rowsort
SELECT ALL + 11 + + - 77 + + ( - + 75 ) + + ( + 82 )
----
-59

query I rowsort
SELECT DISTINCT 50 * + NULLIF ( + 89, + ( - 80 ) * + + 28 + + - 72 ) AS col1
----
4450

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5942
SELECT 16 * - - ( - 69 ) * ( - - 89 ) + 14 + COALESCE ( 33, - CAST( NULL AS SIGNED ) ) + - 5
----
-98214

skipif mysql # not compatible
query I rowsort label-5942
SELECT 16 * - - ( - 69 ) * ( - - 89 ) + 14 + COALESCE ( 33, - CAST ( NULL AS INTEGER ) ) + - 5
----
-98214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5943
SELECT ALL - + 80 + - + 87 * - CAST( + - 1 AS SIGNED ) AS col2
----
-167

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL - + 80 + - + 87 * - CAST ( + - 1 AS INTEGER ) AS col2
----
-167

onlyif mysql # aggregate syntax: 
query II rowsort label-5944
SELECT - 1 * - 32 + - 46 col0, + COUNT( * ) + - 31
----
-14
-30

skipif mysql # not compatible
query II rowsort label-5944
SELECT - 1 * - 32 + - 46 col0, + COUNT ( * ) + - 31
----
-14
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT ALL + 36 + - + COALESCE ( + ( - - 13 ), + COUNT( DISTINCT + + 74 ) ) - + MAX( - + 31 ) * COUNT( 95 ) * - 8 AS col2
----
-225

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL + 36 + - + COALESCE ( + ( - - 13 ), + COUNT ( DISTINCT + + 74 ) ) - + MAX ( - + 31 ) * COUNT ( 95 ) * - 8 AS col2
----
-225

query II rowsort
SELECT + 12 AS col2, 72
----
12
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5947
SELECT 0 / - CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5947
SELECT 0 / - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) + + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT ALL - + SUM( + 73 ) * + 62 + + - MIN( - CASE 66 WHEN + + 71 THEN - 27 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL - + SUM ( + 73 ) * + 62 + + - MIN ( - CASE 66 WHEN + + 71 THEN - 27 END ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5950
SELECT CAST( NULL AS DECIMAL ) / + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT CAST ( NULL AS REAL ) / + + 17
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT ALL - COUNT( * ) - ( - + 56 ) + - COALESCE ( + - 29, NULLIF ( 0, - - 8 - - COUNT( * ) ) * - 93 ) * 94
----
2781

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL - COUNT ( * ) - ( - + 56 ) + - COALESCE ( + - 29, NULLIF ( 0, - - 8 - - COUNT ( * ) ) * - 93 ) * 94
----
2781

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5954
SELECT ALL + COUNT( * ) AS col1, + 83 * + + COUNT( ALL - CAST( + + 30 AS SIGNED ) )
----
1
83

skipif mysql # not compatible
query II rowsort label-5954
SELECT ALL + COUNT ( * ) AS col1, + 83 * + + COUNT ( ALL - CAST ( + + 30 AS INTEGER ) )
----
1
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT DISTINCT + 32 * - + ( + - 65 ) * - COUNT( * ) + + SUM( ALL - 12 ) + - 3 * - 53 + + + 85 * - 7 * + ( COUNT( * ) * - 82 ) + - 66
----
46791

skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT + 32 * - + ( + - 65 ) * - COUNT ( * ) + + SUM ( ALL - 12 ) + - 3 * - 53 + + + 85 * - 7 * + ( COUNT ( * ) * - 82 ) + - 66
----
46791

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5956
SELECT ALL COUNT( * ) AS col1, COUNT( ALL + - 90 ) DIV - 85
----
1
0

skipif mysql # not compatible
query II rowsort label-5956
SELECT ALL COUNT ( * ) AS col1, COUNT ( ALL + - 90 ) / - 85
----
1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5957
SELECT ALL 98 AS col0, + COUNT( * ) + - 64 col0
----
98
-63

skipif mysql # not compatible
query II rowsort label-5957
SELECT ALL 98 AS col0, + COUNT ( * ) + - 64 col0
----
98
-63

query II rowsort
SELECT ALL 0 AS col1, + 97
----
0
97

query I rowsort
SELECT 24 * + 82 AS col1
----
1968

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

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT 52 * + COUNT ( DISTINCT + 41 ) AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5961
SELECT ALL 56 AS col1, - COUNT( 70 ) DIV + ( + 68 )
----
56
0

skipif mysql # not compatible
query II rowsort label-5961
SELECT ALL 56 AS col1, - COUNT ( 70 ) / + ( + 68 )
----
56
0

query I rowsort
SELECT DISTINCT 70 * + 98 AS col0
----
6860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5963
SELECT DISTINCT COUNT( * ) AS col1, + CASE + - 57 WHEN + - CAST( + CASE 67 WHEN - - CASE + 75 WHEN + COUNT( * ) DIV + 1 * + ( - 34 ) + MAX( DISTINCT 8 ) THEN - 73 ELSE NULL END THEN 83 DIV 4 - - ( + 18 ) END AS SIGNED ) THEN 52 WHEN - ( - 39 ) THEN NULL ELSE 60 DIV 83 END + 17
----
1
17

skipif mysql # not compatible
query II rowsort label-5963
SELECT DISTINCT COUNT ( * ) AS col1, + CASE + - 57 WHEN + - CAST ( + CASE 67 WHEN - - CASE + 75 WHEN + COUNT ( * ) / + 1 * + ( - 34 ) + MAX ( DISTINCT 8 ) THEN - 73 ELSE NULL END THEN 83 / 4 - - ( + 18 ) END AS INTEGER ) THEN 52 WHEN - ( - 39 ) THEN NULL ELSE 60 / 83 END + 17
----
1
17

query I rowsort
SELECT 8 + + 68 AS col2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5965
SELECT 43 - - + ( CASE + + COUNT( * ) WHEN - 44 THEN + 86 ELSE + 95 END ) DIV COUNT( * ) col0
----
138

skipif mysql # not compatible
query I rowsort label-5965
SELECT 43 - - + ( CASE + + COUNT ( * ) WHEN - 44 THEN + 86 ELSE + 95 END ) / COUNT ( * ) col0
----
138

query I rowsort
SELECT DISTINCT - 42 * 38
----
-1596

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5968
SELECT - COUNT( * ) AS col0, 91 * - 5 AS col1
----
-1
-455

skipif mysql # not compatible
query II rowsort label-5968
SELECT - COUNT ( * ) AS col0, 91 * - 5 AS col1
----
-1
-455

query I rowsort
SELECT ALL 69 * - 45 col0
----
-3105

query I rowsort
SELECT 40 * + - 78 * 41
----
-127920

query I rowsort
SELECT DISTINCT + ( - 10 ) * 75 col2
----
-750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5972
SELECT ALL COUNT( ALL - 12 ) * + 80 + 8 * - COALESCE ( - CAST( - + COUNT( * ) AS SIGNED ), + 56 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL COUNT ( ALL - 12 ) * + 80 + 8 * - COALESCE ( - CAST ( - + COUNT ( * ) AS INTEGER ), + 56 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT + SUM( - 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5973
SELECT + SUM ( - 2 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT SUM( - ( - - 99 ) ) + + MIN( 13 )
----
-86

skipif mysql # not compatible
query I rowsort label-5974
SELECT SUM ( - ( - - 99 ) ) + + MIN ( 13 )
----
-86

query I rowsort
SELECT ALL 40 * + 17 * - 71 - - 65 + - 6 + - 74 + + 41
----
-48254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5976
SELECT ALL 77 * - 36 * + CAST( 43 AS SIGNED ) * + - 87 - + + 24 * - ( - 7 ) + + 92 + + ( COALESCE ( + COUNT( * ), NULLIF ( 91, - 62 ), 79 + 71 ) )
----
10369977

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL 77 * - 36 * + CAST ( 43 AS INTEGER ) * + - 87 - + + 24 * - ( - 7 ) + + 92 + + ( COALESCE ( + COUNT ( * ), NULLIF ( 91, - 62 ), 79 + 71 ) )
----
10369977

query II rowsort
SELECT + 46, - 80 col1
----
46
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5978
SELECT - ( + CAST( 15 AS SIGNED ) ) * COUNT( * ) + - CASE - COUNT( * ) WHEN - - 12 * + 84 + + - 65 THEN + 19 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5978
SELECT - ( + CAST ( 15 AS INTEGER ) ) * COUNT ( * ) + - CASE - COUNT ( * ) WHEN - - 12 * + 84 + + - 65 THEN + 19 ELSE NULL END col2
----
NULL

query I rowsort
SELECT DISTINCT + 49 * 95 AS col0
----
4655

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT 69 + - 73 + + - MIN( + + 5 ) * + + 20 * 33
----
-3304

skipif mysql # not compatible
query I rowsort label-5980
SELECT 69 + - 73 + + - MIN ( + + 5 ) * + + 20 * 33
----
-3304

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT ALL AVG ( DISTINCT - 97 ) * - - 31 - + ( + 11 ) - + CASE + 77 WHEN + ( - COALESCE ( - COUNT( * ), - + 16 ) ) THEN 64 + MAX( + 88 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL AVG ( DISTINCT - 97 ) * - - 31 - + ( + 11 ) - + CASE + 77 WHEN + ( - COALESCE ( - COUNT ( * ), - + 16 ) ) THEN 64 + MAX ( + 88 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5983
SELECT ALL - + 63 * - CAST( 88 AS SIGNED ) - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL - + 63 * - CAST ( 88 AS INTEGER ) - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT DISTINCT 4 * - + COUNT( * ) + + 14
----
10

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT 4 * - + COUNT ( * ) + + 14
----
10

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

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

query II rowsort
SELECT ALL + 27, - 26 AS col1
----
27
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT + COALESCE ( + COUNT( * ), + - 49 + + + 18 ) + + + 57
----
58

skipif mysql # not compatible
query I rowsort label-5987
SELECT + COALESCE ( + COUNT ( * ), + - 49 + + + 18 ) + + + 57
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5988
SELECT + CAST( NULL AS SIGNED ) * + 37 * COALESCE ( - 10, - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5988
SELECT + CAST ( NULL AS INTEGER ) * + 37 * COALESCE ( - 10, - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT 83 * - 90 * - 68 * - ( SUM( 65 ) ) + MIN( - 74 ) AS col0
----
-33017474

skipif mysql # not compatible
query I rowsort label-5989
SELECT 83 * - 90 * - 68 * - ( SUM ( 65 ) ) + MIN ( - 74 ) AS col0
----
-33017474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5990
SELECT DISTINCT - 72 DIV + + ( - MIN( ALL - 82 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT - 72 / + + ( - MIN ( ALL - 82 ) )
----
0

query I rowsort
SELECT ALL - ( 38 ) AS col1
----
-38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT ALL - COUNT( * ) * - - ( ( - - 49 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL - COUNT ( * ) * - - ( ( - - 49 ) )
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-5994
SELECT - 41 DIV + - 18 AS col1, 74 AS col1
----
2
74

skipif mysql # not compatible
query II rowsort label-5994
SELECT - 41 / + - 18 AS col1, 74 AS col1
----
2
74

query I rowsort
SELECT ALL + 55 * + + 75 * + 39
----
160875

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT - 17 + 77 - - + 64 - CASE - + 39 WHEN + - 76 THEN NULL WHEN + 70 THEN 3 + MAX( DISTINCT - + 55 ) * 87 ELSE SUM( + 32 ) * COUNT( * ) + 10 * - ( 60 * + 7 - + 61 ) END * - 62
----
-220472

skipif mysql # not compatible
query I rowsort label-5996
SELECT - 17 + 77 - - + 64 - CASE - + 39 WHEN + - 76 THEN NULL WHEN + 70 THEN 3 + MAX ( DISTINCT - + 55 ) * 87 ELSE SUM ( + 32 ) * COUNT ( * ) + 10 * - ( 60 * + 7 - + 61 ) END * - 62
----
-220472

query I rowsort
SELECT ALL - 46 * + ( NULLIF ( + 5, 20 ) )
----
-230

query I rowsort
SELECT + 88 * + 79 col1
----
6952

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

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

query I rowsort
SELECT - 64 * - 82
----
5248

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6002
SELECT ALL - ( - COUNT( * ) ) * 45 AS col2, + 43 - - 90
----
45
133

skipif mysql # not compatible
query II rowsort label-6002
SELECT ALL - ( - COUNT ( * ) ) * 45 AS col2, + 43 - - 90
----
45
133

query II rowsort
SELECT DISTINCT + ( + + 69 ) + - 92 col0, + 69
----
-23
69

query I rowsort
SELECT DISTINCT - 11 + - 2
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6005
SELECT ALL 98 + 68 DIV - ( + - COUNT( * ) )
----
166

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL 98 + 68 / - ( + - COUNT ( * ) )
----
166

query I rowsort
SELECT ALL 15 * - 37
----
-555

query I rowsort
SELECT - 21 + 55
----
34

query I rowsort
SELECT DISTINCT - 11 + + ( - - 66 ) + - - 82 * 79
----
6533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6009
SELECT + CAST( - + 49 AS SIGNED ) + + 26
----
-23

skipif mysql # not compatible
query I rowsort label-6009
SELECT + CAST ( - + 49 AS INTEGER ) + + 26
----
-23

query I rowsort
SELECT - 68 * - 45 AS col1
----
3060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6011
SELECT - - CAST( - 72 AS SIGNED ) + - 49
----
-121

skipif mysql # not compatible
query I rowsort label-6011
SELECT - - CAST ( - 72 AS INTEGER ) + - 49
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6012
SELECT + 42 * 36 DIV - + 74 - - 10 * + - 63 DIV - COUNT( * )
----
610

skipif mysql # not compatible
query I rowsort label-6012
SELECT + 42 * 36 / - + 74 - - 10 * + - 63 / - COUNT ( * )
----
610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6013
SELECT - 17 * - 28 * 72 * + CASE + COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN - 63 * - 47 + + - ( + NULLIF ( CAST( NULL AS SIGNED ), + 2 ) ) THEN 82 / + COUNT( * ) + + CASE + 55 + - 29 WHEN - 83 THEN - 34 ELSE NULL END WHEN 0 * - CAST( NULL AS SIGNED ) THEN - 28 ELSE NULL END + 70 / 40 + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6013
SELECT - 17 * - 28 * 72 * + CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN - 63 * - 47 + + - ( + NULLIF ( CAST ( NULL AS INTEGER ), + 2 ) ) THEN 82 / + COUNT ( * ) + + CASE + 55 + - 29 WHEN - 83 THEN - 34 ELSE NULL END WHEN 0 * - CAST ( NULL AS INTEGER ) THEN - 28 ELSE NULL END + 70 / 40 + + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT ALL + 11 * - + COUNT( * ) - + 57
----
-68

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL + 11 * - + COUNT ( * ) - + 57
----
-68

query I rowsort
SELECT ALL - 46 * + 26 * - 26 - - 61 AS col2
----
31157

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT ALL - + COALESCE ( + 20, - 16 * COALESCE ( - + COUNT( * ), - 63 * - + COALESCE ( - 48, - - COUNT( * ) * + 85 ) ) * 79, - + 71 + - 41 ) * - SUM( ALL 83 )
----
1660

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL - + COALESCE ( + 20, - 16 * COALESCE ( - + COUNT ( * ), - 63 * - + COALESCE ( - 48, - - COUNT ( * ) * + 85 ) ) * 79, - + 71 + - 41 ) * - SUM ( ALL 83 )
----
1660

query I rowsort
SELECT + 37 * + + 10
----
370

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT DISTINCT + NULLIF ( - 49, + + COALESCE ( - - 93, + ( - COALESCE ( + CASE 16 WHEN 92 THEN + - 31 WHEN + COUNT( * ) THEN - COUNT( * ) ELSE NULL END, + NULLIF ( + COUNT( * ), 60 ) * - AVG ( DISTINCT - 5 ) ) ), 90 * 97 ) + + COALESCE ( 84, COUNT( * ) + ( + 69 + 24 ) ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT + NULLIF ( - 49, + + COALESCE ( - - 93, + ( - COALESCE ( + CASE 16 WHEN 92 THEN + - 31 WHEN + COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END, + NULLIF ( + COUNT ( * ), 60 ) * - AVG ( DISTINCT - 5 ) ) ), 90 * 97 ) + + COALESCE ( 84, COUNT ( * ) + ( + 69 + 24 ) ) ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT MIN( DISTINCT + + 68 ) * - - 28 + - - CASE + - 14 WHEN 86 THEN CASE + CASE + + SUM( + 55 ) WHEN + - 69 THEN + 43 WHEN - 90 + 31 THEN + 30 * 54 WHEN 64 * 89 + - COUNT( 59 ) THEN + 18 - + 52 END WHEN 46 THEN 64 END + - 56 ELSE COUNT( + 48 ) * 4 + ( COUNT( * ) ) END
----
1909

skipif mysql # not compatible
query I rowsort label-6019
SELECT MIN ( DISTINCT + + 68 ) * - - 28 + - - CASE + - 14 WHEN 86 THEN CASE + CASE + + SUM ( + 55 ) WHEN + - 69 THEN + 43 WHEN - 90 + 31 THEN + 30 * 54 WHEN 64 * 89 + - COUNT ( 59 ) THEN + 18 - + 52 END WHEN 46 THEN 64 END + - 56 ELSE COUNT ( + 48 ) * 4 + ( COUNT ( * ) ) END
----
1909

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6020
SELECT + - MAX( DISTINCT - 43 ) * + - 2 * CAST( NULL AS SIGNED ) + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT + - MAX ( DISTINCT - 43 ) * + - 2 * CAST ( NULL AS INTEGER ) + + 62
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6021
SELECT - 28 * - CAST( - 88 AS SIGNED ) + + COUNT( * ) + 86 DIV + - 27 + COUNT( * ) AS col1, - MIN( + - 22 )
----
-2465
22

skipif mysql # not compatible
query II rowsort label-6021
SELECT - 28 * - CAST ( - 88 AS INTEGER ) + + COUNT ( * ) + 86 / + - 27 + COUNT ( * ) AS col1, - MIN ( + - 22 )
----
-2465
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT + - COUNT( * ) * + 16 + + 42 col2
----
26

skipif mysql # not compatible
query I rowsort label-6022
SELECT + - COUNT ( * ) * + 16 + + 42 col2
----
26

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6024
SELECT + CASE + 83 WHEN 24 - - NULLIF ( + 83, - - 78 * + 50 ) - 19 + - 2 + + 50 THEN - CASE + CAST( NULL AS SIGNED ) WHEN + 52 THEN CAST( NULL AS DECIMAL ) + 47 WHEN - 19 * + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * - 23 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT + CASE + 83 WHEN 24 - - NULLIF ( + 83, - - 78 * + 50 ) - 19 + - 2 + + 50 THEN - CASE + CAST ( NULL AS INTEGER ) WHEN + 52 THEN CAST ( NULL AS REAL ) + 47 WHEN - 19 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * - 23 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT DISTINCT - ( - + 30 ) * + COUNT( * ) * + 23 + + - COUNT( * ) AS col1
----
689

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT - ( - + 30 ) * + COUNT ( * ) * + 23 + + - COUNT ( * ) AS col1
----
689

query I rowsort
SELECT + - 88 * - + 54
----
4752

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT - NULLIF ( - 63, - + 44 * - + 91 ) * NULLIF ( 80, + - ( - - COALESCE ( 39, + COUNT( * ) ) ) - - COUNT( + 57 ) - - + COUNT( * ) * 68 ) + 72 AS col0
----
5112

skipif mysql # not compatible
query I rowsort label-6029
SELECT - NULLIF ( - 63, - + 44 * - + 91 ) * NULLIF ( 80, + - ( - - COALESCE ( 39, + COUNT ( * ) ) ) - - COUNT ( + 57 ) - - + COUNT ( * ) * 68 ) + 72 AS col0
----
5112

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT - NULLIF ( - COUNT( DISTINCT + 60 ), + 4 )
----
1

skipif mysql # not compatible
query I rowsort label-6031
SELECT - NULLIF ( - COUNT ( DISTINCT + 60 ), + 4 )
----
1

query I rowsort
SELECT + 64 * - + 34
----
-2176

query I rowsort
SELECT - 70 * - - 64
----
-4480

query I rowsort
SELECT DISTINCT + 11 * + 34 + 17 col2
----
391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6035
SELECT + 58 - - CAST( + 63 AS SIGNED ) + - ( - 24 )
----
145

skipif mysql # not compatible
query I rowsort label-6035
SELECT + 58 - - CAST ( + 63 AS INTEGER ) + - ( - 24 )
----
145

query I rowsort
SELECT ALL + 97 + + 26 * - - 96
----
2593

query II rowsort
SELECT + 34 - + - 44 * 2 AS col0, 62 + + 62
----
122
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6038
SELECT ALL NULLIF ( + CASE - 95 WHEN 91 * - 8 * + - 71 + 50 * - 2 + + - 69 THEN - 35 END, - - COUNT( * ) + - + 69 + - 84 - CASE 74 WHEN - NULLIF ( 19, 53 + 52 ) + - CAST( NULL AS SIGNED ) THEN + 26 END * 16 ) + AVG ( - 95 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL NULLIF ( + CASE - 95 WHEN 91 * - 8 * + - 71 + 50 * - 2 + + - 69 THEN - 35 END, - - COUNT ( * ) + - + 69 + - 84 - CASE 74 WHEN - NULLIF ( 19, 53 + 52 ) + - CAST ( NULL AS INTEGER ) THEN + 26 END * 16 ) + AVG ( - 95 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 79 + - 66 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT ALL - 24 + - + SUM( ALL 89 ) + + 14 + + 7 + - 23 * - + COUNT( * ) + + - 26
----
-95

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL - 24 + - + SUM ( ALL 89 ) + + 14 + + 7 + - 23 * - + COUNT ( * ) + + - 26
----
-95

query I rowsort
SELECT DISTINCT + 70 * + - 39
----
-2730

query I rowsort
SELECT + 74 + + - 6 AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6043
SELECT ALL - 25 * + COUNT( + 39 ) AS col0, - 41
----
-25
-41

skipif mysql # not compatible
query II rowsort label-6043
SELECT ALL - 25 * + COUNT ( + 39 ) AS col0, - 41
----
-25
-41

query II rowsort
SELECT 26, - COALESCE ( + 95, + 90 ) AS col2
----
26
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT - COUNT( DISTINCT - 21 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6045
SELECT - COUNT ( DISTINCT - 21 ) AS col2
----
-1

query I rowsort
SELECT ALL ( - 49 ) AS col1
----
-49

query I rowsort
SELECT - - 85 + - 77
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT ALL + + NULLIF ( - - 20, - 37 ) - + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL + + NULLIF ( - - 20, - 37 ) - + COUNT ( * )
----
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT COALESCE ( 51, + 39, SUM( DISTINCT - 91 ) * + 62, 30 )
----
51

skipif mysql # not compatible
query I rowsort label-6050
SELECT COALESCE ( 51, + 39, SUM ( DISTINCT - 91 ) * + 62, 30 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6051
SELECT ALL - 19, CAST( NULL AS SIGNED ) * + - MAX( DISTINCT 2 ) AS col0
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-6051
SELECT ALL - 19, CAST ( NULL AS INTEGER ) * + - MAX ( DISTINCT 2 ) AS col0
----
-19
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6052
SELECT ALL + 38 DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL + 38 / 50
----
0

query I rowsort
SELECT + 44 * - 87 AS col0
----
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT DISTINCT + 5 * + MAX( ALL - - 11 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT + 5 * + MAX ( ALL - - 11 ) AS col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6055
SELECT + 71 DIV - + 51 * + COUNT( * ), - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-6055
SELECT + 71 / - + 51 * + COUNT ( * ), - COUNT ( * )
----
-1
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT DISTINCT + ( ( - + 39 ) ) * COUNT( * ) * + + 93 AS col1
----
-3627

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT + ( ( - + 39 ) ) * COUNT ( * ) * + + 93 AS col1
----
-3627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6058
SELECT - CAST( NULL AS SIGNED ) / + ( COALESCE ( 46, 30 ) ) - - - COALESCE ( - 30, - 31, - 31 ) * CAST( + 21 AS SIGNED ) / 34 * - 85 / 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6058
SELECT - CAST ( NULL AS INTEGER ) / + ( COALESCE ( 46, 30 ) ) - - - COALESCE ( - 30, - 31, - 31 ) * CAST ( + 21 AS INTEGER ) / 34 * - 85 / 5
----
NULL

query I rowsort
SELECT ALL + 12 + + + 84 AS col1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6060
SELECT DISTINCT - 53 + - COUNT( * ) + - 71 DIV COUNT( ALL 77 ) * - - 44 * - ( + 25 ) * - - COALESCE ( 20, 81 ) + - - MIN( ALL + 77 )
----
1562023

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT - 53 + - COUNT ( * ) + - 71 / COUNT ( ALL 77 ) * - - 44 * - ( + 25 ) * - - COALESCE ( 20, 81 ) + - - MIN ( ALL + 77 )
----
1562023

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

skipif mysql # not compatible
query I rowsort label-6061
SELECT COUNT ( * ) + - MIN ( DISTINCT + + 71 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT + 22 * + 87 * + 67 + + SUM( ALL CASE + - 51 WHEN + 56 THEN - 54 ELSE - 11 * + COALESCE ( + 4, - CASE - + 71 WHEN 29 THEN 87 ELSE 0 END ) + + 93 END ) * + 40
----
130198

skipif mysql # not compatible
query I rowsort label-6062
SELECT + 22 * + 87 * + 67 + + SUM ( ALL CASE + - 51 WHEN + 56 THEN - 54 ELSE - 11 * + COALESCE ( + 4, - CASE - + 71 WHEN 29 THEN 87 ELSE 0 END ) + + 93 END ) * + 40
----
130198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6063
SELECT ALL + 20 + 95 - CAST( 64 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL + 20 + 95 - CAST ( 64 AS INTEGER )
----
51

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

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL CAST ( + 37 AS INTEGER ) / COUNT ( * ) AS col0
----
37

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6066
SELECT CAST( + - 73 AS SIGNED ) + COALESCE ( + ( - COUNT( ALL 77 ) ), + - 7, + + ( COALESCE ( - 31, 70 DIV - 21 + 16 * - 42 ) ) ) * 20 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-6066
SELECT CAST ( + - 73 AS INTEGER ) + COALESCE ( + ( - COUNT ( ALL 77 ) ), + - 7, + + ( COALESCE ( - 31, 70 / - 21 + 16 * - 42 ) ) ) * 20 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT - COALESCE ( COUNT( ALL + 84 ), 15 * - + 94 ) * - + 18 + - 89 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-6067
SELECT - COALESCE ( COUNT ( ALL + 84 ), 15 * - + 94 ) * - + 18 + - 89 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT 43 + COUNT( * ) + - - COALESCE ( + COUNT( * ), - - 13 ) + - 95
----
-50

skipif mysql # not compatible
query I rowsort label-6068
SELECT 43 + COUNT ( * ) + - - COALESCE ( + COUNT ( * ), - - 13 ) + - 95
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT ALL 22 + - 12 * + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL 22 + - 12 * + + COUNT ( * )
----
10

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

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

query I rowsort
SELECT 87 + 50 * - 93 AS col1
----
-4563

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6072
SELECT ( - 2 ) DIV - 33 + - - ( - ( - + MAX( + 5 ) ) ) + - 61 * 32 * 56 + + 32
----
-109275

skipif mysql # not compatible
query I rowsort label-6072
SELECT ( - 2 ) / - 33 + - - ( - ( - + MAX ( + 5 ) ) ) + - 61 * 32 * 56 + + 32
----
-109275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6073
SELECT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + - COALESCE ( 24, - AVG ( ALL + 57 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + - COALESCE ( 24, - AVG ( ALL + 57 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT DISTINCT + COUNT( * ) - - 7
----
8

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT + COUNT ( * ) - - 7
----
8

query I rowsort
SELECT ALL + - 70 - + 31 AS col1
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-6076
SELECT - ( - 39 ) * - + 93 * - - 23 AS col1, COUNT( * ) * - 30 * - + 87 - - + COUNT( * )
----
-83421
2611

skipif mysql # not compatible
query II rowsort label-6076
SELECT - ( - 39 ) * - + 93 * - - 23 AS col1, COUNT ( * ) * - 30 * - + 87 - - + COUNT ( * )
----
-83421
2611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6077
SELECT - CASE + - 94 WHEN + CASE 77 WHEN + AVG ( DISTINCT - 89 ) + - CAST( ( - 15 ) AS SIGNED ) / - COALESCE ( - 4, + 86, + 36 - + 86 * AVG ( - 2 + 29 ) ) * 82 THEN - 66 WHEN 21 THEN NULL ELSE NULL END / + 95 THEN 91 * - 74 + - MIN( ALL 64 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6077
SELECT - CASE + - 94 WHEN + CASE 77 WHEN + AVG ( DISTINCT - 89 ) + - CAST ( ( - 15 ) AS INTEGER ) / - COALESCE ( - 4, + 86, + 36 - + 86 * AVG ( - 2 + 29 ) ) * 82 THEN - 66 WHEN 21 THEN NULL ELSE NULL END / + 95 THEN 91 * - 74 + - MIN ( ALL 64 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT ( - MIN( 71 ) ) + 22 + 45 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6078
SELECT ( - MIN ( 71 ) ) + 22 + 45 AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6079
SELECT + 28 + 72 * + 52 + 68 / - ( + 70 ) * - + CASE - - 19 WHEN + 74 THEN + - NULLIF ( + 24, - MAX( DISTINCT + 33 ) + - CAST( NULL AS SIGNED ) + 72 / + NULLIF ( 83 + + 23, + 97 + - 49 / 7 ) / 75 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT + 28 + 72 * + 52 + 68 / - ( + 70 ) * - + CASE - - 19 WHEN + 74 THEN + - NULLIF ( + 24, - MAX ( DISTINCT + 33 ) + - CAST ( NULL AS INTEGER ) + 72 / + NULLIF ( 83 + + 23, + 97 + - 49 / 7 ) / 75 ) END AS col1
----
NULL

query II rowsort
SELECT CASE WHEN + COALESCE ( 46, - 94, - 52 ) >= NULL THEN + + 31 ELSE + 45 * + + 96 - 21 END * - - 5 * + 3 AS col2, 97 AS col1
----
64485
97

query I rowsort
SELECT - 42 * + - 41
----
1722

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT ALL + + 66 * - + 36 - - + COUNT( * ) + - 6 * + 78 * - 98
----
43489

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL + + 66 * - + 36 - - + COUNT ( * ) + - 6 * + 78 * - 98
----
43489

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT 23 + COUNT( + 86 ) * + CASE - COUNT( * ) WHEN ( 54 ) + 95 + 63 + - - 90 + 1 * 59 * + - COUNT( * ) * + 39 THEN ( + 37 ) + 23 * - ( 17 ) ELSE + 40 - + ( 50 ) END * 84 AS col0
----
-817

skipif mysql # not compatible
query I rowsort label-6083
SELECT 23 + COUNT ( + 86 ) * + CASE - COUNT ( * ) WHEN ( 54 ) + 95 + 63 + - - 90 + 1 * 59 * + - COUNT ( * ) * + 39 THEN ( + 37 ) + 23 * - ( 17 ) ELSE + 40 - + ( 50 ) END * 84 AS col0
----
-817

query I rowsort
SELECT - 8 * + 2 AS col0
----
-16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT ALL - + COALESCE ( + COUNT( * ), - 36 + - - ( + 61 ) + 66, - + COUNT( - 45 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL - + COALESCE ( + COUNT ( * ), - 36 + - - ( + 61 ) + 66, - + COUNT ( - 45 ) )
----
-1

query I rowsort
SELECT + - 71 col0
----
-71

query I rowsort
SELECT 34 * + + 24 AS col0
----
816

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6090
SELECT ALL - 97 + + 6 * - 51 * COUNT( * ) + + COUNT( * ) * 96, 74 * CASE + + 6 WHEN + + 5 THEN - - COUNT( * ) * 77 * + + 49 / + 49 END - + 55 - - 0 AS col0
----
-307
NULL

skipif mysql # not compatible
query II rowsort label-6090
SELECT ALL - 97 + + 6 * - 51 * COUNT ( * ) + + COUNT ( * ) * 96, 74 * CASE + + 6 WHEN + + 5 THEN - - COUNT ( * ) * 77 * + + 49 / + 49 END - + 55 - - 0 AS col0
----
-307
NULL

query I rowsort
SELECT 59 * - 51 * - - ( + 56 ) AS col2
----
-168504

onlyif mysql # DIV for integer division: 
query I rowsort label-6092
SELECT ALL 99 + + 30 DIV 38 * - - 18
----
99

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL 99 + + 30 / 38 * - - 18
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6093
SELECT ALL - NULLIF ( - ( AVG ( + CAST( NULL AS SIGNED ) ) ), - SUM( + - 69 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL - NULLIF ( - ( AVG ( + CAST ( NULL AS INTEGER ) ) ), - SUM ( + - 69 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT COUNT( * ) * + - ( + 35 ) + + ( - COUNT( * ) ) * - + 42 * + 33 col2
----
1351

skipif mysql # not compatible
query I rowsort label-6094
SELECT COUNT ( * ) * + - ( + 35 ) + + ( - COUNT ( * ) ) * - + 42 * + 33 col2
----
1351

onlyif mysql # DIV for integer division: 
query I rowsort label-6095
SELECT 78 DIV + - 42
----
-1

skipif mysql # not compatible
query I rowsort label-6095
SELECT 78 / + - 42
----
-1

query I rowsort
SELECT 49 * - + 77 AS col1
----
-3773

onlyif mysql # DIV for integer division: 
query I rowsort label-6097
SELECT DISTINCT 4 DIV - + 42
----
0

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT 4 / - + 42
----
0

query I rowsort
SELECT 68 - COALESCE ( - + 82, + 24, - 3 - - - 40 ) * + 45 * - 35 AS col2
----
-129082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6099
SELECT CASE - COUNT( * ) WHEN - - COUNT( * ) THEN NULL WHEN - NULLIF ( + + CAST( NULL AS SIGNED ), 93 + COUNT( * ) ) THEN + + CASE 69 WHEN - 88 + + - COUNT( * ) + - + ( + COUNT( * ) ) + + - 42 + 12 + 60 * MAX( 71 + + 14 * + 17 ) * + 91 THEN CASE + 39 WHEN - 20 THEN NULL WHEN 94 THEN 60 ELSE NULL END END WHEN 81 + - 24 THEN NULL ELSE CASE WHEN NULL IS NOT NULL THEN - 97 ELSE NULL END END + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6099
SELECT CASE - COUNT ( * ) WHEN - - COUNT ( * ) THEN NULL WHEN - NULLIF ( + + CAST ( NULL AS INTEGER ), 93 + COUNT ( * ) ) THEN + + CASE 69 WHEN - 88 + + - COUNT ( * ) + - + ( + COUNT ( * ) ) + + - 42 + 12 + 60 * MAX ( 71 + + 14 * + 17 ) * + 91 THEN CASE + 39 WHEN - 20 THEN NULL WHEN 94 THEN 60 ELSE NULL END END WHEN 81 + - 24 THEN NULL ELSE CASE WHEN NULL IS NOT NULL THEN - 97 ELSE NULL END END + 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT ALL COUNT( * ) * + COALESCE ( + + 45, + 84 + - + 28 * + + 28 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL COUNT ( * ) * + COALESCE ( + + 45, + 84 + - + 28 * + + 28 ) AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6101
SELECT CASE - 23 WHEN + 39 * - 53 * + + 74 + + - CASE - 52 WHEN - 41 + + - 19 THEN NULL WHEN - 23 + CAST( NULL AS DECIMAL ) / + 60 THEN 6 / - CAST( + - COUNT( * ) AS SIGNED ) * + COUNT( * ) + + 59 END THEN ( + 36 ) + + 35 / - 16 END * + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6101
SELECT CASE - 23 WHEN + 39 * - 53 * + + 74 + + - CASE - 52 WHEN - 41 + + - 19 THEN NULL WHEN - 23 + CAST ( NULL AS REAL ) / + 60 THEN 6 / - CAST ( + - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) + + 59 END THEN ( + 36 ) + + 35 / - 16 END * + 57 AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 27, 16 )
----
27

query I rowsort
SELECT DISTINCT CASE 68 WHEN ( 91 ) THEN - 77 END * 48 + - 94
----
NULL

query I rowsort
SELECT ALL - ( - + 44 ) AS col0
----
44

query I rowsort
SELECT ALL - 72 * - 13
----
936

query I rowsort
SELECT + 99 * - + 71 AS col1
----
-7029

query I rowsort
SELECT + + 27 + + - 68 * + - 68
----
4651

onlyif mysql # DIV for integer division: 
query I rowsort label-6108
SELECT + 26 DIV 13 * + 22 + - 45 col1
----
-1

skipif mysql # not compatible
query I rowsort label-6108
SELECT + 26 / 13 * + 22 + - 45 col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6109
SELECT + + ( - 64 ) * CAST( - 21 AS SIGNED ) AS col0
----
1344

skipif mysql # not compatible
query I rowsort label-6109
SELECT + + ( - 64 ) * CAST ( - 21 AS INTEGER ) AS col0
----
1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6110
SELECT + 70 + ( - CASE - - 10 WHEN - 80 THEN - 30 * - + 27 ELSE - COUNT( * ) * + - NULLIF ( + + 43, + 28 ) * CAST( NULL AS SIGNED ) * - - 41 - - + 11 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6110
SELECT + 70 + ( - CASE - - 10 WHEN - 80 THEN - 30 * - + 27 ELSE - COUNT ( * ) * + - NULLIF ( + + 43, + 28 ) * CAST ( NULL AS INTEGER ) * - - 41 - - + 11 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6111
SELECT DISTINCT - 66, COUNT( * ) * - ( + - 69 ) AS col0
----
-66
69

skipif mysql # not compatible
query II rowsort label-6111
SELECT DISTINCT - 66, COUNT ( * ) * - ( + - 69 ) AS col0
----
-66
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT + 83 + 16 - COALESCE ( + MAX( ALL - 61 ), 3 + - 21 * + 40 ) * COUNT( * )
----
160

skipif mysql # not compatible
query I rowsort label-6112
SELECT + 83 + 16 - COALESCE ( + MAX ( ALL - 61 ), 3 + - 21 * + 40 ) * COUNT ( * )
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-6113
SELECT ALL - 56 DIV - 83 * + 81
----
0

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL - 56 / - 83 * + 81
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6115
SELECT ALL + 45 + COUNT( + - CAST( NULL AS SIGNED ) ) AS col0, - 8 + + NULLIF ( 90, ( 55 ) + + 97 ) AS col2
----
45
82

skipif mysql # not compatible
query II rowsort label-6115
SELECT ALL + 45 + COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col0, - 8 + + NULLIF ( 90, ( 55 ) + + 97 ) AS col2
----
45
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT ALL + SUM( DISTINCT + - 42 ) + + 99
----
57

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL + SUM ( DISTINCT + - 42 ) + + 99
----
57

query II rowsort
SELECT + 34 AS col0, 53
----
34
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT + CASE - 43 WHEN - SUM( - - 20 ) * + 22 - + 6 THEN 0 ELSE + 16 + - 75 END + CASE ( - - 90 ) WHEN - - 34 THEN ( + 75 ) * 65 + + 5 END + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT + CASE - 43 WHEN - SUM ( - - 20 ) * + 22 - + 6 THEN 0 ELSE + 16 + - 75 END + CASE ( - - 90 ) WHEN - - 34 THEN ( + 75 ) * 65 + + 5 END + 8 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 62 * + 15
----
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT ALL + 18 * - - COALESCE ( - + COUNT( * ), - - 75 * 31 ) + + - 38 + - + COUNT( * ) * - 4
----
-52

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL + 18 * - - COALESCE ( - + COUNT ( * ), - - 75 * 31 ) + + - 38 + - + COUNT ( * ) * - 4
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT CAST( NULL AS SIGNED ) / - 6 - 72 + - 1 * - 20 * - 1 + + 67 * - 71 - + - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6123
SELECT CAST ( NULL AS INTEGER ) / - 6 - 72 + - 1 * - 20 * - 1 + + 67 * - 71 - + - 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT ALL ( + 70 ) * + NULLIF ( 38, + - MAX( DISTINCT - 98 ) + COALESCE ( - 23, - 95 ) + - 73 + - 65 )
----
2660

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL ( + 70 ) * + NULLIF ( 38, + - MAX ( DISTINCT - 98 ) + COALESCE ( - 23, - 95 ) + - 73 + - 65 )
----
2660

query II rowsort
SELECT DISTINCT + 75 AS col1, - 34 AS col2
----
75
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-6126
SELECT ALL + 88, - 82 * + ( - - CASE - + 66 WHEN 29 THEN NULL WHEN + + COUNT( * ) - - 31 / + 4 * + + 52 THEN - 10 * - - 85 ELSE NULL END ) * + AVG ( DISTINCT - 26 ) * 78 * - + 53 + 57 + 17 AS col2
----
88
NULL

skipif mysql # not compatible
query II rowsort label-6126
SELECT ALL + 88, - 82 * + ( - - CASE - + 66 WHEN 29 THEN NULL WHEN + + COUNT ( * ) - - 31 / + 4 * + + 52 THEN - 10 * - - 85 ELSE NULL END ) * + AVG ( DISTINCT - 26 ) * 78 * - + 53 + 57 + 17 AS col2
----
88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT DISTINCT + NULLIF ( - 12, NULLIF ( - - 61, - 81 * + - 30 ) + + COUNT( * ) - SUM( ( + 76 ) ) - + ( 4 ) + - 94 - - COUNT( * ) * + COUNT( * ) * 29 + + 1 * + 61 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-6127
SELECT DISTINCT + NULLIF ( - 12, NULLIF ( - - 61, - 81 * + - 30 ) + + COUNT ( * ) - SUM ( ( + 76 ) ) - + ( 4 ) + - 94 - - COUNT ( * ) * + COUNT ( * ) * 29 + + 1 * + 61 ) AS col1
----
-12

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

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

query I rowsort
SELECT - 69 + 57 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT + COUNT( - 4 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6130
SELECT + COUNT ( - 4 ) col2
----
1

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

query I rowsort
SELECT - 21 + 28 AS col0
----
7

query I rowsort
SELECT - 39 * + - ( 51 )
----
1989

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ALL CASE + COUNT( * ) WHEN 75 + + + 38 * 89 THEN NULL ELSE MIN( DISTINCT + 35 ) * - ( 98 ) END
----
-3430

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL CASE + COUNT ( * ) WHEN 75 + + + 38 * 89 THEN NULL ELSE MIN ( DISTINCT + 35 ) * - ( 98 ) END
----
-3430

query I rowsort
SELECT DISTINCT - 49 * 39
----
-1911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6137
SELECT - 91 + + 93 + + - COALESCE ( + + CAST( NULL AS SIGNED ), 42 )
----
-40

skipif mysql # not compatible
query I rowsort label-6137
SELECT - 91 + + 93 + + - COALESCE ( + + CAST ( NULL AS INTEGER ), 42 )
----
-40

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

skipif mysql # not compatible
query I rowsort label-6138
SELECT - COUNT ( * ) / - - 49 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT + - 15 * + - MIN( + 68 ) + + 1 AS col2
----
1021

skipif mysql # not compatible
query I rowsort label-6139
SELECT + - 15 * + - MIN ( + 68 ) + + 1 AS col2
----
1021

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6140
SELECT ALL - + COUNT( * ) DIV + - 33 + + 71 + 2
----
73

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL - + COUNT ( * ) / + - 33 + + 71 + 2
----
73

query II rowsort
SELECT 59 AS col1, - 91 + 43
----
59
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6142
SELECT - 22 AS col0, + CASE - COALESCE ( + NULLIF ( - 34, + - 48 ), - - 91, - 26 * + NULLIF ( - 19, - + CAST( NULL AS SIGNED ) ) * + 56 + + COUNT( * ) ) WHEN - + 18 / 28 THEN - - MIN( + 93 ) * COUNT( * ) ELSE NULL END
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-6142
SELECT - 22 AS col0, + CASE - COALESCE ( + NULLIF ( - 34, + - 48 ), - - 91, - 26 * + NULLIF ( - 19, - + CAST ( NULL AS INTEGER ) ) * + 56 + + COUNT ( * ) ) WHEN - + 18 / 28 THEN - - MIN ( + 93 ) * COUNT ( * ) ELSE NULL END
----
-22
NULL

query II rowsort
SELECT DISTINCT - + 82 + - - 56 AS col0, - 99 * - + 64
----
-26
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT DISTINCT 16 + - + 83 + - COUNT( DISTINCT + 92 ) - 56 * - + 0
----
-68

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT 16 + - + 83 + - COUNT ( DISTINCT + 92 ) - 56 * - + 0
----
-68

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6147
SELECT COALESCE ( - 7, + 73 DIV + + 41, + COUNT( * ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6147
SELECT COALESCE ( - 7, + 73 / + + 41, + COUNT ( * ) ) AS col0
----
-7

query I rowsort
SELECT + + 38 + COALESCE ( + 79, + 92 - - 54 )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT ALL - ( - 86 ) + - ( - + COUNT( * ) ) + + + 65 * NULLIF ( 68, + COUNT( * ) + ( + 90 ) + SUM( - - 9 ) * - - COALESCE ( COUNT( * ), - 41, - 26 ) ) + 0 * + 5
----
4507

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL - ( - 86 ) + - ( - + COUNT ( * ) ) + + + 65 * NULLIF ( 68, + COUNT ( * ) + ( + 90 ) + SUM ( - - 9 ) * - - COALESCE ( COUNT ( * ), - 41, - 26 ) ) + 0 * + 5
----
4507

query I rowsort
SELECT + - 27 * - 78 * + - 22 AS col0
----
-46332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6151
SELECT ALL 19 DIV - - 13 - + 0 DIV - MAX( - ( + 55 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL 19 / - - 13 - + 0 / - MAX ( - ( + 55 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6152
SELECT + CAST( - - 10 AS SIGNED ) AS col1, + 1 + + + 64 - + CAST( + 41 AS SIGNED ) AS col1
----
10
24

skipif mysql # not compatible
query II rowsort label-6152
SELECT + CAST ( - - 10 AS INTEGER ) AS col1, + 1 + + + 64 - + CAST ( + 41 AS INTEGER ) AS col1
----
10
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6153
SELECT + COUNT( * ) + - 70 * - ( - + 85 ) + - 79 * 52 DIV - 28 AS col1
----
-5803

skipif mysql # not compatible
query I rowsort label-6153
SELECT + COUNT ( * ) + - 70 * - ( - + 85 ) + - 79 * 52 / - 28 AS col1
----
-5803

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6154
SELECT - ( - + COALESCE ( 77, - 88 ) ) DIV - 98 * + 48 + - ( + ( + 79 ) ) * + COUNT( * ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-6154
SELECT - ( - + COALESCE ( 77, - 88 ) ) / - 98 * + 48 + - ( + ( + 79 ) ) * + COUNT ( * ) AS col1
----
-79

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

query I rowsort
SELECT DISTINCT 69 * - 14 * 69
----
-66654

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT - 98 * MIN( - 38 ) col1
----
3724

skipif mysql # not compatible
query I rowsort label-6157
SELECT - 98 * MIN ( - 38 ) col1
----
3724

query I rowsort
SELECT ( + - 27 ) + - 92 + 33
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT ALL + SUM( + + 4 ) + - - 41 + 23 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL + SUM ( + + 4 ) + - - 41 + 23 AS col1
----
68

query I rowsort
SELECT 98 - - - ( 65 )
----
33

query I rowsort
SELECT ALL - 89 * - - 79
----
-7031

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6162
SELECT - 47 DIV + - COUNT( * ) + - + 60
----
-13

skipif mysql # not compatible
query I rowsort label-6162
SELECT - 47 / + - COUNT ( * ) + - + 60
----
-13

query I rowsort
SELECT DISTINCT 17 + - - 92 * - + 78 col0
----
-7159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6164
SELECT ALL - 20 + + CAST( NULL AS SIGNED ) - + 8 * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL - 20 + + CAST ( NULL AS INTEGER ) - + 8 * - 77
----
NULL

query I rowsort
SELECT DISTINCT - - 46 + 22
----
68

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6168
SELECT - MAX( 66 ) AS col1, + 61
----
-66
61

skipif mysql # not compatible
query II rowsort label-6168
SELECT - MAX ( 66 ) AS col1, + 61
----
-66
61

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

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT + NULLIF ( 24, + COUNT ( * ) ) col1
----
24

query I rowsort
SELECT ALL - - 12 - 18
----
-6

query II rowsort
SELECT ALL 34 - - 65 AS col1, 1 AS col0
----
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6172
SELECT ALL - CAST( + CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE 58 END AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL - CAST ( + CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE 58 END AS INTEGER )
----
-58

query I rowsort
SELECT 72 * - - 75
----
5400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6174
SELECT 67, - CAST( - - MIN( 20 ) AS SIGNED ) col2
----
67
-20

skipif mysql # not compatible
query II rowsort label-6174
SELECT 67, - CAST ( - - MIN ( 20 ) AS INTEGER ) col2
----
67
-20

query I rowsort
SELECT ALL 87 * + - 47 * + 70 * 79
----
-22612170

query II rowsort
SELECT + 2 AS col1, 23 col1
----
2
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT 62 * 17 * - COUNT( * ) * - COUNT( * ) AS col0
----
1054

skipif mysql # not compatible
query I rowsort label-6177
SELECT 62 * 17 * - COUNT ( * ) * - COUNT ( * ) AS col0
----
1054

query I rowsort
SELECT ALL + 66 * + ( - - 78 )
----
5148

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

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

query II rowsort
SELECT ALL 80 + ( - 46 ) col1, 46
----
34
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6181
SELECT 3 * + 69 + - + 80 * - 45 + - - ( ( - - 40 ) ) - + MIN( DISTINCT ( - 60 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6181
SELECT 3 * + 69 + - + 80 * - 45 + - - ( ( - - 40 ) ) - + MIN ( DISTINCT ( - 60 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6182
SELECT CAST ( NULL AS INTEGER ) + - 87 + - 83 AS col2
----
NULL

query I rowsort
SELECT 87 * 64 AS col2
----
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT COUNT( * ) + + COUNT( * ) * 56 * - + NULLIF ( - - 94, + + 86 * + 29 )
----
-5263

skipif mysql # not compatible
query I rowsort label-6184
SELECT COUNT ( * ) + + COUNT ( * ) * 56 * - + NULLIF ( - - 94, + + 86 * + 29 )
----
-5263

query I rowsort
SELECT ALL 67 * - 11 AS col0
----
-737

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT DISTINCT 79 + 78 + + + 87 * ( - COUNT( * ) ) * + + COUNT( * ) - 10 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT 79 + 78 + + + 87 * ( - COUNT ( * ) ) * + + COUNT ( * ) - 10 AS col2
----
60

query I rowsort
SELECT ALL 92 + + 29
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-6188
SELECT ALL - - MAX( - + 40 ) + + 60 col2, 75
----
20
75

skipif mysql # not compatible
query II rowsort label-6188
SELECT ALL - - MAX ( - + 40 ) + + 60 col2, 75
----
20
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT - COALESCE ( + + 48, + ( 6 ) + + 61 + + - 72 ) + + SUM( - 5 )
----
-53

skipif mysql # not compatible
query I rowsort label-6189
SELECT - COALESCE ( + + 48, + ( 6 ) + + 61 + + - 72 ) + + SUM ( - 5 )
----
-53

query I rowsort
SELECT ALL 6 + 67
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6191
SELECT ALL - + ( + CAST( NULL AS SIGNED ) ) + + 93 + - 10 * - COUNT( * ) / 18
----
NULL

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL - + ( + CAST ( NULL AS INTEGER ) ) + + 93 + - 10 * - COUNT ( * ) / 18
----
NULL

query II rowsort
SELECT 56 AS col1, 49
----
56
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT ALL CASE - - 69 WHEN + 94 THEN NULL WHEN + 80 * 63 / + - COUNT( * ) THEN - 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL CASE - - 69 WHEN + 94 THEN NULL WHEN + 80 * 63 / + - COUNT ( * ) THEN - 43 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6194
SELECT ALL - MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL - MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6195
SELECT 82 + + + 94 * + 67, CAST( - + 67 AS SIGNED ) col1
----
6380
-67

skipif mysql # not compatible
query II rowsort label-6195
SELECT 82 + + + 94 * + 67, CAST ( - + 67 AS INTEGER ) col1
----
6380
-67

query II rowsort
SELECT - - 13 AS col0, 0 + - + 51 * + - 78
----
13
3978

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT DISTINCT SUM( + ( + + 75 ) ) + 83
----
158

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT SUM ( + ( + + 75 ) ) + 83
----
158

query I rowsort
SELECT ALL - + 52 + - - 83 AS col0
----
31

query II rowsort
SELECT - + 59 AS col0, - 7 AS col1
----
-59
-7

query I rowsort
SELECT 74 + 13 * + 73 AS col1
----
1023

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT 61 * + COALESCE ( - ( COUNT( * ) ), + 69 * + - 8, + 53 ) * - 31 * + COUNT( + + 2 ) AS col1
----
1891

skipif mysql # not compatible
query I rowsort label-6201
SELECT 61 * + COALESCE ( - ( COUNT ( * ) ), + 69 * + - 8, + 53 ) * - 31 * + COUNT ( + + 2 ) AS col1
----
1891

query I rowsort
SELECT - 61 + - - 59 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6203
SELECT 12, + MIN( DISTINCT + 60 ) + + + 29 * 30 AS col2
----
12
930

skipif mysql # not compatible
query II rowsort label-6203
SELECT 12, + MIN ( DISTINCT + 60 ) + + + 29 * 30 AS col2
----
12
930

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ALL COALESCE ( SUM( + 90 ), 11 ) - + + 46
----
44

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL COALESCE ( SUM ( + 90 ), 11 ) - + + 46
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT ALL - 92 - + 13 + + NULLIF ( COUNT( DISTINCT + + 47 ), - 83 / + 12 ) AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL - 92 - + 13 + + NULLIF ( COUNT ( DISTINCT + + 47 ), - 83 / + 12 ) AS col0
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-6206
SELECT + 26, - SUM( ALL + 35 ) AS col0
----
26
-35

skipif mysql # not compatible
query II rowsort label-6206
SELECT + 26, - SUM ( ALL + 35 ) AS col0
----
26
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6207
SELECT COUNT( DISTINCT - 23 ) + - 98 + - + CASE - - 51 WHEN - + 87 THEN NULL WHEN - ( 12 ) THEN + + CAST( NULL AS SIGNED ) END * 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6207
SELECT COUNT ( DISTINCT - 23 ) + - 98 + - + CASE - - 51 WHEN - + 87 THEN NULL WHEN - ( 12 ) THEN + + CAST ( NULL AS INTEGER ) END * 93 AS col1
----
NULL

query I rowsort
SELECT 88 + + 68 AS col0
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6209
SELECT 97 DIV MAX( DISTINCT + - 36 )
----
-2

skipif mysql # not compatible
query I rowsort label-6209
SELECT 97 / MAX ( DISTINCT + - 36 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT 68 * - COUNT( + 41 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-6210
SELECT 68 * - COUNT ( + 41 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT DISTINCT + NULLIF ( COUNT( 46 ), + 75 * 76 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT + NULLIF ( COUNT ( 46 ), + 75 * 76 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT COALESCE ( 75, - COUNT( * ), + 98 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-6212
SELECT COALESCE ( 75, - COUNT ( * ), + 98 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT ALL COUNT( DISTINCT + + 72 ) * 63 + ( 64 ) * + - 96 + - 29
----
-6110

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL COUNT ( DISTINCT + + 72 ) * 63 + ( 64 ) * + - 96 + - 29
----
-6110

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT - CASE - 77 WHEN + 14 - - NULLIF ( + 13, COUNT( * ) - + - ( + + 80 ) ) THEN NULL ELSE 65 END * 96
----
-6240

skipif mysql # not compatible
query I rowsort label-6214
SELECT - CASE - 77 WHEN + 14 - - NULLIF ( + 13, COUNT ( * ) - + - ( + + 80 ) ) THEN NULL ELSE 65 END * 96
----
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT ALL COALESCE ( + 30, COALESCE ( ( - + 40 ), - COUNT( * ) ) ) * + + NULLIF ( 24, - ( + 49 ) ) + + + 34 AS col1
----
754

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL COALESCE ( + 30, COALESCE ( ( - + 40 ), - COUNT ( * ) ) ) * + + NULLIF ( 24, - ( + 49 ) ) + + + 34 AS col1
----
754

query I rowsort
SELECT DISTINCT + 17 * + + ( + 69 )
----
1173

query I rowsort
SELECT + 44 * 71
----
3124

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

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

query II rowsort
SELECT ALL - 79 * + 12 + COALESCE ( - 57, - 88 ) + + 62 + - 96 AS col0, + 60
----
-1039
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6220
SELECT DISTINCT + COUNT( * ) * - 25 DIV 58 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6220
SELECT DISTINCT + COUNT ( * ) * - 25 / 58 / - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6221
SELECT + 8 DIV - 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6221
SELECT + 8 / - 62 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT ALL - + 30 * - 74 + - 45 + + 8 * NULLIF ( + 75, ( COUNT( * ) ) - + 87 ) col1
----
2775

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL - + 30 * - 74 + - 45 + + 8 * NULLIF ( + 75, ( COUNT ( * ) ) - + 87 ) col1
----
2775

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6223
SELECT ALL + 28 / + CAST( NULL AS SIGNED ), 45 AS col1
----
NULL
45

skipif mysql # not compatible
query II rowsort label-6223
SELECT ALL + 28 / + CAST ( NULL AS INTEGER ), 45 AS col1
----
NULL
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT - 17 * - 97 + + - COUNT( * ) + + 52 AS col2
----
1700

skipif mysql # not compatible
query I rowsort label-6224
SELECT - 17 * - 97 + + - COUNT ( * ) + + 52 AS col2
----
1700

onlyif mysql # aggregate syntax: 
query II rowsort label-6225
SELECT + + COUNT( * ) * + 78 AS col1, + 62 + 26
----
78
88

skipif mysql # not compatible
query II rowsort label-6225
SELECT + + COUNT ( * ) * + 78 AS col1, + 62 + 26
----
78
88

query I rowsort
SELECT + - ( + 27 ) * - + 61 col1
----
1647

query I rowsort
SELECT ALL 40 - - 50 AS col2
----
90

query I rowsort
SELECT DISTINCT + 79 * - 81 col0
----
-6399

query I rowsort
SELECT + 92 * - 3 + + - 93 AS col0
----
-369

query I rowsort
SELECT ALL 67 * - + NULLIF ( - 26, 44 ) AS col2
----
1742

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

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

query I rowsort
SELECT DISTINCT 10 * - ( 25 )
----
-250

query I rowsort
SELECT + - 46 + + + 75
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-6234
SELECT - - COUNT( * ) - - 13 AS col0, COUNT( * ) - - NULLIF ( - 78, 43 * - - ( + 57 ) ) AS col2
----
14
-77

skipif mysql # not compatible
query II rowsort label-6234
SELECT - - COUNT ( * ) - - 13 AS col0, COUNT ( * ) - - NULLIF ( - 78, 43 * - - ( + 57 ) ) AS col2
----
14
-77

query I rowsort
SELECT - 8 * + COALESCE ( COALESCE ( ( 10 ), - - 48 ), - 63 ) AS col0
----
-80

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

query I rowsort
SELECT ALL - 3 * + - 74 col1
----
222

query I rowsort
SELECT DISTINCT 63 + - 77 AS col2
----
-14

query I rowsort
SELECT + 86 + + 79
----
165

query I rowsort
SELECT - 92 * 92 AS col2
----
-8464

query I rowsort
SELECT - 62 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT - 62 / 36 * + MAX( + CASE 4 WHEN - + COALESCE ( + 51, - 96, - - 96 ) - - 67 + 19 THEN + 92 END ) + 79 - + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT - 62 / 36 * + MAX ( + CASE 4 WHEN - + COALESCE ( + 51, - 96, - - 96 ) - - 67 + 19 THEN + 92 END ) + 79 - + 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT DISTINCT + COALESCE ( - COUNT( * ), - + MIN( - 34 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT + COALESCE ( - COUNT ( * ), - + MIN ( - 34 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6244
SELECT ALL - COUNT( * ) * - - SUM( DISTINCT + - 69 ) + - 75 + + + NULLIF ( - 56, - 4 ) DIV + 21
----
-8

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL - COUNT ( * ) * - - SUM ( DISTINCT + - 69 ) + - 75 + + + NULLIF ( - 56, - 4 ) / + 21
----
-8

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6246
SELECT 5, - 67 DIV - 61 AS col1
----
5
1

skipif mysql # not compatible
query II rowsort label-6246
SELECT 5, - 67 / - 61 AS col1
----
5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT 46 * + 69 + COUNT( * ) - + MAX( ALL 65 ) + - 87 * 81
----
-3937

skipif mysql # not compatible
query I rowsort label-6247
SELECT 46 * + 69 + COUNT ( * ) - + MAX ( ALL 65 ) + - 87 * 81
----
-3937

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

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

query I rowsort
SELECT DISTINCT - 49 * + 65
----
-3185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6250
SELECT ALL - - CAST( NULL AS SIGNED ) * - 92 - NULLIF ( - - 43, + COUNT( * ) ), + 97 * 1 AS col0
----
NULL
97

skipif mysql # not compatible
query II rowsort label-6250
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 92 - NULLIF ( - - 43, + COUNT ( * ) ), + 97 * 1 AS col0
----
NULL
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6251
SELECT - - 94 * + + 49 - + 1 AS col0, + COUNT( * ) AS col2
----
4605
1

skipif mysql # not compatible
query II rowsort label-6251
SELECT - - 94 * + + 49 - + 1 AS col0, + COUNT ( * ) AS col2
----
4605
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT DISTINCT - 89 * - ( - 15 ) + COUNT( * ) * - 13 * - COUNT( * ) AS col2
----
-1322

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT - 89 * - ( - 15 ) + COUNT ( * ) * - 13 * - COUNT ( * ) AS col2
----
-1322

query I rowsort
SELECT ALL + 25 * 88 - - 64 + 55
----
2319

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT - MAX( ALL + + ( - 79 ) ) * 48 * + + COUNT( * )
----
3792

skipif mysql # not compatible
query I rowsort label-6254
SELECT - MAX ( ALL + + ( - 79 ) ) * 48 * + + COUNT ( * )
----
3792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6255
SELECT DISTINCT + 23 DIV - MIN( + 42 ) + - CAST( + - ( + 86 ) AS SIGNED ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT + 23 / - MIN ( + 42 ) + - CAST ( + - ( + 86 ) AS INTEGER ) AS col2
----
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT + MIN( ( - 89 ) ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-6257
SELECT + MIN ( ( - 89 ) ) AS col2
----
-89

query II rowsort
SELECT ALL + 73 + + + 93 + - 42 AS col0, - 54 AS col2
----
124
-54

query I rowsort
SELECT + ( + 29 ) + - ( - 22 )
----
51

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

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

query I rowsort
SELECT ALL - 16 * + + 75
----
-1200

query I rowsort
SELECT ALL 29 + - 77 AS col0
----
-48

query I rowsort
SELECT DISTINCT 22 * 85 * 22
----
41140

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6264
SELECT DISTINCT 98 + - + 15 * - CAST( - 5 AS SIGNED ) DIV - 77 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-6264
SELECT DISTINCT 98 + - + 15 * - CAST ( - 5 AS INTEGER ) / - 77 AS col2
----
98

query I rowsort
SELECT 13 + + - 35
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT 22 + - - 2 * + COUNT( * ) + 86
----
110

skipif mysql # not compatible
query I rowsort label-6266
SELECT 22 + - - 2 * + COUNT ( * ) + 86
----
110

query II rowsort
SELECT 77 col0, ( - - 21 ) AS col0
----
77
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6268
SELECT - 19 AS col1, 44 + COUNT( * ) + + 93 DIV NULLIF ( + CAST( - 44 AS SIGNED ), 91 * + 7 ) DIV - 56 AS col2
----
-19
45

skipif mysql # not compatible
query II rowsort label-6268
SELECT - 19 AS col1, 44 + COUNT ( * ) + + 93 / NULLIF ( + CAST ( - 44 AS INTEGER ), 91 * + 7 ) / - 56 AS col2
----
-19
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6269
SELECT 3 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-6269
SELECT 3 / - 96
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6270
SELECT DISTINCT - 44 AS col1, 90 + MAX( + + 67 )
----
-44
157

skipif mysql # not compatible
query II rowsort label-6270
SELECT DISTINCT - 44 AS col1, 90 + MAX ( + + 67 )
----
-44
157

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT ALL COUNT( * ) + - + ( - CASE - 55 WHEN + + 64 THEN NULL ELSE + + 41 + + 0 + 10 END )
----
52

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL COUNT ( * ) + - + ( - CASE - 55 WHEN + + 64 THEN NULL ELSE + + 41 + + 0 + 10 END )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6272
SELECT DISTINCT - CASE - + SUM( + 27 ) WHEN + ( + 81 ) THEN + 3 DIV - CASE - - 66 WHEN + 8 + + 91 + 40 DIV + 30 THEN + 72 END ELSE + COALESCE ( - 78, 77 ) * 39 + - 74 * 94 END
----
9998

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT - CASE - + SUM ( + 27 ) WHEN + ( + 81 ) THEN + 3 / - CASE - - 66 WHEN + 8 + + 91 + 40 / + 30 THEN + 72 END ELSE + COALESCE ( - 78, 77 ) * 39 + - 74 * 94 END
----
9998

query I rowsort
SELECT DISTINCT 9 * + + 93 * + 84 AS col0
----
70308

query II rowsort
SELECT 15 AS col1, 7 col1
----
15
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6275
SELECT ALL + ( - ( CAST( + 26 AS SIGNED ) ) ) - + COUNT( * )
----
-27

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

query II rowsort
SELECT 38, - 8 + 77 AS col2
----
38
69

query I rowsort
SELECT 67 - 84 col1
----
-17

query I rowsort
SELECT 11 * - - 3
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6279
SELECT + CAST( + CASE + - 63 WHEN - + 74 THEN + - 84 END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT + CAST ( + CASE + - 63 WHEN - + 74 THEN + - 84 END AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6280
SELECT ALL + - 33 DIV - 67 * + + SUM( + 47 )
----
0

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL + - 33 / - 67 * + + SUM ( + 47 )
----
0

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

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

query I rowsort
SELECT 90 * + 25
----
2250

query II rowsort
SELECT + 60, 4 + + - 47 + + + 55 + + CASE - - 84 WHEN - + 47 THEN - 89 ELSE NULL END + + 13 * 79 AS col2
----
60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT DISTINCT - + ( - CASE + - COUNT( * ) WHEN - COALESCE ( - MAX( - 72 ), - 85 * - 62 ) THEN 49 + ( 75 ) + + - 79 * + + 8 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT - + ( - CASE + - COUNT ( * ) WHEN - COALESCE ( - MAX ( - 72 ), - 85 * - 62 ) THEN 49 + ( 75 ) + + - 79 * + + 8 ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT + 63 * - 29 * + + 75
----
-137025

onlyif mysql # aggregate syntax: 
query II rowsort label-6286
SELECT - - 59 AS col0, COUNT( * ) AS col0
----
59
1

skipif mysql # not compatible
query II rowsort label-6286
SELECT - - 59 AS col0, COUNT ( * ) AS col0
----
59
1

query I rowsort
SELECT ALL + 2 + + - 79 + - + 71 col2
----
-148

query I rowsort
SELECT ALL - - 78 + + - 96 AS col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6289
SELECT DISTINCT + - CAST( - + 53 AS SIGNED ) + - 10 + 59 + - 11
----
91

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT + - CAST ( - + 53 AS INTEGER ) + - 10 + 59 + - 11
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT 8 + + COUNT( + - 35 )
----
9

skipif mysql # not compatible
query I rowsort label-6290
SELECT 8 + + COUNT ( + - 35 )
----
9

query II rowsort
SELECT ALL 39 AS col1, 30
----
39
30

query I rowsort
SELECT ALL + 75 + - 48 AS col0
----
27

query I rowsort
SELECT ALL 11 + + + 99 + + 79 + 83 * 6
----
687

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT DISTINCT - 3 + - 64 * + - COUNT( DISTINCT + - 99 )
----
61

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT - 3 + - 64 * + - COUNT ( DISTINCT + - 99 )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-6295
SELECT 71 + 81 AS col0, ( 73 ) * + COUNT( * )
----
152
73

skipif mysql # not compatible
query II rowsort label-6295
SELECT 71 + 81 AS col0, ( 73 ) * + COUNT ( * )
----
152
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6296
SELECT 93 - CASE + 28 WHEN + - 28 THEN - CAST( NULL AS SIGNED ) ELSE NULL END * + 68 * - + CASE - 89 WHEN + COUNT( * ) THEN - - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6296
SELECT 93 - CASE + 28 WHEN + - 28 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END * + 68 * - + CASE - 89 WHEN + COUNT ( * ) THEN - - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 13 * - 62 col0
----
806

query I rowsort
SELECT DISTINCT 50 * - 70
----
-3500

query I rowsort
SELECT ALL 68 * - 72
----
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT - NULLIF ( - COUNT( * ), + NULLIF ( + 2, + - 77 + 41 ) ) * + + COUNT( * ) + 39 + 10 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-6300
SELECT - NULLIF ( - COUNT ( * ), + NULLIF ( + 2, + - 77 + 41 ) ) * + + COUNT ( * ) + 39 + 10 AS col2
----
50

query I rowsort
SELECT 5 * + 17 col1
----
85

query I rowsort
SELECT ALL - - ( 76 ) AS col0
----
76

query I rowsort
SELECT - 89 + + 77 + 6
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-6304
SELECT ALL CASE - - 10 WHEN + 99 + COUNT( * ) THEN + 4 / + COUNT( * ) END / - 70 AS col2, + 17 col2
----
NULL
17

skipif mysql # not compatible
query II rowsort label-6304
SELECT ALL CASE - - 10 WHEN + 99 + COUNT ( * ) THEN + 4 / + COUNT ( * ) END / - 70 AS col2, + 17 col2
----
NULL
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6305
SELECT DISTINCT - - CAST( - 90 AS SIGNED ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT - - CAST ( - 90 AS INTEGER ) AS col2
----
-90

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

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

query I rowsort
SELECT + 69 * 78 AS col1
----
5382

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6308
SELECT + - 45 * - 13 + + 18 * + - 77 * - 61 * + 49 - - - 93 * 48 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6308
SELECT + - 45 * - 13 + + 18 * + - 77 * - 61 * + 49 - - - 93 * 48 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 17 + + 96 + 14 AS col2
----
127

query II rowsort
SELECT 43 + 74 * - NULLIF ( + + 25, + 6 ) AS col1, + 62
----
-1807
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT ALL + MAX( ALL + - ( + 94 ) ) + + 12 + + + COUNT( * ) * ( - + COUNT( * ) ) - 37 + - COUNT( * )
----
-121

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL + MAX ( ALL + - ( + 94 ) ) + + 12 + + + COUNT ( * ) * ( - + COUNT ( * ) ) - 37 + - COUNT ( * )
----
-121

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6313
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 95 + - - 67 + + 51 * + + ( - COALESCE ( - 2, - COUNT( ALL 16 ) ) ) + + NULLIF ( CAST( NULL AS SIGNED ), - MIN( - 56 ) ) AS col2, ( - - 87 ) AS col1
----
NULL
87

skipif mysql # not compatible
query II rowsort label-6313
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 95 + - - 67 + + 51 * + + ( - COALESCE ( - 2, - COUNT ( ALL 16 ) ) ) + + NULLIF ( CAST ( NULL AS INTEGER ), - MIN ( - 56 ) ) AS col2, ( - - 87 ) AS col1
----
NULL
87

query I rowsort
SELECT ALL 2 + 89 AS col1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6315
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + 11 AS col2, 19 * + + 17 AS col1
----
NULL
323

skipif mysql # not compatible
query II rowsort label-6315
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + 11 AS col2, 19 * + + 17 AS col1
----
NULL
323

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT DISTINCT + COUNT( * ) + + 18 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-6318
SELECT DISTINCT + COUNT ( * ) + + 18 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT - CASE + 38 WHEN + 57 * - - 66 + 70 THEN - + COUNT( * ) ELSE NULL END + - + CASE + + 1 WHEN + - 36 + COUNT( * ) THEN - COUNT( * ) ELSE + 31 END + + + COUNT( DISTINCT - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT - CASE + 38 WHEN + 57 * - - 66 + 70 THEN - + COUNT ( * ) ELSE NULL END + - + CASE + + 1 WHEN + - 36 + COUNT ( * ) THEN - COUNT ( * ) ELSE + 31 END + + + COUNT ( DISTINCT - 78 )
----
NULL

query I rowsort
SELECT - 16 - - + 45 AS col1
----
29

query I rowsort
SELECT - 92 * + 98 * - 52
----
468832

query II rowsort
SELECT DISTINCT 14 col0, + 34 AS col2
----
14
34

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

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL - COUNT ( * ) - - 55 AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6324
SELECT DISTINCT CASE - AVG ( + 52 ) WHEN CASE - + COALESCE ( - 88, - 90, - - AVG ( - 53 ) ) WHEN 6 THEN - CAST( + 84 AS SIGNED ) * 10 * + + 28 * - 23 * + 59 ELSE NULL END + 88 THEN NULL ELSE - 5 * + - 60 END AS col1, NULLIF ( + COALESCE ( 70, 36 * + 42, + ( - COUNT( * ) ), 73 ), - 30 - 19 ) + + CAST( NULL AS SIGNED )
----
300
NULL

skipif mysql # not compatible
query II rowsort label-6324
SELECT DISTINCT CASE - AVG ( + 52 ) WHEN CASE - + COALESCE ( - 88, - 90, - - AVG ( - 53 ) ) WHEN 6 THEN - CAST ( + 84 AS INTEGER ) * 10 * + + 28 * - 23 * + 59 ELSE NULL END + 88 THEN NULL ELSE - 5 * + - 60 END AS col1, NULLIF ( + COALESCE ( 70, 36 * + 42, + ( - COUNT ( * ) ), 73 ), - 30 - 19 ) + + CAST ( NULL AS INTEGER )
----
300
NULL

query I rowsort
SELECT - 3 + - + 62 * - 58 * 47
----
169009

query I rowsort
SELECT ALL CASE 30 WHEN 24 THEN NULL WHEN + 89 THEN ( 34 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6327
SELECT DISTINCT COALESCE ( + 17, + 42 + - 2 + - NULLIF ( - - COUNT( * ), - ( + 32 ) * 86 * - COUNT( * ) ) DIV - + ( - + AVG ( + 83 ) ) DIV - + 33 ) col2
----
17

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT COALESCE ( + 17, + 42 + - 2 + - NULLIF ( - - COUNT ( * ), - ( + 32 ) * 86 * - COUNT ( * ) ) / - + ( - + AVG ( + 83 ) ) / - + 33 ) col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6328
SELECT DISTINCT + 37 DIV ( + SUM( + 12 ) )
----
3

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT + 37 / ( + SUM ( + 12 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT ALL ( - CASE - - MAX( + + 23 ) WHEN - 17 THEN NULL WHEN - + 25 * + 43 + - 81 + - + 52 THEN - 87 ELSE + 58 + - COUNT( * ) END )
----
-57

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL ( - CASE - - MAX ( + + 23 ) WHEN - 17 THEN NULL WHEN - + 25 * + 43 + - 81 + - + 52 THEN - 87 ELSE + 58 + - COUNT ( * ) END )
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6330
SELECT DISTINCT + + 24 DIV - + MAX( DISTINCT - 87 ) + + - NULLIF ( + MAX( ALL - 25 ), + ( + - MAX( 76 ) ) + - ( + 19 ) ) + + COUNT( * ) - 80 * - - 84
----
-6694

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT + + 24 / - + MAX ( DISTINCT - 87 ) + + - NULLIF ( + MAX ( ALL - 25 ), + ( + - MAX ( 76 ) ) + - ( + 19 ) ) + + COUNT ( * ) - 80 * - - 84
----
-6694

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6331
SELECT + 87 * + 24 + - + 83 + - 91 + + 67 DIV - CAST( + - 79 AS SIGNED ) - 19 * + + 8
----
1762

skipif mysql # not compatible
query I rowsort label-6331
SELECT + 87 * + 24 + - + 83 + - 91 + + 67 / - CAST ( + - 79 AS INTEGER ) - 19 * + + 8
----
1762

query I rowsort
SELECT ALL + 18 * - 52
----
-936

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

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT - + COUNT ( * ) * - + 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT DISTINCT + + 49 * + COUNT( + + 27 )
----
49

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT + + 49 * + COUNT ( + + 27 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6335
SELECT + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) * + 4 * + + 42 / - + 95 + AVG ( ALL - 14 ) * 9
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6335
SELECT + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * + 4 * + + 42 / - + 95 + AVG ( ALL - 14 ) * 9
----
NULL
NULL

query I rowsort
SELECT ALL 79 * + 67
----
5293

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

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

query II rowsort
SELECT + - 7 AS col2, 33 AS col0
----
-7
33

query I rowsort
SELECT ALL 86 * 14 * - + 26 + - 75
----
-31379

query II rowsort
SELECT + - 96, 1 * - ( - - 32 ) AS col2
----
-96
-32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT ALL + 97 * 75 + - + 83 + 23 - COUNT( * ) AS col0
----
7214

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL + 97 * 75 + - + 83 + 23 - COUNT ( * ) AS col0
----
7214

query I rowsort
SELECT + + 56 - - 67 AS col2
----
123

query II rowsort
SELECT + 85 AS col2, 83 * + 66 - 50
----
85
5428

onlyif mysql # DIV for integer division: 
query I rowsort label-6345
SELECT - 52 - + 42 * + 36 * - 49 * + - 9 DIV - - 3 + + ( + 37 ) AS col1
----
-222279

skipif mysql # not compatible
query I rowsort label-6345
SELECT - 52 - + 42 * + 36 * - 49 * + - 9 / - - 3 + + ( + 37 ) AS col1
----
-222279

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

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

query I rowsort
SELECT NULLIF ( - NULLIF ( + 19, + 74 * - + 54 ), 58 )
----
-19

query I rowsort
SELECT ALL - 75 * 95 - 6 AS col1
----
-7131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6349
SELECT + CAST( NULL AS SIGNED ) * - - COALESCE ( 30, NULLIF ( + 40, 99 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6349
SELECT + CAST ( NULL AS INTEGER ) * - - COALESCE ( 30, NULLIF ( + 40, 99 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6350
SELECT - 46 * - - CAST( - 6 AS SIGNED ) DIV 1
----
276

skipif mysql # not compatible
query I rowsort label-6350
SELECT - 46 * - - CAST ( - 6 AS INTEGER ) / 1
----
276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6351
SELECT + COALESCE ( 19, CAST( 19 AS SIGNED ) * + 52 ) + - 54 + - + COUNT( DISTINCT 61 )
----
-36

skipif mysql # not compatible
query I rowsort label-6351
SELECT + COALESCE ( 19, CAST ( 19 AS INTEGER ) * + 52 ) + - 54 + - + COUNT ( DISTINCT 61 )
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-6352
SELECT DISTINCT 33 DIV 22
----
1

skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT 33 / 22
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6354
SELECT ALL COALESCE ( 76, 93 + + NULLIF ( COUNT( * ), + CASE CASE - 87 WHEN - 75 THEN + + 39 ELSE NULL END WHEN 88 THEN NULL WHEN + + 87 * + 45 - + 29 THEN NULL ELSE 83 + 47 * + 51 * 0 END - - 31 - - 29 - - AVG ( ALL 5 ) + + + 53 * + COUNT( * ) ) + 0 DIV CAST( - 28 AS SIGNED ) )
----
76

skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL COALESCE ( 76, 93 + + NULLIF ( COUNT ( * ), + CASE CASE - 87 WHEN - 75 THEN + + 39 ELSE NULL END WHEN 88 THEN NULL WHEN + + 87 * + 45 - + 29 THEN NULL ELSE 83 + 47 * + 51 * 0 END - - 31 - - 29 - - AVG ( ALL 5 ) + + + 53 * + COUNT ( * ) ) + 0 / CAST ( - 28 AS INTEGER ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT DISTINCT CASE SUM( ALL - 84 ) WHEN - ( - 14 ) + COUNT( * ) THEN + 81 / 10 + 80 * - 31 - + CASE + 26 WHEN - 39 * - + 90 - - + 18 - + 81 + - 16 THEN + COUNT( * ) * + 66 - + CASE - 2 WHEN - + 97 THEN + 78 + - SUM( - 74 ) WHEN + COUNT( * ) THEN NULL ELSE NULL END WHEN 23 THEN NULL ELSE 50 END + SUM( 61 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT CASE SUM ( ALL - 84 ) WHEN - ( - 14 ) + COUNT ( * ) THEN + 81 / 10 + 80 * - 31 - + CASE + 26 WHEN - 39 * - + 90 - - + 18 - + 81 + - 16 THEN + COUNT ( * ) * + 66 - + CASE - 2 WHEN - + 97 THEN + 78 + - SUM ( - 74 ) WHEN + COUNT ( * ) THEN NULL ELSE NULL END WHEN 23 THEN NULL ELSE 50 END + SUM ( 61 ) ELSE NULL END
----
NULL

query II rowsort
SELECT - 44 - + 15 AS col1, 89
----
-59
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6357
SELECT ALL CAST( + MIN( - 38 ) AS SIGNED ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL CAST ( + MIN ( - 38 ) AS INTEGER ) AS col0
----
-38

query I rowsort
SELECT DISTINCT + - 89 + + 71 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-6359
SELECT ALL - 42 + - + 33 AS col0, - COUNT( * ) AS col1
----
-75
-1

skipif mysql # not compatible
query II rowsort label-6359
SELECT ALL - 42 + - + 33 AS col0, - COUNT ( * ) AS col1
----
-75
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT - COALESCE ( - 60, - 43, - COUNT( * ) ) + + COUNT( - - 79 ) + + 62 col2
----
123

skipif mysql # not compatible
query I rowsort label-6360
SELECT - COALESCE ( - 60, - 43, - COUNT ( * ) ) + + COUNT ( - - 79 ) + + 62 col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT - 94 - + ( + COUNT( * ) ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-6361
SELECT - 94 - + ( + COUNT ( * ) ) AS col1
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6362
SELECT + - COUNT( * ) DIV - + ( - 68 ) - - 29 - + - 37
----
66

skipif mysql # not compatible
query I rowsort label-6362
SELECT + - COUNT ( * ) / - + ( - 68 ) - - 29 - + - 37
----
66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6363
SELECT DISTINCT + 86 / 52 / + AVG ( ALL 31 ) + + 0 - CAST( + 59 AS DECIMAL ) + - CAST( NULL AS SIGNED ) + - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT + 86 / 52 / + AVG ( ALL 31 ) + + 0 - CAST ( + 59 AS REAL ) + - CAST ( NULL AS INTEGER ) + - 51 AS col2
----
NULL

query II rowsort
SELECT ALL + 57 * + 33, - 29 col1
----
1881
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6365
SELECT ALL - + 55 + + 36 - + 41 + COUNT( * ) AS col2, COALESCE ( + CASE - - 96 WHEN - + 19 THEN + 34 ELSE NULL END, - CAST( NULL AS SIGNED ) * 9 / 78 / - COUNT( ( - ( - 67 ) ) ) * + - COUNT( * ) ) * COUNT( DISTINCT - 50 ) * ( - 38 ) + + - 72 + + CAST( - 67 AS SIGNED ) + - ( + CAST( + 24 AS SIGNED ) ) / 74
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-6365
SELECT ALL - + 55 + + 36 - + 41 + COUNT ( * ) AS col2, COALESCE ( + CASE - - 96 WHEN - + 19 THEN + 34 ELSE NULL END, - CAST ( NULL AS INTEGER ) * 9 / 78 / - COUNT ( ( - ( - 67 ) ) ) * + - COUNT ( * ) ) * COUNT ( DISTINCT - 50 ) * ( - 38 ) + + - 72 + + CAST ( - 67 AS INTEGER ) + - ( + CAST ( + 24 AS INTEGER ) ) / 74
----
-59
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT + - ( - - MAX( + - 76 ) ) * 81 + 61 + - COUNT( * ) + + 81 AS col2
----
6297

skipif mysql # not compatible
query I rowsort label-6366
SELECT + - ( - - MAX ( + - 76 ) ) * 81 + 61 + - COUNT ( * ) + + 81 AS col2
----
6297

query I rowsort
SELECT ALL + 65 + - - 14 + + - 74 + - - 58 * 48 - - 81 * 42 + + + ( 46 ) * - + 47 - - 88
----
4117

query I rowsort
SELECT ALL + - COALESCE ( 72, - 88 - 19 ) * - - NULLIF ( 4, + 73 * 47 * - 46 )
----
-288

query I rowsort
SELECT 85 * - 10 + + + 93 + 62
----
-695

onlyif mysql # aggregate syntax: 
query II rowsort label-6370
SELECT DISTINCT - NULLIF ( 24, AVG ( 31 ) * + 68 * + 35 + + 99 ), 64 * + + COUNT( * ) AS col1
----
-24
64

skipif mysql # not compatible
query II rowsort label-6370
SELECT DISTINCT - NULLIF ( 24, AVG ( 31 ) * + 68 * + 35 + + 99 ), 64 * + + COUNT ( * ) AS col1
----
-24
64

query I rowsort
SELECT ALL 7 - - 85 AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6372
SELECT - 50 + ( + COALESCE ( + + 73, 59, - 61 + - - 28 - - 68 ) ) + - 63 + - 14 - CAST( + 71 AS SIGNED ) * - - 37 * + ( - 18 ) + COUNT( * ) * + 5 AS col1
----
47237

skipif mysql # not compatible
query I rowsort label-6372
SELECT - 50 + ( + COALESCE ( + + 73, 59, - 61 + - - 28 - - 68 ) ) + - 63 + - 14 - CAST ( + 71 AS INTEGER ) * - - 37 * + ( - 18 ) + COUNT ( * ) * + 5 AS col1
----
47237

query I rowsort
SELECT ALL 35 - 12 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT - 36 * + ( - COUNT( * ) ) + + 6 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-6374
SELECT - 36 * + ( - COUNT ( * ) ) + + 6 AS col2
----
42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6376
SELECT DISTINCT - 45 AS col2, 26 * + - CAST( NULL AS SIGNED ) / - 74 + 44 * + - 38
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-6376
SELECT DISTINCT - 45 AS col2, 26 * + - CAST ( NULL AS INTEGER ) / - 74 + 44 * + - 38
----
-45
NULL

query I rowsort
SELECT ALL 81 - 58 AS col1
----
23

query I rowsort
SELECT ALL 92 * - - 18 col2
----
1656

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

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

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

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

query I rowsort
SELECT DISTINCT 27 * 13
----
351

query I rowsort
SELECT ALL 45 * 80
----
3600

query I rowsort
SELECT 47 * + 59
----
2773

query I rowsort
SELECT 37 + + + 23 + + 54
----
114

query I rowsort
SELECT ALL 26 + - 71 AS col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6386
SELECT CAST( NULL AS DECIMAL ) * ( - 19 ) * + + NULLIF ( - - 9, + CAST( NULL AS SIGNED ) ) * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6386
SELECT CAST ( NULL AS REAL ) * ( - 19 ) * + + NULLIF ( - - 9, + CAST ( NULL AS INTEGER ) ) * 25
----
NULL

query I rowsort
SELECT ALL + 19 + 32 - - + 35
----
86

query I rowsort
SELECT ALL - 65 * + 20 AS col1
----
-1300

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

skipif mysql # not compatible
query I rowsort label-6389
SELECT - 8 / + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 22 * - 74
----
1628

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT ALL + - 94 + + + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL + - 94 + + + COUNT ( * )
----
-93

query II rowsort
SELECT + 40 AS col2, + 69 AS col2
----
40
69

query II rowsort
SELECT ALL - + NULLIF ( 94, - 0 ) + + 15 * - 22 AS col2, 58 AS col1
----
-424
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6394
SELECT + MIN( - 78 ) * + CAST( - CASE + + COUNT( * ) WHEN - 24 + + 32 THEN - 88 END AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6394
SELECT + MIN ( - 78 ) * + CAST ( - CASE + + COUNT ( * ) WHEN - 24 + + 32 THEN - 88 END AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL 28 + + - 3
----
25

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

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

query I rowsort
SELECT DISTINCT + 16 * + 76
----
1216

onlyif mysql # aggregate syntax: 
query II rowsort label-6398
SELECT ALL - 94 - + + 91 + - 77 * + + MIN( 10 ) + + 52 AS col2, - 61 * - + 54 + + NULLIF ( - + CASE + + 23 WHEN + 14 / + 69 THEN + 27 * COUNT( * ) WHEN + MAX( DISTINCT - + 42 ) THEN NULL WHEN - 21 THEN NULL ELSE COUNT( * ) END, - - COUNT( * ) + - MIN( 69 ) * + ( 42 ) ) AS col0
----
-903
3293

skipif mysql # not compatible
query II rowsort label-6398
SELECT ALL - 94 - + + 91 + - 77 * + + MIN ( 10 ) + + 52 AS col2, - 61 * - + 54 + + NULLIF ( - + CASE + + 23 WHEN + 14 / + 69 THEN + 27 * COUNT ( * ) WHEN + MAX ( DISTINCT - + 42 ) THEN NULL WHEN - 21 THEN NULL ELSE COUNT ( * ) END, - - COUNT ( * ) + - MIN ( 69 ) * + ( 42 ) ) AS col0
----
-903
3293

query I rowsort
SELECT 59 * + 21 * - + 59
----
-73101

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT + - 17 * + 72 * + + COUNT( * ) - - 21 - 98
----
-1301

skipif mysql # not compatible
query I rowsort label-6400
SELECT + - 17 * + 72 * + + COUNT ( * ) - - 21 - 98
----
-1301

query II rowsort
SELECT ALL - 84 * + + 87 * - 62 AS col2, + 94 AS col2
----
453096
94

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

query II rowsort
SELECT 16 * + 45, - 94 AS col0
----
720
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6404
SELECT 22 DIV + 12
----
1

skipif mysql # not compatible
query I rowsort label-6404
SELECT 22 / + 12
----
1

query I rowsort
SELECT ALL + COALESCE ( - 76, - - CASE 20 WHEN + 60 THEN + 43 ELSE NULL END ) * - 36 AS col1
----
2736

query I rowsort
SELECT 96 + + 34
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6407
SELECT 31 - 13 * 63 * CASE + 68 WHEN + COUNT( * ) * - 16 / 8 * - + 76 + + COUNT( * ) / 61 + + 95 * - CASE 51 WHEN + 48 THEN NULL ELSE + + ( - 71 ) END THEN NULL WHEN - + 11 - + - CASE - COUNT( DISTINCT - 24 ) WHEN - + 30 THEN + NULLIF ( + 52, 83 ) END + - 30 + 84 THEN - COALESCE ( + 24, 59 - + 39 ) * - CAST( NULL AS SIGNED ) ELSE + NULLIF ( - 67, 57 ) END * + 35 + 95
----
1920681

skipif mysql # not compatible
query I rowsort label-6407
SELECT 31 - 13 * 63 * CASE + 68 WHEN + COUNT ( * ) * - 16 / 8 * - + 76 + + COUNT ( * ) / 61 + + 95 * - CASE 51 WHEN + 48 THEN NULL ELSE + + ( - 71 ) END THEN NULL WHEN - + 11 - + - CASE - COUNT ( DISTINCT - 24 ) WHEN - + 30 THEN + NULLIF ( + 52, 83 ) END + - 30 + 84 THEN - COALESCE ( + 24, 59 - + 39 ) * - CAST ( NULL AS INTEGER ) ELSE + NULLIF ( - 67, 57 ) END * + 35 + 95
----
1920681

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6409
SELECT + 60, COALESCE ( + - ( CAST( + 51 AS SIGNED ) ), - 9 ) AS col0
----
60
-51

skipif mysql # not compatible
query II rowsort label-6409
SELECT + 60, COALESCE ( + - ( CAST ( + 51 AS INTEGER ) ), - 9 ) AS col0
----
60
-51

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

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

query I rowsort
SELECT ALL 39 + + + 35 AS col2
----
74

query I rowsort
SELECT 28 * 30 col0
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT DISTINCT - MAX( - + 4 ) + - 23
----
-19

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT - MAX ( - + 4 ) + - 23
----
-19

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

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

query I rowsort
SELECT DISTINCT 74 + 35
----
109

query I rowsort
SELECT 40 + - + 67 * + 75 * - 71
----
356815

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT ALL - ( - 67 ) + + + COUNT( + - ( + 5 ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL - ( - 67 ) + + + COUNT ( + - ( + 5 ) ) AS col1
----
68

query I rowsort
SELECT ALL - 24 + - 6 AS col0
----
-30

query I rowsort
SELECT ALL 67 + + 78 col1
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT - MIN( DISTINCT - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-6420
SELECT - MIN ( DISTINCT - 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT COUNT( * ) + + 42 + 57 - - 51 col0
----
151

skipif mysql # not compatible
query I rowsort label-6421
SELECT COUNT ( * ) + + 42 + 57 - - 51 col0
----
151

query I rowsort
SELECT 25 * - 34
----
-850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6423
SELECT ALL - COUNT( * ) + - 49 * 99 DIV 14
----
-347

skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL - COUNT ( * ) + - 49 * 99 / 14
----
-347

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

skipif mysql # not compatible
query I rowsort label-6424
SELECT - ( 74 ) - + COUNT ( * ) + - ( - 0 ) AS col1
----
-75

query I rowsort
SELECT DISTINCT + ( 13 ) + 55 AS col2
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-6426
SELECT ALL + 20 * ( + + 21 ) DIV 47 * - 95 + - 16 + 21 + 70 * - 79 AS col0, ( 32 ) AS col0
----
-6285
32

skipif mysql # not compatible
query II rowsort label-6426
SELECT ALL + 20 * ( + + 21 ) / 47 * - 95 + - 16 + 21 + 70 * - 79 AS col0, ( 32 ) AS col0
----
-6285
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT ALL - SUM( DISTINCT 71 ) - + 20
----
-91

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL - SUM ( DISTINCT 71 ) - + 20
----
-91

query II rowsort
SELECT DISTINCT 41, 0 * 43 - + - 96 col0
----
41
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6429
SELECT ALL + 41, - 88 + + + COALESCE ( - 65, + + MIN( + 68 ) ) - 12 - 62 + + 4 + + 41 * + - 93 * COUNT( ALL + - COALESCE ( - 29, - + 8 ) ) * 12 + - NULLIF ( 99, + 98 * + 19 - - + 63 + 6 ) - + + ( - 49 ) * - 34 AS col2
----
41
-47744

skipif mysql # not compatible
query II rowsort label-6429
SELECT ALL + 41, - 88 + + + COALESCE ( - 65, + + MIN ( + 68 ) ) - 12 - 62 + + 4 + + 41 * + - 93 * COUNT ( ALL + - COALESCE ( - 29, - + 8 ) ) * 12 + - NULLIF ( 99, + 98 * + 19 - - + 63 + 6 ) - + + ( - 49 ) * - 34 AS col2
----
41
-47744

query I rowsort
SELECT + + 18 - - 64 col2
----
82

query I rowsort
SELECT - - ( + + 46 ) - - 87 AS col1
----
133

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6432
SELECT - CASE 64 WHEN + 4 THEN - 59 WHEN + 21 THEN - + 86 WHEN - + CAST( NULL AS DECIMAL ) THEN 65 ELSE + 11 END DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6432
SELECT - CASE 64 WHEN + 4 THEN - 59 WHEN + 21 THEN - + 86 WHEN - + CAST ( NULL AS REAL ) THEN 65 ELSE + 11 END / + 90 AS col2
----
0

query I rowsort
SELECT + + 74 + + - 23
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT MAX( ALL - + 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6434
SELECT MAX ( ALL - + 59 ) AS col0
----
-59

query II rowsort
SELECT - ( 54 ) * 44 + 98 AS col1, - 53 AS col0
----
-2278
-53

query I rowsort
SELECT DISTINCT - - ( - 9 ) * - 5 AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6437
SELECT ALL + - NULLIF ( - 28, - 32 * - NULLIF ( COUNT( * ), + CASE - 86 WHEN + 37 THEN - 21 ELSE NULL END + + CAST( NULL AS SIGNED ) - + 23 * + 98 ) )
----
28

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL + - NULLIF ( - 28, - 32 * - NULLIF ( COUNT ( * ), + CASE - 86 WHEN + 37 THEN - 21 ELSE NULL END + + CAST ( NULL AS INTEGER ) - + 23 * + 98 ) )
----
28

query I rowsort
SELECT - 85 + + + 73 - + 65
----
-77

query I rowsort
SELECT DISTINCT 17 * + - 14
----
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT ALL + CASE WHEN + COUNT( * ) = - 84 THEN 36 + + + 80 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL + CASE WHEN + COUNT ( * ) = - 84 THEN 36 + + + 80 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT COALESCE ( ( 7 ), 21 * + 75 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT - 46 * - SUM( + ( - 14 ) ) AS col2
----
-644

skipif mysql # not compatible
query I rowsort label-6442
SELECT - 46 * - SUM ( + ( - 14 ) ) AS col2
----
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT 63 * + - NULLIF ( ( - - 22 ), 73 - - 54 ) + + 62 - - - ( + COUNT( * ) )
----
-1325

skipif mysql # not compatible
query I rowsort label-6443
SELECT 63 * + - NULLIF ( ( - - 22 ), 73 - - 54 ) + + 62 - - - ( + COUNT ( * ) )
----
-1325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6444
SELECT + 75 * + 17 * + 27 * + + 64 DIV COUNT( 85 ) AS col0
----
2203200

skipif mysql # not compatible
query I rowsort label-6444
SELECT + 75 * + 17 * + 27 * + + 64 / COUNT ( 85 ) AS col0
----
2203200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6445
SELECT CASE + 72 WHEN 51 + + + 73 + 19 * - 9 * - - ( COUNT( * ) ) THEN - 81 ELSE + 37 * + CAST( 92 AS SIGNED ) END
----
3404

skipif mysql # not compatible
query I rowsort label-6445
SELECT CASE + 72 WHEN 51 + + + 73 + 19 * - 9 * - - ( COUNT ( * ) ) THEN - 81 ELSE + 37 * + CAST ( 92 AS INTEGER ) END
----
3404

onlyif mysql # DIV for integer division: 
query I rowsort label-6446
SELECT 0 DIV - - 69 + - - 62 + - 49 DIV - 50 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6446
SELECT 0 / - - 69 + - - 62 + - 49 / - 50 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT NULLIF ( 70, - MIN( ALL + 55 ) * + 83 / + + 14 + - 54 + + 88 )
----
70

skipif mysql # not compatible
query I rowsort label-6447
SELECT NULLIF ( 70, - MIN ( ALL + 55 ) * + 83 / + + 14 + - 54 + + 88 )
----
70

query I rowsort
SELECT COALESCE ( + 38, - + 59 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT ALL - COUNT( * ) * + 99 + - 18
----
-117

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL - COUNT ( * ) * + 99 + - 18
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6450
SELECT ALL + 50 * - - ( + 64 ) + + 49 + 60 AS col0, 15 * + NULLIF ( 69, + ( + CAST( NULL AS SIGNED ) ) * + - 48 )
----
3309
1035

skipif mysql # not compatible
query II rowsort label-6450
SELECT ALL + 50 * - - ( + 64 ) + + 49 + 60 AS col0, 15 * + NULLIF ( 69, + ( + CAST ( NULL AS INTEGER ) ) * + - 48 )
----
3309
1035

query I rowsort
SELECT - 80 * - 47 AS col0
----
3760

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT ALL + 73 * + 80 * - 20 * 97 + - 91 DIV + - 4
----
-11329578

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL + 73 * + 80 * - 20 * 97 + - 91 / + - 4
----
-11329578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6453
SELECT - CASE - 30 WHEN + 27 + 57 * + 14 THEN NULL WHEN - 3 THEN + 18 + - 73 - + 16 WHEN - 61 THEN - MIN( ALL CAST( NULL AS SIGNED ) ) + - 33 ELSE NULL END * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-6453
SELECT - CASE - 30 WHEN + 27 + 57 * + 14 THEN NULL WHEN - 3 THEN + 18 + - 73 - + 16 WHEN - 61 THEN - MIN ( ALL CAST ( NULL AS INTEGER ) ) + - 33 ELSE NULL END * + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT + ( + 91 ) + + 22 - 78 * + COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6454
SELECT + ( + 91 ) + + 22 - 78 * + COUNT ( * ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-6455
SELECT + 26 * 89 AS col0, + COUNT( * )
----
2314
1

skipif mysql # not compatible
query II rowsort label-6455
SELECT + 26 * 89 AS col0, + COUNT ( * )
----
2314
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6456
SELECT ALL ( + 87 ) AS col1, 47 DIV + NULLIF ( + + ( - 18 ), 65 * + 27 )
----
87
-2

skipif mysql # not compatible
query II rowsort label-6456
SELECT ALL ( + 87 ) AS col1, 47 / + NULLIF ( + + ( - 18 ), 65 * + 27 )
----
87
-2

query II rowsort
SELECT DISTINCT ( 27 ), 66 AS col0
----
27
66

query I rowsort
SELECT DISTINCT - NULLIF ( - - 75, + ( 10 ) )
----
-75

query I rowsort
SELECT DISTINCT 88 * - 28 * + 88 AS col1
----
-216832

query I rowsort
SELECT DISTINCT + 0 - + - 30
----
30

query II rowsort
SELECT + + 89 * - 97 AS col2, 83 * + 74 * 91 AS col1
----
-8633
558922

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6463
SELECT ALL + COUNT( * ) * + CAST( - 87 AS SIGNED ) AS col1, - 19 AS col1
----
-87
-19

skipif mysql # not compatible
query II rowsort label-6463
SELECT ALL + COUNT ( * ) * + CAST ( - 87 AS INTEGER ) AS col1, - 19 AS col1
----
-87
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT ALL MIN( ALL + + 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL MIN ( ALL + + 99 ) AS col1
----
99

query I rowsort
SELECT + 70 * + 24 * + 98
----
164640

onlyif mysql # DIV for integer division: 
query I rowsort label-6466
SELECT ALL - 51 DIV + + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL - 51 / + + 94 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6467
SELECT + - COUNT( * ) DIV - + 60 + - + ( - - 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-6467
SELECT + - COUNT ( * ) / - + 60 + - + ( - - 70 ) AS col2
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-6468
SELECT DISTINCT 18 DIV 23
----
0

skipif mysql # not compatible
query I rowsort label-6468
SELECT DISTINCT 18 / 23
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6469
SELECT + CAST( NULL AS SIGNED ) col2, - 76 * 46 + - - 13 * + CASE - 58 WHEN + 53 + + 47 / 70 THEN 48 * - 98 ELSE - - 99 + + 61 END + + 21 AS col0
----
NULL
-1395

skipif mysql # not compatible
query II rowsort label-6469
SELECT + CAST ( NULL AS INTEGER ) col2, - 76 * 46 + - - 13 * + CASE - 58 WHEN + 53 + + 47 / 70 THEN 48 * - 98 ELSE - - 99 + + 61 END + + 21 AS col0
----
NULL
-1395

onlyif mysql # DIV for integer division: 
query I rowsort label-6470
SELECT + 46 DIV 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6470
SELECT + 46 / 91 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT + MAX( ALL + 21 ) * 98 + - + COUNT( - - 2 ) col0
----
2057

skipif mysql # not compatible
query I rowsort label-6471
SELECT + MAX ( ALL + 21 ) * 98 + - + COUNT ( - - 2 ) col0
----
2057

onlyif mysql # DIV for integer division: 
query I rowsort label-6472
SELECT ALL ( + - 63 ) DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL ( + - 63 ) / 79
----
0

query I rowsort
SELECT + 34 * ( ( - + 7 ) )
----
-238

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

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL - 56 / - - 39 + + + COUNT ( * )
----
0

query I rowsort
SELECT + 28 - - 25
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6476
SELECT ALL + 6 DIV + 54 + + 32
----
32

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL + 6 / + 54 + + 32
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6477
SELECT + 4 - NULLIF ( - 96, - 65 ) + + 76 - + SUM( ALL + CAST( 87 AS SIGNED ) )
----
89

skipif mysql # not compatible
query I rowsort label-6477
SELECT + 4 - NULLIF ( - 96, - 65 ) + + 76 - + SUM ( ALL + CAST ( 87 AS INTEGER ) )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6478
SELECT ALL + 96 * - - SUM( ALL + 55 ) * - COUNT( * ) * + 80 + + + 80 + SUM( - CAST( + 9 AS SIGNED ) ) * - 72
----
-421672

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL + 96 * - - SUM ( ALL + 55 ) * - COUNT ( * ) * + 80 + + + 80 + SUM ( - CAST ( + 9 AS INTEGER ) ) * - 72
----
-421672

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6480
SELECT DISTINCT - 62 / + 1 * - COUNT( * ) + + 39 + 86 + 40 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT - 62 / + 1 * - COUNT ( * ) + + 39 + 86 + 40 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL + 11 AS col2, 47 AS col0
----
11
47

query II rowsort
SELECT + 13, 73 * + 28 AS col1
----
13
2044

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT DISTINCT 10 * + COUNT( * ) * CASE + - 18 WHEN CASE WHEN NOT NULL IN ( - SUM( - + 76 ) ) THEN + 14 ELSE NULL END THEN NULL ELSE + 86 * + 66 END + COUNT( + 23 ) * - 7 AS col2
----
56753

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT 10 * + COUNT ( * ) * CASE + - 18 WHEN CASE WHEN NOT NULL IN ( - SUM ( - + 76 ) ) THEN + 14 ELSE NULL END THEN NULL ELSE + 86 * + 66 END + COUNT ( + 23 ) * - 7 AS col2
----
56753

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

query I rowsort
SELECT 6 * + 77 + - - NULLIF ( - 73, - 68 ) AS col0
----
389

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT DISTINCT + NULLIF ( - + ( + + CASE COALESCE ( + - 81, - 54, 30 + COUNT( DISTINCT + 10 ) ) WHEN CASE + COUNT( * ) WHEN + 73 THEN - 82 + - 81 + COUNT( * ) END * - COUNT( + 51 ) - 29 + - 77 + + + ( + 2 ) * 74 + + + 64 - 96 + 87 + - 56 / + 68 / SUM( - 48 ) + 20 * 47 THEN - MAX( - 33 ) WHEN + 62 - 21 THEN - 25 + + 40 ELSE 25 * - COUNT( + 38 * + 56 ) + - 46 * - NULLIF ( 2, 44 ) END ), 40 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT + NULLIF ( - + ( + + CASE COALESCE ( + - 81, - 54, 30 + COUNT ( DISTINCT + 10 ) ) WHEN CASE + COUNT ( * ) WHEN + 73 THEN - 82 + - 81 + COUNT ( * ) END * - COUNT ( + 51 ) - 29 + - 77 + + + ( + 2 ) * 74 + + + 64 - 96 + 87 + - 56 / + 68 / SUM ( - 48 ) + 20 * 47 THEN - MAX ( - 33 ) WHEN + 62 - 21 THEN - 25 + + 40 ELSE 25 * - COUNT ( + 38 * + 56 ) + - 46 * - NULLIF ( 2, 44 ) END ), 40 ) AS col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6487
SELECT - 91 * 62 + + ( + + COALESCE ( + + 14, - + 51 DIV COUNT( + 20 ) - + 47, 53 ) ) - 7 * + 2 - - + SUM( DISTINCT 83 ) + COUNT( * ) AS col0
----
-5558

skipif mysql # not compatible
query I rowsort label-6487
SELECT - 91 * 62 + + ( + + COALESCE ( + + 14, - + 51 / COUNT ( + 20 ) - + 47, 53 ) ) - 7 * + 2 - - + SUM ( DISTINCT 83 ) + COUNT ( * ) AS col0
----
-5558

onlyif mysql # aggregate syntax: 
query II rowsort label-6488
SELECT ALL - NULLIF ( COUNT( * ), - 71 ) AS col1, 39 * 67 AS col1
----
-1
2613

skipif mysql # not compatible
query II rowsort label-6488
SELECT ALL - NULLIF ( COUNT ( * ), - 71 ) AS col1, 39 * 67 AS col1
----
-1
2613

query I rowsort
SELECT ALL - 6 - - 32
----
26

query I rowsort
SELECT ALL + COALESCE ( + - 41, + - 43 ) AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6491
SELECT ALL + - COUNT( * ) * + CASE - - 30 WHEN + - 42 * 82 * + 46 + + ( + + 72 ) DIV 21 THEN NULL ELSE ( + CAST( - + 72 AS SIGNED ) ) END DIV COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL + - COUNT ( * ) * + CASE - - 30 WHEN + - 42 * 82 * + 46 + + ( + + 72 ) / 21 THEN NULL ELSE ( + CAST ( - + 72 AS INTEGER ) ) END / COUNT ( * ) AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6492
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) DIV COALESCE ( - 92, - 46, + ( + + CASE + 83 WHEN - 6 - - - 17 THEN - + 33 END ) + - CAST( NULL AS SIGNED ) + + + COUNT( * ) + - - 57 * - + COUNT( * ) * 41 + - 14 )
----
0

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) / COALESCE ( - 92, - 46, + ( + + CASE + 83 WHEN - 6 - - - 17 THEN - + 33 END ) + - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + - - 57 * - + COUNT ( * ) * 41 + - 14 )
----
0

query I rowsort
SELECT ALL - ( - 76 ) * 24 AS col1
----
1824

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT DISTINCT - + MIN( - 22 ) * - + SUM( DISTINCT - 29 )
----
638

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT - + MIN ( - 22 ) * - + SUM ( DISTINCT - 29 )
----
638

query I rowsort
SELECT 14 + + 27 col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT COALESCE ( COUNT( * ), + 34, - COALESCE ( + 91, + 14 ) + - + 96 * 29 + 99 * - 18 + - 49 * + - NULLIF ( - - 53, - 70 ) * - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-6497
SELECT COALESCE ( COUNT ( * ), + 34, - COALESCE ( + 91, + 14 ) + - + 96 * 29 + 99 * - 18 + - 49 * + - NULLIF ( - - 53, - 70 ) * - 58 )
----
1

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

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

query I rowsort
SELECT + ( + ( - - 29 ) ) + + 50 * 76 + - - 61
----
3890

query II rowsort
SELECT DISTINCT 77, 23 AS col0
----
77
23

query I rowsort
SELECT ALL + + 41 * - - 58 col1
----
2378

query I rowsort
SELECT + 40 + - + CASE + 76 WHEN - + 97 THEN - - 69 END + + - 19 / + - 96 * 9 - - + 94 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6503
SELECT DISTINCT 38, 86 - 65 * 55 DIV + + 60 DIV - COUNT( * ) AS col1
----
38
145

skipif mysql # not compatible
query II rowsort label-6503
SELECT DISTINCT 38, 86 - 65 * 55 / + + 60 / - COUNT ( * ) AS col1
----
38
145

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT CASE + 68 WHEN - MIN( ALL + 98 ) + 60 + ( - COUNT( * ) ) THEN NULL ELSE 71 END + + - 65 + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-6504
SELECT CASE + 68 WHEN - MIN ( ALL + 98 ) + 60 + ( - COUNT ( * ) ) THEN NULL ELSE 71 END + + - 65 + COUNT ( * )
----
7

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

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

query I rowsort
SELECT 62 + 57 AS col1
----
119

query I rowsort
SELECT 6 - + 62 + 82
----
26

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

skipif mysql # not compatible
query II rowsort label-6508
SELECT COUNT ( * ) * COUNT ( * ) col2, + 10 col2
----
1
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6509
SELECT ( - - 12 ) + - CAST( ( + 49 ) AS DECIMAL ) * - 94 * - - CASE + 52 WHEN + + 71 THEN - 61 WHEN - + SUM( DISTINCT + 40 ) * + + 10 * - CASE CAST( NULL AS SIGNED ) WHEN 88 + - 83 THEN NULL WHEN - - ( - MIN( ALL + 35 ) ) THEN NULL WHEN 25 - CASE + + AVG ( ALL + - 43 ) WHEN + + 39 THEN NULL ELSE - 80 * + 32 / - 72 + - 63 END THEN 87 END / 31 THEN 86 ELSE NULL END * 77 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6509
SELECT ( - - 12 ) + - CAST ( ( + 49 ) AS REAL ) * - 94 * - - CASE + 52 WHEN + + 71 THEN - 61 WHEN - + SUM ( DISTINCT + 40 ) * + + 10 * - CASE CAST ( NULL AS INTEGER ) WHEN 88 + - 83 THEN NULL WHEN - - ( - MIN ( ALL + 35 ) ) THEN NULL WHEN 25 - CASE + + AVG ( ALL + - 43 ) WHEN + + 39 THEN NULL ELSE - 80 * + 32 / - 72 + - 63 END THEN 87 END / 31 THEN 86 ELSE NULL END * 77 col1
----
NULL

query II rowsort
SELECT 0 * - ( - 72 ) + - 97 AS col1, 38 * - + 68
----
-97
-2584

query I rowsort
SELECT DISTINCT - 91 + + 32 + 3 + + + 60 AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6512
SELECT DISTINCT 51 DIV ( - - NULLIF ( + COALESCE ( + - CASE - 1 WHEN 63 THEN + - 46 WHEN + COUNT( * ) * + 14 + - 69 THEN NULL ELSE + - 30 * + COUNT( * ) + 28 + - 89 END, - CAST( NULL AS SIGNED ) ), + 72 * + 53 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT 51 / ( - - NULLIF ( + COALESCE ( + - CASE - 1 WHEN 63 THEN + - 46 WHEN + COUNT ( * ) * + 14 + - 69 THEN NULL ELSE + - 30 * + COUNT ( * ) + 28 + - 89 END, - CAST ( NULL AS INTEGER ) ), + 72 * + 53 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT ALL 68 + - MIN( - 30 ) col0
----
98

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL 68 + - MIN ( - 30 ) col0
----
98

query I rowsort
SELECT 56 * - 32
----
-1792

query I rowsort
SELECT + 25 * - 40 + - 93 AS col1
----
-1093

query I rowsort
SELECT 75 + - 82 col1
----
-7

query II rowsort
SELECT 46 * + 13 AS col2, 33 AS col0
----
598
33

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

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

query I rowsort
SELECT ( + - 2 ) * + + 10 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6520
SELECT DISTINCT + 56 - - + COUNT( * ) col2, NULLIF ( 89, 29 ) + + COUNT( * ) AS col2
----
57
90

skipif mysql # not compatible
query II rowsort label-6520
SELECT DISTINCT + 56 - - + COUNT ( * ) col2, NULLIF ( 89, 29 ) + + COUNT ( * ) AS col2
----
57
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6521
SELECT 66 * - NULLIF ( - 69, 78 ) + - - COUNT( * ) * + 44 DIV + 93 * 89 + + 39 + + 48 AS col2
----
4641

skipif mysql # not compatible
query I rowsort label-6521
SELECT 66 * - NULLIF ( - 69, 78 ) + - - COUNT ( * ) * + 44 / + 93 * 89 + + 39 + + 48 AS col2
----
4641

query I rowsort
SELECT ALL + 33 * - - 86 AS col2
----
2838

query I rowsort
SELECT 82 * + + 91 - - 73
----
7535

query I rowsort
SELECT + 58 + - ( - 29 ) * - 85 col1
----
-2407

query I rowsort
SELECT ALL - CASE + 72 WHEN - 86 THEN NULL WHEN 82 THEN - + 50 ELSE + - 98 * + 83 END
----
8134

query I rowsort
SELECT ALL NULLIF ( 43, 3 )
----
43

query I rowsort
SELECT 59 + - 86
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT - COALESCE ( COALESCE ( COUNT( * ), 5 ), - 16, + 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-6528
SELECT - COALESCE ( COALESCE ( COUNT ( * ), 5 ), - 16, + 34 )
----
-1

query I rowsort
SELECT DISTINCT 90 + + + 28
----
118

query I rowsort
SELECT ( - 42 ) - 26
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-6531
SELECT DISTINCT 3 DIV + + NULLIF ( + 18, - 92 ) - + 73
----
-73

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT 3 / + + NULLIF ( + 18, - 92 ) - + 73
----
-73

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

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT - 68 + + - COUNT ( * ) AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6533
SELECT ALL - - 26 DIV 5 + + COUNT( * ) * + 13 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL - - 26 / 5 + + COUNT ( * ) * + 13 AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6534
SELECT 98 DIV - + MAX( ALL + 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-6534
SELECT 98 / - + MAX ( ALL + 52 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT ALL - + SUM( 14 ) + 85 - + + 80
----
-9

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL - + SUM ( 14 ) + 85 - + + 80
----
-9

query II rowsort
SELECT DISTINCT - 23 * + 13 * - 84 - + 7 AS col1, - 4
----
25109
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT + MIN( ALL + 68 ) + - + 25 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-6537
SELECT + MIN ( ALL + 68 ) + - + 25 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT ALL - - NULLIF ( + 38, - + 55 * + COUNT( 47 ) ) * 92 * 5
----
17480

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL - - NULLIF ( + 38, - + 55 * + COUNT ( 47 ) ) * 92 * 5
----
17480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6539
SELECT ALL + 5 + - + CASE - 12 WHEN + + 32 THEN + - 66 WHEN - + 5 * - + 68 + + 94 + + MAX( ALL 90 ) + - ( - COUNT( * ) ) THEN NULL ELSE + - NULLIF ( + 60, + 39 * + + 30 ) END + - COUNT( * ) DIV 16 * - + 92 + - MAX( DISTINCT 20 ) + - + 5 * - COUNT( * ) * + 90 * - - 46 * - 12, - COUNT( * ) * + 94 + CAST( ( 86 ) AS SIGNED ) * 36 AS col0
----
-248355
3002

skipif mysql # not compatible
query II rowsort label-6539
SELECT ALL + 5 + - + CASE - 12 WHEN + + 32 THEN + - 66 WHEN - + 5 * - + 68 + + 94 + + MAX ( ALL 90 ) + - ( - COUNT ( * ) ) THEN NULL ELSE + - NULLIF ( + 60, + 39 * + + 30 ) END + - COUNT ( * ) / 16 * - + 92 + - MAX ( DISTINCT 20 ) + - + 5 * - COUNT ( * ) * + 90 * - - 46 * - 12, - COUNT ( * ) * + 94 + CAST ( ( 86 ) AS INTEGER ) * 36 AS col0
----
-248355
3002

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6540
SELECT 20 AS col2, NULLIF ( 75, - COUNT( * ) - NULLIF ( - 95, AVG ( DISTINCT - 4 ) * - 19 ) ) DIV - - 86
----
20
0

skipif mysql # not compatible
query II rowsort label-6540
SELECT 20 AS col2, NULLIF ( 75, - COUNT ( * ) - NULLIF ( - 95, AVG ( DISTINCT - 4 ) * - 19 ) ) / - - 86
----
20
0

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

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

query II rowsort
SELECT ALL 97, 97
----
97
97

query I rowsort
SELECT DISTINCT 34 + - 86
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT DISTINCT - MIN( DISTINCT - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT - MIN ( DISTINCT - 27 )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6545
SELECT - 33 * + - ( + - 13 ) + 26 DIV + - 45 + + 27
----
-402

skipif mysql # not compatible
query I rowsort label-6545
SELECT - 33 * + - ( + - 13 ) + 26 / + - 45 + + 27
----
-402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6546
SELECT 42 * 25 + + + 92 - COUNT( * ) / + 72 / 28 * - ( ( + CAST( NULL AS SIGNED ) ) ) / 33 * - + NULLIF ( + 36, - + 73 * + 34 * + 53 + + COUNT( * ) ) - - + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6546
SELECT 42 * 25 + + + 92 - COUNT ( * ) / + 72 / 28 * - ( ( + CAST ( NULL AS INTEGER ) ) ) / 33 * - + NULLIF ( + 36, - + 73 * + 34 * + 53 + + COUNT ( * ) ) - - + 90
----
NULL

query I rowsort
SELECT 37 * - - 28
----
1036

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT ALL 70 * + 96 - COUNT( * ) + 6 * + COUNT( * ) * + 80
----
7199

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL 70 * + 96 - COUNT ( * ) + 6 * + COUNT ( * ) * + 80
----
7199

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT SUM( ALL - - 91 ) col1
----
91

skipif mysql # not compatible
query I rowsort label-6549
SELECT SUM ( ALL - - 91 ) col1
----
91

query I rowsort
SELECT ALL 9 * 47 AS col1
----
423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6551
SELECT - 15 - 20 + - 15 * + - SUM( + 55 ) + - 60 + + CASE COUNT( * ) WHEN 17 + 79 THEN + + 77 WHEN + 73 THEN 74 * 0 + + 11 + 82 + - 24 + CAST( NULL AS SIGNED ) / + 45 + - 92 - - 3 - MAX( - 37 ) * + MAX( 69 ) END / - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6551
SELECT - 15 - 20 + - 15 * + - SUM ( + 55 ) + - 60 + + CASE COUNT ( * ) WHEN 17 + 79 THEN + + 77 WHEN + 73 THEN 74 * 0 + + 11 + 82 + - 24 + CAST ( NULL AS INTEGER ) / + 45 + - 92 - - 3 - MAX ( - 37 ) * + MAX ( 69 ) END / - 33
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT DISTINCT - MAX( ALL + 72 ) * MIN( DISTINCT - 12 ) AS col2
----
864

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT - MAX ( ALL + 72 ) * MIN ( DISTINCT - 12 ) AS col2
----
864

query I rowsort
SELECT ALL - 43 * 55 * 69
----
-163185

query I rowsort
SELECT + 84 * - 45 AS col1
----
-3780

onlyif mysql # DIV for integer division: 
query I rowsort label-6556
SELECT DISTINCT + 40 DIV 55 * - 33 * + ( + 85 ) + 90
----
90

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT + 40 / 55 * - 33 * + ( + 85 ) + 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT - 50 + - ( + + 99 ) * - COUNT( * ) + 15 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-6557
SELECT - 50 + - ( + + 99 ) * - COUNT ( * ) + 15 AS col2
----
64

query I rowsort
SELECT + 20 * - 96 AS col0
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT - 70 * COUNT( * ) + + + 40 * - 23
----
-990

skipif mysql # not compatible
query I rowsort label-6559
SELECT - 70 * COUNT ( * ) + + + 40 * - 23
----
-990

query I rowsort
SELECT + + 1 - + 67 * - 25 AS col1
----
1676

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6561
SELECT + + MIN( 3 ) DIV COUNT( * ) * + 93 * 32
----
8928

skipif mysql # not compatible
query I rowsort label-6561
SELECT + + MIN ( 3 ) / COUNT ( * ) * + 93 * 32
----
8928

query II rowsort
SELECT + + 10 * 94 + + 75 AS col0, - 52 AS col1
----
1015
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-6563
SELECT ALL + + 30, 86 + COUNT( * ) AS col0
----
30
87

skipif mysql # not compatible
query II rowsort label-6563
SELECT ALL + + 30, 86 + COUNT ( * ) AS col0
----
30
87

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

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

query I rowsort
SELECT DISTINCT - 77 + - 62 AS col1
----
-139

query I rowsort
SELECT + 22 * - 17
----
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT DISTINCT - 27 * + MIN( DISTINCT 78 ) * - 67
----
141102

skipif mysql # not compatible
query I rowsort label-6567
SELECT DISTINCT - 27 * + MIN ( DISTINCT 78 ) * - 67
----
141102

query II rowsort
SELECT - 67 AS col2, NULLIF ( + 44, + 28 ) * 80
----
-67
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT + - 89 + + 29 + + COALESCE ( COUNT( * ), 85 + - - 22 - - + 49 + + 2 + - 67 ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-6569
SELECT + - 89 + + 29 + + COALESCE ( COUNT ( * ), 85 + - - 22 - - + 49 + + 2 + - 67 ) col2
----
-59

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

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

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

skipif mysql # not compatible
query I rowsort label-6571
SELECT SUM ( DISTINCT - 84 )
----
-84

query I rowsort
SELECT ALL CASE - 64 WHEN 35 THEN NULL ELSE + 29 END AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6573
SELECT DISTINCT + CASE - 30 WHEN + COALESCE ( + 19, - COUNT( * ) / - CAST( NULL AS DECIMAL ) ) THEN - + 7 END + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT + CASE - 30 WHEN + COALESCE ( + 19, - COUNT ( * ) / - CAST ( NULL AS REAL ) ) THEN - + 7 END + + 48
----
NULL

query II rowsort
SELECT 92 AS col2, - 99 * 8
----
92
-792

query I rowsort
SELECT + 5 + + 86
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6576
SELECT ALL - 46 * CAST( NULL AS SIGNED ) * - ( 98 ) * - + 73 * - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL - 46 * CAST ( NULL AS INTEGER ) * - ( 98 ) * - + 73 * - 67 AS col1
----
NULL

query I rowsort
SELECT - 81 + 17
----
-64

query I rowsort
SELECT ALL - 37 - - 40 + + + 51 AS col0
----
54

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

skipif mysql # not compatible
query I rowsort label-6579
SELECT DISTINCT COUNT ( * ) / + + 37
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6580
SELECT + 69 + + 5 - - CAST( - 24 AS SIGNED ) * - 99 AS col0
----
2450

skipif mysql # not compatible
query I rowsort label-6580
SELECT + 69 + + 5 - - CAST ( - 24 AS INTEGER ) * - 99 AS col0
----
2450

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

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

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

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

query I rowsort
SELECT + 45 + + - 52
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6584
SELECT - SUM( DISTINCT + 54 ) + 76 * + 74 * + 47 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6584
SELECT - SUM ( DISTINCT + 54 ) + 76 * + 74 * + 47 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL - 74 * - + MIN( - 33 )
----
-2442

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL - 74 * - + MIN ( - 33 )
----
-2442

query I rowsort
SELECT - 39 * 58
----
-2262

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT - COUNT( DISTINCT - - 41 ) * + - 74
----
74

skipif mysql # not compatible
query I rowsort label-6587
SELECT - COUNT ( DISTINCT - - 41 ) * + - 74
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6588
SELECT + 91 * - + 62 + + CASE 54 WHEN - + 47 THEN 64 * - + AVG ( DISTINCT - - CAST( 18 AS SIGNED ) ) + AVG ( - 54 ) + - + 68 + - 80 * + + 22 + - 68 + + 20 * - CASE 73 WHEN + 88 THEN 16 WHEN 82 THEN 90 ELSE - 77 * 46 END * - 36 * + - 68 - - 1 + CASE - + ( - 15 ) WHEN 38 + + MIN( DISTINCT + 53 ) THEN AVG ( ALL - 9 ) + - 34 ELSE NULL END / COALESCE ( - 5 - 97, + 97 / + 26, 23 ) ELSE NULL END * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6588
SELECT + 91 * - + 62 + + CASE 54 WHEN - + 47 THEN 64 * - + AVG ( DISTINCT - - CAST ( 18 AS INTEGER ) ) + AVG ( - 54 ) + - + 68 + - 80 * + + 22 + - 68 + + 20 * - CASE 73 WHEN + 88 THEN 16 WHEN 82 THEN 90 ELSE - 77 * 46 END * - 36 * + - 68 - - 1 + CASE - + ( - 15 ) WHEN 38 + + MIN ( DISTINCT + 53 ) THEN AVG ( ALL - 9 ) + - 34 ELSE NULL END / COALESCE ( - 5 - 97, + 97 / + 26, 23 ) ELSE NULL END * 8
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6589
SELECT + 16 DIV - - 84 + 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-6589
SELECT + 16 / - - 84 + 13 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6590
SELECT - 91 + 58 + 50 - + + COUNT( DISTINCT - 95 ) DIV - 27, - 76 * AVG ( + - CAST( NULL AS SIGNED ) ) AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-6590
SELECT - 91 + 58 + 50 - + + COUNT ( DISTINCT - 95 ) / - 27, - 76 * AVG ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
17
NULL

query I rowsort
SELECT ALL - 75 * 85
----
-6375

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT ALL + COALESCE ( + + 11, ( MIN( + 70 ) ) + - ( + + 5 ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL + COALESCE ( + + 11, ( MIN ( + 70 ) ) + - ( + + 5 ) ) AS col1
----
11

query II rowsort
SELECT + 29 AS col1, 46
----
29
46

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6595
SELECT DISTINCT + 61 col2, CAST( NULL AS DECIMAL ) AS col0
----
61
NULL

skipif mysql # not compatible
query II rowsort label-6595
SELECT DISTINCT + 61 col2, CAST ( NULL AS REAL ) AS col0
----
61
NULL

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

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

query I rowsort
SELECT + + 56 + + 84
----
140

query II rowsort
SELECT ALL - - 26 * 52 AS col1, 38 AS col1
----
1352
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT ALL COUNT( * ) * - + 90 + 9 + + 75 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL COUNT ( * ) * - + 90 + 9 + + 75 AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6601
SELECT DISTINCT + COALESCE ( + + 71, - 79 ) * - COUNT( * ) + 87 - 21 * + CAST( NULL AS SIGNED ) * - 8 * + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT + COALESCE ( + + 71, - 79 ) * - COUNT ( * ) + 87 - 21 * + CAST ( NULL AS INTEGER ) * - 8 * + + 41
----
NULL

query I rowsort
SELECT - - 92 * + 81 + + 45 AS col0
----
7497

onlyif mysql # DIV for integer division: 
query I rowsort label-6603
SELECT COALESCE ( 92, + 8 + + + 36 DIV + + 0 + + 99 )
----
92

skipif mysql # not compatible
query I rowsort label-6603
SELECT COALESCE ( 92, + 8 + + + 36 / + + 0 + + 99 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT ALL + MIN( - 69 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL + MIN ( - 69 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT CASE - COUNT( * ) WHEN 68 THEN + 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT CASE - COUNT ( * ) WHEN 68 THEN + 56 END
----
NULL

query I rowsort
SELECT ALL + + 70 * + 36 + 96 + + + 67 + - 64 * 47 + + 17 AS col1
----
-308

onlyif mysql # DIV for integer division: 
query II rowsort label-6607
SELECT + 7, + 44 DIV - 95 * + - ( - 30 ) AS col1
----
7
0

skipif mysql # not compatible
query II rowsort label-6607
SELECT + 7, + 44 / - 95 * + - ( - 30 ) AS col1
----
7
0

query II rowsort
SELECT + 51 * - ( 67 ) - 39 AS col2, - 51 AS col2
----
-3456
-51

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

query I rowsort
SELECT DISTINCT + 48 * + 22 + + - 11
----
1045

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT ALL - 41 * + 12 * - MIN( - 0 ) * - 15 + + 47 + - + 78 + - 20
----
-51

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL - 41 * + 12 * - MIN ( - 0 ) * - 15 + + 47 + - + 78 + - 20
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6612
SELECT + 70 + + COUNT( * ) - 82 DIV - + COUNT( - 88 ) - - - 15 * - 75 * COUNT( * ) + 2 AS col0
----
1280

skipif mysql # not compatible
query I rowsort label-6612
SELECT + 70 + + COUNT ( * ) - 82 / - + COUNT ( - 88 ) - - - 15 * - 75 * COUNT ( * ) + 2 AS col0
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT DISTINCT + - CASE WHEN NOT + 36 <= + + ( - - ( + 47 ) ) * + - 75 * - 17 - + 17 THEN NULL ELSE + 87 END * - 32 * - 59 + 19 * - 27 + 76 * + + 30 * 80 * 87 + - COUNT( * ) AS col1
----
15704030

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT + - CASE WHEN NOT + 36 <= + + ( - - ( + 47 ) ) * + - 75 * - 17 - + 17 THEN NULL ELSE + 87 END * - 32 * - 59 + 19 * - 27 + 76 * + + 30 * 80 * 87 + - COUNT ( * ) AS col1
----
15704030

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT ALL COUNT( 58 ) * + + SUM( DISTINCT NULLIF ( 94, - - 66 + - 80 * + 86 ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL COUNT ( 58 ) * + + SUM ( DISTINCT NULLIF ( 94, - - 66 + - 80 * + 86 ) ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6615
SELECT - CAST( - 45 AS SIGNED ) AS col0, 75 / + 40 + CASE + 12 WHEN - + COUNT( * ) - 70 + 1 - + 73 * 94 + COUNT( * ) * + + 90 / CASE + 46 WHEN + 25 * 64 * + 27 THEN + + ( + 29 ) END / + - 88 + + 38 THEN NULL WHEN - 37 + 45 * - 21 THEN + COUNT( * ) * - 5 - - - 91 + - - 17 + 18 END AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-6615
SELECT - CAST ( - 45 AS INTEGER ) AS col0, 75 / + 40 + CASE + 12 WHEN - + COUNT ( * ) - 70 + 1 - + 73 * 94 + COUNT ( * ) * + + 90 / CASE + 46 WHEN + 25 * 64 * + 27 THEN + + ( + 29 ) END / + - 88 + + 38 THEN NULL WHEN - 37 + 45 * - 21 THEN + COUNT ( * ) * - 5 - - - 91 + - - 17 + 18 END AS col2
----
45
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6616
SELECT ALL 93 - + SUM( - 86 ) + + COALESCE ( 53, + + ( + 35 ) * - - 66 DIV - COALESCE ( + 20, - COUNT( * ), - 94 ) + - 25, 31 ) + + 0 AS col1, 65
----
232
65

skipif mysql # not compatible
query II rowsort label-6616
SELECT ALL 93 - + SUM ( - 86 ) + + COALESCE ( 53, + + ( + 35 ) * - - 66 / - COALESCE ( + 20, - COUNT ( * ), - 94 ) + - 25, 31 ) + + 0 AS col1, 65
----
232
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT COUNT( * ) - + 73 + + 98 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-6618
SELECT COUNT ( * ) - + 73 + + 98 AS col0
----
26

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

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

query I rowsort
SELECT DISTINCT + 97 * 33
----
3201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6621
SELECT DISTINCT + 89 * CAST( NULL AS SIGNED ), 27 + 45 * CASE 10 WHEN 76 / 55 * - - 12 + - COUNT( * ) * + 14 * 28 THEN + + 23 + MAX( + 63 ) END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6621
SELECT DISTINCT + 89 * CAST ( NULL AS INTEGER ), 27 + 45 * CASE 10 WHEN 76 / 55 * - - 12 + - COUNT ( * ) * + 14 * 28 THEN + + 23 + MAX ( + 63 ) END
----
NULL
NULL

query I rowsort
SELECT 85 * + 85
----
7225

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6623
SELECT ALL 50 DIV + ( + - 65 ) * CAST( 17 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL 50 / + ( + - 65 ) * CAST ( 17 AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT ALL - 52 + + 56 + + - 17 + - CAST( NULL AS SIGNED ) + + + 27 / - 71 * + ( 67 ) * + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL - 52 + + 56 + + - 17 + - CAST ( NULL AS INTEGER ) + + + 27 / - 71 * + ( 67 ) * + - 94
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6625
SELECT 16 DIV + 68 * - 11 + ( + 9 ), - 16 AS col1
----
9
-16

skipif mysql # not compatible
query II rowsort label-6625
SELECT 16 / + 68 * - 11 + ( + 9 ), - 16 AS col1
----
9
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT 47 * 23 - - SUM( ALL - - 49 ) AS col2
----
1130

skipif mysql # not compatible
query I rowsort label-6626
SELECT 47 * 23 - - SUM ( ALL - - 49 ) AS col2
----
1130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6627
SELECT ALL + CAST( + ( + 89 ) AS SIGNED ) + - 67 * + ( - 7 ) col1
----
558

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL + CAST ( + ( + 89 ) AS INTEGER ) + - 67 * + ( - 7 ) col1
----
558

query I rowsort
SELECT DISTINCT - ( + - 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT DISTINCT + - ( COUNT( - - 27 ) ) + + 87 * 16 * 17 + + - 28 * ( - 51 ) AS col2
----
25091

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT + - ( COUNT ( - - 27 ) ) + + 87 * 16 * 17 + + - 28 * ( - 51 ) AS col2
----
25091

query I rowsort
SELECT ALL + 30 + - 88
----
-58

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

skipif mysql # not compatible
query I rowsort label-6631
SELECT - 3 * - 44 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ALL + COUNT( * ) + - 6 * + MAX( ALL - 88 )
----
529

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL + COUNT ( * ) + - 6 * + MAX ( ALL - 88 )
----
529

query I rowsort
SELECT - ( + + 37 ) * - - 84 AS col0
----
-3108

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

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

query I rowsort
SELECT + + 73 * 62 + + ( + 92 )
----
4618

query I rowsort
SELECT 96 - + 62
----
34

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

skipif mysql # not compatible
query I rowsort label-6637
SELECT - 27 * - 30 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 3 + - 98
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6639
SELECT DISTINCT + NULLIF ( 93, + + COUNT( * ) * + COUNT( * ) ) DIV + 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT + NULLIF ( 93, + + COUNT ( * ) * + COUNT ( * ) ) / + 48 AS col1
----
1

query I rowsort
SELECT DISTINCT - - CASE - 18 WHEN + 7 THEN 24 / - ( - 68 ) WHEN 56 / - - AVG ( 14 ) THEN 95 END - + 79 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6641
SELECT ALL + 12 * COUNT( * ) DIV - - 87 + MAX( 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL + 12 * COUNT ( * ) / - - 87 + MAX ( 97 ) AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6642
SELECT DISTINCT + ( + NULLIF ( - CASE - 71 WHEN + 55 THEN ( - 90 ) + - + 63 WHEN - + CAST( - - 4 AS SIGNED ) THEN + - 65 END, + + 74 * + - 89 - - + CASE 55 WHEN + COUNT( * ) THEN 62 WHEN - - 73 THEN 3 + - 69 END + - 21 / - 57 / + COUNT( * ) ) ) * + 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT + ( + NULLIF ( - CASE - 71 WHEN + 55 THEN ( - 90 ) + - + 63 WHEN - + CAST ( - - 4 AS INTEGER ) THEN + - 65 END, + + 74 * + - 89 - - + CASE 55 WHEN + COUNT ( * ) THEN 62 WHEN - - 73 THEN 3 + - 69 END + - 21 / - 57 / + COUNT ( * ) ) ) * + 23 AS col1
----
NULL

query I rowsort
SELECT - 15 * - 98 + + 13 + + - 88 * + 59 AS col2
----
-3709

query II rowsort
SELECT - 40 AS col1, + 85 AS col0
----
-40
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6645
SELECT ALL 16 DIV 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL 16 / 47 AS col2
----
0

query I rowsort
SELECT ( 4 ) * 19
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT NULLIF ( - 4, + 98 * 36 + - ( - COUNT( * ) ) * - COUNT( * ) ) + - + COUNT( * ) * 28 * 40 AS col2
----
-1124

skipif mysql # not compatible
query I rowsort label-6647
SELECT NULLIF ( - 4, + 98 * 36 + - ( - COUNT ( * ) ) * - COUNT ( * ) ) + - + COUNT ( * ) * 28 * 40 AS col2
----
-1124

query I rowsort
SELECT 50 * - 37 col0
----
-1850

onlyif mysql # DIV for integer division: 
query I rowsort label-6649
SELECT DISTINCT - NULLIF ( + + 71, - 43 DIV - 17 + 68 ) DIV 21 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT - NULLIF ( + + 71, - 43 / - 17 + 68 ) / 21 / 96
----
0

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

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

query I rowsort
SELECT ALL 86 * + 7
----
602

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT 66 + COALESCE ( + NULLIF ( - 42, - - 13 + - 92 ), - - 69, 2 + COUNT( * ) ) * + - COUNT( * ) * - ( + 32 ) * + - 13
----
17538

skipif mysql # not compatible
query I rowsort label-6652
SELECT 66 + COALESCE ( + NULLIF ( - 42, - - 13 + - 92 ), - - 69, 2 + COUNT ( * ) ) * + - COUNT ( * ) * - ( + 32 ) * + - 13
----
17538

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

skipif mysql # not compatible
query I rowsort label-6653
SELECT 85 + + - 13 + - 30 + - + COUNT ( * ) AS col0
----
41

query I rowsort
SELECT ALL 50 + - - 96
----
146

query II rowsort
SELECT - 17 AS col0, 62 AS col2
----
-17
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6656
SELECT 91 + CAST( 35 AS SIGNED ) AS col0, COALESCE ( MAX( DISTINCT - 55 ), + - 5 ) AS col0
----
126
-55

skipif mysql # not compatible
query II rowsort label-6656
SELECT 91 + CAST ( 35 AS INTEGER ) AS col0, COALESCE ( MAX ( DISTINCT - 55 ), + - 5 ) AS col0
----
126
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT MAX( ALL 96 ) * + + 5 - - 85 AS col0
----
565

skipif mysql # not compatible
query I rowsort label-6657
SELECT MAX ( ALL 96 ) * + + 5 - - 85 AS col0
----
565

query I rowsort
SELECT ( + - ( + + 20 ) ) + 6 AS col2
----
-14

query I rowsort
SELECT ALL 44 * - 56 AS col2
----
-2464

query II rowsort
SELECT - 26 AS col0, - 35 col2
----
-26
-35

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

query I rowsort
SELECT + 66 + - ( 16 ) * + 46
----
-670

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT ALL + COUNT( * ) * + COUNT( * ) * + 41 * + 98 + - CASE 39 WHEN - 98 THEN + + COUNT( * ) END + - 8 * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * + 41 * + 98 + - CASE 39 WHEN - 98 THEN + + COUNT ( * ) END + - 8 * - 91
----
NULL

query II rowsort
SELECT 19 col1, + 80 AS col0
----
19
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6666
SELECT ALL 63 + 49 DIV + - 83 + 3 * + 52
----
219

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL 63 + 49 / + - 83 + 3 * + 52
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT DISTINCT - COUNT( * ) + - - COALESCE ( + + 3, 42 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6667
SELECT DISTINCT - COUNT ( * ) + - - COALESCE ( + + 3, 42 ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6668
SELECT 21 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6668
SELECT 21 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 85 * 52 col0
----
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT 10 + + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6670
SELECT 10 + + COUNT ( * ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT + SUM( DISTINCT + + 42 ) * + 99 + - 48 col1
----
4110

skipif mysql # not compatible
query I rowsort label-6671
SELECT + SUM ( DISTINCT + + 42 ) * + 99 + - 48 col1
----
4110

query I rowsort
SELECT DISTINCT - COALESCE ( - 71, + + 7, - 3 + + - 70 ) AS col1
----
71

query I rowsort
SELECT ALL - - 74 col2
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-6674
SELECT + 54 AS col2, - 2 DIV - 75 AS col0
----
54
0

skipif mysql # not compatible
query II rowsort label-6674
SELECT + 54 AS col2, - 2 / - 75 AS col0
----
54
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6675
SELECT - + 96 * - 29 - + - CASE + 4 WHEN - 24 THEN + 2 + + - CAST( - 79 AS SIGNED ) + COUNT( * ) + - 23 + + 39 WHEN - 62 * + 41 THEN + - 84 WHEN + - 2 + + 39 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6675
SELECT - + 96 * - 29 - + - CASE + 4 WHEN - 24 THEN + 2 + + - CAST ( - 79 AS INTEGER ) + COUNT ( * ) + - 23 + + 39 WHEN - 62 * + 41 THEN + - 84 WHEN + - 2 + + 39 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT - 32 * COUNT( * ) + + 20 col0
----
-12

skipif mysql # not compatible
query I rowsort label-6676
SELECT - 32 * COUNT ( * ) + + 20 col0
----
-12

query I rowsort
SELECT - CASE 98 WHEN ( - 41 ) THEN 43 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 33 * 77 AS col0
----
2541

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6679
SELECT DISTINCT NULLIF ( - NULLIF ( COUNT( * ), - 23 ), - SUM( DISTINCT - - CAST( NULL AS DECIMAL ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT NULLIF ( - NULLIF ( COUNT ( * ), - 23 ), - SUM ( DISTINCT - - CAST ( NULL AS REAL ) ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT ALL - 16 + - + 97 - 24 * - - COUNT( * )
----
-137

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL - 16 + - + 97 - 24 * - - COUNT ( * )
----
-137

onlyif mysql # DIV for integer division: 
query II rowsort label-6681
SELECT - 32 DIV - 99 col2, - 45
----
0
-45

skipif mysql # not compatible
query II rowsort label-6681
SELECT - 32 / - 99 col2, - 45
----
0
-45

query I rowsort
SELECT + 38 * 99 AS col1
----
3762

query I rowsort
SELECT - COALESCE ( 66, - - 40 - 10, - 7 ) * 55
----
-3630

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

query I rowsort
SELECT - 2 * - 9
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT + 78 * - - 1 * + CASE - COUNT( * ) WHEN + 40 + + - COUNT( * ) + 45 THEN - - ( - 75 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6686
SELECT + 78 * - - 1 * + CASE - COUNT ( * ) WHEN + 40 + + - COUNT ( * ) + 45 THEN - - ( - 75 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL - 2 + + + COUNT( * ) + NULLIF ( 55, + - MIN( - 74 ) - COUNT( * ) * + ( + NULLIF ( + + 57, + - 6 ) ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL - 2 + + + COUNT ( * ) + NULLIF ( 55, + - MIN ( - 74 ) - COUNT ( * ) * + ( + NULLIF ( + + 57, + - 6 ) ) ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT + 31 * + MIN( DISTINCT + 55 ) + CASE + 51 WHEN + + 32 THEN - 24 * - 88 + + 25 WHEN - COALESCE ( - - 80, - CASE + 63 WHEN + 56 THEN + MAX( ALL 90 ) + + 57 * + 64 * 22 ELSE - - AVG ( DISTINCT + 45 ) * + + 7 END ) - - SUM( DISTINCT 69 ) * 56 THEN NULL ELSE NULL END / - - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT + 31 * + MIN ( DISTINCT + 55 ) + CASE + 51 WHEN + + 32 THEN - 24 * - 88 + + 25 WHEN - COALESCE ( - - 80, - CASE + 63 WHEN + 56 THEN + MAX ( ALL 90 ) + + 57 * + 64 * 22 ELSE - - AVG ( DISTINCT + 45 ) * + + 7 END ) - - SUM ( DISTINCT 69 ) * 56 THEN NULL ELSE NULL END / - - 13 AS col1
----
NULL

query II rowsort
SELECT + ( - 88 ), + 64 + 81 AS col0
----
-88
145

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT + - MAX( ALL 97 ) * 35
----
-3395

skipif mysql # not compatible
query I rowsort label-6690
SELECT + - MAX ( ALL 97 ) * 35
----
-3395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6691
SELECT ALL + + CASE + COALESCE ( 99, 75 * - + 73 ) WHEN - NULLIF ( 94, + CAST( - 68 AS SIGNED ) ) THEN 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL + + CASE + COALESCE ( 99, 75 * - + 73 ) WHEN - NULLIF ( 94, + CAST ( - 68 AS INTEGER ) ) THEN 82 END
----
NULL

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

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

query I rowsort
SELECT + 46 + ( + - 63 ) AS col1
----
-17

query I rowsort
SELECT ALL + 34 * 41 * + 9 AS col2
----
12546

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT + + COUNT( * ) * - 34 + 62
----
28

skipif mysql # not compatible
query I rowsort label-6695
SELECT + + COUNT ( * ) * - 34 + 62
----
28

query I rowsort
SELECT - + 23 * - 91 * - - 77
----
161161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6697
SELECT DISTINCT 75 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT 75 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 34 * 60 AS col0
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT ALL 13 * COUNT( * ) + + - 87 + + 39 * - + 66 AS col1
----
-2648

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL 13 * COUNT ( * ) + + - 87 + + 39 * - + 66 AS col1
----
-2648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6700
SELECT DISTINCT - 61 * + + NULLIF ( - 65, CASE + CAST( + + 92 AS SIGNED ) WHEN - + 34 THEN 75 - + 6 END + - 17 * 74 ) + - 77
----
3888

skipif mysql # not compatible
query I rowsort label-6700
SELECT DISTINCT - 61 * + + NULLIF ( - 65, CASE + CAST ( + + 92 AS INTEGER ) WHEN - + 34 THEN 75 - + 6 END + - 17 * 74 ) + - 77
----
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT DISTINCT CASE - 67 WHEN + - 27 * 9 / - 29 + + COUNT( * ) * - 21 / 68 + CASE - - 37 WHEN - + 60 THEN - 99 WHEN - + 30 + + 41 * + 80 + 18 THEN NULL WHEN - 36 - + 28 THEN - 22 END THEN + + 54 * - COUNT( * ) ELSE + - CASE 49 WHEN 97 THEN NULL WHEN - 42 * + 79 + - 62 + 75 * - COALESCE ( 68, + - 12 + - + 39 * + + 51 + 75 ) THEN + 11 ELSE 60 END + - 21 END
----
-81

skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT CASE - 67 WHEN + - 27 * 9 / - 29 + + COUNT ( * ) * - 21 / 68 + CASE - - 37 WHEN - + 60 THEN - 99 WHEN - + 30 + + 41 * + 80 + 18 THEN NULL WHEN - 36 - + 28 THEN - 22 END THEN + + 54 * - COUNT ( * ) ELSE + - CASE 49 WHEN 97 THEN NULL WHEN - 42 * + 79 + - 62 + 75 * - COALESCE ( 68, + - 12 + - + 39 * + + 51 + 75 ) THEN + 11 ELSE 60 END + - 21 END
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-6702
SELECT COUNT( * ), + 40 col0
----
1
40

skipif mysql # not compatible
query II rowsort label-6702
SELECT COUNT ( * ), + 40 col0
----
1
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT DISTINCT 19 * 40 * + 96 + - COUNT( * ) * - 4 AS col2
----
72964

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT 19 * 40 * + 96 + - COUNT ( * ) * - 4 AS col2
----
72964

query I rowsort
SELECT - 62 - 45 * + 36
----
-1682

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT DISTINCT NULLIF ( 6, - + 56 * - + 50 + + - COALESCE ( 85, - 31 * - 73, ( COUNT( * ) ) * + COUNT( * ) + - 38 * 14 ) * - - 97 / + - 87 )
----
6

skipif mysql # not compatible
query I rowsort label-6705
SELECT DISTINCT NULLIF ( 6, - + 56 * - + 50 + + - COALESCE ( 85, - 31 * - 73, ( COUNT ( * ) ) * + COUNT ( * ) + - 38 * 14 ) * - - 97 / + - 87 )
----
6

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6708
SELECT ALL CAST( 86 AS SIGNED ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL CAST ( 86 AS INTEGER ) AS col2
----
86

query I rowsort
SELECT - 55 + + 86
----
31

query I rowsort
SELECT DISTINCT - 73 - - 46 AS col2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-6711
SELECT - - 51 DIV - 27 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6711
SELECT - - 51 / - 27 AS col1
----
-1

query I rowsort
SELECT ALL - ( + + NULLIF ( + + 56, 5 ) ) AS col1
----
-56

query I rowsort
SELECT ALL ( + + ( 43 ) ) col2
----
43

onlyif mysql # DIV for integer division: 
query II rowsort label-6714
SELECT ALL - + ( 45 ) DIV + 69 AS col0, 63 + + 41 AS col0
----
0
104

skipif mysql # not compatible
query II rowsort label-6714
SELECT ALL - + ( 45 ) / + 69 AS col0, 63 + + 41 AS col0
----
0
104

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

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

query I rowsort
SELECT + + 44 * 40
----
1760

query I rowsort
SELECT DISTINCT - 5 * 68
----
-340

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT ALL 93 + + 3 DIV + 22 + - 84 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL 93 + + 3 / + 22 + - 84 AS col1
----
9

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

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

query I rowsort
SELECT ALL 98 + + ( + 86 )
----
184

query II rowsort
SELECT 76 col2, 52
----
76
52

query II rowsort
SELECT + 0 AS col2, 46
----
0
46

query II rowsort
SELECT + 2 AS col0, + 45 col1
----
2
45

onlyif mysql # aggregate syntax: 
query III rowsort label-6724
SELECT 1 + 24 col0, + 27 + - 24, COUNT( * ) * + 6 * + 29 col0
----
25
3
174

skipif mysql # not compatible
query III rowsort label-6724
SELECT 1 + 24 col0, + 27 + - 24, COUNT ( * ) * + 6 * + 29 col0
----
25
3
174

query I rowsort
SELECT ALL 21 + + 31
----
52

query I rowsort
SELECT DISTINCT 32 * + 32 * 16
----
16384

query I rowsort
SELECT 91 * 0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT ALL 85 - - SUM( + - 83 ) * - 1 AS col0
----
168

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL 85 - - SUM ( + - 83 ) * - 1 AS col0
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-6730
SELECT DISTINCT + 8 DIV 7 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT + 8 / 7 AS col2
----
1

query II rowsort
SELECT ALL COALESCE ( 58, 25 + - 56 ) AS col0, 5
----
58
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6733
SELECT ALL COUNT( * ) AS col1, 92 + + + NULLIF ( - CAST( NULL AS SIGNED ), - 29 * ( - 51 ) - + 51 ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6733
SELECT ALL COUNT ( * ) AS col1, 92 + + + NULLIF ( - CAST ( NULL AS INTEGER ), - 29 * ( - 51 ) - + 51 ) AS col0
----
1
NULL

query II rowsort
SELECT ALL + 62 AS col2, + 36
----
62
36

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

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

query I rowsort
SELECT ALL - 28 * 88
----
-2464

query II rowsort
SELECT ALL + 52 col0, 8
----
52
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6738
SELECT - - 96, 11 * COUNT( * ) AS col1
----
96
11

skipif mysql # not compatible
query II rowsort label-6738
SELECT - - 96, 11 * COUNT ( * ) AS col1
----
96
11

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT + 1 + - + 47 * + NULLIF ( + MIN( + 57 ), COALESCE ( + 87, - - COUNT( * ) / - + 2 ) ) * - 83
----
222358

skipif mysql # not compatible
query I rowsort label-6741
SELECT + 1 + - + 47 * + NULLIF ( + MIN ( + 57 ), COALESCE ( + 87, - - COUNT ( * ) / - + 2 ) ) * - 83
----
222358

query I rowsort
SELECT ALL + 67 * - + 29
----
-1943

onlyif mysql # aggregate syntax: 
query II rowsort label-6743
SELECT + 85 * 11 * + NULLIF ( - + 5, 39 + + 64 ) + - 35 + - - 73 + + + CASE + 89 WHEN + AVG ( + ( + + 77 ) ) + - 6 THEN 53 * - ( - - 14 ) + - 83 - COUNT( * ) END, + MIN( 29 ) AS col1
----
NULL
29

skipif mysql # not compatible
query II rowsort label-6743
SELECT + 85 * 11 * + NULLIF ( - + 5, 39 + + 64 ) + - 35 + - - 73 + + + CASE + 89 WHEN + AVG ( + ( + + 77 ) ) + - 6 THEN 53 * - ( - - 14 ) + - 83 - COUNT ( * ) END, + MIN ( 29 ) AS col1
----
NULL
29

query II rowsort
SELECT 31 AS col2, - 93 + - + COALESCE ( - ( - 49 ), 95 + - 76 + COALESCE ( - 12, 49 ) + + 27 + 83 * - 41, - 44 )
----
31
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6745
SELECT - 97 DIV 38 + + COUNT( * ) + - COALESCE ( - 16, - 97 ) + + 44 + MIN( + 72 ) * COUNT( * ) + + 72 + 29 + + + 5 * - + 87
----
-203

skipif mysql # not compatible
query I rowsort label-6745
SELECT - 97 / 38 + + COUNT ( * ) + - COALESCE ( - 16, - 97 ) + + 44 + MIN ( + 72 ) * COUNT ( * ) + + 72 + 29 + + + 5 * - + 87
----
-203

onlyif mysql # DIV for integer division: 
query I rowsort label-6746
SELECT 96 DIV 70 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6746
SELECT 96 / 70 AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6748
SELECT + COUNT( ALL + 6 ) col2, + 20 + + 94 * - - 55
----
1
5190

skipif mysql # not compatible
query II rowsort label-6748
SELECT + COUNT ( ALL + 6 ) col2, + 20 + + 94 * - - 55
----
1
5190

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

query I rowsort
SELECT ALL + 52 * - - 14
----
728

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

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL - 29 + + COUNT ( * ) + + 63 AS col1
----
35

query I rowsort
SELECT DISTINCT 45 + - 1 * 72 AS col1
----
-27

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6754
SELECT ALL + 94 * + + 86 col1, CAST( NULL AS SIGNED )
----
8084
NULL

skipif mysql # not compatible
query II rowsort label-6754
SELECT ALL + 94 * + + 86 col1, CAST ( NULL AS INTEGER )
----
8084
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6755
SELECT + 79 * - 46 * - NULLIF ( + 79, CAST( + COUNT( * ) AS SIGNED ) * 65 - - 51 ) - + COUNT( DISTINCT ( 7 ) )
----
287085

skipif mysql # not compatible
query I rowsort label-6755
SELECT + 79 * - 46 * - NULLIF ( + 79, CAST ( + COUNT ( * ) AS INTEGER ) * 65 - - 51 ) - + COUNT ( DISTINCT ( 7 ) )
----
287085

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT 94 + 32 - - + 64 * - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-6756
SELECT 94 + 32 - - + 64 * - COUNT ( * )
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6757
SELECT 90 + 91, SUM( + 93 ) AS col1
----
181
93

skipif mysql # not compatible
query II rowsort label-6757
SELECT 90 + 91, SUM ( + 93 ) AS col1
----
181
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6758
SELECT 26 - COUNT( * ) + - + 38 AS col1, 22 + + COUNT( * ) + ( - + MAX( 86 ) ) * + 45 * - 60 + - - 4 DIV - 3 + - COUNT( * ) * - 18 * + 2 * + + 90
----
-13
235462

skipif mysql # not compatible
query II rowsort label-6758
SELECT 26 - COUNT ( * ) + - + 38 AS col1, 22 + + COUNT ( * ) + ( - + MAX ( 86 ) ) * + 45 * - 60 + - - 4 / - 3 + - COUNT ( * ) * - 18 * + 2 * + + 90
----
-13
235462

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT NULLIF ( COUNT( * ), - 59 / + 61 + + CASE 62 WHEN 32 THEN 27 * - + 88 - AVG ( + 34 ) END + - 81 ) + - + 10 * 81 AS col2
----
-809

skipif mysql # not compatible
query I rowsort label-6759
SELECT NULLIF ( COUNT ( * ), - 59 / + 61 + + CASE 62 WHEN 32 THEN 27 * - + 88 - AVG ( + 34 ) END + - 81 ) + - + 10 * 81 AS col2
----
-809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6760
SELECT ALL NULLIF ( + CAST( NULL AS SIGNED ), - 11 ) * 6 + - 38 + - - ( + - 84 ) + - 1 - - - COUNT( * ) / - 37 * - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL NULLIF ( + CAST ( NULL AS INTEGER ), - 11 ) * 6 + - 38 + - - ( + - 84 ) + - 1 - - - COUNT ( * ) / - 37 * - 55 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT + 92 DIV 77 DIV - + 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6761
SELECT + 92 / 77 / - + 71 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6762
SELECT - 10 DIV + COALESCE ( + ( - 57 ), COUNT( ALL + - 99 ), 50 * + - NULLIF ( - AVG ( - 99 ), + + 5 ) + + 56 DIV 22 * - 2 * + 40 + + 4 )
----
0

skipif mysql # not compatible
query I rowsort label-6762
SELECT - 10 / + COALESCE ( + ( - 57 ), COUNT ( ALL + - 99 ), 50 * + - NULLIF ( - AVG ( - 99 ), + + 5 ) + + 56 / 22 * - 2 * + 40 + + 4 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT + 19 + - MAX( DISTINCT - 65 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6764
SELECT + 19 + - MAX ( DISTINCT - 65 ) AS col0
----
84

query I rowsort
SELECT ALL - ( - CASE - 48 WHEN + 55 THEN 52 ELSE - 5 - + 86 END ) AS col2
----
-91

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

query II rowsort
SELECT - 42 * - - 5 AS col0, - 85 * - 29
----
-210
2465

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT COUNT( * ) + 47 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-6768
SELECT COUNT ( * ) + 47 AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6769
SELECT ALL + MAX( ALL - + 9 ) AS col2, 13 DIV 82
----
-9
0

skipif mysql # not compatible
query II rowsort label-6769
SELECT ALL + MAX ( ALL - + 9 ) AS col2, 13 / 82
----
-9
0

query I rowsort
SELECT ALL 29 + 9 - - 31 + - - 10
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT - 69 + + CASE - - CASE 11 WHEN + + 95 THEN - 65 * 60 / + 18 + - 13 WHEN + 35 + 25 THEN NULL WHEN - COUNT( * ) + - - 55 THEN NULL ELSE COUNT( * ) / 71 END WHEN - 27 + - 27 THEN NULL ELSE ( + - 37 ) END
----
-106

skipif mysql # not compatible
query I rowsort label-6771
SELECT - 69 + + CASE - - CASE 11 WHEN + + 95 THEN - 65 * 60 / + 18 + - 13 WHEN + 35 + 25 THEN NULL WHEN - COUNT ( * ) + - - 55 THEN NULL ELSE COUNT ( * ) / 71 END WHEN - 27 + - 27 THEN NULL ELSE ( + - 37 ) END
----
-106

query I rowsort
SELECT + + 16 * 32 * + 91 col2
----
46592

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

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

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

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL SUM ( ALL 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT ALL + + COUNT( * ) * - NULLIF ( + ( 74 ), + MAX( ALL 86 ) - - - 53 ) * + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL + + COUNT ( * ) * - NULLIF ( + ( 74 ), + MAX ( ALL 86 ) - - - 53 ) * + COUNT ( * )
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-6776
SELECT ALL 78 * 6 DIV + + 25 + + 66 + + 9 * - 47 AS col2
----
-339

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL 78 * 6 / + + 25 + + 66 + + 9 * - 47 AS col2
----
-339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6777
SELECT - + COUNT( * ) * + + 5 * 89 * - CAST( 7 AS SIGNED ) + + 30 - ( 26 ) AS col2
----
3119

skipif mysql # not compatible
query I rowsort label-6777
SELECT - + COUNT ( * ) * + + 5 * 89 * - CAST ( 7 AS INTEGER ) + + 30 - ( 26 ) AS col2
----
3119

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT ALL 61 * + 8 * - + 26 + + ( - COUNT( * ) ) + + 54
----
-12635

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL 61 * + 8 * - + 26 + + ( - COUNT ( * ) ) + + 54
----
-12635

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT DISTINCT + NULLIF ( + MAX( + 46 ), 10 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT + NULLIF ( + MAX ( + 46 ), 10 ) AS col0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6780
SELECT 97 DIV + 67 - + NULLIF ( - 62, - + 22 + - 90 ), 64 - + MIN( DISTINCT 95 ) + ( COUNT( * ) ) * SUM( + 37 ) col1
----
63
6

skipif mysql # not compatible
query II rowsort label-6780
SELECT 97 / + 67 - + NULLIF ( - 62, - + 22 + - 90 ), 64 - + MIN ( DISTINCT 95 ) + ( COUNT ( * ) ) * SUM ( + 37 ) col1
----
63
6

query II rowsort
SELECT ALL + 20 AS col1, 6
----
20
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6782
SELECT - CAST( NULL AS SIGNED ) * + + 71 * + - 68 * 16 / - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT - CAST ( NULL AS INTEGER ) * + + 71 * + - 68 * 16 / - 29 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6783
SELECT + 90, CAST( + 21 AS SIGNED ) col1
----
90
21

skipif mysql # not compatible
query II rowsort label-6783
SELECT + 90, CAST ( + 21 AS INTEGER ) col1
----
90
21

query I rowsort
SELECT DISTINCT 82 * + 84 + 93 * - 26 * - - 78
----
-181716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6785
SELECT - CAST( + + 14 AS SIGNED ) * + - 85 AS col2
----
1190

skipif mysql # not compatible
query I rowsort label-6785
SELECT - CAST ( + + 14 AS INTEGER ) * + - 85 AS col2
----
1190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6786
SELECT ALL - COALESCE ( 72, - + 78 ) DIV + MIN( - 99 )
----
0

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL - COALESCE ( 72, - + 78 ) / + MIN ( - 99 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6787
SELECT - 3 + 82 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6787
SELECT - 3 + 82 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT - 12 * - - COUNT( * ) * + - 22 + COALESCE ( COUNT( * ), - - COUNT( * ) + + - 39 )
----
265

skipif mysql # not compatible
query I rowsort label-6788
SELECT - 12 * - - COUNT ( * ) * + - 22 + COALESCE ( COUNT ( * ), - - COUNT ( * ) + + - 39 )
----
265

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT DISTINCT + 14 * COUNT( * ) * 74 - - 11
----
1047

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT + 14 * COUNT ( * ) * 74 - - 11
----
1047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6790
SELECT COUNT( * ), CASE ( + 85 ) WHEN - - 58 + 44 * + NULLIF ( - ( - 67 ), + COALESCE ( + 3, CAST( NULL AS SIGNED ) ) ) * - 78 THEN NULL WHEN - 44 * 83 * COUNT( * ) * 59 + + - NULLIF ( - 83, COUNT( * ) ) + + - 7 + - 74 * + 55 * - COUNT( * ) + + 72 * + - 81 + 10 THEN NULL ELSE - 45 DIV 57 END * ( 50 ) + + + 81 + + 96 AS col1
----
1
177

skipif mysql # not compatible
query II rowsort label-6790
SELECT COUNT ( * ), CASE ( + 85 ) WHEN - - 58 + 44 * + NULLIF ( - ( - 67 ), + COALESCE ( + 3, CAST ( NULL AS INTEGER ) ) ) * - 78 THEN NULL WHEN - 44 * 83 * COUNT ( * ) * 59 + + - NULLIF ( - 83, COUNT ( * ) ) + + - 7 + - 74 * + 55 * - COUNT ( * ) + + 72 * + - 81 + 10 THEN NULL ELSE - 45 / 57 END * ( 50 ) + + + 81 + + 96 AS col1
----
1
177

query I rowsort
SELECT - 32 * - + 59
----
1888

query II rowsort
SELECT DISTINCT + 58 AS col0, - 38 * 71 - + 71
----
58
-2769

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

query I rowsort
SELECT ALL + ( - - 32 ) * - ( 6 ) + - - 10 AS col2
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT DISTINCT + - COUNT( * ) * MAX( 55 ) + - + COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT + - COUNT ( * ) * MAX ( 55 ) + - + COUNT ( * ) AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6796
SELECT DISTINCT ( - - MAX( ALL + + NULLIF ( 41, + + CAST( NULL AS SIGNED ) ) ) )
----
41

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT ( - - MAX ( ALL + + NULLIF ( 41, + + CAST ( NULL AS INTEGER ) ) ) )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6797
SELECT - 70 - 94 * - CAST( NULL AS SIGNED ) + 68 * + + COUNT( - 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6797
SELECT - 70 - 94 * - CAST ( NULL AS INTEGER ) + 68 * + + COUNT ( - 84 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6798
SELECT + 44 DIV - + MIN( ALL + 84 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6798
SELECT + 44 / - + MIN ( ALL + 84 ) AS col2
----
0

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

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

query I rowsort
SELECT - 83 * - + 29
----
2407

query I rowsort
SELECT - NULLIF ( - NULLIF ( 17, + + ( - + 48 ) ), - CASE - - 55 WHEN - + 97 THEN + - 55 WHEN + + 36 + + 31 THEN NULL END / + - 29 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL - - 22 + + COALESCE ( + 17, + 5 ) + + - 92 * - MAX( 75 ) AS col2
----
6939

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL - - 22 + + COALESCE ( + 17, + 5 ) + + - 92 * - MAX ( 75 ) AS col2
----
6939

query I rowsort
SELECT + - 96 - - 84 col1
----
-12

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

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

query I rowsort
SELECT ALL - 27 + + - 31 AS col1
----
-58

query I rowsort
SELECT ALL 3 + + - 48
----
-45

query II rowsort
SELECT ALL - 15 AS col0, 70 + - - 41 + + 34 + + 63 + + 69
----
-15
277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6808
SELECT 2 * CASE 74 WHEN - + 82 * CAST( NULL AS SIGNED ) + - 22 / + MAX( ( - 98 ) ) * - COUNT( * ) + CAST( - - 76 AS SIGNED ) - - 6 - - - 55 THEN NULL WHEN - 30 THEN + 57 + + ( + - 1 ) END + + 49 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT 2 * CASE 74 WHEN - + 82 * CAST ( NULL AS INTEGER ) + - 22 / + MAX ( ( - 98 ) ) * - COUNT ( * ) + CAST ( - - 76 AS INTEGER ) - - 6 - - - 55 THEN NULL WHEN - 30 THEN + 57 + + ( + - 1 ) END + + 49 + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6810
SELECT ALL 78 DIV - 38 - + 45 - - COALESCE ( + - 53, 68, + - 79 - + - 1 ) col2
----
-100

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL 78 / - 38 - + 45 - - COALESCE ( + - 53, 68, + - 79 - + - 1 ) col2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT + 2 * 88 + 12 - + 86 + + + 68 - - + 7 + - MIN( DISTINCT 57 ) + - 92 * 97 AS col1
----
-8804

skipif mysql # not compatible
query I rowsort label-6811
SELECT + 2 * 88 + 12 - + 86 + + + 68 - - + 7 + - MIN ( DISTINCT 57 ) + - 92 * 97 AS col1
----
-8804

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT + MAX( - 30 ) * COUNT( * ) + - 27 + NULLIF ( - 17, - ( 18 ) ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-6813
SELECT + MAX ( - 30 ) * COUNT ( * ) + - 27 + NULLIF ( - 17, - ( 18 ) ) AS col0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-6814
SELECT + 26 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-6814
SELECT + 26 / + 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT - 32 * + - 69 / - 96 * CASE - 33 WHEN - COUNT( * ) THEN - 44 / + ( - 57 ) + + 14 + - 50 WHEN - - COUNT( 45 ) THEN NULL WHEN CASE - 42 WHEN COUNT( * ) THEN NULL ELSE + MAX( DISTINCT + + 10 ) END THEN - + 97 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6815
SELECT - 32 * + - 69 / - 96 * CASE - 33 WHEN - COUNT ( * ) THEN - 44 / + ( - 57 ) + + 14 + - 50 WHEN - - COUNT ( 45 ) THEN NULL WHEN CASE - 42 WHEN COUNT ( * ) THEN NULL ELSE + MAX ( DISTINCT + + 10 ) END THEN - + 97 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT COUNT( * ) * - 20 + + CASE + COUNT( * ) WHEN - + COUNT( * ) THEN NULL WHEN 1 THEN 13 ELSE - + 65 + + 78 END
----
-7

skipif mysql # not compatible
query I rowsort label-6816
SELECT COUNT ( * ) * - 20 + + CASE + COUNT ( * ) WHEN - + COUNT ( * ) THEN NULL WHEN 1 THEN 13 ELSE - + 65 + + 78 END
----
-7

query I rowsort
SELECT ALL 2 * 66
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT NULLIF ( + + COALESCE ( - SUM( ALL + 1 ), - 51 + - 46, + - 34 * + 19 ), - 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-6818
SELECT NULLIF ( + + COALESCE ( - SUM ( ALL + 1 ), - 51 + - 46, + - 34 * + 19 ), - 2 )
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT DISTINCT - + 24 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT - + 24 / - 52
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6821
SELECT + ( - - 48 ) - COALESCE ( - 44, 90 ) * - 36 + - - MIN( ( - + 75 ) ) AS col1, - 84 * 70
----
-1611
-5880

skipif mysql # not compatible
query II rowsort label-6821
SELECT + ( - - 48 ) - COALESCE ( - 44, 90 ) * - 36 + - - MIN ( ( - + 75 ) ) AS col1, - 84 * 70
----
-1611
-5880

query I rowsort
SELECT 81 + - 35 * - 19 AS col2
----
746

query I rowsort
SELECT ALL - + 49 + + 97
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-6824
SELECT + 81 + - 29, + NULLIF ( + - 31, - 51 * + + COUNT( * ) ) * SUM( DISTINCT + 81 ) - ( + - NULLIF ( COUNT( * ), - COUNT( * ) + 98 + + + 13 ) ) AS col2
----
52
-2510

skipif mysql # not compatible
query II rowsort label-6824
SELECT + 81 + - 29, + NULLIF ( + - 31, - 51 * + + COUNT ( * ) ) * SUM ( DISTINCT + 81 ) - ( + - NULLIF ( COUNT ( * ), - COUNT ( * ) + 98 + + + 13 ) ) AS col2
----
52
-2510

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT DISTINCT - 89 * - 26 + SUM( ALL 25 )
----
2339

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT - 89 * - 26 + SUM ( ALL 25 )
----
2339

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6826
SELECT DISTINCT - - COALESCE ( 1, - + 79 DIV + 25 DIV - + ( + 64 ) ) + + - NULLIF ( - 33, - 86 * COUNT( * ) * - - 89 + - 13 + - + 74 DIV + 28 + - 26 + - - NULLIF ( + - 75, 0 * + - NULLIF ( 55, - 32 * 43 + 67 ) ) )
----
34

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT - - COALESCE ( 1, - + 79 / + 25 / - + ( + 64 ) ) + + - NULLIF ( - 33, - 86 * COUNT ( * ) * - - 89 + - 13 + - + 74 / + 28 + - 26 + - - NULLIF ( + - 75, 0 * + - NULLIF ( 55, - 32 * 43 + 67 ) ) )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6827
SELECT ALL 48 + + CASE - 7 WHEN - 50 THEN 73 WHEN 73 THEN 30 + 72 WHEN CAST( + 45 AS SIGNED ) THEN NULL ELSE - 65 END * 45 + - 2 AS col1
----
-2879

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL 48 + + CASE - 7 WHEN - 50 THEN 73 WHEN 73 THEN 30 + 72 WHEN CAST ( + 45 AS INTEGER ) THEN NULL ELSE - 65 END * 45 + - 2 AS col1
----
-2879

query I rowsort
SELECT 50 + + 49 AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6829
SELECT ALL - CAST( NULL AS SIGNED ) + + 2 / - + 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL - CAST ( NULL AS INTEGER ) + + 2 / - + 86 AS col0
----
NULL

query I rowsort
SELECT - ( 31 ) + + 58 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL + ( + COUNT( * ) ) + - 10 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL + ( + COUNT ( * ) ) + - 10 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6832
SELECT + COUNT( DISTINCT + 58 ) * 4 + + COUNT( * ) col0, + 11 col0
----
5
11

skipif mysql # not compatible
query II rowsort label-6832
SELECT + COUNT ( DISTINCT + 58 ) * 4 + + COUNT ( * ) col0, + 11 col0
----
5
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6833
SELECT 4 + + 30 DIV 72
----
4

skipif mysql # not compatible
query I rowsort label-6833
SELECT 4 + + 30 / 72
----
4

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

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

query I rowsort
SELECT DISTINCT - 53 - 44 AS col0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6836
SELECT + 67 DIV - 53 - 23 * - + 35
----
804

skipif mysql # not compatible
query I rowsort label-6836
SELECT + 67 / - 53 - 23 * - + 35
----
804

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT MIN( ALL - ( - + 68 ) ) * + 77 AS col1
----
5236

skipif mysql # not compatible
query I rowsort label-6837
SELECT MIN ( ALL - ( - + 68 ) ) * + 77 AS col1
----
5236

query I rowsort
SELECT 0 * 40 AS col0
----
0

query I rowsort
SELECT 63 * - + 14 + - 99
----
-981

onlyif mysql # DIV for integer division: 
query I rowsort label-6840
SELECT - 28 DIV 53 * - - 53 * - 88 * 78 - + ( - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-6840
SELECT - 28 / 53 * - - 53 * - 88 * 78 - + ( - 34 )
----
34

query I rowsort
SELECT DISTINCT 14 + + 16
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT ALL - 73 * - + ( MAX( ALL - + 88 ) )
----
-6424

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL - 73 * - + ( MAX ( ALL - + 88 ) )
----
-6424

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT - 51 * + 82 + + 37 + - + MIN( ALL + 30 ) * + 32 + - 57 AS col0
----
-5162

skipif mysql # not compatible
query I rowsort label-6844
SELECT - 51 * + 82 + + 37 + - + MIN ( ALL + 30 ) * + 32 + - 57 AS col0
----
-5162

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6846
SELECT DISTINCT 91 + CAST( + + 12 AS SIGNED ) AS col2
----
103

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT 91 + CAST ( + + 12 AS INTEGER ) AS col2
----
103

query I rowsort
SELECT 40 * 50 * 16 * + + 98 * - NULLIF ( + + 42, 23 ) + + 92
----
-131711908

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

query I rowsort
SELECT ALL + 60 + + 96 AS col1
----
156

query I rowsort
SELECT 88 * + 53 + - - 43 + - 67
----
4640

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT DISTINCT - + 84 + 18 + + COUNT( * ) + 78
----
13

skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT - + 84 + 18 + + COUNT ( * ) + 78
----
13

query II rowsort
SELECT DISTINCT 13 AS col0, - 90 AS col2
----
13
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-6853
SELECT ALL + + 54 DIV - 35
----
-1

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL + + 54 / - 35
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6854
SELECT - 38 DIV - COUNT( - 28 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6854
SELECT - 38 / - COUNT ( - 28 ) AS col1
----
38

query I rowsort
SELECT 44 + 3 * + 4
----
56

query I rowsort
SELECT 88 * - + 63 AS col2
----
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT ALL - - 42 * + ( COUNT( ALL 61 ) ) * - 78 * + - 8 - - 95
----
26303

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL - - 42 * + ( COUNT ( ALL 61 ) ) * - 78 * + - 8 - - 95
----
26303

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT 84 - + COUNT( ALL 41 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-6859
SELECT 84 - + COUNT ( ALL 41 ) AS col0
----
83

query I rowsort
SELECT ALL - 66 * + 51 * + ( + ( - + 47 ) ) col2
----
158202

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6862
SELECT DISTINCT - 48 * 29 AS col2, + CASE - COUNT( * ) WHEN - 79 * + + COUNT( * ) * - MIN( - + 92 ) + - + 54 THEN NULL WHEN - 94 THEN NULL WHEN - COUNT( * ) THEN + 28 ELSE NULL END * + + 93 AS col0
----
-1392
2604

skipif mysql # not compatible
query II rowsort label-6862
SELECT DISTINCT - 48 * 29 AS col2, + CASE - COUNT ( * ) WHEN - 79 * + + COUNT ( * ) * - MIN ( - + 92 ) + - + 54 THEN NULL WHEN - 94 THEN NULL WHEN - COUNT ( * ) THEN + 28 ELSE NULL END * + + 93 AS col0
----
-1392
2604

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT DISTINCT MAX( DISTINCT - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-6863
SELECT DISTINCT MAX ( DISTINCT - 84 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT 10 * + 45 * COUNT( * )
----
450

skipif mysql # not compatible
query I rowsort label-6864
SELECT 10 * + 45 * COUNT ( * )
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT ALL MIN( + 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL MIN ( + 30 ) AS col1
----
30

query I rowsort
SELECT 84 + - 36 - - 44
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT COALESCE ( 57, - 89 * 89 * - 38 - + COUNT( * ) ) col1
----
57

skipif mysql # not compatible
query I rowsort label-6867
SELECT COALESCE ( 57, - 89 * 89 * - 38 - + COUNT ( * ) ) col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6868
SELECT 76 DIV + 85 + - 91 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-6868
SELECT 76 / + 85 + - 91 AS col0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6869
SELECT ALL + 4 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL + 4 / - 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT ALL + COUNT( * ) * 14 + - + COUNT( * ) * + - SUM( ALL - 61 ) * SUM( 11 ) - 90 AS col2
----
-747

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL + COUNT ( * ) * 14 + - + COUNT ( * ) * + - SUM ( ALL - 61 ) * SUM ( 11 ) - 90 AS col2
----
-747

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6872
SELECT ALL + COALESCE ( 45, + 86 * NULLIF ( + COUNT( * ), - 34 ) + 67 * + - 33 * - 21 DIV + 60, - 13 DIV 5 - - 56 ) DIV - COALESCE ( 30, - 45 DIV 66 ) + 51
----
50

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL + COALESCE ( 45, + 86 * NULLIF ( + COUNT ( * ), - 34 ) + 67 * + - 33 * - 21 / + 60, - 13 / 5 - - 56 ) / - COALESCE ( 30, - 45 / 66 ) + 51
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT COUNT( * ) * - 36 * + 90
----
-3240

skipif mysql # not compatible
query I rowsort label-6873
SELECT COUNT ( * ) * - 36 * + 90
----
-3240

query I rowsort
SELECT 77 * + - 67 + 52 AS col0
----
-5107

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT DISTINCT + 86 * MIN( + 69 )
----
5934

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT + 86 * MIN ( + 69 )
----
5934

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT ALL + 28 * - + COUNT( * ) + - COUNT( * ) + - 48 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL + 28 * - + COUNT ( * ) + - COUNT ( * ) + - 48 AS col0
----
-77

query II rowsort
SELECT DISTINCT + 86 AS col0, 44 AS col1
----
86
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT - 36 + + MAX( 49 ) + 18 * 97 AS col1
----
1759

skipif mysql # not compatible
query I rowsort label-6878
SELECT - 36 + + MAX ( 49 ) + 18 * 97 AS col1
----
1759

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

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

query II rowsort
SELECT + 90 AS col2, 41 * + 71 AS col2
----
90
2911

onlyif mysql # aggregate syntax: 
query II rowsort label-6881
SELECT + - 10 AS col1, 75 * + - MIN( DISTINCT - + ( 21 ) ) * + 26 AS col0
----
-10
40950

skipif mysql # not compatible
query II rowsort label-6881
SELECT + - 10 AS col1, 75 * + - MIN ( DISTINCT - + ( 21 ) ) * + 26 AS col0
----
-10
40950

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

query I rowsort
SELECT ALL - + 19 * + 97 * - ( + - 22 )
----
-40546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6884
SELECT ALL + - ( - NULLIF ( + 6, CAST( 60 AS SIGNED ) * 79 * + 49 ) )
----
6

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL + - ( - NULLIF ( + 6, CAST ( 60 AS INTEGER ) * 79 * + 49 ) )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6885
SELECT - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) * - - 26 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6885
SELECT - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * - - 26 AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT COUNT( * ) * 93 + 8
----
101

skipif mysql # not compatible
query I rowsort label-6886
SELECT COUNT ( * ) * 93 + 8
----
101

query I rowsort
SELECT - 22 - + - 61 * 79 AS col0
----
4797

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT DISTINCT + COUNT( 53 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT + COUNT ( 53 ) col2
----
1

query I rowsort
SELECT - 49 + - + 90 AS col1
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6890
SELECT DISTINCT CAST( + 61 AS SIGNED ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT CAST ( + 61 AS INTEGER ) AS col2
----
61

query I rowsort
SELECT + - 7 + - + 95
----
-102

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

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL - SUM ( 28 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT ALL + SUM( - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL + SUM ( - 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT ALL COALESCE ( - 70, 27, - - COUNT( * ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL COALESCE ( - 70, 27, - - COUNT ( * ) ) AS col2
----
-70

query I rowsort
SELECT ALL + 80 * - - 4
----
320

onlyif mysql # DIV for integer division: 
query II rowsort label-6896
SELECT - 39 + 3 * + - 79 AS col0, 88 DIV + 14
----
-276
6

skipif mysql # not compatible
query II rowsort label-6896
SELECT - 39 + 3 * + - 79 AS col0, 88 / + 14
----
-276
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6897
SELECT - 57 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-6897
SELECT - 57 / 64
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6899
SELECT - 9 + + 74 + + 15 DIV - 75
----
65

skipif mysql # not compatible
query I rowsort label-6899
SELECT - 9 + + 74 + + 15 / - 75
----
65

query I rowsort
SELECT DISTINCT - NULLIF ( + - 99, - + 12 ) * - - 6 AS col1
----
594

query I rowsort
SELECT - 80 * - + ( 33 )
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT ALL MIN( + 18 ) col2
----
18

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL MIN ( + 18 ) col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6903
SELECT ALL - ( 18 ) + + 75 * SUM( ALL + - 8 ) DIV - 89 col2
----
-12

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL - ( 18 ) + + 75 * SUM ( ALL + - 8 ) / - 89 col2
----
-12

query II rowsort
SELECT DISTINCT ( - - 36 ), + ( + 56 ) AS col2
----
36
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6905
SELECT DISTINCT - 17 DIV - + MAX( - 94 ) + - 98
----
-98

skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT - 17 / - + MAX ( - 94 ) + - 98
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6906
SELECT DISTINCT + 34 DIV COUNT( * ) + - - CASE 79 WHEN - COUNT( * ) THEN 84 ELSE - 50 END
----
-16

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT + 34 / COUNT ( * ) + - - CASE 79 WHEN - COUNT ( * ) THEN 84 ELSE - 50 END
----
-16

query I rowsort
SELECT ALL + ( + ( + NULLIF ( - 13, 3 * - 26 ) ) )
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6908
SELECT - 21 DIV - 72 + + 96 * - 49 * 55 * NULLIF ( - COUNT( * ), + COUNT( DISTINCT - 25 ) - - - CASE - + 98 WHEN + - ( - + 65 ) THEN NULL ELSE + 23 * 76 END DIV 24 * ( 45 ) + 85 ) * 47 AS col0, + 4 + + - 28 + + 39
----
12159840
15

skipif mysql # not compatible
query II rowsort label-6908
SELECT - 21 / - 72 + + 96 * - 49 * 55 * NULLIF ( - COUNT ( * ), + COUNT ( DISTINCT - 25 ) - - - CASE - + 98 WHEN + - ( - + 65 ) THEN NULL ELSE + 23 * 76 END / 24 * ( 45 ) + 85 ) * 47 AS col0, + 4 + + - 28 + + 39
----
12159840
15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6910
SELECT + COALESCE ( - - CASE - - 68 WHEN - COALESCE ( COALESCE ( - - 66, COALESCE ( + 46, - 73 * + + 34 + 63 + - COUNT( * ) ) ), - 94, 61 + + - 28 + - CAST( - 9 AS SIGNED ) / + - 99 ) THEN + 56 END, - - MIN( DISTINCT + - 46 ), 93 )
----
-46

skipif mysql # not compatible
query I rowsort label-6910
SELECT + COALESCE ( - - CASE - - 68 WHEN - COALESCE ( COALESCE ( - - 66, COALESCE ( + 46, - 73 * + + 34 + 63 + - COUNT ( * ) ) ), - 94, 61 + + - 28 + - CAST ( - 9 AS INTEGER ) / + - 99 ) THEN + 56 END, - - MIN ( DISTINCT + - 46 ), 93 )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6911
SELECT DISTINCT + - COUNT( * ) DIV COUNT( * ) + 45 col2
----
44

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT + - COUNT ( * ) / COUNT ( * ) + 45 col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6912
SELECT ALL + 57 * + + 23 AS col1, COALESCE ( + + 14, + 68, + + COUNT( ALL 26 ) ) AS col1
----
1311
14

skipif mysql # not compatible
query II rowsort label-6912
SELECT ALL + 57 * + + 23 AS col1, COALESCE ( + + 14, + 68, + + COUNT ( ALL 26 ) ) AS col1
----
1311
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6913
SELECT ALL + 15 * - - 65 + + - 69 - CASE + + CAST( NULL AS SIGNED ) WHEN - 75 + - + MAX( 91 ) * + - 5 THEN 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL + 15 * - - 65 + + - 69 - CASE + + CAST ( NULL AS INTEGER ) WHEN - 75 + - + MAX ( 91 ) * + - 5 THEN 22 END
----
NULL

query I rowsort
SELECT + - 71 + + 97 + - - 51 + + 84 AS col0
----
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6915
SELECT + COUNT( * ) DIV + 6 * - 20 - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6915
SELECT + COUNT ( * ) / + 6 * - 20 - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6916
SELECT - + COUNT( * ) * + - 73 AS col2, COUNT( * ) * + 78 col1
----
73
78

skipif mysql # not compatible
query II rowsort label-6916
SELECT - + COUNT ( * ) * + - 73 AS col2, COUNT ( * ) * + 78 col1
----
73
78

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

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

query I rowsort
SELECT ALL - NULLIF ( 5, - - 31 * - + 34 )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6919
SELECT DISTINCT COALESCE ( + - COUNT( * ), - ( + 8 ) DIV - - 4 + COUNT( * ) + + - 51 ), - COALESCE ( - - 1, + 3, + COUNT( * ) ) * SUM( - + 76 ) DIV - 48 AS col0
----
-1
-1

skipif mysql # not compatible
query II rowsort label-6919
SELECT DISTINCT COALESCE ( + - COUNT ( * ), - ( + 8 ) / - - 4 + COUNT ( * ) + + - 51 ), - COALESCE ( - - 1, + 3, + COUNT ( * ) ) * SUM ( - + 76 ) / - 48 AS col0
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT DISTINCT + 0 * + 36 + - 64 * ( - COUNT( * ) ) * - 28 * + 45 AS col2
----
-80640

skipif mysql # not compatible
query I rowsort label-6920
SELECT DISTINCT + 0 * + 36 + - 64 * ( - COUNT ( * ) ) * - 28 * + 45 AS col2
----
-80640

query I rowsort
SELECT + 51 - + 87 + 11
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT + ( - + ( + - COUNT( - 74 ) ) ) * + - 81
----
-81

skipif mysql # not compatible
query I rowsort label-6922
SELECT + ( - + ( + - COUNT ( - 74 ) ) ) * + - 81
----
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT ALL NULLIF ( - + 82, MAX( - 22 ) ) * 67 AS col0
----
-5494

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL NULLIF ( - + 82, MAX ( - 22 ) ) * 67 AS col0
----
-5494

query I rowsort
SELECT ALL 98 + 36
----
134

query I rowsort
SELECT + 80 * - 67 AS col2
----
-5360

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

onlyif mysql # aggregate syntax: 
query III rowsort label-6928
SELECT ALL NULLIF ( - + 17, COUNT( * ) * AVG ( 7 ) ) * + 95 AS col2, + 61 * + + ( - + COUNT( * ) ), - 30 AS col2
----
-1615
-61
-30

skipif mysql # not compatible
query III rowsort label-6928
SELECT ALL NULLIF ( - + 17, COUNT ( * ) * AVG ( 7 ) ) * + 95 AS col2, + 61 * + + ( - + COUNT ( * ) ), - 30 AS col2
----
-1615
-61
-30

query I rowsort
SELECT ALL 62 + + - 76 * + 14 col2
----
-1002

query I rowsort
SELECT + 74 - + 21 AS col2
----
53

query II rowsort
SELECT DISTINCT 0 AS col2, 21 * + 20 * - ( + ( ( + - 36 ) ) )
----
0
15120

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT DISTINCT MAX( DISTINCT + 96 ) + + - COALESCE ( + 94, + 54 * + 69 )
----
2

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT MAX ( DISTINCT + 96 ) + + - COALESCE ( + 94, + 54 * + 69 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT ALL 56 + COUNT( * ) - - MIN( 67 )
----
124

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL 56 + COUNT ( * ) - - MIN ( 67 )
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT ALL NULLIF ( COUNT( ALL + 4 ), + 33 ) + + + 92 + + 58 AS col2
----
151

skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL NULLIF ( COUNT ( ALL + 4 ), + 33 ) + + + 92 + + 58 AS col2
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6935
SELECT NULLIF ( - 14, - 16 * - 0 + - 60 + - ( - - CAST( NULL AS SIGNED ) ) * - + 21 * - + 14 ) + 30
----
16

skipif mysql # not compatible
query I rowsort label-6935
SELECT NULLIF ( - 14, - 16 * - 0 + - 60 + - ( - - CAST ( NULL AS INTEGER ) ) * - + 21 * - + 14 ) + 30
----
16

query I rowsort
SELECT 18 + 19
----
37

query I rowsort
SELECT 54 * - 40 col2
----
-2160

onlyif mysql # DIV for integer division: 
query I rowsort label-6938
SELECT ALL - 41 DIV - 3 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL - 41 / - 3 AS col1
----
13

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

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

query I rowsort
SELECT + 66 * - COALESCE ( - + 27, - + 72 - - CASE 16 WHEN + 75 THEN + ( - 33 ) * + - 97 END + + 47 * + 17 ) - - CASE + 31 WHEN 84 THEN + COALESCE ( 29, - 20 ) END AS col1
----
NULL

query II rowsort
SELECT + 25, 3 AS col0
----
25
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6942
SELECT 94 + + 91 * COUNT( * ) col0, 69
----
185
69

skipif mysql # not compatible
query II rowsort label-6942
SELECT 94 + + 91 * COUNT ( * ) col0, 69
----
185
69

query II rowsort
SELECT ALL - 81 AS col0, 38 AS col0
----
-81
38

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6945
SELECT DISTINCT + 61 * CASE + ( + CAST( - ( 38 ) AS SIGNED ) ) WHEN - + 2 - - 70 THEN 92 + - 65 + + SUM( 56 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6945
SELECT DISTINCT + 61 * CASE + ( + CAST ( - ( 38 ) AS INTEGER ) ) WHEN - + 2 - - 70 THEN 92 + - 65 + + SUM ( 56 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6946
SELECT + 87 col0, - 30 DIV 27 - + 84
----
87
-85

skipif mysql # not compatible
query II rowsort label-6946
SELECT + 87 col0, - 30 / 27 - + 84
----
87
-85

query II rowsort
SELECT + 81 * + 56 * - + 73 AS col1, 76
----
-331128
76

query II rowsort
SELECT - 87 AS col1, - 21
----
-87
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6949
SELECT ALL - + 65, 13 + - - COALESCE ( + 73, COUNT( * ) + + 59, 75 * - 31 ) + - 56 * + 99 * - - MAX( DISTINCT + + 23 ) + - COALESCE ( - 42, + 30 DIV - - 21, - - 84 DIV + CAST( 8 AS SIGNED ) - + COUNT( * ) ) AS col1
----
-65
-127384

skipif mysql # not compatible
query II rowsort label-6949
SELECT ALL - + 65, 13 + - - COALESCE ( + 73, COUNT ( * ) + + 59, 75 * - 31 ) + - 56 * + 99 * - - MAX ( DISTINCT + + 23 ) + - COALESCE ( - 42, + 30 / - - 21, - - 84 / + CAST ( 8 AS INTEGER ) - + COUNT ( * ) ) AS col1
----
-65
-127384

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT 50 + + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-6950
SELECT 50 + + COUNT ( * )
----
51

query I rowsort
SELECT + 9 + - 19 * + - 80 - - ( 85 ) AS col2
----
1614

query II rowsort
SELECT + ( + + 69 ) * + 22, + 35 AS col1
----
1518
35

query I rowsort
SELECT 40 * + 23 * + - 71 AS col1
----
-65320

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6954
SELECT ALL - + COUNT( * ) DIV CASE - 35 WHEN 73 + + - COUNT( * ) DIV + 43 THEN NULL ELSE COUNT( * ) * + ( + + 18 ) - 95 + + 8 END AS col1, NULLIF ( + 3, 91 + COUNT( * ) ) * - + COUNT( DISTINCT + + 36 ) * - 73 - + 87 + - 42 - - COUNT( * )
----
0
91

skipif mysql # not compatible
query II rowsort label-6954
SELECT ALL - + COUNT ( * ) / CASE - 35 WHEN 73 + + - COUNT ( * ) / + 43 THEN NULL ELSE COUNT ( * ) * + ( + + 18 ) - 95 + + 8 END AS col1, NULLIF ( + 3, 91 + COUNT ( * ) ) * - + COUNT ( DISTINCT + + 36 ) * - 73 - + 87 + - 42 - - COUNT ( * )
----
0
91

query II rowsort
SELECT + - 42 col0, - 70
----
-42
-70

query II rowsort
SELECT ALL - - 31 AS col1, - 12
----
31
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6957
SELECT COUNT( * ) + 34 + 81 * - + 73 * + 42 - - - MAX( DISTINCT - - 36 ) DIV - - COALESCE ( 30, - 72, - COUNT( * ) * + + 4 * - 18 * - - 60 )
----
-248312

skipif mysql # not compatible
query I rowsort label-6957
SELECT COUNT ( * ) + 34 + 81 * - + 73 * + 42 - - - MAX ( DISTINCT - - 36 ) / - - COALESCE ( 30, - 72, - COUNT ( * ) * + + 4 * - 18 * - - 60 )
----
-248312

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT ALL - MIN( ALL + - 60 ) * ( + MIN( + + 46 ) ) - + - COUNT( * ) AS col1
----
2761

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL - MIN ( ALL + - 60 ) * ( + MIN ( + + 46 ) ) - + - COUNT ( * ) AS col1
----
2761

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT + - 10 * CASE COUNT( * ) WHEN + - 32 THEN + 77 + - 31 WHEN 55 THEN NULL ELSE - ( - 88 ) * + 96 END + COUNT( * ) + 91 col1
----
-84388

skipif mysql # not compatible
query I rowsort label-6959
SELECT + - 10 * CASE COUNT ( * ) WHEN + - 32 THEN + 77 + - 31 WHEN 55 THEN NULL ELSE - ( - 88 ) * + 96 END + COUNT ( * ) + 91 col1
----
-84388

query II rowsort
SELECT - 83 AS col2, + 7 AS col2
----
-83
7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6961
SELECT NULLIF ( CAST( NULL AS DECIMAL ), - AVG ( - CAST( - 72 AS SIGNED ) ) ) / - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT NULLIF ( CAST ( NULL AS REAL ), - AVG ( - CAST ( - 72 AS INTEGER ) ) ) / - 35 AS col2
----
NULL

query I rowsort
SELECT 99 + - 61
----
38

query I rowsort
SELECT 20 - - 1 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT ALL CASE - 44 WHEN - 37 * ( 6 ) / 82 THEN - 56 / COUNT( * ) + + 66 + 45 + + + ( - 93 ) * + ( + + COUNT( ALL 24 ) ) END + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL CASE - 44 WHEN - 37 * ( 6 ) / 82 THEN - 56 / COUNT ( * ) + + 66 + 45 + + + ( - 93 ) * + ( + + COUNT ( ALL 24 ) ) END + - 43
----
NULL

query I rowsort
SELECT - 95 * + 17 + 82 * - 49 - + + 27 AS col0
----
-5660

query I rowsort
SELECT ALL 92 + - 70 AS col2
----
22

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6968
SELECT DISTINCT - 63 + + 34 DIV 32
----
-62

skipif mysql # not compatible
query I rowsort label-6968
SELECT DISTINCT - 63 + + 34 / 32
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6969
SELECT DISTINCT + ( - NULLIF ( + COUNT( * ), 62 + + MAX( DISTINCT + 45 ) - + - 66 + - - MIN( ALL 87 ) + - 74 / - 26 ) ) + - 83 AS col1, + 97 * - 55 * 48 / CAST( NULL AS SIGNED ) AS col1
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-6969
SELECT DISTINCT + ( - NULLIF ( + COUNT ( * ), 62 + + MAX ( DISTINCT + 45 ) - + - 66 + - - MIN ( ALL 87 ) + - 74 / - 26 ) ) + - 83 AS col1, + 97 * - 55 * 48 / CAST ( NULL AS INTEGER ) AS col1
----
-84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT ALL MIN( DISTINCT - 66 ) + - 49
----
-115

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL MIN ( DISTINCT - 66 ) + - 49
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT 9 * - ( MIN( DISTINCT + 60 ) ) col1
----
-540

skipif mysql # not compatible
query I rowsort label-6971
SELECT 9 * - ( MIN ( DISTINCT + 60 ) ) col1
----
-540

query I rowsort
SELECT ALL 50 * + + 8
----
400

query II rowsort
SELECT ALL 85 * + 34 AS col0, 53 + - - 90
----
2890
143

query I rowsort
SELECT DISTINCT ( ( 72 ) ) - - + 57 * - 58 AS col2
----
-3234

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

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

query I rowsort
SELECT ALL 49 * - ( + + 74 ) col0
----
-3626

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

skipif mysql # not compatible
query I rowsort label-6977
SELECT 53 / + 44
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6978
SELECT - 5 * ( + - 52 ) - + COUNT( * ) + + + 92 * - 25 * - 58 AS col0, - 32
----
133659
-32

skipif mysql # not compatible
query II rowsort label-6978
SELECT - 5 * ( + - 52 ) - + COUNT ( * ) + + + 92 * - 25 * - 58 AS col0, - 32
----
133659
-32

query II rowsort
SELECT + 23 - 98 AS col0, - 68 * - 84 AS col0
----
-75
5712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6980
SELECT 65 / + 85 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6980
SELECT 65 / + 85 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 80 * - 14 + + 63
----
-1057

query II rowsort
SELECT ALL - + 33 * 37, - 99 AS col2
----
-1221
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT ALL + 14 + - COALESCE ( + 67, 91 ) + - COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL + 14 + - COALESCE ( + 67, 91 ) + - COUNT ( * ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT ALL COUNT( * ) * - 59 - + + 27 + - ( 82 ) + 33 * 89
----
2769

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL COUNT ( * ) * - 59 - + + 27 + - ( 82 ) + 33 * 89
----
2769

query I rowsort
SELECT DISTINCT - - ( COALESCE ( + - 46, 43 ) ) AS col2
----
-46

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

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

query I rowsort
SELECT 13 * 65
----
845

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT ALL - 73 + + MIN( DISTINCT - 89 )
----
-162

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL - 73 + + MIN ( DISTINCT - 89 )
----
-162

query I rowsort
SELECT DISTINCT CASE - - 59 WHEN - 76 THEN 71 * - 26 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT ALL + COUNT( * ) + 79
----
80

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL + COUNT ( * ) + 79
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT DISTINCT - 59 * 30 * 86 DIV - 75
----
2029

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT - 59 * 30 * 86 / - 75
----
2029

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT DISTINCT SUM( ALL - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT SUM ( ALL - 78 )
----
-78

query I rowsort
SELECT - 38 - - + 68 AS col0
----
30

query I rowsort
SELECT - 44 * - ( - 28 ) AS col0
----
-1232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6996
SELECT ALL - 86 * - CAST( + 90 AS SIGNED ) * + + 10
----
77400

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL - 86 * - CAST ( + 90 AS INTEGER ) * + + 10
----
77400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6997
SELECT - 15 + - COUNT( * ) + COALESCE ( - ( - 68 ), 96, + - 81, - + COUNT( * ) ) + + + MAX( ALL 34 ) + 41 + 89 * 84 * + 5 * + - 57 + ( + 32 ) - - 63 - COUNT( * ) * - 19 * + 24 * CAST( - - 19 AS SIGNED )
----
-2121774

skipif mysql # not compatible
query I rowsort label-6997
SELECT - 15 + - COUNT ( * ) + COALESCE ( - ( - 68 ), 96, + - 81, - + COUNT ( * ) ) + + + MAX ( ALL 34 ) + 41 + 89 * 84 * + 5 * + - 57 + ( + 32 ) - - 63 - COUNT ( * ) * - 19 * + 24 * CAST ( - - 19 AS INTEGER )
----
-2121774

query I rowsort
SELECT - 91 + - + 17
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-6999
SELECT ALL + 14 - - 77 + - - 60 AS col0, COUNT( * )
----
151
1

skipif mysql # not compatible
query II rowsort label-6999
SELECT ALL + 14 - - 77 + - - 60 AS col0, COUNT ( * )
----
151
1

query I rowsort
SELECT - 84 * 65 col2
----
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT DISTINCT COALESCE ( + 35, + + COALESCE ( + + 36, - SUM( DISTINCT + 13 ), - 24 ) * 88 + 68 )
----
35

skipif mysql # not compatible
query I rowsort label-7001
SELECT DISTINCT COALESCE ( + 35, + + COALESCE ( + + 36, - SUM ( DISTINCT + 13 ), - 24 ) * 88 + 68 )
----
35

query I rowsort
SELECT + 37 + - 90 + + + 72 * 60 + - 90 * + 58 + + 6 AS col2
----
-947

onlyif mysql # aggregate syntax: 
query II rowsort label-7003
SELECT ALL COALESCE ( + + ( + + 58 ), - - COUNT( * ), + 67 * - 7 ) AS col1, - 99 AS col0
----
58
-99

skipif mysql # not compatible
query II rowsort label-7003
SELECT ALL COALESCE ( + + ( + + 58 ), - - COUNT ( * ), + 67 * - 7 ) AS col1, - 99 AS col0
----
58
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT ALL ( - CASE - COUNT( * ) WHEN 20 THEN + 93 * - 49 - 13 + ( - 85 ) * + 61 * + 56 + + 62 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL ( - CASE - COUNT ( * ) WHEN 20 THEN + 93 * - 49 - 13 + ( - 85 ) * + 61 * + 56 + + 62 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7006
SELECT - 71, 58 * + COUNT( * ) * + 8 * - + 45 AS col1
----
-71
-20880

skipif mysql # not compatible
query II rowsort label-7006
SELECT - 71, 58 * + COUNT ( * ) * + 8 * - + 45 AS col1
----
-71
-20880

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT - CASE - - 18 WHEN 20 * - COUNT( + 92 ) + 81 * + 29 - COUNT( * ) THEN NULL ELSE 90 END + + + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-7007
SELECT - CASE - - 18 WHEN 20 * - COUNT ( + 92 ) + 81 * + 29 - COUNT ( * ) THEN NULL ELSE 90 END + + + COUNT ( * )
----
-89

query I rowsort
SELECT + - 84 * + 25 AS col2
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT ALL + - NULLIF ( + MIN( + 25 ), 98 )
----
-25

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL + - NULLIF ( + MIN ( + 25 ), 98 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7010
SELECT ALL + 17 * - CAST( - 47 AS SIGNED ) + - 82
----
717

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL + 17 * - CAST ( - 47 AS INTEGER ) + - 82
----
717

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7011
SELECT ALL + 88 * + 91 + - 73 DIV - - SUM( ALL - 54 ) AS col1
----
8009

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL + 88 * + 91 + - 73 / - - SUM ( ALL - 54 ) AS col1
----
8009

query I rowsort
SELECT + + 23 * - NULLIF ( 78, - 23 ) + + ( + - 67 ) AS col1
----
-1861

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

query I rowsort
SELECT ALL 76 * + 49 + - ( - 65 )
----
3789

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT + - COALESCE ( - COUNT( * ), + 11 ) * - COUNT( * ) + - + 97 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-7015
SELECT + - COALESCE ( - COUNT ( * ), + 11 ) * - COUNT ( * ) + - + 97 AS col0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7016
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) * - 55 + - 88
----
-33

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) * - 55 + - 88
----
-33

query I rowsort
SELECT + 23 * 7
----
161

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

skipif mysql # not compatible
query II rowsort label-7018
SELECT CAST ( NULL AS REAL ) AS col0, COUNT ( * )
----
NULL
1

query II rowsort
SELECT + ( - 65 ) + 85 AS col0, 14 AS col0
----
20
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7020
SELECT - 2 DIV - 85 * 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7020
SELECT - 2 / - 85 * 49 AS col2
----
0

query I rowsort
SELECT + 57 * - - 78 * 83
----
369018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7022
SELECT ALL + CASE 87 WHEN + - 42 * - + 63 * + ( + COUNT( * ) ) THEN NULL WHEN + - 55 / - 65 THEN NULL WHEN + COUNT( - 20 ) + - COUNT( * ) THEN + 69 + - + 21 ELSE + CAST( NULL AS SIGNED ) * - - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL + CASE 87 WHEN + - 42 * - + 63 * + ( + COUNT ( * ) ) THEN NULL WHEN + - 55 / - 65 THEN NULL WHEN + COUNT ( - 20 ) + - COUNT ( * ) THEN + 69 + - + 21 ELSE + CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT - ( - + 20 ) * + + ( + MIN( DISTINCT 61 ) ) + 97 AS col2
----
1317

skipif mysql # not compatible
query I rowsort label-7023
SELECT - ( - + 20 ) * + + ( + MIN ( DISTINCT 61 ) ) + 97 AS col2
----
1317

query I rowsort
SELECT ALL 39 * + + 13 * + 2
----
1014

query I rowsort
SELECT - 51 + + + 88 + + 61
----
98

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT - COUNT( * ) * - 35 + - 23 + + - 5 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7028
SELECT - COUNT ( * ) * - 35 + - 23 + + - 5 AS col1
----
7

query I rowsort
SELECT + 97 * 51 AS col0
----
4947

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT - 21 + MAX( - - 4 ) * + 86 * - 48 * - 52 AS col2
----
858603

skipif mysql # not compatible
query I rowsort label-7031
SELECT - 21 + MAX ( - - 4 ) * + 86 * - 48 * - 52 AS col2
----
858603

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT ALL COALESCE ( - + 26, + 66 + - 46 * - MAX( 73 ), + 47 - + + 54 )
----
-26

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL COALESCE ( - + 26, + 66 + - 46 * - MAX ( 73 ), + 47 - + + 54 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7033
SELECT COUNT( - - CASE + NULLIF ( - - 36, + 67 * - 61 ) WHEN + 97 + ( - 14 ) THEN NULL WHEN 63 THEN - 99 ELSE + + CAST( NULL AS SIGNED ) END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7033
SELECT COUNT ( - - CASE + NULLIF ( - - 36, + 67 * - 61 ) WHEN + 97 + ( - 14 ) THEN NULL WHEN 63 THEN - 99 ELSE + + CAST ( NULL AS INTEGER ) END ) AS col2
----
0

query I rowsort
SELECT - 97 + 29
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-7035
SELECT ALL - 82 - - 8 * + SUM( ALL + 32 ) AS col2, + ( + 96 ) * + COUNT( * ) AS col2
----
174
96

skipif mysql # not compatible
query II rowsort label-7035
SELECT ALL - 82 - - 8 * + SUM ( ALL + 32 ) AS col2, + ( + 96 ) * + COUNT ( * ) AS col2
----
174
96

query I rowsort
SELECT DISTINCT + 10 * + 34 AS col1
----
340

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

query I rowsort
SELECT ALL COALESCE ( + - ( + - 12 ), - 57 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT ALL + 83 * - 9 * - COUNT( * ) AS col0
----
747

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL + 83 * - 9 * - COUNT ( * ) AS col0
----
747

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7041
SELECT - COUNT( * ) + + 44 AS col2, 55 - - + 86
----
43
141

skipif mysql # not compatible
query II rowsort label-7041
SELECT - COUNT ( * ) + + 44 AS col2, 55 - - + 86
----
43
141

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT + 61 + + 99 - - - 97 + + - 77 - - ( + + 82 ) + - CASE + 96 WHEN + 13 THEN SUM( 58 ) END - + 32 - - - COUNT( * ) * - COUNT( * ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7043
SELECT + 61 + + 99 - - - 97 + + - 77 - - ( + + 82 ) + - CASE + 96 WHEN + 13 THEN SUM ( 58 ) END - + 32 - - - COUNT ( * ) * - COUNT ( * ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7044
SELECT DISTINCT 33 AS col2, SUM( DISTINCT - 36 )
----
33
-36

skipif mysql # not compatible
query II rowsort label-7044
SELECT DISTINCT 33 AS col2, SUM ( DISTINCT - 36 )
----
33
-36

query I rowsort
SELECT DISTINCT - + 99 * + 48 - + - COALESCE ( + 34, 61 ) col1
----
-4718

query I rowsort
SELECT ALL 54 + 6
----
60

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7048
SELECT ALL - COUNT( * ) AS col2, + ( 69 ) * - 97
----
-1
-6693

skipif mysql # not compatible
query II rowsort label-7048
SELECT ALL - COUNT ( * ) AS col2, + ( 69 ) * - 97
----
-1
-6693

query II rowsort
SELECT DISTINCT + 99, 46 * 61 AS col0
----
99
2806

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT - + 17 * - 15 + - + COUNT( * )
----
254

skipif mysql # not compatible
query I rowsort label-7050
SELECT - + 17 * - 15 + - + COUNT ( * )
----
254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7051
SELECT - 8 - - SUM( DISTINCT 13 ) * ( - + CAST( COUNT( * ) AS SIGNED ) ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7051
SELECT - 8 - - SUM ( DISTINCT 13 ) * ( - + CAST ( COUNT ( * ) AS INTEGER ) ) AS col0
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT ALL + SUM( ALL + - 34 ) * - + 43
----
1462

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL + SUM ( ALL + - 34 ) * - + 43
----
1462

onlyif mysql # aggregate syntax: 
query II rowsort label-7054
SELECT ALL + - 57 * + 2 AS col2, + 24 * - 65 + - 2 - - 82 * - - COUNT( * ) * 0 * 82 * + - 36 AS col0
----
-114
-1562

skipif mysql # not compatible
query II rowsort label-7054
SELECT ALL + - 57 * + 2 AS col2, + 24 * - 65 + - 2 - - 82 * - - COUNT ( * ) * 0 * 82 * + - 36 AS col0
----
-114
-1562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7055
SELECT DISTINCT + 45 * + 56 + + ( COALESCE ( - CAST( NULL AS SIGNED ), - COUNT( * ) * - MAX( DISTINCT - + 72 ) + - + CAST( NULL AS SIGNED ) + - 50 - - NULLIF ( + COUNT( * ), - 1 ) * + 61 * + ( + 32 ), - 3 ) ) AS col0
----
2517

skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT + 45 * + 56 + + ( COALESCE ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) * - MAX ( DISTINCT - + 72 ) + - + CAST ( NULL AS INTEGER ) + - 50 - - NULLIF ( + COUNT ( * ), - 1 ) * + 61 * + ( + 32 ), - 3 ) ) AS col0
----
2517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7056
SELECT DISTINCT + COUNT( * ) - + COUNT( - 74 ) + - COUNT( * ) * 84 + 84 DIV 26 + + COUNT( * ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT + COUNT ( * ) - + COUNT ( - 74 ) + - COUNT ( * ) * 84 + 84 / 26 + + COUNT ( * ) AS col1
----
-80

query I rowsort
SELECT DISTINCT 63 - 34 AS col1
----
29

query I rowsort
SELECT DISTINCT ( + + 47 ) - - 81
----
128

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7061
SELECT CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) / + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7061
SELECT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) / + 67 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7062
SELECT ALL 91 DIV + 11 col2
----
8

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL 91 / + 11 col2
----
8

query I rowsort
SELECT ALL + 24 * + 20
----
480

query I rowsort
SELECT NULLIF ( - + 24, + + 50 ) * + + 46 * - - ( + 80 ) AS col2
----
-88320

query I rowsort
SELECT 73 * 2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT NULLIF ( + COUNT( * ), + 58 ) + + 39 - - 64 * - NULLIF ( COUNT( * ), - - ( - + 11 ) ) * - 59 * + 49 AS col1
----
185064

skipif mysql # not compatible
query I rowsort label-7066
SELECT NULLIF ( + COUNT ( * ), + 58 ) + + 39 - - 64 * - NULLIF ( COUNT ( * ), - - ( - + 11 ) ) * - 59 * + 49 AS col1
----
185064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7067
SELECT 53 + - + 41 + + CASE 91 WHEN - ( - 36 ) THEN NULL WHEN 10 + + 35 * + 41 THEN - + SUM( - - 58 ) + + + 41 * - 27 * + 24 + + 69 WHEN NULLIF ( + 15, - - CAST( - 28 AS SIGNED ) ) * 93 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT 53 + - + 41 + + CASE 91 WHEN - ( - 36 ) THEN NULL WHEN 10 + + 35 * + 41 THEN - + SUM ( - - 58 ) + + + 41 * - 27 * + 24 + + 69 WHEN NULLIF ( + 15, - - CAST ( - 28 AS INTEGER ) ) * 93 THEN NULL END col1
----
NULL

query I rowsort
SELECT ALL + 97 + - 35 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT CASE + 31 WHEN + 64 * 10 THEN + - COUNT( ALL + - 91 ) - - - 48 * + - 26 END * - COUNT( * ) * + + 32 * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7069
SELECT CASE + 31 WHEN + 64 * 10 THEN + - COUNT ( ALL + - 91 ) - - - 48 * + - 26 END * - COUNT ( * ) * + + 32 * + 51
----
NULL

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

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

query I rowsort
SELECT ALL - 9 + + + 12 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT ALL + - 26 + + COALESCE ( + 15, 20 * - 10 + 19 * + 27 ) + 86 * - COUNT( * ) * - + 30 * - 13 * - ( ( + 34 ) ) AS col2
----
1140349

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL + - 26 + + COALESCE ( + 15, 20 * - 10 + 19 * + 27 ) + 86 * - COUNT ( * ) * - + 30 * - 13 * - ( ( + 34 ) ) AS col2
----
1140349

query I rowsort
SELECT 63 + - 52 + + - 43
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT - MIN( - 80 ) col0
----
80

skipif mysql # not compatible
query I rowsort label-7074
SELECT - MIN ( - 80 ) col0
----
80

query I rowsort
SELECT ALL + + 34 + - 97 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT 42 + - 79 * COUNT( * ) * - 96
----
7626

skipif mysql # not compatible
query I rowsort label-7076
SELECT 42 + - 79 * COUNT ( * ) * - 96
----
7626

query I rowsort
SELECT + 48 * - + 68
----
-3264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7078
SELECT ALL CAST( - ( + - 25 ) AS SIGNED ) AS col0, COUNT( * ) * - 30 + - 47
----
25
-77

skipif mysql # not compatible
query II rowsort label-7078
SELECT ALL CAST ( - ( + - 25 ) AS INTEGER ) AS col0, COUNT ( * ) * - 30 + - 47
----
25
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7079
SELECT 13 DIV - ( 49 ) + - + 63
----
-63

skipif mysql # not compatible
query I rowsort label-7079
SELECT 13 / - ( 49 ) + - + 63
----
-63

query II rowsort
SELECT + 14 * - - 87 AS col1, + 19 AS col0
----
1218
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT ALL + - SUM( - + 38 ) - 90
----
-52

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL + - SUM ( - + 38 ) - 90
----
-52

query II rowsort
SELECT DISTINCT - - ( + - 24 ) - - 74 + - 90 + - - 47 AS col0, 10
----
7
10

query I rowsort
SELECT ALL + NULLIF ( - - 58, 96 ) * - - 12 col1
----
696

onlyif mysql # DIV for integer division: 
query I rowsort label-7084
SELECT DISTINCT - 52 DIV - - 70 * + + 5 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7084
SELECT DISTINCT - 52 / - - 70 * + + 5 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7085
SELECT 47 * + - 78 * + + 8 + + CASE - + 87 WHEN - - 41 + 12 THEN + 0 WHEN 42 * + 35 * + CAST( 53 AS SIGNED ) * - 1 + - - 45 + 84 + + 14 * - 44 * 76 - - 54 THEN + 80 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7085
SELECT 47 * + - 78 * + + 8 + + CASE - + 87 WHEN - - 41 + 12 THEN + 0 WHEN 42 * + 35 * + CAST ( 53 AS INTEGER ) * - 1 + - - 45 + 84 + + 14 * - 44 * 76 - - 54 THEN + 80 END AS col1
----
NULL

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

query II rowsort
SELECT ALL - NULLIF ( + - 21, - 38 + - - ( + 64 ) ) col2, 84 AS col2
----
21
84

query I rowsort
SELECT 3 * + 96
----
288

query I rowsort
SELECT 19 + + + 94
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT DISTINCT - 82 - + CASE WHEN NULL NOT BETWEEN - 53 AND + MIN( ALL - - 62 ) + 53 + - - MAX( 29 ) + - - 9 + 70 * - AVG ( DISTINCT - 88 ) THEN + 24 * 6 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT - 82 - + CASE WHEN NULL NOT BETWEEN - 53 AND + MIN ( ALL - - 62 ) + 53 + - - MAX ( 29 ) + - - 9 + 70 * - AVG ( DISTINCT - 88 ) THEN + 24 * 6 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7091
SELECT ALL CAST( - 15 AS SIGNED ) * 83, 72 + + - 41 col2
----
-1245
31

skipif mysql # not compatible
query II rowsort label-7091
SELECT ALL CAST ( - 15 AS INTEGER ) * 83, 72 + + - 41 col2
----
-1245
31

query I rowsort
SELECT DISTINCT 21 * - 53
----
-1113

query II rowsort
SELECT ALL - 9 AS col0, 52 AS col2
----
-9
52

onlyif mysql # aggregate syntax: 
query II rowsort label-7094
SELECT COUNT( * ) * 22 + - + 83, 41 AS col2
----
-61
41

skipif mysql # not compatible
query II rowsort label-7094
SELECT COUNT ( * ) * 22 + - + 83, 41 AS col2
----
-61
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7095
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + SUM( 97 ) AS col0, - 83 * COUNT( * )
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-7095
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + SUM ( 97 ) AS col0, - 83 * COUNT ( * )
----
NULL
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7096
SELECT 37 DIV - MIN( - 64 ) * + - 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7096
SELECT 37 / - MIN ( - 64 ) * + - 16 AS col2
----
0

query I rowsort
SELECT 73 + + 11 col0
----
84

query I rowsort
SELECT ALL 20 + + - 62 + + - 73 * + ( 52 ) * - - 70 + - 14
----
-265776

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

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

query II rowsort
SELECT 52 AS col2, - 96 * - - 20 + + - 71
----
52
-1991

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7101
SELECT + 95 * - - 55 * + MAX( ALL - 75 ) + + CAST( - COALESCE ( + + 79, + 57 ) AS SIGNED ) + 65 + + 47 + + COUNT( * ) + 5 + + 35 + - 11 * - - 13 + - - 68 + - 80 + - - 6 * + 46 - 43 AS col2
----
-391723

skipif mysql # not compatible
query I rowsort label-7101
SELECT + 95 * - - 55 * + MAX ( ALL - 75 ) + + CAST ( - COALESCE ( + + 79, + 57 ) AS INTEGER ) + 65 + + 47 + + COUNT ( * ) + 5 + + 35 + - 11 * - - 13 + - - 68 + - 80 + - - 6 * + 46 - 43 AS col2
----
-391723

query I rowsort
SELECT ALL 72 + - - 27 + + - 98 * + 47 AS col2
----
-4507

onlyif mysql # DIV for integer division: 
query I rowsort label-7103
SELECT 63 DIV - 17 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7103
SELECT 63 / - 17 AS col1
----
-3

query I rowsort
SELECT DISTINCT 7 + - - ( + 30 ) AS col0
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT - + COUNT( + 99 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7106
SELECT - + COUNT ( + 99 ) col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7107
SELECT ALL 57 DIV + + 54 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL 57 / + + 54 AS col2
----
1

query I rowsort
SELECT DISTINCT + 30 + - 14 AS col2
----
16

query I rowsort
SELECT ALL - 72 + 37 * - 50
----
-1922

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7111
SELECT ALL 85 AS col2, - COUNT( * ) * + ( ( 15 ) ) - 92 + - 45 * + 19
----
85
-962

skipif mysql # not compatible
query II rowsort label-7111
SELECT ALL 85 AS col2, - COUNT ( * ) * + ( ( 15 ) ) - 92 + - 45 * + 19
----
85
-962

query I rowsort
SELECT 57 * - 11 - - 65
----
-562

onlyif mysql # DIV for integer division: 
query II rowsort label-7113
SELECT + 46 + 76 + - - 27 AS col0, 2 DIV + 48
----
149
0

skipif mysql # not compatible
query II rowsort label-7113
SELECT + 46 + 76 + - - 27 AS col0, 2 / + 48
----
149
0

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

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

query I rowsort
SELECT DISTINCT - + 57 - + + 11
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7116
SELECT ALL - 56 - COUNT( * ) + + COALESCE ( COUNT( * ), - ( + NULLIF ( 62, - - 75 + + + SUM( ALL 85 ) ) ) ) + + 94 - + 43 + - CAST( NULL AS SIGNED ) * 52 + - 58 + - + 67 * 1 * + 25 * + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL - 56 - COUNT ( * ) + + COALESCE ( COUNT ( * ), - ( + NULLIF ( 62, - - 75 + + + SUM ( ALL 85 ) ) ) ) + + 94 - + 43 + - CAST ( NULL AS INTEGER ) * 52 + - 58 + - + 67 * 1 * + 25 * + - 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7117
SELECT DISTINCT - ( CAST( - SUM( + 70 ) AS SIGNED ) ) - + 6
----
64

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT - ( CAST ( - SUM ( + 70 ) AS INTEGER ) ) - + 6
----
64

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7120
SELECT ALL - 38 * 0 * - COUNT( * ) DIV + 26 * - - NULLIF ( - 79, + + 97 * + 16 * + + 7 ) * + + COUNT( * ) - + - 75 + + 91 * + + 21 * 59 + + - SUM( 91 ) - 5 * - + 56 AS col1
----
113013

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL - 38 * 0 * - COUNT ( * ) / + 26 * - - NULLIF ( - 79, + + 97 * + 16 * + + 7 ) * + + COUNT ( * ) - + - 75 + + 91 * + + 21 * 59 + + - SUM ( 91 ) - 5 * - + 56 AS col1
----
113013

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7122
SELECT ALL + CASE - COUNT( * ) WHEN + - 7 THEN NULL ELSE - 74 END AS col2, - 22 + - 48 + + COUNT( * ) DIV + COUNT( * ) + + 37 DIV COALESCE ( 96, 7 ), + 45 + - 7 AS col0
----
-74
-69
38

skipif mysql # not compatible
query III rowsort label-7122
SELECT ALL + CASE - COUNT ( * ) WHEN + - 7 THEN NULL ELSE - 74 END AS col2, - 22 + - 48 + + COUNT ( * ) / + COUNT ( * ) + + 37 / COALESCE ( 96, 7 ), + 45 + - 7 AS col0
----
-74
-69
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7123
SELECT + CASE + + ( - 65 ) WHEN 42 THEN CAST( + 71 AS SIGNED ) WHEN - 49 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT + CASE + + ( - 65 ) WHEN 42 THEN CAST ( + 71 AS INTEGER ) WHEN - 49 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7124
SELECT - 80 DIV 10 DIV - CAST( + + 41 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7124
SELECT - 80 / 10 / - CAST ( + + 41 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7125
SELECT - 92 * - CAST( + 33 AS SIGNED )
----
3036

skipif mysql # not compatible
query I rowsort label-7125
SELECT - 92 * - CAST ( + 33 AS INTEGER )
----
3036

query I rowsort
SELECT ( 60 ) * + 50 + - 96
----
2904

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT COALESCE ( ( + 11 ), - - 68 - - 6, + 76 + 2 * + 33 * - COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-7127
SELECT COALESCE ( ( + 11 ), - - 68 - - 6, + 76 + 2 * + 33 * - COUNT ( * ) )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7128
SELECT + 36 DIV - - 95 - + MIN( DISTINCT - 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7128
SELECT + 36 / - - 95 - + MIN ( DISTINCT - 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7129
SELECT DISTINCT + 83 * - + 26 + 66 + - 19 * + COUNT( * ) * - SUM( + 7 ), - 35 + - COUNT( * ) AS col1
----
-1959
-36

skipif mysql # not compatible
query II rowsort label-7129
SELECT DISTINCT + 83 * - + 26 + 66 + - 19 * + COUNT ( * ) * - SUM ( + 7 ), - 35 + - COUNT ( * ) AS col1
----
-1959
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT ALL - 0 * - - 13 + - MAX( + 92 ) / - + CASE + 53 WHEN - 56 THEN NULL WHEN 59 * - MIN( DISTINCT + + 19 ) THEN + 92 / COUNT( * ) * + CASE + - 65 WHEN - + 27 * + 31 THEN - ( 50 ) ELSE NULL END + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL - 0 * - - 13 + - MAX ( + 92 ) / - + CASE + 53 WHEN - 56 THEN NULL WHEN 59 * - MIN ( DISTINCT + + 19 ) THEN + 92 / COUNT ( * ) * + CASE + - 65 WHEN - + 27 * + 31 THEN - ( 50 ) ELSE NULL END + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + + 52, - 82 )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-7132
SELECT ALL + ( + 63 ) AS col1, + 86 + 85 + - COUNT( * ) AS col1
----
63
170

skipif mysql # not compatible
query II rowsort label-7132
SELECT ALL + ( + 63 ) AS col1, + 86 + 85 + - COUNT ( * ) AS col1
----
63
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7133
SELECT ALL 41 * + CAST( + + COUNT( * ) AS SIGNED ) + 23 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL 41 * + CAST ( + + COUNT ( * ) AS INTEGER ) + 23 AS col0
----
64

query I rowsort
SELECT ALL - 88 * + 37
----
-3256

query I rowsort
SELECT DISTINCT - 80 + - 25
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT - + 96 * COUNT( * ) + - + 21
----
-117

skipif mysql # not compatible
query I rowsort label-7136
SELECT - + 96 * COUNT ( * ) + - + 21
----
-117

onlyif mysql # DIV for integer division: 
query II rowsort label-7137
SELECT - 47 + NULLIF ( - + 54, - 86 ) AS col1, 35 DIV - - 33 AS col2
----
-101
1

skipif mysql # not compatible
query II rowsort label-7137
SELECT - 47 + NULLIF ( - + 54, - 86 ) AS col1, 35 / - - 33 AS col2
----
-101
1

query I rowsort
SELECT - 60 + 2 AS col2
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7139
SELECT + NULLIF ( - NULLIF ( ( 80 ), + - COUNT( * ) ), - 39 - - + COUNT( * ) ) DIV + ( - 16 ) + + + MAX( 19 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-7139
SELECT + NULLIF ( - NULLIF ( ( 80 ), + - COUNT ( * ) ), - 39 - - + COUNT ( * ) ) / + ( - 16 ) + + + MAX ( 19 ) AS col1
----
24

query I rowsort
SELECT + 74 + + 92 - - ( - - 27 ) * + ( + 95 ) * 67 * 22 * + - 42 AS col2
----
-158793854

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

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL 13 - - COUNT ( * ) + + 15 AS col1
----
29

query I rowsort
SELECT ALL 27 * + 56
----
1512

query I rowsort
SELECT ALL - 69 * NULLIF ( 86, + 9 / + - 84 )
----
-5934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7144
SELECT ALL + MIN( 90 ) * + COUNT( * ) * + 52 * + CAST( - 29 AS SIGNED ) AS col1
----
-135720

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL + MIN ( 90 ) * + COUNT ( * ) * + 52 * + CAST ( - 29 AS INTEGER ) AS col1
----
-135720

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT DISTINCT ( + 64 ) * 55 + - 82 * - MIN( - + 41 )
----
158

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT ( + 64 ) * 55 + - 82 * - MIN ( - + 41 )
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT DISTINCT - 67 * COUNT( - + 16 ) * - 35 + - 54 AS col1
----
2291

skipif mysql # not compatible
query I rowsort label-7146
SELECT DISTINCT - 67 * COUNT ( - + 16 ) * - 35 + - 54 AS col1
----
2291

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7148
SELECT - 60 - + COUNT( * ) * + 89 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7148
SELECT - 60 - + COUNT ( * ) * + 89 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7151
SELECT ALL 82 DIV - - COALESCE ( + 60, 84 * 75 ) + + 5 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL 82 / - - COALESCE ( + 60, 84 * 75 ) + + 5 AS col1
----
6

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

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

query I rowsort
SELECT ALL - 65 * - 76
----
4940

onlyif mysql # aggregate syntax: 
query II rowsort label-7154
SELECT - 38 * COUNT( - 24 ), + 59 * + - 65 AS col0
----
-38
-3835

skipif mysql # not compatible
query II rowsort label-7154
SELECT - 38 * COUNT ( - 24 ), + 59 * + - 65 AS col0
----
-38
-3835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7155
SELECT CAST( - - COUNT( DISTINCT - 83 ) AS SIGNED ), + 39 + + - 38 col2
----
1
1

skipif mysql # not compatible
query II rowsort label-7155
SELECT CAST ( - - COUNT ( DISTINCT - 83 ) AS INTEGER ), + 39 + + - 38 col2
----
1
1

query II rowsort
SELECT + 94 AS col0, - 6 * 99 + + 69
----
94
-525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7157
SELECT - 32 DIV 52 + - CASE 17 WHEN - 5 + + COUNT( * ) * - 5 THEN NULL ELSE - MAX( ALL 13 ) END
----
13

skipif mysql # not compatible
query I rowsort label-7157
SELECT - 32 / 52 + - CASE 17 WHEN - 5 + + COUNT ( * ) * - 5 THEN NULL ELSE - MAX ( ALL 13 ) END
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7158
SELECT DISTINCT + NULLIF ( COUNT( * ), + 72 + 40 + + MIN( + 72 ) - - 5 / - CAST( NULL AS SIGNED ) / 71 - - 54 * - 0 * + 85 * + 96 ) AS col0, 22 AS col2
----
1
22

skipif mysql # not compatible
query II rowsort label-7158
SELECT DISTINCT + NULLIF ( COUNT ( * ), + 72 + 40 + + MIN ( + 72 ) - - 5 / - CAST ( NULL AS INTEGER ) / 71 - - 54 * - 0 * + 85 * + 96 ) AS col0, 22 AS col2
----
1
22

query I rowsort
SELECT ALL - 65 * + NULLIF ( + 7, - 15 )
----
-455

query I rowsort
SELECT + 2 + - - 13
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7161
SELECT + 50 * - - COUNT( * ) * + COUNT( * ) - + CAST( - 87 AS SIGNED ) AS col2, - 23 AS col0
----
137
-23

skipif mysql # not compatible
query II rowsort label-7161
SELECT + 50 * - - COUNT ( * ) * + COUNT ( * ) - + CAST ( - 87 AS INTEGER ) AS col2, - 23 AS col0
----
137
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7162
SELECT ALL CAST( - 52 AS SIGNED ) * - NULLIF ( COUNT( * ), 35 ) + + 79 AS col2
----
131

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL CAST ( - 52 AS INTEGER ) * - NULLIF ( COUNT ( * ), 35 ) + + 79 AS col2
----
131

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

query I rowsort
SELECT ALL 61 * + 4
----
244

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT + ( - 14 ) * + 4 * ( - ( + COUNT( * ) ) ) + + 83
----
139

skipif mysql # not compatible
query I rowsort label-7165
SELECT + ( - 14 ) * + 4 * ( - ( + COUNT ( * ) ) ) + + 83
----
139

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

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

query I rowsort
SELECT ALL - 2 * - 23 AS col1
----
46

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7169
SELECT - ( - - 83 ) + 88 * - 60 * - 49 * + 22 * - - 39 * - 8 * - ( - CAST( NULL AS SIGNED ) ) * + ( - - 78 ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT - ( - - 83 ) + 88 * - 60 * - 49 * + 22 * - - 39 * - 8 * - ( - CAST ( NULL AS INTEGER ) ) * + ( - - 78 ) - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 12 * - 30 - 39
----
-399

query I rowsort
SELECT COALESCE ( 86, 32 )
----
86

query I rowsort
SELECT - 13 * 48
----
-624

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT - CASE - 54 WHEN + SUM( DISTINCT - 67 ) THEN 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7174
SELECT - CASE - 54 WHEN + SUM ( DISTINCT - 67 ) THEN 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT - COUNT( * ) * 70 + 36
----
-34

skipif mysql # not compatible
query I rowsort label-7175
SELECT - COUNT ( * ) * 70 + 36
----
-34

query I rowsort
SELECT + 71 + 23 * 88
----
2095

query I rowsort
SELECT - 82 * + 67 AS col2
----
-5494

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

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

query I rowsort
SELECT ALL - 31 - 23
----
-54

query I rowsort
SELECT 29 * + 94
----
2726

query I rowsort
SELECT DISTINCT 4 + 71
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7182
SELECT ALL 63 DIV + 27
----
2

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL 63 / + 27
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT ALL - 41 + ( 92 ) * - COUNT( * ) AS col0
----
-133

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL - 41 + ( 92 ) * - COUNT ( * ) AS col0
----
-133

query I rowsort
SELECT DISTINCT 98 * - 45 col2
----
-4410

query I rowsort
SELECT ALL 57 + NULLIF ( - 32, 18 / 49 ) AS col1
----
25

query I rowsort
SELECT 54 + 26 * 12 AS col1
----
366

query I rowsort
SELECT DISTINCT 68 + + 18
----
86

query I rowsort
SELECT ( - 93 ) + - 28
----
-121

query I rowsort
SELECT ALL 3 + 78 AS col1
----
81

query I rowsort
SELECT ALL 21 + 28 * - 41 AS col2
----
-1127

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT 44 * MAX( DISTINCT - 76 ) AS col1
----
-3344

skipif mysql # not compatible
query I rowsort label-7191
SELECT 44 * MAX ( DISTINCT - 76 ) AS col1
----
-3344

query I rowsort
SELECT DISTINCT 56 + 28 AS col1
----
84

query I rowsort
SELECT DISTINCT 14 + 70
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7194
SELECT + CAST( + AVG ( ALL - 9 ) AS SIGNED ) * + 7 + 31
----
-32

skipif mysql # not compatible
query I rowsort label-7194
SELECT + CAST ( + AVG ( ALL - 9 ) AS INTEGER ) * + 7 + 31
----
-32

query I rowsort
SELECT DISTINCT 2 * - 92 AS col1
----
-184

query I rowsort
SELECT DISTINCT 20 + 56 * 77 AS col1
----
4332

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT DISTINCT + COALESCE ( - 82, + 50 * 2 ) * COUNT( - 12 )
----
-82

skipif mysql # not compatible
query I rowsort label-7198
SELECT DISTINCT + COALESCE ( - 82, + 50 * 2 ) * COUNT ( - 12 )
----
-82

query I rowsort
SELECT 69 - + 54 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT CASE - COUNT( * ) WHEN - 50 THEN - 18 + + 25 * 44 WHEN + 65 THEN NULL ELSE - 81 + - 80 END * 42
----
-6762

skipif mysql # not compatible
query I rowsort label-7200
SELECT CASE - COUNT ( * ) WHEN - 50 THEN - 18 + + 25 * 44 WHEN + 65 THEN NULL ELSE - 81 + - 80 END * 42
----
-6762

onlyif mysql # DIV for integer division: 
query I rowsort label-7201
SELECT + 85 DIV + 31
----
2

skipif mysql # not compatible
query I rowsort label-7201
SELECT + 85 / + 31
----
2

query I rowsort
SELECT + 43 * 38 col0
----
1634

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

skipif mysql # not compatible
query I rowsort label-7203
SELECT - 52 / COUNT ( * ) col2
----
-52

query I rowsort
SELECT DISTINCT - 91 * 44 AS col2
----
-4004

onlyif mysql # DIV for integer division: 
query I rowsort label-7205
SELECT ALL + + 0 DIV - 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL + + 0 / - 97 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT DISTINCT - NULLIF ( MAX( ALL 92 ), NULLIF ( + 36, + 95 ) + + COUNT( * ) )
----
-92

skipif mysql # not compatible
query I rowsort label-7206
SELECT DISTINCT - NULLIF ( MAX ( ALL 92 ), NULLIF ( + 36, + 95 ) + + COUNT ( * ) )
----
-92

query I rowsort
SELECT 65 + - 81 AS col1
----
-16

query I rowsort
SELECT + 1 * + CASE - 9 / - 68 WHEN 88 * 73 THEN 71 WHEN 53 THEN 59 ELSE - 17 END AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT NULLIF ( - 20, 77 + + COUNT( * ) * 8 ) + - 84 * + 28
----
-2372

skipif mysql # not compatible
query I rowsort label-7209
SELECT NULLIF ( - 20, 77 + + COUNT ( * ) * 8 ) + - 84 * + 28
----
-2372

query I rowsort
SELECT ALL + 34 + 55
----
89

query I rowsort
SELECT + 59 + 51 AS col0
----
110

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

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

query I rowsort
SELECT - ( 63 ) * 32
----
-2016

query I rowsort
SELECT 32 * 75
----
2400

query I rowsort
SELECT ALL - 42 + + 77
----
35

query I rowsort
SELECT DISTINCT + 84 * 67 AS col0
----
5628

query I rowsort
SELECT ALL - 26 + ( - 28 ) AS col1
----
-54

query I rowsort
SELECT DISTINCT - - 66 + 82 AS col1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT ALL ( + 77 ) * - COUNT( DISTINCT 76 / 28 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL ( + 77 ) * - COUNT ( DISTINCT 76 / 28 ) AS col2
----
-77

query I rowsort
SELECT ALL 16 + + NULLIF ( 94, NULLIF ( 57, + 54 ) )
----
110

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

query I rowsort
SELECT DISTINCT + 47 + + + ( + 56 ) * 54 AS col0
----
3071

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT SUM( - 42 ) * + 10 AS col1
----
-420

skipif mysql # not compatible
query I rowsort label-7223
SELECT SUM ( - 42 ) * + 10 AS col1
----
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-7224
SELECT ALL 73 DIV 19
----
3

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL 73 / 19
----
3

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

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

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

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

query I rowsort
SELECT ALL 43 * + 82 * + 88 AS col2
----
310288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7228
SELECT ALL 60 * - + CAST( NULL AS SIGNED ) - + 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7228
SELECT ALL 60 * - + CAST ( NULL AS INTEGER ) - + 8 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT DISTINCT 61 * + - 69 * COUNT( * )
----
-4209

skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT 61 * + - 69 * COUNT ( * )
----
-4209

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7230
SELECT DISTINCT 72 * CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT 72 * CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT + 79 * + 36 + 68 * + COALESCE ( + 91 + - 76 * 6, 30 ) AS col1
----
-21976

onlyif mysql # DIV for integer division: 
query I rowsort label-7232
SELECT 72 DIV + + 87 * 9 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7232
SELECT 72 / + + 87 * 9 AS col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT 30 * + 24 - 46 DIV 3
----
705

skipif mysql # not compatible
query I rowsort label-7234
SELECT 30 * + 24 - 46 / 3
----
705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7235
SELECT COUNT( 47 ) + + 93 DIV - 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7235
SELECT COUNT ( 47 ) + + 93 / - 77 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7236
SELECT - ( 65 ) DIV 33 - 92
----
-93

skipif mysql # not compatible
query I rowsort label-7236
SELECT - ( 65 ) / 33 - 92
----
-93

query I rowsort
SELECT ALL - - 38 * - - 86 * - 45 - 48 AS col0
----
-147108

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT + 52 * + + 59 * 41 + + MAX( COALESCE ( ( - 25 ), 18 * 10 + 58 ) ) * 63
----
124213

skipif mysql # not compatible
query I rowsort label-7238
SELECT + 52 * + + 59 * 41 + + MAX ( COALESCE ( ( - 25 ), 18 * 10 + 58 ) ) * 63
----
124213

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7240
SELECT + 40 * + 56 + + COALESCE ( 26, + COALESCE ( 29, 92 ) ) DIV - 11 AS col2
----
2238

skipif mysql # not compatible
query I rowsort label-7240
SELECT + 40 * + 56 + + COALESCE ( 26, + COALESCE ( 29, 92 ) ) / - 11 AS col2
----
2238

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

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL COUNT ( * ) * + 30 AS col0
----
30

query I rowsort
SELECT DISTINCT + + NULLIF ( + + 79, - ( - 70 ) ) AS col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7243
SELECT + 63 + - COALESCE ( 75, + COUNT( * ) - - NULLIF ( 9 + - COUNT( * ) DIV - 11, CAST( 11 AS SIGNED ) DIV + 25 ), - ( 62 ), 96 ) * 86
----
-6387

skipif mysql # not compatible
query I rowsort label-7243
SELECT + 63 + - COALESCE ( 75, + COUNT ( * ) - - NULLIF ( 9 + - COUNT ( * ) / - 11, CAST ( 11 AS INTEGER ) / + 25 ), - ( 62 ), 96 ) * 86
----
-6387

onlyif mysql # DIV for integer division: 
query I rowsort label-7244
SELECT DISTINCT 55 DIV - 16 + - 71 col2
----
-74

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT 55 / - 16 + - 71 col2
----
-74

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7246
SELECT DISTINCT 64 * - + ( - NULLIF ( - 39, NULLIF ( + SUM( 39 ), - CAST( NULL AS SIGNED ) / 64 + COUNT( 65 ) * - CAST( 99 AS SIGNED ) ) ) ) + NULLIF ( 39, - 95 * 94 + + 23 / - 34 ) AS col2
----
-2457

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT 64 * - + ( - NULLIF ( - 39, NULLIF ( + SUM ( 39 ), - CAST ( NULL AS INTEGER ) / 64 + COUNT ( 65 ) * - CAST ( 99 AS INTEGER ) ) ) ) + NULLIF ( 39, - 95 * 94 + + 23 / - 34 ) AS col2
----
-2457

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT DISTINCT 78 + + - MIN( - 41 )
----
119

skipif mysql # not compatible
query I rowsort label-7247
SELECT DISTINCT 78 + + - MIN ( - 41 )
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7248
SELECT - + CASE + 51 WHEN 43 * 37 THEN + CAST( + 28 AS SIGNED ) / CAST( + 79 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7248
SELECT - + CASE + 51 WHEN 43 * 37 THEN + CAST ( + 28 AS INTEGER ) / CAST ( + 79 AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 55 + - 71
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7250
SELECT ALL - 97 + - 48 + NULLIF ( 60, + ( CAST( NULL AS SIGNED ) ) * 12 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL - 97 + - 48 + NULLIF ( 60, + ( CAST ( NULL AS INTEGER ) ) * 12 ) AS col2
----
-85

query I rowsort
SELECT ALL + + 92 + + 65
----
157

query I rowsort
SELECT DISTINCT - + 30 + + 7 + - 4
----
-27

query I rowsort
SELECT DISTINCT ( + 43 ) + + + 1 AS col0
----
44

query I rowsort
SELECT + 10 * 61 AS col1
----
610

query I rowsort
SELECT - 15 * + + 63 AS col2
----
-945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7256
SELECT ALL - 33 / - SUM( ALL CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL - 33 / - SUM ( ALL CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT ALL + 78 + - - 40 + 5 * 78 col1
----
508

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7258
SELECT 2, + 96 * - + COALESCE ( ( 94 ), 92 + CAST( - AVG ( CAST( NULL AS SIGNED ) ) + - 54 AS SIGNED ) * 64, 39 ) col2
----
2
-9024

skipif mysql # not compatible
query II rowsort label-7258
SELECT 2, + 96 * - + COALESCE ( ( 94 ), 92 + CAST ( - AVG ( CAST ( NULL AS INTEGER ) ) + - 54 AS INTEGER ) * 64, 39 ) col2
----
2
-9024

query I rowsort
SELECT ALL 44 - + 30
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7260
SELECT - ( + - 56 ) * NULLIF ( + COUNT( * ), 9 ) DIV 35 + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7260
SELECT - ( + - 56 ) * NULLIF ( + COUNT ( * ), 9 ) / 35 + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT ALL - 79 - 83 AS col1
----
-162

query II rowsort
SELECT - 45 AS col1, + 39 AS col1
----
-45
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT ALL - 43 * - - COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL - 43 * - - COUNT ( * ) AS col2
----
-43

query II rowsort
SELECT ALL 1 AS col2, 76 AS col0
----
1
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7265
SELECT ( - ( - - 8 ) ) DIV 19 + 25
----
25

skipif mysql # not compatible
query I rowsort label-7265
SELECT ( - ( - - 8 ) ) / 19 + 25
----
25

query I rowsort
SELECT + 78 * - 89
----
-6942

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT - 90 * - - SUM( DISTINCT + 58 ) * 90
----
-469800

skipif mysql # not compatible
query I rowsort label-7267
SELECT - 90 * - - SUM ( DISTINCT + 58 ) * 90
----
-469800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7268
SELECT 35 * + 17 * + CAST( - ( + 87 ) AS SIGNED ) + - 50 AS col1
----
-51815

skipif mysql # not compatible
query I rowsort label-7268
SELECT 35 * + 17 * + CAST ( - ( + 87 ) AS INTEGER ) + - 50 AS col1
----
-51815

onlyif mysql # DIV for integer division: 
query I rowsort label-7269
SELECT DISTINCT - 89 DIV - 20
----
4

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT - 89 / - 20
----
4

query II rowsort
SELECT DISTINCT + 95 AS col1, + 35 col1
----
95
35

query I rowsort
SELECT ALL - COALESCE ( + + 59, + 84 ) * + 48 AS col0
----
-2832

onlyif mysql # DIV for integer division: 
query I rowsort label-7272
SELECT - - ( + 70 ) DIV ( + 2 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7272
SELECT - - ( + 70 ) / ( + 2 ) AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7273
SELECT + - 47 / - CASE - - 26 WHEN COUNT( * ) THEN + ( - 77 ) * - NULLIF ( - 87 * 67 + - 56 * + 62, CAST( NULL AS DECIMAL ) + + COUNT( DISTINCT 34 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT + - 47 / - CASE - - 26 WHEN COUNT ( * ) THEN + ( - 77 ) * - NULLIF ( - 87 * 67 + - 56 * + 62, CAST ( NULL AS REAL ) + + COUNT ( DISTINCT 34 ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7274
SELECT ALL - 68 * COALESCE ( + ( 94 ), MIN( DISTINCT 42 ) * 1, 96 + + SUM( DISTINCT + 34 + - 57 ), + CASE COUNT( * ) WHEN + 79 THEN + 47 DIV 38 WHEN 53 * + 0 THEN NULL END * + COUNT( + 9 ) ) * - 78 + + 98 AS col0
----
498674

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL - 68 * COALESCE ( + ( 94 ), MIN ( DISTINCT 42 ) * 1, 96 + + SUM ( DISTINCT + 34 + - 57 ), + CASE COUNT ( * ) WHEN + 79 THEN + 47 / 38 WHEN 53 * + 0 THEN NULL END * + COUNT ( + 9 ) ) * - 78 + + 98 AS col0
----
498674

query I rowsort
SELECT + + NULLIF ( - 34, 44 * - 4 ) col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7276
SELECT - 20 * CAST( NULL AS SIGNED ) - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7276
SELECT - 20 * CAST ( NULL AS INTEGER ) - 9
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7277
SELECT 23, 49 * - 24 * COUNT( * ) AS col1
----
23
-1176

skipif mysql # not compatible
query II rowsort label-7277
SELECT 23, 49 * - 24 * COUNT ( * ) AS col1
----
23
-1176

query I rowsort
SELECT ALL 53 * - 18 AS col1
----
-954

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT ALL + + 13 * 57 + + + 8 + 95 + COUNT( * ) col2
----
845

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL + + 13 * 57 + + + 8 + 95 + COUNT ( * ) col2
----
845

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

skipif mysql # not compatible
query I rowsort label-7280
SELECT + - NULLIF ( - COUNT ( * ), + 18 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT + 41 * - COUNT( * ) + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-7281
SELECT + 41 * - COUNT ( * ) + COUNT ( * )
----
-40

query I rowsort
SELECT ALL + 31 * 15 + 10 AS col2
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT DISTINCT - MIN( ALL - 98 ) * - 88 + - ( - 78 ) AS col1
----
-8546

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT - MIN ( ALL - 98 ) * - 88 + - ( - 78 ) AS col1
----
-8546

query II rowsort
SELECT 29 AS col1, 0 * - + 91 col2
----
29
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT ALL + 67 * COUNT( * ) * - 92 + - COALESCE ( COUNT( * ) + 74, - 87 * 38, - 18 + - 14 )
----
-6239

skipif mysql # not compatible
query I rowsort label-7285
SELECT ALL + 67 * COUNT ( * ) * - 92 + - COALESCE ( COUNT ( * ) + 74, - 87 * 38, - 18 + - 14 )
----
-6239

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7286
SELECT + + 20 - ( 44 ) - - SUM( DISTINCT - 61 ) DIV + 13
----
-28

skipif mysql # not compatible
query I rowsort label-7286
SELECT + + 20 - ( 44 ) - - SUM ( DISTINCT - 61 ) / + 13
----
-28

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT + - NULLIF ( 87, CAST( + 80 AS SIGNED ) - - 73 ) - + 99 * - 81
----
7932

skipif mysql # not compatible
query I rowsort label-7288
SELECT + - NULLIF ( 87, CAST ( + 80 AS INTEGER ) - - 73 ) - + 99 * - 81
----
7932

query I rowsort
SELECT ALL + 34 * - 18 - + COALESCE ( ( + 36 ), + 47, + 77 ) AS col2
----
-648

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

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

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL + COUNT ( * ) * + ( - 72 ) - CAST ( NULL AS INTEGER ) + 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT ALL 80 * + SUM( + 2 )
----
160

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL 80 * + SUM ( + 2 )
----
160

query I rowsort
SELECT + 86 + - 72 + - 81 + - 86
----
-153

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT ALL 98 * - SUM( + 59 )
----
-5782

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL 98 * - SUM ( + 59 )
----
-5782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7296
SELECT - CAST( 56 AS SIGNED ) - - 45 + - 11 * + 45 col0
----
-506

skipif mysql # not compatible
query I rowsort label-7296
SELECT - CAST ( 56 AS INTEGER ) - - 45 + - 11 * + 45 col0
----
-506

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT - ( + MIN( - + 7 ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7298
SELECT - ( + MIN ( - + 7 ) ) AS col1
----
7

query I rowsort
SELECT + 39 + - - 34 AS col1
----
73

query I rowsort
SELECT ALL 44 * 77
----
3388

query I rowsort
SELECT + 56 * + + 69
----
3864

query I rowsort
SELECT ALL NULLIF ( - 14, - 72 + - - 52 ) AS col1
----
-14

query I rowsort
SELECT ALL CASE 1 WHEN - 84 + - + 52 * 22 THEN + 77 - - 27 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 38 * + - 84 AS col2
----
-3192

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT DISTINCT 97 * + 38 * CASE + + ( + 67 ) WHEN 32 THEN NULL WHEN - 60 / COUNT( 34 ) THEN + 51 * - COUNT( * ) WHEN - 9 THEN NULL ELSE - 48 END
----
-176928

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT 97 * + 38 * CASE + + ( + 67 ) WHEN 32 THEN NULL WHEN - 60 / COUNT ( 34 ) THEN + 51 * - COUNT ( * ) WHEN - 9 THEN NULL ELSE - 48 END
----
-176928

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT - NULLIF ( - 40, + 22 * COUNT( * ) - + 47 ) * MAX( - 56 )
----
-2240

skipif mysql # not compatible
query I rowsort label-7306
SELECT - NULLIF ( - 40, + 22 * COUNT ( * ) - + 47 ) * MAX ( - 56 )
----
-2240

query I rowsort
SELECT - 2 * - + 15 AS col2
----
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT 97 * + NULLIF ( 54, - + NULLIF ( 52, + COUNT( * ) ) - 74 )
----
5238

skipif mysql # not compatible
query I rowsort label-7309
SELECT 97 * + NULLIF ( 54, - + NULLIF ( 52, + COUNT ( * ) ) - 74 )
----
5238

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT ALL - COALESCE ( + 14, COUNT( * ) * 50 * + 13 ) * 46 AS col0
----
-644

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL - COALESCE ( + 14, COUNT ( * ) * 50 * + 13 ) * 46 AS col0
----
-644

query I rowsort
SELECT DISTINCT - - 39 + - 96
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT ALL + - 76 + - + COUNT( * ) + - 81
----
-158

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL + - 76 + - + COUNT ( * ) + - 81
----
-158

query I rowsort
SELECT - + CASE - 24 WHEN + 12 THEN - + 60 * + 38 END * 37 + - 0 * 3
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7314
SELECT 17 + + 42 DIV - 29 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-7314
SELECT 17 + + 42 / - 29 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7315
SELECT + ( + 22 ) * + + 77 - + CASE 71 WHEN + 3 THEN + 87 DIV - CASE 85 WHEN 59 THEN NULL WHEN 84 THEN 63 END + NULLIF ( 76, 48 ) ELSE 72 END + + 2 * - 70 - - 67
----
1549

skipif mysql # not compatible
query I rowsort label-7315
SELECT + ( + 22 ) * + + 77 - + CASE 71 WHEN + 3 THEN + 87 / - CASE 85 WHEN 59 THEN NULL WHEN 84 THEN 63 END + NULLIF ( 76, 48 ) ELSE 72 END + + 2 * - 70 - - 67
----
1549

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7316
SELECT - 11 + + COUNT( * ) + + 83 + + NULLIF ( + CAST( NULL AS SIGNED ), 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7316
SELECT - 11 + + COUNT ( * ) + + 83 + + NULLIF ( + CAST ( NULL AS INTEGER ), 75 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7317
SELECT + 84 DIV - 67 - 28 + - 59 + + ( + COUNT( * ) )
----
-87

skipif mysql # not compatible
query I rowsort label-7317
SELECT + 84 / - 67 - 28 + - 59 + + ( + COUNT ( * ) )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT ALL - - MIN( - 65 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL - - MIN ( - 65 ) AS col0
----
-65

query I rowsort
SELECT ALL - + 88 + 69
----
-19

query I rowsort
SELECT - 80 * - - 49 - + 92 * 8 * 32 + + 66 + - 41 AS col2
----
-27447

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT COUNT( * ) * + 32 * 16 + - MIN( - 51 ) * COALESCE ( - COUNT( * ), 5 ) AS col1
----
461

skipif mysql # not compatible
query I rowsort label-7321
SELECT COUNT ( * ) * + 32 * 16 + - MIN ( - 51 ) * COALESCE ( - COUNT ( * ), 5 ) AS col1
----
461

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT DISTINCT - - NULLIF ( - + NULLIF ( + MAX( ALL + + CASE + 59 WHEN 90 THEN NULL ELSE ( + 2 ) END ), - 73 * NULLIF ( 61, ( 54 ) ) + - 57 ), 98 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7322
SELECT DISTINCT - - NULLIF ( - + NULLIF ( + MAX ( ALL + + CASE + 59 WHEN 90 THEN NULL ELSE ( + 2 ) END ), - 73 * NULLIF ( 61, ( 54 ) ) + - 57 ), 98 ) AS col0
----
-2

query II rowsort
SELECT ALL 0 * + 33 AS col1, 17 - + - ( + 56 ) + - 93
----
0
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT DISTINCT + 52 * - - 59 + + COUNT( ALL - + 10 ) - - ( 68 + - 81 )
----
3056

skipif mysql # not compatible
query I rowsort label-7324
SELECT DISTINCT + 52 * - - 59 + + COUNT ( ALL - + 10 ) - - ( 68 + - 81 )
----
3056

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT ALL - - COUNT( * ) - - 42 + + - 90
----
-47

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL - - COUNT ( * ) - - 42 + + - 90
----
-47

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7327
SELECT - 27 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-7327
SELECT - 27 / - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT + + 62 * + 22 + COUNT( * ) + CASE - 58 WHEN 8 THEN COUNT( * ) * - AVG ( + 35 ) END / + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-7328
SELECT + + 62 * + 22 + COUNT ( * ) + CASE - 58 WHEN 8 THEN COUNT ( * ) * - AVG ( + 35 ) END / + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT ALL 71 * + COUNT( 74 )
----
71

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL 71 * + COUNT ( 74 )
----
71

query I rowsort
SELECT ( ( - 78 ) ) * - ( 51 ) + + 14
----
3992

onlyif mysql # aggregate syntax: 
query II rowsort label-7331
SELECT - 32 AS col2, CASE 50 WHEN + COUNT( DISTINCT - - 2 ) THEN - ( - 10 ) END
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-7331
SELECT - 32 AS col2, CASE 50 WHEN + COUNT ( DISTINCT - - 2 ) THEN - ( - 10 ) END
----
-32
NULL

query I rowsort
SELECT 78 + + + 25 + ( 61 ) + + 65 + + 53 * 6 * 98 AS col0
----
31393

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

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

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

query III rowsort
SELECT ALL 8 AS col2, + ( 27 ), 45 AS col1
----
8
27
45

query I rowsort
SELECT ( + 90 ) + + 83 + + + 90 * + 67 + - COALESCE ( + 54, 25 )
----
6149

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT 53 * + MAX( DISTINCT 13 )
----
689

skipif mysql # not compatible
query I rowsort label-7337
SELECT 53 * + MAX ( DISTINCT 13 )
----
689

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT ALL CASE 26 WHEN COUNT( * ) + + - 22 THEN + 73 + + 10 WHEN + 63 THEN NULL ELSE NULL END + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL CASE 26 WHEN COUNT ( * ) + + - 22 THEN + 73 + + 10 WHEN + 63 THEN NULL ELSE NULL END + 75
----
NULL

query I rowsort
SELECT ALL 3 + 82 AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7340
SELECT 86 DIV - - COALESCE ( 7, - 58 * 6 + 30 * 14, - 24 + - 55 ) + 27
----
39

skipif mysql # not compatible
query I rowsort label-7340
SELECT 86 / - - COALESCE ( 7, - 58 * 6 + 30 * 14, - 24 + - 55 ) + 27
----
39

query I rowsort
SELECT + 52 + 27
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7342
SELECT DISTINCT - 8 DIV + 90 + + COALESCE ( - ( 17 ), - 44 + 30 ) * 10 col0
----
-170

skipif mysql # not compatible
query I rowsort label-7342
SELECT DISTINCT - 8 / + 90 + + COALESCE ( - ( 17 ), - 44 + 30 ) * 10 col0
----
-170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7343
SELECT ALL - + COALESCE ( + COUNT( * ), - - NULLIF ( + 86, + CAST( NULL AS SIGNED ) ) * 42, MIN( ( 6 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL - + COALESCE ( + COUNT ( * ), - - NULLIF ( + 86, + CAST ( NULL AS INTEGER ) ) * 42, MIN ( ( 6 ) ) ) AS col2
----
-1

query I rowsort
SELECT COALESCE ( - COALESCE ( + NULLIF ( 9, + 21 ), 66 * + 29 + + 13 ), COALESCE ( + 43, + 66 + 66 ) ) * 66 AS col0
----
-594

query I rowsort
SELECT + 45 * + 2 + - 80
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7346
SELECT CASE 89 WHEN + CAST( - - 89 AS SIGNED ) THEN NULL ELSE CAST( CASE - 91 WHEN 75 THEN - 42 * + 63 + + 44 / + 85 WHEN 70 THEN AVG ( - ( + 84 ) ) + 10 * - 83 END AS SIGNED ) / - 63 + 37 * ( 48 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7346
SELECT CASE 89 WHEN + CAST ( - - 89 AS INTEGER ) THEN NULL ELSE CAST ( CASE - 91 WHEN 75 THEN - 42 * + 63 + + 44 / + 85 WHEN 70 THEN AVG ( - ( + 84 ) ) + 10 * - 83 END AS INTEGER ) / - 63 + 37 * ( 48 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7347
SELECT ALL + MIN( DISTINCT - 34 ) + + 84 * - 5 / CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL + MIN ( DISTINCT - 34 ) + + 84 * - 5 / CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT NULLIF ( + 60, - COUNT( * ) * + 75 + - 73 ) col0
----
60

skipif mysql # not compatible
query I rowsort label-7348
SELECT NULLIF ( + 60, - COUNT ( * ) * + 75 + - 73 ) col0
----
60

query I rowsort
SELECT 55 * - 67 * - 62 + 16 * 34 AS col0
----
229014

onlyif mysql # DIV for integer division: 
query I rowsort label-7350
SELECT + COALESCE ( + 28, 36, CASE WHEN NULL IS NULL THEN 80 END * + 5 - - 40 DIV + NULLIF ( 46, 77 ) )
----
28

skipif mysql # not compatible
query I rowsort label-7350
SELECT + COALESCE ( + 28, 36, CASE WHEN NULL IS NULL THEN 80 END * + 5 - - 40 / + NULLIF ( 46, 77 ) )
----
28

query I rowsort
SELECT DISTINCT - 56 * - 43 col0
----
2408

query I rowsort
SELECT ALL + - 57 - 30 AS col0
----
-87

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

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

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

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

query I rowsort
SELECT 34 - + 46 col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7356
SELECT + 68 * CAST( + - 11 AS SIGNED ), 20 AS col2
----
-748
20

skipif mysql # not compatible
query II rowsort label-7356
SELECT + 68 * CAST ( + - 11 AS INTEGER ), 20 AS col2
----
-748
20

query II rowsort
SELECT DISTINCT + 7 * + ( + 13 ) col0, - 75 * - 75 + + 88 AS col0
----
91
5713

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT + 73 * - 43 - + - SUM( - 42 ) + - 73 - 39
----
-3293

skipif mysql # not compatible
query I rowsort label-7358
SELECT + 73 * - 43 - + - SUM ( - 42 ) + - 73 - 39
----
-3293

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7360
SELECT + + 27, 30 DIV + ( + 21 ) AS col2
----
27
1

skipif mysql # not compatible
query II rowsort label-7360
SELECT + + 27, 30 / + ( + 21 ) AS col2
----
27
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7361
SELECT ALL - 37 AS col2, NULLIF ( + + 66, - ( - + ( - AVG ( + 41 ) ) ) + MAX( + 44 ) )
----
-37
66

skipif mysql # not compatible
query II rowsort label-7361
SELECT ALL - 37 AS col2, NULLIF ( + + 66, - ( - + ( - AVG ( + 41 ) ) ) + MAX ( + 44 ) )
----
-37
66

query I rowsort
SELECT 82 - + 35 AS col0
----
47

query II rowsort
SELECT ALL 29 AS col0, - 96
----
29
-96

query I rowsort
SELECT 84 * + 20 - - 94 + - 62 * - 79 col2
----
6672

query I rowsort
SELECT 62 * 50 AS col1
----
3100

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT COUNT( * ) * - - 97 * + 90 AS col2
----
8730

skipif mysql # not compatible
query I rowsort label-7366
SELECT COUNT ( * ) * - - 97 * + 90 AS col2
----
8730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7367
SELECT NULLIF ( + 51, + 67 + - 64 + - + ( - 63 ) DIV COUNT( * ) ) DIV COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-7367
SELECT NULLIF ( + 51, + 67 + - 64 + - + ( - 63 ) / COUNT ( * ) ) / COUNT ( * )
----
51

query I rowsort
SELECT ALL + 75 * + COALESCE ( 99, 25, + 69 * - 23 + 96 )
----
7425

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7369
SELECT ALL - COALESCE ( - 46, + COALESCE ( - CAST( 61 AS SIGNED ), CASE 1 WHEN - 76 THEN 27 ELSE ( 19 ) DIV - 26 END ) ) * + 79 AS col2
----
3634

skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL - COALESCE ( - 46, + COALESCE ( - CAST ( 61 AS INTEGER ), CASE 1 WHEN - 76 THEN 27 ELSE ( 19 ) / - 26 END ) ) * + 79 AS col2
----
3634

query I rowsort
SELECT DISTINCT - 30 * - 61 AS col1
----
1830

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT ALL COUNT( * ) + + - NULLIF ( - - 92, 42 * - 82 ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-7371
SELECT ALL COUNT ( * ) + + - NULLIF ( - - 92, 42 * - 82 ) col1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-7372
SELECT DISTINCT 3 AS col2, 67 + + 46 * + + ( + + COALESCE ( 12, 36 * 44, CASE - COUNT( * ) WHEN - 28 * - 42 THEN NULL ELSE + COUNT( - 65 ) END ) ) * + COUNT( - 54 * + 9 ) - NULLIF ( + 95, - 49 * - 82 ) AS col0
----
3
524

skipif mysql # not compatible
query II rowsort label-7372
SELECT DISTINCT 3 AS col2, 67 + + 46 * + + ( + + COALESCE ( 12, 36 * 44, CASE - COUNT ( * ) WHEN - 28 * - 42 THEN NULL ELSE + COUNT ( - 65 ) END ) ) * + COUNT ( - 54 * + 9 ) - NULLIF ( + 95, - 49 * - 82 ) AS col0
----
3
524

query I rowsort
SELECT + 19 + + 22 + - 63
----
-22

query I rowsort
SELECT + 95 + + + COALESCE ( + 24, 64 + + 27 - + 26 + 6 * - 49, - 40 ) AS col0
----
119

query I rowsort
SELECT ALL + 85 + 6 + + 42 - - + ( - - 93 )
----
226

onlyif mysql # aggregate syntax: 
query II rowsort label-7376
SELECT - 64 AS col1, NULLIF ( + 26, - 6 * - - NULLIF ( + 96, COUNT( * ) ) )
----
-64
26

skipif mysql # not compatible
query II rowsort label-7376
SELECT - 64 AS col1, NULLIF ( + 26, - 6 * - - NULLIF ( + 96, COUNT ( * ) ) )
----
-64
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7377
SELECT - MAX( + 55 ) AS col0, MAX( - 28 ) * + - 18 * - CAST( - 59 AS SIGNED ) + CAST( + ( ( - 97 ) ) + 12 * MAX( + 14 ) AS SIGNED ) AS col0
----
-55
29807

skipif mysql # not compatible
query II rowsort label-7377
SELECT - MAX ( + 55 ) AS col0, MAX ( - 28 ) * + - 18 * - CAST ( - 59 AS INTEGER ) + CAST ( + ( ( - 97 ) ) + 12 * MAX ( + 14 ) AS INTEGER ) AS col0
----
-55
29807

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT ALL 77 + 81 - - ( + 88 ) + - COUNT( * ) col1
----
245

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL 77 + 81 - - ( + 88 ) + - COUNT ( * ) col1
----
245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7379
SELECT ALL - COALESCE ( - + 68, CAST( + - 57 AS SIGNED ), - + 53 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL - COALESCE ( - + 68, CAST ( + - 57 AS INTEGER ), - + 53 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT - + COUNT( * ) + + ( - 11 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-7380
SELECT - + COUNT ( * ) + + ( - 11 ) AS col2
----
-12

query II rowsort
SELECT + ( + 82 ), 54 AS col0
----
82
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7382
SELECT + 50 DIV - - 73 * + 63 - - ( 64 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-7382
SELECT + 50 / - - 73 * + 63 - - ( 64 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT DISTINCT COUNT( * ) + + 10 * + - CASE + ( + 24 ) WHEN + 93 THEN 37 WHEN COUNT( * ) + - 62 * + 77 THEN 58 * ( - 32 * - COUNT( 39 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT COUNT ( * ) + + 10 * + - CASE + ( + 24 ) WHEN + 93 THEN 37 WHEN COUNT ( * ) + - 62 * + 77 THEN 58 * ( - 32 * - COUNT ( 39 ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL COUNT( * ) + - 97 + - 52 + 76 - - - 61 * 23 + 91 * 61 AS col0
----
4076

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL COUNT ( * ) + - 97 + - 52 + 76 - - - 61 * 23 + 91 * 61 AS col0
----
4076

query I rowsort
SELECT ALL 46 * - 59 * - 54 + + 64 * 35 AS col1
----
148796

query I rowsort
SELECT + 7 * + 21
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-7387
SELECT ALL 77 * 60 DIV - 8 col2
----
-577

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL 77 * 60 / - 8 col2
----
-577

query II rowsort
SELECT DISTINCT + + 81 AS col0, + 16 + - + 35 * - 82 AS col2
----
81
2886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7389
SELECT DISTINCT + COALESCE ( - 68, - 12, - + 76 * + + CAST( NULL AS SIGNED ) * - - 13 )
----
-68

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT + COALESCE ( - 68, - 12, - + 76 * + + CAST ( NULL AS INTEGER ) * - - 13 )
----
-68

query I rowsort
SELECT + - 33 + - + 79
----
-112

query I rowsort
SELECT ALL - - 62 * - 87 - + 12 AS col0
----
-5406

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT + SUM( + 25 ) * 57
----
1425

skipif mysql # not compatible
query I rowsort label-7393
SELECT + SUM ( + 25 ) * 57
----
1425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7394
SELECT - COUNT( * ) DIV - 82 + - + 83 + ( 20 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-7394
SELECT - COUNT ( * ) / - 82 + - + 83 + ( 20 ) AS col2
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-7395
SELECT + + 41 DIV + 66 col2
----
0

skipif mysql # not compatible
query I rowsort label-7395
SELECT + + 41 / + 66 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT + + 54 * + SUM( DISTINCT - 12 ) - + NULLIF ( + - 57, + 11 ) + - 14 col2
----
-605

skipif mysql # not compatible
query I rowsort label-7396
SELECT + + 54 * + SUM ( DISTINCT - 12 ) - + NULLIF ( + - 57, + 11 ) + - 14 col2
----
-605

onlyif mysql # DIV for integer division: 
query I rowsort label-7397
SELECT ALL + 3 DIV + + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL + 3 / + + 88 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7398
SELECT + 46 * CAST( NULL AS SIGNED ) + - + 94 + - 9 * ( - + COALESCE ( 85, COUNT( * ) + 32 ) ) + - 51 + 37 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7398
SELECT + 46 * CAST ( NULL AS INTEGER ) + - + 94 + - 9 * ( - + COALESCE ( 85, COUNT ( * ) + 32 ) ) + - 51 + 37 col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7400
SELECT ALL + - CAST( NULL AS SIGNED ) AS col0, - 88 * 13 AS col1
----
NULL
-1144

skipif mysql # not compatible
query II rowsort label-7400
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0, - 88 * 13 AS col1
----
NULL
-1144

query I rowsort
SELECT + - 24 * - 62 + + - 16 + + - 16 + + 15
----
1471

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

query I rowsort
SELECT 15 * 90 + + - 89
----
1261

query I rowsort
SELECT - ( + 58 ) + - + 12 + - 92 + + 34 AS col0
----
-128

query I rowsort
SELECT ALL 15 * + 61
----
915

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT + CASE - 81 WHEN - 76 * + COUNT( DISTINCT + - ( 18 ) ) + - + 38 + 61 THEN - 64 + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7406
SELECT + CASE - 81 WHEN - 76 * + COUNT ( DISTINCT + - ( 18 ) ) + - + 38 + 61 THEN - 64 + 12 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT - 86 + + - 27 * COUNT( * ) AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-7408
SELECT - 86 + + - 27 * COUNT ( * ) AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT - 62 * - 53 * MIN( 14 ) * + ( + + COUNT( * ) ) * + 8 * 30 AS col1
----
11040960

skipif mysql # not compatible
query I rowsort label-7409
SELECT - 62 * - 53 * MIN ( 14 ) * + ( + + COUNT ( * ) ) * + 8 * 30 AS col1
----
11040960

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT - 3 * + - MIN( DISTINCT 81 ) + - 60
----
183

skipif mysql # not compatible
query I rowsort label-7410
SELECT - 3 * + - MIN ( DISTINCT 81 ) + - 60
----
183

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7411
SELECT - CAST( - - 33 AS SIGNED ) DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-7411
SELECT - CAST ( - - 33 AS INTEGER ) / + 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT DISTINCT - COUNT( * ) * + - 91 * 95 + + 82 + - 37 + + + 85 * + ( + 71 ) + + COUNT( * )
----
14726

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT - COUNT ( * ) * + - 91 * 95 + + 82 + - 37 + + + 85 * + ( + 71 ) + + COUNT ( * )
----
14726

query I rowsort
SELECT ALL COALESCE ( - - 65, + - NULLIF ( - 25, - 0 ) * + 90, ( 32 ), 33 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT ALL COUNT( * ) * + - 47 + - 77
----
-124

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL COUNT ( * ) * + - 47 + - 77
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT ALL + 53 + + CASE + COUNT( * ) WHEN + COUNT( * ) THEN 61 ELSE COUNT( * ) + 83 END
----
114

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL + 53 + + CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN 61 ELSE COUNT ( * ) + 83 END
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7416
SELECT DISTINCT ( 67 ), + 27 DIV - COUNT( * ) AS col0
----
67
-27

skipif mysql # not compatible
query II rowsort label-7416
SELECT DISTINCT ( 67 ), + 27 / - COUNT ( * ) AS col0
----
67
-27

query I rowsort
SELECT ALL + COALESCE ( + - 55, + - 29 ) + + ( + - 42 )
----
-97

query I rowsort
SELECT - 37 + - - 3 * + + 39 AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7419
SELECT - 96 * + + NULLIF ( CAST( NULL AS SIGNED ), - - 25 * + 67 + - ( - + 63 ) / + 11 ) / + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7419
SELECT - 96 * + + NULLIF ( CAST ( NULL AS INTEGER ), - - 25 * + 67 + - ( - + 63 ) / + 11 ) / + 87 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7420
SELECT DISTINCT CASE - SUM( + + 6 ) WHEN + + COUNT( * ) - + 14 THEN - COUNT( DISTINCT + CAST( 35 AS SIGNED ) ) - 1 * - ( 52 + 11 ) WHEN - 56 THEN NULL WHEN + 89 THEN 86 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT CASE - SUM ( + + 6 ) WHEN + + COUNT ( * ) - + 14 THEN - COUNT ( DISTINCT + CAST ( 35 AS INTEGER ) ) - 1 * - ( 52 + 11 ) WHEN - 56 THEN NULL WHEN + 89 THEN 86 END AS col0
----
NULL

query I rowsort
SELECT - 72 * 78 AS col2
----
-5616

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7422
SELECT ALL - COALESCE ( 45, + COALESCE ( - 64, 39, + 90 + + 0 ) * NULLIF ( + 94, - 3 + + 50 * 28 ) + 96 ) + CASE + 72 WHEN COUNT( * ) + CAST( NULL AS DECIMAL ) THEN NULL WHEN - 96 + - 86 THEN NULL ELSE 33 * - 69 END AS col2
----
-2322

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL - COALESCE ( 45, + COALESCE ( - 64, 39, + 90 + + 0 ) * NULLIF ( + 94, - 3 + + 50 * 28 ) + 96 ) + CASE + 72 WHEN COUNT ( * ) + CAST ( NULL AS REAL ) THEN NULL WHEN - 96 + - 86 THEN NULL ELSE 33 * - 69 END AS col2
----
-2322

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

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

query I rowsort
SELECT DISTINCT + - NULLIF ( - 14, - + 10 + - 39 ) * - 46 AS col1
----
-644

query I rowsort
SELECT DISTINCT - + 57 - + 48 + 86
----
-19

query I rowsort
SELECT ALL + 23 * - + ( - 87 ) AS col0
----
2001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7427
SELECT ALL CASE - 29 WHEN CAST( NULL AS SIGNED ) - + 73 * + - 21 * - - 70 * + 69 THEN + 67 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL CASE - 29 WHEN CAST ( NULL AS INTEGER ) - + 73 * + - 21 * - - 70 * + 69 THEN + 67 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7428
SELECT - - 37 + + 48 - + MIN( ALL ( 53 ) ) DIV - COUNT( * ) + CAST( - 6 AS SIGNED )
----
132

skipif mysql # not compatible
query I rowsort label-7428
SELECT - - 37 + + 48 - + MIN ( ALL ( 53 ) ) / - COUNT ( * ) + CAST ( - 6 AS INTEGER )
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7429
SELECT DISTINCT - 31 - + + 86 - 4 + 50 + ( + COALESCE ( 96, - 1, + 95 + 35 DIV - COALESCE ( 71, ( - 61 ), + MIN( DISTINCT 18 ) ) ) )
----
25

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT - 31 - + + 86 - 4 + 50 + ( + COALESCE ( 96, - 1, + 95 + 35 / - COALESCE ( 71, ( - 61 ), + MIN ( DISTINCT 18 ) ) ) )
----
25

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7431
SELECT CASE - CAST( 80 AS SIGNED ) WHEN + 41 THEN - - 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7431
SELECT CASE - CAST ( 80 AS INTEGER ) WHEN + 41 THEN - - 51 END
----
NULL

query I rowsort
SELECT - - ( - + 30 ) * + - 72
----
2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7433
SELECT + ( 25 ) + - - 53 + + - 93 + 78 + - - 33 * - CAST( 58 AS SIGNED ) + - 36 AS col1
----
-1887

skipif mysql # not compatible
query I rowsort label-7433
SELECT + ( 25 ) + - - 53 + + - 93 + 78 + - - 33 * - CAST ( 58 AS INTEGER ) + - 36 AS col1
----
-1887

query I rowsort
SELECT DISTINCT - 74 * + 54 AS col1
----
-3996

query I rowsort
SELECT ALL COALESCE ( 30, 22 ) * - 24
----
-720

query I rowsort
SELECT DISTINCT - 24 * + 66 * - 61 AS col1
----
96624

query II rowsort
SELECT DISTINCT 95 * - 84 col0, 67 AS col2
----
-7980
67

query II rowsort
SELECT ALL + ( - 15 ) AS col0, - 51
----
-15
-51

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

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

query I rowsort
SELECT + CASE 57 WHEN 16 THEN - 64 * - 18 WHEN - 52 THEN 30 END - - 15 + + ( 17 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7441
SELECT + 62 DIV + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7441
SELECT + 62 / + 79 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7442
SELECT ALL COUNT( * ) DIV - 56 + - - 47 AS col0, 34
----
47
34

skipif mysql # not compatible
query II rowsort label-7442
SELECT ALL COUNT ( * ) / - 56 + - - 47 AS col0, 34
----
47
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7443
SELECT ( CASE - CASE - + 0 WHEN - ( - + 67 ) THEN SUM( ALL + - CAST( NULL AS SIGNED ) ) ELSE COUNT( * ) END WHEN ( + 52 ) THEN - 18 - - 58 ELSE + 75 END ) * 66 + 71
----
5021

skipif mysql # not compatible
query I rowsort label-7443
SELECT ( CASE - CASE - + 0 WHEN - ( - + 67 ) THEN SUM ( ALL + - CAST ( NULL AS INTEGER ) ) ELSE COUNT ( * ) END WHEN ( + 52 ) THEN - 18 - - 58 ELSE + 75 END ) * 66 + 71
----
5021

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT DISTINCT 20 * - COUNT( ALL + 19 ) * - 74
----
1480

skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT 20 * - COUNT ( ALL + 19 ) * - 74
----
1480

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT COUNT( * ) - - ( + 5 ) * 30 * CASE + 3 WHEN 30 + - 80 + - MIN( + 76 ) THEN NULL ELSE 74 END
----
11101

skipif mysql # not compatible
query I rowsort label-7446
SELECT COUNT ( * ) - - ( + 5 ) * 30 * CASE + 3 WHEN 30 + - 80 + - MIN ( + 76 ) THEN NULL ELSE 74 END
----
11101

query I rowsort
SELECT ALL + 58 + 13 - - - ( - 71 ) AS col1
----
142

query II rowsort
SELECT ALL - 52, + 59 col1
----
-52
59

onlyif mysql # aggregate syntax: 
query II rowsort label-7449
SELECT ALL 48 col2, COUNT( * ) + - COUNT( * )
----
48
0

skipif mysql # not compatible
query II rowsort label-7449
SELECT ALL 48 col2, COUNT ( * ) + - COUNT ( * )
----
48
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT 58 * + 63 + COUNT( * ) * - 38 + + - 48 * - 59 * - 70
----
-194624

skipif mysql # not compatible
query I rowsort label-7450
SELECT 58 * + 63 + COUNT ( * ) * - 38 + + - 48 * - 59 * - 70
----
-194624

query I rowsort
SELECT DISTINCT 61 * + - 88
----
-5368

query I rowsort
SELECT 6 + 71
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7453
SELECT COALESCE ( + SUM( ALL 3 ), - ( + CAST( - NULLIF ( 91, 9 ) AS SIGNED ) ) ) + + 4
----
7

skipif mysql # not compatible
query I rowsort label-7453
SELECT COALESCE ( + SUM ( ALL 3 ), - ( + CAST ( - NULLIF ( 91, 9 ) AS INTEGER ) ) ) + + 4
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT 51 - - COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7454
SELECT 51 - - COUNT ( * ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-7455
SELECT - 63, SUM( + 88 ) col2
----
-63
88

skipif mysql # not compatible
query II rowsort label-7455
SELECT - 63, SUM ( + 88 ) col2
----
-63
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7456
SELECT ALL + 52 * 90 * COUNT( * ) DIV CASE 29 WHEN + 84 THEN 66 ELSE - 1 * + 34 END DIV - 31
----
4

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL + 52 * 90 * COUNT ( * ) / CASE 29 WHEN + 84 THEN 66 ELSE - 1 * + 34 END / - 31
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7457
SELECT ALL COUNT( * ), 85 + - - 4 col0
----
1
89

skipif mysql # not compatible
query II rowsort label-7457
SELECT ALL COUNT ( * ), 85 + - - 4 col0
----
1
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7458
SELECT DISTINCT - 30 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT - 30 / 92 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7459
SELECT ALL - - 79 DIV + - COALESCE ( - CASE - 74 WHEN - 69 + COUNT( * ) * + 72 DIV + 52 * 56 THEN NULL ELSE + 14 + 39 END, - 21 + - 46 DIV - 3 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL - - 79 / + - COALESCE ( - CASE - 74 WHEN - 69 + COUNT ( * ) * + 72 / + 52 * 56 THEN NULL ELSE + 14 + 39 END, - 21 + - 46 / - 3 ) col0
----
1

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

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

query II rowsort
SELECT 3 AS col0, 92 - - 86 + - 81 * 33 + + 97 AS col1
----
3
-2398

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7462
SELECT - 55 DIV ( 90 ) + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7462
SELECT - 55 / ( 90 ) + + COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7463
SELECT - MAX( ALL - 10 ) + + 72 AS col2, CASE + CAST( + 13 AS DECIMAL ) WHEN + NULLIF ( + COUNT( - 27 ), CASE 12 WHEN - 7 THEN NULL ELSE + 38 END * + 12 ) THEN - 98 + 45 END * MAX( ( 13 ) - + 48 )
----
82
NULL

skipif mysql # not compatible
query II rowsort label-7463
SELECT - MAX ( ALL - 10 ) + + 72 AS col2, CASE + CAST ( + 13 AS REAL ) WHEN + NULLIF ( + COUNT ( - 27 ), CASE 12 WHEN - 7 THEN NULL ELSE + 38 END * + 12 ) THEN - 98 + 45 END * MAX ( ( 13 ) - + 48 )
----
82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT + MIN( DISTINCT 9 ) + + 39 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-7464
SELECT + MIN ( DISTINCT 9 ) + + 39 AS col2
----
48

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7466
SELECT 79 DIV + + NULLIF ( - 87, 77 + NULLIF ( 79, 33 ) ) - + 99
----
-99

skipif mysql # not compatible
query I rowsort label-7466
SELECT 79 / + + NULLIF ( - 87, 77 + NULLIF ( 79, 33 ) ) - + 99
----
-99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT ALL - 95 + - - 43 + + 67 * 97 DIV + - 87 AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL - 95 + - - 43 + + 67 * 97 / + - 87 AS col1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT - 14 + 93 * + 20 + - + MAX( - - 74 ) * - 14 + ( - 64 )
----
2818

skipif mysql # not compatible
query I rowsort label-7469
SELECT - 14 + 93 * + 20 + - + MAX ( - - 74 ) * - 14 + ( - 64 )
----
2818

query I rowsort
SELECT ALL - 34 + - 63 AS col1
----
-97

query I rowsort
SELECT 82 + + + 28 + + + 15 * - 41
----
-505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT - AVG ( + + CAST( + 81 AS SIGNED ) ) / CAST( NULL AS SIGNED ) - + - NULLIF ( - + 13, - + 82 * - 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7472
SELECT - AVG ( + + CAST ( + 81 AS INTEGER ) ) / CAST ( NULL AS INTEGER ) - + - NULLIF ( - + 13, - + 82 * - 35 )
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7475
SELECT ALL - 53 + - + 20, + 13 * + - COUNT( * ) * + 3 AS col0
----
-73
-39

skipif mysql # not compatible
query II rowsort label-7475
SELECT ALL - 53 + - + 20, + 13 * + - COUNT ( * ) * + 3 AS col0
----
-73
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT ( + COUNT( * ) ) + - 63 * 23 col2
----
-1448

skipif mysql # not compatible
query I rowsort label-7476
SELECT ( + COUNT ( * ) ) + - 63 * 23 col2
----
-1448

onlyif mysql # DIV for integer division: 
query I rowsort label-7477
SELECT 7 DIV + - 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7477
SELECT 7 / + - 49 AS col1
----
0

query I rowsort
SELECT ALL ( + 33 ) - + + 94
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT COALESCE ( - COUNT( * ), NULLIF ( + + 38, 6 ), 54 ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7479
SELECT COALESCE ( - COUNT ( * ), NULLIF ( + + 38, 6 ), 54 ) * COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7480
SELECT DISTINCT 66 * - + 87 * - CASE - 19 WHEN - + 10 * + CAST( NULL AS SIGNED ) THEN NULL WHEN 22 THEN - 15 ELSE 5 END
----
28710

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT 66 * - + 87 * - CASE - 19 WHEN - + 10 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN 22 THEN - 15 ELSE 5 END
----
28710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7481
SELECT DISTINCT - 84 - + 76 * + + 73 + + 56 - - NULLIF ( 98, + + MAX( ALL - 99 ) + 48 * 18 ) DIV 39 AS col2
----
-5574

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT - 84 - + 76 * + + 73 + + 56 - - NULLIF ( 98, + + MAX ( ALL - 99 ) + 48 * 18 ) / 39 AS col2
----
-5574

query I rowsort
SELECT DISTINCT - NULLIF ( + 60, + 49 )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-7483
SELECT - 26 * - - 24 AS col0, 4 + - + 6 * + + COUNT( ALL + 30 )
----
-624
-2

skipif mysql # not compatible
query II rowsort label-7483
SELECT - 26 * - - 24 AS col0, 4 + - + 6 * + + COUNT ( ALL + 30 )
----
-624
-2

query I rowsort
SELECT - 96 * ( + 62 ) AS col2
----
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT - - ( CASE MAX( + - 50 ) WHEN - 84 / 6 THEN - + 5 * - 98 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7485
SELECT - - ( CASE MAX ( + - 50 ) WHEN - 84 / 6 THEN - + 5 * - 98 END )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7486
SELECT - 53 - - ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + 62 * - - 72 AS col0
----
4464

query I rowsort
SELECT ALL + 79 * 64 * 84 AS col0
----
424704

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7490
SELECT ALL + 99 + 39 + + COUNT( * ) + + COALESCE ( - + COUNT( * ), + + CAST( NULL AS SIGNED ) DIV + + MIN( 9 ) * + 92, 63, - 87 ) * 17 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-7490
SELECT ALL + 99 + 39 + + COUNT ( * ) + + COALESCE ( - + COUNT ( * ), + + CAST ( NULL AS INTEGER ) / + + MIN ( 9 ) * + 92, 63, - 87 ) * 17 AS col1
----
122

query I rowsort
SELECT ALL - + 35 + + - 42
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT 24 * - - CASE 55 WHEN - 16 THEN - - NULLIF ( - - 18, - 60 * 11 * 66 ) WHEN + COUNT( * ) THEN NULL ELSE 31 END AS col1
----
744

skipif mysql # not compatible
query I rowsort label-7492
SELECT 24 * - - CASE 55 WHEN - 16 THEN - - NULLIF ( - - 18, - 60 * 11 * 66 ) WHEN + COUNT ( * ) THEN NULL ELSE 31 END AS col1
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT + COUNT( * ) - ( + + 75 ) + - 45 * 69 * - + 81 + - 91 AS col0
----
251340

skipif mysql # not compatible
query I rowsort label-7493
SELECT + COUNT ( * ) - ( + + 75 ) + - 45 * 69 * - + 81 + - 91 AS col0
----
251340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7494
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) + 63 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) + 63 AS col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-7495
SELECT - 25 DIV + - NULLIF ( - 50, + 3 ) + 9 + - + 47
----
-38

skipif mysql # not compatible
query I rowsort label-7495
SELECT - 25 / + - NULLIF ( - 50, + 3 ) + 9 + - + 47
----
-38

query I rowsort
SELECT ALL + + ( 53 ) + + + 20 AS col1
----
73

query I rowsort
SELECT 3 * + 39 * 69 * 82 col2
----
661986

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT + COUNT( * ) * + 19 * - NULLIF ( COUNT( * ), MIN( + 83 ) ) + + + 74 + 44 * + CASE 1 WHEN - ( 22 ) * 65 + + 21 THEN + 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7498
SELECT + COUNT ( * ) * + 19 * - NULLIF ( COUNT ( * ), MIN ( + 83 ) ) + + + 74 + 44 * + CASE 1 WHEN - ( 22 ) * 65 + + 21 THEN + 6 END
----
NULL

query I rowsort
SELECT ALL + 30 * + + 14
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT COALESCE ( + + 60, - CASE - + 1 WHEN + 43 * + 37 * + COUNT( * ) + 59 + 46 + + 72 - 38 * 96 * 25 THEN - 63 + + 23 WHEN - 30 * + 78 THEN NULL ELSE NULL END * 88 + ( 6 ) * 0 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7500
SELECT COALESCE ( + + 60, - CASE - + 1 WHEN + 43 * + 37 * + COUNT ( * ) + 59 + 46 + + 72 - 38 * 96 * 25 THEN - 63 + + 23 WHEN - 30 * + 78 THEN NULL ELSE NULL END * 88 + ( 6 ) * 0 ) AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7501
SELECT - CAST( - 76 AS SIGNED ) * + CASE + 99 WHEN - - 24 * MAX( - 47 ) THEN - - 0 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT - CAST ( - 76 AS INTEGER ) * + CASE + 99 WHEN - - 24 * MAX ( - 47 ) THEN - - 0 ELSE NULL END
----
NULL

query I rowsort
SELECT - 44 * 43 col1
----
-1892

query I rowsort
SELECT ALL - 85 * 49
----
-4165

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT DISTINCT + COUNT( * ) * + + 13 * - 80 + + 36 * + 47 AS col2
----
652

skipif mysql # not compatible
query I rowsort label-7504
SELECT DISTINCT + COUNT ( * ) * + + 13 * - 80 + + 36 * + 47 AS col2
----
652

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT ALL - CASE + + 67 WHEN + - 27 / - + COALESCE ( + 10, + 56 ) THEN NULL WHEN 69 * - 11 + COUNT( * ) THEN + ( - NULLIF ( 7, + COUNT( * ) * 64 ) ) END * + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL - CASE + + 67 WHEN + - 27 / - + COALESCE ( + 10, + 56 ) THEN NULL WHEN 69 * - 11 + COUNT ( * ) THEN + ( - NULLIF ( 7, + COUNT ( * ) * 64 ) ) END * + 40 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7506
SELECT - MAX( + - 0 ) + + 1 - + CAST( NULL AS SIGNED ) * 97 + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT - MAX ( + - 0 ) + + 1 - + CAST ( NULL AS INTEGER ) * 97 + - 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7507
SELECT - COUNT( * ) - 22 + - 89 * 30 * - 90 AS col0, + 20
----
240277
20

skipif mysql # not compatible
query II rowsort label-7507
SELECT - COUNT ( * ) - 22 + - 89 * 30 * - 90 AS col0, + 20
----
240277
20

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7509
SELECT - 84 + + - SUM( DISTINCT + + 38 ) + 70 * 82 * + 23 - - 10 DIV + - 45 * + 81 AS col2
----
131898

skipif mysql # not compatible
query I rowsort label-7509
SELECT - 84 + + - SUM ( DISTINCT + + 38 ) + 70 * 82 * + 23 - - 10 / + - 45 * + 81 AS col2
----
131898

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

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

query I rowsort
SELECT + 67 * + - 4 AS col1
----
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT - 78 * - - COUNT( DISTINCT 46 )
----
-78

skipif mysql # not compatible
query I rowsort label-7512
SELECT - 78 * - - COUNT ( DISTINCT 46 )
----
-78

query I rowsort
SELECT - 13 * + 39
----
-507

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7514
SELECT ALL 25 * - 86 * + SUM( DISTINCT + 57 ) * + 37 DIV + COUNT( ALL 7 )
----
-4534350

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL 25 * - 86 * + SUM ( DISTINCT + 57 ) * + 37 / + COUNT ( ALL 7 )
----
-4534350

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT - 31 - COUNT( * ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-7515
SELECT - 31 - COUNT ( * ) AS col1
----
-32

query I rowsort
SELECT ALL + 23 * - 65 col1
----
-1495

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT + 7 - - COUNT( * ) + - 72 + 44 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-7517
SELECT + 7 - - COUNT ( * ) + - 72 + 44 AS col1
----
-20

query II rowsort
SELECT DISTINCT + ( 46 ) * + 62 * + - ( ( - 45 ) ) * + 91 + + - 33 AS col2, 37
----
11678907
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7519
SELECT - 1 * - + 23 * - 78 * + + 83 DIV + - COUNT( * ) AS col2
----
148902

skipif mysql # not compatible
query I rowsort label-7519
SELECT - 1 * - + 23 * - 78 * + + 83 / + - COUNT ( * ) AS col2
----
148902

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT + 85 + + 34 + + SUM( ALL - 94 ) + - 96
----
-71

skipif mysql # not compatible
query I rowsort label-7521
SELECT + 85 + + 34 + + SUM ( ALL - 94 ) + - 96
----
-71

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

skipif mysql # not compatible
query I rowsort label-7522
SELECT - - 5 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT + NULLIF ( + MAX( + 84 ), + 14 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-7523
SELECT + NULLIF ( + MAX ( + 84 ), + 14 ) AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7524
SELECT CAST( NULL AS SIGNED ), + 16 * - + 1 + - + 68 + 60 AS col1
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-7524
SELECT CAST ( NULL AS INTEGER ), + 16 * - + 1 + - + 68 + 60 AS col1
----
NULL
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT + + 30 + + - COUNT( * ) + 39 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-7525
SELECT + + 30 + + - COUNT ( * ) + 39 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT + + 25 - + MIN( 36 ) + 60 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7526
SELECT + + 25 - + MIN ( 36 ) + 60 AS col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7527
SELECT ALL + 8 + + 59 + AVG ( - + 14 ) / ( + CAST( NULL AS SIGNED ) ) AS col2, + 83 + + 26 AS col2
----
NULL
109

skipif mysql # not compatible
query II rowsort label-7527
SELECT ALL + 8 + + 59 + AVG ( - + 14 ) / ( + CAST ( NULL AS INTEGER ) ) AS col2, + 83 + + 26 AS col2
----
NULL
109

query I rowsort
SELECT ALL 99 + - 67 AS col1
----
32

query I rowsort
SELECT ALL 4 + - 94
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7530
SELECT - COALESCE ( - 60, + ( MIN( - 38 ) ) DIV ( 53 ) )
----
60

skipif mysql # not compatible
query I rowsort label-7530
SELECT - COALESCE ( - 60, + ( MIN ( - 38 ) ) / ( 53 ) )
----
60

query I rowsort
SELECT + 87 + - 62 AS col1
----
25

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

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

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

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

query I rowsort
SELECT + NULLIF ( 17, + 21 * + 86 ) AS col0
----
17

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

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

query I rowsort
SELECT + 63 + + + 95
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-7537
SELECT + MAX( - 64 ) + + 83, + NULLIF ( - 51, 18 ) AS col1
----
19
-51

skipif mysql # not compatible
query II rowsort label-7537
SELECT + MAX ( - 64 ) + + 83, + NULLIF ( - 51, 18 ) AS col1
----
19
-51

query I rowsort
SELECT DISTINCT + 74 + 47 col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT - ( + MAX( ALL 89 ) ) col2
----
-89

skipif mysql # not compatible
query I rowsort label-7539
SELECT - ( + MAX ( ALL 89 ) ) col2
----
-89

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

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

query II rowsort
SELECT DISTINCT + 43 AS col1, + 88 AS col1
----
43
88

query I rowsort
SELECT - 21 + + + 90
----
69

query I rowsort
SELECT + 86 * - 78 + + 55 col0
----
-6653

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

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

query I rowsort
SELECT 99 * + + 29 + 99 AS col0
----
2970

onlyif mysql # DIV for integer division: 
query I rowsort label-7546
SELECT 26 DIV - 80 + + + 32 + 92 * 55 + + - 6 * - - 82 * + + 89
----
-38696

skipif mysql # not compatible
query I rowsort label-7546
SELECT 26 / - 80 + + + 32 + 92 * 55 + + - 6 * - - 82 * + + 89
----
-38696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7547
SELECT + 61 + - + 56 * CASE + SUM( + 34 ) WHEN CAST( NULL AS SIGNED ) THEN ( + SUM( 17 ) ) WHEN + 3 + - 29 + 83 * - 16 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7547
SELECT + 61 + - + 56 * CASE + SUM ( + 34 ) WHEN CAST ( NULL AS INTEGER ) THEN ( + SUM ( 17 ) ) WHEN + 3 + - 29 + 83 * - 16 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7548
SELECT + 11 DIV + CAST( - 66 AS SIGNED ) + - 47 col1
----
-47

skipif mysql # not compatible
query I rowsort label-7548
SELECT + 11 / + CAST ( - 66 AS INTEGER ) + - 47 col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT ALL - COUNT( * ) * - 48 * - + 59 * - 3 * + + 25 * + 66
----
14018400

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL - COUNT ( * ) * - 48 * - + 59 * - 3 * + + 25 * + 66
----
14018400

query I rowsort
SELECT DISTINCT - 42 * + ( - 80 ) - - 87 AS col0
----
3447

query I rowsort
SELECT 27 * 20 + - + 84 - - 74
----
530

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL - SUM( + 59 ) * - 56 * ( + 22 ) * + 43 - - - 4 + 6 AS col0
----
3125586

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL - SUM ( + 59 ) * - 56 * ( + 22 ) * + 43 - - - 4 + 6 AS col0
----
3125586

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

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

query I rowsort
SELECT - 83 + - 95
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT - - COALESCE ( - + CASE + + COUNT( * ) WHEN - + 12 - - 74 - COUNT( + + 88 ) + - + 46 THEN NULL WHEN 18 THEN NULL ELSE + - COUNT( * ) + + + 62 END, - 38 ) * - 8 col1
----
488

skipif mysql # not compatible
query I rowsort label-7555
SELECT - - COALESCE ( - + CASE + + COUNT ( * ) WHEN - + 12 - - 74 - COUNT ( + + 88 ) + - + 46 THEN NULL WHEN 18 THEN NULL ELSE + - COUNT ( * ) + + + 62 END, - 38 ) * - 8 col1
----
488

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7557
SELECT + - 5 AS col1, - 1 DIV MIN( ALL - 69 ) + + 72 * 70 * - NULLIF ( - + 65, 0 ) - + 89 * + 54
----
-5
322794

skipif mysql # not compatible
query II rowsort label-7557
SELECT + - 5 AS col1, - 1 / MIN ( ALL - 69 ) + + 72 * 70 * - NULLIF ( - + 65, 0 ) - + 89 * + 54
----
-5
322794

query I rowsort
SELECT - - 40 * + NULLIF ( - 73, + 21 / - + 33 + - 50 ) + 48
----
-2872

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7561
SELECT ALL + CAST( - MAX( + 62 ) AS SIGNED ) * - ( 89 ) + - - 92 + + + ( - 12 ) * CASE 99 WHEN + + COUNT( * ) THEN 13 + + 36 * COALESCE ( 81 * - 86 + + 45 * 70, 97 ) WHEN + 59 - - CASE - COUNT( * ) + + 40 WHEN 83 THEN + 98 END THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL + CAST ( - MAX ( + 62 ) AS INTEGER ) * - ( 89 ) + - - 92 + + + ( - 12 ) * CASE 99 WHEN + + COUNT ( * ) THEN 13 + + 36 * COALESCE ( 81 * - 86 + + 45 * 70, 97 ) WHEN + 59 - - CASE - COUNT ( * ) + + 40 WHEN 83 THEN + 98 END THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT - MAX( DISTINCT 30 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-7562
SELECT - MAX ( DISTINCT 30 ) AS col2
----
-30

query I rowsort
SELECT DISTINCT - 25 * - 17 + 26 + - + 54 + - 4
----
393

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

skipif mysql # not compatible
query I rowsort label-7564
SELECT + - COALESCE ( + COUNT ( * ), 90 ) * ( COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7565
SELECT - 29 AS col2, + SUM( DISTINCT 63 )
----
-29
63

skipif mysql # not compatible
query II rowsort label-7565
SELECT - 29 AS col2, + SUM ( DISTINCT 63 )
----
-29
63

query I rowsort
SELECT 56 - + - 32 AS col2
----
88

query I rowsort
SELECT - 16 + - 72 col0
----
-88

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

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

query I rowsort
SELECT ALL - 56 - 67 * - 70
----
4634

query I rowsort
SELECT DISTINCT + NULLIF ( - NULLIF ( + 12, + - 63 ), - ( + - 56 ) / + + 69 )
----
-12

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

skipif mysql # not compatible
query I rowsort label-7571
SELECT + 83 / + + 50
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT DISTINCT 56 * - - COALESCE ( COUNT( * ), 62 )
----
56

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT 56 * - - COALESCE ( COUNT ( * ), 62 )
----
56

query I rowsort
SELECT 20 - + - 78
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT ALL CASE - 86 WHEN - 51 / + - 23 * 51 - NULLIF ( - COUNT( * ), - 74 - - - COUNT( * ) ) * - - COUNT( * ) THEN 34 * - + 31 + + 99 END - + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL CASE - 86 WHEN - 51 / + - 23 * 51 - NULLIF ( - COUNT ( * ), - 74 - - - COUNT ( * ) ) * - - COUNT ( * ) THEN 34 * - + 31 + + 99 END - + 0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7575
SELECT COUNT( * ) * - - 82 AS col1, 88 AS col2
----
82
88

skipif mysql # not compatible
query II rowsort label-7575
SELECT COUNT ( * ) * - - 82 AS col1, 88 AS col2
----
82
88

query I rowsort
SELECT DISTINCT ( 46 ) * - 79 * ( - 73 ) AS col1
----
265282

query I rowsort
SELECT ( + 73 ) * + + 5
----
365

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT ALL - MIN( DISTINCT + 61 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL - MIN ( DISTINCT + 61 ) AS col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7579
SELECT CAST( NULL AS SIGNED ) / - - 30 * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT CAST ( NULL AS INTEGER ) / - - 30 * - 70
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT COUNT( * ) + - COALESCE ( + 4, + COUNT( * ), + 81 ) + - 76
----
-79

skipif mysql # not compatible
query I rowsort label-7581
SELECT COUNT ( * ) + - COALESCE ( + 4, + COUNT ( * ), + 81 ) + - 76
----
-79

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

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

query I rowsort
SELECT ALL - 60 * 80 col2
----
-4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7584
SELECT 22 + - 39, 37 + - CAST( + 88 AS SIGNED ) + + - 43 + 42 * COUNT( * ) AS col1
----
-17
-52

skipif mysql # not compatible
query II rowsort label-7584
SELECT 22 + - 39, 37 + - CAST ( + 88 AS INTEGER ) + + - 43 + 42 * COUNT ( * ) AS col1
----
-17
-52

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

query I rowsort
SELECT 99 - + 59 + + + 53 * + 40 * 59
----
125120

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7588
SELECT + + COUNT( * ) * + + 62 + + 89 DIV + 25
----
65

skipif mysql # not compatible
query I rowsort label-7588
SELECT + + COUNT ( * ) * + + 62 + + 89 / + 25
----
65

query I rowsort
SELECT ALL + 67 + - 86 * + 4 * 79 * - 64
----
1739331

onlyif mysql # aggregate syntax: 
query II rowsort label-7590
SELECT 71 + - MIN( DISTINCT 77 ), ( - ( 60 ) ) * + - 81 AS col2
----
-6
4860

skipif mysql # not compatible
query II rowsort label-7590
SELECT 71 + - MIN ( DISTINCT 77 ), ( - ( 60 ) ) * + - 81 AS col2
----
-6
4860

query I rowsort
SELECT ALL 5 - + + 56 AS col2
----
-51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7593
SELECT ALL + 26 - MAX( ALL - 91 ) - 7 * - CAST( - + 18 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL + 26 - MAX ( ALL - 91 ) - 7 * - CAST ( - + 18 AS INTEGER )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7594
SELECT ALL + 35 * 15 AS col2, + COUNT( * ) + 93 + - 11
----
525
83

skipif mysql # not compatible
query II rowsort label-7594
SELECT ALL + 35 * 15 AS col2, + COUNT ( * ) + 93 + - 11
----
525
83

query I rowsort
SELECT 0 * + + 61 AS col0
----
0

query I rowsort
SELECT 36 * - + 28
----
-1008

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

query I rowsort
SELECT ALL - 9 * - 71
----
639

query I rowsort
SELECT 26 + - - 15 - ( + 11 ) + - 0 + + 40 * - 80 AS col0
----
-3170

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

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

query I rowsort
SELECT 32 + + NULLIF ( + + 25, - 71 * + + 87 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7602
SELECT DISTINCT COUNT( * ) col0, - 66 + - 50
----
1
-116

skipif mysql # not compatible
query II rowsort label-7602
SELECT DISTINCT COUNT ( * ) col0, - 66 + - 50
----
1
-116

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

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL SUM ( ( 12 ) )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7604
SELECT ALL - CASE + 80 WHEN + 34 THEN NULL ELSE - 59 DIV - 28 + 59 END AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL - CASE + 80 WHEN + 34 THEN NULL ELSE - 59 / - 28 + 59 END AS col0
----
-61

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7606
SELECT + COUNT( * ) * + 68 DIV + COALESCE ( 96, + ( + 61 ) * - - 76 * - CASE + 90 WHEN 48 DIV 69 THEN + 17 ELSE + - NULLIF ( - 73, ( 54 ) + - ( - 58 ) DIV 43 ) DIV - 60 + 77 END, 21 * + 60 - - COUNT( * ) ) + + 11
----
11

skipif mysql # not compatible
query I rowsort label-7606
SELECT + COUNT ( * ) * + 68 / + COALESCE ( 96, + ( + 61 ) * - - 76 * - CASE + 90 WHEN 48 / 69 THEN + 17 ELSE + - NULLIF ( - 73, ( 54 ) + - ( - 58 ) / 43 ) / - 60 + 77 END, 21 * + 60 - - COUNT ( * ) ) + + 11
----
11

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

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

skipif mysql # not compatible
query I rowsort label-7608
SELECT MIN ( + 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT + CASE + + 28 WHEN 48 * + - 45 + ( + - MIN( DISTINCT + 68 ) ) THEN NULL WHEN + 13 THEN + - 99 * + 38 END * + 21 * + COUNT( * ) * - + ( + 21 ) + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7609
SELECT + CASE + + 28 WHEN 48 * + - 45 + ( + - MIN ( DISTINCT + 68 ) ) THEN NULL WHEN + 13 THEN + - 99 * + 38 END * + 21 * + COUNT ( * ) * - + ( + 21 ) + 9 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7610
SELECT ALL COUNT( * ) * + COALESCE ( - 11, - ( - MAX( ALL - 73 ) ) + - ( - - COUNT( * ) ) ) + + + NULLIF ( MIN( ALL - CASE 33 WHEN + + 93 * - 22 THEN + 61 WHEN 67 * - 33 + + 41 THEN CAST( - 17 AS SIGNED ) END ), ( 18 ) + ( CAST( NULL AS SIGNED ) ) ) + - 22 * 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL COUNT ( * ) * + COALESCE ( - 11, - ( - MAX ( ALL - 73 ) ) + - ( - - COUNT ( * ) ) ) + + + NULLIF ( MIN ( ALL - CASE 33 WHEN + + 93 * - 22 THEN + 61 WHEN 67 * - 33 + + 41 THEN CAST ( - 17 AS INTEGER ) END ), ( 18 ) + ( CAST ( NULL AS INTEGER ) ) ) + - 22 * 66 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7611
SELECT ALL - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * 84 + 84 AS col2
----
NULL

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

query I rowsort
SELECT ALL + 24 * + 80 + - 93
----
1827

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7613
SELECT ALL - 55 AS col2, ( + 51 ) + + 79 - - + CAST( NULL AS SIGNED ) + - 1 AS col1
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-7613
SELECT ALL - 55 AS col2, ( + 51 ) + + 79 - - + CAST ( NULL AS INTEGER ) + - 1 AS col1
----
-55
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7614
SELECT ALL + + 28 * - + 81 * - 51 + + COUNT( * ) - + 7 + + 74, 49 AS col0
----
115736
49

skipif mysql # not compatible
query II rowsort label-7614
SELECT ALL + + 28 * - + 81 * - 51 + + COUNT ( * ) - + 7 + + 74, 49 AS col0
----
115736
49

query I rowsort
SELECT 14 + - 79 AS col2
----
-65

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

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

query II rowsort
SELECT DISTINCT + - 94 AS col0, 34 AS col1
----
-94
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT DISTINCT + SUM( DISTINCT - 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT + SUM ( DISTINCT - 54 ) AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7620
SELECT ALL - 86 * + 3 - + CAST( + + ( 83 ) AS SIGNED ) * + 85 AS col2
----
-7313

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL - 86 * + 3 - + CAST ( + + ( 83 ) AS INTEGER ) * + 85 AS col2
----
-7313

onlyif mysql # DIV for integer division: 
query I rowsort label-7621
SELECT - 56 DIV - 6 + - 33 + - 96 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-7621
SELECT - 56 / - 6 + - 33 + - 96 AS col0
----
-120

query I rowsort
SELECT - 79 + - COALESCE ( + + ( 1 ), + 81 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT ALL SUM( DISTINCT 48 )
----
48

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL SUM ( DISTINCT 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT + 44 - COUNT( * ) * - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-7624
SELECT + 44 - COUNT ( * ) * - COUNT ( * )
----
45

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

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

query I rowsort
SELECT - 62 * + 45
----
-2790

query I rowsort
SELECT - 68 + 66 AS col2
----
-2

query I rowsort
SELECT ALL - 77 * - + 8 * - - 69
----
42504

query I rowsort
SELECT ALL + 5 + + 72
----
77

query I rowsort
SELECT ALL - ( 77 ) * + 17
----
-1309

onlyif mysql # DIV for integer division: 
query I rowsort label-7631
SELECT - 78 DIV 37 * + 36
----
-72

skipif mysql # not compatible
query I rowsort label-7631
SELECT - 78 / 37 * + 36
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT - 84 * SUM( ALL - 8 )
----
672

skipif mysql # not compatible
query I rowsort label-7632
SELECT - 84 * SUM ( ALL - 8 )
----
672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7633
SELECT - 96 - - 74 + - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + + 3 * - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7633
SELECT - 96 - - 74 + - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 3 * - 62 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 60 * - 87
----
5220

query I rowsort
SELECT ALL + 5 + - NULLIF ( - 89, 83 / 35 ) AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7636
SELECT - 48 DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-7636
SELECT - 48 / 69
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7637
SELECT ALL 4 DIV 58 + - 54
----
-54

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL 4 / 58 + - 54
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT ALL - 51 * 78 * + COUNT( * ) + - 10 + + 70 AS col2
----
-3918

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL - 51 * 78 * + COUNT ( * ) + - 10 + + 70 AS col2
----
-3918

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT ALL + NULLIF ( + COUNT( * ), 72 )
----
1

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL + NULLIF ( + COUNT ( * ), 72 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT DISTINCT + 34 * + - COUNT( * ) + + - 18 + - - 21 + 80 col2
----
49

skipif mysql # not compatible
query I rowsort label-7641
SELECT DISTINCT + 34 * + - COUNT ( * ) + + - 18 + - - 21 + 80 col2
----
49

query I rowsort
SELECT + ( 34 ) * 20 * - 56 AS col0
----
-38080

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT ALL 57 * - - 67 * + COALESCE ( COUNT( * ), 95, + 72, - ( CASE - 77 WHEN - - 65 + + 22 THEN NULL WHEN - 68 THEN NULL ELSE + - 25 END ) * + 88 * + 66 ) * CASE WHEN - 66 NOT BETWEEN MIN( ALL + NULLIF ( 12, - ( + 45 ) * 57 ) ) * 88 + - 39 * + 27 AND 77 THEN + 97 END + ( - 7 ) + - 75
----
370361

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL 57 * - - 67 * + COALESCE ( COUNT ( * ), 95, + 72, - ( CASE - 77 WHEN - - 65 + + 22 THEN NULL WHEN - 68 THEN NULL ELSE + - 25 END ) * + 88 * + 66 ) * CASE WHEN - 66 NOT BETWEEN MIN ( ALL + NULLIF ( 12, - ( + 45 ) * 57 ) ) * 88 + - 39 * + 27 AND 77 THEN + 97 END + ( - 7 ) + - 75
----
370361

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7644
SELECT DISTINCT + COUNT( * ) DIV + + 99 + - MIN( 43 ) + 53
----
10

skipif mysql # not compatible
query I rowsort label-7644
SELECT DISTINCT + COUNT ( * ) / + + 99 + - MIN ( 43 ) + 53
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL + 51 * + COUNT( * ) * - 79 AS col2
----
-4029

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL + 51 * + COUNT ( * ) * - 79 AS col2
----
-4029

query I rowsort
SELECT + - 40 * + 18
----
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7647
SELECT DISTINCT - + 15 * + 76 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT - + 15 * + 76 / - + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT + 27 * + + 37 AS col0
----
999

query I rowsort
SELECT DISTINCT + 57 * - 53 AS col2
----
-3021

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT - + COUNT( * ) * + 57 + - 25 * COUNT( * ) * + 39
----
-1032

skipif mysql # not compatible
query I rowsort label-7651
SELECT - + COUNT ( * ) * + 57 + - 25 * COUNT ( * ) * + 39
----
-1032

query I rowsort
SELECT + + ( + + 20 ) * - 38
----
-760

onlyif mysql # aggregate syntax: 
query II rowsort label-7653
SELECT + + 13 * - + 16 + + COUNT( ALL + 6 ) col2, + 40
----
-207
40

skipif mysql # not compatible
query II rowsort label-7653
SELECT + + 13 * - + 16 + + COUNT ( ALL + 6 ) col2, + 40
----
-207
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT - COUNT( * ) * 64 - - 83 + + 93 + 58
----
170

skipif mysql # not compatible
query I rowsort label-7654
SELECT - COUNT ( * ) * 64 - - 83 + + 93 + 58
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT + + 69 + - + COALESCE ( + 34, + COUNT( + + 48 ), + 44 + - 17 ) + - 57 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-7655
SELECT + + 69 + - + COALESCE ( + 34, + COUNT ( + + 48 ), + 44 + - 17 ) + - 57 AS col1
----
-22

query I rowsort
SELECT + 62 * + 24
----
1488

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT 81 * - + 45 + - 28 + + 52 + 91 + - + NULLIF ( + - SUM( DISTINCT - 62 ), + 52 * - 99 + + 70 + - 74 ) * + - 14 * - + 79
----
-72102

skipif mysql # not compatible
query I rowsort label-7657
SELECT 81 * - + 45 + - 28 + + 52 + 91 + - + NULLIF ( + - SUM ( DISTINCT - 62 ), + 52 * - 99 + + 70 + - 74 ) * + - 14 * - + 79
----
-72102

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT ALL COALESCE ( - 8, - 79 * - CASE + + 91 WHEN + 68 THEN NULL WHEN 89 THEN - 49 + + 96 END + + NULLIF ( + COUNT( 74 ), 22 ) - + 72 + - - 63 ) + - 82 * 41 col0
----
-3370

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL COALESCE ( - 8, - 79 * - CASE + + 91 WHEN + 68 THEN NULL WHEN 89 THEN - 49 + + 96 END + + NULLIF ( + COUNT ( 74 ), 22 ) - + 72 + - - 63 ) + - 82 * 41 col0
----
-3370

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT DISTINCT - 91 * + CASE MAX( 36 ) WHEN - COUNT( - 17 ) THEN 57 WHEN - 17 THEN - - 46 + + + 55 * 35 * - + 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT - 91 * + CASE MAX ( 36 ) WHEN - COUNT ( - 17 ) THEN 57 WHEN - 17 THEN - - 46 + + + 55 * 35 * - + 78 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7661
SELECT ALL + 36 + + 81 - + + 49 AS col1, MIN( - + 79 ) AS col0
----
68
-79

skipif mysql # not compatible
query II rowsort label-7661
SELECT ALL + 36 + + 81 - + + 49 AS col1, MIN ( - + 79 ) AS col0
----
68
-79

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

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

query I rowsort
SELECT DISTINCT ( 83 ) + - 66
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7664
SELECT - CASE - 44 WHEN - 21 * - 45 * CAST( NULL AS SIGNED ) THEN NULL ELSE + + 17 END + - 15 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-7664
SELECT - CASE - 44 WHEN - 21 * - 45 * CAST ( NULL AS INTEGER ) THEN NULL ELSE + + 17 END + - 15 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT ALL COUNT( ALL 28 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL COUNT ( ALL 28 ) AS col1
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7667
SELECT ALL - 73 + - - COALESCE ( - - 19, + + 86 ) DIV 32 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL - 73 + - - COALESCE ( - - 19, + + 86 ) / 32 AS col0
----
-73

query I rowsort
SELECT + 72 + - + 67 AS col1
----
5

query I rowsort
SELECT ALL + 1 + + 2 + + - 6 + - 85 * + + 2
----
-173

onlyif mysql # aggregate syntax: 
query II rowsort label-7670
SELECT DISTINCT COUNT( * ) AS col1, - 75 + ( 59 )
----
1
-16

skipif mysql # not compatible
query II rowsort label-7670
SELECT DISTINCT COUNT ( * ) AS col1, - 75 + ( 59 )
----
1
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7671
SELECT DISTINCT + 28 * + 21 * + CAST( NULL AS SIGNED ) col2, 58 * - 68
----
NULL
-3944

skipif mysql # not compatible
query II rowsort label-7671
SELECT DISTINCT + 28 * + 21 * + CAST ( NULL AS INTEGER ) col2, 58 * - 68
----
NULL
-3944

query I rowsort
SELECT ALL - 74 + - 13
----
-87

query I rowsort
SELECT - 18 + - + 74
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7674
SELECT - CASE + COUNT( * ) WHEN + + 46 * + COUNT( * ) + 21 THEN NULL ELSE - 8 * - 78 + + - 3 END + 54 - - + 11 + COUNT( * ) * - COUNT( * ) * - - 87 * - - COALESCE ( + - 82, NULLIF ( 52, SUM( - ( + 23 ) ) * + ( + COUNT( * ) ) ) * - 29 - + 65 * - COUNT( * ) ) / - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7674
SELECT - CASE + COUNT ( * ) WHEN + + 46 * + COUNT ( * ) + 21 THEN NULL ELSE - 8 * - 78 + + - 3 END + 54 - - + 11 + COUNT ( * ) * - COUNT ( * ) * - - 87 * - - COALESCE ( + - 82, NULLIF ( 52, SUM ( - ( + 23 ) ) * + ( + COUNT ( * ) ) ) * - 29 - + 65 * - COUNT ( * ) ) / - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + + 24 * + 19
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT + - MIN( ALL - 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-7676
SELECT + - MIN ( ALL - 66 ) AS col1
----
66

query II rowsort
SELECT + 38 * + + 75 + 6 AS col1, 46
----
2856
46

query I rowsort
SELECT ALL + 80 * + 52 AS col1
----
4160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7679
SELECT + CAST( + ( 17 ) AS SIGNED ), + 13 + + - COALESCE ( - 36, COUNT( * ) ) - 27 col2
----
17
22

skipif mysql # not compatible
query II rowsort label-7679
SELECT + CAST ( + ( 17 ) AS INTEGER ), + 13 + + - COALESCE ( - 36, COUNT ( * ) ) - 27 col2
----
17
22

query II rowsort
SELECT + 37, - 11 col0
----
37
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT DISTINCT - + CASE + + 72 WHEN - CASE 0 WHEN + 96 THEN + + 1 * - 92 - + ( - - COUNT( DISTINCT 40 ) ) ELSE - 9 END THEN NULL ELSE + 62 * - 54 END - + - 85 + 17 * - 75
----
2158

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT - + CASE + + 72 WHEN - CASE 0 WHEN + 96 THEN + + 1 * - 92 - + ( - - COUNT ( DISTINCT 40 ) ) ELSE - 9 END THEN NULL ELSE + 62 * - 54 END - + - 85 + 17 * - 75
----
2158

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7683
SELECT DISTINCT + 37 DIV - 6 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT + 37 / - 6 AS col1
----
-6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7685
SELECT ALL CASE + 8 WHEN 60 + 81 + + COUNT( * ) + + 19 * + 43 * - + COUNT( * ) THEN + 28 ELSE + 29 + + 16 + + ( + - 16 ) END * - CAST( NULL AS SIGNED ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL CASE + 8 WHEN 60 + 81 + + COUNT ( * ) + + 19 * + 43 * - + COUNT ( * ) THEN + 28 ELSE + 29 + + 16 + + ( + - 16 ) END * - CAST ( NULL AS INTEGER ) * - 40
----
NULL

query I rowsort
SELECT ALL + 4 + + 89
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7687
SELECT ALL - 50 + - CAST( NULL AS SIGNED ) + - 83 + ( 32 ) / 43 AS col2, + 31
----
NULL
31

skipif mysql # not compatible
query II rowsort label-7687
SELECT ALL - 50 + - CAST ( NULL AS INTEGER ) + - 83 + ( 32 ) / 43 AS col2, + 31
----
NULL
31

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

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT + COUNT ( + ( 95 ) ) * 97 AS col0
----
97

query I rowsort
SELECT ALL 27 + - 4
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL 85 + + 83 + + 43 + - - ( COUNT( * ) ) + - + COUNT( * ) + - + 3 * + 66
----
13

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL 85 + + 83 + + 43 + - - ( COUNT ( * ) ) + - + COUNT ( * ) + - + 3 * + 66
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT - 53 * + + 58 * - 42 * 54 - + COALESCE ( - 19, + 6 + + 49 ) * - + 94 * COUNT( * ) AS col0
----
6970046

skipif mysql # not compatible
query I rowsort label-7691
SELECT - 53 * + + 58 * - 42 * 54 - + COALESCE ( - 19, + 6 + + 49 ) * - + 94 * COUNT ( * ) AS col0
----
6970046

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT CASE + + 52 WHEN - - 17 + - 65 + + - 92 * - COUNT( * ) * COUNT( + 56 ) THEN + + 48 ELSE NULL END + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-7692
SELECT CASE + + 52 WHEN - - 17 + - 65 + + - 92 * - COUNT ( * ) * COUNT ( + 56 ) THEN + + 48 ELSE NULL END + + 53
----
NULL

query II rowsort
SELECT 75, - 52 * - 89 col0
----
75
4628

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7694
SELECT DISTINCT 79 AS col1, ( COUNT( * ) ) DIV 86 DIV 76 AS col2
----
79
0

skipif mysql # not compatible
query II rowsort label-7694
SELECT DISTINCT 79 AS col1, ( COUNT ( * ) ) / 86 / 76 AS col2
----
79
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT COALESCE ( + - 44, - - 50 ) DIV - 15 + + 4 * + 99 col0
----
398

skipif mysql # not compatible
query I rowsort label-7695
SELECT COALESCE ( + - 44, - - 50 ) / - 15 + + 4 * + 99 col0
----
398

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7696
SELECT CASE - 72 WHEN 45 THEN + 89 END * + COALESCE ( + ( 65 ), 12 - - NULLIF ( + - 76, + CAST( - 40 AS SIGNED ) * + - AVG ( 33 ) + - 23 * - 20 * - 83 ) ) * - COALESCE ( NULLIF ( 4, 38 ) - CAST( + 61 AS SIGNED ), + 64, MIN( ALL - 96 ) ) + - 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT CASE - 72 WHEN 45 THEN + 89 END * + COALESCE ( + ( 65 ), 12 - - NULLIF ( + - 76, + CAST ( - 40 AS INTEGER ) * + - AVG ( 33 ) + - 23 * - 20 * - 83 ) ) * - COALESCE ( NULLIF ( 4, 38 ) - CAST ( + 61 AS INTEGER ), + 64, MIN ( ALL - 96 ) ) + - 69 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7697
SELECT ALL 83 * - 41 col0, - 74 * + + SUM( + 79 ) + 36 AS col1
----
-3403
-5810

skipif mysql # not compatible
query II rowsort label-7697
SELECT ALL 83 * - 41 col0, - 74 * + + SUM ( + 79 ) + 36 AS col1
----
-3403
-5810

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

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

query II rowsort
SELECT 4 col2, 81 - - 90
----
4
171

query I rowsort
SELECT ALL 77 * + ( + 59 ) AS col2
----
4543

query I rowsort
SELECT 53 - - 23 * - - 6 AS col1
----
191

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT - 33 * 94 DIV - 37 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-7702
SELECT - 33 * 94 / - 37 AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7703
SELECT DISTINCT - + COUNT( * ) col0, + 82 * + 9 AS col2
----
-1
738

skipif mysql # not compatible
query II rowsort label-7703
SELECT DISTINCT - + COUNT ( * ) col0, + 82 * + 9 AS col2
----
-1
738

query I rowsort
SELECT ALL + - 14 * - - ( ( - 69 ) ) * - + 83 + + - 38 * - 49
----
-78316

onlyif mysql # DIV for integer division: 
query I rowsort label-7705
SELECT - - 18 * 57 * - - 75 * - 54 - 24 DIV 29 AS col0
----
-4155300

skipif mysql # not compatible
query I rowsort label-7705
SELECT - - 18 * 57 * - - 75 * - 54 - 24 / 29 AS col0
----
-4155300

query I rowsort
SELECT 71 + - 24 + 64 * - - 8
----
559

query II rowsort
SELECT + 66, 40 * - 60 AS col1
----
66
-2400

onlyif mysql # aggregate syntax: 
query III rowsort label-7708
SELECT + + 45, - ( 36 ) * - - COUNT( * ) AS col2, + 65 AS col1
----
45
-36
65

skipif mysql # not compatible
query III rowsort label-7708
SELECT + + 45, - ( 36 ) * - - COUNT ( * ) AS col2, + 65 AS col1
----
45
-36
65

query I rowsort
SELECT ALL + 8 * 86 col1
----
688

query I rowsort
SELECT - + 81 * 34 * + 4 + - + 96 AS col2
----
-11112

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7712
SELECT + + 25 AS col0, - 27 * + 51 * - COUNT( * ) AS col0
----
25
1377

skipif mysql # not compatible
query II rowsort label-7712
SELECT + + 25 AS col0, - 27 * + 51 * - COUNT ( * ) AS col0
----
25
1377

query I rowsort
SELECT - ( + + 54 ) + - 75 AS col0
----
-129

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7715
SELECT ALL - 60 AS col1, COUNT( * ) AS col1
----
-60
1

skipif mysql # not compatible
query II rowsort label-7715
SELECT ALL - 60 AS col1, COUNT ( * ) AS col1
----
-60
1

query I rowsort
SELECT ALL 86 + 33 AS col2
----
119

query I rowsort
SELECT 19 * + 18 * + 2 * 22 * - 78 AS col2
----
-1173744

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

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

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

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

query I rowsort
SELECT + 65 - + 13 * 18
----
-169

query I rowsort
SELECT + 18 * + ( + + 77 ) * ( + 82 )
----
113652

onlyif mysql # DIV for integer division: 
query I rowsort label-7722
SELECT ALL 87 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL 87 / + 95
----
0

query I rowsort
SELECT - CASE 72 WHEN + - 43 THEN - 85 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7724
SELECT DISTINCT 45 DIV 20
----
2

skipif mysql # not compatible
query I rowsort label-7724
SELECT DISTINCT 45 / 20
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7725
SELECT + - 8 DIV - + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7725
SELECT + - 8 / - + 91 AS col1
----
0

query I rowsort
SELECT ALL + ( + - 54 ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT - 91 * ( + 85 ) + - 27 - 31 * - ( + NULLIF ( 33, + 99 ) ) * - CASE + CASE + 19 WHEN - NULLIF ( - 94, + COUNT( * ) ) THEN - 61 + - 75 - - 97 END WHEN + NULLIF ( 43, MIN( + 26 ) - 39 ) THEN NULL WHEN - 22 * - 49 THEN - 91 END / + 12 + COUNT( * ) / + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-7727
SELECT - 91 * ( + 85 ) + - 27 - 31 * - ( + NULLIF ( 33, + 99 ) ) * - CASE + CASE + 19 WHEN - NULLIF ( - 94, + COUNT ( * ) ) THEN - 61 + - 75 - - 97 END WHEN + NULLIF ( 43, MIN ( + 26 ) - 39 ) THEN NULL WHEN - 22 * - 49 THEN - 91 END / + 12 + COUNT ( * ) / + 82
----
NULL

query I rowsort
SELECT + 59 * 10
----
590

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

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL - + ( - 38 ) * 79 + - + COUNT ( * )
----
3001

query I rowsort
SELECT + - 7 * + 0 * + 79 * 46 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT ALL + - 33 * COUNT( 70 ) * 19 + - + 30 + 18
----
-639

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL + - 33 * COUNT ( 70 ) * 19 + - + 30 + 18
----
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT DISTINCT COUNT( * ) * + - 56 + 72 + 42
----
58

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT COUNT ( * ) * + - 56 + 72 + 42
----
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7734
SELECT + 62 DIV 23
----
2

skipif mysql # not compatible
query I rowsort label-7734
SELECT + 62 / 23
----
2

query I rowsort
SELECT - 68 * - 74
----
5032

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT NULLIF ( + 62, + 36 * + 60 * - 5 + + - 43 + + - COUNT( * ) + - + ( COUNT( * ) ) + - 75 * + 24 * - 13 - + 80 )
----
62

skipif mysql # not compatible
query I rowsort label-7738
SELECT NULLIF ( + 62, + 36 * + 60 * - 5 + + - 43 + + - COUNT ( * ) + - + ( COUNT ( * ) ) + - 75 * + 24 * - 13 - + 80 )
----
62

query I rowsort
SELECT - 38 * + + 11 * - - 50
----
-20900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7740
SELECT DISTINCT + ( - - CASE - 3 WHEN - 91 THEN COUNT( * ) * + CAST( NULL AS SIGNED ) ELSE NULL END ) AS col1, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7740
SELECT DISTINCT + ( - - CASE - 3 WHEN - 91 THEN COUNT ( * ) * + CAST ( NULL AS INTEGER ) ELSE NULL END ) AS col1, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7741
SELECT ALL - ( - 53 ) * - 86 + + CAST( - 78 AS SIGNED ) - + - 21
----
-4615

skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL - ( - 53 ) * - 86 + + CAST ( - 78 AS INTEGER ) - + - 21
----
-4615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7742
SELECT ALL CAST( + 20 AS SIGNED ) * + 19 - - 33
----
413

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL CAST ( + 20 AS INTEGER ) * + 19 - - 33
----
413

query I rowsort
SELECT - 2 * - 27
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT DISTINCT NULLIF ( - 16, + COUNT( 64 ) / - - COUNT( * ) ) col2
----
-16

skipif mysql # not compatible
query I rowsort label-7744
SELECT DISTINCT NULLIF ( - 16, + COUNT ( 64 ) / - - COUNT ( * ) ) col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7745
SELECT ALL CASE 2 WHEN - 7 THEN - 20 WHEN + + 95 + - 0 THEN - ( - 81 ) + + - MIN( DISTINCT - CAST( - 82 AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL CASE 2 WHEN - 7 THEN - 20 WHEN + + 95 + - 0 THEN - ( - 81 ) + + - MIN ( DISTINCT - CAST ( - 82 AS INTEGER ) ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7746
SELECT ALL - 88 DIV 2
----
-44

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL - 88 / 2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7747
SELECT - MIN( - 41 ) DIV 36
----
1

skipif mysql # not compatible
query I rowsort label-7747
SELECT - MIN ( - 41 ) / 36
----
1

query II rowsort
SELECT 13 col1, + 87 col2
----
13
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT - 42 * - MIN( ALL + 44 )
----
1848

skipif mysql # not compatible
query I rowsort label-7749
SELECT - 42 * - MIN ( ALL + 44 )
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT + 48 * + COUNT( ALL 31 ) * + - ( - COUNT( * ) )
----
48

skipif mysql # not compatible
query I rowsort label-7750
SELECT + 48 * + COUNT ( ALL 31 ) * + - ( - COUNT ( * ) )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7751
SELECT - CASE - COUNT( * ) WHEN + ( + + 20 ) + NULLIF ( - ( + 15 ), - 29 ) THEN - + CAST( NULL AS SIGNED ) WHEN + ( ( + - 96 ) ) / - 18 + ( - COUNT( * ) ) * 44 + 89 / - 45 THEN 52 WHEN - 12 + 41 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT - CASE - COUNT ( * ) WHEN + ( + + 20 ) + NULLIF ( - ( + 15 ), - 29 ) THEN - + CAST ( NULL AS INTEGER ) WHEN + ( ( + - 96 ) ) / - 18 + ( - COUNT ( * ) ) * 44 + 89 / - 45 THEN 52 WHEN - 12 + 41 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7752
SELECT 29 AS col0, - COUNT( * )
----
29
-1

skipif mysql # not compatible
query II rowsort label-7752
SELECT 29 AS col0, - COUNT ( * )
----
29
-1

query I rowsort
SELECT ALL 94 * + 63 AS col0
----
5922

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT + MIN( + + 18 ) * - 89 - + - 7
----
-1595

skipif mysql # not compatible
query I rowsort label-7755
SELECT + MIN ( + + 18 ) * - 89 - + - 7
----
-1595

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT - - MAX( DISTINCT - 90 ) - 0
----
-90

skipif mysql # not compatible
query I rowsort label-7757
SELECT - - MAX ( DISTINCT - 90 ) - 0
----
-90

query I rowsort
SELECT + + 80 * 66
----
5280

query I rowsort
SELECT + 93 - - 20
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-7760
SELECT ALL 63 DIV - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL 63 / - 86 AS col2
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7762
SELECT DISTINCT - + 89 DIV COUNT( * ) + + - 44 AS col1
----
-133

skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT - + 89 / COUNT ( * ) + + - 44 AS col1
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT - 51 + + - COUNT( * ) * + 28
----
-79

skipif mysql # not compatible
query I rowsort label-7763
SELECT - 51 + + - COUNT ( * ) * + 28
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-7764
SELECT + 20 DIV + 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7764
SELECT + 20 / + 33 AS col1
----
0

query I rowsort
SELECT + - 53 * 88 AS col2
----
-4664

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT + 56 + + + 52 + + 5 + - + 20 - - 41 + + + COUNT( * ) * 26 * + COUNT( * )
----
160

skipif mysql # not compatible
query I rowsort label-7766
SELECT + 56 + + + 52 + + 5 + - + 20 - - 41 + + + COUNT ( * ) * 26 * + COUNT ( * )
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7767
SELECT CAST( - 70 AS SIGNED ) AS col2, 97 * - 2
----
-70
-194

skipif mysql # not compatible
query II rowsort label-7767
SELECT CAST ( - 70 AS INTEGER ) AS col2, 97 * - 2
----
-70
-194

query I rowsort
SELECT - 78 * 60 + - 20
----
-4700

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT SUM( ALL + - 35 ) + + 59
----
24

skipif mysql # not compatible
query I rowsort label-7769
SELECT SUM ( ALL + - 35 ) + + 59
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT 50 * + COUNT( + - 50 ) * + 88 + 38 + - - ( + SUM( ALL + 57 ) ) AS col0
----
4495

skipif mysql # not compatible
query I rowsort label-7770
SELECT 50 * + COUNT ( + - 50 ) * + 88 + 38 + - - ( + SUM ( ALL + 57 ) ) AS col0
----
4495

query I rowsort
SELECT DISTINCT 19 * 10 AS col1
----
190

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7773
SELECT ALL - 84 * + + 80 DIV - COUNT( * )
----
6720

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL - 84 * + + 80 / - COUNT ( * )
----
6720

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7775
SELECT 95 DIV 61 DIV + - 73
----
0

skipif mysql # not compatible
query I rowsort label-7775
SELECT 95 / 61 / + - 73
----
0

query I rowsort
SELECT ALL 18 + - 95 AS col1
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7777
SELECT 77 DIV 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7777
SELECT 77 / 94 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7778
SELECT + 75 + + + 24 DIV COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7778
SELECT + 75 + + + 24 / COUNT ( * ) AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7779
SELECT ALL + COUNT( DISTINCT + CAST( + + 30 AS SIGNED ) ) + - - 90 + - - 86 * 92 - 4 AS col0
----
7999

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL + COUNT ( DISTINCT + CAST ( + + 30 AS INTEGER ) ) + - - 90 + - - 86 * 92 - 4 AS col0
----
7999

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT COUNT( * ) + - + 69
----
-68

skipif mysql # not compatible
query I rowsort label-7780
SELECT COUNT ( * ) + - + 69
----
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7781
SELECT + MAX( CAST( NULL AS DECIMAL ) )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7782
SELECT 97 - + 6 DIV + 16
----
97

skipif mysql # not compatible
query I rowsort label-7782
SELECT 97 - + 6 / + 16
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7783
SELECT ALL + COUNT( * ) + - - NULLIF ( + CAST( NULL AS DECIMAL ), - AVG ( + - 1 ) - + + 65 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL + COUNT ( * ) + - - NULLIF ( + CAST ( NULL AS REAL ), - AVG ( + - 1 ) - + + 65 ) AS col2
----
NULL

query I rowsort
SELECT - 41 + ( - + 48 ) AS col0
----
-89

query I rowsort
SELECT 43 - + - 22 + 92 AS col1
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7786
SELECT ALL CAST( - COALESCE ( 35, + 41, + 1 ) AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL CAST ( - COALESCE ( 35, + 41, + 1 ) AS INTEGER )
----
-35

query I rowsort
SELECT 46 + - 55
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT COUNT( * ) + - - 12 * - 91
----
-1091

skipif mysql # not compatible
query I rowsort label-7789
SELECT COUNT ( * ) + - - 12 * - 91
----
-1091

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT DISTINCT + COALESCE ( - 65, - - 86 * - COALESCE ( + 64, + 52 * + 11 ) * + AVG ( - + 43 ) * + 75 / - 74 * - - 35 + - 10 + - 62, + 23 ) + - 93 + - 57 / CAST( NULL AS SIGNED ) + - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT + COALESCE ( - 65, - - 86 * - COALESCE ( + 64, + 52 * + 11 ) * + AVG ( - + 43 ) * + 75 / - 74 * - - 35 + - 10 + - 62, + 23 ) + - 93 + - 57 / CAST ( NULL AS INTEGER ) + - 98 AS col2
----
NULL

query I rowsort
SELECT ALL - + ( 57 ) - + 29 AS col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7793
SELECT + - 11 * - COALESCE ( - 97, - + 20 + - COALESCE ( + 11, - COUNT( * ) ) + + COUNT( * ) * + 23 * - 87 * - + COUNT( * ) + + MIN( DISTINCT + 63 ) + + 56 + - 98 + + 15 DIV 44 * 70, - 99 ) * 32 + + 51
----
-34093

skipif mysql # not compatible
query I rowsort label-7793
SELECT + - 11 * - COALESCE ( - 97, - + 20 + - COALESCE ( + 11, - COUNT ( * ) ) + + COUNT ( * ) * + 23 * - 87 * - + COUNT ( * ) + + MIN ( DISTINCT + 63 ) + + 56 + - 98 + + 15 / 44 * 70, - 99 ) * 32 + + 51
----
-34093

query II rowsort
SELECT - 58 * + 83, 71 AS col1
----
-4814
71

query I rowsort
SELECT - NULLIF ( + 19, 44 ) * + + 49
----
-931

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

skipif mysql # not compatible
query I rowsort label-7796
SELECT + CAST ( - SUM ( ALL - 49 ) AS INTEGER ) AS col0
----
49

query I rowsort
SELECT ALL 20 - - 79 col1
----
99

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

skipif mysql # not compatible
query I rowsort label-7798
SELECT MAX ( ALL 70 ) * + - COUNT ( * ) AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7799
SELECT ALL - ( - CASE - SUM( ALL - 67 ) WHEN + - 66 * - 70 + - + 63 + 53 / COUNT( * ) - + 12 * - 81 THEN NULL ELSE + 28 + + + NULLIF ( + CAST( - 84 AS SIGNED ), + + 4 ) END )
----
-56

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL - ( - CASE - SUM ( ALL - 67 ) WHEN + - 66 * - 70 + - + 63 + 53 / COUNT ( * ) - + 12 * - 81 THEN NULL ELSE + 28 + + + NULLIF ( + CAST ( - 84 AS INTEGER ), + + 4 ) END )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT DISTINCT SUM( 15 ) * 30 AS col0
----
450

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT SUM ( 15 ) * 30 AS col0
----
450

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7802
SELECT ALL 85 * + + 45 / - CASE ( + - 25 ) WHEN SUM( DISTINCT + 93 ) THEN 72 * 55 WHEN + + SUM( DISTINCT 92 ) * SUM( 29 ) THEN NULL ELSE + 30 + + - 42 + - + CAST( NULL AS SIGNED ) + - + 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL 85 * + + 45 / - CASE ( + - 25 ) WHEN SUM ( DISTINCT + 93 ) THEN 72 * 55 WHEN + + SUM ( DISTINCT 92 ) * SUM ( 29 ) THEN NULL ELSE + 30 + + - 42 + - + CAST ( NULL AS INTEGER ) + - + 8 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7803
SELECT COUNT( DISTINCT + - 83 ) DIV - 82 + + 27
----
27

skipif mysql # not compatible
query I rowsort label-7803
SELECT COUNT ( DISTINCT + - 83 ) / - 82 + + 27
----
27

query I rowsort
SELECT + 99 * ( 83 ) + + 18
----
8235

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT SUM( ALL 98 ) * - + 52 + + + 13 AS col2
----
-5083

skipif mysql # not compatible
query I rowsort label-7805
SELECT SUM ( ALL 98 ) * - + 52 + + + 13 AS col2
----
-5083

query I rowsort
SELECT ALL 78 * 66 AS col0
----
5148

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7807
SELECT CAST( NULL AS SIGNED ) / - CAST( + + 26 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT CAST ( NULL AS INTEGER ) / - CAST ( + + 26 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7808
SELECT 79 - - 29 + + COUNT( * ) AS col2, - 26 DIV + 37 AS col1
----
109
0

skipif mysql # not compatible
query II rowsort label-7808
SELECT 79 - - 29 + + COUNT ( * ) AS col2, - 26 / + 37 AS col1
----
109
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT MAX( ALL + 32 ) * + 49 AS col1
----
1568

skipif mysql # not compatible
query I rowsort label-7809
SELECT MAX ( ALL + 32 ) * + 49 AS col1
----
1568

query II rowsort
SELECT DISTINCT - 27 AS col0, 79
----
-27
79

query I rowsort
SELECT ALL 18 + 17 AS col0
----
35

query I rowsort
SELECT DISTINCT 77 + - - 39 AS col0
----
116

query II rowsort
SELECT DISTINCT 6 AS col0, 4 AS col1
----
6
4

query I rowsort
SELECT ALL + 53 + + + 37 + - - 82
----
172

query I rowsort
SELECT DISTINCT 12 + 93 AS col1
----
105

query I rowsort
SELECT ALL + 41 + - 40 + + 88 AS col1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7817
SELECT DISTINCT 12 AS col0, + 36 * ( - COUNT( * ) ) AS col1
----
12
-36

skipif mysql # not compatible
query II rowsort label-7817
SELECT DISTINCT 12 AS col0, + 36 * ( - COUNT ( * ) ) AS col1
----
12
-36

query I rowsort
SELECT ALL 43 + + 2
----
45

query I rowsort
SELECT 22 * + 84
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT DISTINCT + - COALESCE ( + COUNT( * ), 30 - + MAX( 88 ) ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT + - COALESCE ( + COUNT ( * ), 30 - + MAX ( 88 ) ) + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT DISTINCT + 47 * MAX( ALL + 92 ) * - 94 * - 49 AS col0
----
19916344

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT + 47 * MAX ( ALL + 92 ) * - 94 * - 49 AS col0
----
19916344

query I rowsort
SELECT + 66 * 23 AS col0
----
1518

onlyif mysql # DIV for integer division: 
query I rowsort label-7823
SELECT ALL + + 88 DIV + 17 + - 15 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL + + 88 / + 17 + - 15 AS col1
----
-10

query I rowsort
SELECT ALL ( + 34 ) - + + 75 AS col2
----
-41

query I rowsort
SELECT 71 - + - 25
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT - 42 - 49 + + 27 + - 35 * - COUNT( * ) * + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-7826
SELECT - 42 - 49 + + 27 + - 35 * - COUNT ( * ) * + COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT - SUM( 49 ) + + 82
----
33

skipif mysql # not compatible
query I rowsort label-7827
SELECT - SUM ( 49 ) + + 82
----
33

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7829
SELECT ALL - 25, CAST( + 98 AS SIGNED ) AS col0
----
-25
98

skipif mysql # not compatible
query II rowsort label-7829
SELECT ALL - 25, CAST ( + 98 AS INTEGER ) AS col0
----
-25
98

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7833
SELECT ( + MAX( ALL + 64 ) ) * + CASE - - CAST( NULL AS SIGNED ) WHEN + 10 THEN 77 + SUM( + - 38 ) / - ( - 59 ) END - + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT ( + MAX ( ALL + 64 ) ) * + CASE - - CAST ( NULL AS INTEGER ) WHEN + 10 THEN 77 + SUM ( + - 38 ) / - ( - 59 ) END - + + 7
----
NULL

query II rowsort
SELECT ALL + 15 AS col1, - 51 col2
----
15
-51

query I rowsort
SELECT DISTINCT + 1 * + 11
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT - COUNT( * ) + 61 * - 53 * 98 + - 15 * 93 AS col1
----
-318230

skipif mysql # not compatible
query I rowsort label-7836
SELECT - COUNT ( * ) + 61 * - 53 * 98 + - 15 * 93 AS col1
----
-318230

onlyif mysql # DIV for integer division: 
query I rowsort label-7837
SELECT + 95 DIV + NULLIF ( - 87, + 15 + - - 61 ) + + - 68 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-7837
SELECT + 95 / + NULLIF ( - 87, + 15 + - - 61 ) + + - 68 AS col1
----
-69

query I rowsort
SELECT COALESCE ( + 44, 6 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7839
SELECT MAX( - CAST( - 39 AS SIGNED ) )
----
39

skipif mysql # not compatible
query I rowsort label-7839
SELECT MAX ( - CAST ( - 39 AS INTEGER ) )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7840
SELECT + 32 * 2 + + CAST( - CASE + 45 WHEN - 12 THEN 84 WHEN - 10 THEN + 28 ELSE 55 END AS SIGNED ) * - 45 * NULLIF ( + AVG ( DISTINCT + 79 ), - - ( + MIN( ALL - COALESCE ( 21, + + 44 * + ( + + 47 ) + 29, 1 ) ) ) * ( COUNT( * ) * - 45 + 1 ) + COUNT( * ) ) + + CASE + 31 WHEN + NULLIF ( - 25, COUNT( * ) ) + 94 THEN NULL WHEN CASE 7 WHEN 20 THEN NULL WHEN - 24 THEN 97 * 42 + 81 ELSE NULL END THEN NULL ELSE + CAST( NULL AS SIGNED ) - - COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7840
SELECT + 32 * 2 + + CAST ( - CASE + 45 WHEN - 12 THEN 84 WHEN - 10 THEN + 28 ELSE 55 END AS INTEGER ) * - 45 * NULLIF ( + AVG ( DISTINCT + 79 ), - - ( + MIN ( ALL - COALESCE ( 21, + + 44 * + ( + + 47 ) + 29, 1 ) ) ) * ( COUNT ( * ) * - 45 + 1 ) + COUNT ( * ) ) + + CASE + 31 WHEN + NULLIF ( - 25, COUNT ( * ) ) + 94 THEN NULL WHEN CASE 7 WHEN 20 THEN NULL WHEN - 24 THEN 97 * 42 + 81 ELSE NULL END THEN NULL ELSE + CAST ( NULL AS INTEGER ) - - COUNT ( * ) END col1
----
NULL

query II rowsort
SELECT ALL + ( 47 ) AS col1, ( 10 )
----
47
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7842
SELECT - CAST( NULL AS SIGNED ) / 92, - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7842
SELECT - CAST ( NULL AS INTEGER ) / 92, - COUNT ( * ) AS col2
----
NULL
-1

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

query I rowsort
SELECT ALL 88 * + 1 + + 46
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7845
SELECT DISTINCT 25 * + 37 / - - 94 + + + CASE 91 WHEN + 41 THEN + CASE + ( ( + 91 ) ) WHEN - + 58 * + 51 * - ( - NULLIF ( 58, - - 99 ) ) - - CAST( 55 AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN - 5 - + 99 WHEN - 22 THEN NULL ELSE NULL END WHEN + 7 THEN - 70 END + 90 / 65 * + 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT 25 * + 37 / - - 94 + + + CASE 91 WHEN + 41 THEN + CASE + ( ( + 91 ) ) WHEN - + 58 * + 51 * - ( - NULLIF ( 58, - - 99 ) ) - - CAST ( 55 AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN - 5 - + 99 WHEN - 22 THEN NULL ELSE NULL END WHEN + 7 THEN - 70 END + 90 / 65 * + 48 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7846
SELECT + 7 DIV - 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7846
SELECT + 7 / - 25 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT DISTINCT - 39 * - + MAX( ALL - 20 ) * 14
----
-10920

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT - 39 * - + MAX ( ALL - 20 ) * 14
----
-10920

query I rowsort
SELECT 67 * - 74 * 18 + 70
----
-89174

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

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

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

skipif mysql # not compatible
query II rowsort label-7850
SELECT COUNT ( * ), 4 AS col1
----
1
4

query I rowsort
SELECT + - 73 + - 7 + 69 + - 7 * 90
----
-641

query I rowsort
SELECT DISTINCT + 59 - - - 77 + 41 * - 95 * + + 18
----
-70128

query II rowsort
SELECT 80 AS col1, - 3 * 12 AS col0
----
80
-36

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

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

query I rowsort
SELECT ALL 29 - + + 72 AS col2
----
-43

query I rowsort
SELECT + 13 + + + 35 AS col0
----
48

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

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

query I rowsort
SELECT + + 71 + 42 * + 19 * - 56
----
-44617

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

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

query I rowsort
SELECT ALL - 85 * 96 + 23 AS col0
----
-8137

onlyif mysql # aggregate syntax: 
query II rowsort label-7861
SELECT DISTINCT 18 * - COUNT( * ), 75 AS col1
----
-18
75

skipif mysql # not compatible
query II rowsort label-7861
SELECT DISTINCT 18 * - COUNT ( * ), 75 AS col1
----
-18
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT + - 47 * + - COALESCE ( - 81, + + COUNT( 45 ) ) + - 94 AS col0
----
-3901

skipif mysql # not compatible
query I rowsort label-7862
SELECT + - 47 * + - COALESCE ( - 81, + + COUNT ( 45 ) ) + - 94 AS col0
----
-3901

query I rowsort
SELECT ALL - 41 * - 75 AS col2
----
3075

query I rowsort
SELECT ALL 9 * - - 22
----
198

query I rowsort
SELECT + 50 * + 81
----
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT CASE - 44 WHEN + SUM( + 86 ) THEN - 0 END * - ( + 41 ) + + SUM( ALL - + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7866
SELECT CASE - 44 WHEN + SUM ( + 86 ) THEN - 0 END * - ( + 41 ) + + SUM ( ALL - + 67 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7867
SELECT ALL COUNT( * ) DIV 77 + - ( + 9 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL COUNT ( * ) / 77 + - ( + 9 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT - 20 * + + MIN( DISTINCT - 10 )
----
200

skipif mysql # not compatible
query I rowsort label-7868
SELECT - 20 * + + MIN ( DISTINCT - 10 )
----
200

query I rowsort
SELECT ALL - 25 * + 53 AS col1
----
-1325

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7871
SELECT DISTINCT 9 DIV - 62 * - + 54 + - 91 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT 9 / - 62 * - + 54 + - 91 AS col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7872
SELECT + 2 * 8 + + - COUNT( * ) AS col2, 40 DIV + COALESCE ( - 26, 25 )
----
15
-1

skipif mysql # not compatible
query II rowsort label-7872
SELECT + 2 * 8 + + - COUNT ( * ) AS col2, 40 / + COALESCE ( - 26, 25 )
----
15
-1

query I rowsort
SELECT - 66 * - 4
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7874
SELECT ALL + MAX( ALL + - 49 ) * - 37 * + + 58 * + - 59, - 74 * COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col1
----
-6204086
NULL

skipif mysql # not compatible
query II rowsort label-7874
SELECT ALL + MAX ( ALL + - 49 ) * - 37 * + + 58 * + - 59, - 74 * COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col1
----
-6204086
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT DISTINCT + SUM( DISTINCT + 93 ) * - + 9 + 45 AS col1
----
-792

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT + SUM ( DISTINCT + 93 ) * - + 9 + 45 AS col1
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT ALL - 57 * + 73 + COALESCE ( + - 20, - + 9 ) + - MIN( ALL + - 36 ) * COUNT( * ) * + - 19 AS col1
----
-4865

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL - 57 * + 73 + COALESCE ( + - 20, - + 9 ) + - MIN ( ALL + - 36 ) * COUNT ( * ) * + - 19 AS col1
----
-4865

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT - - 44 - + + 38 + + COUNT( ALL - + 22 )
----
7

skipif mysql # not compatible
query I rowsort label-7877
SELECT - - 44 - + + 38 + + COUNT ( ALL - + 22 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7878
SELECT - 21 * - NULLIF ( - COUNT( + 4 ), - + 25 * + 27 * - COUNT( * ) ) AS col1, 49 AS col1
----
-21
49

skipif mysql # not compatible
query II rowsort label-7878
SELECT - 21 * - NULLIF ( - COUNT ( + 4 ), - + 25 * + 27 * - COUNT ( * ) ) AS col1, 49 AS col1
----
-21
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7879
SELECT ALL 61 * - 73 col2, CAST( NULL AS SIGNED ) * - 49 * - 23 + 16 + + 7 + + + 65 AS col0
----
-4453
NULL

skipif mysql # not compatible
query II rowsort label-7879
SELECT ALL 61 * - 73 col2, CAST ( NULL AS INTEGER ) * - 49 * - 23 + 16 + + 7 + + + 65 AS col0
----
-4453
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT + ( - - COUNT( * ) ) + + 47 + 94 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-7880
SELECT + ( - - COUNT ( * ) ) + + 47 + 94 AS col0
----
142

query I rowsort
SELECT ALL - 97 * 56 + + 4 AS col2
----
-5428

query I rowsort
SELECT - 88 * - 41 * + - 98 * - - 42 AS col2
----
-14850528

query I rowsort
SELECT + - 86 * + 55 * + 14
----
-66220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7884
SELECT ALL - 81 * ( + + NULLIF ( CASE - CAST( COUNT( * ) AS SIGNED ) WHEN + COUNT( * ) * + 5 THEN ( - 34 ) / + + 50 * + - 52 + - 38 WHEN + 94 THEN NULL END, - + 37 ) ), 39 AS col1
----
NULL
39

skipif mysql # not compatible
query II rowsort label-7884
SELECT ALL - 81 * ( + + NULLIF ( CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN + COUNT ( * ) * + 5 THEN ( - 34 ) / + + 50 * + - 52 + - 38 WHEN + 94 THEN NULL END, - + 37 ) ), 39 AS col1
----
NULL
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT CASE - ( - 96 ) WHEN + 40 + + - 58 + + 18 THEN + COUNT( - 77 ) / - - COUNT( ( 77 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7885
SELECT CASE - ( - 96 ) WHEN + 40 + + - 58 + + 18 THEN + COUNT ( - 77 ) / - - COUNT ( ( 77 ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7886
SELECT + - CAST( + 76 AS DECIMAL ) + - 34 - - CASE 7 WHEN + 37 THEN - + 24 * - 13 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT + - CAST ( + 76 AS REAL ) + - 34 - - CASE 7 WHEN + 37 THEN - + 24 * - 13 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 50 * + 48 * + + 60
----
144000

query I rowsort
SELECT - + 26 * 58 col1
----
-1508

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7890
SELECT DISTINCT - 98 DIV - + 86 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT - 98 / - + 86 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7891
SELECT DISTINCT - CAST( - - 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT - CAST ( - - 92 AS INTEGER )
----
-92

query I rowsort
SELECT - 4 + - + 60 * 66 * + + 19 AS col1
----
-75244

onlyif mysql # aggregate syntax: 
query II rowsort label-7893
SELECT ALL 62 + + 78 + COUNT( * ) AS col0, 93
----
141
93

skipif mysql # not compatible
query II rowsort label-7893
SELECT ALL 62 + + 78 + COUNT ( * ) AS col0, 93
----
141
93

query I rowsort
SELECT 99 * 18 AS col2
----
1782

onlyif mysql # aggregate syntax: 
query II rowsort label-7895
SELECT 70 - + COUNT( 71 ), - 34 * 26 AS col1
----
69
-884

skipif mysql # not compatible
query II rowsort label-7895
SELECT 70 - + COUNT ( 71 ), - 34 * 26 AS col1
----
69
-884

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

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

query I rowsort
SELECT DISTINCT 67 + - 2 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT 89 + + + COALESCE ( NULLIF ( 48, + 81 ), COUNT( * ), 51 )
----
137

skipif mysql # not compatible
query I rowsort label-7898
SELECT 89 + + + COALESCE ( NULLIF ( 48, + 81 ), COUNT ( * ), 51 )
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT DISTINCT 61 + - - COALESCE ( - 84, - 84 * + COUNT( * ) * - 20 * - ( - - 30 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT 61 + - - COALESCE ( - 84, - 84 * + COUNT ( * ) * - 20 * - ( - - 30 ) )
----
-23

query I rowsort
SELECT 79 + + 99
----
178

query I rowsort
SELECT 66 * - 29 - - - 0
----
-1914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7902
SELECT SUM( DISTINCT - CAST( - 98 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) * + ( + - 47 ) + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7902
SELECT SUM ( DISTINCT - CAST ( - 98 AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) * + ( + - 47 ) + 46
----
NULL

query II rowsort
SELECT + 44, - 48 * + 65 AS col1
----
44
-3120

query II rowsort
SELECT 78 col0, COALESCE ( + 25, ( + - 31 ) + - 80 )
----
78
25

query I rowsort
SELECT 39 * 17 col0
----
663

query II rowsort
SELECT ALL - - 62 AS col2, - 53 AS col0
----
62
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT DISTINCT - 45 * - 27 * - + 23 + + COUNT( * ) AS col1
----
-27944

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT - 45 * - 27 * - + 23 + + COUNT ( * ) AS col1
----
-27944

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

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

query I rowsort
SELECT - 19 * CASE 56 WHEN + - NULLIF ( 21, - - 47 - 8 * 16 ) * + 92 THEN - 44 * + 2 + + 93 ELSE NULL END - 67
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7910
SELECT ALL - COALESCE ( - + 36, - COUNT( * ), - ( 25 ) * + 1 * COUNT( * ) * - 1 DIV - - 20 - 79 + - 35 * + + MIN( ALL 29 ) + - 24 ) * + 91 * - 31
----
-101556

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL - COALESCE ( - + 36, - COUNT ( * ), - ( 25 ) * + 1 * COUNT ( * ) * - 1 / - - 20 - 79 + - 35 * + + MIN ( ALL 29 ) + - 24 ) * + 91 * - 31
----
-101556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7911
SELECT CASE CASE - 72 WHEN - ( - - 46 ) THEN - 93 * - COUNT( * ) + + 3 WHEN ( - ( + 69 ) ) THEN NULL END WHEN - - 57 THEN CAST( NULL AS SIGNED ) + + CAST( 39 AS DECIMAL ) / 9 * + NULLIF ( + - 46, + 42 + + COALESCE ( - 40, - - NULLIF ( + 35, 27 ) / 57 ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7911
SELECT CASE CASE - 72 WHEN - ( - - 46 ) THEN - 93 * - COUNT ( * ) + + 3 WHEN ( - ( + 69 ) ) THEN NULL END WHEN - - 57 THEN CAST ( NULL AS INTEGER ) + + CAST ( 39 AS REAL ) / 9 * + NULLIF ( + - 46, + 42 + + COALESCE ( - 40, - - NULLIF ( + 35, 27 ) / 57 ) ) END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7912
SELECT + - COALESCE ( - - 56, - + 97, + 61 * + 78 + 80 + 65 + 72 DIV - + 25 * 98 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-7912
SELECT + - COALESCE ( - - 56, - + 97, + 61 * + 78 + 80 + 65 + 72 / - + 25 * 98 ) AS col1
----
-56

query I rowsort
SELECT ALL - 52 * - 71 col2
----
3692

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT COUNT( * ) * - - SUM( 56 ) * 41 * 60 - + 19
----
137741

skipif mysql # not compatible
query I rowsort label-7914
SELECT COUNT ( * ) * - - SUM ( 56 ) * 41 * 60 - + 19
----
137741

query I rowsort
SELECT - 95 + - 14
----
-109

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

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

query II rowsort
SELECT ALL 27, - 81 AS col0
----
27
-81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7919
SELECT ALL - - MIN( + 93 ) DIV CAST( - 64 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL - - MIN ( + 93 ) / CAST ( - 64 AS INTEGER )
----
-1

query I rowsort
SELECT + COALESCE ( 24, + 59 * + ( + + 14 ) ) + - 13 - - 80 * - + 20 + + + 10
----
-1579

onlyif mysql # DIV for integer division: 
query II rowsort label-7921
SELECT ALL + + 10 DIV - 51 + - 38, + 97 * + 40 AS col2
----
-38
3880

skipif mysql # not compatible
query II rowsort label-7921
SELECT ALL + + 10 / - 51 + - 38, + 97 * + 40 AS col2
----
-38
3880

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT DISTINCT + 92 + + 55 - + COUNT( * ) * + 27 * + 32 + + 19 * - 33
----
-1344

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT + 92 + + 55 - + COUNT ( * ) * + 27 * + 32 + + 19 * - 33
----
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT ALL - - 97 + + + COUNT( * ) + - + 73
----
25

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL - - 97 + + + COUNT ( * ) + - + 73
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7924
SELECT 60 + - 35 * - CAST( + 53 AS SIGNED ) AS col2
----
1915

skipif mysql # not compatible
query I rowsort label-7924
SELECT 60 + - 35 * - CAST ( + 53 AS INTEGER ) AS col2
----
1915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7925
SELECT COALESCE ( 44, CAST( NULL AS SIGNED ) + - ( 28 ) * + - ( - 92 ) + - - COUNT( * ) DIV COUNT( * ) ) - - + 81 - + 71
----
54

skipif mysql # not compatible
query I rowsort label-7925
SELECT COALESCE ( 44, CAST ( NULL AS INTEGER ) + - ( 28 ) * + - ( - 92 ) + - - COUNT ( * ) / COUNT ( * ) ) - - + 81 - + 71
----
54

query I rowsort
SELECT DISTINCT + 52 + 17 * - 14 + + 52
----
-134

query I rowsort
SELECT ALL - 97 + - 45
----
-142

query I rowsort
SELECT DISTINCT 49 + + - 42 + 54 + + 36 * 54 * - + 8
----
-15491

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

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

query I rowsort
SELECT ALL 84 + - + 55
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT 71 * - COUNT( * ) + + 11 * 2 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7932
SELECT 71 * - COUNT ( * ) + + 11 * 2 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ALL - COUNT( * ) * 67 - - 39 - - + NULLIF ( COUNT( ALL - + 89 ), 94 * 8 + + - 76 )
----
-27

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL - COUNT ( * ) * 67 - - 39 - - + NULLIF ( COUNT ( ALL - + 89 ), 94 * 8 + + - 76 )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7934
SELECT 95 * + - 0 col1, COUNT( * ) * - - 88 DIV 3
----
0
29

skipif mysql # not compatible
query II rowsort label-7934
SELECT 95 * + - 0 col1, COUNT ( * ) * - - 88 / 3
----
0
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT + MAX( + 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7936
SELECT + MAX ( + 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT DISTINCT - COALESCE ( + 24, + + COUNT( * ) * 90 )
----
-24

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT - COALESCE ( + 24, + + COUNT ( * ) * 90 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT MIN( - 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-7938
SELECT MIN ( - 61 ) AS col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7939
SELECT ALL 25 * + CAST( - + COUNT( * ) AS SIGNED ) * + + 28 + - CASE + 47 WHEN + COUNT( * ) + COALESCE ( - + 83, - 36 ) * - COALESCE ( 88, - 76 * - - COUNT( * ) ) + - CASE + + 93 WHEN - + 78 * - 93 THEN 29 * - 61 * - 37 - + 22 + + 55 - - 36 ELSE NULL END * + 54 THEN NULL WHEN 88 THEN ( - 66 ) END - - 57 * - 34 * - 53 - COUNT( DISTINCT 22 ) / + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL 25 * + CAST ( - + COUNT ( * ) AS INTEGER ) * + + 28 + - CASE + 47 WHEN + COUNT ( * ) + COALESCE ( - + 83, - 36 ) * - COALESCE ( 88, - 76 * - - COUNT ( * ) ) + - CASE + + 93 WHEN - + 78 * - 93 THEN 29 * - 61 * - 37 - + 22 + + 55 - - 36 ELSE NULL END * + 54 THEN NULL WHEN 88 THEN ( - 66 ) END - - 57 * - 34 * - 53 - COUNT ( DISTINCT 22 ) / + 10
----
NULL

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

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

query I rowsort
SELECT ALL + 3 * - 33 - - ( 60 ) + - 34 + - - 63 * 18 * - 31 AS col1
----
-35227

query I rowsort
SELECT + ( + 23 ) * + 39 col2
----
897

query I rowsort
SELECT - 21 * + - 82 * + 73 + 60 col2
----
125766

query I rowsort
SELECT - 26 + 40 AS col1
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7945
SELECT + SUM( DISTINCT - + 30 ) AS col1, - SUM( ALL 1 ) col0
----
-30
-1

skipif mysql # not compatible
query II rowsort label-7945
SELECT + SUM ( DISTINCT - + 30 ) AS col1, - SUM ( ALL 1 ) col0
----
-30
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7946
SELECT 91 * + 96, - 4 + - NULLIF ( - 93, - 45 + MIN( ALL + 54 ) ) * 15 AS col1
----
8736
1391

skipif mysql # not compatible
query II rowsort label-7946
SELECT 91 * + 96, - 4 + - NULLIF ( - 93, - 45 + MIN ( ALL + 54 ) ) * 15 AS col1
----
8736
1391

query I rowsort
SELECT - 83 - + + CASE WHEN ( NOT ( NULL IS NOT NULL ) ) THEN 26 ELSE NULL END
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT DISTINCT + - 87 + - COUNT( DISTINCT - 55 ) * + 77 * 74
----
-5785

skipif mysql # not compatible
query I rowsort label-7948
SELECT DISTINCT + - 87 + - COUNT ( DISTINCT - 55 ) * + 77 * 74
----
-5785

onlyif mysql # DIV for integer division: 
query I rowsort label-7949
SELECT 83 DIV + ( - + 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-7949
SELECT 83 / + ( - + 55 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7950
SELECT ALL + MAX( ALL CAST( NULL AS DECIMAL ) ) + - CAST( + - 57 AS SIGNED ) - COUNT( * ) + + + 45 * + + 7, 19 AS col2
----
NULL
19

skipif mysql # not compatible
query II rowsort label-7950
SELECT ALL + MAX ( ALL CAST ( NULL AS REAL ) ) + - CAST ( + - 57 AS INTEGER ) - COUNT ( * ) + + + 45 * + + 7, 19 AS col2
----
NULL
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT ALL + 65 + COUNT( * ) + + MIN( ALL 91 ) * - 32 * 39 * - COUNT( * ) + - 33 + - - 2 * 34
----
113669

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL + 65 + COUNT ( * ) + + MIN ( ALL 91 ) * - 32 * 39 * - COUNT ( * ) + - 33 + - - 2 * 34
----
113669

query I rowsort
SELECT DISTINCT 7 + 62 + + 12 AS col0
----
81

query I rowsort
SELECT ALL + + 45 + 16 - - + 89
----
150

onlyif mysql # DIV for integer division: 
query II rowsort label-7954
SELECT - 56 * + + 68, 44 DIV - 56 AS col0
----
-3808
0

skipif mysql # not compatible
query II rowsort label-7954
SELECT - 56 * + + 68, 44 / - 56 AS col0
----
-3808
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7955
SELECT ALL + 63 + + + ( + 20 ) + + + COUNT( * ) * - 78 * + + 37 * + - 26 + - + NULLIF ( - 63, - 79 * - CAST( NULL AS DECIMAL ) * - COUNT( * ) ) DIV + MAX( ALL - + 63 ) + + COUNT( * ) AS col1
----
75119

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL + 63 + + + ( + 20 ) + + + COUNT ( * ) * - 78 * + + 37 * + - 26 + - + NULLIF ( - 63, - 79 * - CAST ( NULL AS REAL ) * - COUNT ( * ) ) / + MAX ( ALL - + 63 ) + + COUNT ( * ) AS col1
----
75119

query I rowsort
SELECT ALL - 4 + + 40 col0
----
36

query I rowsort
SELECT ALL - 66 + + - 46
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7958
SELECT DISTINCT + COUNT( * ) DIV 62 * 94 AS col2, COUNT( * ) - - 89 AS col1
----
0
90

skipif mysql # not compatible
query II rowsort label-7958
SELECT DISTINCT + COUNT ( * ) / 62 * 94 AS col2, COUNT ( * ) - - 89 AS col1
----
0
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT ALL MAX( ALL - + ( - + 18 ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL MAX ( ALL - + ( - + 18 ) ) AS col0
----
18

query I rowsort
SELECT - 90 * + - 24 AS col0
----
2160

query I rowsort
SELECT - 61 + + ( - + 25 )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7962
SELECT ALL + COUNT( * ) * - 90 * - CASE - COUNT( * ) WHEN - ( COUNT( DISTINCT - 3 ) ) THEN + 51 * - 68 + + ( 60 ) + - COALESCE ( - 46, - + 17 * - - 71 DIV + - 45 ) - 72 + - + ( + 76 ) ELSE - 18 END AS col1, 62 AS col1
----
-315900
62

skipif mysql # not compatible
query II rowsort label-7962
SELECT ALL + COUNT ( * ) * - 90 * - CASE - COUNT ( * ) WHEN - ( COUNT ( DISTINCT - 3 ) ) THEN + 51 * - 68 + + ( 60 ) + - COALESCE ( - 46, - + 17 * - - 71 / + - 45 ) - 72 + - + ( + 76 ) ELSE - 18 END AS col1, 62 AS col1
----
-315900
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7963
SELECT - CAST( + + 54 AS SIGNED ) - - + 52 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7963
SELECT - CAST ( + + 54 AS INTEGER ) - - + 52 AS col0
----
-2

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

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

query I rowsort
SELECT + 36 * - - 70
----
2520

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

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL ( + - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT - 7 + - + 0
----
-7

query I rowsort
SELECT ALL + 3 * + 56 AS col0
----
168

query I rowsort
SELECT - 83 + + 79 * + + 55
----
4262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7970
SELECT DISTINCT - 65 * + COUNT( * ) - + 70 + - - CAST( - + 76 AS SIGNED )
----
-211

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT - 65 * + COUNT ( * ) - + 70 + - - CAST ( - + 76 AS INTEGER )
----
-211

onlyif mysql # DIV for integer division: 
query I rowsort label-7971
SELECT DISTINCT 53 DIV - 26 col0
----
-2

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT 53 / - 26 col0
----
-2

query I rowsort
SELECT - + 96 + 91
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT - - 65 * + MAX( 8 ) + - - 55
----
575

skipif mysql # not compatible
query I rowsort label-7973
SELECT - - 65 * + MAX ( 8 ) + - - 55
----
575

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

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

query I rowsort
SELECT + 10 * + 31 - - - 54 AS col0
----
256

query I rowsort
SELECT + 15 + - 59 AS col1
----
-44

query II rowsort
SELECT DISTINCT + + 89 AS col1, + 62 * + 72 AS col1
----
89
4464

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

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

query I rowsort
SELECT ALL - 18 * - 28 * + 82 * 85
----
3512880

query I rowsort
SELECT + - 13 * 67 + + - 85 AS col1
----
-956

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL + MIN( - - 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL + MIN ( - - 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT DISTINCT 97 * + 38 + + + MAX( + + 14 ) + - 74 AS col0
----
3626

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT 97 * + 38 + + + MAX ( + + 14 ) + - 74 AS col0
----
3626

query I rowsort
SELECT ALL - 7 * + + 0 + + 1 AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-7984
SELECT + MIN ( - 84 )
----
-84

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

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

query I rowsort
SELECT + ( + - 68 ) * - + 8 + - - 36 AS col2
----
580

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT + - NULLIF ( 23, - 90 + 58 ) + - MIN( + ( - 54 ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7987
SELECT + - NULLIF ( 23, - 90 + 58 ) + - MIN ( + ( - 54 ) ) AS col2
----
31

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

skipif mysql # not compatible
query I rowsort label-7988
SELECT + + SUM ( + 35 )
----
35

query I rowsort
SELECT + + 37 + - ( ( - 98 ) )
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-7990
SELECT DISTINCT 44 DIV ( - - 12 ) * - 93 * + 17 * + 45 + - 66 AS col0
----
-213501

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT 44 / ( - - 12 ) * - 93 * + 17 * + 45 + - 66 AS col0
----
-213501

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT ALL - MAX( DISTINCT 82 ) * + 21 + 27 - - 25 AS col2
----
-1670

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL - MAX ( DISTINCT 82 ) * + 21 + 27 - - 25 AS col2
----
-1670

query I rowsort
SELECT + ( 69 ) + - 23 col1
----
46

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

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT + 25 * COUNT ( * ) AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7994
SELECT 34 * NULLIF ( 0, - 53 ) + + CAST( - ( - - 70 ) AS SIGNED ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-7994
SELECT 34 * NULLIF ( 0, - 53 ) + + CAST ( - ( - - 70 ) AS INTEGER ) AS col0
----
-70

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

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

query I rowsort
SELECT - 67 + + 48 + + - 32 col0
----
-51

query II rowsort
SELECT - 43 + 85 AS col0, - 35 * - COALESCE ( + 21, 71 ) AS col2
----
42
735

query I rowsort
SELECT + 31 + - 17 * 71
----
-1176

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8001
SELECT DISTINCT COUNT( * ) AS col0, 74 AS col1
----
1
74

skipif mysql # not compatible
query II rowsort label-8001
SELECT DISTINCT COUNT ( * ) AS col0, 74 AS col1
----
1
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8002
SELECT 94 AS col2, - 13 + + - 53 + - 46 * COUNT( * ) + + + ( - 34 ) AS col0
----
94
-146

skipif mysql # not compatible
query II rowsort label-8002
SELECT 94 AS col2, - 13 + + - 53 + - 46 * COUNT ( * ) + + + ( - 34 ) AS col0
----
94
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT + 47 * ( MAX( + - 15 ) ) AS col2
----
-705

skipif mysql # not compatible
query I rowsort label-8003
SELECT + 47 * ( MAX ( + - 15 ) ) AS col2
----
-705

query I rowsort
SELECT - 53 + + 29 + + 11
----
-13

query I rowsort
SELECT ALL - CASE - ( - + 89 ) WHEN + 48 THEN - 54 WHEN 30 THEN NULL ELSE NULL END / + + 13 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8006
SELECT - 71 DIV 52 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-8006
SELECT - 71 / 52 / + 25
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8007
SELECT + COUNT( + 90 ) AS col1, - 63 AS col0
----
1
-63

skipif mysql # not compatible
query II rowsort label-8007
SELECT + COUNT ( + 90 ) AS col1, - 63 AS col0
----
1
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8008
SELECT ALL CASE - 34 WHEN + 24 / - 61 + + 29 THEN NULL WHEN + 70 * + CAST( ( + 83 ) AS SIGNED ) + + + 62 * - 29 THEN - 17 + - 67 WHEN - 33 THEN NULL END / + CAST( NULL AS DECIMAL ) + + COUNT( * ) + + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL CASE - 34 WHEN + 24 / - 61 + + 29 THEN NULL WHEN + 70 * + CAST ( ( + 83 ) AS INTEGER ) + + + 62 * - 29 THEN - 17 + - 67 WHEN - 33 THEN NULL END / + CAST ( NULL AS REAL ) + + COUNT ( * ) + + 55 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8009
SELECT ALL - + 79 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL - + 79 / 83
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8010
SELECT - + COALESCE ( 63, - - ( + + 76 ) ) DIV + NULLIF ( + 34, - 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-8010
SELECT - + COALESCE ( 63, - - ( + + 76 ) ) / + NULLIF ( + 34, - 62 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT CASE 55 WHEN - - 39 + + 69 THEN NULL WHEN + COUNT( DISTINCT - 56 ) THEN - 52 + 81 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8011
SELECT CASE 55 WHEN - - 39 + + 69 THEN NULL WHEN + COUNT ( DISTINCT - 56 ) THEN - 52 + 81 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT ALL + SUM( + - 58 ) + 73 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL + SUM ( + - 58 ) + 73 AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-8013
SELECT ALL - 10 col1, + 89 AS col2, SUM( 57 ) / - + 34 * - ( 54 ) * 97 * - + CAST( NULL AS DECIMAL )
----
-10
89
NULL

skipif mysql # not compatible
query III rowsort label-8013
SELECT ALL - 10 col1, + 89 AS col2, SUM ( 57 ) / - + 34 * - ( 54 ) * 97 * - + CAST ( NULL AS REAL )
----
-10
89
NULL

query II rowsort
SELECT ALL 27 + - 1 + + 18 * + 31 AS col0, COALESCE ( 42, - 54 + + ( - 76 ), 81 ) AS col0
----
584
42

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

query I rowsort
SELECT + 74 * 70 + - 99 - 96 AS col2
----
4985

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8017
SELECT DISTINCT + + CAST( - + 38 AS SIGNED ) + + + 19 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT + + CAST ( - + 38 AS INTEGER ) + + + 19 AS col2
----
-19

query II rowsort
SELECT + + 46 AS col2, 68
----
46
68

query II rowsort
SELECT + 57 AS col0, NULLIF ( + 51, 27 )
----
57
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT - CASE - - 83 WHEN + SUM( + 65 ) THEN + - 54 WHEN 2 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8020
SELECT - CASE - - 83 WHEN + SUM ( + 65 ) THEN + - 54 WHEN 2 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT ALL - ( - + NULLIF ( - 70, NULLIF ( - 12, - COUNT( * ) ) - - AVG ( ALL + 86 ) ) ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL - ( - + NULLIF ( - 70, NULLIF ( - 12, - COUNT ( * ) ) - - AVG ( ALL + 86 ) ) ) col1
----
-70

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

skipif mysql # not compatible
query I rowsort label-8022
SELECT CAST ( NULL AS INTEGER ) * + + 37 + 30
----
NULL

query II rowsort
SELECT ALL - 82 AS col2, - 40
----
-82
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-8024
SELECT - COUNT( * ) col2, 65 + SUM( DISTINCT + 70 ) + COUNT( * ) + + - SUM( ALL + 90 ) - - + 8 * - 98 AS col0
----
-1
-738

skipif mysql # not compatible
query II rowsort label-8024
SELECT - COUNT ( * ) col2, 65 + SUM ( DISTINCT + 70 ) + COUNT ( * ) + + - SUM ( ALL + 90 ) - - + 8 * - 98 AS col0
----
-1
-738

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT ALL - CASE 70 WHEN - CASE COUNT( * ) WHEN + 14 * + - 39 / - AVG ( DISTINCT 14 ) * - + 48 + - 28 + + COUNT( * ) THEN NULL WHEN - 10 THEN - 66 + + - CASE 28 WHEN - 86 THEN - 91 * - + 58 / - 86 END * - - 5 WHEN 20 * + - MAX( + 58 ) * - 72 + - - 7 THEN + - 28 ELSE + 18 END THEN 18 + 55 ELSE + 38 END * - COUNT( DISTINCT 37 )
----
38

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL - CASE 70 WHEN - CASE COUNT ( * ) WHEN + 14 * + - 39 / - AVG ( DISTINCT 14 ) * - + 48 + - 28 + + COUNT ( * ) THEN NULL WHEN - 10 THEN - 66 + + - CASE 28 WHEN - 86 THEN - 91 * - + 58 / - 86 END * - - 5 WHEN 20 * + - MAX ( + 58 ) * - 72 + - - 7 THEN + - 28 ELSE + 18 END THEN 18 + 55 ELSE + 38 END * - COUNT ( DISTINCT 37 )
----
38

query I rowsort
SELECT DISTINCT 38 * - CASE + 26 WHEN 30 THEN 73 ELSE - 95 END
----
3610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8028
SELECT ALL 73 * COUNT( * ) AS col1, - CAST( + - ( - 4 ) AS SIGNED ) AS col0
----
73
-4

skipif mysql # not compatible
query II rowsort label-8028
SELECT ALL 73 * COUNT ( * ) AS col1, - CAST ( + - ( - 4 ) AS INTEGER ) AS col0
----
73
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8029
SELECT DISTINCT 60 DIV + + MAX( DISTINCT 67 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT 60 / + + MAX ( DISTINCT 67 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL MIN( ALL - 15 ) * + 95
----
-1425

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL MIN ( ALL - 15 ) * + 95
----
-1425

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT COUNT( * ) + + 73 + + COUNT( * ) + + 10 + - NULLIF ( 94, 17 )
----
-9

skipif mysql # not compatible
query I rowsort label-8033
SELECT COUNT ( * ) + + 73 + + COUNT ( * ) + + 10 + - NULLIF ( 94, 17 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8034
SELECT DISTINCT 18 * - - CAST( 73 AS SIGNED ) * 15
----
19710

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT 18 * - - CAST ( 73 AS INTEGER ) * 15
----
19710

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT 29 + + CASE - 76 WHEN - + 8 * + - COUNT( * ) * - COUNT( * ) THEN - + 60 * - 93 + - COALESCE ( 1, + 78 - - + 40 * - - 39, + COUNT( * ) + 94 ) * + - 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8035
SELECT 29 + + CASE - 76 WHEN - + 8 * + - COUNT ( * ) * - COUNT ( * ) THEN - + 60 * - 93 + - COALESCE ( 1, + 78 - - + 40 * - - 39, + COUNT ( * ) + 94 ) * + - 3 END
----
NULL

query I rowsort
SELECT ALL - 68 * 31 col1
----
-2108

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT + 36 + + ( + CASE + 90 WHEN + SUM( DISTINCT 28 ) * + 10 + - 4 + - 29 * + 61 + - ( + 76 ) / 31 THEN + 47 END ) * - MAX( + 21 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8037
SELECT + 36 + + ( + CASE + 90 WHEN + SUM ( DISTINCT 28 ) * + 10 + - 4 + - 29 * + 61 + - ( + 76 ) / 31 THEN + 47 END ) * - MAX ( + 21 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL 6 + - + COALESCE ( - 97, 23, - + 4 * - + MAX( 50 ) )
----
103

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL 6 + - + COALESCE ( - 97, 23, - + 4 * - + MAX ( 50 ) )
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8039
SELECT CASE + + MAX( + - 34 ) WHEN - 49 * 68 + - 25 + - 43 + - MIN( + 42 ) * 33 THEN + 64 DIV 8 ELSE 45 END + - + 12 * + 54 AS col1
----
-603

skipif mysql # not compatible
query I rowsort label-8039
SELECT CASE + + MAX ( + - 34 ) WHEN - 49 * 68 + - 25 + - 43 + - MIN ( + 42 ) * 33 THEN + 64 / 8 ELSE 45 END + - + 12 * + 54 AS col1
----
-603

query I rowsort
SELECT + 63 + + 47 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT ALL 33 + - 45 + 27 + - COALESCE ( + 27, COUNT( * ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL 33 + - 45 + 27 + - COALESCE ( + 27, COUNT ( * ) ) AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8042
SELECT DISTINCT - 69 DIV + - NULLIF ( - - MIN( COALESCE ( + + 14, + + 37 ) ), + - ( - + 18 ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT - 69 / + - NULLIF ( - - MIN ( COALESCE ( + + 14, + + 37 ) ), + - ( - + 18 ) ) AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8043
SELECT ALL ( + 32 ) + - COUNT( * ) DIV + - 9 - - + 39 * + 73 AS col1
----
2879

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL ( + 32 ) + - COUNT ( * ) / + - 9 - - + 39 * + 73 AS col1
----
2879

query I rowsort
SELECT ALL - - 68 + 16
----
84

query I rowsort
SELECT + NULLIF ( 44, + 37 )
----
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8046
SELECT + CAST( + 33 AS SIGNED ) DIV + + 75 + + + 72 + + 33 * 58
----
1986

skipif mysql # not compatible
query I rowsort label-8046
SELECT + CAST ( + 33 AS INTEGER ) / + + 75 + + + 72 + + 33 * 58
----
1986

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8049
SELECT 5 * 79 + - + ( - CAST( + - 60 AS SIGNED ) ) + - - COUNT( * ) AS col1
----
336

skipif mysql # not compatible
query I rowsort label-8049
SELECT 5 * 79 + - + ( - CAST ( + - 60 AS INTEGER ) ) + - - COUNT ( * ) AS col1
----
336

query I rowsort
SELECT DISTINCT + 48 * 89 AS col2
----
4272

query I rowsort
SELECT 84 * - ( + 73 ) * - + ( 78 ) AS col1
----
478296

query I rowsort
SELECT ALL - - 59 * + + 40
----
2360

onlyif mysql # DIV for integer division: 
query I rowsort label-8053
SELECT DISTINCT - 93 DIV 72 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT - 93 / 72 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT DISTINCT - 23 - 57 * MAX( + NULLIF ( + ( + + 91 ), - + 5 ) ) AS col2
----
-5210

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT - 23 - 57 * MAX ( + NULLIF ( + ( + + 91 ), - + 5 ) ) AS col2
----
-5210

query I rowsort
SELECT ALL - COALESCE ( + 64, - - ( 37 ) )
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-8056
SELECT + 58 AS col2, - CASE COUNT( * ) WHEN + 71 * - 30 + - 59 THEN + 69 ELSE NULL END - - - ( - + 3 )
----
58
NULL

skipif mysql # not compatible
query II rowsort label-8056
SELECT + 58 AS col2, - CASE COUNT ( * ) WHEN + 71 * - 30 + - 59 THEN + 69 ELSE NULL END - - - ( - + 3 )
----
58
NULL

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

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

query I rowsort
SELECT 4 + - 12
----
-8

query I rowsort
SELECT 14 + + 97 col2
----
111

query I rowsort
SELECT ALL 19 * - + 57 AS col0
----
-1083

query II rowsort
SELECT ALL 78 AS col0, - 49
----
78
-49

query II rowsort
SELECT - 79, - 37 AS col2
----
-79
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL MIN( ALL - ( 38 ) ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL MIN ( ALL - ( 38 ) ) AS col0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-8064
SELECT 33 DIV - - 29 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8064
SELECT 33 / - - 29 AS col0
----
1

query I rowsort
SELECT ALL - ( + 23 ) * + - 82
----
1886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8066
SELECT - 90, - 21 + - - CAST( 0 AS SIGNED ) * 21 AS col0
----
-90
-21

skipif mysql # not compatible
query II rowsort label-8066
SELECT - 90, - 21 + - - CAST ( 0 AS INTEGER ) * 21 AS col0
----
-90
-21

query I rowsort
SELECT ( - 98 ) + + + 61 * 2 - - 39 AS col1
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-8068
SELECT - 93, 23 * + 51 DIV - 17 - - 53 + - + 42 AS col2
----
-93
-58

skipif mysql # not compatible
query II rowsort label-8068
SELECT - 93, 23 * + 51 / - 17 - - 53 + - + 42 AS col2
----
-93
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT ALL NULLIF ( - 27, - + 20 + + 61 ) + + + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL NULLIF ( - 27, - + 20 + + 61 ) + + + COUNT ( * )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8070
SELECT - COUNT( * ) AS col2, MIN( - 48 ) * 24 * - + CAST( NULL AS SIGNED ) + + 3 AS col1, + 41
----
-1
NULL
41

skipif mysql # not compatible
query III rowsort label-8070
SELECT - COUNT ( * ) AS col2, MIN ( - 48 ) * 24 * - + CAST ( NULL AS INTEGER ) + + 3 AS col1, + 41
----
-1
NULL
41

query I rowsort
SELECT ALL 12 + - - 8 AS col0
----
20

query I rowsort
SELECT DISTINCT 71 + + 76 + + - 31
----
116

query I rowsort
SELECT ALL 73 + + 70
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-8074
SELECT - COALESCE ( - COALESCE ( + - 43, + 55, 28 DIV - 35 ), 74 - - 60 * + 42 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8074
SELECT - COALESCE ( - COALESCE ( + - 43, + 55, 28 / - 35 ), 74 - - 60 * + 42 ) AS col2
----
-43

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

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT + COUNT ( * ) + - 49 * - 6
----
295

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT DISTINCT COUNT( * ) + - 34 + ( - 14 )
----
-47

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT COUNT ( * ) + - 34 + ( - 14 )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8077
SELECT + - 81 DIV 72
----
-1

skipif mysql # not compatible
query I rowsort label-8077
SELECT + - 81 / 72
----
-1

query I rowsort
SELECT + + 65 * 27
----
1755

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT DISTINCT SUM( ALL - 46 ) * + + 55 + - 68
----
-2598

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT SUM ( ALL - 46 ) * + + 55 + - 68
----
-2598

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL 80 * MIN( - - 31 )
----
2480

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL 80 * MIN ( - - 31 )
----
2480

query I rowsort
SELECT + 50 * 95 AS col1
----
4750

query II rowsort
SELECT + 3 AS col0, 64
----
3
64

query I rowsort
SELECT DISTINCT 94 * 49 - + + 72
----
4534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8084
SELECT ALL - + 23 / 38 + + ( - 72 ) * 12 * + - 80 / + CAST( - + 62 AS SIGNED ) + CASE + 10 WHEN + - 0 + - + ( - COUNT( * ) ) THEN - + 79 END AS col2, 20 * + - 82 + - - 58 AS col1
----
NULL
-1582

skipif mysql # not compatible
query II rowsort label-8084
SELECT ALL - + 23 / 38 + + ( - 72 ) * 12 * + - 80 / + CAST ( - + 62 AS INTEGER ) + CASE + 10 WHEN + - 0 + - + ( - COUNT ( * ) ) THEN - + 79 END AS col2, 20 * + - 82 + - - 58 AS col1
----
NULL
-1582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8085
SELECT + 26, 18 * 77 * MIN( ALL + + 62 ) - - CAST( NULL AS SIGNED ) + - 9 AS col2
----
26
NULL

skipif mysql # not compatible
query II rowsort label-8085
SELECT + 26, 18 * 77 * MIN ( ALL + + 62 ) - - CAST ( NULL AS INTEGER ) + - 9 AS col2
----
26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT + NULLIF ( - COALESCE ( - + 41, + 52 * 7 + + + 42 * MAX( - + 76 ) ), - ( 10 ) ) * + ( 26 ) AS col0
----
1066

skipif mysql # not compatible
query I rowsort label-8086
SELECT + NULLIF ( - COALESCE ( - + 41, + 52 * 7 + + + 42 * MAX ( - + 76 ) ), - ( 10 ) ) * + ( 26 ) AS col0
----
1066

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT - 44 * MIN( DISTINCT 68 ) AS col2
----
-2992

skipif mysql # not compatible
query I rowsort label-8087
SELECT - 44 * MIN ( DISTINCT 68 ) AS col2
----
-2992

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL + MAX( DISTINCT ( 93 ) ) * 20
----
1860

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL + MAX ( DISTINCT ( 93 ) ) * 20
----
1860

query I rowsort
SELECT DISTINCT + ( + - 64 ) * - ( 37 ) col1
----
2368

query I rowsort
SELECT ALL + 49 * + 57 AS col2
----
2793

query I rowsort
SELECT ALL + ( + 67 ) * - - 81 + + + 49 AS col1
----
5476

query II rowsort
SELECT DISTINCT - 4 * ( + 83 ) * - - 5 + + - 76, - 50 * - 62 * + 81 AS col0
----
-1736
251100

query I rowsort
SELECT - 48 * 29
----
-1392

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

query I rowsort
SELECT - 42 - - + 58
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8096
SELECT COUNT( ALL 36 ) AS col0, 61 * - + 41
----
1
-2501

skipif mysql # not compatible
query II rowsort label-8096
SELECT COUNT ( ALL 36 ) AS col0, 61 * - + 41
----
1
-2501

query I rowsort
SELECT - 18 * 98 AS col0
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL - 14 + + - 15 + - ( + + 55 ) * - CASE - 74 WHEN + CASE - COUNT( - 73 ) WHEN - MAX( - 88 ) + - - 17 THEN 40 / - 89 ELSE + 67 * - 67 * - COALESCE ( - 58, + 77 ) END THEN + + 27 WHEN - 58 + COUNT( * ) * + 57 THEN - MAX( + 9 ) + + + 95 * - - 8 + + - 28 + 26 * + 57 WHEN + 17 * 10 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL - 14 + + - 15 + - ( + + 55 ) * - CASE - 74 WHEN + CASE - COUNT ( - 73 ) WHEN - MAX ( - 88 ) + - - 17 THEN 40 / - 89 ELSE + 67 * - 67 * - COALESCE ( - 58, + 77 ) END THEN + + 27 WHEN - 58 + COUNT ( * ) * + 57 THEN - MAX ( + 9 ) + + + 95 * - - 8 + + - 28 + 26 * + 57 WHEN + 17 * 10 THEN NULL END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8099
SELECT ALL - 85 + + + 21 DIV + 60 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL - 85 + + + 21 / + 60 AS col1
----
-85

query I rowsort
SELECT ALL + - 59 * + + 92
----
-5428

query I rowsort
SELECT ALL + 41 * + 79 AS col0
----
3239

query I rowsort
SELECT - - 36 + - + 34 + 5
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8103
SELECT - COUNT( * ) * + 40 AS col0, 75 AS col1
----
-40
75

skipif mysql # not compatible
query II rowsort label-8103
SELECT - COUNT ( * ) * + 40 AS col0, 75 AS col1
----
-40
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8104
SELECT DISTINCT - NULLIF ( + 60, - COUNT( * ) + - + CAST( NULL AS DECIMAL ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT - NULLIF ( + 60, - COUNT ( * ) + - + CAST ( NULL AS REAL ) ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT - 21 + ( - COUNT( * ) ) * + - 9
----
-12

skipif mysql # not compatible
query I rowsort label-8105
SELECT - 21 + ( - COUNT ( * ) ) * + - 9
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT + COUNT( * ) + + - SUM( - + 65 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8106
SELECT + COUNT ( * ) + + - SUM ( - + 65 ) AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT ALL CASE + CAST( + 67 AS SIGNED ) WHEN + 99 THEN NULL ELSE + 30 END AS col0
----
30

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL CASE + CAST ( + 67 AS INTEGER ) WHEN + 99 THEN NULL ELSE + 30 END AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT + - SUM( 84 ) * - - NULLIF ( - SUM( + 44 ), + MAX( DISTINCT + 10 ) / - + 86 - - - COUNT( * ) ) AS col1
----
3696

skipif mysql # not compatible
query I rowsort label-8108
SELECT + - SUM ( 84 ) * - - NULLIF ( - SUM ( + 44 ), + MAX ( DISTINCT + 10 ) / - + 86 - - - COUNT ( * ) ) AS col1
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT + 48 + + COUNT( DISTINCT 23 )
----
49

skipif mysql # not compatible
query I rowsort label-8109
SELECT + 48 + + COUNT ( DISTINCT 23 )
----
49

query I rowsort
SELECT + + 20 + - COALESCE ( + - 94, + 8, + 72 + + + 29 ) - 15 AS col2
----
99

query I rowsort
SELECT ALL + 9 * 8 * + 23
----
1656

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8113
SELECT - 13 * - 76 + 35 + COUNT( - 57 ) * - 15 * - 93 * + ( - + 54 ) * + 35 + - CAST( SUM( ALL - 65 ) AS SIGNED ) DIV - 5
----
-2635540

skipif mysql # not compatible
query I rowsort label-8113
SELECT - 13 * - 76 + 35 + COUNT ( - 57 ) * - 15 * - 93 * + ( - + 54 ) * + 35 + - CAST ( SUM ( ALL - 65 ) AS INTEGER ) / - 5
----
-2635540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8114
SELECT DISTINCT + CAST( AVG ( ALL + 64 ) AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT + CAST ( AVG ( ALL + 64 ) AS INTEGER )
----
64

query I rowsort
SELECT + 32 * + ( + + 8 )
----
256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8116
SELECT ALL + 39 DIV 44 + - MIN( - - 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL + 39 / 44 + - MIN ( - - 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8117
SELECT ALL + ( 4 ) DIV COUNT( * ) + + 24
----
28

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL + ( 4 ) / COUNT ( * ) + + 24
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ( + + SUM( 50 ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8118
SELECT ( + + SUM ( 50 ) ) AS col0
----
50

query I rowsort
SELECT + 72 + - - 90 AS col2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT - COUNT( - - 59 ) * + ( + - NULLIF ( + 52, - - 97 ) )
----
52

skipif mysql # not compatible
query I rowsort label-8120
SELECT - COUNT ( - - 59 ) * + ( + - NULLIF ( + 52, - - 97 ) )
----
52

query I rowsort
SELECT 45 * - - 3 + - 68 AS col0
----
67

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

skipif mysql # not compatible
query I rowsort label-8122
SELECT + 1 * - - COUNT ( * ) / + 45 AS col1
----
0

query I rowsort
SELECT COALESCE ( 54, - 76 ) AS col1
----
54

query I rowsort
SELECT DISTINCT + 9 * + + 56
----
504

query I rowsort
SELECT ALL - 55 * - 9
----
495

query I rowsort
SELECT 48 + - - 8 AS col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8127
SELECT ALL COUNT( * ) + + - 51 DIV 19
----
-1

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL COUNT ( * ) + + - 51 / 19
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8128
SELECT DISTINCT CAST( + 78 AS SIGNED ) + 84 DIV + 47 col2
----
79

skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT CAST ( + 78 AS INTEGER ) + 84 / + 47 col2
----
79

query I rowsort
SELECT DISTINCT - 10 * 12
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL + 55 * 13 * - MAX( - 5 )
----
3575

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL + 55 * 13 * - MAX ( - 5 )
----
3575

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

skipif mysql # not compatible
query I rowsort label-8131
SELECT - NULLIF ( + 76, 88 ) + + COUNT ( ALL CAST ( NULL AS INTEGER ) )
----
-76

query I rowsort
SELECT 34 + + 82 + + 23
----
139

query I rowsort
SELECT ALL - 54 - - + 23
----
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-8134
SELECT 21 DIV - + ( + 64 ) * + - 91 - 14, - 7 AS col1
----
-14
-7

skipif mysql # not compatible
query II rowsort label-8134
SELECT 21 / - + ( + 64 ) * + - 91 - 14, - 7 AS col1
----
-14
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8135
SELECT - 47, + CAST( 91 AS SIGNED ) AS col2
----
-47
91

skipif mysql # not compatible
query II rowsort label-8135
SELECT - 47, + CAST ( 91 AS INTEGER ) AS col2
----
-47
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8136
SELECT + COALESCE ( 76, 98, + CASE - CAST( NULL AS SIGNED ) WHEN - + 73 * - 29 + + 13 - 68 * + 37 * 96 / ( - 2 ) THEN + 87 ELSE + 97 END * COUNT( * ) ) * - 62 * 55 + + 41
----
-259119

skipif mysql # not compatible
query I rowsort label-8136
SELECT + COALESCE ( 76, 98, + CASE - CAST ( NULL AS INTEGER ) WHEN - + 73 * - 29 + + 13 - 68 * + 37 * 96 / ( - 2 ) THEN + 87 ELSE + 97 END * COUNT ( * ) ) * - 62 * 55 + + 41
----
-259119

query I rowsort
SELECT ( + + 26 ) * - - 95 AS col1
----
2470

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8138
SELECT ALL + 26 AS col1, + 68 / + CAST( NULL AS SIGNED ) AS col2
----
26
NULL

skipif mysql # not compatible
query II rowsort label-8138
SELECT ALL + 26 AS col1, + 68 / + CAST ( NULL AS INTEGER ) AS col2
----
26
NULL

query I rowsort
SELECT ALL CASE + - 95 WHEN - 21 THEN + - 11 END AS col2
----
NULL

query I rowsort
SELECT ALL + - 81 * + 6 AS col0
----
-486

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

query I rowsort
SELECT 90 * 5
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT DISTINCT COUNT( 89 ) * - 95
----
-95

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT COUNT ( 89 ) * - 95
----
-95

query I rowsort
SELECT ALL + + 90 * + 41 AS col1
----
3690

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

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

query I rowsort
SELECT 69 * 76
----
5244

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT COUNT( * ) * - SUM( ALL - - 15 ) + - + 64 + - 74
----
-153

skipif mysql # not compatible
query I rowsort label-8147
SELECT COUNT ( * ) * - SUM ( ALL - - 15 ) + - + 64 + - 74
----
-153

query I rowsort
SELECT - 95 * 83
----
-7885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8149
SELECT + - CAST( NULL AS SIGNED ) / - - 92 * - + 55 * - + SUM( ALL + - 23 ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT + - CAST ( NULL AS INTEGER ) / - - 92 * - + 55 * - + SUM ( ALL + - 23 ) - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8150
SELECT + MIN( DISTINCT - + 73 ) DIV - 69 - ( 24 ) + + COUNT( * ) col1
----
-22

skipif mysql # not compatible
query I rowsort label-8150
SELECT + MIN ( DISTINCT - + 73 ) / - 69 - ( 24 ) + + COUNT ( * ) col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT 17 * + - COUNT( * ) * + - 44 AS col2
----
748

skipif mysql # not compatible
query I rowsort label-8151
SELECT 17 * + - COUNT ( * ) * + - 44 AS col2
----
748

query I rowsort
SELECT ALL 96 + + + 79 AS col1
----
175

onlyif mysql # DIV for integer division: 
query I rowsort label-8153
SELECT ALL ( - ( + + 33 ) ) + - 46 - + 34 + - 27 * + NULLIF ( - 40, - ( + - 88 ) ) DIV + 2
----
427

skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL ( - ( + + 33 ) ) + - 46 - + 34 + - 27 * + NULLIF ( - 40, - ( + - 88 ) ) / + 2
----
427

query I rowsort
SELECT DISTINCT 14 * 39 AS col1
----
546

query I rowsort
SELECT 42 * 68 * 53
----
151368

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8156
SELECT 49 DIV - - COALESCE ( CAST( NULL AS SIGNED ), - 85 ) * - 37 + - 74 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-8156
SELECT 49 / - - COALESCE ( CAST ( NULL AS INTEGER ), - 85 ) * - 37 + - 74 AS col2
----
-74

query I rowsort
SELECT ALL ( - 29 ) + - 89 + + 30
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT NULLIF ( + 98, + 11 * 27 ) * + + 48 * + COUNT( * ) AS col1
----
4704

skipif mysql # not compatible
query I rowsort label-8158
SELECT NULLIF ( + 98, + 11 * 27 ) * + + 48 * + COUNT ( * ) AS col1
----
4704

query I rowsort
SELECT DISTINCT 54 * + 45
----
2430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8160
SELECT ALL 25 + - ( CAST( - 0 AS SIGNED ) )
----
25

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL 25 + - ( CAST ( - 0 AS INTEGER ) )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8161
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COALESCE ( + 80, + + COALESCE ( + + COUNT( * ), - ( 0 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COALESCE ( + 80, + + COALESCE ( + + COUNT ( * ), - ( 0 ) ) ) AS col1
----
NULL

query II rowsort
SELECT ALL - 29 AS col1, + 47 * - 70
----
-29
-3290

query II rowsort
SELECT 86, - 5 col0
----
86
-5

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8166
SELECT CAST( - + 48 AS SIGNED ) - + + 33
----
-81

skipif mysql # not compatible
query I rowsort label-8166
SELECT CAST ( - + 48 AS INTEGER ) - + + 33
----
-81

query I rowsort
SELECT + 80 * 35
----
2800

query I rowsort
SELECT 48 * - - 48
----
2304

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

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

query I rowsort
SELECT DISTINCT - - 92 * + - 51 AS col0
----
-4692

query I rowsort
SELECT ALL - ( 58 ) AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8172
SELECT 28 * 49 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT 28 * 49 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8173
SELECT 58 DIV + 1
----
58

skipif mysql # not compatible
query I rowsort label-8173
SELECT 58 / + 1
----
58

query I rowsort
SELECT - 39 - + + 78 + - 84
----
-201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8175
SELECT ALL COUNT( * ) * + - 19 * - CASE + + CAST( NULL AS SIGNED ) WHEN - 56 + + - 32 THEN NULL WHEN 29 THEN - 31 * + + 26 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL COUNT ( * ) * + - 19 * - CASE + + CAST ( NULL AS INTEGER ) WHEN - 56 + + - 32 THEN NULL WHEN 29 THEN - 31 * + + 26 * COUNT ( * ) END
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8177
SELECT CAST( NULL AS DECIMAL ) / - 47 + + ( - 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT CAST ( NULL AS REAL ) / - 47 + + ( - 26 ) AS col1
----
NULL

query I rowsort
SELECT ALL ( - COALESCE ( + 89, - - 81 * - ( + 9 ) ) ) AS col1
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT - COALESCE ( - COALESCE ( - 33, - 15, + 97 DIV + 38 ), - 57, + 85 )
----
-33

skipif mysql # not compatible
query I rowsort label-8179
SELECT - COALESCE ( - COALESCE ( - 33, - 15, + 97 / + 38 ), - 57, + 85 )
----
-33

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

skipif mysql # not compatible
query I rowsort label-8180
SELECT + COUNT ( * ) + - + CAST ( 70 AS INTEGER )
----
-69

query I rowsort
SELECT ALL + 57 + + - 45 + - - 2 - 19
----
-5

query I rowsort
SELECT ALL + 66 + + 87 AS col0
----
153

query I rowsort
SELECT NULLIF ( + 44, - 97 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT NULLIF ( + 95, 17 * - + MIN( + 54 ) )
----
95

skipif mysql # not compatible
query I rowsort label-8184
SELECT NULLIF ( + 95, 17 * - + MIN ( + 54 ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT DISTINCT - 6 * - COUNT( * ) + - ( + + 77 ) + + 30 + - + 59 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT - 6 * - COUNT ( * ) + - ( + + 77 ) + + 30 + - + 59 AS col1
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8186
SELECT - 49 * - 53 + + AVG ( ALL + 41 ) + + CASE + 84 WHEN + 64 THEN NULL WHEN + 10 * + 68 * - 60 * + CAST( - 22 AS SIGNED ) THEN COUNT( * ) * - 77 + 17 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8186
SELECT - 49 * - 53 + + AVG ( ALL + 41 ) + + CASE + 84 WHEN + 64 THEN NULL WHEN + 10 * + 68 * - 60 * + CAST ( - 22 AS INTEGER ) THEN COUNT ( * ) * - 77 + 17 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8187
SELECT 63 DIV + - NULLIF ( - ( 58 ), - + SUM( + - 23 ) ) + - ( 92 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8187
SELECT 63 / + - NULLIF ( - ( 58 ), - + SUM ( + - 23 ) ) + - ( 92 ) AS col1
----
-91

query I rowsort
SELECT 23 * 36 col0
----
828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8189
SELECT DISTINCT - COUNT( + 62 ) * - - 62 DIV + 68 + - - 25 - - ( + + COUNT( * ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT - COUNT ( + 62 ) * - - 62 / + 68 + - - 25 - - ( + + COUNT ( * ) ) AS col1
----
26

query I rowsort
SELECT ALL 55 * + 15 - 93 AS col2
----
732

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8192
SELECT - COUNT( * ) DIV 21 * COUNT( DISTINCT + 72 ) * + 27 * - 35 * - COUNT( * ) AS col0, ( 26 ) * + 64 + 22 - + COUNT( * ) col0
----
0
1685

skipif mysql # not compatible
query II rowsort label-8192
SELECT - COUNT ( * ) / 21 * COUNT ( DISTINCT + 72 ) * + 27 * - 35 * - COUNT ( * ) AS col0, ( 26 ) * + 64 + 22 - + COUNT ( * ) col0
----
0
1685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8193
SELECT + COALESCE ( - - CAST( NULL AS SIGNED ), - COUNT( * ) * + MIN( ALL - - 59 ) ) * - 59
----
3481

skipif mysql # not compatible
query I rowsort label-8193
SELECT + COALESCE ( - - CAST ( NULL AS INTEGER ), - COUNT ( * ) * + MIN ( ALL - - 59 ) ) * - 59
----
3481

query I rowsort
SELECT ALL 17 * + 94 * - 60 AS col2
----
-95880

query I rowsort
SELECT + 87 + + + 7 + 53 + - - 6 * - 38 AS col0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8196
SELECT + - CAST( NULL AS SIGNED ) * - + 5 * + 45 + - 52 + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT + - CAST ( NULL AS INTEGER ) * - + 5 * + 45 + - 52 + 64
----
NULL

query I rowsort
SELECT + 14 * + 63 AS col0
----
882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8198
SELECT + 81 * CAST( + 51 AS SIGNED ) + + 41 * 7 + - 88 AS col1
----
4330

skipif mysql # not compatible
query I rowsort label-8198
SELECT + 81 * CAST ( + 51 AS INTEGER ) + + 41 * 7 + - 88 AS col1
----
4330

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT + - 16 + + CASE + 57 WHEN - COUNT( * ) * 41 + + ( 43 ) + + 32 * + + 66 + + 83 THEN + + MIN( DISTINCT 2 ) WHEN - 39 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8199
SELECT + - 16 + + CASE + 57 WHEN - COUNT ( * ) * 41 + + ( 43 ) + + 32 * + + 66 + + 83 THEN + + MIN ( DISTINCT 2 ) WHEN - 39 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT + + COUNT( * ) + + - NULLIF ( - COALESCE ( - ( - 22 ), - 70 ), 64 * - 67 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-8200
SELECT + + COUNT ( * ) + + - NULLIF ( - COALESCE ( - ( - 22 ), - 70 ), 64 * - 67 ) AS col1
----
23

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

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

query I rowsort
SELECT ALL 47 + + + 44
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8203
SELECT ALL 86 + CAST( CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) + + - 66 * + NULLIF ( + 46, - ( + MAX( ALL 46 ) ) ) * + 49 * + 28 AS col2, ( CAST( NULL AS SIGNED ) ) col0
----
-4165307
NULL

skipif mysql # not compatible
query II rowsort label-8203
SELECT ALL 86 + CAST ( CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) + + - 66 * + NULLIF ( + 46, - ( + MAX ( ALL 46 ) ) ) * + 49 * + 28 AS col2, ( CAST ( NULL AS INTEGER ) ) col0
----
-4165307
NULL

query I rowsort
SELECT ALL + + ( - 25 ) + - 95 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT - - NULLIF ( COUNT( * ), - 99 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8205
SELECT - - NULLIF ( COUNT ( * ), - 99 ) col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT ALL 13 + - COUNT( * ) + - 37 * 87 AS col1
----
-3207

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL 13 + - COUNT ( * ) + - 37 * 87 AS col1
----
-3207

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

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

query II rowsort
SELECT 74 AS col2, + 49
----
74
49

query I rowsort
SELECT ALL 44 * + 93
----
4092

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

skipif mysql # not compatible
query I rowsort label-8211
SELECT - COUNT ( * ) / - 9 * - COUNT ( * ) * - - 49 AS col0
----
0

query I rowsort
SELECT + 26 * - 64 AS col2
----
-1664

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8213
SELECT - COUNT( * ) * 80 DIV 59, 77 * 32 AS col1
----
-1
2464

skipif mysql # not compatible
query II rowsort label-8213
SELECT - COUNT ( * ) * 80 / 59, 77 * 32 AS col1
----
-1
2464

query I rowsort
SELECT + 2 - - 62
----
64

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8216
SELECT - 72 * + CAST( + - 43 AS SIGNED ), - COUNT( * ) AS col1
----
3096
-1

skipif mysql # not compatible
query II rowsort label-8216
SELECT - 72 * + CAST ( + - 43 AS INTEGER ), - COUNT ( * ) AS col1
----
3096
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8217
SELECT + 83 AS col2, CAST( NULL AS SIGNED ) + COUNT( * ) + - ( - 79 ) / + - MIN( ALL - 66 ) AS col1
----
83
NULL

skipif mysql # not compatible
query II rowsort label-8217
SELECT + 83 AS col2, CAST ( NULL AS INTEGER ) + COUNT ( * ) + - ( - 79 ) / + - MIN ( ALL - 66 ) AS col1
----
83
NULL

query I rowsort
SELECT DISTINCT + ( 24 ) col1
----
24

query I rowsort
SELECT ALL - 96 * + CASE + 36 WHEN + - 74 * - - ( - 73 ) THEN NULL ELSE + - 31 END
----
2976

query I rowsort
SELECT - 36 * - NULLIF ( - 80, 21 * - 80 / + - NULLIF ( + 2, + 76 ) ) AS col0
----
-2880

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT DISTINCT + - SUM( + 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT + - SUM ( + 32 ) AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-8223
SELECT - + 37 DIV + + 58 * - - 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8223
SELECT - + 37 / + + 58 * - - 33 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8224
SELECT DISTINCT + ( 71 ) * + - 62 + 4 AS col0, - 39 * - 8 DIV - CAST( COUNT( * ) AS SIGNED )
----
-4398
-312

skipif mysql # not compatible
query II rowsort label-8224
SELECT DISTINCT + ( 71 ) * + - 62 + 4 AS col0, - 39 * - 8 / - CAST ( COUNT ( * ) AS INTEGER )
----
-4398
-312

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT + 34 DIV + - 31 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8225
SELECT + 34 / + - 31 AS col2
----
-1

query I rowsort
SELECT - 74 - + + 62 + + 19 AS col1
----
-117

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT ALL - ( + - 88 ) * - 86 + CAST( NULL AS SIGNED ) + + ( - 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL - ( + - 88 ) * - 86 + CAST ( NULL AS INTEGER ) + + ( - 70 ) AS col0
----
NULL

query I rowsort
SELECT - 87 - + + 25 * + - 86 AS col2
----
2063

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT DISTINCT - 65 * 77 + - + COUNT( * ) AS col1
----
-5006

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT - 65 * 77 + - + COUNT ( * ) AS col1
----
-5006

onlyif mysql # DIV for integer division: 
query I rowsort label-8231
SELECT ALL - 24 + - + 10 + - 98 + + 64 DIV - 49 AS col2
----
-133

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL - 24 + - + 10 + - 98 + + 64 / - 49 AS col2
----
-133

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT + SUM( DISTINCT 48 ) - + ( 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8233
SELECT + SUM ( DISTINCT 48 ) - + ( 47 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8234
SELECT ALL 20 + - - 31 + - - 1 * + 18 DIV - + 71 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL 20 + - - 31 + - - 1 * + 18 / - + 71 AS col0
----
51

query I rowsort
SELECT + 9 + - - 81 * - 86 AS col2
----
-6957

query I rowsort
SELECT 42 + 50
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8237
SELECT ALL + 64 - + 20 DIV 83 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL + 64 - + 20 / 83 AS col2
----
64

query I rowsort
SELECT DISTINCT 95 * - - 6 AS col0
----
570

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT 83 * + CASE + 50 WHEN 66 - COUNT( * ) THEN NULL ELSE - 67 * ( - 85 ) END
----
472685

skipif mysql # not compatible
query I rowsort label-8239
SELECT 83 * + CASE + 50 WHEN 66 - COUNT ( * ) THEN NULL ELSE - 67 * ( - 85 ) END
----
472685

query I rowsort
SELECT 87 + 68
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT 93 * MAX( 15 ) * - COUNT( * ) * + 89 * + - 58 AS col1
----
7200990

skipif mysql # not compatible
query I rowsort label-8241
SELECT 93 * MAX ( 15 ) * - COUNT ( * ) * + 89 * + - 58 AS col1
----
7200990

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT DISTINCT COUNT( * ) * + MAX( - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT COUNT ( * ) * + MAX ( - 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT + 77 * + - ( - ( - 86 ) ) + - 45 * - COUNT( ALL + + 31 ) AS col0
----
-6577

skipif mysql # not compatible
query I rowsort label-8243
SELECT + 77 * + - ( - ( - 86 ) ) + - 45 * - COUNT ( ALL + + 31 ) AS col0
----
-6577

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8246
SELECT ALL 88 + + 26 DIV - - 43 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL 88 + + 26 / - - 43 AS col2
----
88

query I rowsort
SELECT DISTINCT + + 72 * - 57
----
-4104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8248
SELECT - NULLIF ( CASE + + 12 WHEN 1 - + 18 THEN + - 75 WHEN + NULLIF ( 95, 33 + COUNT( * ) + - 21 + - 42 ) THEN + 71 ELSE + ( - 79 ) * + CAST( + ( 81 ) AS SIGNED ) * 69 - - ( - - 83 ) * - + SUM( ALL 16 ) - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) END, + 11 * - 50 + 56 ) / + + 22 / - COUNT( ALL - 85 ) - + COUNT( * ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8248
SELECT - NULLIF ( CASE + + 12 WHEN 1 - + 18 THEN + - 75 WHEN + NULLIF ( 95, 33 + COUNT ( * ) + - 21 + - 42 ) THEN + 71 ELSE + ( - 79 ) * + CAST ( + ( 81 ) AS INTEGER ) * 69 - - ( - - 83 ) * - + SUM ( ALL 16 ) - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) END, + 11 * - 50 + 56 ) / + + 22 / - COUNT ( ALL - 85 ) - + COUNT ( * ) + COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT ALL + + 30 + - 78 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT 82 + 70 * + + 15 * - COUNT( DISTINCT + - 42 )
----
-968

skipif mysql # not compatible
query I rowsort label-8251
SELECT 82 + 70 * + + 15 * - COUNT ( DISTINCT + - 42 )
----
-968

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL + + COUNT( * ) + 33 col0
----
34

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL + + COUNT ( * ) + 33 col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8253
SELECT - ( - 85 ) * - 90 - + COUNT( * ) * CAST( + 8 AS SIGNED )
----
-7658

skipif mysql # not compatible
query I rowsort label-8253
SELECT - ( - 85 ) * - 90 - + COUNT ( * ) * CAST ( + 8 AS INTEGER )
----
-7658

onlyif mysql # DIV for integer division: 
query I rowsort label-8254
SELECT DISTINCT 47 DIV + 20 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8254
SELECT DISTINCT 47 / + 20 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8255
SELECT MAX( ALL + + 43 ) + + - ( - NULLIF ( + 55, 86 ) ) + - 61, 90 * ( - 81 ) AS col0
----
37
-7290

skipif mysql # not compatible
query II rowsort label-8255
SELECT MAX ( ALL + + 43 ) + + - ( - NULLIF ( + 55, 86 ) ) + - 61, 90 * ( - 81 ) AS col0
----
37
-7290

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8256
SELECT DISTINCT + 76 DIV - 86, - 9 + - 45 + + SUM( + 3 ) DIV 87 AS col1
----
0
-54

skipif mysql # not compatible
query II rowsort label-8256
SELECT DISTINCT + 76 / - 86, - 9 + - 45 + + SUM ( + 3 ) / 87 AS col1
----
0
-54

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

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

query I rowsort
SELECT DISTINCT 55 - - COALESCE ( ( 66 ), - 40, - 49 ) AS col1
----
121

onlyif mysql # DIV for integer division: 
query II rowsort label-8259
SELECT 45 AS col2, 32 + - NULLIF ( + 83, - 25 ) * ( 12 ) DIV - 36 - + 88 + - 69 AS col0
----
45
-98

skipif mysql # not compatible
query II rowsort label-8259
SELECT 45 AS col2, 32 + - NULLIF ( + 83, - 25 ) * ( 12 ) / - 36 - + 88 + - 69 AS col0
----
45
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ALL 90 * + - MAX( + 17 ) AS col2
----
-1530

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL 90 * + - MAX ( + 17 ) AS col2
----
-1530

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

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

query I rowsort
SELECT ALL 54 * - - 92
----
4968

query II rowsort
SELECT DISTINCT 77, + 31 col0
----
77
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8264
SELECT CAST( - 91 AS SIGNED ) * 26 AS col2, COALESCE ( + - 74, + ( + 67 ) )
----
-2366
-74

skipif mysql # not compatible
query II rowsort label-8264
SELECT CAST ( - 91 AS INTEGER ) * 26 AS col2, COALESCE ( + - 74, + ( + 67 ) )
----
-2366
-74

query II rowsort
SELECT ALL 83 + + 2 + 13, 35 col0
----
98
35

query I rowsort
SELECT + 73 * 63 - - 71 AS col2
----
4670

query I rowsort
SELECT DISTINCT + 15 * - - 43
----
645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8268
SELECT DISTINCT CAST( - 89 AS SIGNED ) * + 6 + 72 + - - 4, + COUNT( NULLIF ( - - ( + CASE + - ( 53 ) WHEN + 56 + 6 THEN - 22 END ), - - 6 ) ) DIV + - 8 * + - COUNT( 58 ) * 91 + + SUM( DISTINCT - - 53 ) AS col2
----
-458
53

skipif mysql # not compatible
query II rowsort label-8268
SELECT DISTINCT CAST ( - 89 AS INTEGER ) * + 6 + 72 + - - 4, + COUNT ( NULLIF ( - - ( + CASE + - ( 53 ) WHEN + 56 + 6 THEN - 22 END ), - - 6 ) ) / + - 8 * + - COUNT ( 58 ) * 91 + + SUM ( DISTINCT - - 53 ) AS col2
----
-458
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT ALL 50 * - COUNT( * ) - 33 - 87 AS col2
----
-170

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL 50 * - COUNT ( * ) - 33 - 87 AS col2
----
-170

onlyif mysql # DIV for integer division: 
query I rowsort label-8270
SELECT - ( - 14 ) DIV + - 97 + - - 32
----
32

skipif mysql # not compatible
query I rowsort label-8270
SELECT - ( - 14 ) / + - 97 + - - 32
----
32

query I rowsort
SELECT - 74 * + ( 54 ) * + 1 + + - 35 * + 88 + - 70 AS col2
----
-7146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8272
SELECT + ( COALESCE ( + 87, - 41 * + 2 - - 12 + + 78, - 22, 21 + 2 ) ) * CASE + 16 WHEN - 50 / + + 4 THEN + + CASE + 64 WHEN 41 THEN - + SUM( - 28 ) * + 57 * + - 71 + + 44 ELSE 46 END + - 47 WHEN COUNT( * ) * + 90 THEN NULL WHEN SUM( 44 ) * - COUNT( * ) THEN - 2 * - + 60 END / - CAST( NULL AS SIGNED ) + + MAX( 13 ) * + ( 61 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT + ( COALESCE ( + 87, - 41 * + 2 - - 12 + + 78, - 22, 21 + 2 ) ) * CASE + 16 WHEN - 50 / + + 4 THEN + + CASE + 64 WHEN 41 THEN - + SUM ( - 28 ) * + 57 * + - 71 + + 44 ELSE 46 END + - 47 WHEN COUNT ( * ) * + 90 THEN NULL WHEN SUM ( 44 ) * - COUNT ( * ) THEN - 2 * - + 60 END / - CAST ( NULL AS INTEGER ) + + MAX ( 13 ) * + ( 61 ) + COUNT ( * )
----
NULL

query II rowsort
SELECT 72 AS col1, - 42 * + 29 + 85
----
72
-1133

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT 20 + - 33 * + CASE - ( COUNT( * ) ) WHEN + 68 THEN NULL ELSE + - ( - 52 ) END AS col0
----
-1696

skipif mysql # not compatible
query I rowsort label-8274
SELECT 20 + - 33 * + CASE - ( COUNT ( * ) ) WHEN + 68 THEN NULL ELSE + - ( - 52 ) END AS col0
----
-1696

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

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

query II rowsort
SELECT ALL - + 13 AS col1, + 44
----
-13
44

query II rowsort
SELECT 9, + 13 AS col0
----
9
13

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

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT - COUNT ( * ) - - 3 AS col1
----
2

query II rowsort
SELECT DISTINCT - + 31 AS col2, - 45 col1
----
-31
-45

query I rowsort
SELECT ALL + 47 * 80 AS col2
----
3760

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8282
SELECT - COUNT( * ) * + 46 + + 75 DIV 45 * COUNT( * ) AS col0, ( + 6 ) AS col0
----
-45
6

skipif mysql # not compatible
query II rowsort label-8282
SELECT - COUNT ( * ) * + 46 + + 75 / 45 * COUNT ( * ) AS col0, ( + 6 ) AS col0
----
-45
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT + CASE 59 WHEN + 57 THEN COUNT( ALL + 22 ) WHEN 37 THEN - 71 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8283
SELECT + CASE 59 WHEN + 57 THEN COUNT ( ALL + 22 ) WHEN 37 THEN - 71 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL 98 AS col2, 92
----
98
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8285
SELECT COUNT( * ) * - 70 DIV + 18 + + CASE COUNT( * ) WHEN + 51 + + 1 * - CASE + 52 WHEN - 19 THEN + - MAX( ALL - + 47 ) * + + 35 * CASE + 0 WHEN - CAST( 11 AS SIGNED ) THEN 78 WHEN NULLIF ( 94, + + 48 ) + - CASE - 84 WHEN - - ( 46 ) + + COUNT( - 32 ) * 30 + 90 + 77 * - 39 THEN NULL WHEN + - 0 THEN NULL ELSE 37 * - 8 + + 84 * - - 66 + 1 END THEN 20 + 52 ELSE NULL END + 78 END * COALESCE ( 61, - 27 + - 26 ) THEN + 22 WHEN - 35 + COUNT( * ) THEN COUNT( * ) DIV + MIN( + 27 * - 26 ) + COUNT( * ) ELSE - 8 - + 26 END + + COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-8285
SELECT COUNT ( * ) * - 70 / + 18 + + CASE COUNT ( * ) WHEN + 51 + + 1 * - CASE + 52 WHEN - 19 THEN + - MAX ( ALL - + 47 ) * + + 35 * CASE + 0 WHEN - CAST ( 11 AS INTEGER ) THEN 78 WHEN NULLIF ( 94, + + 48 ) + - CASE - 84 WHEN - - ( 46 ) + + COUNT ( - 32 ) * 30 + 90 + 77 * - 39 THEN NULL WHEN + - 0 THEN NULL ELSE 37 * - 8 + + 84 * - - 66 + 1 END THEN 20 + 52 ELSE NULL END + 78 END * COALESCE ( 61, - 27 + - 26 ) THEN + 22 WHEN - 35 + COUNT ( * ) THEN COUNT ( * ) / + MIN ( + 27 * - 26 ) + COUNT ( * ) ELSE - 8 - + 26 END + + COUNT ( * ) AS col2
----
-36

query I rowsort
SELECT - 96 * - 10 AS col1
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT DISTINCT NULLIF ( 75, COUNT( * ) )
----
75

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT NULLIF ( 75, COUNT ( * ) )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT - 31 * CASE - - 24 WHEN + + 20 * + MIN( ALL + 44 ) - 77 THEN NULL WHEN + 87 THEN - 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8288
SELECT - 31 * CASE - - 24 WHEN + + 20 * + MIN ( ALL + 44 ) - 77 THEN NULL WHEN + 87 THEN - 15 END
----
NULL

query I rowsort
SELECT - 43 + + 30
----
-13

query I rowsort
SELECT - 49 - + - 2 AS col1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8291
SELECT - 61 DIV 12 * 89 AS col0
----
-445

skipif mysql # not compatible
query I rowsort label-8291
SELECT - 61 / 12 * 89 AS col0
----
-445

query I rowsort
SELECT - NULLIF ( + 89, + 13 ) - - 84 AS col1
----
-5

query I rowsort
SELECT DISTINCT + 92 + - + 13
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8294
SELECT - 13 + - COALESCE ( - - CAST( NULL AS SIGNED ), + - CASE + + 81 WHEN - COUNT( * ) THEN - CASE + 78 WHEN + 82 THEN NULL WHEN + + 44 - CAST( - ( + 12 ) AS SIGNED ) THEN + + 40 + ( + 95 ) ELSE NULL END * - 86 + - 15 WHEN + COUNT( * ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8294
SELECT - 13 + - COALESCE ( - - CAST ( NULL AS INTEGER ), + - CASE + + 81 WHEN - COUNT ( * ) THEN - CASE + 78 WHEN + 82 THEN NULL WHEN + + 44 - CAST ( - ( + 12 ) AS INTEGER ) THEN + + 40 + ( + 95 ) ELSE NULL END * - 86 + - 15 WHEN + COUNT ( * ) THEN NULL END )
----
NULL

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

skipif mysql # not compatible
query II rowsort label-8295
SELECT - COUNT ( * ) AS col0, 48
----
-1
48

onlyif mysql # aggregate syntax: 
query II rowsort label-8296
SELECT - ( + 57 ) * + NULLIF ( - - 27, - - MAX( DISTINCT 25 ) ), 28 AS col0
----
-1539
28

skipif mysql # not compatible
query II rowsort label-8296
SELECT - ( + 57 ) * + NULLIF ( - - 27, - - MAX ( DISTINCT 25 ) ), 28 AS col0
----
-1539
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8297
SELECT DISTINCT + 92 + - - 72 + + CASE 17 WHEN - 81 THEN 59 WHEN 66 THEN - 19 WHEN COUNT( ALL 40 ) * - + 35 + - 70 THEN NULL ELSE NULL END * + 62 * 81 * + + 78 + - + 95 + + 90 * + + 99 * - 57 * MIN( NULLIF ( + 90, - 66 ) ) / + 2 + SUM( ALL + 16 ) col0, COUNT( + CAST( - - 89 AS SIGNED ) )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8297
SELECT DISTINCT + 92 + - - 72 + + CASE 17 WHEN - 81 THEN 59 WHEN 66 THEN - 19 WHEN COUNT ( ALL 40 ) * - + 35 + - 70 THEN NULL ELSE NULL END * + 62 * 81 * + + 78 + - + 95 + + 90 * + + 99 * - 57 * MIN ( NULLIF ( + 90, - 66 ) ) / + 2 + SUM ( ALL + 16 ) col0, COUNT ( + CAST ( - - 89 AS INTEGER ) )
----
NULL
1

query I rowsort
SELECT DISTINCT NULLIF ( - 41, - ( 36 ) ) + ( + - 21 ) AS col0
----
-62

query I rowsort
SELECT DISTINCT 94 + + 66 * 52 col1
----
3526

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT DISTINCT NULLIF ( COUNT( * ), 16 / 82 - 67 + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT NULLIF ( COUNT ( * ), 16 / 82 - 67 + 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT + 35 + - 37 + - COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8301
SELECT + 35 + - 37 + - COUNT ( * ) AS col1
----
-3

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8303
SELECT 75 DIV + + 97 * - NULLIF ( - 52, - 10 ) + - CASE AVG ( - + CAST( NULL AS SIGNED ) ) WHEN - 23 THEN NULL ELSE 55 END
----
-55

skipif mysql # not compatible
query I rowsort label-8303
SELECT 75 / + + 97 * - NULLIF ( - 52, - 10 ) + - CASE AVG ( - + CAST ( NULL AS INTEGER ) ) WHEN - 23 THEN NULL ELSE 55 END
----
-55

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

skipif mysql # not compatible
query II rowsort label-8304
SELECT - 90 AS col1, - COUNT ( * ) * - 58 col1
----
-90
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8305
SELECT ALL + + 4 * - 79 + + 62 + + 71 + - + CAST( - 18 AS SIGNED ) AS col2
----
-165

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL + + 4 * - 79 + + 62 + + 71 + - + CAST ( - 18 AS INTEGER ) AS col2
----
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-8306
SELECT + + COUNT( * ) * + + 85 AS col1, ( - 12 )
----
85
-12

skipif mysql # not compatible
query II rowsort label-8306
SELECT + + COUNT ( * ) * + + 85 AS col1, ( - 12 )
----
85
-12

query I rowsort
SELECT ALL 84 * 95 * + - 67 * - 60
----
32079600

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT 97 * + - 40 + + MIN( + + 25 ) AS col1
----
-3855

skipif mysql # not compatible
query I rowsort label-8308
SELECT 97 * + - 40 + + MIN ( + + 25 ) AS col1
----
-3855

query I rowsort
SELECT ALL - COALESCE ( + 37, - - 77 - + 2 ) * 33 * 66 - - + 81
----
-80505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8310
SELECT DISTINCT + 70 * + COALESCE ( - 27, + CAST( + + 12 AS SIGNED ) ) * + + 87
----
-164430

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT + 70 * + COALESCE ( - 27, + CAST ( + + 12 AS INTEGER ) ) * + + 87
----
-164430

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT + + COUNT( * ) + - - 36 * + 88 * - 4
----
-12671

skipif mysql # not compatible
query I rowsort label-8311
SELECT + + COUNT ( * ) + - - 36 * + 88 * - 4
----
-12671

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8312
SELECT 49 col2, + COUNT( * ) * COUNT( * ) + + 18 + + + 90 DIV - 30 AS col1
----
49
16

skipif mysql # not compatible
query II rowsort label-8312
SELECT 49 col2, + COUNT ( * ) * COUNT ( * ) + + 18 + + + 90 / - 30 AS col1
----
49
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT ALL + COALESCE ( + 80, - - 76 * + - 36 + - 23 + - - MIN( DISTINCT ( 72 ) ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL + COALESCE ( + 80, - - 76 * + - 36 + - 23 + - - MIN ( DISTINCT ( 72 ) ) ) AS col0
----
80

query I rowsort
SELECT DISTINCT 68 * 29
----
1972

query I rowsort
SELECT - 79 * - + 35 + + 45 + + + 37
----
2847

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT ALL + - CASE - - 87 WHEN ( + 40 ) + + - 2 THEN - 5 - + 90 * ( + 65 ) - 49 - - NULLIF ( + 23, - ( - + 67 ) * + - ( - COUNT( * ) ) ) * - 74 + + 93 * - + 69 + - 35 WHEN 48 + + + 17 THEN - - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL + - CASE - - 87 WHEN ( + 40 ) + + - 2 THEN - 5 - + 90 * ( + 65 ) - 49 - - NULLIF ( + 23, - ( - + 67 ) * + - ( - COUNT ( * ) ) ) * - 74 + + 93 * - + 69 + - 35 WHEN 48 + + + 17 THEN - - 74 END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8318
SELECT MIN( + 89 ) col2, 2 + 21 * COUNT( * ) + - + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-8318
SELECT MIN ( + 89 ) col2, 2 + 21 * COUNT ( * ) + - + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1
----
89
NULL

query II rowsort
SELECT + 20 * - 32 col1, + 35
----
-640
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8320
SELECT - 25 + + + 40 col1, MAX( + 42 )
----
15
42

skipif mysql # not compatible
query II rowsort label-8320
SELECT - 25 + + + 40 col1, MAX ( + 42 )
----
15
42

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

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

query I rowsort
SELECT - 43 * - + 18 AS col1
----
774

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT - ( 15 ) + - 39 + 47 + 69 + - 10 * + + COUNT( * ) + + 27 * 17
----
511

skipif mysql # not compatible
query I rowsort label-8323
SELECT - ( 15 ) + - 39 + 47 + 69 + - 10 * + + COUNT ( * ) + + 27 * 17
----
511

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT ALL + 5 + - - COUNT( ALL + - 88 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL + 5 + - - COUNT ( ALL + - 88 ) AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8325
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + AVG ( - - 44 ) / + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + AVG ( - - 44 ) / + - 30
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8326
SELECT - 42 DIV - 49, + 6 + + - 15 + + 32 + COUNT( * ) AS col2
----
0
24

skipif mysql # not compatible
query II rowsort label-8326
SELECT - 42 / - 49, + 6 + + - 15 + + 32 + COUNT ( * ) AS col2
----
0
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT ALL - COUNT( * ) + + 99 + ( + SUM( ALL + + ( - + 18 ) ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL - COUNT ( * ) + + 99 + ( + SUM ( ALL + + ( - + 18 ) ) ) AS col1
----
80

query I rowsort
SELECT ALL NULLIF ( COALESCE ( - 21, + 16 ), 1 * + 97 + + 8 * 35 ) AS col2
----
-21

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

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

skipif mysql # not compatible
query I rowsort label-8330
SELECT - COUNT ( * ) / + SUM ( + 40 )
----
0

query I rowsort
SELECT - 12 * 90 * + 96 AS col1
----
-103680

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

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

query I rowsort
SELECT - 29 + - - 37 + 36 * - 81
----
-2908

query II rowsort
SELECT - 88 * + 63 AS col0, 11
----
-5544
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT ALL + NULLIF ( - 53, - + COALESCE ( - 30, MIN( - 84 ) * 76, + 6, + 25 / + + 62 ) ) + - 11 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL + NULLIF ( - 53, - + COALESCE ( - 30, MIN ( - 84 ) * 76, + 6, + 25 / + + 62 ) ) + - 11 AS col2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8336
SELECT DISTINCT - CAST( - NULLIF ( + 74, - + 17 ) AS SIGNED ) - COALESCE ( 79, - + 81 + - + 97 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT - CAST ( - NULLIF ( + 74, - + 17 ) AS INTEGER ) - COALESCE ( 79, - + 81 + - + 97 ) AS col2
----
-5

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

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

query I rowsort
SELECT ALL + - 7 * + 60
----
-420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8339
SELECT ALL - + MIN( ALL 20 ) DIV + 13 + + - 84 - + + CASE - 71 WHEN + 10 THEN NULL ELSE - + COUNT( * ) END DIV + 23 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL - + MIN ( ALL 20 ) / + 13 + + - 84 - + + CASE - 71 WHEN + 10 THEN NULL ELSE - + COUNT ( * ) END / + 23 AS col0
----
-85

query I rowsort
SELECT + - 2 * - + 13 * ( + 40 ) AS col0
----
1040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8341
SELECT DISTINCT + + CASE + 70 WHEN - + ( - 81 ) / 8 * COUNT( 91 ) + + 9 THEN - 20 WHEN - 10 - 39 + + 71 * - - 9 * + + 80 THEN - - ( + CASE + - COALESCE ( + 26, CASE + + 66 WHEN - 19 THEN + 66 WHEN MIN( ALL - 27 ) THEN - COUNT( * ) * + 7 * + + COUNT( * ) * - 78 + + MAX( + 56 ) WHEN MIN( DISTINCT - 23 ) THEN - COUNT( * ) ELSE - 0 + COUNT( * ) END + - + ( + + 45 ) + + 86 / ( - COUNT( * ) ) ) WHEN - 91 * - 68 THEN - 55 END ) ELSE - 16 + CAST( 61 AS SIGNED ) END col2
----
45

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT + + CASE + 70 WHEN - + ( - 81 ) / 8 * COUNT ( 91 ) + + 9 THEN - 20 WHEN - 10 - 39 + + 71 * - - 9 * + + 80 THEN - - ( + CASE + - COALESCE ( + 26, CASE + + 66 WHEN - 19 THEN + 66 WHEN MIN ( ALL - 27 ) THEN - COUNT ( * ) * + 7 * + + COUNT ( * ) * - 78 + + MAX ( + 56 ) WHEN MIN ( DISTINCT - 23 ) THEN - COUNT ( * ) ELSE - 0 + COUNT ( * ) END + - + ( + + 45 ) + + 86 / ( - COUNT ( * ) ) ) WHEN - 91 * - 68 THEN - 55 END ) ELSE - 16 + CAST ( 61 AS INTEGER ) END col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8342
SELECT + + ( - 88 ) - + COALESCE ( CASE 70 WHEN - 18 THEN - 22 * - + 98 END, + 81 * COUNT( * ) * + COALESCE ( - + 71, MIN( 12 ) * + 20, - COALESCE ( 30, - COUNT( * ) ) ) * CASE + 91 WHEN 3 THEN 58 * - 84 WHEN ( - 68 ) * 74 THEN NULL WHEN + - 17 + - + CASE - 99 WHEN - 23 THEN NULL ELSE + CASE 5 WHEN + - 26 * - - SUM( - 21 ) THEN 63 * + - CAST( NULL AS SIGNED ) + 24 ELSE NULL END * 31 END THEN + 70 END ) * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8342
SELECT + + ( - 88 ) - + COALESCE ( CASE 70 WHEN - 18 THEN - 22 * - + 98 END, + 81 * COUNT ( * ) * + COALESCE ( - + 71, MIN ( 12 ) * + 20, - COALESCE ( 30, - COUNT ( * ) ) ) * CASE + 91 WHEN 3 THEN 58 * - 84 WHEN ( - 68 ) * 74 THEN NULL WHEN + - 17 + - + CASE - 99 WHEN - 23 THEN NULL ELSE + CASE 5 WHEN + - 26 * - - SUM ( - 21 ) THEN 63 * + - CAST ( NULL AS INTEGER ) + 24 ELSE NULL END * 31 END THEN + 70 END ) * - 7
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-8343
SELECT DISTINCT - + COALESCE ( - 10, - - COUNT( * ), + ( + + 31 ) + - + 9 * + + 75 ) AS col1, + 95 col0, - 21
----
10
95
-21

skipif mysql # not compatible
query III rowsort label-8343
SELECT DISTINCT - + COALESCE ( - 10, - - COUNT ( * ), + ( + + 31 ) + - + 9 * + + 75 ) AS col1, + 95 col0, - 21
----
10
95
-21

query I rowsort
SELECT DISTINCT 2 * + 39 * + - 40 AS col0
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT ALL - 64 * + MIN( - 56 ) AS col2
----
3584

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL - 64 * + MIN ( - 56 ) AS col2
----
3584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8346
SELECT DISTINCT 60 DIV - COUNT( * ) + + NULLIF ( - - 81, + MAX( + - 37 ) )
----
21

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT 60 / - COUNT ( * ) + + NULLIF ( - - 81, + MAX ( + - 37 ) )
----
21

query I rowsort
SELECT 73 * + 69 * 25 + - - 30
----
125955

query I rowsort
SELECT 42 + + 88 AS col0
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8349
SELECT CASE - 72 WHEN - 31 + - ( - CAST( NULL AS SIGNED ) ) - - + 6 * + 10 THEN - - 97 * + 69 * + 41 ELSE NULL END * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT CASE - 72 WHEN - 31 + - ( - CAST ( NULL AS INTEGER ) ) - - + 6 * + 10 THEN - - 97 * + 69 * + 41 ELSE NULL END * 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT ALL 32 + CASE + - 11 WHEN - - ( - ( - 14 ) ) * + 6 * 40 + + + 92 * + + 40 THEN 62 - - - COUNT( * ) WHEN 78 THEN NULL WHEN - ( + - 50 ) THEN NULL ELSE NULL END - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL 32 + CASE + - 11 WHEN - - ( - ( - 14 ) ) * + 6 * 40 + + + 92 * + + 40 THEN 62 - - - COUNT ( * ) WHEN 78 THEN NULL WHEN - ( + - 50 ) THEN NULL ELSE NULL END - - 23
----
NULL

query I rowsort
SELECT 51 * - - 40 * 24 AS col0
----
48960

query I rowsort
SELECT 58 - - 0 - - 96 AS col2
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8353
SELECT ALL + CAST( NULL AS SIGNED ) + + + COALESCE ( CASE + 43 WHEN + MIN( + 17 ) THEN - + NULLIF ( + 85, - 12 ) END, + + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL + CAST ( NULL AS INTEGER ) + + + COALESCE ( CASE + 43 WHEN + MIN ( + 17 ) THEN - + NULLIF ( + 85, - 12 ) END, + + 76 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT 37 + + 37 / - COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8355
SELECT ALL 96 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL 96 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 77 + + 49 - - + 7
----
133

query I rowsort
SELECT ALL 72 + + - 29 * + 45
----
-1233

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT ALL + COUNT( ALL + 82 ) + - + 43 + - - 49 * + - 39 - - 15 + - 89 * + 82
----
-9236

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL + COUNT ( ALL + 82 ) + - + 43 + - - 49 * + - 39 - - 15 + - 89 * + 82
----
-9236

query II rowsort
SELECT 67 + - + 28 + - 44, - 7 AS col1
----
-5
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT COUNT( * ) - + 95 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-8360
SELECT COUNT ( * ) - + 95 AS col0
----
-94

query II rowsort
SELECT - 35 AS col0, 78 + - + 23 AS col1
----
-35
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8362
SELECT ( + 95 ) + + 95 + - 94 DIV - - 79 + + COUNT( * ) AS col0
----
190

skipif mysql # not compatible
query I rowsort label-8362
SELECT ( + 95 ) + + 95 + - 94 / - - 79 + + COUNT ( * ) AS col0
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT 21 + + COUNT( * ) * + 81 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-8363
SELECT 21 + + COUNT ( * ) * + 81 AS col0
----
102

query I rowsort
SELECT ALL - 2 * + 86 col2
----
-172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8365
SELECT DISTINCT 23 * COALESCE ( - 45, + ( COUNT( DISTINCT + 99 ) ) DIV - 3 ) * - 78 AS col0
----
80730

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT 23 * COALESCE ( - 45, + ( COUNT ( DISTINCT + 99 ) ) / - 3 ) * - 78 AS col0
----
80730

query I rowsort
SELECT ALL + 92 - - 99
----
191

query I rowsort
SELECT ALL - 11 - 91 AS col1
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT MAX( + + 97 ) col2
----
97

skipif mysql # not compatible
query I rowsort label-8368
SELECT MAX ( + + 97 ) col2
----
97

query I rowsort
SELECT - CASE COALESCE ( - - 51, + - 64 + - - 93 ) WHEN 4 THEN - 95 / - 27 + - 0 * - 40 * + - 3 END
----
NULL

query I rowsort
SELECT 95 + - 48 AS col1
----
47

query I rowsort
SELECT 26 * - - 64 * 4 - 76 AS col1
----
6580

query II rowsort
SELECT + 70 AS col0, 21 * - 91 AS col1
----
70
-1911

onlyif mysql # DIV for integer division: 
query I rowsort label-8373
SELECT ALL + 48 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL + 48 / + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT ALL - COUNT( + + ( + 72 ) ) * 77 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL - COUNT ( + + ( + 72 ) ) * 77 AS col1
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8375
SELECT + + 35 DIV - 74 + - 37 + + + 6
----
-31

skipif mysql # not compatible
query I rowsort label-8375
SELECT + + 35 / - 74 + - 37 + + + 6
----
-31

query I rowsort
SELECT + ( - 53 ) * - 7 + + 27 + - + 67 AS col1
----
331

query I rowsort
SELECT 31 * + 4 AS col1
----
124

query I rowsort
SELECT 74 + 75 AS col1
----
149

query I rowsort
SELECT ALL - 5 + 13 * + + 45 AS col0
----
580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8380
SELECT ALL - COALESCE ( - 3, 58 + + 85 * 53, 42 + + ( + ( + 33 ) ) + CASE 41 WHEN + COUNT( * ) + - 74 + + NULLIF ( - 22, 20 ) THEN CAST( NULL AS SIGNED ) - - - ( 95 ) END * 52 DIV + 75 ) col2
----
3

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL - COALESCE ( - 3, 58 + + 85 * 53, 42 + + ( + ( + 33 ) ) + CASE 41 WHEN + COUNT ( * ) + - 74 + + NULLIF ( - 22, 20 ) THEN CAST ( NULL AS INTEGER ) - - - ( 95 ) END * 52 / + 75 ) col2
----
3

query I rowsort
SELECT + 45 * 94 + 51
----
4281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8382
SELECT + 70 * + COALESCE ( 52, + ( + COUNT( * ) ) DIV CAST( + + 1 AS SIGNED ) - + - ( - - 88 ) + + 60 * + 97, - 46, - + 84 * 43 + + 44 ) + - COUNT( * )
----
3639

skipif mysql # not compatible
query I rowsort label-8382
SELECT + 70 * + COALESCE ( 52, + ( + COUNT ( * ) ) / CAST ( + + 1 AS INTEGER ) - + - ( - - 88 ) + + 60 * + 97, - 46, - + 84 * 43 + + 44 ) + - COUNT ( * )
----
3639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8383
SELECT ALL 84 + + CAST( NULL AS SIGNED ) * + - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL 84 + + CAST ( NULL AS INTEGER ) * + - 19 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT 67 + MIN( DISTINCT + 52 ) + - + 39 + - 71 * + 4 AS col2
----
-204

skipif mysql # not compatible
query I rowsort label-8384
SELECT 67 + MIN ( DISTINCT + 52 ) + - + 39 + - 71 * + 4 AS col2
----
-204

query I rowsort
SELECT ALL - 5 + + ( 12 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT SUM( DISTINCT 63 ) * + + 81 * + - 11 * - - 30 col1
----
-1683990

skipif mysql # not compatible
query I rowsort label-8386
SELECT SUM ( DISTINCT 63 ) * + + 81 * + - 11 * - - 30 col1
----
-1683990

query II rowsort
SELECT NULLIF ( + 61, 62 ) + - 91 AS col1, - COALESCE ( + CASE + + 55 WHEN + + 2 * + ( 21 ) THEN + 24 WHEN - + NULLIF ( 92, NULLIF ( + 25, + 54 ) ) * + - 57 THEN NULL END, - + 69 )
----
-30
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT MIN( DISTINCT + ( + 10 ) ) * 30 * - 7 AS col2
----
-2100

skipif mysql # not compatible
query I rowsort label-8388
SELECT MIN ( DISTINCT + ( + 10 ) ) * 30 * - 7 AS col2
----
-2100

query I rowsort
SELECT 12 + - 71
----
-59

query I rowsort
SELECT ALL 18 - + 10 col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8391
SELECT CASE - NULLIF ( + 25, - 55 + - - 46 / + 52 ) WHEN - - 98 * - 19 * + 13 THEN NULL WHEN - 39 * + 61 + + ( 81 ) + 38 + - + 56 / 45 * - + 90 THEN + - COUNT( * ) + - 37 END / - 4, 11 AS col0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-8391
SELECT CASE - NULLIF ( + 25, - 55 + - - 46 / + 52 ) WHEN - - 98 * - 19 * + 13 THEN NULL WHEN - 39 * + 61 + + ( 81 ) + 38 + - + 56 / 45 * - + 90 THEN + - COUNT ( * ) + - 37 END / - 4, 11 AS col0
----
NULL
11

query I rowsort
SELECT DISTINCT + 98 * 65 * + - 35 * - - 8 col0
----
-1783600

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8393
SELECT ALL CAST( ( + ( + 44 ) ) AS SIGNED ) DIV ( + 22 ) col1
----
2

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL CAST ( ( + ( + 44 ) ) AS INTEGER ) / ( + 22 ) col1
----
2

query I rowsort
SELECT 17 * + 31 AS col1
----
527

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT 20 + - 3 * - 89 * MIN( + ( + 11 ) ) AS col0
----
2957

skipif mysql # not compatible
query I rowsort label-8395
SELECT 20 + - 3 * - 89 * MIN ( + ( + 11 ) ) AS col0
----
2957

query I rowsort
SELECT + + NULLIF ( + + NULLIF ( ( - 98 ), - 24 + 66 ), - + 69 ) + - - 64
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT + - 74 * + - COALESCE ( + ( 64 ), - - 4 * - + 9 * + COUNT( * ) ) AS col0
----
4736

skipif mysql # not compatible
query I rowsort label-8397
SELECT + - 74 * + - COALESCE ( + ( 64 ), - - 4 * - + 9 * + COUNT ( * ) ) AS col0
----
4736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8398
SELECT - - SUM( - 75 ) * - + 49 * CAST( NULL AS SIGNED ) - - + ( 50 ) + + COUNT( * ) + 76 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8398
SELECT - - SUM ( - 75 ) * - + 49 * CAST ( NULL AS INTEGER ) - - + ( 50 ) + + COUNT ( * ) + 76 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT - + NULLIF ( + COALESCE ( + COALESCE ( 98, - + COUNT( * ) ), - 1 + + 15 * - 48 * - 14 * + 18 + - + COALESCE ( 8, + 3 ) ), - ( - ( + AVG ( - 61 ) ) ) )
----
-98

skipif mysql # not compatible
query I rowsort label-8399
SELECT - + NULLIF ( + COALESCE ( + COALESCE ( 98, - + COUNT ( * ) ), - 1 + + 15 * - 48 * - 14 * + 18 + - + COALESCE ( 8, + 3 ) ), - ( - ( + AVG ( - 61 ) ) ) )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT ALL - COUNT( * ) * - 68 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL - COUNT ( * ) * - 68 AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8401
SELECT + 36 * CAST( NULL AS SIGNED ) + + CAST( + 2 AS SIGNED ) - ( 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8401
SELECT + 36 * CAST ( NULL AS INTEGER ) + + CAST ( + 2 AS INTEGER ) - ( 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL + 24 * + 2 + - CASE + 87 WHEN - 15 THEN + ( - 63 ) - COUNT( * ) * 30 END + + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL + 24 * + 2 + - CASE + 87 WHEN - 15 THEN + ( - 63 ) - COUNT ( * ) * 30 END + + 43 AS col1
----
NULL

query I rowsort
SELECT + 93 + 20 + + ( - 88 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8404
SELECT + CAST( NULL AS SIGNED ) * + + COALESCE ( 72, - - 86 * + 79 ) * 92 + 18 + - 99 + + - 11 - 92 / 78 * - COUNT( * ) * - 4 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8404
SELECT + CAST ( NULL AS INTEGER ) * + + COALESCE ( 72, - - 86 * + 79 ) * 92 + 18 + - 99 + + - 11 - 92 / 78 * - COUNT ( * ) * - 4 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8405
SELECT - + COUNT( * ) * - + 87, - ( - 55 ) DIV COUNT( * ) AS col2, - + 45 + MIN( DISTINCT + + 14 ) DIV + + ( + + 33 ) AS col0
----
87
55
-45

skipif mysql # not compatible
query III rowsort label-8405
SELECT - + COUNT ( * ) * - + 87, - ( - 55 ) / COUNT ( * ) AS col2, - + 45 + MIN ( DISTINCT + + 14 ) / + + ( + + 33 ) AS col0
----
87
55
-45

query I rowsort
SELECT DISTINCT - 45 * 75 + - 26 - - + 70 + - 79
----
-3410

onlyif mysql # DIV for integer division: 
query I rowsort label-8407
SELECT ALL + - 10 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL + - 10 / + 82
----
0

query I rowsort
SELECT + 14 * + + 44
----
616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8409
SELECT ALL CAST( NULL AS SIGNED ) * 63 + - 44 + 90 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL CAST ( NULL AS INTEGER ) * 63 + - 44 + 90 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8410
SELECT ALL 55 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL 55 / 56
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8411
SELECT NULLIF ( 53, - 51 + + 10 - - 76 * + 38 + 7 / - 5 * 53 * - - CAST( + 36 AS SIGNED ) ) AS col0, - ( + 97 ) + - 8
----
53
-105

skipif mysql # not compatible
query II rowsort label-8411
SELECT NULLIF ( 53, - 51 + + 10 - - 76 * + 38 + 7 / - 5 * 53 * - - CAST ( + 36 AS INTEGER ) ) AS col0, - ( + 97 ) + - 8
----
53
-105

query I rowsort
SELECT ALL + 19 * 17 AS col0
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT DISTINCT 97 * - + 4 - + COUNT( * ) - - 19 AS col2
----
-370

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT 97 * - + 4 - + COUNT ( * ) - - 19 AS col2
----
-370

query I rowsort
SELECT 47 * 24 + 84 AS col1
----
1212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8415
SELECT ALL MIN( DISTINCT 38 ) * - + COUNT( * ) - CAST( NULL AS SIGNED ) * - ( + - 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL MIN ( DISTINCT 38 ) * - + COUNT ( * ) - CAST ( NULL AS INTEGER ) * - ( + - 24 )
----
NULL

query I rowsort
SELECT - COALESCE ( 56, - 99, - 11 ) + 6 col1
----
-50

query I rowsort
SELECT - ( + 76 ) * 94
----
-7144

query I rowsort
SELECT DISTINCT + ( + + 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT - COUNT( * ) + - - 80
----
79

skipif mysql # not compatible
query I rowsort label-8419
SELECT - COUNT ( * ) + - - 80
----
79

query I rowsort
SELECT ALL ( + COALESCE ( + + 98, - 46 + 64 * + + 6 - + 98, 63 + + 59 ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT ALL + COUNT( * ) - - 15
----
16

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL + COUNT ( * ) - - 15
----
16

query I rowsort
SELECT DISTINCT NULLIF ( + 7, - - ( - 50 ) / - 42 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT - 29 + MAX( + 65 )
----
36

skipif mysql # not compatible
query I rowsort label-8423
SELECT - 29 + MAX ( + 65 )
----
36

query I rowsort
SELECT + + 89 - + - 93
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT + - COUNT( * ) + + - 80 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-8425
SELECT + - COUNT ( * ) + + - 80 AS col0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-8426
SELECT + 54 DIV - 16 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8426
SELECT + 54 / - 16 AS col0
----
-3

query I rowsort
SELECT ALL COALESCE ( - 5, + 70 ) + + - 91
----
-96

query I rowsort
SELECT DISTINCT - 81 * + + 29 + 89
----
-2260

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT + COUNT( * ) + - 70 + 3
----
-66

skipif mysql # not compatible
query I rowsort label-8429
SELECT + COUNT ( * ) + - 70 + 3
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8430
SELECT ALL - - COUNT( * ) * - COALESCE ( + 58, - COUNT( * ) DIV - 29, - MAX( + + 31 ) + + 86 + + 44 * + - 43 * - ( + 29 ), - 62 * 3 * - - 56 ) AS col1, 56 * ( 13 ) * 61 + - 36 col2
----
-58
44372

skipif mysql # not compatible
query II rowsort label-8430
SELECT ALL - - COUNT ( * ) * - COALESCE ( + 58, - COUNT ( * ) / - 29, - MAX ( + + 31 ) + + 86 + + 44 * + - 43 * - ( + 29 ), - 62 * 3 * - - 56 ) AS col1, 56 * ( 13 ) * 61 + - 36 col2
----
-58
44372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8431
SELECT DISTINCT + 90 * - - COUNT( * ) * + COUNT( * ) * 85 DIV - NULLIF ( COUNT( * ), - + 71 ) + - - 58 AS col2
----
-7592

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT + 90 * - - COUNT ( * ) * + COUNT ( * ) * 85 / - NULLIF ( COUNT ( * ), - + 71 ) + - - 58 AS col2
----
-7592

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT - COUNT( DISTINCT - 47 ) * - 19
----
19

skipif mysql # not compatible
query I rowsort label-8432
SELECT - COUNT ( DISTINCT - 47 ) * - 19
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8433
SELECT - - ( - 94 ) + 98 DIV + 6 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8433
SELECT - - ( - 94 ) + 98 / + 6 AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8434
SELECT + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * SUM( + 56 ) / + + 63 + + 59 * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * SUM ( + 56 ) / + + 63 + + 59 * 73 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8435
SELECT + + MIN( + 84 ) * + CAST( NULL AS SIGNED ) * - + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8435
SELECT + + MIN ( + 84 ) * + CAST ( NULL AS INTEGER ) * - + 83
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8436
SELECT COALESCE ( + 83, + 67 ) DIV + 27 - 34 + - + 73 - 51 * + COUNT( * ) AS col0
----
-155

skipif mysql # not compatible
query I rowsort label-8436
SELECT COALESCE ( + 83, + 67 ) / + 27 - 34 + - + 73 - 51 * + COUNT ( * ) AS col0
----
-155

query I rowsort
SELECT + 36 + + 40
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8438
SELECT DISTINCT 56 / - CAST( NULL AS SIGNED ) + NULLIF ( - 51, + 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT 56 / - CAST ( NULL AS INTEGER ) + NULLIF ( - 51, + 50 )
----
NULL

query I rowsort
SELECT DISTINCT 14 * 12
----
168

onlyif mysql # DIV for integer division: 
query II rowsort label-8440
SELECT ALL + 51, + ( - 2 ) DIV - 19 - - 87 AS col0
----
51
87

skipif mysql # not compatible
query II rowsort label-8440
SELECT ALL + 51, + ( - 2 ) / - 19 - - 87 AS col0
----
51
87

query I rowsort
SELECT ALL 49 * + 31
----
1519

query I rowsort
SELECT DISTINCT 66 * - 33
----
-2178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8443
SELECT - 37 + + + 23 DIV - + NULLIF ( + - 81, COUNT( * ) )
----
-37

skipif mysql # not compatible
query I rowsort label-8443
SELECT - 37 + + + 23 / - + NULLIF ( + - 81, COUNT ( * ) )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8444
SELECT ALL 99 DIV ( + - 58 ) * 50 * + 14 - - 64 DIV - - 84 + 92 * COUNT( + 89 )
----
-608

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL 99 / ( + - 58 ) * 50 * + 14 - - 64 / - - 84 + 92 * COUNT ( + 89 )
----
-608

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT - 13 + + 85 + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-8445
SELECT - 13 + + 85 + COUNT ( * )
----
73

query I rowsort
SELECT ( + - 67 ) AS col0
----
-67

query I rowsort
SELECT ALL - ( 3 ) * - 60 AS col0
----
180

query I rowsort
SELECT - 71 * + 22 col2
----
-1562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8449
SELECT DISTINCT + CAST( + - 69 AS SIGNED ) * + 1 + + 45 + - 88 * - SUM( DISTINCT ( + ( + 7 ) ) ) AS col1
----
592

skipif mysql # not compatible
query I rowsort label-8449
SELECT DISTINCT + CAST ( + - 69 AS INTEGER ) * + 1 + + 45 + - 88 * - SUM ( DISTINCT ( + ( + 7 ) ) ) AS col1
----
592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8450
SELECT 80 * - 50 DIV 50 + - COUNT( * ) + + 31 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-8450
SELECT 80 * - 50 / 50 + - COUNT ( * ) + + 31 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL - COUNT( * ) * - + 71 * - 66
----
-4686

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL - COUNT ( * ) * - + 71 * - 66
----
-4686

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT COUNT( * ) + + + 80
----
81

skipif mysql # not compatible
query I rowsort label-8452
SELECT COUNT ( * ) + + + 80
----
81

query I rowsort
SELECT ALL + 80 * + ( - 87 ) AS col2
----
-6960

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8454
SELECT - + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8454
SELECT - + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT + 29 + + + 35
----
64

query I rowsort
SELECT ALL - - 10 + - 1 AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8457
SELECT ALL - - 93 * ( - + 14 ) / - COALESCE ( 59, + 14 ) + + CASE ( - + CAST( NULL AS SIGNED ) ) WHEN + + ( - - 74 ) THEN + - CAST( NULL AS SIGNED ) + - COUNT( * ) * - + 83 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL - - 93 * ( - + 14 ) / - COALESCE ( 59, + 14 ) + + CASE ( - + CAST ( NULL AS INTEGER ) ) WHEN + + ( - - 74 ) THEN + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - + 83 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 94 + - + 80 AS col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8459
SELECT COUNT( * ), 82 * + 24 AS col0
----
1
1968

skipif mysql # not compatible
query II rowsort label-8459
SELECT COUNT ( * ), 82 * + 24 AS col0
----
1
1968

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT DISTINCT + - CASE - COALESCE ( - 89, + 30 ) WHEN - 70 * + + 66 + + 69 * + - 64 / SUM( DISTINCT - 13 ) / 98 * + 15 + + + AVG ( DISTINCT - ( - ( - - 53 ) ) ) - + 80 * - 8 THEN NULL WHEN + 12 + + 81 THEN - COUNT( ALL - 63 ) ELSE + 66 END + 83
----
17

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT + - CASE - COALESCE ( - 89, + 30 ) WHEN - 70 * + + 66 + + 69 * + - 64 / SUM ( DISTINCT - 13 ) / 98 * + 15 + + + AVG ( DISTINCT - ( - ( - - 53 ) ) ) - + 80 * - 8 THEN NULL WHEN + 12 + + 81 THEN - COUNT ( ALL - 63 ) ELSE + 66 END + 83
----
17

query II rowsort
SELECT DISTINCT 17 AS col1, + 79 AS col1
----
17
79

query II rowsort
SELECT + 62 - 41, 0 + 75 AS col0
----
21
75

query II rowsort
SELECT 3 AS col0, - NULLIF ( - 69, - 20 + + + 41 ) AS col2
----
3
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT + 75 + NULLIF ( - 5, - + 5 * - ( + 64 ) * ( - 70 ) + - - COUNT( * ) )
----
70

skipif mysql # not compatible
query I rowsort label-8464
SELECT + 75 + NULLIF ( - 5, - + 5 * - ( + 64 ) * ( - 70 ) + - - COUNT ( * ) )
----
70

query I rowsort
SELECT + 45 * + ( 45 ) AS col1
----
2025

query II rowsort
SELECT ALL - 37 * - 79 AS col0, - 64
----
2923
-64

query II rowsort
SELECT 9, + 8 col2
----
9
8

query I rowsort
SELECT 26 + + 23 - + 26 AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8469
SELECT + CAST( 67 AS SIGNED ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-8469
SELECT + CAST ( 67 AS INTEGER ) AS col2
----
67

query II rowsort
SELECT - 96 AS col0, 94
----
-96
94

query I rowsort
SELECT DISTINCT + 34 + + - 18
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ALL - 76 * - 36 * - + 12 * - MIN( DISTINCT 12 )
----
393984

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL - 76 * - 36 * - + 12 * - MIN ( DISTINCT 12 )
----
393984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8473
SELECT + COALESCE ( 56, + MIN( ALL - + CAST( 92 AS SIGNED ) ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8473
SELECT + COALESCE ( 56, + MIN ( ALL - + CAST ( 92 AS INTEGER ) ) ) AS col2
----
56

query I rowsort
SELECT 86 * + + 88 AS col2
----
7568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8475
SELECT ALL - COUNT( 75 ), CAST( - 42 AS SIGNED ) * - 30 * - 24 * + 44 + - 35 AS col1
----
-1
-1330595

skipif mysql # not compatible
query II rowsort label-8475
SELECT ALL - COUNT ( 75 ), CAST ( - 42 AS INTEGER ) * - 30 * - 24 * + 44 + - 35 AS col1
----
-1
-1330595

query II rowsort
SELECT ALL 48 * + + 28 AS col0, ( + + 36 )
----
1344
36

query I rowsort
SELECT 11 * - 32 AS col1
----
-352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT CAST( NULL AS SIGNED ) - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT CAST ( NULL AS INTEGER ) - 31
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8479
SELECT COUNT( * ) DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-8479
SELECT COUNT ( * ) / + 34
----
0

query I rowsort
SELECT 1 + + 88 AS col0
----
89

query II rowsort
SELECT DISTINCT 45 + - 75, 86 AS col2
----
-30
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT ALL + 43 * - + 2 - - MAX( 89 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL + 43 * - + 2 - - MAX ( 89 ) AS col2
----
3

query I rowsort
SELECT + 93 + + - 3
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8484
SELECT DISTINCT AVG ( DISTINCT CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT AVG ( DISTINCT CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8485
SELECT + CAST( NULL AS DECIMAL ) + - 77 / + + 81 * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8485
SELECT + CAST ( NULL AS REAL ) + - 77 / + + 81 * - 26
----
NULL

query II rowsort
SELECT 74 + + 23 + - 69 AS col1, - ( - + 41 ) * - - 40 + + + 97 + - - 88
----
28
1825

onlyif mysql # DIV for integer division: 
query I rowsort label-8487
SELECT + 60 + 30 DIV + 48
----
60

skipif mysql # not compatible
query I rowsort label-8487
SELECT + 60 + 30 / + 48
----
60

query I rowsort
SELECT 64 + - 87 + + 35 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8489
SELECT DISTINCT - - 16 * + COALESCE ( - - 58, - - 61 DIV + - COUNT( * ) ) AS col2, COUNT( * ) + + CASE + 50 WHEN + CAST( NULL AS SIGNED ) THEN + 97 END AS col2
----
928
NULL

skipif mysql # not compatible
query II rowsort label-8489
SELECT DISTINCT - - 16 * + COALESCE ( - - 58, - - 61 / + - COUNT ( * ) ) AS col2, COUNT ( * ) + + CASE + 50 WHEN + CAST ( NULL AS INTEGER ) THEN + 97 END AS col2
----
928
NULL

query II rowsort
SELECT ALL + - 3 - 56 col0, ( 73 ) * - + 7 + 94 * + 27 * 6
----
-59
14717

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT + COUNT( * ) + - - 20 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8491
SELECT + COUNT ( * ) + - - 20 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT ALL + CASE - 91 WHEN COALESCE ( + 76, - 23 / + - COUNT( * ) ) THEN - 44 * - 1 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL + CASE - 91 WHEN COALESCE ( + 76, - 23 / + - COUNT ( * ) ) THEN - 44 * - 1 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - + ( 93 ) AS col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8494
SELECT ALL + CAST( ( + 7 ) AS SIGNED ) - 5
----
2

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL + CAST ( ( + 7 ) AS INTEGER ) - 5
----
2

query I rowsort
SELECT 54 + + + 14 + 94 * + 59 * - 70 AS col2
----
-388152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8496
SELECT + CASE - - 23 WHEN + CASE + CASE + - COUNT( * ) WHEN - + 37 THEN - 61 ELSE NULL END WHEN + 11 * + 60 * 5 * - - 51 / ( + CAST( + + 63 AS SIGNED ) ) THEN + 20 / - 77 WHEN - - 8 / + 71 THEN NULL ELSE - 96 END * - + 82 + CAST( NULL AS DECIMAL ) * + 78 / + 41 THEN + + 60 + - 95 + 24 * 59 + + 31 * 68 + + 95 WHEN - 46 THEN - 53 + + 30 * - 35 ELSE NULL END / + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8496
SELECT + CASE - - 23 WHEN + CASE + CASE + - COUNT ( * ) WHEN - + 37 THEN - 61 ELSE NULL END WHEN + 11 * + 60 * 5 * - - 51 / ( + CAST ( + + 63 AS INTEGER ) ) THEN + 20 / - 77 WHEN - - 8 / + 71 THEN NULL ELSE - 96 END * - + 82 + CAST ( NULL AS REAL ) * + 78 / + 41 THEN + + 60 + - 95 + 24 * 59 + + 31 * 68 + + 95 WHEN - 46 THEN - 53 + + 30 * - 35 ELSE NULL END / + 25 AS col0
----
NULL

query I rowsort
SELECT 96 * 82
----
7872

query I rowsort
SELECT DISTINCT + 70 * + - ( - 93 ) AS col2
----
6510

onlyif mysql # DIV for integer division: 
query I rowsort label-8499
SELECT 86 DIV - 85 col2
----
-1

skipif mysql # not compatible
query I rowsort label-8499
SELECT 86 / - 85 col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8500
SELECT ALL - 31 AS col1, 61 - - + CASE 21 WHEN - CAST( NULL AS SIGNED ) * + CASE - - 89 WHEN - 48 * - 80 / + 37 THEN NULL ELSE + 90 - + ( - SUM( ALL - 17 ) ) END * - + 96 + - 12 + - 8 THEN - 7 + CAST( - + MAX( - 90 ) AS SIGNED ) ELSE 37 * 53 END * 8 + COUNT( * )
----
-31
15750

skipif mysql # not compatible
query II rowsort label-8500
SELECT ALL - 31 AS col1, 61 - - + CASE 21 WHEN - CAST ( NULL AS INTEGER ) * + CASE - - 89 WHEN - 48 * - 80 / + 37 THEN NULL ELSE + 90 - + ( - SUM ( ALL - 17 ) ) END * - + 96 + - 12 + - 8 THEN - 7 + CAST ( - + MAX ( - 90 ) AS INTEGER ) ELSE 37 * 53 END * 8 + COUNT ( * )
----
-31
15750

query I rowsort
SELECT DISTINCT + 70 * + 98 AS col1
----
6860

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT DISTINCT - MIN( ALL 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT - MIN ( ALL 53 )
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-8503
SELECT ALL + 26 DIV 85 * + 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL + 26 / 85 * + 41 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8504
SELECT - 18 DIV - 19 col2
----
0

skipif mysql # not compatible
query I rowsort label-8504
SELECT - 18 / - 19 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8505
SELECT + COUNT( * ) + - COALESCE ( - 62, - 5 ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8505
SELECT + COUNT ( * ) + - COALESCE ( - 62, - 5 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 94 * 36
----
-3384

query I rowsort
SELECT 90 * 90 + + NULLIF ( + - ( + - 65 ), 27 ) * 33 * - 70 AS col2
----
-142050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8508
SELECT ALL + 67 * CAST( + 77 AS SIGNED ) + + + 82 + - MIN( - 85 ) + - MIN( 25 ) * - 51 * + + 5
----
11701

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL + 67 * CAST ( + 77 AS INTEGER ) + + + 82 + - MIN ( - 85 ) + - MIN ( 25 ) * - 51 * + + 5
----
11701

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT COUNT( - 91 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8509
SELECT COUNT ( - 91 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8510
SELECT DISTINCT + 94 + + NULLIF ( - COALESCE ( - - 81, - 27 + 32, - MAX( DISTINCT - - CAST( - - 81 AS SIGNED ) ) * 16 ), 14 + - + 19 ) + - - 94 + 39 - - 50 DIV - + 2 + - + 79 * + - 74 + - + 0
----
5967

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT + 94 + + NULLIF ( - COALESCE ( - - 81, - 27 + 32, - MAX ( DISTINCT - - CAST ( - - 81 AS INTEGER ) ) * 16 ), 14 + - + 19 ) + - - 94 + 39 - - 50 / - + 2 + - + 79 * + - 74 + - + 0
----
5967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8511
SELECT ALL + + COALESCE ( - - CAST( COUNT( + + 37 ) AS SIGNED ), + 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL + + COALESCE ( - - CAST ( COUNT ( + + 37 ) AS INTEGER ), + 45 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8512
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT DISTINCT - COUNT( * ) * - 7
----
7

skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT - COUNT ( * ) * - 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT ALL + - MIN( + 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL + - MIN ( + 12 )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8515
SELECT - 30 * - 88 * - 8 col2, COUNT( * )
----
-21120
1

skipif mysql # not compatible
query II rowsort label-8515
SELECT - 30 * - 88 * - 8 col2, COUNT ( * )
----
-21120
1

query I rowsort
SELECT ALL 70 * - + ( 97 ) AS col1
----
-6790

query I rowsort
SELECT DISTINCT - CASE + 10 WHEN - ( ( - + 8 ) ) THEN + - 84 + + - 86 ELSE + NULLIF ( + 33, + 72 ) * + 30 * + - 9 + + + 67 + 36 + + + 26 END + - ( + + 20 )
----
8761

query I rowsort
SELECT - ( - - 92 ) col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT - - MAX( + 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8519
SELECT - - MAX ( + 13 ) AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8520
SELECT ALL + 20 - + 39 + ( - + 74 ) * + 84 * + SUM( 33 ) * - COALESCE ( + 63, + 51 + + CAST( NULL AS SIGNED ) )
----
12923045

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL + 20 - + 39 + ( - + 74 ) * + 84 * + SUM ( 33 ) * - COALESCE ( + 63, + 51 + + CAST ( NULL AS INTEGER ) )
----
12923045

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8521
SELECT + + NULLIF ( 38, 23 ) * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8521
SELECT + + NULLIF ( 38, 23 ) * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT - - 9 * + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8522
SELECT - - 9 * + COUNT ( * ) AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8523
SELECT + ( + MIN( + CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT + ( + MIN ( + CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8524
SELECT + MAX( - + 15 ) + + COUNT( DISTINCT + + CAST( NULL AS DECIMAL ) ) + - NULLIF ( - 46, + 84 - + + 4 ) + 65
----
96

skipif mysql # not compatible
query I rowsort label-8524
SELECT + MAX ( - + 15 ) + + COUNT ( DISTINCT + + CAST ( NULL AS REAL ) ) + - NULLIF ( - 46, + 84 - + + 4 ) + 65
----
96

query I rowsort
SELECT ALL - 59 - + 49 * + - 69 + 6 + + 32 AS col0
----
3360

query I rowsort
SELECT + 3 * + 96
----
288

query I rowsort
SELECT DISTINCT + + 25 * + 98
----
2450

query I rowsort
SELECT + 60 + - 8 AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8529
SELECT - 30 DIV + + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8529
SELECT - 30 / + + 81 AS col1
----
0

query II rowsort
SELECT ALL 99 * + + 95 * 51 col2, - NULLIF ( - - 13, + 95 ) AS col0
----
479655
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT - + 82 + - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-8531
SELECT - + 82 + - COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT + COUNT( * ) * + - 92
----
-92

skipif mysql # not compatible
query I rowsort label-8532
SELECT + COUNT ( * ) * + - 92
----
-92

query I rowsort
SELECT - 14 + 22
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT ALL + 84 * - + COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL + 84 * - + COUNT ( * ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT - ( + MIN( DISTINCT - 11 ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8535
SELECT - ( + MIN ( DISTINCT - 11 ) ) AS col1
----
11

query I rowsort
SELECT DISTINCT 49 * - 14
----
-686

query I rowsort
SELECT - 78 * 76 AS col0
----
-5928

query I rowsort
SELECT ALL 84 * - - 70 * - 37
----
-217560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8539
SELECT ALL + COUNT( * ) DIV + - 6 * + 20 + + 12 AS col1, + 4 + + ( - 76 ) + + 46 * COUNT( * ) + 91 + + 67 DIV CAST( NULL AS SIGNED ) + + - 41 + 41 + - 55 * - 44 * - CASE - 28 WHEN 95 THEN 1 DIV 67 + + + 35 WHEN + 79 THEN NULL END
----
12
NULL

skipif mysql # not compatible
query II rowsort label-8539
SELECT ALL + COUNT ( * ) / + - 6 * + 20 + + 12 AS col1, + 4 + + ( - 76 ) + + 46 * COUNT ( * ) + 91 + + 67 / CAST ( NULL AS INTEGER ) + + - 41 + 41 + - 55 * - 44 * - CASE - 28 WHEN 95 THEN 1 / 67 + + + 35 WHEN + 79 THEN NULL END
----
12
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT + ( + - CAST( NULL AS SIGNED ) ) * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT + ( + - CAST ( NULL AS INTEGER ) ) * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT + 1 + - + ( + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-8541
SELECT + 1 + - + ( + COUNT ( * ) )
----
0

query I rowsort
SELECT ( - + ( + 50 ) ) col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8543
SELECT ALL - ( - 54 ) / - - 82 + 58 + CAST( NULL AS SIGNED ) + 98 * - - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL - ( - 54 ) / - - 82 + 58 + CAST ( NULL AS INTEGER ) + 98 * - - 25
----
NULL

query I rowsort
SELECT ( + + 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT - COUNT( * ) * + - MIN( ALL 93 )
----
93

skipif mysql # not compatible
query I rowsort label-8545
SELECT - COUNT ( * ) * + - MIN ( ALL 93 )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8546
SELECT ALL - 84 * + 51 + 22 + + + ( + + 97 ) - + - 81 DIV + 65 AS col1
----
-4164

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL - 84 * + 51 + 22 + + + ( + + 97 ) - + - 81 / + 65 AS col1
----
-4164

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT - 12 - 12 DIV - 52
----
-12

skipif mysql # not compatible
query I rowsort label-8547
SELECT - 12 - 12 / - 52
----
-12

query I rowsort
SELECT DISTINCT + 12 * + 5
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT DISTINCT - SUM( + 56 ) * - 0 + + - 74 + - + 18 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT - SUM ( + 56 ) * - 0 + + - 74 + - + 18 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT DISTINCT + MAX( DISTINCT + 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT + MAX ( DISTINCT + 0 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8551
SELECT + CASE - MAX( - 47 ) WHEN 20 + + + COUNT( * ) * CASE - COALESCE ( + CASE - + 81 WHEN - - SUM( ALL + + 84 ) - NULLIF ( - 90, + AVG ( ALL + ( + 21 ) ) * + + 9 ) + 0 * + 38 * - 70 * + 9 * + 67 + + + 90 THEN NULL ELSE 61 + + + COUNT( * ) END, - 44, - 63 * - + 93 / - 19 - - + CASE + 68 WHEN - 8 THEN NULL WHEN - + COUNT( * ) THEN + 72 ELSE NULL END ) WHEN + - 94 THEN NULL ELSE + NULLIF ( + + 1, + - 94 ) * - CAST( NULL AS SIGNED ) END THEN - COALESCE ( - 63, - - CASE - ( + 94 ) WHEN + COUNT( * ) THEN ( + 12 ) * + 23 END, 1 ) WHEN MAX( + 64 ) / + 69 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT + CASE - MAX ( - 47 ) WHEN 20 + + + COUNT ( * ) * CASE - COALESCE ( + CASE - + 81 WHEN - - SUM ( ALL + + 84 ) - NULLIF ( - 90, + AVG ( ALL + ( + 21 ) ) * + + 9 ) + 0 * + 38 * - 70 * + 9 * + 67 + + + 90 THEN NULL ELSE 61 + + + COUNT ( * ) END, - 44, - 63 * - + 93 / - 19 - - + CASE + 68 WHEN - 8 THEN NULL WHEN - + COUNT ( * ) THEN + 72 ELSE NULL END ) WHEN + - 94 THEN NULL ELSE + NULLIF ( + + 1, + - 94 ) * - CAST ( NULL AS INTEGER ) END THEN - COALESCE ( - 63, - - CASE - ( + 94 ) WHEN + COUNT ( * ) THEN ( + 12 ) * + 23 END, 1 ) WHEN MAX ( + 64 ) / + 69 THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT 10 * - ( - + 69 ) + - ( - - 82 ) + + MAX( - 37 ) col2
----
571

skipif mysql # not compatible
query I rowsort label-8552
SELECT 10 * - ( - + 69 ) + - ( - - 82 ) + + MAX ( - 37 ) col2
----
571

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT - + 35 + ( - COUNT( * ) )
----
-36

skipif mysql # not compatible
query I rowsort label-8553
SELECT - + 35 + ( - COUNT ( * ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ALL 99 * COUNT( * ) - + + 38 - - - 22 + - + 67 * - - 81 - 95 AS col0
----
-5483

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL 99 * COUNT ( * ) - + + 38 - - - 22 + - + 67 * - - 81 - 95 AS col0
----
-5483

query I rowsort
SELECT - - 60 + + ( - - 54 )
----
114

query II rowsort
SELECT + ( - 73 ) AS col2, 80 AS col0
----
-73
80

query I rowsort
SELECT - + 44 + + 76 AS col0
----
32

query I rowsort
SELECT - 64 + + 51 + + 64
----
51

query I rowsort
SELECT ALL 4 * + NULLIF ( - + 15, + 37 * + 24 * - + 44 ) AS col0
----
-60

query II rowsort
SELECT DISTINCT + + 57 * - 21 AS col2, 83
----
-1197
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT + - 3 * 46 + - 78 * - - SUM( DISTINCT - + 72 )
----
5478

skipif mysql # not compatible
query I rowsort label-8561
SELECT + - 3 * 46 + - 78 * - - SUM ( DISTINCT - + 72 )
----
5478

query I rowsort
SELECT + + 28 + + + 37 col1
----
65

query I rowsort
SELECT + - 53 + + + 24 AS col1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8564
SELECT ALL NULLIF ( + + 52, - + CASE 95 WHEN 69 * - CAST( 92 AS DECIMAL ) * 32 * + 21 - 27 THEN - COUNT( * ) ELSE - 86 END ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL NULLIF ( + + 52, - + CASE 95 WHEN 69 * - CAST ( 92 AS REAL ) * 32 * + 21 - 27 THEN - COUNT ( * ) ELSE - 86 END ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-8565
SELECT + + NULLIF ( - COUNT( * ), + 97 ) * - 64, 39 AS col2
----
64
39

skipif mysql # not compatible
query II rowsort label-8565
SELECT + + NULLIF ( - COUNT ( * ), + 97 ) * - 64, 39 AS col2
----
64
39

query I rowsort
SELECT + 37 * 16
----
592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8567
SELECT + + 78 + + - CAST( NULL AS SIGNED ), COUNT( * ) + - - 15 + - 97 AS col2
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-8567
SELECT + + 78 + + - CAST ( NULL AS INTEGER ), COUNT ( * ) + - - 15 + - 97 AS col2
----
NULL
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8568
SELECT ALL + CAST( - + 15 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL + CAST ( - + 15 AS INTEGER )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8569
SELECT ALL 72 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL 72 / - 62
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-8570
SELECT + 78 * - ( 51 ) AS col2, - 21 DIV - 94
----
-3978
0

skipif mysql # not compatible
query II rowsort label-8570
SELECT + 78 * - ( 51 ) AS col2, - 21 / - 94
----
-3978
0

query I rowsort
SELECT ALL 84 + + 9 + 89 * + 14 AS col1
----
1339

onlyif mysql # DIV for integer division: 
query I rowsort label-8572
SELECT DISTINCT 2 DIV 64 * 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT 2 / 64 * 14 AS col2
----
0

query I rowsort
SELECT ALL - 98 * - 84
----
8232

query I rowsort
SELECT ALL 36 + + 38 AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8575
SELECT 92 + + + 54 * + 82, CAST( - 24 AS SIGNED ) AS col0
----
4520
-24

skipif mysql # not compatible
query II rowsort label-8575
SELECT 92 + + + 54 * + 82, CAST ( - 24 AS INTEGER ) AS col0
----
4520
-24

query I rowsort
SELECT 27 - - + 39
----
66

query I rowsort
SELECT ALL 89 * + + 15
----
1335

onlyif mysql # DIV for integer division: 
query I rowsort label-8578
SELECT 53 DIV 82 + - 33 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-8578
SELECT 53 / 82 + - 33 AS col2
----
-33

query II rowsort
SELECT 88 AS col2, + 19 + - 38 AS col0
----
88
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT ALL CASE + + COUNT( + - ( + 60 ) ) WHEN - 82 * + - 65 THEN NULL WHEN + - NULLIF ( + 61, + 71 ) - + - MAX( + - 49 ) THEN NULL WHEN 37 * ( 56 ) + + + COUNT( * ) + + - MAX( ALL 80 ) * - - 79 THEN - 96 * + + 60 * - 57 END * - 0 + - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL CASE + + COUNT ( + - ( + 60 ) ) WHEN - 82 * + - 65 THEN NULL WHEN + - NULLIF ( + 61, + 71 ) - + - MAX ( + - 49 ) THEN NULL WHEN 37 * ( 56 ) + + + COUNT ( * ) + + - MAX ( ALL 80 ) * - - 79 THEN - 96 * + + 60 * - 57 END * - 0 + - 68 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT ALL + CAST( NULL AS SIGNED ) + + + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 77 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8582
SELECT CAST( NULL AS DECIMAL ) + - - NULLIF ( - + 81, - - 48 + 96 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8582
SELECT CAST ( NULL AS REAL ) + - - NULLIF ( - + 81, - - 48 + 96 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8583
SELECT 26 * - COALESCE ( - 76, - COALESCE ( - + CASE + - 47 WHEN + 46 * + + COUNT( * ) * 75 * - - 0 THEN - 37 ELSE NULL END, + - 21 ) * + ( + 47 ) * + ( - 20 ), - + SUM( ALL - 49 ), - - 25 ) + + 64 AS col0, + ( - MAX( + 68 ) ) * + 85
----
2040
-5780

skipif mysql # not compatible
query II rowsort label-8583
SELECT 26 * - COALESCE ( - 76, - COALESCE ( - + CASE + - 47 WHEN + 46 * + + COUNT ( * ) * 75 * - - 0 THEN - 37 ELSE NULL END, + - 21 ) * + ( + 47 ) * + ( - 20 ), - + SUM ( ALL - 49 ), - - 25 ) + + 64 AS col0, + ( - MAX ( + 68 ) ) * + 85
----
2040
-5780

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL 70 + + COUNT( * ) + + 84 * + + 75 * 84 - + 59 + - 17
----
529195

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL 70 + + COUNT ( * ) + + 84 * + + 75 * 84 - + 59 + - 17
----
529195

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT ALL - MAX( - + 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL - MAX ( - + 35 ) AS col1
----
35

query I rowsort
SELECT ALL + 90 - 4
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8587
SELECT 52 * + - CAST( NULL AS SIGNED ) * + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8587
SELECT 52 * + - CAST ( NULL AS INTEGER ) * + 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT DISTINCT + + COUNT( * ) - - - 95 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT + + COUNT ( * ) - - - 95 AS col2
----
-94

query I rowsort
SELECT 39 * + - 64
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT COUNT( DISTINCT + 62 ) + + 68 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8590
SELECT COUNT ( DISTINCT + 62 ) + + 68 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT - COUNT( * ) * 68 col0
----
-68

skipif mysql # not compatible
query I rowsort label-8591
SELECT - COUNT ( * ) * 68 col0
----
-68

query I rowsort
SELECT + - ( + 39 ) AS col1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8593
SELECT + CAST( + 38 AS SIGNED ) * + 88 + + + 84
----
3428

skipif mysql # not compatible
query I rowsort label-8593
SELECT + CAST ( + 38 AS INTEGER ) * + 88 + + + 84
----
3428

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT DISTINCT - NULLIF ( + 47, - 95 ) * + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-8594
SELECT DISTINCT - NULLIF ( + 47, - 95 ) * + COUNT ( * )
----
-47

query I rowsort
SELECT 18 * 19
----
342

onlyif mysql # DIV for integer division: 
query I rowsort label-8596
SELECT ALL 9 DIV 39 col0
----
0

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL 9 / 39 col0
----
0

query I rowsort
SELECT ALL - 3 * + 5 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT ALL - + 67 - ( + + 95 ) * - - COUNT( * ) AS col2
----
-162

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL - + 67 - ( + + 95 ) * - - COUNT ( * ) AS col2
----
-162

query I rowsort
SELECT DISTINCT - 59 * 49
----
-2891

query I rowsort
SELECT DISTINCT + + 54 * + 84 col2
----
4536

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT - COALESCE ( + MIN( DISTINCT + 21 ), 74 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8601
SELECT - COALESCE ( + MIN ( DISTINCT + 21 ), 74 ) AS col1
----
-21

query I rowsort
SELECT - 38 * NULLIF ( 84, - + 61 ) * + 17 * 62
----
-3364368

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT ( + - COUNT( * ) ) * - 11 * 66 * 6
----
4356

skipif mysql # not compatible
query I rowsort label-8603
SELECT ( + - COUNT ( * ) ) * - 11 * 66 * 6
----
4356

onlyif mysql # DIV for integer division: 
query I rowsort label-8604
SELECT ALL - 77 DIV + 73
----
-1

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL - 77 / + 73
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8605
SELECT - 51 DIV + - 27 + - NULLIF ( + 56, - + CAST( NULL AS SIGNED ) ) * + - 7
----
393

skipif mysql # not compatible
query I rowsort label-8605
SELECT - 51 / + - 27 + - NULLIF ( + 56, - + CAST ( NULL AS INTEGER ) ) * + - 7
----
393

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8606
SELECT - - NULLIF ( + 59, + - CAST( + + AVG ( + - 47 ) AS SIGNED ) )
----
59

skipif mysql # not compatible
query I rowsort label-8606
SELECT - - NULLIF ( + 59, + - CAST ( + + AVG ( + - 47 ) AS INTEGER ) )
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8607
SELECT ALL CAST( NULL AS DECIMAL ) + - MAX( - 56 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT ALL CAST ( NULL AS REAL ) + - MAX ( - 56 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT ALL 9 + - COUNT( 36 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL 9 + - COUNT ( 36 ) AS col1
----
8

query I rowsort
SELECT - 78 - + - NULLIF ( + 91, + ( + - 48 ) ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT NULLIF ( 29, - ( - 64 ) ) * - 22 + COUNT( * ) AS col1
----
-637

skipif mysql # not compatible
query I rowsort label-8610
SELECT NULLIF ( 29, - ( - 64 ) ) * - 22 + COUNT ( * ) AS col1
----
-637

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8611
SELECT ALL - 66 + + COALESCE ( 75, 21 + + + MAX( DISTINCT ( + 44 ) ) ) * + CAST( NULL AS DECIMAL ) + CASE - CASE - CAST( + 74 AS SIGNED ) WHEN + 87 THEN + - COUNT( * ) END WHEN + + 9 / 43 * - - CASE - 8 WHEN + + 69 - + CAST( NULL AS SIGNED ) * + 16 THEN - + COUNT( * ) WHEN + 52 + 18 + 81 THEN - - 67 + + - 26 ELSE NULL END / ( 65 ) + + 30 - - CAST( - COALESCE ( + 32, + 51 ) AS SIGNED ) + + 44 / + - 33 / - + 98 * - ( + - 69 ) * + - ( ( - - COUNT( * ) ) ) THEN - 25 ELSE 68 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL - 66 + + COALESCE ( 75, 21 + + + MAX ( DISTINCT ( + 44 ) ) ) * + CAST ( NULL AS REAL ) + CASE - CASE - CAST ( + 74 AS INTEGER ) WHEN + 87 THEN + - COUNT ( * ) END WHEN + + 9 / 43 * - - CASE - 8 WHEN + + 69 - + CAST ( NULL AS INTEGER ) * + 16 THEN - + COUNT ( * ) WHEN + 52 + 18 + 81 THEN - - 67 + + - 26 ELSE NULL END / ( 65 ) + + 30 - - CAST ( - COALESCE ( + 32, + 51 ) AS INTEGER ) + + 44 / + - 33 / - + 98 * - ( + - 69 ) * + - ( ( - - COUNT ( * ) ) ) THEN - 25 ELSE 68 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ALL COALESCE ( 8, - 62 ) + ( + - COUNT( * ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL COALESCE ( 8, - 62 ) + ( + - COUNT ( * ) ) AS col2
----
7

query II rowsort
SELECT - 58 AS col0, 69 - + 91 AS col1
----
-58
-22

query I rowsort
SELECT 37 + - 80 AS col1
----
-43

query I rowsort
SELECT DISTINCT 30 + + 95
----
125

query II rowsort
SELECT - 67, - 31 + + ( - 60 ) AS col1
----
-67
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8617
SELECT 20 * + - 99 DIV - 49 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8617
SELECT 20 * + - 99 / - 49 AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8618
SELECT ALL 24 col1, - SUM( - - NULLIF ( 10, 46 * - 4 ) ) DIV - 43 * - 79 AS col2
----
24
0

skipif mysql # not compatible
query II rowsort label-8618
SELECT ALL 24 col1, - SUM ( - - NULLIF ( 10, 46 * - 4 ) ) / - 43 * - 79 AS col2
----
24
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8619
SELECT 27 DIV + 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8619
SELECT 27 / + 73 AS col0
----
0

query II rowsort
SELECT DISTINCT 77 - + 55, 12 AS col1
----
22
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8621
SELECT ALL COUNT( * ) DIV + 40
----
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL COUNT ( * ) / + 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT COUNT( + COALESCE ( 29, - + 96 * + 59 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8622
SELECT COUNT ( + COALESCE ( 29, - + 96 * + 59 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT + MIN( - - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-8623
SELECT + MIN ( - - 39 )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8624
SELECT + 90, 59 + - + 22 * - COUNT( * ) AS col2
----
90
81

skipif mysql # not compatible
query II rowsort label-8624
SELECT + 90, 59 + - + 22 * - COUNT ( * ) AS col2
----
90
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8625
SELECT COUNT( * ) * 15 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-8625
SELECT COUNT ( * ) * 15 / + 99
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8626
SELECT ALL 41 * - 84 * - - COUNT( - 9 ) + - CASE + 45 WHEN 99 THEN + 51 * - - 37 / 46 * ( COUNT( ALL + 13 ) ) + + 64 END + ( + COALESCE ( - CASE + - 43 WHEN - ( + 11 ) THEN - 54 WHEN + 34 THEN NULL END, - 57, 59 * + 7 + - COUNT( * ) ) ) * 70 / + CAST( - 89 AS SIGNED ) / + CAST( NULL AS SIGNED ) + + - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL 41 * - 84 * - - COUNT ( - 9 ) + - CASE + 45 WHEN 99 THEN + 51 * - - 37 / 46 * ( COUNT ( ALL + 13 ) ) + + 64 END + ( + COALESCE ( - CASE + - 43 WHEN - ( + 11 ) THEN - 54 WHEN + 34 THEN NULL END, - 57, 59 * + 7 + - COUNT ( * ) ) ) * 70 / + CAST ( - 89 AS INTEGER ) / + CAST ( NULL AS INTEGER ) + + - 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8627
SELECT DISTINCT - + 45 col0, - MIN( ALL 23 )
----
-45
-23

skipif mysql # not compatible
query II rowsort label-8627
SELECT DISTINCT - + 45 col0, - MIN ( ALL 23 )
----
-45
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT + NULLIF ( + 95, - + 89 ) - + MAX( ALL + + 61 ) + 37 + - - 38
----
109

skipif mysql # not compatible
query I rowsort label-8628
SELECT + NULLIF ( + 95, - + 89 ) - + MAX ( ALL + + 61 ) + 37 + - - 38
----
109

query III rowsort
SELECT + - 87, + 80 AS col0, - + 50 AS col2
----
-87
80
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT DISTINCT 98 * + - MIN( DISTINCT + ( - 77 ) )
----
7546

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT 98 * + - MIN ( DISTINCT + ( - 77 ) )
----
7546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8631
SELECT ALL COUNT( * ) * + + 43 DIV + + 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL COUNT ( * ) * + + 43 / + + 59 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8632
SELECT DISTINCT - 36 AS col2, 89 + + + 71 * - COUNT( * )
----
-36
18

skipif mysql # not compatible
query II rowsort label-8632
SELECT DISTINCT - 36 AS col2, 89 + + + 71 * - COUNT ( * )
----
-36
18

query I rowsort
SELECT 95 * - 79 AS col0
----
-7505

query II rowsort
SELECT ALL - 54, 86 - - 22 AS col0
----
-54
108

query I rowsort
SELECT CASE + + 99 WHEN - 79 THEN + 81 * + 20 END * 62 / - ( 26 ) * - + 41 * + 25
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8636
SELECT - 56 * 84 DIV + 53 + + 66, 56 AS col0
----
-22
56

skipif mysql # not compatible
query II rowsort label-8636
SELECT - 56 * 84 / + 53 + + 66, 56 AS col0
----
-22
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT - COUNT( * ) + - 97 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-8637
SELECT - COUNT ( * ) + - 97 AS col0
----
-98

query II rowsort
SELECT + - 33 AS col1, - 15
----
-33
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT DISTINCT - + SUM( + 56 ) * + COUNT( * ) * - - ( + 74 ) col1
----
-4144

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT - + SUM ( + 56 ) * + COUNT ( * ) * - - ( + 74 ) col1
----
-4144

query I rowsort
SELECT 36 + - + 79 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT + MAX( DISTINCT - 21 ) * COUNT( * ) + 81
----
60

skipif mysql # not compatible
query I rowsort label-8641
SELECT + MAX ( DISTINCT - 21 ) * COUNT ( * ) + 81
----
60

query I rowsort
SELECT ALL + ( + + 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT DISTINCT 37 * + + MAX( ALL + 54 ) AS col0
----
1998

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT 37 * + + MAX ( ALL + 54 ) AS col0
----
1998

onlyif mysql # aggregate syntax: 
query II rowsort label-8644
SELECT ALL - COUNT( * ) + 92, + 53 * + 7 AS col2
----
91
371

skipif mysql # not compatible
query II rowsort label-8644
SELECT ALL - COUNT ( * ) + 92, + 53 * + 7 AS col2
----
91
371

query I rowsort
SELECT ALL + ( 31 ) + + - 64
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8646
SELECT - 7 + + CAST( + 2 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-8646
SELECT - 7 + + CAST ( + 2 AS INTEGER )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8647
SELECT ALL SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 78 * + 48 * 4
----
-14976

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL COALESCE ( - - COUNT( * ), - + 63 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL COALESCE ( - - COUNT ( * ), - + 63 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT DISTINCT - 53 + + 13 + COUNT( * ) - - - CASE + 28 WHEN - 64 THEN 4 WHEN - COUNT( ALL - 81 ) + - - 12 THEN + 7 + + 54 ELSE NULL END - 95 / 59 * - NULLIF ( 33, - 3 ) / + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT - 53 + + 13 + COUNT ( * ) - - - CASE + 28 WHEN - 64 THEN 4 WHEN - COUNT ( ALL - 81 ) + - - 12 THEN + 7 + + 54 ELSE NULL END - 95 / 59 * - NULLIF ( 33, - 3 ) / + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT DISTINCT SUM( 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT SUM ( 20 ) AS col2
----
20

query I rowsort
SELECT DISTINCT 77 - - + 74
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-8653
SELECT DISTINCT COALESCE ( - ( - 70 ), + - 99 DIV + 85, - 92 + + - ( 95 ) )
----
70

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT COALESCE ( - ( - 70 ), + - 99 / + 85, - 92 + + - ( 95 ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL - 8 - + COUNT( * ) * + - 78 col1
----
70

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL - 8 - + COUNT ( * ) * + - 78 col1
----
70

query I rowsort
SELECT - 12 * + 87
----
-1044

query I rowsort
SELECT + 18 * 99 AS col0
----
1782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8657
SELECT + ( - 35 ) + + COUNT( * ) DIV - + 20 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8657
SELECT + ( - 35 ) + + COUNT ( * ) / - + 20 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT - COALESCE ( + COUNT( * ), - SUM( ALL - 70 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8658
SELECT - COALESCE ( + COUNT ( * ), - SUM ( ALL - 70 ) )
----
-1

query II rowsort
SELECT - 82 * 79 col2, - 85 * + 70
----
-6478
-5950

onlyif mysql # aggregate syntax: 
query II rowsort label-8660
SELECT + + 56 + 31 AS col1, 55 - - COUNT( * )
----
87
56

skipif mysql # not compatible
query II rowsort label-8660
SELECT + + 56 + 31 AS col1, 55 - - COUNT ( * )
----
87
56

query I rowsort
SELECT DISTINCT + - ( 99 )
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8662
SELECT + 8 * - + 91 + - + 13 AS col1, NULLIF ( - - 98, + COALESCE ( - CAST( - 57 AS SIGNED ), - 15, + + 3, + ( - COUNT( * ) ) ) * + 85 ) AS col0
----
-741
98

skipif mysql # not compatible
query II rowsort label-8662
SELECT + 8 * - + 91 + - + 13 AS col1, NULLIF ( - - 98, + COALESCE ( - CAST ( - 57 AS INTEGER ), - 15, + + 3, + ( - COUNT ( * ) ) ) * + 85 ) AS col0
----
-741
98

query I rowsort
SELECT ALL 70 * + - 56 AS col2
----
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT + SUM( + 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8664
SELECT + SUM ( + 65 ) AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8665
SELECT ALL 12 * COUNT( * ) + + - CAST( NULL AS SIGNED ) * - ( - + 46 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL 12 * COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * - ( - + 46 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT DISTINCT + 43 DIV + - 75 + 3 + + 87 * + - 38 * - - 23 col0
----
-76035

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT + 43 / + - 75 + 3 + + 87 * + - 38 * - - 23 col0
----
-76035

query I rowsort
SELECT + 97 * + 66
----
6402

query I rowsort
SELECT + 80 + 26
----
106

onlyif mysql # DIV for integer division: 
query II rowsort label-8669
SELECT + 24 DIV - - 78, 59 AS col1
----
0
59

skipif mysql # not compatible
query II rowsort label-8669
SELECT + 24 / - - 78, 59 AS col1
----
0
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8670
SELECT ALL + + 9 * - 70 + + 18 + - MAX( ALL + 93 ) * + COUNT( * ) + 4 AS col0, - 4 * - CAST( NULL AS SIGNED ) AS col2
----
-701
NULL

skipif mysql # not compatible
query II rowsort label-8670
SELECT ALL + + 9 * - 70 + + 18 + - MAX ( ALL + 93 ) * + COUNT ( * ) + 4 AS col0, - 4 * - CAST ( NULL AS INTEGER ) AS col2
----
-701
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8671
SELECT ALL + 49 * + 94 AS col0, COUNT( * ) AS col1
----
4606
1

skipif mysql # not compatible
query II rowsort label-8671
SELECT ALL + 49 * + 94 AS col0, COUNT ( * ) AS col1
----
4606
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT DISTINCT - COALESCE ( ( + + CASE + AVG ( DISTINCT + ( 40 ) ) WHEN - ( - 62 ) * 87 + - 65 THEN + + MAX( DISTINCT - 7 ) + - 48 ELSE NULL END ), - 66 + + ( 81 ) * 1 * - 76 ) * + + 72 * 13 * 72 + - - 21 * - 82 AS col2
----
419311302

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT - COALESCE ( ( + + CASE + AVG ( DISTINCT + ( 40 ) ) WHEN - ( - 62 ) * 87 + - 65 THEN + + MAX ( DISTINCT - 7 ) + - 48 ELSE NULL END ), - 66 + + ( 81 ) * 1 * - 76 ) * + + 72 * 13 * 72 + - - 21 * - 82 AS col2
----
419311302

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT + COUNT( * ) - + CASE - 43 WHEN + - 68 * + - 3 * + 46 * + 69 THEN ( + 60 ) * - 89 / - 67 WHEN - - 14 * - 27 * + - 14 * 29 + + 77 THEN - 90 * ( 34 ) WHEN - - 95 THEN - 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT + COUNT ( * ) - + CASE - 43 WHEN + - 68 * + - 3 * + 46 * + 69 THEN ( + 60 ) * - 89 / - 67 WHEN - - 14 * - 27 * + - 14 * 29 + + 77 THEN - 90 * ( 34 ) WHEN - - 95 THEN - 40 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT COUNT( ALL 13 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8674
SELECT COUNT ( ALL 13 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT DISTINCT SUM( ALL + 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT SUM ( ALL + 97 ) AS col0
----
97

query I rowsort
SELECT - ( + - 1 ) AS col1
----
1

query I rowsort
SELECT DISTINCT COALESCE ( - - 99, - ( + 56 ) * + + 84, - 41 ) AS col0
----
99

query I rowsort
SELECT DISTINCT + 94 * - 76 AS col0
----
-7144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8679
SELECT - 48 - - + 54 * + CAST( + + 96 AS SIGNED )
----
5136

skipif mysql # not compatible
query I rowsort label-8679
SELECT - 48 - - + 54 * + CAST ( + + 96 AS INTEGER )
----
5136

query I rowsort
SELECT ALL + 67 * 58
----
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8681
SELECT DISTINCT CASE + 13 WHEN - + 66 + - 78 + - CAST( NULL AS SIGNED ) - - - 40 * COUNT( * ) THEN NULL WHEN + 9 THEN + 49 * - + 11 ELSE 92 * - - 30 + + COUNT( DISTINCT + - 35 ) + + 9 + - 72 END * 7 + + + 79
----
18965

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT CASE + 13 WHEN - + 66 + - 78 + - CAST ( NULL AS INTEGER ) - - - 40 * COUNT ( * ) THEN NULL WHEN + 9 THEN + 49 * - + 11 ELSE 92 * - - 30 + + COUNT ( DISTINCT + - 35 ) + + 9 + - 72 END * 7 + + + 79
----
18965

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL COALESCE ( - - 10, 22 + - COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL COALESCE ( - - 10, 22 + - COUNT ( * ) )
----
10

query I rowsort
SELECT + 12 + 17 AS col1
----
29

query I rowsort
SELECT + 30 * 7 * + 76 * - - 64 AS col0
----
1021440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8685
SELECT - COALESCE ( - 9, COUNT( * ) ) + 46 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT - COALESCE ( - 9, COUNT ( * ) ) + 46 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 12 + + 18
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT - ( 14 ) - + + COUNT( + 91 )
----
-15

skipif mysql # not compatible
query I rowsort label-8687
SELECT - ( 14 ) - + + COUNT ( + 91 )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8688
SELECT ALL + 32 DIV + 58 * - + MIN( + 6 ) * - - 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL + 32 / + 58 * - + MIN ( + 6 ) * - - 72 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT DISTINCT CASE - + 57 WHEN - 57 THEN 16 WHEN - SUM( DISTINCT - - 21 ) THEN NULL ELSE NULL END AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT CASE - + 57 WHEN - 57 THEN 16 WHEN - SUM ( DISTINCT - - 21 ) THEN NULL ELSE NULL END AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8690
SELECT ALL COALESCE ( + - 77, - NULLIF ( MAX( ALL - - 7 ), + 44 ) * - + 37 + 89 + + + CASE 83 WHEN - 87 THEN 2 DIV + 37 * 89 ELSE 13 END, + 1 + - + 79 )
----
-77

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL COALESCE ( + - 77, - NULLIF ( MAX ( ALL - - 7 ), + 44 ) * - + 37 + 89 + + + CASE 83 WHEN - 87 THEN 2 / + 37 * 89 ELSE 13 END, + 1 + - + 79 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT DISTINCT + COALESCE ( - COALESCE ( 28, - - 62, - 38 + COUNT( * ) * - 68 ), - + 73 * 75 - - 90 )
----
-28

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT + COALESCE ( - COALESCE ( 28, - - 62, - 38 + COUNT ( * ) * - 68 ), - + 73 * 75 - - 90 )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8692
SELECT ALL 59 * + 47 - + 30 AS col0, NULLIF ( + 56, - ( CAST( NULL AS SIGNED ) ) )
----
2743
56

skipif mysql # not compatible
query II rowsort label-8692
SELECT ALL 59 * + 47 - + 30 AS col0, NULLIF ( + 56, - ( CAST ( NULL AS INTEGER ) ) )
----
2743
56

query I rowsort
SELECT - 28 * ( - 97 ) * - - 27
----
73332

query I rowsort
SELECT + 64 * - 2 - + CASE - 18 WHEN + NULLIF ( - 99, - 61 ) + + 32 / - 93 * - 6 THEN NULL ELSE 46 - - + 1 END AS col2
----
-175

query I rowsort
SELECT - ( - - COALESCE ( - 90, + - 12 ) )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8696
SELECT ( + + 18 ) DIV - ( + 65 ) + 58 + - 25 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8696
SELECT ( + + 18 ) / - ( + 65 ) + 58 + - 25 AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8697
SELECT ALL + 81 * + + 13 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + 81 * + + 13 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8698
SELECT ALL + CAST( + + COALESCE ( - + 42, - 89 ) AS SIGNED ) DIV 15 + + 81 * 39 + - 6 DIV 57
----
3157

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL + CAST ( + + COALESCE ( - + 42, - 89 ) AS INTEGER ) / 15 + + 81 * 39 + - 6 / 57
----
3157

query II rowsort
SELECT 84 * - + 5 - + 73 AS col2, - 56 - + 57
----
-493
-113

query I rowsort
SELECT + ( + - 72 ) AS col2
----
-72

query I rowsort
SELECT ALL + + 6 * ( - 56 ) AS col2
----
-336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8702
SELECT + - 21 * MIN( + - 90 ) - - - 3 - + - 54 DIV 93 - + + 2 * + 8 + - COALESCE ( - 85, - 21 * + 88 + 29 * - + CAST( NULL AS SIGNED ), 58 * + - COUNT( * ), 10 ) * 97 AS col0
----
10116

skipif mysql # not compatible
query I rowsort label-8702
SELECT + - 21 * MIN ( + - 90 ) - - - 3 - + - 54 / 93 - + + 2 * + 8 + - COALESCE ( - 85, - 21 * + 88 + 29 * - + CAST ( NULL AS INTEGER ), 58 * + - COUNT ( * ), 10 ) * 97 AS col0
----
10116

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8703
SELECT ALL + - 70 AS col0, + CAST( NULL AS SIGNED ) + 92 AS col2
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-8703
SELECT ALL + - 70 AS col0, + CAST ( NULL AS INTEGER ) + 92 AS col2
----
-70
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8704
SELECT + + COUNT( * ) AS col1, 54
----
1
54

skipif mysql # not compatible
query II rowsort label-8704
SELECT + + COUNT ( * ) AS col1, 54
----
1
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8705
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, 61 + - 32 - + 13
----
NULL
16

skipif mysql # not compatible
query II rowsort label-8705
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, 61 + - 32 - + 13
----
NULL
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8706
SELECT + CASE COUNT( * ) WHEN CASE COUNT( * ) WHEN + + 49 * + - MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) THEN + CAST( NULL AS SIGNED ) ELSE - - 33 END * + MAX( + + 16 ) * ( + - MIN( ALL + 47 ) ) * - MAX( DISTINCT - 72 ) * COALESCE ( 59, - 60 / + 1, - 8 * - - ( 63 ) + + + COUNT( * ) ) + + + COUNT( * ) + 62 + + ( 27 ) THEN - 1 END * + 31 + 64 + + 18 - + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT + CASE COUNT ( * ) WHEN CASE COUNT ( * ) WHEN + + 49 * + - MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) THEN + CAST ( NULL AS INTEGER ) ELSE - - 33 END * + MAX ( + + 16 ) * ( + - MIN ( ALL + 47 ) ) * - MAX ( DISTINCT - 72 ) * COALESCE ( 59, - 60 / + 1, - 8 * - - ( 63 ) + + + COUNT ( * ) ) + + + COUNT ( * ) + 62 + + ( 27 ) THEN - 1 END * + 31 + 64 + + 18 - + 59 AS col1
----
NULL

query I rowsort
SELECT 73 * - - 8 * + 92 col0
----
53728

onlyif mysql # DIV for integer division: 
query I rowsort label-8708
SELECT ALL - 37 DIV + 14 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL - 37 / + 14 AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8709
SELECT ALL - ( - CAST( 44 AS SIGNED ) )
----
44

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL - ( - CAST ( 44 AS INTEGER ) )
----
44

query I rowsort
SELECT ALL ( - + 47 ) * - + 9 * - + 64
----
-27072

query I rowsort
SELECT ( - - 4 ) * 74
----
296

onlyif mysql # aggregate syntax: 
query II rowsort label-8712
SELECT COUNT( * ) + - + 64 * 25 * SUM( - - 29 ) * - 18 + + 50 AS col0, + ( 99 ) * COUNT( * ) * - - 80
----
835251
7920

skipif mysql # not compatible
query II rowsort label-8712
SELECT COUNT ( * ) + - + 64 * 25 * SUM ( - - 29 ) * - 18 + + 50 AS col0, + ( 99 ) * COUNT ( * ) * - - 80
----
835251
7920

query I rowsort
SELECT 8 * ( + 0 ) + + - 19 + + ( 11 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT NULLIF ( - COUNT( * ), - 2 / + 96 * ( - 45 ) * MAX( ALL - 16 ) * + ( - 52 ) ) * + 17
----
-17

skipif mysql # not compatible
query I rowsort label-8714
SELECT NULLIF ( - COUNT ( * ), - 2 / + 96 * ( - 45 ) * MAX ( ALL - 16 ) * + ( - 52 ) ) * + 17
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT 26 + + - CASE 60 WHEN + COUNT( * ) THEN - + ( - - 88 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT 26 + + - CASE 60 WHEN + COUNT ( * ) THEN - + ( - - 88 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 71 * 26
----
1846

onlyif mysql # aggregate syntax: 
query II rowsort label-8717
SELECT 75 + + - 72 AS col2, - COUNT( * ) * + 25 + + 72 AS col2
----
3
47

skipif mysql # not compatible
query II rowsort label-8717
SELECT 75 + + - 72 AS col2, - COUNT ( * ) * + 25 + + 72 AS col2
----
3
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT DISTINCT COUNT( * ) + + + 35 + - + MAX( + 70 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT COUNT ( * ) + + + 35 + - + MAX ( + 70 ) AS col1
----
-34

query I rowsort
SELECT DISTINCT 99 * + 30 * - CASE + 2 WHEN 72 THEN + + 3 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8720
SELECT ALL 73 * + CAST( - - 37 AS SIGNED )
----
2701

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL 73 * + CAST ( - - 37 AS INTEGER )
----
2701

onlyif mysql # DIV for integer division: 
query I rowsort label-8721
SELECT + 13 DIV - 67 - - - 31 * + - 70 AS col0
----
2170

skipif mysql # not compatible
query I rowsort label-8721
SELECT + 13 / - 67 - - - 31 * + - 70 AS col0
----
2170

query I rowsort
SELECT 18 - + 16 * + 63
----
-990

onlyif mysql # aggregate syntax: 
query II rowsort label-8723
SELECT ALL + 85 + - 30 col1, + 23 * - + COUNT( * ) AS col0
----
55
-23

skipif mysql # not compatible
query II rowsort label-8723
SELECT ALL + 85 + - 30 col1, + 23 * - + COUNT ( * ) AS col0
----
55
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8724
SELECT ( + 44 ) + - 28 + + - COUNT( * ) + + + 64 + - - 21 * + - CAST( NULL AS SIGNED ) + + COUNT( * ) * + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT ( + 44 ) + - 28 + + - COUNT ( * ) + + + 64 + - - 21 * + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + - 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT - - NULLIF ( - 64, - COALESCE ( 42, + SUM( DISTINCT 66 ) * - COUNT( * ) * - 90 ) / - 85 + + 26 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-8725
SELECT - - NULLIF ( - 64, - COALESCE ( 42, + SUM ( DISTINCT 66 ) * - COUNT ( * ) * - 90 ) / - 85 + + 26 ) AS col2
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8726
SELECT + 79 DIV COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-8726
SELECT + 79 / COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8727
SELECT 39 + + 50 * - 48 - - - 15, - SUM( ALL - + 57 ) AS col2
----
-2376
57

skipif mysql # not compatible
query II rowsort label-8727
SELECT 39 + + 50 * - 48 - - - 15, - SUM ( ALL - + 57 ) AS col2
----
-2376
57

query II rowsort
SELECT ALL - 93 + - 7 AS col2, + 56 + 58
----
-100
114

query I rowsort
SELECT ALL + - 45 + - COALESCE ( - 16, 62 * + 16 + 44 * 28, + - 18 * + 49 ) - - 96 + + 33
----
100

query I rowsort
SELECT 88 * 75 + + 96
----
6696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8731
SELECT DISTINCT - + CAST( 79 AS SIGNED ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT - + CAST ( 79 AS INTEGER ) col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8732
SELECT DISTINCT - - 7 + COALESCE ( CASE - - 97 WHEN + 60 - - CAST( NULL AS SIGNED ) + - + 41 THEN NULL WHEN + 82 THEN + 75 + + 53 END, - 50 * ( COUNT( * ) ) + + 43 - - + COALESCE ( + NULLIF ( - COUNT( * ), + NULLIF ( 57, + ( 46 ) + 6 * + ( + - 50 ) * + 85 * - - 73 - - 54 ) ), 67, - 66, - NULLIF ( - MIN( + 48 ), - + ( - 18 ) * - 45 + - - 57 + - + 47 + - 25 + - - 53 * - 70 ) + + 21 ) ) / + - CASE MAX( 43 ) WHEN + 1 THEN NULL WHEN - 66 * - 44 - - 32 THEN COUNT( * ) END * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT - - 7 + COALESCE ( CASE - - 97 WHEN + 60 - - CAST ( NULL AS INTEGER ) + - + 41 THEN NULL WHEN + 82 THEN + 75 + + 53 END, - 50 * ( COUNT ( * ) ) + + 43 - - + COALESCE ( + NULLIF ( - COUNT ( * ), + NULLIF ( 57, + ( 46 ) + 6 * + ( + - 50 ) * + 85 * - - 73 - - 54 ) ), 67, - 66, - NULLIF ( - MIN ( + 48 ), - + ( - 18 ) * - 45 + - - 57 + - + 47 + - 25 + - - 53 * - 70 ) + + 21 ) ) / + - CASE MAX ( 43 ) WHEN + 1 THEN NULL WHEN - 66 * - 44 - - 32 THEN COUNT ( * ) END * 96
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8733
SELECT - COUNT( * ) DIV - + MIN( DISTINCT + - 93 ) + + + SUM( + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-8733
SELECT - COUNT ( * ) / - + MIN ( DISTINCT + - 93 ) + + + SUM ( + 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT ALL + 8 * + + COUNT( * ) + COUNT( ALL 23 ) + - 9 * + 87 AS col2
----
-774

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL + 8 * + + COUNT ( * ) + COUNT ( ALL 23 ) + - 9 * + 87 AS col2
----
-774

query I rowsort
SELECT 87 + - 67 * - 98 col2
----
6653

onlyif mysql # aggregate syntax: 
query II rowsort label-8736
SELECT - 78 + - 8 AS col2, COUNT( * ) AS col0
----
-86
1

skipif mysql # not compatible
query II rowsort label-8736
SELECT - 78 + - 8 AS col2, COUNT ( * ) AS col0
----
-86
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT ALL - + 65 - - 87 + - COUNT( * ) * - 3 * MIN( ALL + 84 ) col0
----
274

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL - + 65 - - 87 + - COUNT ( * ) * - 3 * MIN ( ALL + 84 ) col0
----
274

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT ALL - MAX( + 98 ) col0
----
-98

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL - MAX ( + 98 ) col0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT DISTINCT - CASE - CAST( 81 AS SIGNED ) WHEN + 32 + + - 20 THEN 41 ELSE + 12 * + 37 + + 23 END
----
-467

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT - CASE - CAST ( 81 AS INTEGER ) WHEN + 32 + + - 20 THEN 41 ELSE + 12 * + 37 + + 23 END
----
-467

query I rowsort
SELECT 20 - - 98 AS col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT ALL - ( + + MIN( - - 20 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL - ( + + MIN ( - - 20 ) )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8742
SELECT ALL 83 / + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL 83 / + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 30 - + 83
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-8744
SELECT 36 DIV 29
----
1

skipif mysql # not compatible
query I rowsort label-8744
SELECT 36 / 29
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT 68 * + COUNT( * ) + - 25 + + + 71 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-8745
SELECT 68 * + COUNT ( * ) + - 25 + + + 71 AS col2
----
114

query I rowsort
SELECT DISTINCT 18 * 33 * - 69
----
-40986

query II rowsort
SELECT ALL 73, - 94 * 13 + - 18 AS col1
----
73
-1240

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ( - ( - 13 ) ) * - - COALESCE ( + - 16, + - COUNT( DISTINCT + 75 ), - - 82 )
----
-208

skipif mysql # not compatible
query I rowsort label-8748
SELECT ( - ( - 13 ) ) * - - COALESCE ( + - 16, + - COUNT ( DISTINCT + 75 ), - - 82 )
----
-208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8749
SELECT MAX( 82 ) * + COALESCE ( 76, - + COUNT( * ) + + - COUNT( * ) - + COUNT( * ) ) + CASE - 51 WHEN - 19 * - + 38 * - 70 DIV - - 82 + + 87 THEN NULL WHEN - AVG ( DISTINCT - 74 ) + + - COUNT( * ) THEN COALESCE ( + 8, + COUNT( - - 52 ) * + COUNT( + 47 ), + 41, - + 48 DIV + - COUNT( * ) * - CASE - COALESCE ( - - 67, + COUNT( * ) ) WHEN + 84 THEN - 97 END * - 94 DIV - NULLIF ( - 2, - 58 ) * COALESCE ( 55, MIN( - 68 ), - 56 ) ) * + - 87 DIV - 65 ELSE 76 * - 50 + - NULLIF ( 89, + 94 ) END + 47 DIV - + 94 - 60
----
2283

skipif mysql # not compatible
query I rowsort label-8749
SELECT MAX ( 82 ) * + COALESCE ( 76, - + COUNT ( * ) + + - COUNT ( * ) - + COUNT ( * ) ) + CASE - 51 WHEN - 19 * - + 38 * - 70 / - - 82 + + 87 THEN NULL WHEN - AVG ( DISTINCT - 74 ) + + - COUNT ( * ) THEN COALESCE ( + 8, + COUNT ( - - 52 ) * + COUNT ( + 47 ), + 41, - + 48 / + - COUNT ( * ) * - CASE - COALESCE ( - - 67, + COUNT ( * ) ) WHEN + 84 THEN - 97 END * - 94 / - NULLIF ( - 2, - 58 ) * COALESCE ( 55, MIN ( - 68 ), - 56 ) ) * + - 87 / - 65 ELSE 76 * - 50 + - NULLIF ( 89, + 94 ) END + 47 / - + 94 - 60
----
2283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8750
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 22 + - AVG ( + 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 22 + - AVG ( + 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT ( 83 ) * - - 47 + - SUM( ALL + 22 ) + - - 41
----
3920

skipif mysql # not compatible
query I rowsort label-8751
SELECT ( 83 ) * - - 47 + - SUM ( ALL + 22 ) + - - 41
----
3920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8752
SELECT DISTINCT MAX( ALL + - 13 ) + + 68 DIV + - 5 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT MAX ( ALL + - 13 ) + + 68 / + - 5 AS col0
----
-26

query I rowsort
SELECT DISTINCT 76 * - - 39 AS col0
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT CASE 82 WHEN + 80 THEN + 25 WHEN - 40 THEN NULL END + MAX( ALL + 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT CASE 82 WHEN + 80 THEN + 25 WHEN - 40 THEN NULL END + MAX ( ALL + 54 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT - COUNT( 19 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8755
SELECT - COUNT ( 19 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT CASE 53 WHEN 21 THEN NULL ELSE 29 END - - COALESCE ( 1, 54 + MAX( DISTINCT 94 ), + 50 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-8756
SELECT CASE 53 WHEN 21 THEN NULL ELSE 29 END - - COALESCE ( 1, 54 + MAX ( DISTINCT 94 ), + 50 ) AS col2
----
30

query I rowsort
SELECT 6 + 33
----
39

query I rowsort
SELECT ALL 4 + + 93 AS col2
----
97

query I rowsort
SELECT 86 * + 41 AS col0
----
3526

query I rowsort
SELECT DISTINCT - CASE WHEN NOT NULL BETWEEN 29 AND 9 THEN + 32 ELSE NULL END * + NULLIF ( 2, + 58 ) AS col1
----
NULL

query I rowsort
SELECT ALL 68 + + 57 * - 83 AS col2
----
-4663

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT DISTINCT SUM( ALL - 46 ) col1
----
-46

skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT SUM ( ALL - 46 ) col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL - COUNT( ALL 69 ) - 78 * + 75 AS col1
----
-5851

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL - COUNT ( ALL 69 ) - 78 * + 75 AS col1
----
-5851

query I rowsort
SELECT DISTINCT 62 * - 92 col0
----
-5704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8765
SELECT COALESCE ( 9, + CAST( COUNT( * ) AS SIGNED ), 98 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8765
SELECT COALESCE ( 9, + CAST ( COUNT ( * ) AS INTEGER ), 98 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT + MAX( 76 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT + MAX ( 76 ) AS col2
----
76

query I rowsort
SELECT + 3 + - 30 AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8768
SELECT + 96 * + NULLIF ( CAST( NULL AS SIGNED ) * 56, + 18 * 56 - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8768
SELECT + 96 * + NULLIF ( CAST ( NULL AS INTEGER ) * 56, + 18 * 56 - COUNT ( * ) )
----
NULL

query I rowsort
SELECT + 55 * 5
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT 8 * - 66 - COUNT( * ) col2
----
-529

skipif mysql # not compatible
query I rowsort label-8770
SELECT 8 * - 66 - COUNT ( * ) col2
----
-529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8771
SELECT DISTINCT - CAST( NULL AS SIGNED ) / COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8772
SELECT ALL + CAST( + 31 AS SIGNED ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL + CAST ( + 31 AS INTEGER ) AS col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT - 65 DIV + 42 + + 40
----
39

skipif mysql # not compatible
query I rowsort label-8773
SELECT - 65 / + 42 + + 40
----
39

query I rowsort
SELECT ALL + CASE 26 WHEN - 14 * - 64 + ( - 53 ) THEN 39 + + 2 WHEN + 23 + - 40 / - 70 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 17 * + ( 75 )
----
-1275

query I rowsort
SELECT - 25 + 75 * 19 AS col0
----
1400

query I rowsort
SELECT ALL + NULLIF ( 99, + 39 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT - 1 * MIN( + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-8778
SELECT - 1 * MIN ( + 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT ALL + COUNT( - 43 )
----
1

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL + COUNT ( - 43 )
----
1

query I rowsort
SELECT - 89 + 55 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT + NULLIF ( + 31, COUNT( * ) + - 41 ) * 64 - 95
----
1889

skipif mysql # not compatible
query I rowsort label-8781
SELECT + NULLIF ( + 31, COUNT ( * ) + - 41 ) * 64 - 95
----
1889

query I rowsort
SELECT DISTINCT 70 * - 21 + 75 AS col0
----
-1395

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT ALL - 45 * SUM( ALL - 51 * - 34 ) AS col1
----
-78030

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL - 45 * SUM ( ALL - 51 * - 34 ) AS col1
----
-78030

onlyif mysql # DIV for integer division: 
query I rowsort label-8784
SELECT ALL - 38 * 79 + 14 DIV 95
----
-3002

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL - 38 * 79 + 14 / 95
----
-3002

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT - MIN( DISTINCT - 2 ) + - 6
----
-4

skipif mysql # not compatible
query I rowsort label-8785
SELECT - MIN ( DISTINCT - 2 ) + - 6
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8786
SELECT ALL 51 * COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL 51 * COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 82 * - COALESCE ( - 99, + ( - 52 ) + - 56 ) + 80 * - 4 AS col1
----
7798

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL 76 * 9 + COUNT( * ) * - 7 AS col0
----
677

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL 76 * 9 + COUNT ( * ) * - 7 AS col0
----
677

onlyif mysql # DIV for integer division: 
query I rowsort label-8789
SELECT - 53 DIV - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8789
SELECT - 53 / - 68 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8790
SELECT DISTINCT NULLIF ( 52, + CAST( - COUNT( * ) AS DECIMAL ) )
----
52

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT NULLIF ( 52, + CAST ( - COUNT ( * ) AS REAL ) )
----
52

query I rowsort
SELECT ALL ( COALESCE ( + ( - 96 ), 67 * + 77 + 15 ) ) AS col1
----
-96

query I rowsort
SELECT - 99 * - 25 AS col1
----
2475

onlyif mysql # DIV for integer division: 
query I rowsort label-8793
SELECT ALL - 10 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL - 10 / 64
----
0

query I rowsort
SELECT - 17 + + 58 AS col1
----
41

query I rowsort
SELECT DISTINCT - 1 + 98 * - NULLIF ( 72 + 24, 2 )
----
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ALL - 51 + - COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL - 51 + - COUNT ( * ) AS col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8797
SELECT ALL 92 + CAST( NULL AS SIGNED ) / 79 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL 92 + CAST ( NULL AS INTEGER ) / 79 col0
----
NULL

query I rowsort
SELECT - + CASE + 68 WHEN 64 / + 46 + 11 THEN 8 ELSE + 46 END * + 5
----
-230

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT ALL + - 74 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL + - 74 / - 98
----
0

query I rowsort
SELECT DISTINCT - - 11 + 31 AS col2
----
42

query I rowsort
SELECT - NULLIF ( + 43, ( 32 ) * + AVG ( ALL - 28 ) )
----
-43

query I rowsort
SELECT ALL - 2 * - 56 col2
----
112

query I rowsort
SELECT ALL + - 99 * - 3 AS col1
----
297

query I rowsort
SELECT ALL 37 - 31
----
6

query I rowsort
SELECT ALL ( + 60 ) * - 81
----
-4860

query I rowsort
SELECT - 50 + 17 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT + ( - COUNT( * ) ) - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8807
SELECT + ( - COUNT ( * ) ) - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT DISTINCT + COUNT( - 75 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT + COUNT ( - 75 ) AS col2
----
1

query I rowsort
SELECT ALL - 50 - + 4 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT ALL + ( + MIN( ALL NULLIF ( 1, + COALESCE ( 44, 89 ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL + ( + MIN ( ALL NULLIF ( 1, + COALESCE ( 44, 89 ) ) ) )
----
1

query I rowsort
SELECT + + 36 * 34 AS col0
----
1224

query I rowsort
SELECT ALL + 25 * CASE + 65 + - 22 * + 70 WHEN - 97 * 98 THEN + 97 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT 20 * 37 + - 62 * + COUNT( * ) AS col1
----
678

skipif mysql # not compatible
query I rowsort label-8813
SELECT 20 * 37 + - 62 * + COUNT ( * ) AS col1
----
678

query I rowsort
SELECT ALL + ( + + 6 ) col2
----
6

query I rowsort
SELECT + 2 * - 44
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL COUNT( * ) * - 12
----
-12

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL COUNT ( * ) * - 12
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8817
SELECT CAST( - ( CASE - 12 WHEN COUNT( * ) * + 12 + + 89 THEN + CASE 3 WHEN + COUNT( * ) + 40 * + 77 THEN - 57 + COUNT( * ) WHEN + 10 THEN COUNT( * ) + 19 * + 60 WHEN + 6 THEN NULL ELSE NULL END + 61 / SUM( 84 + + ( CAST( NULL AS SIGNED ) + 30 / 33 ) ) END ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8817
SELECT CAST ( - ( CASE - 12 WHEN COUNT ( * ) * + 12 + + 89 THEN + CASE 3 WHEN + COUNT ( * ) + 40 * + 77 THEN - 57 + COUNT ( * ) WHEN + 10 THEN COUNT ( * ) + 19 * + 60 WHEN + 6 THEN NULL ELSE NULL END + 61 / SUM ( 84 + + ( CAST ( NULL AS INTEGER ) + 30 / 33 ) ) END ) AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT + ( + NULLIF ( COUNT( DISTINCT 43 ), AVG ( DISTINCT - 65 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8818
SELECT + ( + NULLIF ( COUNT ( DISTINCT 43 ), AVG ( DISTINCT - 65 ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8819
SELECT ( - CAST( + 16 AS SIGNED ) )
----
-16

skipif mysql # not compatible
query I rowsort label-8819
SELECT ( - CAST ( + 16 AS INTEGER ) )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-8820
SELECT + 66 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-8820
SELECT + 66 / - 87
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8821
SELECT ALL 66 DIV - 81 + + 43 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL 66 / - 81 + + 43 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT + 42 * COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8822
SELECT + 42 * COUNT ( * ) AS col2
----
42

query I rowsort
SELECT ALL - CASE - + 4 WHEN 41 THEN 77 * + 71 END * 12 + - 68
----
NULL

query I rowsort
SELECT DISTINCT - 11 * + 73 * 84 + 31 AS col2
----
-67421

query I rowsort
SELECT ALL 78 * - 86 + - 73 * - 81
----
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT ALL 3 * + + COUNT( * ) + - 98 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL 3 * + + COUNT ( * ) + - 98 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT - 12 * + - COUNT( * ) * 17 AS col1
----
204

skipif mysql # not compatible
query I rowsort label-8827
SELECT - 12 * + - COUNT ( * ) * 17 AS col1
----
204

query I rowsort
SELECT ALL 22 * + 41 + - 28 col0
----
874

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8829
SELECT ALL CAST( NULL AS DECIMAL ) * - NULLIF ( 34, CAST( NULL AS DECIMAL ) ) + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL CAST ( NULL AS REAL ) * - NULLIF ( 34, CAST ( NULL AS REAL ) ) + 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT + COALESCE ( - SUM( + 0 ), 48 ) - 5 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8830
SELECT + COALESCE ( - SUM ( + 0 ), 48 ) - 5 AS col1
----
-5

query I rowsort
SELECT - 76 + + 46 AS col2
----
-30

query I rowsort
SELECT - 82 * - 10 AS col0
----
820

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT ALL - COUNT( * ) * + + 56 * - 19 AS col0
----
1064

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL - COUNT ( * ) * + + 56 * - 19 AS col0
----
1064

query I rowsort
SELECT NULLIF ( 47, - 89 ) AS col2
----
47

query I rowsort
SELECT - 99 + 29 * 93 AS col0
----
2598

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT COALESCE ( - COUNT( * ), MAX( DISTINCT - 82 ) * 47, 89 * - 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-8836
SELECT COALESCE ( - COUNT ( * ), MAX ( DISTINCT - 82 ) * 47, 89 * - 24 )
----
-1

query I rowsort
SELECT DISTINCT - 64 * - + 68 - 86
----
4266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8838
SELECT DISTINCT - - 72 * + - CAST( NULL AS SIGNED ) * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT - - 72 * + - CAST ( NULL AS INTEGER ) * + 22
----
NULL

query I rowsort
SELECT + 73 - + + 47 * - 43 AS col1
----
2094

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT DISTINCT + MIN( - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT + MIN ( - 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT DISTINCT - MAX( - 49 )
----
49

skipif mysql # not compatible
query I rowsort label-8841
SELECT DISTINCT - MAX ( - 49 )
----
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8842
SELECT - CAST( NULL AS DECIMAL ) * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT - CAST ( NULL AS REAL ) * + 8
----
NULL

query I rowsort
SELECT - 39 + - 91
----
-130

query I rowsort
SELECT - CASE - 34 WHEN - 43 THEN + NULLIF ( - 6, - 76 ) * 79 WHEN - 93 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 22 - - 58
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8846
SELECT ALL + COALESCE ( - - 26, 19 * 16 ) DIV 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL + COALESCE ( - - 26, 19 * 16 ) / 96 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT + 31 * + 14 * + COUNT( * ) AS col0
----
434

skipif mysql # not compatible
query I rowsort label-8847
SELECT + 31 * + 14 * + COUNT ( * ) AS col0
----
434

query I rowsort
SELECT - + ( - + 77 ) AS col2
----
77

query I rowsort
SELECT ALL 14 * 21 * - NULLIF ( - 72, 20 )
----
21168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8850
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 19 * - COUNT( + 62 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 19 * - COUNT ( + 62 ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8851
SELECT - 56 DIV + MAX( 48 ) + 41
----
40

skipif mysql # not compatible
query I rowsort label-8851
SELECT - 56 / + MAX ( 48 ) + 41
----
40

query II rowsort
SELECT 72 AS col1, + 78 + - 56 * ( - 75 )
----
72
4278

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT 30 + - + COUNT( - - 72 ) + 13 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-8853
SELECT 30 + - + COUNT ( - - 72 ) + 13 AS col1
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8854
SELECT + 48 col2, - 52 + COUNT( * ) DIV 98
----
48
-52

skipif mysql # not compatible
query II rowsort label-8854
SELECT + 48 col2, - 52 + COUNT ( * ) / 98
----
48
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8855
SELECT ALL 1 + - 32 * CAST( NULL AS SIGNED ) * 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL 1 + - 32 * CAST ( NULL AS INTEGER ) * 39 AS col1
----
NULL

query II rowsort
SELECT 88, + 69 AS col2
----
88
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8857
SELECT 46 - 85 * - - COALESCE ( - 94, + 9 * - 32 + + NULLIF ( COUNT( * ), - CAST( NULL AS SIGNED ) ) * + 77 )
----
8036

skipif mysql # not compatible
query I rowsort label-8857
SELECT 46 - 85 * - - COALESCE ( - 94, + 9 * - 32 + + NULLIF ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) * + 77 )
----
8036

query I rowsort
SELECT ALL 54 + - 37 AS col1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8859
SELECT DISTINCT 0 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT 0 / 40
----
0

query I rowsort
SELECT - 49 * - - 0 + - + COALESCE ( 66, 54 + 95, CASE - 4 WHEN 73 THEN 89 * 52 END ) AS col0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8861
SELECT 19 * - 31 + - + ( - NULLIF ( - COUNT( * ), 62 ) ) DIV + 4
----
-589

skipif mysql # not compatible
query I rowsort label-8861
SELECT 19 * - 31 + - + ( - NULLIF ( - COUNT ( * ), 62 ) ) / + 4
----
-589

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT - 73 * + COUNT( * ) - + - COALESCE ( + 59, 50 * - COUNT( * ) )
----
-14

skipif mysql # not compatible
query I rowsort label-8862
SELECT - 73 * + COUNT ( * ) - + - COALESCE ( + 59, 50 * - COUNT ( * ) )
----
-14

query I rowsort
SELECT ( - 32 ) * + 1
----
-32

query I rowsort
SELECT 74 + - 23 * 92 * 63
----
-133234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8865
SELECT 9 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8865
SELECT 9 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 83, 28 AS col2
----
83
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8867
SELECT ALL + 56 DIV - + MAX( + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL + 56 / - + MAX ( + 76 )
----
0

query I rowsort
SELECT + 11 * 77 + 5 * + 91
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT ALL - - CASE + COALESCE ( - 94, 55 / 91 ) WHEN CASE 0 WHEN + 89 THEN NULL ELSE 18 END THEN 34 WHEN + COUNT( * ) THEN NULL WHEN - 15 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL - - CASE + COALESCE ( - 94, 55 / 91 ) WHEN CASE 0 WHEN + 89 THEN NULL ELSE 18 END THEN 34 WHEN + COUNT ( * ) THEN NULL WHEN - 15 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8870
SELECT - NULLIF ( ( 29 ), + 65 DIV 62 ) * - COUNT( * ) + 12 DIV 56 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8870
SELECT - NULLIF ( ( 29 ), + 65 / 62 ) * - COUNT ( * ) + 12 / 56 AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8871
SELECT DISTINCT - 33 DIV - 42 * + + ( - 3 ) * SUM( - 71 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT - 33 / - 42 * + + ( - 3 ) * SUM ( - 71 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8872
SELECT + CASE 66 WHEN CASE 34 WHEN 28 + + COUNT( DISTINCT 51 + + 2 * 87 ) * 84 THEN CASE 7 WHEN - 67 * - CAST( NULL AS SIGNED ) + - 87 THEN COALESCE ( COUNT( * ), - CASE 79 WHEN 78 THEN - 15 ELSE NULL END ) * 30 ELSE NULL END WHEN + COUNT( * ) THEN 40 ELSE + 55 * 6 END * ( + 22 + MIN( 21 + + 65 ) ) THEN + 79 WHEN + 54 - - 83 / - 23 THEN NULL END / - 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT + CASE 66 WHEN CASE 34 WHEN 28 + + COUNT ( DISTINCT 51 + + 2 * 87 ) * 84 THEN CASE 7 WHEN - 67 * - CAST ( NULL AS INTEGER ) + - 87 THEN COALESCE ( COUNT ( * ), - CASE 79 WHEN 78 THEN - 15 ELSE NULL END ) * 30 ELSE NULL END WHEN + COUNT ( * ) THEN 40 ELSE + 55 * 6 END * ( + 22 + MIN ( 21 + + 65 ) ) THEN + 79 WHEN + 54 - - 83 / - 23 THEN NULL END / - 39 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8873
SELECT CAST( + COUNT( * ) AS SIGNED ) + - - SUM( DISTINCT ( + 47 ) )
----
48

skipif mysql # not compatible
query I rowsort label-8873
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + - - SUM ( DISTINCT ( + 47 ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT DISTINCT - COUNT( + 0 ) - - 86 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8874
SELECT DISTINCT - COUNT ( + 0 ) - - 86 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT COUNT( * ) + 38 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8875
SELECT COUNT ( * ) + 38 AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8876
SELECT - + CAST( + + 34 AS SIGNED ) col2
----
-34

skipif mysql # not compatible
query I rowsort label-8876
SELECT - + CAST ( + + 34 AS INTEGER ) col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT + 20 + + + COUNT( * ) * - COUNT( * ) + 40 * 1 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-8877
SELECT + 20 + + + COUNT ( * ) * - COUNT ( * ) + 40 * 1 AS col0
----
59

query I rowsort
SELECT 11 * + + 46 + + 54 AS col1
----
560

query I rowsort
SELECT ALL + + ( 81 ) * + ( - 17 ) AS col0
----
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT COUNT( * ) + + - 28 * + 99 AS col0
----
-2771

skipif mysql # not compatible
query I rowsort label-8880
SELECT COUNT ( * ) + + - 28 * + 99 AS col0
----
-2771

query II rowsort
SELECT ALL 99, 23 * + 40 AS col2
----
99
920

query I rowsort
SELECT 87 + + 37 * 10 AS col0
----
457

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT DISTINCT + MAX( ALL - 21 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT + MAX ( ALL - 21 ) AS col0
----
-21

query I rowsort
SELECT + 95 + 44 - + 3 AS col1
----
136

query I rowsort
SELECT ALL + + ( - 24 ) + 1 + - 99 AS col2
----
-122

query II rowsort
SELECT DISTINCT 66 AS col0, + 32
----
66
32

query I rowsort
SELECT + 62 * - 2 + - ( 78 ) + + 24 * 74 AS col2
----
1574

query I rowsort
SELECT CASE 42 WHEN - 33 THEN + 66 + 36 * 98 WHEN ( - 16 ) THEN ( - 10 ) ELSE NULL END + 85 AS col0
----
NULL

query II rowsort
SELECT ALL + 13 + 35 col2, 21
----
48
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT DISTINCT + 4 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT + 4 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8891
SELECT ALL 54 + + ( + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL 54 + + ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT ALL + 40 * + 54 + 56 * + - 92 * 0 - + COUNT( - 40 ) * + 22
----
2138

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL + 40 * + 54 + 56 * + - 92 * 0 - + COUNT ( - 40 ) * + 22
----
2138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8893
SELECT + COUNT( * ) * + + ( + 97 ) * - NULLIF ( ( COUNT( ALL 13 ) ), - 55 / - COUNT( * ) + + 1 ) + + CAST( + 2 AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-8893
SELECT + COUNT ( * ) * + + ( + 97 ) * - NULLIF ( ( COUNT ( ALL 13 ) ), - 55 / - COUNT ( * ) + + 1 ) + + CAST ( + 2 AS INTEGER )
----
-95

query II rowsort
SELECT DISTINCT + 41 * - + 95, - 31 AS col1
----
-3895
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT ALL 64 * 6 + - + 86 + + 87 - + 62 DIV 7 AS col1
----
377

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL 64 * 6 + - + 86 + + 87 - + 62 / 7 AS col1
----
377

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8896
SELECT 45 DIV - COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8896
SELECT 45 / - COUNT ( * ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT 81 * 60 * - COUNT( * ) AS col0
----
-4860

skipif mysql # not compatible
query I rowsort label-8897
SELECT 81 * 60 * - COUNT ( * ) AS col0
----
-4860

onlyif mysql # aggregate syntax: 
query II rowsort label-8898
SELECT SUM( DISTINCT + - 11 ) AS col0, 34 AS col0
----
-11
34

skipif mysql # not compatible
query II rowsort label-8898
SELECT SUM ( DISTINCT + - 11 ) AS col0, 34 AS col0
----
-11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT DISTINCT COUNT( * ) * + 49 - - COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT COUNT ( * ) * + 49 - - COUNT ( * ) AS col2
----
50

query I rowsort
SELECT DISTINCT 76 * - 55 - 35 * + 89 * - 47
----
142225

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT MAX( ALL + 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8901
SELECT MAX ( ALL + 30 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT COUNT( ALL - 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8902
SELECT COUNT ( ALL - 12 ) AS col1
----
1

query I rowsort
SELECT ALL ( - 25 ) * + COALESCE ( - ( + 52 ), + 96, 90 + 10 ) + 21
----
1321

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT + + 9 * + COUNT( DISTINCT - 73 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8904
SELECT + + 9 * + COUNT ( DISTINCT - 73 ) AS col2
----
9

query I rowsort
SELECT DISTINCT + 3 / - - ( ( - 61 ) ) * + 51 + CASE - 44 WHEN 92 THEN + 8 END * 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8906
SELECT - - 40 - + - COUNT( * ) + - CASE + 25 WHEN + 1 THEN + 71 / CASE + AVG ( DISTINCT NULLIF ( + CAST( NULL AS DECIMAL ), + 38 ) ) * 55 WHEN ( 98 ) * 10 THEN NULL WHEN + 11 * - 71 THEN 89 END + - 71 WHEN + 41 THEN + 24 END + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8906
SELECT - - 40 - + - COUNT ( * ) + - CASE + 25 WHEN + 1 THEN + 71 / CASE + AVG ( DISTINCT NULLIF ( + CAST ( NULL AS REAL ), + 38 ) ) * 55 WHEN ( 98 ) * 10 THEN NULL WHEN + 11 * - 71 THEN 89 END + - 71 WHEN + 41 THEN + 24 END + 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT + + 65 - + ( - SUM( DISTINCT + ( - 57 ) ) )
----
8

skipif mysql # not compatible
query I rowsort label-8907
SELECT + + 65 - + ( - SUM ( DISTINCT + ( - 57 ) ) )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT + CAST( NULL AS SIGNED ) * - - NULLIF ( - CAST( NULL AS SIGNED ), - 85 ) + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT + CAST ( NULL AS INTEGER ) * - - NULLIF ( - CAST ( NULL AS INTEGER ), - 85 ) + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT + - 90 + + 94 + 29 * + + MIN( - 21 )
----
-605

skipif mysql # not compatible
query I rowsort label-8909
SELECT + - 90 + + 94 + 29 * + + MIN ( - 21 )
----
-605

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT ALL + - SUM( ALL - + 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL + - SUM ( ALL - + 24 ) AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8911
SELECT - COUNT( * ) + - COUNT( * ) + 46 + - COUNT( * ) * - 44 * + CAST( - 85 AS SIGNED )
----
-3696

skipif mysql # not compatible
query I rowsort label-8911
SELECT - COUNT ( * ) + - COUNT ( * ) + 46 + - COUNT ( * ) * - 44 * + CAST ( - 85 AS INTEGER )
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT - ( + 13 ) * - - CASE - 25 WHEN 56 * - 84 + CASE + ( - 23 ) + 43 WHEN COUNT( * ) THEN NULL ELSE - 8 / - 93 + 45 * - ( - 65 + + ( + NULLIF ( 85, + 66 * 31 ) ) ) END THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8912
SELECT - ( + 13 ) * - - CASE - 25 WHEN 56 * - 84 + CASE + ( - 23 ) + 43 WHEN COUNT ( * ) THEN NULL ELSE - 8 / - 93 + 45 * - ( - 65 + + ( + NULLIF ( 85, + 66 * 31 ) ) ) END THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT - + MIN( DISTINCT - 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-8913
SELECT - + MIN ( DISTINCT - 19 ) AS col0
----
19

query I rowsort
SELECT + 57 - + 64
----
-7

query I rowsort
SELECT + ( - 4 ) - - 11 * + 28 AS col0
----
304

query II rowsort
SELECT ALL - 38 * 35 AS col0, 68 AS col2
----
-1330
68

query I rowsort
SELECT ALL - 27 + + 35
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT + NULLIF ( + 22, - ( - + 3 ) + CAST( NULL AS SIGNED ) ) * 21
----
462

skipif mysql # not compatible
query I rowsort label-8918
SELECT + NULLIF ( + 22, - ( - + 3 ) + CAST ( NULL AS INTEGER ) ) * 21
----
462

query I rowsort
SELECT COALESCE ( - - 19, + + 50 * 51 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8920
SELECT - + 8 - CASE MIN( - + 63 ) WHEN 96 - 60 THEN NULL WHEN CASE 74 WHEN + 38 - 12 THEN + 67 WHEN - AVG ( ALL 54 ) THEN COUNT( * ) - + 29 END * 77 + CAST( CAST( MAX( + NULLIF ( - 16, - 13 ) ) AS SIGNED ) + - COUNT( * ) AS SIGNED ) / + 58 THEN NULL WHEN 18 THEN - COUNT( 27 ) END + + COALESCE ( 95 + + 57 * + 17, ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * 13 ) * + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8920
SELECT - + 8 - CASE MIN ( - + 63 ) WHEN 96 - 60 THEN NULL WHEN CASE 74 WHEN + 38 - 12 THEN + 67 WHEN - AVG ( ALL 54 ) THEN COUNT ( * ) - + 29 END * 77 + CAST ( CAST ( MAX ( + NULLIF ( - 16, - 13 ) ) AS INTEGER ) + - COUNT ( * ) AS INTEGER ) / + 58 THEN NULL WHEN 18 THEN - COUNT ( 27 ) END + + COALESCE ( 95 + + 57 * + 17, ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * 13 ) * + 92 AS col1
----
NULL

query I rowsort
SELECT ALL + 18 + + 74 - - 98 - - ( - 65 ) * - 42 * 70 AS col1
----
191290

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT + COUNT( ALL - + ( 8 ) ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8922
SELECT + COUNT ( ALL - + ( 8 ) ) * COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8923
SELECT DISTINCT CAST( + - 9 AS SIGNED ) * + NULLIF ( - + 56, + 66 * COUNT( * ) ) + 63 AS col1
----
567

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT CAST ( + - 9 AS INTEGER ) * + NULLIF ( - + 56, + 66 * COUNT ( * ) ) + 63 AS col1
----
567

query I rowsort
SELECT ALL - 54 + - ( + 33 ) * + + 4 col2
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8925
SELECT DISTINCT + 0 + - + CAST( + 6 AS SIGNED ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8925
SELECT DISTINCT + 0 + - + CAST ( + 6 AS INTEGER ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT - ( - + COUNT( * ) ) * + + MIN( ALL - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-8926
SELECT - ( - + COUNT ( * ) ) * + + MIN ( ALL - 94 )
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-8927
SELECT 21 AS col2, COUNT( * )
----
21
1

skipif mysql # not compatible
query II rowsort label-8927
SELECT 21 AS col2, COUNT ( * )
----
21
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8928
SELECT + 24 + - 61 + - 96 * 39 DIV + 9 AS col2
----
-453

skipif mysql # not compatible
query I rowsort label-8928
SELECT + 24 + - 61 + - 96 * 39 / + 9 AS col2
----
-453

query I rowsort
SELECT - 6 * - 42
----
252

onlyif mysql # aggregate syntax: 
query II rowsort label-8930
SELECT + 64 AS col2, COUNT( * )
----
64
1

skipif mysql # not compatible
query II rowsort label-8930
SELECT + 64 AS col2, COUNT ( * )
----
64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT - CASE + 58 WHEN + - 94 THEN NULL WHEN + - 61 + 45 / - CASE - SUM( 55 ) WHEN + ( - COUNT( * ) ) * + 57 THEN MIN( - 90 ) ELSE NULL END THEN NULL ELSE + COALESCE ( + 26, + COUNT( DISTINCT 23 ) * + 36 ) * 86 END + 62 * + 95 AS col0
----
3654

skipif mysql # not compatible
query I rowsort label-8931
SELECT - CASE + 58 WHEN + - 94 THEN NULL WHEN + - 61 + 45 / - CASE - SUM ( 55 ) WHEN + ( - COUNT ( * ) ) * + 57 THEN MIN ( - 90 ) ELSE NULL END THEN NULL ELSE + COALESCE ( + 26, + COUNT ( DISTINCT 23 ) * + 36 ) * 86 END + 62 * + 95 AS col0
----
3654

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT COUNT( * ) * COUNT( 51 ) + - + 80 col2
----
-79

skipif mysql # not compatible
query I rowsort label-8932
SELECT COUNT ( * ) * COUNT ( 51 ) + - + 80 col2
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-8933
SELECT ALL - MIN( ALL + 85 ) * + 96, - 23 * + 57 AS col1
----
-8160
-1311

skipif mysql # not compatible
query II rowsort label-8933
SELECT ALL - MIN ( ALL + 85 ) * + 96, - 23 * + 57 AS col1
----
-8160
-1311

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT - 70 - + ( - MAX( 34 ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-8934
SELECT - 70 - + ( - MAX ( 34 ) ) AS col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8935
SELECT ALL - 83 DIV - - 9 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL - 83 / - - 9 AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT ALL + CAST( 47 AS SIGNED ) col2
----
47

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL + CAST ( 47 AS INTEGER ) col2
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8937
SELECT ALL CASE WHEN NULL IS NULL THEN 59 END * - COALESCE ( CASE 14 WHEN + 74 THEN NULL WHEN - 46 - 29 THEN - COUNT( DISTINCT + 43 ) DIV - 76 END, NULLIF ( + ( 40 ), + 1 ), 4 * 20 )
----
-2360

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL CASE WHEN NULL IS NULL THEN 59 END * - COALESCE ( CASE 14 WHEN + 74 THEN NULL WHEN - 46 - 29 THEN - COUNT ( DISTINCT + 43 ) / - 76 END, NULLIF ( + ( 40 ), + 1 ), 4 * 20 )
----
-2360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8938
SELECT DISTINCT + ( + + MAX( CAST( + + 6 AS SIGNED ) ) )
----
6

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT + ( + + MAX ( CAST ( + + 6 AS INTEGER ) ) )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8939
SELECT - 40 DIV - MAX( + 66 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8939
SELECT - 40 / - MAX ( + 66 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8940
SELECT - 99 + - MAX( ALL - - 66 ) + 68 DIV + 17 - - 40
----
-121

skipif mysql # not compatible
query I rowsort label-8940
SELECT - 99 + - MAX ( ALL - - 66 ) + 68 / + 17 - - 40
----
-121

query I rowsort
SELECT ALL + 93 * + + 18 * 81 * - + 3
----
-406782

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8942
SELECT + 2 * + + AVG ( 66 ) * CAST( NULL AS DECIMAL ) + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8942
SELECT + 2 * + + AVG ( 66 ) * CAST ( NULL AS REAL ) + 42
----
NULL

query I rowsort
SELECT + 16 * - 98
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT - 60 * ( - 95 ) * + - ( + + 85 ) * - 56 + MAX( DISTINCT - 16 )
----
27131984

skipif mysql # not compatible
query I rowsort label-8944
SELECT - 60 * ( - 95 ) * + - ( + + 85 ) * - 56 + MAX ( DISTINCT - 16 )
----
27131984

query I rowsort
SELECT - + 3 * NULLIF ( - 32, - 54 ) + - + 44
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT + - MAX( - + 41 ) * ( 51 )
----
2091

skipif mysql # not compatible
query I rowsort label-8946
SELECT + - MAX ( - + 41 ) * ( 51 )
----
2091

query I rowsort
SELECT DISTINCT + + 42 * - 85 + + 16
----
-3554

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT DISTINCT + - COUNT( - 68 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT + - COUNT ( - 68 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8949
SELECT SUM( DISTINCT CAST( NULL AS DECIMAL ) ) * 66 + AVG ( - 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8949
SELECT SUM ( DISTINCT CAST ( NULL AS REAL ) ) * 66 + AVG ( - 52 )
----
NULL

query I rowsort
SELECT ALL - ( + - 14 ) * + + 42 + + + 37 - 98 * - CASE - 8 WHEN 58 THEN 99 END
----
NULL

query I rowsort
SELECT DISTINCT + 55 * - 63 + 69 AS col2
----
-3396

query II rowsort
SELECT ALL + + 94 AS col1, + 40 + - + 57
----
94
-17

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8953
SELECT DISTINCT 2 * - CAST( NULL AS DECIMAL ) - CAST( - 72 AS SIGNED ) + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT 2 * - CAST ( NULL AS REAL ) - CAST ( - 72 AS INTEGER ) + + 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8954
SELECT ALL + CAST( NULL AS SIGNED ) * 14 + + 30 + + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL + CAST ( NULL AS INTEGER ) * 14 + + 30 + + - 32
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8955
SELECT - + 73, 33 + CASE - 86 WHEN 16 THEN NULL WHEN 79 THEN NULL ELSE COUNT( * ) END AS col2
----
-73
34

skipif mysql # not compatible
query II rowsort label-8955
SELECT - + 73, 33 + CASE - 86 WHEN 16 THEN NULL WHEN 79 THEN NULL ELSE COUNT ( * ) END AS col2
----
-73
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT - 17 + - MAX( DISTINCT - - 96 ) * + ( + ( + 86 ) )
----
-8273

skipif mysql # not compatible
query I rowsort label-8956
SELECT - 17 + - MAX ( DISTINCT - - 96 ) * + ( + ( + 86 ) )
----
-8273

query I rowsort
SELECT + 30 + - + 39
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT MIN( ALL + 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8958
SELECT MIN ( ALL + 47 ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8959
SELECT - - NULLIF ( 40, - + 34 - + ( - + CAST( NULL AS SIGNED ) ) / 30 ) col2
----
40

skipif mysql # not compatible
query I rowsort label-8959
SELECT - - NULLIF ( 40, - + 34 - + ( - + CAST ( NULL AS INTEGER ) ) / 30 ) col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL + ( + COUNT( * ) ) + MIN( + - 38 )
----
-37

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL + ( + COUNT ( * ) ) + MIN ( + - 38 )
----
-37

query I rowsort
SELECT + 19 * - 97 * - ( - 23 )
----
-42389

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8962
SELECT ALL 31 DIV + - COUNT( * ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL 31 / + - COUNT ( * ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT + COUNT( * ) + - + 88 + 50 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-8963
SELECT + COUNT ( * ) + - + 88 + 50 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT ALL 43 - ( + - ( + ( + MIN( - + 51 ) ) ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL 43 - ( + - ( + ( + MIN ( - + 51 ) ) ) ) AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8965
SELECT + CAST( NULL AS SIGNED ) + + + 58 - - 47 - 33 + - 3 * + 0 * 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8965
SELECT + CAST ( NULL AS INTEGER ) + + + 58 - - 47 - 33 + - 3 * + 0 * 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT + 25 * - + COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-8966
SELECT + 25 * - + COUNT ( * ) AS col0
----
-25

query I rowsort
SELECT + 83 * 99 AS col2
----
8217

query I rowsort
SELECT - 65 * 89
----
-5785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8969
SELECT DISTINCT - 69 * CAST( + + 79 AS SIGNED )
----
-5451

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT - 69 * CAST ( + + 79 AS INTEGER )
----
-5451

query I rowsort
SELECT + 29 * - 65 col1
----
-1885

query I rowsort
SELECT ALL 35 * + - CASE + 88 WHEN - 54 THEN - 63 WHEN 7 + 4 THEN + 87 * 96 END * - 22 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8972
SELECT 99, COALESCE ( - ( CASE 5 WHEN + + 58 * + 80 THEN 66 DIV - 64 + + 49 END ), 75 ) * 23 - - COALESCE ( + 95 + 54, 29, - 34 ) * 38 col1
----
99
7387

skipif mysql # not compatible
query II rowsort label-8972
SELECT 99, COALESCE ( - ( CASE 5 WHEN + + 58 * + 80 THEN 66 / - 64 + + 49 END ), 75 ) * 23 - - COALESCE ( + 95 + 54, 29, - 34 ) * 38 col1
----
99
7387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8973
SELECT ALL - CASE ( NULLIF ( + 95, + COUNT( * ) * - CAST( 60 AS SIGNED ) + + COUNT( * ) + 55 * 99 ) ) WHEN + 72 + + 97 THEN - 40 * 24 WHEN 36 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL - CASE ( NULLIF ( + 95, + COUNT ( * ) * - CAST ( 60 AS INTEGER ) + + COUNT ( * ) + 55 * 99 ) ) WHEN + 72 + + 97 THEN - 40 * 24 WHEN 36 THEN COUNT ( * ) ELSE NULL END
----
NULL

query II rowsort
SELECT 12 AS col1, 29 + - 54
----
12
-25

query I rowsort
SELECT DISTINCT - COALESCE ( 62, + 64 ) col1
----
-62

onlyif mysql # aggregate syntax: 
query III rowsort label-8976
SELECT 93 col1, 18 col0, 29 * - 46 + + CASE - 41 WHEN - 92 + COUNT( * ) THEN ( - 16 ) WHEN + 31 THEN NULL END AS col0
----
93
18
NULL

skipif mysql # not compatible
query III rowsort label-8976
SELECT 93 col1, 18 col0, 29 * - 46 + + CASE - 41 WHEN - 92 + COUNT ( * ) THEN ( - 16 ) WHEN + 31 THEN NULL END AS col0
----
93
18
NULL

query I rowsort
SELECT 25 + 81 AS col2
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8978
SELECT - 90 * ( + + CAST( - ( - 95 ) AS SIGNED ) ) AS col0
----
-8550

skipif mysql # not compatible
query I rowsort label-8978
SELECT - 90 * ( + + CAST ( - ( - 95 ) AS INTEGER ) ) AS col0
----
-8550

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT + 59 + - + MAX( DISTINCT - 62 ) - - + 53 AS col0
----
174

skipif mysql # not compatible
query I rowsort label-8979
SELECT + 59 + - + MAX ( DISTINCT - 62 ) - - + 53 AS col0
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8980
SELECT + 68 DIV COUNT( * ) * 66 - + 73 + - 60 * - COUNT( * )
----
4475

skipif mysql # not compatible
query I rowsort label-8980
SELECT + 68 / COUNT ( * ) * 66 - + 73 + - 60 * - COUNT ( * )
----
4475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8981
SELECT ALL + + 25 + - 6 DIV COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL + + 25 + - 6 / COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL + ( + + NULLIF ( - 56, - 35 + - ( + 48 ) * + COUNT( * ) ) ) + 26 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL + ( + + NULLIF ( - 56, - 35 + - ( + 48 ) * + COUNT ( * ) ) ) + 26 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT + COUNT( * ) * - - 8
----
8

skipif mysql # not compatible
query I rowsort label-8983
SELECT + COUNT ( * ) * - - 8
----
8

query I rowsort
SELECT DISTINCT + 60 + 75 AS col0
----
135

query I rowsort
SELECT ALL - 2 + + - 65
----
-67

query II rowsort
SELECT + 90 AS col0, + 79 + 7
----
90
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8987
SELECT + 1 DIV ( + COUNT( 0 ) ) AS col2, 54
----
1
54

skipif mysql # not compatible
query II rowsort label-8987
SELECT + 1 / ( + COUNT ( 0 ) ) AS col2, 54
----
1
54

query I rowsort
SELECT - 6 + + 52
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8989
SELECT + 16 * - 92 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8989
SELECT + 16 * - 92 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - - 7 + + 32 + - 83 * + 78 + - 25
----
-6460

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT ALL + CASE 89 WHEN 69 THEN NULL WHEN + 51 - - COUNT( * ) THEN - - CASE - ( + 22 ) WHEN + 16 THEN COUNT( * ) WHEN 73 THEN NULL END END - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL + CASE 89 WHEN 69 THEN NULL WHEN + 51 - - COUNT ( * ) THEN - - CASE - ( + 22 ) WHEN + 16 THEN COUNT ( * ) WHEN 73 THEN NULL END END - 66
----
NULL

query I rowsort
SELECT 57 - + - NULLIF ( 92, 65 ) + ( - 49 ) + 48
----
148

query II rowsort
SELECT DISTINCT + ( + 83 ) * + ( 63 ) AS col1, 59 AS col1
----
5229
59

query I rowsort
SELECT ( - 99 ) + - ( - 61 )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8995
SELECT 64 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8995
SELECT 64 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 89 * + + 26 * - 38 AS col0
----
-87932

onlyif mysql # DIV for integer division: 
query I rowsort label-8997
SELECT 80 - + 62 * 84 + 82 + - - 86 DIV 28
----
-5043

skipif mysql # not compatible
query I rowsort label-8997
SELECT 80 - + 62 * 84 + 82 + - - 86 / 28
----
-5043

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8998
SELECT MAX( + - ( 3 ) ) DIV - 21
----
0

skipif mysql # not compatible
query I rowsort label-8998
SELECT MAX ( + - ( 3 ) ) / - 21
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8999
SELECT ALL + 65 * - NULLIF ( - + COUNT( * ), 53 ) DIV - 25 DIV + 5
----
0

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL + 65 * - NULLIF ( - + COUNT ( * ), 53 ) / - 25 / + 5
----
0

query I rowsort
SELECT ( + 85 ) * ( - 84 )
----
-7140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9001
SELECT AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) + - 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9001
SELECT AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + - 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT 89 + - + 18 + - + ( - COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-9002
SELECT 89 + - + 18 + - + ( - COUNT ( * ) )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9003
SELECT ALL ( CAST( 16 AS SIGNED ) ) + + + 9 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL ( CAST ( 16 AS INTEGER ) ) + + + 9 AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9004
SELECT + CAST( - 92 AS SIGNED ) * COUNT( DISTINCT - 23 ) + COUNT( * ) DIV - - 35 + - 22 + - COUNT( * ) AS col2
----
-115

skipif mysql # not compatible
query I rowsort label-9004
SELECT + CAST ( - 92 AS INTEGER ) * COUNT ( DISTINCT - 23 ) + COUNT ( * ) / - - 35 + - 22 + - COUNT ( * ) AS col2
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT DISTINCT - + 60 * + + NULLIF ( ( + - 36 ), CASE + - MAX( ALL + 35 ) WHEN 99 THEN NULL WHEN + 59 * - 44 THEN + 48 / COUNT( * ) ELSE NULL END )
----
2160

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT - + 60 * + + NULLIF ( ( + - 36 ), CASE + - MAX ( ALL + 35 ) WHEN 99 THEN NULL WHEN + 59 * - 44 THEN + 48 / COUNT ( * ) ELSE NULL END )
----
2160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9006
SELECT - NULLIF ( - ( CAST( NULL AS DECIMAL ) ), - NULLIF ( 71, + 15 + - 98 - + 28 ) - 1 * + 81 ) + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9006
SELECT - NULLIF ( - ( CAST ( NULL AS REAL ) ), - NULLIF ( 71, + 15 + - 98 - + 28 ) - 1 * + 81 ) + 24
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9007
SELECT ALL 93 + 9, + 45 DIV 83 * - + 12 AS col2
----
102
0

skipif mysql # not compatible
query II rowsort label-9007
SELECT ALL 93 + 9, + 45 / 83 * - + 12 AS col2
----
102
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9008
SELECT DISTINCT - - SUM( 48 ) AS col2, - 81
----
48
-81

skipif mysql # not compatible
query II rowsort label-9008
SELECT DISTINCT - - SUM ( 48 ) AS col2, - 81
----
48
-81

query I rowsort
SELECT 23 + - ( - + 82 )
----
105

query I rowsort
SELECT 51 * - 30 + + 33 + - 38
----
-1535

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT - + 39 * + - ( + 71 ) * + 50 + + 19 + - - COUNT( - 77 ) + NULLIF ( + 45, + 89 * 29 + + 25 * - 66 ) * - 35 AS col2
----
136895

skipif mysql # not compatible
query I rowsort label-9011
SELECT - + 39 * + - ( + 71 ) * + 50 + + 19 + - - COUNT ( - 77 ) + NULLIF ( + 45, + 89 * 29 + + 25 * - 66 ) * - 35 AS col2
----
136895

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9012
SELECT + COUNT( * ) * + ( 74 ) * + 55 + + ( 13 ) DIV 11 + - 23 + + 31
----
4079

skipif mysql # not compatible
query I rowsort label-9012
SELECT + COUNT ( * ) * + ( 74 ) * + 55 + + ( 13 ) / 11 + - 23 + + 31
----
4079

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9013
SELECT DISTINCT + COUNT( * ) + - 40 * 4 DIV - 90 - - 81
----
83

skipif mysql # not compatible
query I rowsort label-9013
SELECT DISTINCT + COUNT ( * ) + - 40 * 4 / - 90 - - 81
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT ALL - + COUNT( * ) + + 77
----
76

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL - + COUNT ( * ) + + 77
----
76

query I rowsort
SELECT ALL - - ( 71 ) AS col2
----
71

query I rowsort
SELECT 80 * + 47 * + 8
----
30080

query I rowsort
SELECT ALL + CASE + 36 WHEN 29 THEN 1 ELSE NULL END * + + 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9018
SELECT DISTINCT + 88 - + COUNT( * ), + COUNT( * ) AS col2
----
87
1

skipif mysql # not compatible
query II rowsort label-9018
SELECT DISTINCT + 88 - + COUNT ( * ), + COUNT ( * ) AS col2
----
87
1

query I rowsort
SELECT ALL - - 5 * - 61
----
-305

query I rowsort
SELECT 72 + - 8 AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9021
SELECT ALL + 55 - - + 31 + + MAX( 2 ) * 3 - CAST( - 86 AS SIGNED )
----
178

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL + 55 - - + 31 + + MAX ( 2 ) * 3 - CAST ( - 86 AS INTEGER )
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT + 62 * CASE - + 89 WHEN + 3 THEN - MIN( ALL 12 ) ELSE - - COUNT( * ) END AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9022
SELECT + 62 * CASE - + 89 WHEN + 3 THEN - MIN ( ALL 12 ) ELSE - - COUNT ( * ) END AS col0
----
62

query I rowsort
SELECT 49 * + - 8 AS col0
----
-392

query I rowsort
SELECT ALL - 96 * - 53
----
5088

query I rowsort
SELECT 55 + - 83
----
-28

query I rowsort
SELECT 90 - + 13
----
77

query I rowsort
SELECT CASE - 57 WHEN + + 83 THEN - ( + 74 ) + + 69 END / + 35 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9028
SELECT COALESCE ( - - COUNT( * ), + - 83 * - - 49, - 90 ) * + CAST( MIN( - ( 97 ) ) AS SIGNED ) + CASE + MAX( + CAST( NULL AS SIGNED ) ) WHEN + 94 THEN 74 ELSE NULL END * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT COALESCE ( - - COUNT ( * ), + - 83 * - - 49, - 90 ) * + CAST ( MIN ( - ( 97 ) ) AS INTEGER ) + CASE + MAX ( + CAST ( NULL AS INTEGER ) ) WHEN + 94 THEN 74 ELSE NULL END * + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT ALL MAX( ALL + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL MAX ( ALL + 73 )
----
73

query I rowsort
SELECT ALL CASE 89 WHEN - + NULLIF ( + AVG ( ( - + 34 ) ), + 50 + + + ( 46 ) ) THEN NULL ELSE + 66 END
----
66

query I rowsort
SELECT 74 * - 14
----
-1036

query I rowsort
SELECT ALL + 96 * 85 AS col1
----
8160

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT - CASE + + 8 WHEN - COUNT( * ) THEN NULL WHEN + + 73 * 32 * + 34 + - 23 * - 38 * 16 THEN 49 + CASE - 57 WHEN - 64 THEN 68 + + ( - 78 - + 86 ) * 27 END END + NULLIF ( - COUNT( * ), 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT - CASE + + 8 WHEN - COUNT ( * ) THEN NULL WHEN + + 73 * 32 * + 34 + - 23 * - 38 * 16 THEN 49 + CASE - 57 WHEN - 64 THEN 68 + + ( - 78 - + 86 ) * 27 END END + NULLIF ( - COUNT ( * ), 48 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT DISTINCT CASE + 7 WHEN - ( MAX( - - 11 ) ) THEN NULL ELSE - - 25 - ( + 43 ) END AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT CASE + 7 WHEN - ( MAX ( - - 11 ) ) THEN NULL ELSE - - 25 - ( + 43 ) END AS col2
----
-18

query II rowsort
SELECT ALL 8 AS col1, 34 * + 22 AS col0
----
8
748

query I rowsort
SELECT - 48 + + 70
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL COUNT( * ) * 94 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL COUNT ( * ) * 94 AS col0
----
94

query I rowsort
SELECT - ( - 7 ) + - + ( + 93 )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9039
SELECT + 0 + CAST( NULL AS SIGNED ) - 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9039
SELECT + 0 + CAST ( NULL AS INTEGER ) - 56 AS col1
----
NULL

query II rowsort
SELECT 61 AS col2, 1 + 21
----
61
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL + COALESCE ( + - 91, 9 + - 52 + + 1 ) + - - 63 + + COUNT( 31 ) + + 76 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL + COALESCE ( + - 91, 9 + - 52 + + 1 ) + - - 63 + + COUNT ( 31 ) + + 76 AS col1
----
49

query I rowsort
SELECT + 94 + + - 6
----
88

query I rowsort
SELECT + 70 + + 81 AS col2
----
151

query I rowsort
SELECT ALL ( 33 ) * + 77 - - 61 AS col2
----
2602

query I rowsort
SELECT ALL + 34 + - 55
----
-21

query I rowsort
SELECT + 58 * - 80
----
-4640

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT ALL COUNT( * ) + - 20 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL COUNT ( * ) + - 20 AS col1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-9048
SELECT ALL 38 DIV + - 87 + + ( + 63 ) + - + 89
----
-26

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL 38 / + - 87 + + ( + 63 ) + - + 89
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-9049
SELECT + - 66 DIV - 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9049
SELECT + - 66 / - 71 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9050
SELECT ALL - 55 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL - 55 / 58
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9051
SELECT 46 AS col2, - CAST( + + 86 AS SIGNED )
----
46
-86

skipif mysql # not compatible
query II rowsort label-9051
SELECT 46 AS col2, - CAST ( + + 86 AS INTEGER )
----
46
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9052
SELECT + - 5 DIV + + 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9052
SELECT + - 5 / + + 23 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9053
SELECT + COUNT( * ) DIV + - 28 * 5
----
0

skipif mysql # not compatible
query I rowsort label-9053
SELECT + COUNT ( * ) / + - 28 * 5
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9054
SELECT + COUNT( - CAST( NULL AS SIGNED ) ) * SUM( - + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-9054
SELECT + COUNT ( - CAST ( NULL AS INTEGER ) ) * SUM ( - + 53 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9055
SELECT ALL + - MIN( ALL - ( + 91 ) ) AS col0, CAST( NULL AS SIGNED ) * + MAX( DISTINCT - 99 ) * + - 88 * + - CAST( NULL AS SIGNED ) + + 25 * 68 + + 26 * - 20 AS col1
----
91
NULL

skipif mysql # not compatible
query II rowsort label-9055
SELECT ALL + - MIN ( ALL - ( + 91 ) ) AS col0, CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT - 99 ) * + - 88 * + - CAST ( NULL AS INTEGER ) + + 25 * 68 + + 26 * - 20 AS col1
----
91
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9056
SELECT - 70 DIV + - 55 - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9056
SELECT - 70 / + - 55 - + COUNT ( * )
----
0

query I rowsort
SELECT + 24 * + 26 - + 82 * + 84
----
-6264

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT ALL - SUM( + 75 ) * 21
----
-1575

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL - SUM ( + 75 ) * 21
----
-1575

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9059
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2, 23 * 21 * - 92 * + 32
----
NULL
-1421952

skipif mysql # not compatible
query II rowsort label-9059
SELECT ALL + CAST ( NULL AS REAL ) AS col2, 23 * 21 * - 92 * + 32
----
NULL
-1421952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9060
SELECT + - ( - + CAST( + 59 AS SIGNED ) ) + - - 14 + 89 + + 61 * - MAX( - 78 ) AS col2
----
4920

skipif mysql # not compatible
query I rowsort label-9060
SELECT + - ( - + CAST ( + 59 AS INTEGER ) ) + - - 14 + 89 + + 61 * - MAX ( - 78 ) AS col2
----
4920

query I rowsort
SELECT - + 98 * - 67
----
6566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9062
SELECT + 99 * + + 59 * 63 AS col0, - CASE WHEN 50 IS NULL THEN NULL WHEN NOT NULL IS NOT NULL THEN 11 ELSE 33 + + CAST( - MAX( DISTINCT + ( CAST( NULL AS DECIMAL ) ) ) AS SIGNED ) END * - 26 AS col0
----
367983
286

skipif mysql # not compatible
query II rowsort label-9062
SELECT + 99 * + + 59 * 63 AS col0, - CASE WHEN 50 IS NULL THEN NULL WHEN NOT NULL IS NOT NULL THEN 11 ELSE 33 + + CAST ( - MAX ( DISTINCT + ( CAST ( NULL AS REAL ) ) ) AS INTEGER ) END * - 26 AS col0
----
367983
286

onlyif mysql # aggregate syntax: 
query II rowsort label-9063
SELECT + + 29 + + ( - + 6 ) + + ( - - SUM( + 52 ) ) col0, 2
----
75
2

skipif mysql # not compatible
query II rowsort label-9063
SELECT + + 29 + + ( - + 6 ) + + ( - - SUM ( + 52 ) ) col0, 2
----
75
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9064
SELECT MIN( DISTINCT + 64 ), 22 * + COUNT( * ) + 25 + + 64 * - + 8 AS col0
----
64
-465

skipif mysql # not compatible
query II rowsort label-9064
SELECT MIN ( DISTINCT + 64 ), 22 * + COUNT ( * ) + 25 + + 64 * - + 8 AS col0
----
64
-465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT ALL + NULLIF ( 47, + - COALESCE ( + - 90, + - 10, - 23 + 46 ) + - ( + CAST( + 9 AS SIGNED ) ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL + NULLIF ( 47, + - COALESCE ( + - 90, + - 10, - 23 + 46 ) + - ( + CAST ( + 9 AS INTEGER ) ) ) AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9066
SELECT + ( - 71 ) DIV 34 * 25 DIV 15 - - + 23
----
20

skipif mysql # not compatible
query I rowsort label-9066
SELECT + ( - 71 ) / 34 * 25 / 15 - - + 23
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9067
SELECT ALL CASE + - NULLIF ( + - 2, 12 * 99 * - SUM( DISTINCT + 87 ) * - 55 ) WHEN - CASE 10 WHEN 37 * - CAST( 81 AS SIGNED ) - + 72 THEN + 1 - COUNT( * ) / 39 END THEN 98 WHEN + ( + AVG ( 23 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL CASE + - NULLIF ( + - 2, 12 * 99 * - SUM ( DISTINCT + 87 ) * - 55 ) WHEN - CASE 10 WHEN 37 * - CAST ( 81 AS INTEGER ) - + 72 THEN + 1 - COUNT ( * ) / 39 END THEN 98 WHEN + ( + AVG ( 23 ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9068
SELECT DISTINCT - 71 * - 94 + 44 * - + 2 DIV + 98 + 38 DIV + 41 + + 43 + + COUNT( 50 )
----
6718

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT - 71 * - 94 + 44 * - + 2 / + 98 + 38 / + 41 + + 43 + + COUNT ( 50 )
----
6718

onlyif mysql # DIV for integer division: 
query I rowsort label-9069
SELECT ALL 12 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL 12 / - 71
----
0

query I rowsort
SELECT - 24 * + 25 * + 53
----
-31800

query I rowsort
SELECT DISTINCT - 92 + - 60
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9072
SELECT + NULLIF ( + ( + - NULLIF ( + - 6, - + 82 * - - CASE 69 WHEN CAST( NULL AS SIGNED ) THEN 17 ELSE - 3 * + 49 END ) ), - COUNT( * ) ) - + 74 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-9072
SELECT + NULLIF ( + ( + - NULLIF ( + - 6, - + 82 * - - CASE 69 WHEN CAST ( NULL AS INTEGER ) THEN 17 ELSE - 3 * + 49 END ) ), - COUNT ( * ) ) - + 74 AS col1
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9073
SELECT - 88 DIV - + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-9073
SELECT - 88 / - + COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT DISTINCT - 93 + + 5 - + 18 + + COALESCE ( 4, - COALESCE ( + 56, - COUNT( * ) ) )
----
-102

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT - 93 + + 5 - + 18 + + COALESCE ( 4, - COALESCE ( + 56, - COUNT ( * ) ) )
----
-102

query I rowsort
SELECT DISTINCT ( - ( + 76 ) )
----
-76

query I rowsort
SELECT DISTINCT + 48 + - - NULLIF ( - 52, - 61 + 98 ) + + 4
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9077
SELECT - 34 * + + CAST( NULL AS DECIMAL ) * - + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9077
SELECT - 34 * + + CAST ( NULL AS REAL ) * - + 99 AS col1
----
NULL

query I rowsort
SELECT ALL + 30 + 91 AS col0
----
121

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9079
SELECT ALL 31 + CAST( NULL AS DECIMAL ) AS col2, 34 AS col0
----
NULL
34

skipif mysql # not compatible
query II rowsort label-9079
SELECT ALL 31 + CAST ( NULL AS REAL ) AS col2, 34 AS col0
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT MAX( ALL + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-9080
SELECT MAX ( ALL + 5 )
----
5

query I rowsort
SELECT - 45 + + 75 AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT + NULLIF ( - - ( CAST( - 76 AS SIGNED ) ), + 93 - + + 98 * - NULLIF ( 69, - + 11 / 56 ) + 54 ) * 68
----
-5168

skipif mysql # not compatible
query I rowsort label-9082
SELECT + NULLIF ( - - ( CAST ( - 76 AS INTEGER ) ), + 93 - + + 98 * - NULLIF ( 69, - + 11 / 56 ) + 54 ) * 68
----
-5168

query I rowsort
SELECT - + ( + 92 )
----
-92

query I rowsort
SELECT + 28 - - 43 AS col1
----
71

query I rowsort
SELECT - 72 + 62
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT - + ( - + COUNT( * ) ) * - - 52 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-9086
SELECT - + ( - + COUNT ( * ) ) * - - 52 AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9087
SELECT - + NULLIF ( - CAST( - 42 AS SIGNED ), - - 38 ) * 12 + - 16
----
-520

skipif mysql # not compatible
query I rowsort label-9087
SELECT - + NULLIF ( - CAST ( - 42 AS INTEGER ), - - 38 ) * 12 + - 16
----
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT DISTINCT - 21 * - + 70 + - + ( + 63 ) - + + 47 * + COUNT( * ) * - 50 * + 58 * 3 * + 84 + + 9 * 31 AS col2
----
34349286

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT - 21 * - + 70 + - + ( + 63 ) - + + 47 * + COUNT ( * ) * - 50 * + 58 * 3 * + 84 + + 9 * 31 AS col2
----
34349286

onlyif mysql # DIV for integer division: 
query III rowsort label-9089
SELECT + 42 DIV + 61 + - ( 26 ), + 10 AS col1, - 4 AS col2
----
-26
10
-4

skipif mysql # not compatible
query III rowsort label-9089
SELECT + 42 / + 61 + - ( 26 ), + 10 AS col1, - 4 AS col2
----
-26
10
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT + 17 * - 16 + + - 39 + 60 + - MIN( - - 38 ) * - 53
----
1763

skipif mysql # not compatible
query I rowsort label-9090
SELECT + 17 * - 16 + + - 39 + 60 + - MIN ( - - 38 ) * - 53
----
1763

onlyif mysql # aggregate syntax: 
query II rowsort label-9091
SELECT + - 18 + COUNT( * ), + 72 * - 18 AS col0
----
-17
-1296

skipif mysql # not compatible
query II rowsort label-9091
SELECT + - 18 + COUNT ( * ), + 72 * - 18 AS col0
----
-17
-1296

query I rowsort
SELECT ALL + - ( - 31 ) AS col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9093
SELECT + 44 DIV 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9093
SELECT + 44 / 60 AS col2
----
0

query I rowsort
SELECT - 83 * 17 * + - 51
----
71961

onlyif mysql # DIV for integer division: 
query I rowsort label-9095
SELECT DISTINCT + 5 DIV 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT + 5 / 49 AS col1
----
0

query I rowsort
SELECT ALL + - ( + 5 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT + + 41 * + COUNT( * ) * - 75 AS col0
----
-3075

skipif mysql # not compatible
query I rowsort label-9097
SELECT + + 41 * + COUNT ( * ) * - 75 AS col0
----
-3075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9098
SELECT CAST( - - 57 AS SIGNED ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-9098
SELECT CAST ( - - 57 AS INTEGER ) AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9099
SELECT CASE - CAST( + 94 AS DECIMAL ) WHEN 68 THEN + ( + + 74 ) - - AVG ( - ( 41 ) ) - 17 * 44 WHEN MIN( 35 ) THEN NULL ELSE NULL END * CASE WHEN NOT 72 NOT BETWEEN ( - NULLIF ( + NULLIF ( AVG ( - 75 ), 21 * + 8 ), + 61 + + 26 ) ) AND ( 25 ) THEN MIN( - 60 ) WHEN NOT ( - 11 ) <= + NULLIF ( 43, - 96 ) THEN + 37 + - 99 END + - COUNT( * ) * + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9099
SELECT CASE - CAST ( + 94 AS REAL ) WHEN 68 THEN + ( + + 74 ) - - AVG ( - ( 41 ) ) - 17 * 44 WHEN MIN ( 35 ) THEN NULL ELSE NULL END * CASE WHEN NOT 72 NOT BETWEEN ( - NULLIF ( + NULLIF ( AVG ( - 75 ), 21 * + 8 ), + 61 + + 26 ) ) AND ( 25 ) THEN MIN ( - 60 ) WHEN NOT ( - 11 ) <= + NULLIF ( 43, - 96 ) THEN + 37 + - 99 END + - COUNT ( * ) * + 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT DISTINCT COUNT( * ) * - - 99 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT COUNT ( * ) * - - 99 AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9101
SELECT ALL 66 + + - CAST( NULL AS SIGNED ) / - ( + + COALESCE ( - - 19, AVG ( DISTINCT 43 ), + ( - 73 ) * ( NULLIF ( + 93, + 76 ) ) + 69 + + 77 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL 66 + + - CAST ( NULL AS INTEGER ) / - ( + + COALESCE ( - - 19, AVG ( DISTINCT 43 ), + ( - 73 ) * ( NULLIF ( + 93, + 76 ) ) + 69 + + 77 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9102
SELECT 71 AS col0, - CASE + + COUNT( * ) WHEN + + 86 THEN - + 27 * - - 45 * - + 4 + - COUNT( * ) * 9 WHEN + 54 + + COUNT( * ) * + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END + 16 * COALESCE ( - 99, - 62 * 70, - ( ( + 82 ) ) )
----
71
NULL

skipif mysql # not compatible
query II rowsort label-9102
SELECT 71 AS col0, - CASE + + COUNT ( * ) WHEN + + 86 THEN - + 27 * - - 45 * - + 4 + - COUNT ( * ) * 9 WHEN + 54 + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + 16 * COALESCE ( - 99, - 62 * 70, - ( ( + 82 ) ) )
----
71
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9103
SELECT CAST( - 62 AS SIGNED ) * + 58 col1
----
-3596

skipif mysql # not compatible
query I rowsort label-9103
SELECT CAST ( - 62 AS INTEGER ) * + 58 col1
----
-3596

query I rowsort
SELECT DISTINCT 71 + - + 71 col2
----
0

query I rowsort
SELECT 3 * + 63 col2
----
189

query II rowsort
SELECT 57, + 50 AS col1
----
57
50

query I rowsort
SELECT ALL 6 + - 81
----
-75

query I rowsort
SELECT 80 + 24
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT ( - COUNT( * ) ) + + - 0 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9109
SELECT ( - COUNT ( * ) ) + + - 0 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9110
SELECT 18 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT 18 * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9111
SELECT 24 + - COUNT( ALL + 55 ) AS col2, 40 + 52
----
23
92

skipif mysql # not compatible
query II rowsort label-9111
SELECT 24 + - COUNT ( ALL + 55 ) AS col2, 40 + 52
----
23
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9112
SELECT DISTINCT 58 DIV + COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT 58 / + COUNT ( * ) AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9113
SELECT COUNT( * ) * - - CASE - - 26 WHEN - 43 THEN 79 * - 57 WHEN - 29 + + + CAST( NULL AS SIGNED ) THEN NULL WHEN + 10 + - 21 THEN - 20 * + 64 WHEN COUNT( DISTINCT - 85 ) DIV - NULLIF ( - COUNT( * ) * 16, 54 ) THEN NULL ELSE 46 DIV 42 + 92 END AS col2
----
93

skipif mysql # not compatible
query I rowsort label-9113
SELECT COUNT ( * ) * - - CASE - - 26 WHEN - 43 THEN 79 * - 57 WHEN - 29 + + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 10 + - 21 THEN - 20 * + 64 WHEN COUNT ( DISTINCT - 85 ) / - NULLIF ( - COUNT ( * ) * 16, 54 ) THEN NULL ELSE 46 / 42 + 92 END AS col2
----
93

query I rowsort
SELECT + 99 + 22 col0
----
121

query II rowsort
SELECT + 30 AS col0, 36
----
30
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT COUNT( * ) + - + 78 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-9116
SELECT COUNT ( * ) + - + 78 AS col0
----
-77

query I rowsort
SELECT ALL + + CASE - 79 WHEN 2 THEN NULL WHEN - 87 THEN - - ( - 67 ) / + 44 - 24 WHEN 75 + + - 27 THEN 53 END - - 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT 9 * + - MIN( - 11 ) * + - 25
----
-2475

skipif mysql # not compatible
query I rowsort label-9118
SELECT 9 * + - MIN ( - 11 ) * + - 25
----
-2475

onlyif mysql # DIV for integer division: 
query I rowsort label-9119
SELECT + 26 + - + 44 DIV + - 65
----
26

skipif mysql # not compatible
query I rowsort label-9119
SELECT + 26 + - + 44 / + - 65
----
26

query II rowsort
SELECT 93 col2, 92 * - - 81
----
93
7452

query I rowsort
SELECT DISTINCT - + ( + 8 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9122
SELECT DISTINCT - COUNT( * ) AS col1, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-9122
SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) AS col2
----
-1
1

query I rowsort
SELECT 9 * 88 AS col1
----
792

query I rowsort
SELECT - 59 - - + 57
----
-2

query I rowsort
SELECT ALL - 76 * + 59 AS col0
----
-4484

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT + COUNT( * ) - + NULLIF ( + + CASE 86 WHEN + 41 / - 69 THEN 58 ELSE NULL END, - NULLIF ( + 0, + - 93 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9126
SELECT + COUNT ( * ) - + NULLIF ( + + CASE 86 WHEN + 41 / - 69 THEN 58 ELSE NULL END, - NULLIF ( + 0, + - 93 ) )
----
NULL

query II rowsort
SELECT 48 AS col0, 73 * 41 col2
----
48
2993

query I rowsort
SELECT ALL + 65 + 31
----
96

query II rowsort
SELECT + 48 col0, ( - 74 ) AS col2
----
48
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9130
SELECT 80 DIV - 31
----
-2

skipif mysql # not compatible
query I rowsort label-9130
SELECT 80 / - 31
----
-2

query I rowsort
SELECT 83 + 3
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9132
SELECT COALESCE ( CAST( - + 32 AS SIGNED ), + 90 ) - + 2
----
-34

skipif mysql # not compatible
query I rowsort label-9132
SELECT COALESCE ( CAST ( - + 32 AS INTEGER ), + 90 ) - + 2
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9133
SELECT ALL SUM( DISTINCT + 0 ) DIV + + 29
----
0

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL SUM ( DISTINCT + 0 ) / + + 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT COALESCE ( - + 46, - 28 ) + + 98 - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-9134
SELECT COALESCE ( - + 46, - 28 ) + + 98 - COUNT ( * )
----
51

query I rowsort
SELECT ALL - 48 + + 63
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9136
SELECT DISTINCT + MAX( + - 36 ) DIV 49 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT + MAX ( + - 36 ) / 49 * + COUNT ( * )
----
0

query I rowsort
SELECT ALL 53 * 12
----
636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9138
SELECT 28 + - MIN( 6 ) + + 80 + - COUNT( DISTINCT - 14 ) + + - 3 * + - COALESCE ( + 87, + - COUNT( DISTINCT + - 42 ) DIV + 97 + CASE ( + COUNT( * ) ) WHEN 66 THEN NULL ELSE - ( NULLIF ( + CAST( 96 AS SIGNED ), - 45 ) ) END * 33 ) * 48 * 28 AS col2
----
350885

skipif mysql # not compatible
query I rowsort label-9138
SELECT 28 + - MIN ( 6 ) + + 80 + - COUNT ( DISTINCT - 14 ) + + - 3 * + - COALESCE ( + 87, + - COUNT ( DISTINCT + - 42 ) / + 97 + CASE ( + COUNT ( * ) ) WHEN 66 THEN NULL ELSE - ( NULLIF ( + CAST ( 96 AS INTEGER ), - 45 ) ) END * 33 ) * 48 * 28 AS col2
----
350885

query I rowsort
SELECT ALL 5 * - 48 * - - 74
----
-17760

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ALL 17 * COUNT( ALL 0 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL 17 * COUNT ( ALL 0 ) AS col1
----
17

query I rowsort
SELECT 5 - - COALESCE ( - + 91, ( - 4 ) )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT - MIN( DISTINCT - - 76 ) col0
----
-76

skipif mysql # not compatible
query I rowsort label-9142
SELECT - MIN ( DISTINCT - - 76 ) col0
----
-76

query II rowsort
SELECT DISTINCT 84 AS col2, 42 * 33 AS col0
----
84
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT + MAX( - - ( - COALESCE ( 3, 35 ) ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9144
SELECT + MAX ( - - ( - COALESCE ( 3, 35 ) ) ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT DISTINCT CASE + 68 WHEN + 76 + + 11 THEN NULL WHEN - ( - 97 ) THEN NULL WHEN - + ( - ( - + 36 ) ) THEN - MAX( + + 13 ) * - COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT CASE + 68 WHEN + 76 + + 11 THEN NULL WHEN - ( - 97 ) THEN NULL WHEN - + ( - ( - + 36 ) ) THEN - MAX ( + + 13 ) * - COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9146
SELECT DISTINCT - 52, + COUNT( * ) AS col1
----
-52
1

skipif mysql # not compatible
query II rowsort label-9146
SELECT DISTINCT - 52, + COUNT ( * ) AS col1
----
-52
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9147
SELECT ALL - 32 DIV + + 64
----
0

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL - 32 / + + 64
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9148
SELECT 54 - - 58 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT 54 - - 58 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9149
SELECT 0 - + SUM( ALL - + 70 ) * - CAST( - SUM( DISTINCT - 44 ) AS SIGNED ) * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + CAST( - - 25 AS SIGNED ) + - - 17 - 30 * 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT 0 - + SUM ( ALL - + 70 ) * - CAST ( - SUM ( DISTINCT - 44 ) AS INTEGER ) * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + CAST ( - - 25 AS INTEGER ) + - - 17 - 30 * 81 AS col0
----
NULL

query I rowsort
SELECT ALL + 82 * + - 43 * - 7
----
24682

query I rowsort
SELECT - 90 * + + 74
----
-6660

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT COUNT( * ) + - + 84 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-9152
SELECT COUNT ( * ) + - + 84 AS col2
----
-83

query I rowsort
SELECT + 56 + - 49 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT ( 34 ) - - ( - COUNT( * ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9154
SELECT ( 34 ) - - ( - COUNT ( * ) ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT DISTINCT - 47 * COUNT( * ) * 72 * - - 20
----
-67680

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT - 47 * COUNT ( * ) * 72 * - - 20
----
-67680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9156
SELECT COALESCE ( 56, 58, 45 DIV 94 ) * + - COALESCE ( + MAX( DISTINCT 74 ), + COUNT( * ), + - 94 + - + SUM( CAST( + 84 AS SIGNED ) ) DIV + 55 ) + - 48 + 67 AS col1
----
-4125

skipif mysql # not compatible
query I rowsort label-9156
SELECT COALESCE ( 56, 58, 45 / 94 ) * + - COALESCE ( + MAX ( DISTINCT 74 ), + COUNT ( * ), + - 94 + - + SUM ( CAST ( + 84 AS INTEGER ) ) / + 55 ) + - 48 + 67 AS col1
----
-4125

query I rowsort
SELECT ALL 87 * + 17 + - 27 + - + 87
----
1365

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ALL 91 * - 32 + - COALESCE ( + 15, - 3 + - 88 + - - 21, SUM( - 75 ) ) + 33 + 83 * COUNT( * ) AS col0
----
-2811

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL 91 * - 32 + - COALESCE ( + 15, - 3 + - 88 + - - 21, SUM ( - 75 ) ) + 33 + 83 * COUNT ( * ) AS col0
----
-2811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9159
SELECT DISTINCT ( + 81 ) * - CAST( NULL AS SIGNED ) * + 61 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT ( + 81 ) * - CAST ( NULL AS INTEGER ) * + 61 + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9160
SELECT + 95 DIV - NULLIF ( 91, - 36 + - 40 - - + 65 ) + + 12 + - 65 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-9160
SELECT + 95 / - NULLIF ( 91, - 36 + - 40 - - + 65 ) + + 12 + - 65 AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9161
SELECT DISTINCT + CAST( - COALESCE ( + 13, + SUM( + 23 ) - + COALESCE ( + 13, - 65, - 44 + + - 82 + + 32 + + + 51 + + 18 / CASE 24 - - 64 WHEN ( COUNT( * ) ) THEN COUNT( * ) WHEN + ( ( - 50 ) ) THEN NULL END * CAST( + ( + 22 ) AS DECIMAL ) ) - - 63 ) AS SIGNED ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT + CAST ( - COALESCE ( + 13, + SUM ( + 23 ) - + COALESCE ( + 13, - 65, - 44 + + - 82 + + 32 + + + 51 + + 18 / CASE 24 - - 64 WHEN ( COUNT ( * ) ) THEN COUNT ( * ) WHEN + ( ( - 50 ) ) THEN NULL END * CAST ( + ( + 22 ) AS REAL ) ) - - 63 ) AS INTEGER ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT - 84 + - MAX( + 3 )
----
-87

skipif mysql # not compatible
query I rowsort label-9162
SELECT - 84 + - MAX ( + 3 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT COALESCE ( - COALESCE ( - 48, + + COALESCE ( - ( COUNT( * ) ), + 43 + - + 42 ) ), - 98 * + MIN( - 28 ) + + COUNT( * ) * CASE COUNT( * ) WHEN NULLIF ( 78, 52 * + 35 ) THEN 37 WHEN + 76 THEN NULL ELSE + 66 END, 62 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-9163
SELECT COALESCE ( - COALESCE ( - 48, + + COALESCE ( - ( COUNT ( * ) ), + 43 + - + 42 ) ), - 98 * + MIN ( - 28 ) + + COUNT ( * ) * CASE COUNT ( * ) WHEN NULLIF ( 78, 52 * + 35 ) THEN 37 WHEN + 76 THEN NULL ELSE + 66 END, 62 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT 79 * - COUNT( * ) + + - CASE - + 84 WHEN 76 / 47 THEN - 66 WHEN - 41 * - SUM( - 26 ) * - 32 + COUNT( * ) + ( - MAX( + 61 ) ) THEN COUNT( * ) * 38 END * - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT 79 * - COUNT ( * ) + + - CASE - + 84 WHEN 76 / 47 THEN - 66 WHEN - 41 * - SUM ( - 26 ) * - 32 + COUNT ( * ) + ( - MAX ( + 61 ) ) THEN COUNT ( * ) * 38 END * - 33 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 88 * + 56
----
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT DISTINCT + 79 * + 80 * + + COUNT( * ) * - 95 * - - 22 + + + 27
----
-13208773

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT + 79 * + 80 * + + COUNT ( * ) * - 95 * - - 22 + + + 27
----
-13208773

query I rowsort
SELECT - 41 * 57 AS col1
----
-2337

query I rowsort
SELECT ALL + 7 * 45 * - 80
----
-25200

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT + MAX( - + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-9169
SELECT + MAX ( - + 37 )
----
-37

query I rowsort
SELECT ALL + ( - + 44 ) AS col1
----
-44

query I rowsort
SELECT ALL + 69 * - + 30 - - - 98 * 21 + - 19 col0
----
-4147

query I rowsort
SELECT - 61 * 78 - - + 90 * - 47 * + 37
----
-161268

onlyif mysql # DIV for integer division: 
query I rowsort label-9173
SELECT ALL + - 27 DIV + 87 * - 26
----
0

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL + - 27 / + 87 * - 26
----
0

query I rowsort
SELECT + 47 + + + 92
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT DISTINCT - MAX( - 84 ) col1
----
84

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT - MAX ( - 84 ) col1
----
84

query I rowsort
SELECT ALL CASE AVG ( + 7 ) WHEN - 96 * - 85 THEN - + NULLIF ( + 61, + 38 / 65 * + 96 + + 63 + - 0 ) ELSE + 26 END
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9177
SELECT + CAST( - + 41 AS SIGNED ) + + NULLIF ( NULLIF ( + - NULLIF ( 44, - - 25 * - 31 ), + 29 ), - - 22 ) * - 75 AS col2
----
3259

skipif mysql # not compatible
query I rowsort label-9177
SELECT + CAST ( - + 41 AS INTEGER ) + + NULLIF ( NULLIF ( + - NULLIF ( 44, - - 25 * - 31 ), + 29 ), - - 22 ) * - 75 AS col2
----
3259

onlyif mysql # aggregate syntax: 
query II rowsort label-9178
SELECT + SUM( ALL + 70 ) * + 2 AS col0, + 27
----
140
27

skipif mysql # not compatible
query II rowsort label-9178
SELECT + SUM ( ALL + 70 ) * + 2 AS col0, + 27
----
140
27

query I rowsort
SELECT ALL 37 + - - 21 * 7
----
184

query I rowsort
SELECT DISTINCT NULLIF ( 1, + - 16 ) + - 52
----
-51

query II rowsort
SELECT ALL - 99 + ( + 43 ) * 70 + + - 0 AS col2, + ( + 65 ) AS col2
----
2911
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9182
SELECT ALL + 80 DIV NULLIF ( + 51, + - 67 + 1 * - 12 * NULLIF ( - 15, 38 ) ) - - + 66 - 96 + - MIN( ALL + 86 )
----
-115

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL + 80 / NULLIF ( + 51, + - 67 + 1 * - 12 * NULLIF ( - 15, 38 ) ) - - + 66 - 96 + - MIN ( ALL + 86 )
----
-115

onlyif mysql # DIV for integer division: 
query I rowsort label-9183
SELECT + 51 DIV 51 - - + 2
----
3

skipif mysql # not compatible
query I rowsort label-9183
SELECT + 51 / 51 - - + 2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9184
SELECT + CAST( - + 65 AS SIGNED ) AS col1, ( - 13 ) AS col1
----
-65
-13

skipif mysql # not compatible
query II rowsort label-9184
SELECT + CAST ( - + 65 AS INTEGER ) AS col1, ( - 13 ) AS col1
----
-65
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9185
SELECT CAST( + + SUM( ALL 10 ) AS SIGNED ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-9185
SELECT CAST ( + + SUM ( ALL 10 ) AS INTEGER ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT + COUNT( * ) * + ( - 15 ) * 36 * 1 AS col2
----
-540

skipif mysql # not compatible
query I rowsort label-9186
SELECT + COUNT ( * ) * + ( - 15 ) * 36 * 1 AS col2
----
-540

query I rowsort
SELECT - 71 + + 96 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT ALL 48 * + - CASE + 39 WHEN COUNT( * ) THEN NULL WHEN + COUNT( * ) * 27 + + COUNT( * ) + - 57 / + 24 * + + 16 THEN - COUNT( * ) END * 98 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL 48 * + - CASE + 39 WHEN COUNT ( * ) THEN NULL WHEN + COUNT ( * ) * 27 + + COUNT ( * ) + - 57 / + 24 * + + 16 THEN - COUNT ( * ) END * 98 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT ALL 6 * COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL 6 * COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT - 18 - ( - + SUM( + CASE - 25 WHEN 47 THEN - - 92 - - + 62 / 42 END ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9190
SELECT - 18 - ( - + SUM ( + CASE - 25 WHEN 47 THEN - - 92 - - + 62 / 42 END ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT - 94 - - COUNT( * ) * COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-9191
SELECT - 94 - - COUNT ( * ) * COUNT ( * )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9192
SELECT - AVG ( ALL + - 28 ) * - 1 / + CAST( NULL AS SIGNED ) + 45 * + + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9192
SELECT - AVG ( ALL + - 28 ) * - 1 / + CAST ( NULL AS INTEGER ) + 45 * + + 74 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9193
SELECT + CAST( 8 AS SIGNED ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9193
SELECT + CAST ( 8 AS INTEGER ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT NULLIF ( + COUNT( * ), - 1 + + 93 + + 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9194
SELECT NULLIF ( + COUNT ( * ), - 1 + + 93 + + 80 ) AS col1
----
1

query I rowsort
SELECT - 52 * + 26
----
-1352

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL + 40 * + - 54 * + + COUNT( * )
----
-2160

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL + 40 * + - 54 * + + COUNT ( * )
----
-2160

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9197
SELECT DISTINCT + ( + 33 ) DIV - 21, CAST( NULL AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9197
SELECT DISTINCT + ( + 33 ) / - 21, CAST ( NULL AS INTEGER ) AS col1
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9198
SELECT DISTINCT + CAST( 88 AS SIGNED ) * 55
----
4840

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT + CAST ( 88 AS INTEGER ) * 55
----
4840

query I rowsort
SELECT ALL + 4 * + - 87 AS col2
----
-348

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9200
SELECT - CASE - 29 WHEN - 44 / + CASE - 73 WHEN + ( - 60 ) * - 6 * 26 THEN NULL WHEN ( 87 ) THEN - - 26 + - 69 ELSE NULL END + - CAST( NULL AS SIGNED ) * 23 THEN - ( ( CAST( NULL AS DECIMAL ) ) ) END - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT - CASE - 29 WHEN - 44 / + CASE - 73 WHEN + ( - 60 ) * - 6 * 26 THEN NULL WHEN ( 87 ) THEN - - 26 + - 69 ELSE NULL END + - CAST ( NULL AS INTEGER ) * 23 THEN - ( ( CAST ( NULL AS REAL ) ) ) END - 50 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9201
SELECT - + CAST( - CAST( 13 AS SIGNED ) AS SIGNED ) col0, 66 + + - 43 * 63 + - MAX( + 80 )
----
13
-2723

skipif mysql # not compatible
query II rowsort label-9201
SELECT - + CAST ( - CAST ( 13 AS INTEGER ) AS INTEGER ) col0, 66 + + - 43 * 63 + - MAX ( + 80 )
----
13
-2723

onlyif mysql # DIV for integer division: 
query I rowsort label-9202
SELECT - - 60 DIV 67 * 70 * - - 66 col1
----
0

skipif mysql # not compatible
query I rowsort label-9202
SELECT - - 60 / 67 * 70 * - - 66 col1
----
0

query I rowsort
SELECT - 11 + - - 75 * 8
----
589

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT + 81 * - NULLIF ( + - 66, - ( - 89 ) * - 94 - COUNT( * ) ) AS col0
----
5346

skipif mysql # not compatible
query I rowsort label-9204
SELECT + 81 * - NULLIF ( + - 66, - ( - 89 ) * - 94 - COUNT ( * ) ) AS col0
----
5346

onlyif mysql # aggregate syntax: 
query II rowsort label-9205
SELECT - + COUNT( * ) col0, 30 AS col0
----
-1
30

skipif mysql # not compatible
query II rowsort label-9205
SELECT - + COUNT ( * ) col0, 30 AS col0
----
-1
30

query II rowsort
SELECT - 28, ( - - 72 ) * + + 42 - 61 - 4 col0
----
-28
2959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9207
SELECT ALL + CAST( + CAST( + - ( - + 84 ) AS SIGNED ) AS SIGNED ) + - + 59 col0
----
25

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL + CAST ( + CAST ( + - ( - + 84 ) AS INTEGER ) AS INTEGER ) + - + 59 col0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9208
SELECT DISTINCT - + 83 DIV + 42
----
-1

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT - + 83 / + 42
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT DISTINCT - 61 + + 45 * COUNT( * ) * 3 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT - 61 + + 45 * COUNT ( * ) * 3 AS col2
----
74

query I rowsort
SELECT DISTINCT - 97 * + 64 * 36 * NULLIF ( - 36, 47 * - + 96 ) AS col2
----
8045568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9211
SELECT ALL COUNT( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL - + 8 + + 88 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT DISTINCT - CASE - COALESCE ( + 76, + - ( + - MIN( DISTINCT + 94 ) ) ) WHEN 98 * + - 52 THEN NULL WHEN - 39 - + 9 THEN - - 24 * - - MAX( - + ( - CASE + CASE + 37 WHEN - 44 THEN + COALESCE ( - 83, - 98 ) * - 37 ELSE + ( - 19 ) END WHEN + 37 THEN + 87 ELSE NULL END ) ) * 50 + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9213
SELECT DISTINCT - CASE - COALESCE ( + 76, + - ( + - MIN ( DISTINCT + 94 ) ) ) WHEN 98 * + - 52 THEN NULL WHEN - 39 - + 9 THEN - - 24 * - - MAX ( - + ( - CASE + CASE + 37 WHEN - 44 THEN + COALESCE ( - 83, - 98 ) * - 37 ELSE + ( - 19 ) END WHEN + 37 THEN + 87 ELSE NULL END ) ) * 50 + 99 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT CAST( NULL AS SIGNED ) - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT CAST ( NULL AS INTEGER ) - 97 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 7 * + 2 AS col0
----
14

query I rowsort
SELECT ALL - NULLIF ( + 6, + - COALESCE ( - 96, 83 / 25 ) ) AS col2
----
-6

query I rowsort
SELECT ALL 30 * 82 AS col2
----
2460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9218
SELECT 37 + - 35 + - - 90 * - CAST( NULL AS SIGNED ) * - NULLIF ( + COUNT( * ), + 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT 37 + - 35 + - - 90 * - CAST ( NULL AS INTEGER ) * - NULLIF ( + COUNT ( * ), + 35 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9219
SELECT 8 DIV - CAST( - 58 AS SIGNED ) * - - 33
----
0

skipif mysql # not compatible
query I rowsort label-9219
SELECT 8 / - CAST ( - 58 AS INTEGER ) * - - 33
----
0

query I rowsort
SELECT 44 * + - ( - + 19 ) AS col2
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT 14 + SUM( + 29 ) col1
----
43

skipif mysql # not compatible
query I rowsort label-9221
SELECT 14 + SUM ( + 29 ) col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9222
SELECT - SUM( 77 ) * - 18 + 70 + - 69 * - 73 - - 66 + + + CAST( + 24 AS SIGNED ) * NULLIF ( - + 60, + 60 ) DIV - 77 - 75 + + 94 AS col0
----
6596

skipif mysql # not compatible
query I rowsort label-9222
SELECT - SUM ( 77 ) * - 18 + 70 + - 69 * - 73 - - 66 + + + CAST ( + 24 AS INTEGER ) * NULLIF ( - + 60, + 60 ) / - 77 - 75 + + 94 AS col0
----
6596

onlyif mysql # DIV for integer division: 
query I rowsort label-9223
SELECT DISTINCT ( 1 ) * - + 40 DIV + 43 * + + 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT ( 1 ) * - + 40 / + 43 * + + 15 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT ALL 58 * - SUM( + 18 )
----
-1044

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL 58 * - SUM ( + 18 )
----
-1044

query I rowsort
SELECT ALL ( - ( 3 ) ) * + 31 AS col1
----
-93

query I rowsort
SELECT DISTINCT 93 + - 34 - + 22
----
37

query I rowsort
SELECT DISTINCT ( - NULLIF ( + 55, + 84 - 69 * - - 20 + 74 ) ) * 39
----
-2145

onlyif mysql # DIV for integer division: 
query I rowsort label-9228
SELECT ALL - 81 DIV - 65
----
1

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL - 81 / - 65
----
1

query I rowsort
SELECT 59 + 15 AS col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-9230
SELECT ALL - + ( - - 79 ) col1, - 52 * + + 26 - COUNT( * )
----
-79
-1353

skipif mysql # not compatible
query II rowsort label-9230
SELECT ALL - + ( - - 79 ) col1, - 52 * + + 26 - COUNT ( * )
----
-79
-1353

query I rowsort
SELECT - 43 * + + 47
----
-2021

query I rowsort
SELECT 39 + - 88 * + 59 AS col1
----
-5153

query II rowsort
SELECT ALL - - 60 + + + 19 AS col1, - 84
----
79
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT COUNT( DISTINCT - 96 ) + 16 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9234
SELECT COUNT ( DISTINCT - 96 ) + 16 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT COALESCE ( - + 12, - CASE COUNT( * ) WHEN - + 86 * + 4 THEN 2 * + 78 + + 35 + + 73 + NULLIF ( + 18, + 72 ) - - 18 WHEN - 49 THEN 82 ELSE NULL END * + 46 ) - + 93 AS col1
----
-105

skipif mysql # not compatible
query I rowsort label-9235
SELECT COALESCE ( - + 12, - CASE COUNT ( * ) WHEN - + 86 * + 4 THEN 2 * + 78 + + 35 + + 73 + NULLIF ( + 18, + 72 ) - - 18 WHEN - 49 THEN 82 ELSE NULL END * + 46 ) - + 93 AS col1
----
-105

query I rowsort
SELECT + 9 * 85 AS col0
----
765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9237
SELECT + 51 * + CAST( NULL AS SIGNED ) + COUNT( * ) * - 55 * - CAST( NULL AS SIGNED ) + - - 82 - ( 29 ) * + COUNT( * ) + - - NULLIF ( - AVG ( + 33 ), + ( + 38 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT + 51 * + CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 55 * - CAST ( NULL AS INTEGER ) + - - 82 - ( 29 ) * + COUNT ( * ) + - - NULLIF ( - AVG ( + 33 ), + ( + 38 ) ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9238
SELECT ALL - 48 * + + 3 + - 9 + ( + 65 ) DIV - COUNT( - ( - - COALESCE ( - - COALESCE ( + - 37, + 66 ), + 65 * + 48 * - 37 * - 0 - - 60 * + 35 ) ) )
----
-218

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL - 48 * + + 3 + - 9 + ( + 65 ) / - COUNT ( - ( - - COALESCE ( - - COALESCE ( + - 37, + 66 ), + 65 * + 48 * - 37 * - 0 - - 60 * + 35 ) ) )
----
-218

query II rowsort
SELECT DISTINCT + + 18 + 6 AS col0, 56 col0
----
24
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9240
SELECT - 59 + + + 41 * - - 66 + 58 AS col0, - 22 + - CAST( - ( - 53 ) AS SIGNED ) AS col0
----
2705
-75

skipif mysql # not compatible
query II rowsort label-9240
SELECT - 59 + + + 41 * - - 66 + 58 AS col0, - 22 + - CAST ( - ( - 53 ) AS INTEGER ) AS col0
----
2705
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9241
SELECT ALL - 99 * ( + 81 ) DIV + - 76 + - - 31 AS col0
----
136

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL - 99 * ( + 81 ) / + - 76 + - - 31 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT COUNT( * ) * - 34 + COALESCE ( - 97, - COALESCE ( + 54, 85 ) * - 52 ) + 87
----
-44

skipif mysql # not compatible
query I rowsort label-9242
SELECT COUNT ( * ) * - 34 + COALESCE ( - 97, - COALESCE ( + 54, 85 ) * - 52 ) + 87
----
-44

query I rowsort
SELECT 78 * + + 95 + + + 42 - 38 + + - 87
----
7327

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9244
SELECT COUNT( * ) + 78 DIV - ( + 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-9244
SELECT COUNT ( * ) + 78 / - ( + 39 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT + 9 + - CASE - 66 WHEN 64 * + + COUNT( * ) + + 30 + + - NULLIF ( + - ( + - NULLIF ( - 15, 37 ) ), + MIN( DISTINCT - 3 ) ) THEN + + 93 * + 14 END + ( - 61 + 14 ) / 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT + 9 + - CASE - 66 WHEN 64 * + + COUNT ( * ) + + 30 + + - NULLIF ( + - ( + - NULLIF ( - 15, 37 ) ), + MIN ( DISTINCT - 3 ) ) THEN + + 93 * + 14 END + ( - 61 + 14 ) / 87
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9246
SELECT ALL - 16 - - 0 DIV - - 6
----
-16

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL - 16 - - 0 / - - 6
----
-16

query I rowsort
SELECT 57 * 66
----
3762

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9248
SELECT DISTINCT 35, - CAST( NULL AS SIGNED ) AS col1
----
35
NULL

skipif mysql # not compatible
query II rowsort label-9248
SELECT DISTINCT 35, - CAST ( NULL AS INTEGER ) AS col1
----
35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT DISTINCT MAX( DISTINCT + 79 ) * - ( - 95 )
----
7505

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT MAX ( DISTINCT + 79 ) * - ( - 95 )
----
7505

onlyif mysql # aggregate syntax: 
query II rowsort label-9250
SELECT DISTINCT 90 AS col0, COUNT( * ) AS col0
----
90
1

skipif mysql # not compatible
query II rowsort label-9250
SELECT DISTINCT 90 AS col0, COUNT ( * ) AS col0
----
90
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT ALL - 48 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL - 48 / + 63
----
0

query I rowsort
SELECT DISTINCT - 76 * - 33 * 55 AS col2
----
137940

query I rowsort
SELECT ALL 53 * - 10
----
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT 21 * 77 - + COUNT( * ) + + 81 AS col1
----
1697

skipif mysql # not compatible
query I rowsort label-9254
SELECT 21 * 77 - + COUNT ( * ) + + 81 AS col1
----
1697

query I rowsort
SELECT 24 * - 75 AS col1
----
-1800

query I rowsort
SELECT - 49 * - 17 + - 55 + + 88 col2
----
866

query II rowsort
SELECT ALL - 98, - 57 AS col2
----
-98
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT ALL - CASE - - 37 WHEN + COUNT( * ) THEN - + 59 WHEN + COALESCE ( - COUNT( * ), - 46, - 43 ) THEN - 41 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL - CASE - - 37 WHEN + COUNT ( * ) THEN - + 59 WHEN + COALESCE ( - COUNT ( * ), - 46, - 43 ) THEN - 41 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ALL - COUNT( * ) * + MAX( ALL + NULLIF ( + 25, + 53 ) ) + + 8 * - + 94
----
-777

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL - COUNT ( * ) * + MAX ( ALL + NULLIF ( + 25, + 53 ) ) + + 8 * - + 94
----
-777

query I rowsort
SELECT ALL 17 * + - NULLIF ( + 48, 77 * - 65 ) + + + 13
----
-803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT DISTINCT CAST( + 14 AS SIGNED ) * 83 + + 3
----
1165

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT CAST ( + 14 AS INTEGER ) * 83 + + 3
----
1165

query I rowsort
SELECT ALL + 44 * + 2 + + 61 + + 19
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT MAX( DISTINCT - - 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-9263
SELECT MAX ( DISTINCT - - 39 ) AS col2
----
39

query I rowsort
SELECT ALL 4 + + ( + + 13 ) - + 7 col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT + - COUNT( 47 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9265
SELECT + - COUNT ( 47 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT - MIN( - 12 ) + + 38 + + ( + SUM( + - 22 ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-9266
SELECT - MIN ( - 12 ) + + 38 + + ( + SUM ( + - 22 ) ) AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9267
SELECT DISTINCT 33 + - COUNT( ALL + + ( - CASE - 11 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - 58 * + 44 THEN - 94 ELSE - - 32 END ) ) + MIN( + + 11 ) + + 5
----
48

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT 33 + - COUNT ( ALL + + ( - CASE - 11 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 58 * + 44 THEN - 94 ELSE - - 32 END ) ) + MIN ( + + 11 ) + + 5
----
48

query II rowsort
SELECT ALL - 63 * + 84 * + ( 50 ) * - 71, - 5 col1
----
18786600
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT ALL + + CASE - 22 WHEN - 65 * - ( - + 38 ) / + 15 + COALESCE ( + 14, 39, - + 85 * + + 57 / - - MAX( DISTINCT - 24 ) + 74 ) + - + 27 THEN MAX( ( + 26 ) ) WHEN + 32 THEN 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL + + CASE - 22 WHEN - 65 * - ( - + 38 ) / + 15 + COALESCE ( + 14, 39, - + 85 * + + 57 / - - MAX ( DISTINCT - 24 ) + 74 ) + - + 27 THEN MAX ( ( + 26 ) ) WHEN + 32 THEN 57 END
----
NULL

query I rowsort
SELECT DISTINCT + 94 + + 54 * 69
----
3820

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT + + 83 * + 48 * - COUNT( * ) AS col2
----
-3984

skipif mysql # not compatible
query I rowsort label-9271
SELECT + + 83 * + 48 * - COUNT ( * ) AS col2
----
-3984

query I rowsort
SELECT DISTINCT 99 + + 95 AS col0
----
194

query II rowsort
SELECT - 74 AS col1, + 77
----
-74
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9274
SELECT DISTINCT - + ( - AVG ( DISTINCT - 83 ) ) - - NULLIF ( + - CASE + - 23 WHEN 64 THEN + 91 * + - COUNT( * ) + - - 27 * - 6 WHEN - 30 * + 1 / + + 22 - - 77 + COUNT( * ) * - 86 THEN - 23 + + CAST( NULL AS DECIMAL ) * 91 ELSE NULL END, - 71 ) * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT - + ( - AVG ( DISTINCT - 83 ) ) - - NULLIF ( + - CASE + - 23 WHEN 64 THEN + 91 * + - COUNT ( * ) + - - 27 * - 6 WHEN - 30 * + 1 / + + 22 - - 77 + COUNT ( * ) * - 86 THEN - 23 + + CAST ( NULL AS REAL ) * 91 ELSE NULL END, - 71 ) * + 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9275
SELECT CAST( NULL AS SIGNED ) AS col2, 16 + + CASE - - 92 WHEN + 58 THEN NULL ELSE 32 * - COUNT( * ) END AS col0
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-9275
SELECT CAST ( NULL AS INTEGER ) AS col2, 16 + + CASE - - 92 WHEN + 58 THEN NULL ELSE 32 * - COUNT ( * ) END AS col0
----
NULL
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9276
SELECT + 1 * - CAST( ( - - 92 ) AS SIGNED ) col0
----
-92

skipif mysql # not compatible
query I rowsort label-9276
SELECT + 1 * - CAST ( ( - - 92 ) AS INTEGER ) col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT - - SUM( - 62 ) col0
----
-62

skipif mysql # not compatible
query I rowsort label-9277
SELECT - - SUM ( - 62 ) col0
----
-62

query I rowsort
SELECT ALL + NULLIF ( - 96, + 48 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT + + 31 + + 88 + + MIN( - 17 ) * - COUNT( * )
----
136

skipif mysql # not compatible
query I rowsort label-9279
SELECT + + 31 + + 88 + + MIN ( - 17 ) * - COUNT ( * )
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9280
SELECT - - CAST( NULL AS SIGNED ) * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT - - CAST ( NULL AS INTEGER ) * + 9
----
NULL

query I rowsort
SELECT + - 56 + - 58
----
-114

query I rowsort
SELECT - + COALESCE ( - - 56, - + 98, 65 ) AS col1
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9283
SELECT ALL + + COUNT( * ) - MAX( - CAST( - 86 AS SIGNED ) )
----
-85

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL + + COUNT ( * ) - MAX ( - CAST ( - 86 AS INTEGER ) )
----
-85

query I rowsort
SELECT ALL - + ( + 87 ) * 3 * + 4 col1
----
-1044

query I rowsort
SELECT - 46 - - - 35
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT ALL MIN( - 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL MIN ( - 50 ) AS col0
----
-50

query I rowsort
SELECT - 95 + 53 + - 0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9288
SELECT DISTINCT SUM( DISTINCT + NULLIF ( + CAST( - 27 AS SIGNED ), + CAST( NULL AS DECIMAL ) ) ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT SUM ( DISTINCT + NULLIF ( + CAST ( - 27 AS INTEGER ), + CAST ( NULL AS REAL ) ) ) AS col0
----
-27

query II rowsort
SELECT - ( + - 67 ), + ( - - 89 ) - - 28 AS col2
----
67
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9290
SELECT + 83 + + 86 * - ( - - 76 ) + - + CASE + - 44 WHEN 65 THEN NULL WHEN + COUNT( * ) * + + CAST( - - 18 AS SIGNED ) * 83 THEN + 61 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT + 83 + + 86 * - ( - - 76 ) + - + CASE + - 44 WHEN 65 THEN NULL WHEN + COUNT ( * ) * + + CAST ( - - 18 AS INTEGER ) * 83 THEN + 61 END AS col1
----
NULL

query II rowsort
SELECT - 47 * - - 79 AS col2, + ( 55 ) * + - ( + 12 ) AS col0
----
-3713
-660

query I rowsort
SELECT - 59 + - 34 + - 45 * + + ( 13 ) * + + 97 * - 4
----
226887

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT - MIN( DISTINCT - 32 ) - + 48 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-9293
SELECT - MIN ( DISTINCT - 32 ) - + 48 AS col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-9294
SELECT - 77 DIV - + ( 9 )
----
8

skipif mysql # not compatible
query I rowsort label-9294
SELECT - 77 / - + ( 9 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT - 35 + - 5 + - 84 + CAST( - 37 AS SIGNED ) col0
----
-161

skipif mysql # not compatible
query I rowsort label-9295
SELECT - 35 + - 5 + - 84 + CAST ( - 37 AS INTEGER ) col0
----
-161

onlyif mysql # DIV for integer division: 
query I rowsort label-9296
SELECT - 41 - 16 + 60 - + 94 DIV + 93
----
2

skipif mysql # not compatible
query I rowsort label-9296
SELECT - 41 - 16 + 60 - + 94 / + 93
----
2

query I rowsort
SELECT ( - ( + 6 ) )
----
-6

query II rowsort
SELECT DISTINCT + 75 AS col2, 26
----
75
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9299
SELECT ALL 13 * - 26 + - + COUNT( * ) * - CASE - CAST( NULL AS SIGNED ) WHEN + 33 THEN 89 * - + 99 + + - COUNT( * ) WHEN + 39 THEN NULL END + + 10 - - - 73 * - 44 * + ( + 74 ) - + 85 * 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL 13 * - 26 + - + COUNT ( * ) * - CASE - CAST ( NULL AS INTEGER ) WHEN + 33 THEN 89 * - + 99 + + - COUNT ( * ) WHEN + 39 THEN NULL END + + 10 - - - 73 * - 44 * + ( + 74 ) - + 85 * 44 AS col2
----
NULL

query I rowsort
SELECT 90 * - 85 + - + 52 AS col2
----
-7702

onlyif mysql # DIV for integer division: 
query I rowsort label-9301
SELECT DISTINCT + ( - + 85 ) DIV + + 92 col2
----
0

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT + ( - + 85 ) / + + 92 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT + SUM( ALL + - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-9302
SELECT + SUM ( ALL + - 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT ALL 82 * + MIN( DISTINCT 83 ) + 38
----
6844

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL 82 * + MIN ( DISTINCT 83 ) + 38
----
6844

query I rowsort
SELECT ALL 51 * - - 40 + - 10 AS col1
----
2030

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT ( + NULLIF ( 2, COUNT( * ) * COUNT( * ) * 23 ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9305
SELECT ( + NULLIF ( 2, COUNT ( * ) * COUNT ( * ) * 23 ) ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9306
SELECT CASE COALESCE ( CAST( NULL AS DECIMAL ), 26 + - CAST( NULL AS SIGNED ) + - - 34 + - 92 ) WHEN - 33 THEN - 22 * + + COUNT( - - ( - + 51 ) ) * COUNT( * ) + + 85 + 82 WHEN 4 THEN NULL END * 70 + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9306
SELECT CASE COALESCE ( CAST ( NULL AS REAL ), 26 + - CAST ( NULL AS INTEGER ) + - - 34 + - 92 ) WHEN - 33 THEN - 22 * + + COUNT ( - - ( - + 51 ) ) * COUNT ( * ) + + 85 + 82 WHEN 4 THEN NULL END * 70 + + 74
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9307
SELECT DISTINCT 56 * 27 + 45 + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) )
----
1557

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT 56 * 27 + 45 + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
1557

onlyif mysql # aggregate syntax: 
query II rowsort label-9308
SELECT ALL + + 8 col1, COUNT( * ) AS col2
----
8
1

skipif mysql # not compatible
query II rowsort label-9308
SELECT ALL + + 8 col1, COUNT ( * ) AS col2
----
8
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9309
SELECT + 57, + 82 + COUNT( * ) AS col1
----
57
83

skipif mysql # not compatible
query II rowsort label-9309
SELECT + 57, + 82 + COUNT ( * ) AS col1
----
57
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9310
SELECT - NULLIF ( 62, - + ( 28 ) ) * 9 + - NULLIF ( - + 48, - 42 - - 19 * - CASE + 3 WHEN + - 47 THEN + CAST( + 95 AS SIGNED ) END * + CAST( NULL AS SIGNED ) ) AS col2
----
-510

skipif mysql # not compatible
query I rowsort label-9310
SELECT - NULLIF ( 62, - + ( 28 ) ) * 9 + - NULLIF ( - + 48, - 42 - - 19 * - CASE + 3 WHEN + - 47 THEN + CAST ( + 95 AS INTEGER ) END * + CAST ( NULL AS INTEGER ) ) AS col2
----
-510

query I rowsort
SELECT ALL + - ( - 52 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9312
SELECT ALL - COUNT( ALL + - NULLIF ( - 86, - 8 - - 52 + 27 / + 83 ) ) * 20 - - MIN( ALL - CAST( 27 AS SIGNED ) ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL - COUNT ( ALL + - NULLIF ( - 86, - 8 - - 52 + 27 / + 83 ) ) * 20 - - MIN ( ALL - CAST ( 27 AS INTEGER ) ) AS col1
----
-47

query II rowsort
SELECT ALL + 22 * + 90 * - 64 - + 4 + - 16 * + + 56 AS col1, - 92
----
-127620
-92

query I rowsort
SELECT DISTINCT - ( - 78 ) * + 18
----
1404

query II rowsort
SELECT DISTINCT + 66 AS col0, + 28 AS col2
----
66
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT DISTINCT - - 99 * + + 91 * + 56 + - - COUNT( * ) + - 35 - - 99
----
504569

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT - - 99 * + + 91 * + 56 + - - COUNT ( * ) + - 35 - - 99
----
504569

query I rowsort
SELECT + - 71 * - 39 AS col1
----
2769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9318
SELECT + 21 * NULLIF ( - + COUNT( * ), + + 99 / - 82 + - CAST( NULL AS SIGNED ) + + COUNT( * ) )
----
-21

skipif mysql # not compatible
query I rowsort label-9318
SELECT + 21 * NULLIF ( - + COUNT ( * ), + + 99 / - 82 + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) )
----
-21

query I rowsort
SELECT DISTINCT + 88 * + + 56 * + CASE + 13 WHEN - - 22 + - ( - - ( + + 61 ) ) THEN + + ( - 94 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9320
SELECT + - COUNT( * ) + + - COALESCE ( + ( CAST( NULL AS SIGNED ) ), - 37 + + - SUM( DISTINCT - + CAST( - 96 AS SIGNED ) ) ) AS col0
----
132

skipif mysql # not compatible
query I rowsort label-9320
SELECT + - COUNT ( * ) + + - COALESCE ( + ( CAST ( NULL AS INTEGER ) ), - 37 + + - SUM ( DISTINCT - + CAST ( - 96 AS INTEGER ) ) ) AS col0
----
132

query II rowsort
SELECT ALL - 14 * 81 AS col1, 82
----
-1134
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9322
SELECT - CASE + SUM( 80 ) WHEN - 30 THEN - - 72 * - - SUM( + 39 ) * - - 90 + + 57 + + - AVG ( DISTINCT + 33 ) + - 81 + + MIN( - + CAST( NULL AS SIGNED ) ) * - 61 / + + 4 WHEN - 24 * 52 THEN 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9322
SELECT - CASE + SUM ( 80 ) WHEN - 30 THEN - - 72 * - - SUM ( + 39 ) * - - 90 + + 57 + + - AVG ( DISTINCT + 33 ) + - 81 + + MIN ( - + CAST ( NULL AS INTEGER ) ) * - 61 / + + 4 WHEN - 24 * 52 THEN 83 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT + 66 * + COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-9323
SELECT + 66 * + COUNT ( * ) AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT + 72 * + + 91 * - CAST( 76 AS SIGNED )
----
-497952

skipif mysql # not compatible
query I rowsort label-9324
SELECT + 72 * + + 91 * - CAST ( 76 AS INTEGER )
----
-497952

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT ALL MIN( ALL + 46 ) + - 97
----
-51

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL MIN ( ALL + 46 ) + - 97
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT DISTINCT COUNT( * ) + + 65 + + 14 + + COALESCE ( + + 40, + 74 ) + + 0 * + - 3 + + 21 * - + MIN( DISTINCT - 16 ) * 25 * - 33 / + - 37 + + CASE - 57 WHEN + ( 43 ) THEN 10 - 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT COUNT ( * ) + + 65 + + 14 + + COALESCE ( + + 40, + 74 ) + + 0 * + - 3 + + 21 * - + MIN ( DISTINCT - 16 ) * 25 * - 33 / + - 37 + + CASE - 57 WHEN + ( 43 ) THEN 10 - 36 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9327
SELECT DISTINCT NULLIF ( - + CAST( + - CAST( - 84 AS SIGNED ) AS SIGNED ), - ( + + COUNT( 79 ) ) * - 22 / + + ( - 77 ) * - 54 * 89 )
----
-84

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT NULLIF ( - + CAST ( + - CAST ( - 84 AS INTEGER ) AS INTEGER ), - ( + + COUNT ( 79 ) ) * - 22 / + + ( - 77 ) * - 54 * 89 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9328
SELECT ALL + 95 + 32 * 87 * - CAST( NULL AS DECIMAL ) * + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL + 95 + 32 * 87 * - CAST ( NULL AS REAL ) * + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9329
SELECT - COUNT( * ) * + + 76, NULLIF ( COUNT( * ), - MIN( - + 25 ) ) - 41 * + 39 col0
----
-76
-1598

skipif mysql # not compatible
query II rowsort label-9329
SELECT - COUNT ( * ) * + + 76, NULLIF ( COUNT ( * ), - MIN ( - + 25 ) ) - 41 * + 39 col0
----
-76
-1598

query I rowsort
SELECT DISTINCT ( - - 22 ) + NULLIF ( - 81, + 24 + - - 18 ) AS col1
----
-59

query I rowsort
SELECT - ( - 49 ) * - - 60 * + 30
----
88200

query I rowsort
SELECT 95 * + 92 - - + 30 * 92
----
11500

onlyif mysql # DIV for integer division: 
query II rowsort label-9333
SELECT ( - + 69 ) DIV 84 + - + 17 + 46 AS col1, 8 DIV - COALESCE ( - 19, + 24, 23 ) - + 24 AS col1
----
29
-24

skipif mysql # not compatible
query II rowsort label-9333
SELECT ( - + 69 ) / 84 + - + 17 + 46 AS col1, 8 / - COALESCE ( - 19, + 24, 23 ) - + 24 AS col1
----
29
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9334
SELECT ALL CAST( NULL AS SIGNED ) - - MAX( DISTINCT + 22 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL CAST ( NULL AS INTEGER ) - - MAX ( DISTINCT + 22 ) col1
----
NULL

query I rowsort
SELECT 84 * - - 43 + - 19
----
3593

onlyif mysql # DIV for integer division: 
query I rowsort label-9336
SELECT ALL + + 41 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL + + 41 / 79
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9337
SELECT + COALESCE ( CAST( + CASE + + 19 WHEN - - 1 THEN NULL ELSE + + 77 END AS SIGNED ), + 37, - 64 )
----
77

skipif mysql # not compatible
query I rowsort label-9337
SELECT + COALESCE ( CAST ( + CASE + + 19 WHEN - - 1 THEN NULL ELSE + + 77 END AS INTEGER ), + 37, - 64 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT + COUNT( * ) - 23 * + 50 + + - 55
----
-1204

skipif mysql # not compatible
query I rowsort label-9338
SELECT + COUNT ( * ) - 23 * + 50 + + - 55
----
-1204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9339
SELECT - CAST( ( - 62 ) AS SIGNED ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9339
SELECT - CAST ( ( - 62 ) AS INTEGER ) AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9340
SELECT ALL + + COUNT( * ) DIV - 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL + + COUNT ( * ) / - 48 AS col1
----
0

query I rowsort
SELECT + 56 * + 61 * ( - 57 ) AS col2
----
-194712

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT DISTINCT + - 36 * COUNT( + 12 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT + - 36 * COUNT ( + 12 ) AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT 84 * + 77 * + 46 + + - 62 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT 84 * + 77 * + 46 + + - 62 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 20 * + 40 AS col0
----
800

query I rowsort
SELECT DISTINCT - ( + - 17 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9346
SELECT + CAST( + - 61 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-9346
SELECT + CAST ( + - 61 AS INTEGER )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9347
SELECT COUNT( * ) + 1 - - 59 * MIN( ALL 4 ) DIV - 23 + - COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-9347
SELECT COUNT ( * ) + 1 - - 59 * MIN ( ALL 4 ) / - 23 + - COUNT ( * ) AS col1
----
-9

query II rowsort
SELECT 26 * - 20 + - 87 * - + 36, 78 AS col0
----
2612
78

query II rowsort
SELECT ALL 41 AS col1, + 14 col1
----
41
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9350
SELECT DISTINCT - 72 + + - ( - - 50 ), - 40 + + CAST( MIN( ALL - 2 ) AS SIGNED ) AS col2
----
-122
-42

skipif mysql # not compatible
query II rowsort label-9350
SELECT DISTINCT - 72 + + - ( - - 50 ), - 40 + + CAST ( MIN ( ALL - 2 ) AS INTEGER ) AS col2
----
-122
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9351
SELECT DISTINCT 65 + - - 51 DIV - ( - 23 )
----
67

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT 65 + - - 51 / - ( - 23 )
----
67

query I rowsort
SELECT ALL 24 + + + 79 + - - 36
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT COUNT( * ) - - 81 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-9353
SELECT COUNT ( * ) - - 81 AS col2
----
82

query I rowsort
SELECT ALL 94 * + 91
----
8554

query I rowsort
SELECT 53 + + 66
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT DISTINCT 29 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT 29 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9357
SELECT ALL ( + CAST( + 76 AS SIGNED ) ) + - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL ( + CAST ( + 76 AS INTEGER ) ) + - COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT 72 + + 7 + COUNT( * ) + - ( - COUNT( * ) ) * + 64
----
144

skipif mysql # not compatible
query I rowsort label-9358
SELECT 72 + + 7 + COUNT ( * ) + - ( - COUNT ( * ) ) * + 64
----
144

query I rowsort
SELECT ALL 64 + + 38 AS col1
----
102

query I rowsort
SELECT 43 + 69 AS col2
----
112

query II rowsort
SELECT ALL 18, - 40 AS col0
----
18
-40

query I rowsort
SELECT 88 - 40
----
48

query I rowsort
SELECT 62 + 76 AS col0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9364
SELECT ALL 28 - + NULLIF ( + + 58, CAST( NULL AS SIGNED ) / + - 25 * - ( + 52 ) + 32 - - 36 * - - 64 * + COUNT( * ) * + + 78 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL 28 - + NULLIF ( + + 58, CAST ( NULL AS INTEGER ) / + - 25 * - ( + 52 ) + 32 - - 36 * - - 64 * + COUNT ( * ) * + + 78 ) AS col2
----
-30

query I rowsort
SELECT ALL + 64 - - 74
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-9366
SELECT ALL - + COUNT( * ) AS col2, 25 AS col1
----
-1
25

skipif mysql # not compatible
query II rowsort label-9366
SELECT ALL - + COUNT ( * ) AS col2, 25 AS col1
----
-1
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9367
SELECT MIN( DISTINCT + + 42 ) DIV + 31 + + 13
----
14

skipif mysql # not compatible
query I rowsort label-9367
SELECT MIN ( DISTINCT + + 42 ) / + 31 + + 13
----
14

query I rowsort
SELECT DISTINCT - 32 * + - 56
----
1792

query I rowsort
SELECT ALL + 15 - + + 82 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT 78 * 85 * + 49 * + - COUNT( * )
----
-324870

skipif mysql # not compatible
query I rowsort label-9370
SELECT 78 * 85 * + 49 * + - COUNT ( * )
----
-324870

query II rowsort
SELECT ALL - 80 AS col0, - 94 AS col2
----
-80
-94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9372
SELECT DISTINCT + CAST( 17 AS SIGNED ) * + 88 - + + 82 - - 59 DIV - ( 44 )
----
1413

skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT + CAST ( 17 AS INTEGER ) * + 88 - + + 82 - - 59 / - ( 44 )
----
1413

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT + + 91 * - 96 * NULLIF ( - 21, + 36 ) + + COALESCE ( - 71, + 81 ) * 15 + - - 95 + + - 2 * + 62 + - SUM( - + 51 ) + - ( + 87 ) * - 55 + + 17 * 24 * 92
----
224734

skipif mysql # not compatible
query I rowsort label-9373
SELECT + + 91 * - 96 * NULLIF ( - 21, + 36 ) + + COALESCE ( - 71, + 81 ) * 15 + - - 95 + + - 2 * + 62 + - SUM ( - + 51 ) + - ( + 87 ) * - 55 + + 17 * 24 * 92
----
224734

query II rowsort
SELECT + 81 AS col1, + ( - - 26 )
----
81
26

query I rowsort
SELECT + 46 * - 23 AS col2
----
-1058

query II rowsort
SELECT 66 AS col2, - ( - 88 ) AS col1
----
66
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9377
SELECT ALL - 99 DIV - + 55 + - + ( + + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL - 99 / - + 55 + - + ( + + COUNT ( * ) )
----
0

query I rowsort
SELECT ALL + 97 + - 8 AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9379
SELECT ALL - 39 DIV + + 32
----
-1

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL - 39 / + + 32
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT NULLIF ( + 0, + - 2 + 33 * COALESCE ( + 12, - COUNT( * ) + + + 22 ) + 62 )
----
0

skipif mysql # not compatible
query I rowsort label-9380
SELECT NULLIF ( + 0, + - 2 + 33 * COALESCE ( + 12, - COUNT ( * ) + + + 22 ) + 62 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9381
SELECT - 62 * - - SUM( DISTINCT - + 38 ) + + - 20 + - 66 DIV 55 + ( - COUNT( * ) )
----
2334

skipif mysql # not compatible
query I rowsort label-9381
SELECT - 62 * - - SUM ( DISTINCT - + 38 ) + + - 20 + - 66 / 55 + ( - COUNT ( * ) )
----
2334

query II rowsort
SELECT + 89, 21 AS col1
----
89
21

query I rowsort
SELECT ALL + 47 + + COALESCE ( - 2, + + 33 + + 88 )
----
45

query I rowsort
SELECT 18 * + + 76 * + 4 AS col1
----
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT SUM( DISTINCT - 40 ) + 1 + - 43 + - - 26 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-9385
SELECT SUM ( DISTINCT - 40 ) + 1 + - 43 + - - 26 AS col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 0 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 0 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT COUNT( * ) + - ( + COALESCE ( + 9, ( 66 ) ) ) + - COUNT( * ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9387
SELECT COUNT ( * ) + - ( + COALESCE ( + 9, ( 66 ) ) ) + - COUNT ( * ) AS col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9388
SELECT ALL + COUNT( * ) * + 8 DIV - 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL + COUNT ( * ) * + 8 / - 17 AS col1
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( - 15, 9 ) + + 69 * - COALESCE ( + 37, - - 73 * + 23 * + 84 + + - 71 + - 64, - 9 ) + - 10
----
-2578

query I rowsort
SELECT 33 * + 2 * - + 25 AS col0
----
-1650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9391
SELECT - SUM( DISTINCT + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT - SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 77 - - + 2
----
-75

query I rowsort
SELECT ALL CASE 89 WHEN + 48 THEN 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT + 52 + + 65 + + 72 + COUNT( * ) + 72 + 39 + - COUNT( * ) + 50 + 51 * - + 12 * + - ( + MAX( 11 ) ) * - 71 + - + 83 * + + 50 + COUNT( * ) * + 6
----
-481766

skipif mysql # not compatible
query I rowsort label-9394
SELECT + 52 + + 65 + + 72 + COUNT ( * ) + 72 + 39 + - COUNT ( * ) + 50 + 51 * - + 12 * + - ( + MAX ( 11 ) ) * - 71 + - + 83 * + + 50 + COUNT ( * ) * + 6
----
-481766

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT DISTINCT 75 * - CASE + 97 WHEN 54 THEN MIN( ALL - - 40 ) WHEN + + ( 49 ) THEN - - CASE - 59 WHEN - 74 THEN - + 72 END * - 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9395
SELECT DISTINCT 75 * - CASE + 97 WHEN 54 THEN MIN ( ALL - - 40 ) WHEN + + ( 49 ) THEN - - CASE - 59 WHEN - 74 THEN - + 72 END * - 36 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9396
SELECT ALL 34 - + COUNT( * ) DIV 30 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL 34 - + COUNT ( * ) / 30 AS col0
----
34

query I rowsort
SELECT ALL - 60 * + 63
----
-3780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9398
SELECT ALL CASE + 60 WHEN + - 47 + 69 THEN NULL WHEN - COUNT( 74 ) THEN + + 91 * - 66 + - + 30 WHEN 66 THEN - 79 + + CAST( - + 32 AS SIGNED ) * + 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT ALL CASE + 60 WHEN + - 47 + 69 THEN NULL WHEN - COUNT ( 74 ) THEN + + 91 * - 66 + - + 30 WHEN 66 THEN - 79 + + CAST ( - + 32 AS INTEGER ) * + 35 END
----
NULL

query I rowsort
SELECT DISTINCT - 51 * + 43 * + - 8 AS col0
----
17544

onlyif mysql # DIV for integer division: 
query I rowsort label-9400
SELECT - 24 DIV - NULLIF ( + - 30, 93 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9400
SELECT - 24 / - NULLIF ( + - 30, 93 ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9401
SELECT + - CAST( NULL AS DECIMAL ) / + 69, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9401
SELECT + - CAST ( NULL AS REAL ) / + 69, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9402
SELECT + CAST( NULL AS SIGNED ) - + 4 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9402
SELECT + CAST ( NULL AS INTEGER ) - + 4 col0
----
NULL

query I rowsort
SELECT + + 58 * 99 + 76 AS col1
----
5818

query I rowsort
SELECT ALL + + 77 col2
----
77

query I rowsort
SELECT 89 * 80 + + 76 * + + 22 * 86
----
150912

query I rowsort
SELECT + - 98 * + 32
----
-3136

query I rowsort
SELECT DISTINCT + + 95 * - 31 * - - ( - 78 ) * 27 + + 20
----
6202190

query II rowsort
SELECT + 10 * + 38 AS col0, - 43 + + 62 AS col2
----
380
19

query I rowsort
SELECT ALL - - 30 * - 6 + 81 - 53 + ( - 80 ) + + 57 * + 94 AS col2
----
5126

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ALL + + COALESCE ( - + 12, COALESCE ( - - MAX( DISTINCT - 13 ), - 70 ) * - 63, 35 + - 99 )
----
-12

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL + + COALESCE ( - + 12, COALESCE ( - - MAX ( DISTINCT - 13 ), - 70 ) * - 63, 35 + - 99 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT + + 71 * + COUNT( - 15 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9411
SELECT + + 71 * + COUNT ( - 15 ) AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9412
SELECT - COALESCE ( - 62, 70, - 63 + - NULLIF ( NULLIF ( + ( + + 49 ), + 22 + - ( - NULLIF ( 55, 35 - - 22 ) ) ), - - 18 + - 59 ) + + 98 ) col1, 57 / + CAST( NULL AS SIGNED ) AS col2
----
62
NULL

skipif mysql # not compatible
query II rowsort label-9412
SELECT - COALESCE ( - 62, 70, - 63 + - NULLIF ( NULLIF ( + ( + + 49 ), + 22 + - ( - NULLIF ( 55, 35 - - 22 ) ) ), - - 18 + - 59 ) + + 98 ) col1, 57 / + CAST ( NULL AS INTEGER ) AS col2
----
62
NULL

query II rowsort
SELECT ALL + 1, 84 col0
----
1
84

onlyif mysql # aggregate syntax: 
query II rowsort label-9414
SELECT + ( - CASE + 19 WHEN - 91 + + 46 THEN - 10 * + COUNT( * ) + - + 57 ELSE NULL END ) col2, - CASE - COUNT( * ) WHEN 22 THEN NULL WHEN - - 56 * 11 + ( - - NULLIF ( + 52, 77 ) ) + - 92 THEN + 86 + - + ( + 61 ) WHEN - MIN( - ( + 28 ) ) * 89 THEN NULL ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9414
SELECT + ( - CASE + 19 WHEN - 91 + + 46 THEN - 10 * + COUNT ( * ) + - + 57 ELSE NULL END ) col2, - CASE - COUNT ( * ) WHEN 22 THEN NULL WHEN - - 56 * 11 + ( - - NULLIF ( + 52, 77 ) ) + - 92 THEN + 86 + - + ( + 61 ) WHEN - MIN ( - ( + 28 ) ) * 89 THEN NULL ELSE NULL END
----
NULL
NULL

query I rowsort
SELECT - 30 * 91 col0
----
-2730

onlyif mysql # aggregate syntax: 
query II rowsort label-9416
SELECT + 90, - NULLIF ( + - COUNT( * ), + - NULLIF ( + 26, + + 22 / - COUNT( * ) + - ( + 2 ) ) ) AS col2
----
90
1

skipif mysql # not compatible
query II rowsort label-9416
SELECT + 90, - NULLIF ( + - COUNT ( * ), + - NULLIF ( + 26, + + 22 / - COUNT ( * ) + - ( + 2 ) ) ) AS col2
----
90
1

query I rowsort
SELECT - COALESCE ( 41, + - 97 ) * + 68 AS col2
----
-2788

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9418
SELECT ALL - 74 * + COUNT( * ) + + 16 + - ( MIN( ALL + 6 ) ) DIV + 39 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL - 74 * + COUNT ( * ) + + 16 + - ( MIN ( ALL + 6 ) ) / + 39 AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9419
SELECT ALL - 36 * 90 * + + COUNT( * ) * + CAST( NULL AS SIGNED ) * - + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL - 36 * 90 * + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - + 83 AS col1
----
NULL

query I rowsort
SELECT + 94 + + 92 AS col2
----
186

query I rowsort
SELECT - ( - 43 ) AS col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9422
SELECT + 70 + + - NULLIF ( + 2, - MIN( DISTINCT + 98 ) + 75 * - 44 * COUNT( * ) ) * + COUNT( * ) + + + 8 + ( + 81 ) * COALESCE ( CAST( AVG ( ALL 86 ) AS SIGNED ), 85 * - 35 - + 32 )
----
7042

skipif mysql # not compatible
query I rowsort label-9422
SELECT + 70 + + - NULLIF ( + 2, - MIN ( DISTINCT + 98 ) + 75 * - 44 * COUNT ( * ) ) * + COUNT ( * ) + + + 8 + ( + 81 ) * COALESCE ( CAST ( AVG ( ALL 86 ) AS INTEGER ), 85 * - 35 - + 32 )
----
7042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9423
SELECT - 76 - - 22 + - 46 - NULLIF ( - MAX( + + 67 ), + 6 + - 30 + ( - ( 84 ) ) * + ( + 42 ) * - - CAST( + COUNT( ALL + 94 ) AS SIGNED ) * 38 ) * 56 AS col1
----
3652

skipif mysql # not compatible
query I rowsort label-9423
SELECT - 76 - - 22 + - 46 - NULLIF ( - MAX ( + + 67 ), + 6 + - 30 + ( - ( 84 ) ) * + ( + 42 ) * - - CAST ( + COUNT ( ALL + 94 ) AS INTEGER ) * 38 ) * 56 AS col1
----
3652

query I rowsort
SELECT DISTINCT - 91 * - + 46 AS col0
----
4186

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT ALL CASE ( + 14 ) WHEN - + 17 THEN + 1 * COALESCE ( 85, 64 ) + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL CASE ( + 14 ) WHEN - + 17 THEN + 1 * COALESCE ( 85, 64 ) + + COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT - 82 * + 28
----
-2296

query I rowsort
SELECT - 23 + + - 5
----
-28

query I rowsort
SELECT ALL - 64 - + 27 AS col1
----
-91

query I rowsort
SELECT DISTINCT ( ( + 28 ) ) AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9430
SELECT ALL CASE - 8 WHEN + 90 THEN NULL WHEN - 97 THEN NULL WHEN - 67 THEN + 48 * + CAST( NULL AS DECIMAL ) * + COUNT( ALL + 14 ) ELSE - 61 * CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL CASE - 8 WHEN + 90 THEN NULL WHEN - 97 THEN NULL WHEN - 67 THEN + 48 * + CAST ( NULL AS REAL ) * + COUNT ( ALL + 14 ) ELSE - 61 * CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9431
SELECT DISTINCT CAST( ( 98 ) AS SIGNED ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT CAST ( ( 98 ) AS INTEGER ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT DISTINCT CASE 49 WHEN COUNT( * ) + + ( + 5 ) * + 5 THEN NULL WHEN - + 4 * + 83 * 53 THEN - 22 WHEN - + 31 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT CASE 49 WHEN COUNT ( * ) + + ( + 5 ) * + 5 THEN NULL WHEN - + 4 * + 83 * 53 THEN - 22 WHEN - + 31 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL ( 39 ) AS col1
----
39

query II rowsort
SELECT - 78 AS col0, - 11 * - ( + + 14 ) AS col2
----
-78
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9435
SELECT - CAST( + 10 AS SIGNED ) + - CAST( - - 85 AS SIGNED ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-9435
SELECT - CAST ( + 10 AS INTEGER ) + - CAST ( - - 85 AS INTEGER ) AS col2
----
-95

query I rowsort
SELECT ALL ( + 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT + 82 + - COUNT( * ) + - 38 col2
----
43

skipif mysql # not compatible
query I rowsort label-9437
SELECT + 82 + - COUNT ( * ) + - 38 col2
----
43

query I rowsort
SELECT - - 93 + - 93 * + 34 AS col1
----
-3069

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT MIN( + 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-9439
SELECT MIN ( + 39 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-9440
SELECT ALL CASE - 65 WHEN - 92 THEN - 54 / 80 WHEN - 78 THEN - SUM( DISTINCT - 13 ) * - + ( - 90 ) * - ( - 41 ) + + 55 ELSE NULL END, - 23 AS col2
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-9440
SELECT ALL CASE - 65 WHEN - 92 THEN - 54 / 80 WHEN - 78 THEN - SUM ( DISTINCT - 13 ) * - + ( - 90 ) * - ( - 41 ) + + 55 ELSE NULL END, - 23 AS col2
----
NULL
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9441
SELECT - + 18 + - 57 * + CASE - 63 WHEN CAST( - - 47 AS DECIMAL ) * - + 99 THEN NULL WHEN 59 + 44 / 66 / AVG ( DISTINCT 99 ) * - 48 THEN NULL ELSE - 40 + + 42 * - COUNT( * ) + + 52 END * 88 * + NULLIF ( 52, - 59 ) + 81 col2
----
7825023

skipif mysql # not compatible
query I rowsort label-9441
SELECT - + 18 + - 57 * + CASE - 63 WHEN CAST ( - - 47 AS REAL ) * - + 99 THEN NULL WHEN 59 + 44 / 66 / AVG ( DISTINCT 99 ) * - 48 THEN NULL ELSE - 40 + + 42 * - COUNT ( * ) + + 52 END * 88 * + NULLIF ( 52, - 59 ) + 81 col2
----
7825023

onlyif mysql # DIV for integer division: 
query I rowsort label-9442
SELECT + - 13 - - 48 DIV 60 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-9442
SELECT + - 13 - - 48 / 60 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT ALL 88 * + COUNT( * ) col0
----
88

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL 88 * + COUNT ( * ) col0
----
88

query I rowsort
SELECT DISTINCT - ( NULLIF ( - 0, - 76 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9445
SELECT ALL 0 DIV - + COUNT( * ) + + + 33
----
33

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL 0 / - + COUNT ( * ) + + + 33
----
33

query II rowsort
SELECT 64 AS col1, + 41
----
64
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9447
SELECT DISTINCT - - 52 DIV - ( - 10 ) + - - 30 + - COUNT( - 86 ) * + 53 * + 59 col1, 95 AS col2
----
-3092
95

skipif mysql # not compatible
query II rowsort label-9447
SELECT DISTINCT - - 52 / - ( - 10 ) + - - 30 + - COUNT ( - 86 ) * + 53 * + 59 col1, 95 AS col2
----
-3092
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT + 99 + + ( + COUNT( * ) )
----
100

skipif mysql # not compatible
query I rowsort label-9448
SELECT + 99 + + ( + COUNT ( * ) )
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-9449
SELECT ALL + + 87 DIV + - 79 + - + 67
----
-68

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL + + 87 / + - 79 + - + 67
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-9450
SELECT DISTINCT + - CASE COUNT( * ) WHEN + 91 + - 9 THEN 44 ELSE NULL END AS col2, + 38 + 92 AS col1
----
NULL
130

skipif mysql # not compatible
query II rowsort label-9450
SELECT DISTINCT + - CASE COUNT ( * ) WHEN + 91 + - 9 THEN 44 ELSE NULL END AS col2, + 38 + 92 AS col1
----
NULL
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT - - COUNT( * ) * + 3 col1
----
3

skipif mysql # not compatible
query I rowsort label-9451
SELECT - - COUNT ( * ) * + 3 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT + - 11 * + COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-9452
SELECT + - 11 * + COUNT ( * ) AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9453
SELECT ALL - COUNT( * ) DIV - + COUNT( * ) + + 82
----
83

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL - COUNT ( * ) / - + COUNT ( * ) + + 82
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT - + 53 * - 10 + 39 + - 17 + - + 37 + - ( - 98 ) + + 97 * - - SUM( ALL + 34 ) AS col2
----
3911

skipif mysql # not compatible
query I rowsort label-9454
SELECT - + 53 * - 10 + 39 + - 17 + - + 37 + - ( - 98 ) + + 97 * - - SUM ( ALL + 34 ) AS col2
----
3911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9455
SELECT DISTINCT + 63 DIV - COUNT( * ) + + CAST( + 59 AS SIGNED ) * - 21 AS col0
----
-1302

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT + 63 / - COUNT ( * ) + + CAST ( + 59 AS INTEGER ) * - 21 AS col0
----
-1302

query I rowsort
SELECT + 89 * - 59
----
-5251

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9457
SELECT ALL - CAST( NULL AS DECIMAL ) * + 90 - - ( - ( + 46 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL - CAST ( NULL AS REAL ) * + 90 - - ( - ( + 46 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9458
SELECT ALL COUNT( DISTINCT 61 ) * 49 DIV 22 - 88 + - 30 - + 58 AS col2
----
-174

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL COUNT ( DISTINCT 61 ) * 49 / 22 - 88 + - 30 - + 58 AS col2
----
-174

query I rowsort
SELECT 36 * - 28
----
-1008

query I rowsort
SELECT ALL 65 * + 37
----
2405

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ( + ( + 31 ) ) * - + MIN( 0 ) + - - 29
----
29

skipif mysql # not compatible
query I rowsort label-9461
SELECT ( + ( + 31 ) ) * - + MIN ( 0 ) + - - 29
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-9462
SELECT 5, ( + - 40 ) + COUNT( * ) AS col1
----
5
-39

skipif mysql # not compatible
query II rowsort label-9462
SELECT 5, ( + - 40 ) + COUNT ( * ) AS col1
----
5
-39

query II rowsort
SELECT + 2 AS col0, - 56
----
2
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL 59 - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL 59 - COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9465
SELECT DISTINCT 60, + CASE - - 97 WHEN + 30 + - NULLIF ( + MAX( ALL + + 58 ), 60 + + COUNT( - 36 ) ) THEN 31 END AS col1
----
60
NULL

skipif mysql # not compatible
query II rowsort label-9465
SELECT DISTINCT 60, + CASE - - 97 WHEN + 30 + - NULLIF ( + MAX ( ALL + + 58 ), 60 + + COUNT ( - 36 ) ) THEN 31 END AS col1
----
60
NULL

query II rowsort
SELECT DISTINCT 63, 49 AS col2
----
63
49

onlyif mysql # DIV for integer division: 
query I rowsort label-9467
SELECT 81 DIV + - 19
----
-4

skipif mysql # not compatible
query I rowsort label-9467
SELECT 81 / + - 19
----
-4

query II rowsort
SELECT 5 col2, ( + 90 )
----
5
90

query II rowsort
SELECT ALL 69, + 60 col2
----
69
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9470
SELECT ALL 20, CAST( NULL AS SIGNED ) AS col1
----
20
NULL

skipif mysql # not compatible
query II rowsort label-9470
SELECT ALL 20, CAST ( NULL AS INTEGER ) AS col1
----
20
NULL

query II rowsort
SELECT 78, ( + 41 ) AS col2
----
78
41

query II rowsort
SELECT - 22 AS col2, - 41
----
-22
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-9473
SELECT 68 - - - 77 - + + 79 DIV + 86
----
-9

skipif mysql # not compatible
query I rowsort label-9473
SELECT 68 - - - 77 - + + 79 / + 86
----
-9

query I rowsort
SELECT 3 * + - 28 AS col0
----
-84

query I rowsort
SELECT ALL - 53 + - 36
----
-89

query II rowsort
SELECT - 49 AS col1, - 31 * 44 AS col0
----
-49
-1364

query I rowsort
SELECT - 89 + 76 AS col2
----
-13

query I rowsort
SELECT ALL - + 27 * - 37
----
999

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT DISTINCT + NULLIF ( + + NULLIF ( + NULLIF ( + 61, - + 21 / - COUNT( * ) + + 74 ), + ( 62 ) ), + - 52 ) + + 50 - - 28 * + 11
----
419

skipif mysql # not compatible
query I rowsort label-9479
SELECT DISTINCT + NULLIF ( + + NULLIF ( + NULLIF ( + 61, - + 21 / - COUNT ( * ) + + 74 ), + ( 62 ) ), + - 52 ) + + 50 - - 28 * + 11
----
419

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT ALL + 62 + NULLIF ( + + 88, + - MAX( DISTINCT - 71 ) * + 53 + - 39 ) AS col0
----
150

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL + 62 + NULLIF ( + + 88, + - MAX ( DISTINCT - 71 ) * + 53 + - 39 ) AS col0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT DISTINCT + - COUNT( * ) + + 39 + 1 - - COUNT( * ) - - COUNT( ALL 85 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + - COUNT ( * ) + + 39 + 1 - - COUNT ( * ) - - COUNT ( ALL 85 ) AS col0
----
41

query I rowsort
SELECT ALL + 12 + 15 - + 71 * 24 AS col0
----
-1677

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT ALL + MAX( - 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL + MAX ( - 40 ) AS col1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9484
SELECT DISTINCT 12 AS col2, 82 * - ( - + CAST( - 59 AS SIGNED ) ) + 60 + - 26
----
12
-4804

skipif mysql # not compatible
query II rowsort label-9484
SELECT DISTINCT 12 AS col2, 82 * - ( - + CAST ( - 59 AS INTEGER ) ) + 60 + - 26
----
12
-4804

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT ALL - CASE - + COUNT( + 88 ) WHEN + + 58 - 90 * 69 + + SUM( ALL + 47 ) THEN ( + 91 ) * + 29 ELSE NULL END + - 4 - 3 * - + 48 * - + 79 / + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL - CASE - + COUNT ( + 88 ) WHEN + + 58 - 90 * 69 + + SUM ( ALL + 47 ) THEN ( + 91 ) * + 29 ELSE NULL END + - 4 - 3 * - + 48 * - + 79 / + 80
----
NULL

query I rowsort
SELECT NULLIF ( + 70, 81 ) - - 14 col2
----
84

query I rowsort
SELECT ( - 82 ) AS col1
----
-82

query I rowsort
SELECT 14 * 47 + - 8
----
650

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL + CASE 70 WHEN - 44 THEN + - 93 WHEN 22 * + 90 / + ( + 53 ) THEN NULL WHEN COUNT( 84 ) * 75 + COUNT( * ) + + MIN( 38 ) + - 89 * + - 60 * 38 * + MIN( DISTINCT - - 62 ) + + COALESCE ( 81, MIN( ( COALESCE ( + 84, 39 + + 17 * 53 ) ) ), 93 * - SUM( DISTINCT 80 ) ) THEN NULL ELSE 48 + - 71 END * 47
----
-1081

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL + CASE 70 WHEN - 44 THEN + - 93 WHEN 22 * + 90 / + ( + 53 ) THEN NULL WHEN COUNT ( 84 ) * 75 + COUNT ( * ) + + MIN ( 38 ) + - 89 * + - 60 * 38 * + MIN ( DISTINCT - - 62 ) + + COALESCE ( 81, MIN ( ( COALESCE ( + 84, 39 + + 17 * 53 ) ) ), 93 * - SUM ( DISTINCT 80 ) ) THEN NULL ELSE 48 + - 71 END * 47
----
-1081

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT + MIN( DISTINCT + - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-9490
SELECT + MIN ( DISTINCT + - 29 )
----
-29

query I rowsort
SELECT DISTINCT - 58 - 65
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT ALL - CASE - 97 WHEN + - 59 + - 30 THEN NULL WHEN 17 THEN - ( COUNT( - 17 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL - CASE - 97 WHEN + - 59 + - 30 THEN NULL WHEN 17 THEN - ( COUNT ( - 17 ) ) END
----
NULL

query I rowsort
SELECT DISTINCT 19 - - ( 80 ) AS col1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9494
SELECT 36 DIV - MIN( - + 40 ) * - + 43 + + NULLIF ( - + 93, - 10 )
----
-93

skipif mysql # not compatible
query I rowsort label-9494
SELECT 36 / - MIN ( - + 40 ) * - + 43 + + NULLIF ( - + 93, - 10 )
----
-93

query I rowsort
SELECT 46 + - CASE - 20 WHEN + - 35 * + 90 THEN - - 15 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9496
SELECT MAX( + 52 ) * 28 - 62 DIV MAX( 88 ) * + 77 - MAX( - 70 )
----
1526

skipif mysql # not compatible
query I rowsort label-9496
SELECT MAX ( + 52 ) * 28 - 62 / MAX ( 88 ) * + 77 - MAX ( - 70 )
----
1526

onlyif mysql # DIV for integer division: 
query I rowsort label-9497
SELECT DISTINCT 0 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT 0 / 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT DISTINCT COUNT( * ) * - 12 * + 69
----
-828

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT COUNT ( * ) * - 12 * + 69
----
-828

query II rowsort
SELECT DISTINCT 93 * 47 AS col2, 86
----
4371
86

query I rowsort
SELECT ALL 52 + ( 6 ) AS col1
----
58

query I rowsort
SELECT 13 - + 50 AS col0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9502
SELECT 22 * + CAST( + 64 AS SIGNED ) col1
----
1408

skipif mysql # not compatible
query I rowsort label-9502
SELECT 22 * + CAST ( + 64 AS INTEGER ) col1
----
1408

query II rowsort
SELECT DISTINCT + 55 + - 55, 45 * - 23 AS col0
----
0
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT DISTINCT + SUM( + 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT + SUM ( + 6 ) AS col0
----
6

query I rowsort
SELECT ALL + 16 + + + 61
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT ALL - + COUNT( * ) + - - 16 + + - 59 * + 85 AS col2
----
-5000

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL - + COUNT ( * ) + - - 16 + + - 59 * + 85 AS col2
----
-5000

query I rowsort
SELECT + 54 + 67
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-9508
SELECT DISTINCT - 72 DIV 17 + - 68 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT - 72 / 17 + - 68 AS col1
----
-72

query II rowsort
SELECT 47 * + 16 AS col1, 97
----
752
97

query I rowsort
SELECT 90 * - 41
----
-3690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9511
SELECT ALL COUNT( * ) DIV 63 * COALESCE ( + CAST( NULL AS SIGNED ), + 92 * - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL COUNT ( * ) / 63 * COALESCE ( + CAST ( NULL AS INTEGER ), + 92 * - 26 )
----
0

query I rowsort
SELECT - 20 * - + ( - + 26 )
----
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT - ( + - 62 ) + - 57 - 79 + + 15 + - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-9513
SELECT - ( + - 62 ) + - 57 - 79 + + 15 + - COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT DISTINCT + COUNT( * ) * + + 20
----
20

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT + COUNT ( * ) * + + 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT NULLIF ( - 57, - 58 * + 78 + - 77 * - + 78 - + COUNT( DISTINCT + 87 ) + + + 72 )
----
-57

skipif mysql # not compatible
query I rowsort label-9515
SELECT NULLIF ( - 57, - 58 * + 78 + - 77 * - + 78 - + COUNT ( DISTINCT + 87 ) + + + 72 )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT ALL 17 - - CASE - CAST( + AVG ( + - 41 ) AS SIGNED ) WHEN 19 THEN 56 * - 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL 17 - - CASE - CAST ( + AVG ( + - 41 ) AS INTEGER ) WHEN 19 THEN 56 * - 44 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL - MAX( - 33 )
----
33

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL - MAX ( - 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT + 36 * - 43 + + 21 - COUNT( DISTINCT + 24 ) * MAX( ALL - 14 )
----
-1513

skipif mysql # not compatible
query I rowsort label-9518
SELECT + 36 * - 43 + + 21 - COUNT ( DISTINCT + 24 ) * MAX ( ALL - 14 )
----
-1513

onlyif mysql # DIV for integer division: 
query I rowsort label-9519
SELECT + NULLIF ( + 21, + 71 * - 70 ) DIV - ( - - 98 ) * + - 7 + - - 41 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9519
SELECT + NULLIF ( + 21, + 71 * - 70 ) / - ( - - 98 ) * + - 7 + - - 41 AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-9520
SELECT ALL + + COUNT( * ) * + 27 + - 19 AS col2, + 16 AS col2
----
8
16

skipif mysql # not compatible
query II rowsort label-9520
SELECT ALL + + COUNT ( * ) * + 27 + - 19 AS col2, + 16 AS col2
----
8
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9521
SELECT NULLIF ( + COUNT( ALL 87 ), 41 / - - CASE - 67 WHEN + 31 THEN + 73 - + 78 + + - 55 ELSE COUNT( * ) END + + 97 - MIN( - + 59 ) ) AS col2, - 21 AS col2
----
1
-21

skipif mysql # not compatible
query II rowsort label-9521
SELECT NULLIF ( + COUNT ( ALL 87 ), 41 / - - CASE - 67 WHEN + 31 THEN + 73 - + 78 + + - 55 ELSE COUNT ( * ) END + + 97 - MIN ( - + 59 ) ) AS col2, - 21 AS col2
----
1
-21

query I rowsort
SELECT NULLIF ( - NULLIF ( - - 90, + 74 ), - + 36 ) col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT - 71 + - 71 * - ( + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9523
SELECT - 71 + - 71 * - ( + COUNT ( * ) ) AS col2
----
0

query II rowsort
SELECT DISTINCT + 14 col2, + 79
----
14
79

query I rowsort
SELECT + 60 * 34 + 41
----
2081

onlyif mysql # DIV for integer division: 
query I rowsort label-9526
SELECT DISTINCT + 32 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT + 32 / - 94
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9527
SELECT ALL + COUNT( * ), + 82 * - 16 AS col2
----
1
-1312

skipif mysql # not compatible
query II rowsort label-9527
SELECT ALL + COUNT ( * ), + 82 * - 16 AS col2
----
1
-1312

onlyif mysql # DIV for integer division: 
query I rowsort label-9528
SELECT - ( - 51 ) DIV + - NULLIF ( + 4, + 6 ) + - - 58
----
46

skipif mysql # not compatible
query I rowsort label-9528
SELECT - ( - 51 ) / + - NULLIF ( + 4, + 6 ) + - - 58
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9529
SELECT DISTINCT + COUNT( * ) AS col0, - 85 AS col0
----
1
-85

skipif mysql # not compatible
query II rowsort label-9529
SELECT DISTINCT + COUNT ( * ) AS col0, - 85 AS col0
----
1
-85

query I rowsort
SELECT DISTINCT - 32 * 43
----
-1376

query I rowsort
SELECT ALL - 14 * - 81 * + - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT ( + 2 ) * + 27 + + 20 * COUNT( * ) + + ( + 75 )
----
149

skipif mysql # not compatible
query I rowsort label-9532
SELECT ( + 2 ) * + 27 + + 20 * COUNT ( * ) + + ( + 75 )
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT ALL 35 * - COALESCE ( - 99, - - 49, COUNT( * ) ) + + + MAX( ALL + + 77 )
----
3542

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL 35 * - COALESCE ( - 99, - - 49, COUNT ( * ) ) + + + MAX ( ALL + + 77 )
----
3542

query I rowsort
SELECT + 46 * - - 50 AS col2
----
2300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9535
SELECT ALL 41 * + 28 * 53 + + NULLIF ( + - 29, CAST( + NULLIF ( + 60, + 21 ) AS SIGNED ) + 44 ) AS col2
----
60815

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL 41 * + 28 * 53 + + NULLIF ( + - 29, CAST ( + NULLIF ( + 60, + 21 ) AS INTEGER ) + 44 ) AS col2
----
60815

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT DISTINCT 9 * 75 + + COUNT( ALL - 0 ) AS col0
----
676

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT 9 * 75 + + COUNT ( ALL - 0 ) AS col0
----
676

query I rowsort
SELECT - 34 / CASE 72 WHEN - 41 THEN NULL WHEN + - 17 THEN 17 END AS col1
----
NULL

query I rowsort
SELECT + 40 + + + 35
----
75

query I rowsort
SELECT ALL 46 + ( - 82 ) + - 68 * - 7 AS col2
----
440

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9540
SELECT - CAST( NULL AS DECIMAL ) * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9540
SELECT - CAST ( NULL AS REAL ) * + 76
----
NULL

query I rowsort
SELECT ALL + 42 + + 9 AS col0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9542
SELECT DISTINCT - 88 + 84 + - 59 col2, + 53 + - + COUNT( * ) + - + 25 DIV + - 94 * + 53 + - COALESCE ( + 51, - ( - CASE - + COUNT( * ) WHEN - 95 DIV 85 - - 38 THEN - COUNT( * ) + + 42 ELSE - 24 END ) * - 15 + - 11, + 20 * - - 3 ) * - 13 AS col0
----
-63
715

skipif mysql # not compatible
query II rowsort label-9542
SELECT DISTINCT - 88 + 84 + - 59 col2, + 53 + - + COUNT ( * ) + - + 25 / + - 94 * + 53 + - COALESCE ( + 51, - ( - CASE - + COUNT ( * ) WHEN - 95 / 85 - - 38 THEN - COUNT ( * ) + + 42 ELSE - 24 END ) * - 15 + - 11, + 20 * - - 3 ) * - 13 AS col0
----
-63
715

query II rowsort
SELECT DISTINCT 67 AS col1, - 6 + 63
----
67
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT DISTINCT CASE - - 30 WHEN CASE - 44 WHEN 85 THEN NULL ELSE - + 86 END THEN + 1 + - + COUNT( * ) * + ( - 73 ) + - 11 WHEN + 20 / + + 90 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT CASE - - 30 WHEN CASE - 44 WHEN 85 THEN NULL ELSE - + 86 END THEN + 1 + - + COUNT ( * ) * + ( - 73 ) + - 11 WHEN + 20 / + + 90 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9545
SELECT ALL 21 + 15 DIV + - 17 + - - 2 col0
----
23

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL 21 + 15 / + - 17 + - - 2 col0
----
23

query I rowsort
SELECT - 91 - + + ( - CASE 10 WHEN 26 THEN NULL ELSE - - 93 + 92 END ) * COALESCE ( + - 94, + - 24 * 85 + + 15 ) + + + 14 AS col2
----
-17467

query II rowsort
SELECT 27, + 65 + + ( - - 63 ) * NULLIF ( 19, 37 + COALESCE ( 38, - 75 + + - 94, - 24 ) ) * 8 + - 19 AS col1
----
27
9622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9548
SELECT ALL 35 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL 35 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + + 4 * + ( - 30 ) + 71 AS col0
----
-49

query I rowsort
SELECT + + 99 * - 6 AS col1
----
-594

query I rowsort
SELECT ALL + 93 * - + 45 AS col1
----
-4185

onlyif mysql # aggregate syntax: 
query II rowsort label-9552
SELECT - COUNT( * ) AS col2, - 34 * 29 + ( NULLIF ( - 55, + 87 ) ) - - 33 AS col2
----
-1
-1008

skipif mysql # not compatible
query II rowsort label-9552
SELECT - COUNT ( * ) AS col2, - 34 * 29 + ( NULLIF ( - 55, + 87 ) ) - - 33 AS col2
----
-1
-1008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9553
SELECT DISTINCT 5 - + + 50 * + 87 + + COUNT( * ) + + - COUNT( * ) DIV + 76
----
-4344

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT 5 - + + 50 * + 87 + + COUNT ( * ) + + - COUNT ( * ) / + 76
----
-4344

query II rowsort
SELECT DISTINCT 25 AS col2, + 78 * - 30
----
25
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT ALL + COUNT( ALL + - 9 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL + COUNT ( ALL + - 9 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9556
SELECT DISTINCT + CAST( - COALESCE ( - 87, - 20 * + + CASE + + 5 WHEN + 0 THEN 57 * + + ( + - COALESCE ( 37, + 17, NULLIF ( 79, - + MIN( 34 ) ) * - 92 + + - COUNT( * ) + 90 ) ) * 78 END + - 81 ) AS SIGNED ) col2, 1 DIV - 19
----
87
0

skipif mysql # not compatible
query II rowsort label-9556
SELECT DISTINCT + CAST ( - COALESCE ( - 87, - 20 * + + CASE + + 5 WHEN + 0 THEN 57 * + + ( + - COALESCE ( 37, + 17, NULLIF ( 79, - + MIN ( 34 ) ) * - 92 + + - COUNT ( * ) + 90 ) ) * 78 END + - 81 ) AS INTEGER ) col2, 1 / - 19
----
87
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9557
SELECT + 7 * + - 89 + + 45 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT + 7 * + - 89 + + 45 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + - 72 * + 73
----
-5256

query I rowsort
SELECT ALL - 66 / - 40 * + - CASE WHEN 7 <= - 56 THEN - ( + 94 ) END + 98
----
NULL

query I rowsort
SELECT + 20 * 25 * 93
----
46500

query II rowsort
SELECT + - 41, 69 col0
----
-41
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9562
SELECT - 36 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-9562
SELECT - 36 / 86
----
0

query I rowsort
SELECT ALL 42 * 75 AS col0
----
3150

query I rowsort
SELECT ALL + 45 * + ( 52 )
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT + NULLIF ( + 73, - 19 + - 63 + - 98 ) * - - ( - COUNT( * ) ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9565
SELECT + NULLIF ( + 73, - 19 + - 63 + - 98 ) * - - ( - COUNT ( * ) ) AS col1
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-9566
SELECT ALL 25 DIV + COALESCE ( + 42, - - ( - 57 ) ) + - 98 col2
----
-98

skipif mysql # not compatible
query I rowsort label-9566
SELECT ALL 25 / + COALESCE ( + 42, - - ( - 57 ) ) + - 98 col2
----
-98

query II rowsort
SELECT ( 55 ) AS col2, 90 AS col1
----
55
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9568
SELECT ALL 82 * + 67 * + - COUNT( - + 84 ) * + CAST( NULL AS DECIMAL ) + AVG ( DISTINCT + + 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL 82 * + 67 * + - COUNT ( - + 84 ) * + CAST ( NULL AS REAL ) + AVG ( DISTINCT + + 31 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT + 12 * + + 84 + + SUM( 22 ) - - 97 + + 99 AS col2
----
1226

skipif mysql # not compatible
query I rowsort label-9569
SELECT + 12 * + + 84 + + SUM ( 22 ) - - 97 + + 99 AS col2
----
1226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9570
SELECT + CAST( - - 77 AS SIGNED ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9570
SELECT + CAST ( - - 77 AS INTEGER ) AS col2
----
77

query II rowsort
SELECT + 58 * + 0, 16 + - 84 AS col0
----
0
-68

query I rowsort
SELECT - 64 * 5 AS col0
----
-320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9573
SELECT ALL + CASE COUNT( * ) WHEN - ( 80 ) THEN NULL WHEN + - CAST( NULL AS SIGNED ) THEN NULL ELSE - 24 END AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL + CASE COUNT ( * ) WHEN - ( 80 ) THEN NULL WHEN + - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 24 END AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT + MAX( 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9574
SELECT + MAX ( 95 ) AS col1
----
95

query I rowsort
SELECT ALL - 83 * + - 78 AS col2
----
6474

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9576
SELECT DISTINCT + ( - 43 ) AS col2, CAST( NULL AS SIGNED ) / - 44 AS col0
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-9576
SELECT DISTINCT + ( - 43 ) AS col2, CAST ( NULL AS INTEGER ) / - 44 AS col0
----
-43
NULL

query I rowsort
SELECT ALL + 40 * - 9 + 29
----
-331

onlyif mysql # aggregate syntax: 
query II rowsort label-9578
SELECT - 36 * - - 70 - - - COUNT( * ) * 37, 70 AS col0
----
-2557
70

skipif mysql # not compatible
query II rowsort label-9578
SELECT - 36 * - - 70 - - - COUNT ( * ) * 37, 70 AS col0
----
-2557
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9579
SELECT DISTINCT + CAST( + - 72 AS SIGNED ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT + CAST ( + - 72 AS INTEGER ) AS col1
----
-72

query I rowsort
SELECT - - 83 * + 0 * 97
----
0

query I rowsort
SELECT ALL + 73 * + 49 - - - 7
----
3570

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT COUNT( - 20 )
----
1

skipif mysql # not compatible
query I rowsort label-9582
SELECT COUNT ( - 20 )
----
1

query I rowsort
SELECT 33 * - 13 * + - 84 + - 28 AS col2
----
36008

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT + - NULLIF ( - 84, - + COUNT( * ) + - + 17 ) - - 16 * - 92 + + 97
----
-1291

skipif mysql # not compatible
query I rowsort label-9584
SELECT + - NULLIF ( - 84, - + COUNT ( * ) + - + 17 ) - - 16 * - 92 + + 97
----
-1291

query I rowsort
SELECT - + 58 + + COALESCE ( + 55, 91 + 7 + + 59 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9586
SELECT - - 84 + 35 + - CAST( NULL AS DECIMAL ) * 11 + + - 56 - - 8 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9586
SELECT - - 84 + 35 + - CAST ( NULL AS REAL ) * 11 + + - 56 - - 8 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9587
SELECT ALL - ( + - 55 ) * COUNT( DISTINCT - 73 ) * + - 96 + CAST( - 67 AS SIGNED ) + - 6 * + + 46
----
-5623

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL - ( + - 55 ) * COUNT ( DISTINCT - 73 ) * + - 96 + CAST ( - 67 AS INTEGER ) + - 6 * + + 46
----
-5623

query I rowsort
SELECT 45 + - - 96
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT - - CAST( + + CAST( 41 AS SIGNED ) AS SIGNED ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9589
SELECT - - CAST ( + + CAST ( 41 AS INTEGER ) AS INTEGER ) AS col0
----
41

query I rowsort
SELECT ALL - 37 * - 87 AS col1
----
3219

query I rowsort
SELECT + 74 * + 61
----
4514

query I rowsort
SELECT ALL - 77 * - 6 col2
----
462

query I rowsort
SELECT DISTINCT 36 + + + 99 + 80 + + - 87 * 70 - - 36 + 20 - + - 43 * - 18 AS col2
----
-6593

query I rowsort
SELECT DISTINCT 48 * 45 AS col2
----
2160

query I rowsort
SELECT ALL 71 + + 68
----
139

query II rowsort
SELECT + 40 AS col1, 26 * + 82 * - - 61 - - 79 AS col1
----
40
130131

query I rowsort
SELECT DISTINCT 0 + - 71
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-9598
SELECT ALL MIN( DISTINCT + 60 ) + 40 AS col1, ( + - 76 )
----
100
-76

skipif mysql # not compatible
query II rowsort label-9598
SELECT ALL MIN ( DISTINCT + 60 ) + 40 AS col1, ( + - 76 )
----
100
-76

query I rowsort
SELECT ALL 35 + + + ( + NULLIF ( 18, - 22 + + 54 ) ) * 13
----
269

query II rowsort
SELECT + 50 AS col2, 45 + + - 69 * - 19 AS col0
----
50
1356

query I rowsort
SELECT DISTINCT 70 * - + 51 AS col0
----
-3570

query I rowsort
SELECT ALL 40 + + 30 AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9603
SELECT ALL 99 + - NULLIF ( - - COUNT( * ), CAST( NULL AS DECIMAL ) ) DIV + MIN( + + 82 )
----
99

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL 99 + - NULLIF ( - - COUNT ( * ), CAST ( NULL AS REAL ) ) / + MIN ( + + 82 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT DISTINCT - SUM( - + 90 ) * - - ( COUNT( ALL - + 84 ) )
----
90

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT - SUM ( - + 90 ) * - - ( COUNT ( ALL - + 84 ) )
----
90

query I rowsort
SELECT 12 + - - 21 - + 28 * - - 90 col1
----
-2487

onlyif mysql # aggregate syntax: 
query II rowsort label-9606
SELECT ALL - CASE - COUNT( * ) WHEN - + COUNT( * ) THEN MIN( + 18 ) END AS col1, + COUNT( * )
----
-18
1

skipif mysql # not compatible
query II rowsort label-9606
SELECT ALL - CASE - COUNT ( * ) WHEN - + COUNT ( * ) THEN MIN ( + 18 ) END AS col1, + COUNT ( * )
----
-18
1

query I rowsort
SELECT - ( + NULLIF ( - + 96, + - 8 + - 33 / + + 91 / + 51 ) ) * + - 82 + - + 12 col1
----
-7884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9608
SELECT ALL CASE - ( + 16 ) WHEN + NULLIF ( + COUNT( * ), + 2 * 17 / SUM( - 64 ) ) + - + CAST( NULL AS SIGNED ) + - COUNT( * ) * + - 23 * - - 3 * AVG ( 14 ) THEN NULL WHEN + 70 THEN NULL ELSE 28 END - + MAX( ALL + 53 ) * 88 + 61
----
-4575

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL CASE - ( + 16 ) WHEN + NULLIF ( + COUNT ( * ), + 2 * 17 / SUM ( - 64 ) ) + - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + - 23 * - - 3 * AVG ( 14 ) THEN NULL WHEN + 70 THEN NULL ELSE 28 END - + MAX ( ALL + 53 ) * 88 + 61
----
-4575

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9609
SELECT 53 * - CAST( + 14 AS SIGNED ) + + - ( 62 ) col1, + 10 col2
----
-804
10

skipif mysql # not compatible
query II rowsort label-9609
SELECT 53 * - CAST ( + 14 AS INTEGER ) + + - ( 62 ) col1, + 10 col2
----
-804
10

query I rowsort
SELECT 42 + + ( ( + 92 ) )
----
134

query I rowsort
SELECT + 47 * - 15 AS col2
----
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL - - COUNT( 77 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL - - COUNT ( 77 ) AS col1
----
1

query I rowsort
SELECT COALESCE ( - 60, + 63 )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-9614
SELECT DISTINCT - COUNT( * ) * + + 78 * 56 AS col1, - 76 AS col1
----
-4368
-76

skipif mysql # not compatible
query II rowsort label-9614
SELECT DISTINCT - COUNT ( * ) * + + 78 * 56 AS col1, - 76 AS col1
----
-4368
-76

query I rowsort
SELECT - 13 * 1 * + 6
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9616
SELECT ALL - ( 94 ) DIV + 21, COUNT( * ) + + NULLIF ( + 53, - + AVG ( DISTINCT - + 75 ) + - 6 + - 38 ) + + - 77 + + + 83 - 7 * + 28 AS col1
----
-4
-136

skipif mysql # not compatible
query II rowsort label-9616
SELECT ALL - ( 94 ) / + 21, COUNT ( * ) + + NULLIF ( + 53, - + AVG ( DISTINCT - + 75 ) + - 6 + - 38 ) + + - 77 + + + 83 - 7 * + 28 AS col1
----
-4
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9617
SELECT CAST( + ( - + 80 ) AS SIGNED ) col2
----
-80

skipif mysql # not compatible
query I rowsort label-9617
SELECT CAST ( + ( - + 80 ) AS INTEGER ) col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT + COUNT( * ) * - 14 * + 38
----
-532

skipif mysql # not compatible
query I rowsort label-9618
SELECT + COUNT ( * ) * - 14 * + 38
----
-532

query II rowsort
SELECT ALL + - 34 * + + 1 * + 37 AS col0, 7 AS col1
----
-1258
7

query I rowsort
SELECT ALL + + 58 + - 54 * + 30 AS col1
----
-1562

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT - COUNT( * ) * 91
----
-91

skipif mysql # not compatible
query I rowsort label-9621
SELECT - COUNT ( * ) * 91
----
-91

query I rowsort
SELECT ALL + + 42 + - 79 + + 80 - - + 8 * + - 94 + - - 41 AS col0
----
-668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9623
SELECT ALL + 91 + - - 59 + + 94 * 25 + + CAST( + - 33 AS SIGNED ) * - 2 AS col0
----
2566

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL + 91 + - - 59 + + 94 * 25 + + CAST ( + - 33 AS INTEGER ) * - 2 AS col0
----
2566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9624
SELECT CASE - 4 WHEN ( 50 ) + + 76 THEN + COALESCE ( + 27, 3 + + 44, - + NULLIF ( - + 35, 70 ) + 77 * 16 / CAST( - 18 AS SIGNED ) ) END + + ( + 15 ) * + 33 - + - 39 / COUNT( * ) * 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9624
SELECT CASE - 4 WHEN ( 50 ) + + 76 THEN + COALESCE ( + 27, 3 + + 44, - + NULLIF ( - + 35, 70 ) + 77 * 16 / CAST ( - 18 AS INTEGER ) ) END + + ( + 15 ) * + 33 - + - 39 / COUNT ( * ) * 58 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 73 + + ( - 49 ) AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9626
SELECT - 40 col2, CAST( + + CASE COUNT( * ) WHEN + 32 * + ( + + MAX( COALESCE ( - 10, - CAST( NULL AS SIGNED ) ) ) ) + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) THEN - COUNT( * ) WHEN - 64 THEN NULL END AS SIGNED ) * - 33 col1
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-9626
SELECT - 40 col2, CAST ( + + CASE COUNT ( * ) WHEN + 32 * + ( + + MAX ( COALESCE ( - 10, - CAST ( NULL AS INTEGER ) ) ) ) + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - COUNT ( * ) WHEN - 64 THEN NULL END AS INTEGER ) * - 33 col1
----
-40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT ALL + 55 + - - 7 + - + MAX( 25 )
----
37

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL + 55 + - - 7 + - + MAX ( 25 )
----
37

query II rowsort
SELECT 32 AS col0, + 87 * - + 97 + + 89 + - 21 AS col0
----
32
-8371

query II rowsort
SELECT + 97 AS col1, - 60 * + + 54
----
97
-3240

query II rowsort
SELECT DISTINCT - 55 AS col1, + 68 AS col2
----
-55
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9631
SELECT DISTINCT + 1 * + - 34, - NULLIF ( MIN( DISTINCT - NULLIF ( + 17, + - 58 + + - 3 ) ), - 69 - - 35 + + 8 + - 13 * - + 74 + + 99 * + + 69 ) * + 84 AS col0
----
-34
1428

skipif mysql # not compatible
query II rowsort label-9631
SELECT DISTINCT + 1 * + - 34, - NULLIF ( MIN ( DISTINCT - NULLIF ( + 17, + - 58 + + - 3 ) ), - 69 - - 35 + + 8 + - 13 * - + 74 + + 99 * + + 69 ) * + 84 AS col0
----
-34
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT COUNT( * ) * - 64 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9632
SELECT COUNT ( * ) * - 64 AS col0
----
-64

query II rowsort
SELECT DISTINCT - 45 AS col1, + 87
----
-45
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9634
SELECT MIN( + + NULLIF ( + 62, 46 * + 26 + - + 21 ) ) * + CAST( NULL AS SIGNED ) + - CASE 84 WHEN - - 63 THEN + 2 ELSE - + ( - MAX( - 11 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT MIN ( + + NULLIF ( + 62, 46 * + 26 + - + 21 ) ) * + CAST ( NULL AS INTEGER ) + - CASE 84 WHEN - - 63 THEN + 2 ELSE - + ( - MAX ( - 11 ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT SUM( + 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-9635
SELECT SUM ( + 99 ) AS col1
----
99

query I rowsort
SELECT - 28 * - 45 - 20 - 81
----
1159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9637
SELECT SUM( + CAST( - 54 AS SIGNED ) ) DIV - + CASE - - 66 WHEN - 83 + + 67 THEN NULL ELSE - 55 * 88 + + CAST( + ( + MAX( ALL + - 89 ) ) AS SIGNED ) + - + 71 + 8 - 6 * 83 END - + 18 + 9 + - - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-9637
SELECT SUM ( + CAST ( - 54 AS INTEGER ) ) / - + CASE - - 66 WHEN - 83 + + 67 THEN NULL ELSE - 55 * 88 + + CAST ( + ( + MAX ( ALL + - 89 ) ) AS INTEGER ) + - + 71 + 8 - 6 * 83 END - + 18 + 9 + - - COUNT ( * )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9638
SELECT - 31 DIV - 46 col0
----
0

skipif mysql # not compatible
query I rowsort label-9638
SELECT - 31 / - 46 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9639
SELECT ALL NULLIF ( + 38, + 65 + + 21 ) * + COUNT( * ) - + CAST( + MIN( DISTINCT + 56 ) AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL NULLIF ( + 38, + 65 + + 21 ) * + COUNT ( * ) - + CAST ( + MIN ( DISTINCT + 56 ) AS INTEGER )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9640
SELECT - 71 * COALESCE ( COUNT( DISTINCT CAST( NULL AS SIGNED ) ), - 26 ) - - - 70 + + + 31
----
-39

skipif mysql # not compatible
query I rowsort label-9640
SELECT - 71 * COALESCE ( COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ), - 26 ) - - - 70 + + + 31
----
-39

query I rowsort
SELECT ALL + 31 * + 8 + 87 col2
----
335

query II rowsort
SELECT ( - 65 ) - ( + 17 ), 94 AS col1
----
-82
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9643
SELECT + 98 DIV - + MAX( - 12 )
----
8

skipif mysql # not compatible
query I rowsort label-9643
SELECT + 98 / - + MAX ( - 12 )
----
8

query I rowsort
SELECT ALL - ( 14 ) AS col2
----
-14

query II rowsort
SELECT DISTINCT + - 46, 86 AS col0
----
-46
86

query I rowsort
SELECT + + 81 + 16 * - 42 * - 29
----
19569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9647
SELECT + CAST( - + COALESCE ( - COUNT( * ), 97, - + 43 + 6 + + - 31 * 62 * + 16 * 10 * - + 56 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9647
SELECT + CAST ( - + COALESCE ( - COUNT ( * ), 97, - + 43 + 6 + + - 31 * 62 * + 16 * 10 * - + 56 ) AS INTEGER ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9648
SELECT ALL 90 * + COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) + COUNT( * ) * - CAST( - ( 20 ) AS SIGNED ) AS col1
----
90
NULL

skipif mysql # not compatible
query II rowsort label-9648
SELECT ALL 90 * + COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) + COUNT ( * ) * - CAST ( - ( 20 ) AS INTEGER ) AS col1
----
90
NULL

query II rowsort
SELECT 20 AS col1, 92
----
20
92

query I rowsort
SELECT - COALESCE ( - 3, 93 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9651
SELECT + 73 + - - 29 / + COALESCE ( - 48, - + 64 ) + CAST( NULL AS SIGNED ), + 1 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9651
SELECT + 73 + - - 29 / + COALESCE ( - 48, - + 64 ) + CAST ( NULL AS INTEGER ), + 1 AS col2
----
NULL
1

query I rowsort
SELECT - 56 - - 87 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9653
SELECT ALL - 46 + - + ( ( - CAST( + - COUNT( * ) AS SIGNED ) ) ) + + + 1 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL - 46 + - + ( ( - CAST ( + - COUNT ( * ) AS INTEGER ) ) ) + + + 1 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT + 0 + + + 56 - - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-9654
SELECT + 0 + + + 56 - - COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT ALL COUNT( + - 77 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL COUNT ( + - 77 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT DISTINCT NULLIF ( - COUNT( + 94 ), + 83 * - 2 ) + - COUNT( * ) * - - 97 - - 93 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT NULLIF ( - COUNT ( + 94 ), + 83 * - 2 ) + - COUNT ( * ) * - - 97 - - 93 AS col2
----
-5

query I rowsort
SELECT ALL COALESCE ( + 91, - 88 )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9658
SELECT + COALESCE ( 53, - 13 ) DIV 62 + + - 7 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-9658
SELECT + COALESCE ( 53, - 13 ) / 62 + + - 7 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL + 87 + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL + 87 + COUNT ( * )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9660
SELECT - SUM( ALL - 93 ) + - 13 + + - 0 DIV MAX( ALL + - 95 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-9660
SELECT - SUM ( ALL - 93 ) + - 13 + + - 0 / MAX ( ALL + - 95 ) AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9661
SELECT - CAST( NULL AS SIGNED ) / + 33, ( 74 ) AS col0
----
NULL
74

skipif mysql # not compatible
query II rowsort label-9661
SELECT - CAST ( NULL AS INTEGER ) / + 33, ( 74 ) AS col0
----
NULL
74

query II rowsort
SELECT - 23 * - 4 AS col2, 95 AS col0
----
92
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT DISTINCT COALESCE ( + NULLIF ( - 71, + - 29 / + + COALESCE ( - - 35, + - 34 + + MAX( DISTINCT + 77 ), - + AVG ( ALL + + 67 ) ) ), 88 )
----
-71

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT COALESCE ( + NULLIF ( - 71, + - 29 / + + COALESCE ( - - 35, + - 34 + + MAX ( DISTINCT + 77 ), - + AVG ( ALL + + 67 ) ) ), 88 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT - SUM( 88 ) * COUNT( * ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-9664
SELECT - SUM ( 88 ) * COUNT ( * ) * - 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9665
SELECT ALL COALESCE ( + COUNT( + 45 ), - - COUNT( DISTINCT + 67 ) ), 1
----
1
1

skipif mysql # not compatible
query II rowsort label-9665
SELECT ALL COALESCE ( + COUNT ( + 45 ), - - COUNT ( DISTINCT + 67 ) ), 1
----
1
1

query I rowsort
SELECT ALL + 15 * - 73 AS col0
----
-1095

query I rowsort
SELECT ALL - ( - 74 ) - + - 83
----
157

query I rowsort
SELECT - 88 * + - 78 * + 23
----
157872

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT - 24 * + + 35 + COUNT( * ) - - 65 AS col0
----
-774

skipif mysql # not compatible
query I rowsort label-9669
SELECT - 24 * + + 35 + COUNT ( * ) - - 65 AS col0
----
-774

query I rowsort
SELECT - 69 + - 5 * 14
----
-139

onlyif mysql # aggregate syntax: 
query II rowsort label-9671
SELECT - 28 * 69 AS col0, NULLIF ( + MIN( - 3 ), + 34 ) AS col1
----
-1932
-3

skipif mysql # not compatible
query II rowsort label-9671
SELECT - 28 * 69 AS col0, NULLIF ( + MIN ( - 3 ), + 34 ) AS col1
----
-1932
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9672
SELECT + COUNT( ALL + 73 ) - - COALESCE ( 45, + 11, - - 40 ) DIV - 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9672
SELECT + COUNT ( ALL + 73 ) - - COALESCE ( 45, + 11, - - 40 ) / - 43 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT + COALESCE ( + SUM( ALL + 86 ), 6 + - CASE WHEN NOT ( + COUNT( * ) ) BETWEEN - SUM( ALL - + 51 ) * 29 AND - 37 / - 63 * - 17 * + ( - + COUNT( * ) ) * + 87 THEN NULL ELSE + 98 END - + - 41 * 60, COUNT( * ) * + - 55 * - 70 * + ( + NULLIF ( + MIN( 89 ), - 39 + + 12 * - 96 ) ) * - 42 )
----
86

skipif mysql # not compatible
query I rowsort label-9673
SELECT + COALESCE ( + SUM ( ALL + 86 ), 6 + - CASE WHEN NOT ( + COUNT ( * ) ) BETWEEN - SUM ( ALL - + 51 ) * 29 AND - 37 / - 63 * - 17 * + ( - + COUNT ( * ) ) * + 87 THEN NULL ELSE + 98 END - + - 41 * 60, COUNT ( * ) * + - 55 * - 70 * + ( + NULLIF ( + MIN ( 89 ), - 39 + + 12 * - 96 ) ) * - 42 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT 53 * - COUNT( * ) + COUNT( * ) * - - 40 col1
----
-13

skipif mysql # not compatible
query I rowsort label-9674
SELECT 53 * - COUNT ( * ) + COUNT ( * ) * - - 40 col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9675
SELECT ALL + CAST( + 80 AS SIGNED ) * + COUNT( * ) + - 43 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL + CAST ( + 80 AS INTEGER ) * + COUNT ( * ) + - 43 AS col2
----
37

query I rowsort
SELECT - + 71 * - + 81
----
5751

query II rowsort
SELECT ALL + 66 * 14, + 41 AS col2
----
924
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9678
SELECT - + 60 DIV + SUM( ALL + 88 ) + - 5 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9678
SELECT - + 60 / + SUM ( ALL + 88 ) + - 5 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT DISTINCT + - 92 * - 80 * CASE - 59 WHEN - COUNT( * ) * 56 THEN + 96 END * 12 + 68 + + 80 / + + 22 * ( 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT + - 92 * - 80 * CASE - 59 WHEN - COUNT ( * ) * 56 THEN + 96 END * 12 + 68 + + 80 / + + 22 * ( 89 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL + - CASE - - COUNT( * ) WHEN - ( + + 95 ) * + - 71 * AVG ( DISTINCT - 21 ) - + 79 + + - 6 THEN 48 * - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL + - CASE - - COUNT ( * ) WHEN - ( + + 95 ) * + - 71 * AVG ( DISTINCT - 21 ) - + 79 + + - 6 THEN 48 * - 10 END
----
NULL

query I rowsort
SELECT - 35 * 54 AS col1
----
-1890

query I rowsort
SELECT + - 45 * - 12 + 7
----
547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT + + 44 * - 39 + - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT + + 44 * - 39 + - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT + + COUNT( * ) + - 96
----
-95

skipif mysql # not compatible
query I rowsort label-9684
SELECT + + COUNT ( * ) + - 96
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT + + MIN( DISTINCT 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-9685
SELECT + + MIN ( DISTINCT 12 ) AS col1
----
12

query I rowsort
SELECT + - ( + 92 ) * 89
----
-8188

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT ALL - SUM( ALL + 23 ) * + + 25 + - + 75
----
-650

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL - SUM ( ALL + 23 ) * + + 25 + - + 75
----
-650

query I rowsort
SELECT DISTINCT - 0 * + 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT ALL + ( + 81 ) * - 44 + ( - 57 ) + COUNT( * ) AS col1
----
-3620

skipif mysql # not compatible
query I rowsort label-9689
SELECT ALL + ( + 81 ) * - 44 + ( - 57 ) + COUNT ( * ) AS col1
----
-3620

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT + 20 * + 40 * - COUNT( * )
----
-800

skipif mysql # not compatible
query I rowsort label-9690
SELECT + 20 * + 40 * - COUNT ( * )
----
-800

query I rowsort
SELECT DISTINCT 18 * - 41 col2
----
-738

onlyif mysql # aggregate syntax: 
query II rowsort label-9692
SELECT DISTINCT COUNT( * ), - 32 AS col2
----
1
-32

skipif mysql # not compatible
query II rowsort label-9692
SELECT DISTINCT COUNT ( * ), - 32 AS col2
----
1
-32

query I rowsort
SELECT + ( - + 21 ) - - 57 AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9694
SELECT + COUNT( * ) - 3 + + - 28 * CAST( + + 86 AS SIGNED ) * COALESCE ( - + 53, - 4 * 82 DIV - CASE + + 84 WHEN + CASE - - COALESCE ( - 52, - 27 + + - 40 ) WHEN - 76 THEN - ( 43 ) END THEN 13 ELSE - 21 + - 57 * - ( 99 ) * + 91 + - AVG ( DISTINCT + - 61 ) END * - COALESCE ( 71, MAX( + 75 ), 20 + - 11 ) + 11 + MIN( ALL + 32 ) + + COUNT( * ), - 34 + + 67 ) AS col0
----
127622

skipif mysql # not compatible
query I rowsort label-9694
SELECT + COUNT ( * ) - 3 + + - 28 * CAST ( + + 86 AS INTEGER ) * COALESCE ( - + 53, - 4 * 82 / - CASE + + 84 WHEN + CASE - - COALESCE ( - 52, - 27 + + - 40 ) WHEN - 76 THEN - ( 43 ) END THEN 13 ELSE - 21 + - 57 * - ( 99 ) * + 91 + - AVG ( DISTINCT + - 61 ) END * - COALESCE ( 71, MAX ( + 75 ), 20 + - 11 ) + 11 + MIN ( ALL + 32 ) + + COUNT ( * ), - 34 + + 67 ) AS col0
----
127622

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT ALL CASE + - 38 WHEN MAX( 69 ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL CASE + - 38 WHEN MAX ( 69 ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT ALL ( - + SUM( ALL - + COALESCE ( + - 75, + 46 ) ) )
----
-75

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL ( - + SUM ( ALL - + COALESCE ( + - 75, + 46 ) ) )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9697
SELECT ALL - NULLIF ( - + CAST( 88 AS SIGNED ), - 12 * + COUNT( * ) ) * MAX( - 70 ) - + + ( + 54 )
----
-6214

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL - NULLIF ( - + CAST ( 88 AS INTEGER ), - 12 * + COUNT ( * ) ) * MAX ( - 70 ) - + + ( + 54 )
----
-6214

query I rowsort
SELECT - 64 - + 96
----
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-9699
SELECT ALL 70 DIV - - 33 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL 70 / - - 33 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9700
SELECT - CAST( + 13 AS SIGNED ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-9700
SELECT - CAST ( + 13 AS INTEGER ) AS col2
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9701
SELECT ALL CASE 39 WHEN + + 49 * + + ( 36 ) * - 0 THEN - 31 ELSE 39 + - + 62 DIV NULLIF ( - 2, - COALESCE ( 76, + MAX( - 43 ) * - - COUNT( - 33 ), 51 ) ) END AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL CASE 39 WHEN + + 49 * + + ( 36 ) * - 0 THEN - 31 ELSE 39 + - + 62 / NULLIF ( - 2, - COALESCE ( 76, + MAX ( - 43 ) * - - COUNT ( - 33 ), 51 ) ) END AS col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9702
SELECT - 46 * + + NULLIF ( - - 43, 68 + 92 * + - 13 ), COUNT( ALL - 38 ) AS col1
----
-1978
1

skipif mysql # not compatible
query II rowsort label-9702
SELECT - 46 * + + NULLIF ( - - 43, 68 + 92 * + - 13 ), COUNT ( ALL - 38 ) AS col1
----
-1978
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9703
SELECT - 57 * - + 61 + 65 - MAX( + - CAST( + ( - 83 ) AS SIGNED ) ) AS col0
----
3459

skipif mysql # not compatible
query I rowsort label-9703
SELECT - 57 * - + 61 + 65 - MAX ( + - CAST ( + ( - 83 ) AS INTEGER ) ) AS col0
----
3459

query I rowsort
SELECT DISTINCT + ( 57 ) AS col2
----
57

query II rowsort
SELECT ALL + 96 col1, 9 AS col2
----
96
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT - 98 / - CASE + + COUNT( * ) WHEN 83 + 77 + 77 THEN - 1 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT - 98 / - CASE + + COUNT ( * ) WHEN 83 + 77 + 77 THEN - 1 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9707
SELECT DISTINCT + + NULLIF ( + - 25, 13 - 23 + + 53 * + + CAST( NULL AS SIGNED ) )
----
-25

skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT + + NULLIF ( + - 25, 13 - 23 + + 53 * + + CAST ( NULL AS INTEGER ) )
----
-25

query II rowsort
SELECT + + 43 AS col2, + 35 AS col2
----
43
35

query I rowsort
SELECT ALL + 14 + - 83 col1
----
-69

query I rowsort
SELECT DISTINCT - 56 * 73
----
-4088

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT 89 + + + ( + ( + ( + + SUM( DISTINCT - 20 ) ) ) ) * - - 62 + 25
----
-1126

skipif mysql # not compatible
query I rowsort label-9711
SELECT 89 + + + ( + ( + ( + + SUM ( DISTINCT - 20 ) ) ) ) * - - 62 + 25
----
-1126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9712
SELECT DISTINCT - - 67, CASE + - 34 WHEN + - 45 * - 25 * + - 32 + 90 THEN - COALESCE ( - 89, - COUNT( * ) * + CAST( + - 29 AS SIGNED ) * + 62 * - COUNT( * ) * 9 * 0 * - 88 + + + 53 ) END AS col1
----
67
NULL

skipif mysql # not compatible
query II rowsort label-9712
SELECT DISTINCT - - 67, CASE + - 34 WHEN + - 45 * - 25 * + - 32 + 90 THEN - COALESCE ( - 89, - COUNT ( * ) * + CAST ( + - 29 AS INTEGER ) * + 62 * - COUNT ( * ) * 9 * 0 * - 88 + + + 53 ) END AS col1
----
67
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9713
SELECT ALL + 54 + - 9 + - 58 DIV - ( - 20 ) - 10 col1
----
33

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL + 54 + - 9 + - 58 / - ( - 20 ) - 10 col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9714
SELECT 99 + SUM( DISTINCT CAST( NULL AS SIGNED ) ) * - + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT 99 + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * - + 16
----
NULL

query I rowsort
SELECT + 69 * - + 43 AS col0
----
-2967

query I rowsort
SELECT ALL 8 + - 71 + + 16 + + + 85
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9717
SELECT - 89 col0, + 63 + - 78 * 99 * + + CAST( + ( - 14 ) AS SIGNED ) AS col1
----
-89
108171

skipif mysql # not compatible
query II rowsort label-9717
SELECT - 89 col0, + 63 + - 78 * 99 * + + CAST ( + ( - 14 ) AS INTEGER ) AS col1
----
-89
108171

query I rowsort
SELECT DISTINCT - + 17 col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-9719
SELECT ALL - 27 + - - 86 + 26 * + + 10 + + 32 + - - 3, + 97 * - + COUNT( 21 ) / + 53 * - CASE - 72 WHEN - NULLIF ( - + 18, + 50 * - - COUNT( - 5 ) ) + + - MIN( ALL + 33 ) + - 58 - + 42 THEN 13 + - 32 * - 43 END + - 88 col2
----
354
NULL

skipif mysql # not compatible
query II rowsort label-9719
SELECT ALL - 27 + - - 86 + 26 * + + 10 + + 32 + - - 3, + 97 * - + COUNT ( 21 ) / + 53 * - CASE - 72 WHEN - NULLIF ( - + 18, + 50 * - - COUNT ( - 5 ) ) + + - MIN ( ALL + 33 ) + - 58 - + 42 THEN 13 + - 32 * - 43 END + - 88 col2
----
354
NULL

query I rowsort
SELECT - 18 + + 58 AS col0
----
40

query I rowsort
SELECT + ( NULLIF ( 47, - + 51 - + + 80 + 68 * + + 98 ) ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT 48 + + COUNT( * ) + - 48 * - 54 + 19 AS col2
----
2660

skipif mysql # not compatible
query I rowsort label-9722
SELECT 48 + + COUNT ( * ) + - 48 * - 54 + 19 AS col2
----
2660

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9723
SELECT ( + COUNT( * ) ) - - 49 + - CAST( NULL AS DECIMAL ) AS col2, 91 * + - 93
----
NULL
-8463

skipif mysql # not compatible
query II rowsort label-9723
SELECT ( + COUNT ( * ) ) - - 49 + - CAST ( NULL AS REAL ) AS col2, 91 * + - 93
----
NULL
-8463

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9724
SELECT 90 + + COUNT( * ) DIV 85 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-9724
SELECT 90 + + COUNT ( * ) / 85 AS col2
----
90

query I rowsort
SELECT ALL 6 - 93 col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT 97 * 0 * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9726
SELECT 97 * 0 * - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ( - 22 ) + + - ( - - 4 )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9728
SELECT DISTINCT 35 - + CAST( NULL AS SIGNED ) * - - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9728
SELECT DISTINCT 35 - + CAST ( NULL AS INTEGER ) * - - 48 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9729
SELECT ALL CAST( NULL AS SIGNED ) * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL CAST ( NULL AS INTEGER ) * 69
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9730
SELECT DISTINCT COALESCE ( - COUNT( * ), 92 ) * - + 4 AS col0, 39
----
4
39

skipif mysql # not compatible
query II rowsort label-9730
SELECT DISTINCT COALESCE ( - COUNT ( * ), 92 ) * - + 4 AS col0, 39
----
4
39

query II rowsort
SELECT 32 * + + 14 AS col2, 5 AS col0
----
448
5

query I rowsort
SELECT ALL 64 * + 81 col2
----
5184

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9733
SELECT 51 + - 40 col1, 17 * + 75 DIV + SUM( DISTINCT + 71 ) AS col2
----
11
17

skipif mysql # not compatible
query II rowsort label-9733
SELECT 51 + - 40 col1, 17 * + 75 / + SUM ( DISTINCT + 71 ) AS col2
----
11
17

query I rowsort
SELECT 21 * 30 AS col1
----
630

query I rowsort
SELECT ALL + 53 + + - 49 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT ALL - 89 + COALESCE ( - 76, - + 74, - COUNT( * ) ) * 70 + + - SUM( DISTINCT + 87 )
----
-5496

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL - 89 + COALESCE ( - 76, - + 74, - COUNT ( * ) ) * 70 + + - SUM ( DISTINCT + 87 )
----
-5496

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT 47 + + COUNT( * ) * - ( - 2 ) + MIN( ALL - 7 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-9737
SELECT 47 + + COUNT ( * ) * - ( - 2 ) + MIN ( ALL - 7 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT DISTINCT - COUNT( * ) * + 12 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT - COUNT ( * ) * + 12 AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9739
SELECT DISTINCT 38 + - NULLIF ( + 69, - 98 * - 15 * COUNT( 91 ) + + CASE 31 WHEN + 81 THEN NULL ELSE CAST( NULL AS DECIMAL ) END + + + NULLIF ( - - MAX( - 68 ), - COUNT( * ) ) - + COUNT( * ) + - 57 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT 38 + - NULLIF ( + 69, - 98 * - 15 * COUNT ( 91 ) + + CASE 31 WHEN + 81 THEN NULL ELSE CAST ( NULL AS REAL ) END + + + NULLIF ( - - MAX ( - 68 ), - COUNT ( * ) ) - + COUNT ( * ) + - 57 ) AS col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT - COALESCE ( - - CAST( NULL AS SIGNED ), + 87 * + 48 + - + CAST( 45 AS SIGNED ), - + 65 )
----
-4131

skipif mysql # not compatible
query I rowsort label-9740
SELECT - COALESCE ( - - CAST ( NULL AS INTEGER ), + 87 * + 48 + - + CAST ( 45 AS INTEGER ), - + 65 )
----
-4131

query I rowsort
SELECT - - 8 * + 8 + - 73
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9742
SELECT - 9 + - + 92 DIV - COUNT( * ) + - MIN( DISTINCT + - 46 ) * + 30
----
1463

skipif mysql # not compatible
query I rowsort label-9742
SELECT - 9 + - + 92 / - COUNT ( * ) + - MIN ( DISTINCT + - 46 ) * + 30
----
1463

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL 23 + SUM( DISTINCT + 91 )
----
114

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL 23 + SUM ( DISTINCT + 91 )
----
114

query I rowsort
SELECT DISTINCT - NULLIF ( - 24, + 57 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT ALL - - 87 + - - COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL - - 87 + - - COUNT ( * ) AS col1
----
88

query I rowsort
SELECT + 89 + + 79 * + - 70
----
-5441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9747
SELECT - MIN( - 39 ), COUNT( * ) + + - 98 - - CAST( + 75 AS SIGNED ) AS col1
----
39
-22

skipif mysql # not compatible
query II rowsort label-9747
SELECT - MIN ( - 39 ), COUNT ( * ) + + - 98 - - CAST ( + 75 AS INTEGER ) AS col1
----
39
-22

query I rowsort
SELECT - 42 * + 83 * + 55 - - 20
----
-191710

query I rowsort
SELECT - 39 + + 13 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT DISTINCT - COUNT( * ) * 12 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT - COUNT ( * ) * 12 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT 0 * - + 47 * + + ( + 1 ) * - SUM( ALL + + ( - 3 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9751
SELECT 0 * - + 47 * + + ( + 1 ) * - SUM ( ALL + + ( - 3 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9752
SELECT ALL - SUM( ALL - - NULLIF ( + - 28, 69 - - 76 * + + CAST( 3 AS SIGNED ) ) ) * + - 31 * - NULLIF ( + MIN( DISTINCT - 83 ), + - COUNT( - + 12 ) ) col0
----
-72044

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL - SUM ( ALL - - NULLIF ( + - 28, 69 - - 76 * + + CAST ( 3 AS INTEGER ) ) ) * + - 31 * - NULLIF ( + MIN ( DISTINCT - 83 ), + - COUNT ( - + 12 ) ) col0
----
-72044

query II rowsort
SELECT ALL 88 AS col1, - ( + 73 ) col0
----
88
-73

query I rowsort
SELECT 90 * - 68
----
-6120

query II rowsort
SELECT - 46 AS col0, 5 AS col1
----
-46
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT COUNT( * ) * + - 92 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-9756
SELECT COUNT ( * ) * + - 92 AS col0
----
-92

query I rowsort
SELECT 6 - 28
----
-22

query II rowsort
SELECT 15 - 60 + - + 77 AS col2, 37 * + 53
----
-122
1961

onlyif mysql # DIV for integer division: 
query I rowsort label-9759
SELECT ALL COALESCE ( - ( - + 6 ), + - 39 * - 10 * - - 45 ) DIV - 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL COALESCE ( - ( - + 6 ), + - 39 * - 10 * - - 45 ) / - 46 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9760
SELECT 22 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-9760
SELECT 22 / 76
----
0

query I rowsort
SELECT ALL + 21 + - 33
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9762
SELECT ALL - CASE 17 WHEN + 97 * + 62 * + 35 THEN + 40 - + - CAST( + 80 AS SIGNED ) END + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL - CASE 17 WHEN + 97 * + 62 * + 35 THEN + 40 - + - CAST ( + 80 AS INTEGER ) END + 33
----
NULL

query I rowsort
SELECT ALL 10 + - + 68
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT ALL 69 + - MIN( - - ( - 40 ) ) + + 88 - + 22 + - - 3 AS col0
----
178

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL 69 + - MIN ( - - ( - 40 ) ) + + 88 - + 22 + - - 3 AS col0
----
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9765
SELECT + MAX( ALL - 9 ) DIV - 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9765
SELECT + MAX ( ALL - 9 ) / - 55 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT + 51 - 95 * + + COUNT( + + 12 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-9766
SELECT + 51 - 95 * + + COUNT ( + + 12 ) AS col2
----
-44

query I rowsort
SELECT + 68 * - - 78 * - 50
----
-265200

query I rowsort
SELECT ALL 74 + 66
----
140

query I rowsort
SELECT ALL + 54 + 87 * + 44 + - 13 col1
----
3869

onlyif mysql # DIV for integer division: 
query I rowsort label-9770
SELECT + 15 + + ( - + 38 ) - - 61 + + 99 DIV - 96
----
37

skipif mysql # not compatible
query I rowsort label-9770
SELECT + 15 + + ( - + 38 ) - - 61 + + 99 / - 96
----
37

query I rowsort
SELECT + 24 * 45 * 22 AS col2
----
23760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9772
SELECT + - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9772
SELECT + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9773
SELECT ALL + CAST( - - 26 AS DECIMAL ) * 57 + 93 * + 45 / + + 28 + - ( - NULLIF ( + 90, - + 0 * + CAST( NULL AS SIGNED ) + - ( - COUNT( * ) ) * - - 46 * - - 90 ) ) * 52 + - CAST( NULL AS SIGNED ) + 68 AS col1, 27 AS col0
----
NULL
27

skipif mysql # not compatible
query II rowsort label-9773
SELECT ALL + CAST ( - - 26 AS REAL ) * 57 + 93 * + 45 / + + 28 + - ( - NULLIF ( + 90, - + 0 * + CAST ( NULL AS INTEGER ) + - ( - COUNT ( * ) ) * - - 46 * - - 90 ) ) * 52 + - CAST ( NULL AS INTEGER ) + 68 AS col1, 27 AS col0
----
NULL
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9774
SELECT + - 29 col1, + COUNT( * ) + + + COUNT( * )
----
-29
2

skipif mysql # not compatible
query II rowsort label-9774
SELECT + - 29 col1, + COUNT ( * ) + + + COUNT ( * )
----
-29
2

query I rowsort
SELECT ALL - 71 * 11 col0
----
-781

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT + SUM( ALL + + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-9776
SELECT + SUM ( ALL + + 46 )
----
46

query I rowsort
SELECT ALL ( - - 59 ) * 9 + + + 50
----
581

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT + 47 * + 98 - - COUNT( * ) AS col1
----
4607

skipif mysql # not compatible
query I rowsort label-9778
SELECT + 47 * + 98 - - COUNT ( * ) AS col1
----
4607

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9779
SELECT COUNT( * ) * - CAST( + 15 AS SIGNED ) * COUNT( * ) + + + 90
----
75

skipif mysql # not compatible
query I rowsort label-9779
SELECT COUNT ( * ) * - CAST ( + 15 AS INTEGER ) * COUNT ( * ) + + + 90
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT + 44 * + COUNT( * ) + 73 * COUNT( * ) AS col2
----
117

skipif mysql # not compatible
query I rowsort label-9780
SELECT + 44 * + COUNT ( * ) + 73 * COUNT ( * ) AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT + SUM( - 70 ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-9781
SELECT + SUM ( - 70 ) col1
----
-70

onlyif mysql # aggregate syntax: 
query III rowsort label-9782
SELECT ALL + - 97 col0, COUNT( DISTINCT 1 ), + 37 AS col0
----
-97
1
37

skipif mysql # not compatible
query III rowsort label-9782
SELECT ALL + - 97 col0, COUNT ( DISTINCT 1 ), + 37 AS col0
----
-97
1
37

query I rowsort
SELECT - 71 * + - 99 AS col1
----
7029

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9784
SELECT ALL + ( + + ( - 12 ) ) DIV - 5 + + 95 - + COUNT( * ) * 34 * - ( - - 48 ) * - 57 * + 14
----
-1302239

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL + ( + + ( - 12 ) ) / - 5 + + 95 - + COUNT ( * ) * 34 * - ( - - 48 ) * - 57 * + 14
----
-1302239

onlyif mysql # aggregate syntax: 
query II rowsort label-9785
SELECT ALL + COUNT( * ) AS col0, + 73 * 55 + - + 55 + - SUM( ALL - 60 ) * - 13 * + 8 + - 62
----
1
-2342

skipif mysql # not compatible
query II rowsort label-9785
SELECT ALL + COUNT ( * ) AS col0, + 73 * 55 + - + 55 + - SUM ( ALL - 60 ) * - 13 * + 8 + - 62
----
1
-2342

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9786
SELECT + CAST( NULL AS DECIMAL ) / - - 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9786
SELECT + CAST ( NULL AS REAL ) / - - 21 AS col1
----
NULL

query I rowsort
SELECT - 17 * - 72
----
1224

query I rowsort
SELECT ALL COALESCE ( 0, - - 5 - - + ( - ( + 19 ) ), 87 * - 22 ) AS col2
----
0

query II rowsort
SELECT - 5 + + 63 col0, + 40 AS col0
----
58
40

query I rowsort
SELECT ALL + COALESCE ( + 52, - + 54, - ( + 93 ) ) + + - 61 + - 63 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT ALL - 35 + 51 * - + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL - 35 + 51 * - + COUNT ( * )
----
-86

query I rowsort
SELECT ALL COALESCE ( - + 20, - 85, 23 ) AS col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9793
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) DIV - + 63 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) / - + 63 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT - MAX( ALL 87 ) + - - 68 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-9794
SELECT - MAX ( ALL 87 ) + - - 68 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9795
SELECT ALL - COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 69 * - 8 * - 51 AS col2
----
28152

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT ALL SUM( 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL SUM ( 38 ) AS col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9798
SELECT - - 86 + + + 80 + - SUM( + + 55 ) + 98 - + - 30 DIV - 29
----
208

skipif mysql # not compatible
query I rowsort label-9798
SELECT - - 86 + + + 80 + - SUM ( + + 55 ) + 98 - + - 30 / - 29
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT - + COUNT( * ) * - MAX( - 72 ) - - + 42
----
-30

skipif mysql # not compatible
query I rowsort label-9799
SELECT - + COUNT ( * ) * - MAX ( - 72 ) - - + 42
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-9800
SELECT DISTINCT 83 * + 97, + MIN( DISTINCT + + 65 ) AS col1
----
8051
65

skipif mysql # not compatible
query II rowsort label-9800
SELECT DISTINCT 83 * + 97, + MIN ( DISTINCT + + 65 ) AS col1
----
8051
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT DISTINCT + - 66 * - MIN( - + 34 ) * 32 col0
----
-71808

skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT + - 66 * - MIN ( - + 34 ) * 32 col0
----
-71808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT - CAST( NULL AS SIGNED ) * + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT - CAST ( NULL AS INTEGER ) * + - 16
----
NULL

query I rowsort
SELECT ALL 41 * 15
----
615

query I rowsort
SELECT - 15 * - - 97 AS col2
----
-1455

query II rowsort
SELECT 37 col2, 67 - 61
----
37
6

query I rowsort
SELECT - + 59 + - 93
----
-152

query II rowsort
SELECT ALL + 56 AS col0, 22
----
56
22

query I rowsort
SELECT + + 10 * 9
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9809
SELECT 80, + 12 * - COUNT( * ) AS col0
----
80
-12

skipif mysql # not compatible
query II rowsort label-9809
SELECT 80, + 12 * - COUNT ( * ) AS col0
----
80
-12

query I rowsort
SELECT + 74 + - - 83
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9811
SELECT + 65 + 71 + - COUNT( * ) - + CAST( NULL AS SIGNED ) + 68 / - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT + 65 + 71 + - COUNT ( * ) - + CAST ( NULL AS INTEGER ) + 68 / - 42 AS col1
----
NULL

query II rowsort
SELECT ( - 20 ) AS col2, + 55 + 23
----
-20
78

query I rowsort
SELECT ( + + 61 ) AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT + CAST( NULL AS SIGNED ) / - 7 / - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT + CAST ( NULL AS INTEGER ) / - 7 / - 60 AS col0
----
NULL

query I rowsort
SELECT + 29 * + + 42 * - + NULLIF ( + 73, + - 79 )
----
-88914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9816
SELECT - 73 * - 5 * + MAX( + 66 ) DIV 33 * + 36 * + - ( - + 23 ) + MIN( ALL ( 74 ) ) + + - 86 + - 79
----
604349

skipif mysql # not compatible
query I rowsort label-9816
SELECT - 73 * - 5 * + MAX ( + 66 ) / 33 * + 36 * + - ( - + 23 ) + MIN ( ALL ( 74 ) ) + + - 86 + - 79
----
604349

query I rowsort
SELECT ALL - NULLIF ( - 81, + 23 ) * - 35 + 72
----
-2763

onlyif mysql # DIV for integer division: 
query I rowsort label-9818
SELECT + 82 DIV 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9818
SELECT + 82 / 84 AS col2
----
0

query I rowsort
SELECT ALL + ( 31 ) * - - 22 + + 4 + - 20 * + 10
----
486

onlyif mysql # aggregate syntax: 
query II rowsort label-9820
SELECT ALL 5 * - 63 AS col2, - 87 - + MIN( + 46 ) AS col1
----
-315
-133

skipif mysql # not compatible
query II rowsort label-9820
SELECT ALL 5 * - 63 AS col2, - 87 - + MIN ( + 46 ) AS col1
----
-315
-133

onlyif mysql # DIV for integer division: 
query II rowsort label-9821
SELECT DISTINCT - 48 DIV - + 23 AS col0, 75 - + - 23 * 26
----
2
673

skipif mysql # not compatible
query II rowsort label-9821
SELECT DISTINCT - 48 / - + 23 AS col0, 75 - + - 23 * 26
----
2
673

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9822
SELECT ALL + COUNT( * ) + - + 31 - 40 DIV - - SUM( DISTINCT + + 3 ) col2, 27 AS col1
----
-43
27

skipif mysql # not compatible
query II rowsort label-9822
SELECT ALL + COUNT ( * ) + - + 31 - 40 / - - SUM ( DISTINCT + + 3 ) col2, 27 AS col1
----
-43
27

query I rowsort
SELECT 40 - + 94 + + CASE - 44 WHEN 89 THEN NULL WHEN 7 THEN 19 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9824
SELECT 50 - + MAX( ALL 80 ) * 26 DIV + ( MIN( ALL ( - 3 ) ) ) + 27 * 39 AS col1
----
1796

skipif mysql # not compatible
query I rowsort label-9824
SELECT 50 - + MAX ( ALL 80 ) * 26 / + ( MIN ( ALL ( - 3 ) ) ) + 27 * 39 AS col1
----
1796

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT ALL + 26 - + 89 * - COUNT( * ) * NULLIF ( + 8, + 1 ) col1
----
738

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL + 26 - + 89 * - COUNT ( * ) * NULLIF ( + 8, + 1 ) col1
----
738

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT + COUNT( * ) + ( - - 2 )
----
3

skipif mysql # not compatible
query I rowsort label-9826
SELECT + COUNT ( * ) + ( - - 2 )
----
3

query I rowsort
SELECT 12 * - 69 + + 17 AS col1
----
-811

query I rowsort
SELECT ALL + - 13 - - 5 * + - 32 AS col1
----
-173

onlyif mysql # aggregate syntax: 
query II rowsort label-9829
SELECT 92 * - ( 40 ) AS col1, MIN( DISTINCT 46 )
----
-3680
46

skipif mysql # not compatible
query II rowsort label-9829
SELECT 92 * - ( 40 ) AS col1, MIN ( DISTINCT 46 )
----
-3680
46

query I rowsort
SELECT + 69 * + 81 * + 59
----
329751

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT COUNT( * ) + 79 - + - NULLIF ( 12, - - 73 * - COUNT( * ) + + 1 - - - 18 + + COUNT( * ) + - ( COUNT( * ) ) + - + COUNT( ALL - + 90 ) )
----
92

skipif mysql # not compatible
query I rowsort label-9831
SELECT COUNT ( * ) + 79 - + - NULLIF ( 12, - - 73 * - COUNT ( * ) + + 1 - - - 18 + + COUNT ( * ) + - ( COUNT ( * ) ) + - + COUNT ( ALL - + 90 ) )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9832
SELECT ALL ( + - 77 ), COUNT( * ) * - - COALESCE ( 0, + + COUNT( * ) ) col2
----
-77
0

skipif mysql # not compatible
query II rowsort label-9832
SELECT ALL ( + - 77 ), COUNT ( * ) * - - COALESCE ( 0, + + COUNT ( * ) ) col2
----
-77
0

query I rowsort
SELECT - 35 * - 40
----
1400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9834
SELECT DISTINCT - + 71 DIV - - MIN( ALL 52 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT - + 71 / - - MIN ( ALL 52 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9835
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 37 * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 37 * - 56
----
NULL

query I rowsort
SELECT DISTINCT + + 59 + + CASE - - ( - 51 ) WHEN + ( - + 43 ) + 40 THEN NULL ELSE + 90 END
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9837
SELECT NULLIF ( - - 65, + - 88 * 77 * - 94 ) * + - 65 AS col2, - 31 DIV - COUNT( * ) + - - 51 + + CAST( AVG ( + 17 ) AS SIGNED ) DIV + - 89 * 62 * 22 AS col0
----
-4225
82

skipif mysql # not compatible
query II rowsort label-9837
SELECT NULLIF ( - - 65, + - 88 * 77 * - 94 ) * + - 65 AS col2, - 31 / - COUNT ( * ) + - - 51 + + CAST ( AVG ( + 17 ) AS INTEGER ) / + - 89 * 62 * 22 AS col0
----
-4225
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9838
SELECT + CASE - COUNT( * ) WHEN - 0 + + + CAST( + - COUNT( * ) AS SIGNED ) THEN 45 - COUNT( * ) WHEN + 94 * 49 + 93 THEN - COUNT( ALL - 28 ) * - COUNT( * ) * + 11 * - CASE + AVG ( CAST( NULL AS DECIMAL ) ) WHEN + ( + 88 ) THEN NULLIF ( CAST( NULL AS SIGNED ), - 12 * + 76 + 4 ) WHEN 42 THEN NULL END * + + 67 WHEN - 59 * - 61 + + + 62 THEN - 52 WHEN ( - + 82 ) THEN + COUNT( DISTINCT 67 ) ELSE NULL END * + NULLIF ( + 61 + - 36, 7 * + 20 ) + + 48
----
1148

skipif mysql # not compatible
query I rowsort label-9838
SELECT + CASE - COUNT ( * ) WHEN - 0 + + + CAST ( + - COUNT ( * ) AS INTEGER ) THEN 45 - COUNT ( * ) WHEN + 94 * 49 + 93 THEN - COUNT ( ALL - 28 ) * - COUNT ( * ) * + 11 * - CASE + AVG ( CAST ( NULL AS REAL ) ) WHEN + ( + 88 ) THEN NULLIF ( CAST ( NULL AS INTEGER ), - 12 * + 76 + 4 ) WHEN 42 THEN NULL END * + + 67 WHEN - 59 * - 61 + + + 62 THEN - 52 WHEN ( - + 82 ) THEN + COUNT ( DISTINCT 67 ) ELSE NULL END * + NULLIF ( + 61 + - 36, 7 * + 20 ) + + 48
----
1148

query II rowsort
SELECT + 28 AS col1, - 7
----
28
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9840
SELECT 34 * + - NULLIF ( 2, + 93 * + 85 * - COUNT( * ) + - - 92 * + 73 DIV + - 99 + - COUNT( * ) + - - 38 * + ( - 79 ) * 86 ) + + 11 DIV + 82
----
-68

skipif mysql # not compatible
query I rowsort label-9840
SELECT 34 * + - NULLIF ( 2, + 93 * + 85 * - COUNT ( * ) + - - 92 * + 73 / + - 99 + - COUNT ( * ) + - - 38 * + ( - 79 ) * 86 ) + + 11 / + 82
----
-68

query II rowsort
SELECT + 84, 11 AS col0
----
84
11

query I rowsort
SELECT ALL ( - 74 ) + - 94 AS col0
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9843
SELECT NULLIF ( + CAST( NULL AS SIGNED ), 70 - 76 + - 3 + 81 + + NULLIF ( + ( + 80 ), - 22 + + 79 * - NULLIF ( 15, 15 * + + ( MIN( 98 ) ) / + + 35 * + - CASE - 66 WHEN 2 THEN NULL ELSE + 67 * + - 67 + + 38 * - - 67 * ( - 86 ) END + - 27 ) / - 62 + - CASE - AVG ( ALL 59 ) WHEN - 49 THEN ( 28 ) + 70 * 49 END * - 29 ) * + ( 87 * COUNT( * ) - + ( - 76 ) ) ) + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), 70 - 76 + - 3 + 81 + + NULLIF ( + ( + 80 ), - 22 + + 79 * - NULLIF ( 15, 15 * + + ( MIN ( 98 ) ) / + + 35 * + - CASE - 66 WHEN 2 THEN NULL ELSE + 67 * + - 67 + + 38 * - - 67 * ( - 86 ) END + - 27 ) / - 62 + - CASE - AVG ( ALL 59 ) WHEN - 49 THEN ( 28 ) + 70 * 49 END * - 29 ) * + ( 87 * COUNT ( * ) - + ( - 76 ) ) ) + + 76
----
NULL

query I rowsort
SELECT ALL + 34 + - 41
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT DISTINCT - SUM( DISTINCT - 67 ) col1
----
67

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT - SUM ( DISTINCT - 67 ) col1
----
67

query I rowsort
SELECT 25 + 71 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT ALL MAX( + 7 ) + 75 - + + COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL MAX ( + 7 ) + 75 - + + COUNT ( * ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT DISTINCT - MIN( DISTINCT + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT - MIN ( DISTINCT + 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT - 43 * + + 12 - - 58 - 81 + - 54 + - 62 + + 57 - - 91 * ( + 9 ) - - - SUM( DISTINCT - 47 )
----
268

skipif mysql # not compatible
query I rowsort label-9849
SELECT - 43 * + + 12 - - 58 - 81 + - 54 + - 62 + + 57 - - 91 * ( + 9 ) - - - SUM ( DISTINCT - 47 )
----
268

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9850
SELECT DISTINCT 87 * + COALESCE ( 71, + - 82 + + - ( COUNT( * ) ) ) AS col0, 15 / - 80 + CASE COUNT( * ) WHEN + + 30 THEN NULL ELSE - + 90 END * SUM( - - CAST( NULL AS DECIMAL ) ) / 5
----
6177
NULL

skipif mysql # not compatible
query II rowsort label-9850
SELECT DISTINCT 87 * + COALESCE ( 71, + - 82 + + - ( COUNT ( * ) ) ) AS col0, 15 / - 80 + CASE COUNT ( * ) WHEN + + 30 THEN NULL ELSE - + 90 END * SUM ( - - CAST ( NULL AS REAL ) ) / 5
----
6177
NULL

query I rowsort
SELECT 60 + + + 80 AS col2
----
140

query I rowsort
SELECT 66 * 13
----
858

query I rowsort
SELECT - 86 * - - 58 + + 7 - 89
----
-5070

query II rowsort
SELECT 1 AS col1, + 44 AS col0
----
1
44

query I rowsort
SELECT ALL 86 * + 60
----
5160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9856
SELECT 50 + - COUNT( * ) + COUNT( * ) + - 41 DIV + 61 + 75 * - 59 + - - CAST( 30 AS SIGNED )
----
-4345

skipif mysql # not compatible
query I rowsort label-9856
SELECT 50 + - COUNT ( * ) + COUNT ( * ) + - 41 / + 61 + 75 * - 59 + - - CAST ( 30 AS INTEGER )
----
-4345

query I rowsort
SELECT ALL 98 - - ( - + 11 ) AS col0
----
87

query I rowsort
SELECT 56 * - 26
----
-1456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9859
SELECT ALL CAST( 82 AS SIGNED ) * - 64 col1
----
-5248

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL CAST ( 82 AS INTEGER ) * - 64 col1
----
-5248

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL 78 * 2 + - COUNT( * )
----
155

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL 78 * 2 + - COUNT ( * )
----
155

onlyif mysql # aggregate syntax: 
query III rowsort label-9861
SELECT - COUNT( * ) + + 65 - 64 * 11 AS col2, 81 * - 50 AS col0, - 73
----
-640
-4050
-73

skipif mysql # not compatible
query III rowsort label-9861
SELECT - COUNT ( * ) + + 65 - 64 * 11 AS col2, 81 * - 50 AS col0, - 73
----
-640
-4050
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9862
SELECT + 26 * - 85 * COUNT( * ) - - 83 + - 17 * - NULLIF ( 39, CAST( NULL AS SIGNED ) ) AS col2
----
-1464

skipif mysql # not compatible
query I rowsort label-9862
SELECT + 26 * - 85 * COUNT ( * ) - - 83 + - 17 * - NULLIF ( 39, CAST ( NULL AS INTEGER ) ) AS col2
----
-1464

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT COUNT( * ) + + 41 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-9863
SELECT COUNT ( * ) + + 41 AS col2
----
42

query I rowsort
SELECT ALL CASE + 91 WHEN 79 THEN NULL WHEN 23 + + + 69 THEN - - 5 - - ( + 38 ) WHEN 91 + + 98 + + NULLIF ( - - 79, - 40 ) THEN NULL END
----
NULL

query I rowsort
SELECT 73 + + 21 AS col1
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9866
SELECT + MAX( ALL - 66 ) DIV 80 + + 50
----
50

skipif mysql # not compatible
query I rowsort label-9866
SELECT + MAX ( ALL - 66 ) / 80 + + 50
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9867
SELECT ( - - 59 ) DIV 65 * 75
----
0

skipif mysql # not compatible
query I rowsort label-9867
SELECT ( - - 59 ) / 65 * 75
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9868
SELECT ALL - - 48 DIV + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL - - 48 / + COUNT ( * )
----
48

query I rowsort
SELECT + 67 * + + 2 * + 28 - + 41
----
3711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9870
SELECT 37 + + - CASE WHEN NOT COUNT( * ) IS NOT NULL THEN + + 25 END - - - CAST( NULL AS DECIMAL ) + + COUNT( * ) + 14 + - 13 * + 31 * - - 74 / CAST( NULL AS SIGNED ) + - COUNT( * ) - - - 24 + + NULLIF ( 71, ( + COUNT( * ) ) ) - 45 * + - CASE + + CASE 83 WHEN - - 34 * - - 36 + 68 * + - 33 + - COUNT( * ) THEN NULL WHEN - CASE - 98 WHEN + 77 + + - 26 * SUM( ALL + 36 ) * 55 THEN - COALESCE ( COUNT( * ), 60 * CAST( 80 AS SIGNED ) ) ELSE + 45 / + 10 END THEN NULL ELSE 9 END WHEN - 69 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN - 14 * NULLIF ( COALESCE ( + 45, + 68 * CASE - 51 WHEN + 70 THEN + 61 WHEN - 21 * - 52 THEN NULL END + - SUM( DISTINCT + 84 - ( + 57 ) ) ), + ( + COALESCE ( - 7, - 56 + 30 * - 58 ) ) ) + + ( 25 ) END * - MIN( ALL 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT 37 + + - CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN + + 25 END - - - CAST ( NULL AS REAL ) + + COUNT ( * ) + 14 + - 13 * + 31 * - - 74 / CAST ( NULL AS INTEGER ) + - COUNT ( * ) - - - 24 + + NULLIF ( 71, ( + COUNT ( * ) ) ) - 45 * + - CASE + + CASE 83 WHEN - - 34 * - - 36 + 68 * + - 33 + - COUNT ( * ) THEN NULL WHEN - CASE - 98 WHEN + 77 + + - 26 * SUM ( ALL + 36 ) * 55 THEN - COALESCE ( COUNT ( * ), 60 * CAST ( 80 AS INTEGER ) ) ELSE + 45 / + 10 END THEN NULL ELSE 9 END WHEN - 69 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - 14 * NULLIF ( COALESCE ( + 45, + 68 * CASE - 51 WHEN + 70 THEN + 61 WHEN - 21 * - 52 THEN NULL END + - SUM ( DISTINCT + 84 - ( + 57 ) ) ), + ( + COALESCE ( - 7, - 56 + 30 * - 58 ) ) ) + + ( 25 ) END * - MIN ( ALL 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT ALL - CASE - SUM( DISTINCT + 28 ) WHEN - 49 * - COALESCE ( + 91, + COUNT( * ) - - 84 ) * - - COALESCE ( - CASE 91 WHEN - - ( + - COALESCE ( - ( - CASE COUNT( * ) WHEN - + 15 * - - 6 THEN - 1 WHEN 88 THEN + 93 ELSE NULL END ), COUNT( * ) * - 74 * - 3 ) ) THEN NULL ELSE - - 1 END, + + 65 + - 63 * + - 75 * COUNT( * ) / + - AVG ( ALL - 84 ) ) THEN 73 ELSE - + 96 END * + ( - 34 + COALESCE ( 4 + 37 * 28, 87 ) )
----
96576

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL - CASE - SUM ( DISTINCT + 28 ) WHEN - 49 * - COALESCE ( + 91, + COUNT ( * ) - - 84 ) * - - COALESCE ( - CASE 91 WHEN - - ( + - COALESCE ( - ( - CASE COUNT ( * ) WHEN - + 15 * - - 6 THEN - 1 WHEN 88 THEN + 93 ELSE NULL END ), COUNT ( * ) * - 74 * - 3 ) ) THEN NULL ELSE - - 1 END, + + 65 + - 63 * + - 75 * COUNT ( * ) / + - AVG ( ALL - 84 ) ) THEN 73 ELSE - + 96 END * + ( - 34 + COALESCE ( 4 + 37 * 28, 87 ) )
----
96576

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9872
SELECT 6 + + - ( + 52 ) AS col1, - COUNT( * ) DIV - 17 + COUNT( * ) * + 32 AS col0
----
-46
32

skipif mysql # not compatible
query II rowsort label-9872
SELECT 6 + + - ( + 52 ) AS col1, - COUNT ( * ) / - 17 + COUNT ( * ) * + 32 AS col0
----
-46
32

onlyif mysql # aggregate syntax: 
query II rowsort label-9873
SELECT ALL + 96 + 56 + - 65 + - 34 AS col2, COUNT( * ) * - ( - - 40 ) AS col0
----
53
-40

skipif mysql # not compatible
query II rowsort label-9873
SELECT ALL + 96 + 56 + - 65 + - 34 AS col2, COUNT ( * ) * - ( - - 40 ) AS col0
----
53
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT - CASE 27 WHEN + COUNT( * ) THEN NULL WHEN - 88 / + 56 * 99 + - 73 THEN + 8 * 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT - CASE 27 WHEN + COUNT ( * ) THEN NULL WHEN - 88 / + 56 * 99 + - 73 THEN + 8 * 96 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9875
SELECT + 77 / - + 17 * - + CAST( NULL AS SIGNED ) + + 19 + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT + 77 / - + 17 * - + CAST ( NULL AS INTEGER ) + + 19 + + 78
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9876
SELECT ALL - 39 * 72 DIV + 84 + + 16 DIV + - 11 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL - 39 * 72 / + 84 + + 16 / + - 11 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT COALESCE ( - 70, + 62, - COUNT( * ) ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-9877
SELECT COALESCE ( - 70, + 62, - COUNT ( * ) ) AS col0
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-9878
SELECT 48 DIV + 71 - - + 54 * - 28
----
-1512

skipif mysql # not compatible
query I rowsort label-9878
SELECT 48 / + 71 - - + 54 * - 28
----
-1512

query I rowsort
SELECT NULLIF ( - 22, + 80 )
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-9880
SELECT 15 DIV ( - 36 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9880
SELECT 15 / ( - 36 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT ALL - COUNT( * ) * 73 + 25 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL - COUNT ( * ) * 73 + 25 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ALL MIN( - - 47 ) * + 40 AS col0
----
1880

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL MIN ( - - 47 ) * + 40 AS col0
----
1880

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT ALL - CASE COUNT( * ) WHEN - 99 THEN + 91 / 14 WHEN + COUNT( * ) / 44 + - - 95 THEN NULL END / - - 12 * + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL - CASE COUNT ( * ) WHEN - 99 THEN + 91 / 14 WHEN + COUNT ( * ) / 44 + - - 95 THEN NULL END / - - 12 * + + 50
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9884
SELECT DISTINCT - 29 * - 45 + + 93 DIV 72 AS col2, - COUNT( * ) - - - 44 AS col1
----
1306
-45

skipif mysql # not compatible
query II rowsort label-9884
SELECT DISTINCT - 29 * - 45 + + 93 / 72 AS col2, - COUNT ( * ) - - - 44 AS col1
----
1306
-45

query II rowsort
SELECT + 77 * - 9 * - 96 + + 1 * + 18, - 45 AS col0
----
66546
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9886
SELECT ALL + 96 * 33 DIV - ( - - 87 ) - - 1
----
-35

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL + 96 * 33 / - ( - - 87 ) - - 1
----
-35

query I rowsort
SELECT DISTINCT - 49 * - 33 AS col0
----
1617

onlyif mysql # DIV for integer division: 
query I rowsort label-9888
SELECT - 40 DIV 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9888
SELECT - 40 / 79 AS col1
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( ( - 32 ), + ( + ( + 21 ) ) + + 36, + 47 + 69 * - 52 * 39 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT ALL 10 * - - 60 * + 29 * COUNT( * ) * - 78
----
-1357200

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL 10 * - - 60 * + 29 * COUNT ( * ) * - 78
----
-1357200

query I rowsort
SELECT - 16 * 38 * 5
----
-3040

onlyif mysql # aggregate syntax: 
query II rowsort label-9892
SELECT + 86 * - 12 AS col2, + COUNT( * )
----
-1032
1

skipif mysql # not compatible
query II rowsort label-9892
SELECT + 86 * - 12 AS col2, + COUNT ( * )
----
-1032
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9893
SELECT SUM( DISTINCT + 81 ) AS col2, - 67
----
81
-67

skipif mysql # not compatible
query II rowsort label-9893
SELECT SUM ( DISTINCT + 81 ) AS col2, - 67
----
81
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT CASE - 3 WHEN + NULLIF ( + COUNT( * ), - 39 ) THEN + + 64 * - AVG ( - 86 ) + - 61 ELSE 7 END
----
7

skipif mysql # not compatible
query I rowsort label-9894
SELECT CASE - 3 WHEN + NULLIF ( + COUNT ( * ), - 39 ) THEN + + 64 * - AVG ( - 86 ) + - 61 ELSE 7 END
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT 54 * - 48 + - - 78 + - - 58 + - 90 * COUNT( * )
----
-2546

skipif mysql # not compatible
query I rowsort label-9895
SELECT 54 * - 48 + - - 78 + - - 58 + - 90 * COUNT ( * )
----
-2546

query I rowsort
SELECT - ( ( + 12 ) ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT ALL MAX( ALL + 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL MAX ( ALL + 19 ) AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9898
SELECT + 24 * + NULLIF ( COUNT( * ), - CAST( NULL AS DECIMAL ) - + 26 + 26 + 28 * + 15 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-9898
SELECT + 24 * + NULLIF ( COUNT ( * ), - CAST ( NULL AS REAL ) - + 26 + 26 + 28 * + 15 ) AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9899
SELECT + CASE + - 32 WHEN + COUNT( * ) * + MAX( - CAST( NULL AS SIGNED ) ) * + 82 + + SUM( + 89 ) THEN - 19 WHEN - 78 * + 73 THEN NULL WHEN - MAX( + 56 ) + - 95 THEN NULL END - - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9899
SELECT + CASE + - 32 WHEN + COUNT ( * ) * + MAX ( - CAST ( NULL AS INTEGER ) ) * + 82 + + SUM ( + 89 ) THEN - 19 WHEN - 78 * + 73 THEN NULL WHEN - MAX ( + 56 ) + - 95 THEN NULL END - - 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9900
SELECT + + 72 * 4 * 80 * 94, CAST( NULL AS SIGNED ) + + 76 AS col1
----
2165760
NULL

skipif mysql # not compatible
query II rowsort label-9900
SELECT + + 72 * 4 * 80 * 94, CAST ( NULL AS INTEGER ) + + 76 AS col1
----
2165760
NULL

query I rowsort
SELECT + 95 + - 51 + + - 11 AS col0
----
33

query I rowsort
SELECT ALL 78 + - 99
----
-21

query I rowsort
SELECT - - ( + ( - + 17 ) ) AS col0
----
-17

query I rowsort
SELECT ALL + NULLIF ( 21, 63 * - + 31 + - - 29 * 66 ) + - 41 col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT + + 36 * - 36 + 37 + MAX( 20 ) + 60 * + ( - - 32 ) * - 1 * 37 * 59
----
-4192599

skipif mysql # not compatible
query I rowsort label-9905
SELECT + + 36 * - 36 + 37 + MAX ( 20 ) + 60 * + ( - - 32 ) * - 1 * 37 * 59
----
-4192599

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9906
SELECT COALESCE ( + 93, COALESCE ( - 59, + 86 DIV CAST( NULL AS SIGNED ) ) ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-9906
SELECT COALESCE ( + 93, COALESCE ( - 59, + 86 / CAST ( NULL AS INTEGER ) ) ) AS col2
----
93

query I rowsort
SELECT ALL ( ( - 5 ) ) AS col1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9908
SELECT - 53 DIV - - 47 col1
----
-1

skipif mysql # not compatible
query I rowsort label-9908
SELECT - 53 / - - 47 col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9909
SELECT ALL 37 + - 57 AS col0, 90 + - CAST( NULL AS SIGNED ) + 8 * + + 17 * 45 - + + 79 AS col1
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-9909
SELECT ALL 37 + - 57 AS col0, 90 + - CAST ( NULL AS INTEGER ) + 8 * + + 17 * 45 - + + 79 AS col1
----
-20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT DISTINCT - COALESCE ( - - ( + COUNT( * ) ), NULLIF ( + 81, 25 ) + - SUM( DISTINCT 87 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT - COALESCE ( - - ( + COUNT ( * ) ), NULLIF ( + 81, 25 ) + - SUM ( DISTINCT 87 ) ) AS col0
----
-1

query II rowsort
SELECT DISTINCT + 34 + - - 24 * - - 1 AS col1, ( - + 83 ) AS col1
----
58
-83

query I rowsort
SELECT ALL - ( 49 ) * - 86 AS col2
----
4214

query I rowsort
SELECT ALL + ( + + ( - COALESCE ( + - 57, - + COALESCE ( + 8, + - 42 ) * - + 25 ) ) ) AS col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9914
SELECT ALL + 1 DIV - COUNT( * ) + 10
----
9

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL + 1 / - COUNT ( * ) + 10
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT 44 * - + 42 * + - 6 + + 31 + + MIN( ALL + 89 ) AS col2
----
11208

skipif mysql # not compatible
query I rowsort label-9915
SELECT 44 * - + 42 * + - 6 + + 31 + + MIN ( ALL + 89 ) AS col2
----
11208

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT + 64 * COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9916
SELECT + 64 * COUNT ( * ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT - COUNT( * ) * - 75 * + 60 + + 33
----
4533

skipif mysql # not compatible
query I rowsort label-9917
SELECT - COUNT ( * ) * - 75 * + 60 + + 33
----
4533

query I rowsort
SELECT + 99 * 35 AS col0
----
3465

onlyif mysql # DIV for integer division: 
query I rowsort label-9919
SELECT ALL 72 * 74 - - + 45 DIV - 15
----
5325

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL 72 * 74 - - + 45 / - 15
----
5325

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9920
SELECT ALL + 18 / 44 * - 49 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL + 18 / 44 * - 49 * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9921
SELECT + CASE + - 69 WHEN - + 55 THEN 10 WHEN - - SUM( DISTINCT ( - - ( 41 ) ) ) * - + ( + + ( + 17 ) ) * - - 5 * 49 + + - COUNT( * ) * + + ( - 48 ) * + 49 / + 32 THEN SUM( DISTINCT - 96 ) * + 86 + + - 48 ELSE - 9 * + 18 END * 49 - - 5 * 99 + + - 71, 58 AS col1
----
-7514
58

skipif mysql # not compatible
query II rowsort label-9921
SELECT + CASE + - 69 WHEN - + 55 THEN 10 WHEN - - SUM ( DISTINCT ( - - ( 41 ) ) ) * - + ( + + ( + 17 ) ) * - - 5 * 49 + + - COUNT ( * ) * + + ( - 48 ) * + 49 / + 32 THEN SUM ( DISTINCT - 96 ) * + 86 + + - 48 ELSE - 9 * + 18 END * 49 - - 5 * 99 + + - 71, 58 AS col1
----
-7514
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT ALL + SUM( + + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL + SUM ( + + 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT DISTINCT + COUNT( * ) * 26
----
26

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT + COUNT ( * ) * 26
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9924
SELECT DISTINCT + 27 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT + 27 / 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT - COUNT( * ) * + - 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9925
SELECT - COUNT ( * ) * + - 30 AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9926
SELECT - COUNT( * ) DIV + 4 + 24
----
24

skipif mysql # not compatible
query I rowsort label-9926
SELECT - COUNT ( * ) / + 4 + 24
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT DISTINCT + MIN( 11 ) * + - COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT + MIN ( 11 ) * + - COUNT ( * ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-9928
SELECT - - 39 * - + 74 + + 47, + SUM( + 26 ) AS col1
----
-2839
26

skipif mysql # not compatible
query II rowsort label-9928
SELECT - - 39 * - + 74 + + 47, + SUM ( + 26 ) AS col1
----
-2839
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9929
SELECT ALL 7 * + CAST( NULL AS SIGNED ) / - 90 * + - 7 + + COUNT( * ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL 7 * + CAST ( NULL AS INTEGER ) / - 90 * + - 7 + + COUNT ( * ) + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 54 * 41 col1
----
-2214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9931
SELECT DISTINCT CASE + - CAST( + - COUNT( * ) AS SIGNED ) WHEN - - ( - + 6 ) THEN NULL WHEN + - 0 THEN 19 / + 79 END * - 21 + + COUNT( * ) + + COUNT( * ) * - - 27 * - COALESCE ( + - 88, - + ( + + 63 ) - + 49 ) * - - 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9931
SELECT DISTINCT CASE + - CAST ( + - COUNT ( * ) AS INTEGER ) WHEN - - ( - + 6 ) THEN NULL WHEN + - 0 THEN 19 / + 79 END * - 21 + + COUNT ( * ) + + COUNT ( * ) * - - 27 * - COALESCE ( + - 88, - + ( + + 63 ) - + 49 ) * - - 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL + 89 * + 0 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL + 89 * + 0 + + COUNT ( * )
----
1

query I rowsort
SELECT ALL + 53 * + 36 + - + 61
----
1847

query III rowsort
SELECT + - 77 + + ( + NULLIF ( + 14, - 74 ) ) AS col1, 25 AS col1, - 40
----
-63
25
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT + 24 * + COUNT( * ) + + 3 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-9935
SELECT + 24 * + COUNT ( * ) + + 3 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT - COUNT( 88 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9936
SELECT - COUNT ( 88 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT DISTINCT + 88 + - - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT + 88 + - - COUNT ( * )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9938
SELECT DISTINCT + ( - 4 ) DIV + 8
----
0

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT + ( - 4 ) / + 8
----
0

query II rowsort
SELECT ALL - 19 + + 92 * - 95 * 93 + - 70 col1, - ( 82 ) AS col0
----
-812909
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9940
SELECT ALL + MAX( DISTINCT - 93 ) * + + COUNT( * ), 94 + ( - ( - - 87 ) ) AS col0
----
-93
7

skipif mysql # not compatible
query II rowsort label-9940
SELECT ALL + MAX ( DISTINCT - 93 ) * + + COUNT ( * ), 94 + ( - ( - - 87 ) ) AS col0
----
-93
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT DISTINCT COUNT( DISTINCT + 33 )
----
1

skipif mysql # not compatible
query I rowsort label-9941
SELECT DISTINCT COUNT ( DISTINCT + 33 )
----
1

query II rowsort
SELECT ALL 27, - 77 * + - 59 + - 41 AS col0
----
27
4502

query I rowsort
SELECT 41 + 84 + - + 78 + - 14 AS col2
----
33

query I rowsort
SELECT DISTINCT 82 - - 85 col1
----
167

onlyif mysql # aggregate syntax: 
query II rowsort label-9945
SELECT ALL 81 AS col0, + 93 * + COUNT( * ) AS col2
----
81
93

skipif mysql # not compatible
query II rowsort label-9945
SELECT ALL 81 AS col0, + 93 * + COUNT ( * ) AS col2
----
81
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9946
SELECT ( - - 20 ) DIV - + 82
----
0

skipif mysql # not compatible
query I rowsort label-9946
SELECT ( - - 20 ) / - + 82
----
0

query I rowsort
SELECT 69 * - 47
----
-3243

onlyif mysql # DIV for integer division: 
query I rowsort label-9948
SELECT DISTINCT 28 DIV 4 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT 28 / 4 AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9949
SELECT DISTINCT - 98, COALESCE ( + + COALESCE ( + - 73, + - 53 * 50 + - - 33 - + ( - + 4 ) + + 74, + 40 - - + CAST( + 41 AS SIGNED ) ), + ( 25 ) ) DIV - - 76 col0
----
-98
0

skipif mysql # not compatible
query II rowsort label-9949
SELECT DISTINCT - 98, COALESCE ( + + COALESCE ( + - 73, + - 53 * 50 + - - 33 - + ( - + 4 ) + + 74, + 40 - - + CAST ( + 41 AS INTEGER ) ), + ( 25 ) ) / - - 76 col0
----
-98
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9950
SELECT CASE + + COUNT( * ) WHEN 33 * - + 61 * + COALESCE ( 30, - COUNT( * ) ) + - + 7 THEN COUNT( * ) DIV - 10 + + + 48 * + + COUNT( 0 ) * - MAX( - 37 ) + + 98 + SUM( DISTINCT - 57 ) ELSE + CASE - - 64 WHEN ( + MAX( ALL + 23 ) ) - 83 * + MAX( ALL + 79 ) THEN 88 WHEN + 61 * + - 87 - 58 THEN + 31 WHEN + 78 * 30 + 57 THEN NULL ELSE + 49 - + 95 * + 77 END END * - 47 AS col2
----
341502

skipif mysql # not compatible
query I rowsort label-9950
SELECT CASE + + COUNT ( * ) WHEN 33 * - + 61 * + COALESCE ( 30, - COUNT ( * ) ) + - + 7 THEN COUNT ( * ) / - 10 + + + 48 * + + COUNT ( 0 ) * - MAX ( - 37 ) + + 98 + SUM ( DISTINCT - 57 ) ELSE + CASE - - 64 WHEN ( + MAX ( ALL + 23 ) ) - 83 * + MAX ( ALL + 79 ) THEN 88 WHEN + 61 * + - 87 - 58 THEN + 31 WHEN + 78 * 30 + 57 THEN NULL ELSE + 49 - + 95 * + 77 END END * - 47 AS col2
----
341502

query I rowsort
SELECT ALL + 13 * 6
----
78

query II rowsort
SELECT DISTINCT - 43, 52 AS col2
----
-43
52

query I rowsort
SELECT ( 6 ) * - 65 + 14
----
-376

query I rowsort
SELECT 94 * - ( - - 20 )
----
-1880

query I rowsort
SELECT ALL + 14 + - 65 AS col1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9956
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + 23
----
NULL

query I rowsort
SELECT DISTINCT 28 + 50 AS col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-9958
SELECT DISTINCT + + 29 + - - COUNT( * ), - 63 AS col2
----
30
-63

skipif mysql # not compatible
query II rowsort label-9958
SELECT DISTINCT + + 29 + - - COUNT ( * ), - 63 AS col2
----
30
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9959
SELECT ALL - 79 AS col0, 72 - COUNT( DISTINCT - 95 ) DIV 29 - - + SUM( DISTINCT 54 ) AS col1
----
-79
126

skipif mysql # not compatible
query II rowsort label-9959
SELECT ALL - 79 AS col0, 72 - COUNT ( DISTINCT - 95 ) / 29 - - + SUM ( DISTINCT 54 ) AS col1
----
-79
126

query I rowsort
SELECT ALL + - 79 + + 94 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT - - MAX( DISTINCT 49 )
----
49

skipif mysql # not compatible
query I rowsort label-9961
SELECT - - MAX ( DISTINCT 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT ( SUM( - 40 ) ) + + + 51 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-9962
SELECT ( SUM ( - 40 ) ) + + + 51 AS col0
----
11

query I rowsort
SELECT - NULLIF ( + 6, - + 49 ) col1
----
-6

query I rowsort
SELECT + 79 + - COALESCE ( + 16, + NULLIF ( - - 66, - 93 ), 31 ) + - 45 * + 26 * + 62 AS col0
----
-72477

query I rowsort
SELECT ALL + + 74 * - 10
----
-740

query I rowsort
SELECT ALL + + 58 * + 68 * - - 13 * - 22 + + + 10 * 29
----
-1127694

query II rowsort
SELECT - + 84, + 1 AS col2
----
-84
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9968
SELECT ALL - 71, CAST( NULL AS SIGNED ) AS col2
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-9968
SELECT ALL - 71, CAST ( NULL AS INTEGER ) AS col2
----
-71
NULL

query I rowsort
SELECT 30 * + 10 * - + 90 * 31 AS col1
----
-837000

query I rowsort
SELECT 44 - 93 AS col0
----
-49

query I rowsort
SELECT CASE - ( - - 20 ) WHEN 82 THEN NULL WHEN - 43 THEN - 44 ELSE NULL END + - - ( + 15 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT ALL + CAST( NULL AS SIGNED ) / + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL + CAST ( NULL AS INTEGER ) / + 48
----
NULL

query I rowsort
SELECT DISTINCT 22 * + + 92 * 99
----
200376

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT DISTINCT + COUNT( * ) * - 5
----
-5

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT + COUNT ( * ) * - 5
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9975
SELECT 69 DIV 24 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9975
SELECT 69 / 24 AS col0
----
2

query I rowsort
SELECT ALL 52 * 40
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT MIN( ALL - - 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-9977
SELECT MIN ( ALL - - 19 ) AS col2
----
19

query I rowsort
SELECT - 45 * + 57 + + 24 AS col2
----
-2541

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT SUM( DISTINCT 12 ) col0
----
12

skipif mysql # not compatible
query I rowsort label-9979
SELECT SUM ( DISTINCT 12 ) col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9980
SELECT 94 DIV + 21 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9980
SELECT 94 / + 21 AS col2
----
4

query I rowsort
SELECT ( + - 83 ) * - 38 * + - 96 + 64 AS col0
----
-302720

query I rowsort
SELECT ALL + ( + 27 ) + + 63
----
90

query I rowsort
SELECT ALL ( + 38 ) + - 60 AS col2
----
-22

query I rowsort
SELECT + + 2 * - 47 + 33
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9985
SELECT ALL + + 27 + - - 96 DIV + + ( + 33 ) + + 59 DIV + - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL + + 27 + - - 96 / + + ( + 33 ) + + 59 / + - COUNT ( * )
----
-30

query I rowsort
SELECT ALL - NULLIF ( + + 65, - + 98 * + 73 ) AS col2
----
-65

query I rowsort
SELECT ALL - - ( + + 38 ) col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT - COUNT( + 69 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9988
SELECT - COUNT ( + 69 ) col1
----
-1

query I rowsort
SELECT + 11 + 37 * + 27
----
1010

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT ALL - ( 11 ) + + COUNT( * ) + 37 - ( - - COUNT( * ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL - ( 11 ) + + COUNT ( * ) + 37 - ( - - COUNT ( * ) ) AS col1
----
26

query I rowsort
SELECT DISTINCT + 21 * - - 73 - - 63 AS col0
----
1596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9992
SELECT CAST( - + 96 AS SIGNED ) * - + COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9992
SELECT CAST ( - + 96 AS INTEGER ) * - + COUNT ( * ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9993
SELECT DISTINCT 42 * - + 69, COUNT( * ) + - 61 AS col1
----
-2898
-60

skipif mysql # not compatible
query II rowsort label-9993
SELECT DISTINCT 42 * - + 69, COUNT ( * ) + - 61 AS col1
----
-2898
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT ALL COUNT( * ) - + 43
----
-42

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL COUNT ( * ) - + 43
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT DISTINCT CASE + COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE + - 81 * - 42 * - + COALESCE ( 37, + - ( - 94 ) ) + - 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE + - 81 * - 42 * - + COALESCE ( 37, + - ( - 94 ) ) + - 31 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9996
SELECT - COUNT( * ) + + + CASE + + 64 WHEN + 87 THEN - 31 WHEN - 45 * - + 9 + + MIN( - CAST( NULL AS SIGNED ) ) * - COUNT( * ) / ( 57 ) THEN + - 69 * 81 * + - COUNT( * ) + + - 22 * - - COUNT( * ) ELSE NULL END * + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9996
SELECT - COUNT ( * ) + + + CASE + + 64 WHEN + 87 THEN - 31 WHEN - 45 * - + 9 + + MIN ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) / ( 57 ) THEN + - 69 * 81 * + - COUNT ( * ) + + - 22 * - - COUNT ( * ) ELSE NULL END * + 40 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9997
SELECT + 24 DIV + 94 * + 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9997
SELECT + 24 / + 94 * + 71 AS col2
----
0

query I rowsort
SELECT - 30 * + 78 col0
----
-2340

query I rowsort
SELECT - 0 * + 14
----
0

