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 # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-0
SELECT + CASE - 20 WHEN NULLIF ( + - 51, - CAST( 45 AS DECIMAL ) + - 92 * + COUNT( * ) ) * + + 76 THEN NULL WHEN - 92 * - 61 THEN + ( - 83 ) * + CAST( NULL AS SIGNED ) WHEN 75 / COUNT( * ) + + 56 / 49 THEN - 41 ELSE NULL END / + 32 + ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-0
SELECT + CASE - 20 WHEN NULLIF ( + - 51, - CAST ( 45 AS REAL ) + - 92 * + COUNT ( * ) ) * + + 76 THEN NULL WHEN - 92 * - 61 THEN + ( - 83 ) * + CAST ( NULL AS INTEGER ) WHEN 75 / COUNT ( * ) + + 56 / 49 THEN - 41 ELSE NULL END / + 32 + ( + COUNT ( * ) )
----
NULL

query I rowsort
SELECT - + 98 * - - 27 + - 36 + + - 61 - - ( - 85 ) * 36
----
-5803

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT ALL 97 * - MIN( DISTINCT - 75 ) + - COUNT( * )
----
7274

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL 97 * - MIN ( DISTINCT - 75 ) + - COUNT ( * )
----
7274

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT ALL + 69 * + + 65 - COUNT( * ) + 62 + - 46 * MIN( DISTINCT - 14 )
----
5190

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL + 69 * + + 65 - COUNT ( * ) + 62 + - 46 * MIN ( DISTINCT - 14 )
----
5190

query II rowsort
SELECT DISTINCT + + 63 AS col0, CASE 74 WHEN - 24 * - 55 THEN - + 85 WHEN 49 + - 92 THEN NULL END AS col1
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT + COUNT( * ) - - 65
----
66

skipif mysql # not compatible
query I rowsort label-5
SELECT + COUNT ( * ) - - 65
----
66

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

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

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

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

query I rowsort
SELECT ALL + 11 * + 47 * + 88 - - + 65 * 4
----
45756

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

query I rowsort
SELECT - - 23 * - + 68
----
-1564

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

query I rowsort
SELECT ALL - + 17 * + + 56
----
-952

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

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

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

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

query I rowsort
SELECT - 58 * + 3 * + 72 AS col2
----
-12528

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-17
SELECT - 61 * + CAST( COUNT( DISTINCT 4 ) AS SIGNED ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-17
SELECT - 61 * + CAST ( COUNT ( DISTINCT 4 ) AS INTEGER ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT - 25 * CASE + + COUNT( * ) WHEN + + 13 THEN + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-18
SELECT - 25 * CASE + + COUNT ( * ) WHEN + + 13 THEN + 99 END
----
NULL

query I rowsort
SELECT - 1 * + 74 * + 75 AS col1
----
-5550

onlyif mysql # DIV for integer division: 
query I rowsort label-20
SELECT + 7 * 77 * + COALESCE ( 5, + - 3 DIV + - 51 ) AS col2
----
2695

skipif mysql # not compatible
query I rowsort label-20
SELECT + 7 * 77 * + COALESCE ( 5, + - 3 / + - 51 ) AS col2
----
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT ALL 65 + - ( + - NULLIF ( + - 88, MAX( DISTINCT 58 ) ) )
----
-23

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL 65 + - ( + - NULLIF ( + - 88, MAX ( DISTINCT 58 ) ) )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-22
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) + + 31 * - MAX( 19 ) * + 82 * + CASE - COUNT( * ) WHEN ( + + CAST( + 38 AS SIGNED ) ) THEN + ( 19 ) WHEN + 2 + + 40 THEN NULL ELSE - 37 + + CAST( + 29 AS SIGNED ) * - CAST( NULL AS SIGNED ) END + 26 + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + + 31 * - MAX ( 19 ) * + 82 * + CASE - COUNT ( * ) WHEN ( + + CAST ( + 38 AS INTEGER ) ) THEN + ( 19 ) WHEN + 2 + + 40 THEN NULL ELSE - 37 + + CAST ( + 29 AS INTEGER ) * - CAST ( NULL AS INTEGER ) END + 26 + + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT DISTINCT 0 + + + NULLIF ( + - 60, 13 ) + + MIN( ALL 27 ) col0
----
-33

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT 0 + + + NULLIF ( + - 60, 13 ) + + MIN ( ALL 27 ) col0
----
-33

query I rowsort
SELECT ALL 29 + 8 col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT - 35 + - COUNT( * ) + + - 36 + + ( 16 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-25
SELECT - 35 + - COUNT ( * ) + + - 36 + + ( 16 ) AS col0
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-26
SELECT + SUM( - 31 ) DIV + + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-26
SELECT + SUM ( - 31 ) / + + COUNT ( * )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT ALL + SUM( - + 80 ) * COUNT( * ) - - - 49 + + 64 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL + SUM ( - + 80 ) * COUNT ( * ) - - - 49 + + 64 AS col0
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-28
SELECT DISTINCT MAX( - 91 ) DIV + 42 - - 60 + + COUNT( * ) + 3
----
62

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT MAX ( - 91 ) / + 42 - - 60 + + COUNT ( * ) + 3
----
62

query I rowsort
SELECT + + 18 + - + 76 - + - 31 AS col0
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-30
SELECT ALL 3 DIV + + 16 - + ( + 15 ) - - 55 + - - COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-30
SELECT ALL 3 / + + 16 - + ( + 15 ) - - 55 + - - COUNT ( * ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ALL NULLIF ( - 83, NULLIF ( 6, + 6 ) * 32 * - 88 ) * - COUNT( * ) + + COUNT( * ) * + CASE + 94 WHEN + 37 THEN - - 95 + + - 28 END * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL NULLIF ( - 83, NULLIF ( 6, + 6 ) * 32 * - 88 ) * - COUNT ( * ) + + COUNT ( * ) * + CASE + 94 WHEN + 37 THEN - - 95 + + - 28 END * - 94
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-32
SELECT - 82 * - 90 + 47 + 60 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT - 82 * - 90 + 47 + 60 * - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-33
SELECT + 76 DIV - 49 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-33
SELECT + 76 / - 49 AS col0
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-35
SELECT ALL - MIN( ALL - CAST( NULL AS SIGNED ) ) AS col1, + 90 * + - NULLIF ( 41, + MIN( DISTINCT 84 ) ) col1
----
NULL
-3690

skipif mysql # not compatible
query II rowsort label-35
SELECT ALL - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col1, + 90 * + - NULLIF ( 41, + MIN ( DISTINCT 84 ) ) col1
----
NULL
-3690

query I rowsort
SELECT + 29 * - 56 * - + 16 col1
----
25984

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT ALL - COUNT( ALL 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL - COUNT ( ALL 90 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-38
SELECT 0 + + CAST( + - 13 AS SIGNED ) * + 22 AS col0, COALESCE ( 60, - CAST( NULL AS SIGNED ) )
----
-286
60

skipif mysql # not compatible
query II rowsort label-38
SELECT 0 + + CAST ( + - 13 AS INTEGER ) * + 22 AS col0, COALESCE ( 60, - CAST ( NULL AS INTEGER ) )
----
-286
60

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT COUNT( * ) * + 56 + + 27 * - - 24
----
704

skipif mysql # not compatible
query I rowsort label-39
SELECT COUNT ( * ) * + 56 + + 27 * - - 24
----
704

query II rowsort
SELECT DISTINCT - 64, + 61 + + - NULLIF ( - 72, 54 ) AS col0
----
-64
133

query I rowsort
SELECT 41 * + 2 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-42
SELECT NULLIF ( + SUM( + CASE 70 WHEN - CAST( + 27 AS SIGNED ) * + 12 - 58 THEN 32 * 14 + + 83 ELSE NULL END ), - + 70 ) + 44, + 25 + - 11 AS col2
----
NULL
14

skipif mysql # not compatible
query II rowsort label-42
SELECT NULLIF ( + SUM ( + CASE 70 WHEN - CAST ( + 27 AS INTEGER ) * + 12 - 58 THEN 32 * 14 + + 83 ELSE NULL END ), - + 70 ) + 44, + 25 + - 11 AS col2
----
NULL
14

query II rowsort
SELECT - 8 AS col0, - 35 AS col2
----
-8
-35

query I rowsort
SELECT 22 + + 52
----
74

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

skipif mysql # not compatible
query I rowsort label-45
SELECT 57 + + + CAST ( NULL AS REAL ) col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT ( - AVG ( ALL - CASE WHEN NOT ( NULL ) IS NULL THEN + 28 ELSE NULL END ) ) / - MAX( ALL + 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-47
SELECT ( - AVG ( ALL - CASE WHEN NOT ( NULL ) IS NULL THEN + 28 ELSE NULL END ) ) / - MAX ( ALL + 70 ) AS col1
----
NULL

query I rowsort
SELECT 38 + + 27 col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT ALL - 76 + - + COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL - 76 + - + COUNT ( * ) AS col0
----
-77

query I rowsort
SELECT 47 + + 54 * + 26 col0
----
1451

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT ALL + 12 + + COUNT( * ) + + 49 + 25 - + 59 * 22 AS col0
----
-1211

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL + 12 + + COUNT ( * ) + + 49 + 25 - + 59 * 22 AS col0
----
-1211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-52
SELECT 57 + - CAST( NULL AS SIGNED ) * + - 18 * + + ( 33 ) - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-52
SELECT 57 + - CAST ( NULL AS INTEGER ) * + - 18 * + + ( 33 ) - 40
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-53
SELECT ALL + 3 DIV 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL + 3 / 68 AS col1
----
0

query II rowsort
SELECT - 79 col1, + 29 AS col0
----
-79
29

query I rowsort
SELECT 66 + - 83
----
-17

query I rowsort
SELECT ALL - 40 + - - 10 AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-57
SELECT ALL + 13 DIV 89 * 31 * - 74
----
0

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL + 13 / 89 * 31 * - 74
----
0

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

skipif mysql # not compatible
query I rowsort label-58
SELECT 47 / + COUNT ( * ) AS col2
----
47

query I rowsort
SELECT 92 + + 44
----
136

query II rowsort
SELECT - 44 AS col2, 3
----
-44
3

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

query I rowsort
SELECT 56 + - 94 col1
----
-38

query I rowsort
SELECT ALL + 27 * + ( + ( - COALESCE ( - 37, - + NULLIF ( - 95, + - 30 + - 89 ) ) ) )
----
999

query I rowsort
SELECT + ( + 62 ) * - 3
----
-186

query I rowsort
SELECT - 19 + 78 + - 21 * - - 2 AS col1
----
17

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

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

query I rowsort
SELECT 12 * - 16 AS col2
----
-192

query I rowsort
SELECT + COALESCE ( 5, 25 * + 37 ) AS col2
----
5

query I rowsort
SELECT 86 * + + 53 - - 86
----
4644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-70
SELECT + CAST( ( - - 16 ) AS SIGNED ) + SUM( - 71 ) AS col0, ( + + 97 )
----
-55
97

skipif mysql # not compatible
query II rowsort label-70
SELECT + CAST ( ( - - 16 ) AS INTEGER ) + SUM ( - 71 ) AS col0, ( + + 97 )
----
-55
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-71
SELECT 92 * - CAST( NULL AS SIGNED ) + + 65 + 54 / CAST( + 70 AS SIGNED ) + - + COUNT( 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-71
SELECT 92 * - CAST ( NULL AS INTEGER ) + + 65 + 54 / CAST ( + 70 AS INTEGER ) + - + COUNT ( 99 )
----
NULL

query I rowsort
SELECT 4 * - - 29 + 82 * ( - 62 ) AS col2
----
-4968

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT MIN( + 7 ) - + 21
----
-14

skipif mysql # not compatible
query I rowsort label-73
SELECT MIN ( + 7 ) - + 21
----
-14

query I rowsort
SELECT 15 * - 78
----
-1170

query I rowsort
SELECT DISTINCT + 18 * + - 66 * + 59 AS col1
----
-70092

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-76
SELECT ALL - - 93 AS col1, - CAST( - 75 AS SIGNED ) AS col1
----
93
75

skipif mysql # not compatible
query II rowsort label-76
SELECT ALL - - 93 AS col1, - CAST ( - 75 AS INTEGER ) AS col1
----
93
75

onlyif mysql # DIV for integer division: 
query II rowsort label-77
SELECT + 97, + ( 60 ) DIV + - 67 AS col1
----
97
0

skipif mysql # not compatible
query II rowsort label-77
SELECT + 97, + ( 60 ) / + - 67 AS col1
----
97
0

query II rowsort
SELECT DISTINCT - 83 AS col0, + 42 + - 94 + + - 58
----
-83
-110

query II rowsort
SELECT ALL - 96 AS col2, ( - - 37 ) * + + 45
----
-96
1665

query I rowsort
SELECT ALL 90 + - - 56 AS col1
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-81
SELECT COALESCE ( 99, - + 39 / - 58, - - 91 ) * - + NULLIF ( + CAST( NULL AS SIGNED ), 28 * - 4 + + 84 ) - + + 55 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-81
SELECT COALESCE ( 99, - + 39 / - 58, - - 91 ) * - + NULLIF ( + CAST ( NULL AS INTEGER ), 28 * - 4 + + 84 ) - + + 55 AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-82
SELECT ALL COALESCE ( - - 34, + CAST( - - 9 AS SIGNED ) ) + CAST( 89 AS SIGNED )
----
123

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL COALESCE ( - - 34, + CAST ( - - 9 AS INTEGER ) ) + CAST ( 89 AS INTEGER )
----
123

query I rowsort
SELECT ALL + 17 * 47
----
799

query II rowsort
SELECT 97 AS col2, 87 * - 69 col0
----
97
-6003

query I rowsort
SELECT ALL 54 + + 43 + 64 col1
----
161

query I rowsort
SELECT COALESCE ( + ( + 57 ), - 21 * - 0, - - 95, - + 18 ) - - 55
----
112

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-88
SELECT 47 + - - ( 3 ) + + CASE + 26 WHEN + + 87 + 43 THEN + ( + + CAST( + - SUM( ALL - 76 ) AS SIGNED ) ) ELSE NULL END * - - 40 + 42 - + NULLIF ( - ( - 70 ), + 47 - - CAST( ( CAST( NULL AS SIGNED ) ) - 55 AS SIGNED ) ) / 14
----
NULL

skipif mysql # not compatible
query I rowsort label-88
SELECT 47 + - - ( 3 ) + + CASE + 26 WHEN + + 87 + 43 THEN + ( + + CAST ( + - SUM ( ALL - 76 ) AS INTEGER ) ) ELSE NULL END * - - 40 + 42 - + NULLIF ( - ( - 70 ), + 47 - - CAST ( ( CAST ( NULL AS INTEGER ) ) - 55 AS INTEGER ) ) / 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-89
SELECT ALL 32, + CAST( - - 72 AS SIGNED ) + COUNT( * ) * - + 73 AS col1
----
32
-1

skipif mysql # not compatible
query II rowsort label-89
SELECT ALL 32, + CAST ( - - 72 AS INTEGER ) + COUNT ( * ) * - + 73 AS col1
----
32
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-90
SELECT 92 DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-90
SELECT 92 / 71
----
1

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

skipif mysql # not compatible
query I rowsort label-91
SELECT CAST ( - - 44 AS INTEGER ) * COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-92
SELECT - COUNT( * ) AS col2, MAX( DISTINCT + 14 ) * 21 AS col0
----
-1
294

skipif mysql # not compatible
query II rowsort label-92
SELECT - COUNT ( * ) AS col2, MAX ( DISTINCT + 14 ) * 21 AS col0
----
-1
294

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT 58 - MAX( DISTINCT 61 ) + ( - 33 ) * + 14 AS col2
----
-465

skipif mysql # not compatible
query I rowsort label-93
SELECT 58 - MAX ( DISTINCT 61 ) + ( - 33 ) * + 14 AS col2
----
-465

query I rowsort
SELECT ALL 64 * + 27 col2
----
1728

onlyif mysql # DIV for integer division: 
query I rowsort label-95
SELECT DISTINCT - + 77 DIV + + 92 * + 77
----
0

skipif mysql # not compatible
query I rowsort label-95
SELECT DISTINCT - + 77 / + + 92 * + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT COUNT( * ) + 6 * + 37 * - 30 AS col1
----
-6659

skipif mysql # not compatible
query I rowsort label-96
SELECT COUNT ( * ) + 6 * + 37 * - 30 AS col1
----
-6659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-97
SELECT CASE - COUNT( * ) WHEN + - 4 THEN + - ( AVG ( 26 ) ) * + NULLIF ( CASE - - 37 WHEN COUNT( * ) * - AVG ( - 83 ) * - 4 / COUNT( * ) * + COUNT( * ) + 94 THEN - NULLIF ( - 89, 36 + + CASE 61 WHEN + CASE 10 WHEN 97 THEN + 42 + 33 / - 99 ELSE + 61 END THEN 15 + 25 ELSE NULL END ) * 93 WHEN MIN( DISTINCT 83 ) THEN COUNT( DISTINCT + 22 ) ELSE NULL END, 78 / CAST( + 5 AS SIGNED ) + 59 ) ELSE 76 - 48 / CASE 85 WHEN 66 THEN 76 * 9 WHEN - 15 * + COUNT( * ) THEN NULL END END / 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-97
SELECT CASE - COUNT ( * ) WHEN + - 4 THEN + - ( AVG ( 26 ) ) * + NULLIF ( CASE - - 37 WHEN COUNT ( * ) * - AVG ( - 83 ) * - 4 / COUNT ( * ) * + COUNT ( * ) + 94 THEN - NULLIF ( - 89, 36 + + CASE 61 WHEN + CASE 10 WHEN 97 THEN + 42 + 33 / - 99 ELSE + 61 END THEN 15 + 25 ELSE NULL END ) * 93 WHEN MIN ( DISTINCT 83 ) THEN COUNT ( DISTINCT + 22 ) ELSE NULL END, 78 / CAST ( + 5 AS INTEGER ) + 59 ) ELSE 76 - 48 / CASE 85 WHEN 66 THEN 76 * 9 WHEN - 15 * + COUNT ( * ) THEN NULL END END / 14 AS col1
----
NULL

query I rowsort
SELECT 68 * + + 65
----
4420

query I rowsort
SELECT + - ( - + 86 ) + - COALESCE ( + - 99, - + 58 * + + 4 ) * + 8 AS col2
----
878

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-100
SELECT - 31 * COUNT( * ) - + 96 / - - 91 + - CASE - 83 WHEN + + ( - 43 ) THEN NULL WHEN + 20 THEN + + 89 / + CAST( - - 41 AS SIGNED ) WHEN + COUNT( * ) + 99 * + COALESCE ( - 56, 92 + + 50 ) THEN NULL ELSE NULL END - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-100
SELECT - 31 * COUNT ( * ) - + 96 / - - 91 + - CASE - 83 WHEN + + ( - 43 ) THEN NULL WHEN + 20 THEN + + 89 / + CAST ( - - 41 AS INTEGER ) WHEN + COUNT ( * ) + 99 * + COALESCE ( - 56, 92 + + 50 ) THEN NULL ELSE NULL END - 77 AS col1
----
NULL

query II rowsort
SELECT + 47 col0, 99 AS col0
----
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-102
SELECT - CASE - - ( - 3 ) WHEN - 54 THEN - 72 ELSE NULL END / + + CAST( NULL AS SIGNED ), - 27 AS col1
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-102
SELECT - CASE - - ( - 3 ) WHEN - 54 THEN - 72 ELSE NULL END / + + CAST ( NULL AS INTEGER ), - 27 AS col1
----
NULL
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-103
SELECT - 67 DIV COUNT( * ) * - MAX( 39 ) * - 41 col1
----
-107133

skipif mysql # not compatible
query I rowsort label-103
SELECT - 67 / COUNT ( * ) * - MAX ( 39 ) * - 41 col1
----
-107133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-104
SELECT ALL - 12 * + + COUNT( * ) DIV - 95 + + 82 * + 61
----
5002

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL - 12 * + + COUNT ( * ) / - 95 + + 82 * + 61
----
5002

onlyif mysql # aggregate syntax: 
query II rowsort label-105
SELECT DISTINCT + + 76, + 30 + - COUNT( * ) col0
----
76
29

skipif mysql # not compatible
query II rowsort label-105
SELECT DISTINCT + + 76, + 30 + - COUNT ( * ) col0
----
76
29

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT ALL + COUNT( ALL + + 84 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL + COUNT ( ALL + + 84 ) col1
----
1

query I rowsort
SELECT DISTINCT - - 1 * + - 54 + 65
----
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT ALL + SUM( ALL + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL + SUM ( ALL + 71 )
----
71

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-111
SELECT ALL + 76 * 14 + 69 + - NULLIF ( - - 36, + 0 ) + 62 + - COUNT( * ) - 30 + + NULLIF ( + - 1, - ( + + COUNT( * ) ) + + MIN( ALL + 54 ) * + + 0 + + NULLIF ( + 34, + 44 * NULLIF ( COUNT( * ) * - 60, + 11 ) ) * 99 ) - + 45 * + COUNT( * ) * - 36 DIV 2
----
1937

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL + 76 * 14 + 69 + - NULLIF ( - - 36, + 0 ) + 62 + - COUNT ( * ) - 30 + + NULLIF ( + - 1, - ( + + COUNT ( * ) ) + + MIN ( ALL + 54 ) * + + 0 + + NULLIF ( + 34, + 44 * NULLIF ( COUNT ( * ) * - 60, + 11 ) ) * 99 ) - + 45 * + COUNT ( * ) * - 36 / 2
----
1937

query I rowsort
SELECT ALL - 40 * - - 34 + - 99 AS col1
----
-1459

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT 97 * SUM( DISTINCT + 76 ) * + - 65 + - 26 + - COUNT( - 5 ) * + 85 + + ( + 55 )
----
-479236

skipif mysql # not compatible
query I rowsort label-113
SELECT 97 * SUM ( DISTINCT + 76 ) * + - 65 + - 26 + - COUNT ( - 5 ) * + 85 + + ( + 55 )
----
-479236

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT + MIN( - 97 ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-114
SELECT + MIN ( - 97 ) col1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-115
SELECT COALESCE ( ( + COUNT( * ) ), 91, - 95, + 17 ) * + 43 + + 41 DIV + + 59 * - - 38 * 29 + 47 * + 46 * + 68 * - - NULLIF ( MAX( - ( 31 ) ), NULLIF ( 94, 40 * - 60 ) ) AS col0
----
-4557453

skipif mysql # not compatible
query I rowsort label-115
SELECT COALESCE ( ( + COUNT ( * ) ), 91, - 95, + 17 ) * + 43 + + 41 / + + 59 * - - 38 * 29 + 47 * + 46 * + 68 * - - NULLIF ( MAX ( - ( 31 ) ), NULLIF ( 94, 40 * - 60 ) ) AS col0
----
-4557453

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT + CASE ( COUNT( + 28 ) ) WHEN 92 + - 86 + + 75 + + - NULLIF ( + + 25, - 78 ) + - - 45 * + 98 THEN + - 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-116
SELECT + CASE ( COUNT ( + 28 ) ) WHEN 92 + - 86 + + 75 + + - NULLIF ( + + 25, - 78 ) + - - 45 * + 98 THEN + - 58 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT ALL 36 * - + SUM( + 12 ) * COUNT( * ) - - ( SUM( ALL - 53 ) ) + - 43 + + COUNT( * ) col0
----
-527

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL 36 * - + SUM ( + 12 ) * COUNT ( * ) - - ( SUM ( ALL - 53 ) ) + - 43 + + COUNT ( * ) col0
----
-527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-118
SELECT DISTINCT + CASE + 35 WHEN + 52 THEN CAST( - - 48 AS SIGNED ) ELSE + + 14 END AS col2
----
14

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT + CASE + 35 WHEN + 52 THEN CAST ( - - 48 AS INTEGER ) ELSE + + 14 END AS col2
----
14

query II rowsort
SELECT ALL 42 * + + 34, - 95 AS col2
----
1428
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-120
SELECT ALL 54 * SUM( ALL - CASE + 67 WHEN 30 THEN 95 + + CAST( NULL AS SIGNED ) * + 68 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL 54 * SUM ( ALL - CASE + 67 WHEN 30 THEN 95 + + CAST ( NULL AS INTEGER ) * + 68 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT + 66 * ( COUNT( * ) ) * + - 93 AS col1
----
-6138

skipif mysql # not compatible
query I rowsort label-121
SELECT + 66 * ( COUNT ( * ) ) * + - 93 AS col1
----
-6138

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-123
SELECT - COUNT( * ) + + 95, - 31 AS col2
----
94
-31

skipif mysql # not compatible
query II rowsort label-123
SELECT - COUNT ( * ) + + 95, - 31 AS col2
----
94
-31

query I rowsort
SELECT + 18 + - - 62 AS col2
----
80

query I rowsort
SELECT + 94 + 10
----
104

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-127
SELECT ALL + + SUM( + + CAST( NULL AS SIGNED ) ) * + 40 + + CAST( NULL AS SIGNED )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT + + 89 * - + ( - - SUM( ALL - + 29 ) )
----
2581

skipif mysql # not compatible
query I rowsort label-128
SELECT + + 89 * - + ( - - SUM ( ALL - + 29 ) )
----
2581

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-130
SELECT ALL MAX( ALL 8 ) * - CAST( + 95 AS SIGNED ) * 66 + + + 70 * - ( - 59 ) + - + 49 * - 0
----
-46030

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL MAX ( ALL 8 ) * - CAST ( + 95 AS INTEGER ) * 66 + + + 70 * - ( - 59 ) + - + 49 * - 0
----
-46030

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-131
SELECT + CAST( - + 9 AS SIGNED ) * + + 14
----
-126

skipif mysql # not compatible
query I rowsort label-131
SELECT + CAST ( - + 9 AS INTEGER ) * + + 14
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-132
SELECT - 42 + - ( + 82 ) + + + COUNT( * ) + COALESCE ( - - 66, 51 ) + 40 * 10 * - + ( - 89 ) DIV COUNT( + + 67 ) * + 98 - + 66 col2, + 10 AS col0
----
3488677
10

skipif mysql # not compatible
query II rowsort label-132
SELECT - 42 + - ( + 82 ) + + + COUNT ( * ) + COALESCE ( - - 66, 51 ) + 40 * 10 * - + ( - 89 ) / COUNT ( + + 67 ) * + 98 - + 66 col2, + 10 AS col0
----
3488677
10

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT MIN( 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-133
SELECT MIN ( 99 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT DISTINCT - - 24 / - - CASE - MIN( ALL ( - - 94 ) ) WHEN + + 23 THEN - COUNT( * ) * NULLIF ( + - 95, 38 ) + - 12 * + - COUNT( * ) / + + 16 + 56 * - COALESCE ( - 16, - 28, 97 ) WHEN COUNT( * ) * 39 THEN NULL END + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT - - 24 / - - CASE - MIN ( ALL ( - - 94 ) ) WHEN + + 23 THEN - COUNT ( * ) * NULLIF ( + - 95, 38 ) + - 12 * + - COUNT ( * ) / + + 16 + 56 * - COALESCE ( - 16, - 28, 97 ) WHEN COUNT ( * ) * 39 THEN NULL END + 14
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-135
SELECT DISTINCT + + 57 DIV - + 78 + ( + - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-135
SELECT DISTINCT + + 57 / - + 78 + ( + - 40 )
----
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-136
SELECT DISTINCT + 0 DIV - 45 * + COALESCE ( + 23, + ( + + 86 ) ) * 95 + 11, + 81 AS col1
----
11
81

skipif mysql # not compatible
query II rowsort label-136
SELECT DISTINCT + 0 / - 45 * + COALESCE ( + 23, + ( + + 86 ) ) * 95 + 11, + 81 AS col1
----
11
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-137
SELECT + + 43 - - - 16 + 89 + - + 30 DIV + ( 79 ) * + + COUNT( * ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-137
SELECT + + 43 - - - 16 + 89 + - + 30 / + ( 79 ) * + + COUNT ( * ) AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT MAX( + 30 ) * - + 9 - CASE + - 3 WHEN - 60 THEN NULL WHEN - 26 / COUNT( * ) / - - 16 + + - ( - 16 ) + + 5 + - ( + 77 ) THEN 94 END + + - 4 + + 90 * + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-138
SELECT MAX ( + 30 ) * - + 9 - CASE + - 3 WHEN - 60 THEN NULL WHEN - 26 / COUNT ( * ) / - - 16 + + - ( - 16 ) + + 5 + - ( + 77 ) THEN 94 END + + - 4 + + 90 * + 19 AS col1
----
NULL

query I rowsort
SELECT ALL - 57 / - 46 / + 71 * CASE + - 24 WHEN - 41 * - 51 THEN + NULLIF ( - 49, + + AVG ( DISTINCT + - 72 ) ) END / - 66 * + - 59
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-142
SELECT ALL 63 DIV 68 + - CAST( - - 1 AS SIGNED ) + SUM( - 13 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL 63 / 68 + - CAST ( - - 1 AS INTEGER ) + SUM ( - 13 ) AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-143
SELECT ALL ( 11 ) DIV + 78 + + ( - + 68 ) - + 19
----
-87

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL ( 11 ) / + 78 + + ( - + 68 ) - + 19
----
-87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT - 55 - + COUNT( * ) * + 68 * + COUNT( * ) + 91
----
-32

skipif mysql # not compatible
query I rowsort label-145
SELECT - 55 - + COUNT ( * ) * + 68 * + COUNT ( * ) + 91
----
-32

query I rowsort
SELECT ALL - 17 * - 39 AS col1
----
663

query II rowsort
SELECT DISTINCT + 34, 97 - - 77 AS col2
----
34
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-148
SELECT DISTINCT 75 * CAST( NULL AS SIGNED ) * + 99 - + 48 + + + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT 75 * CAST ( NULL AS INTEGER ) * + 99 - + 48 + + + 37 AS col0
----
NULL

query I rowsort
SELECT - 19 * + + 9 AS col0
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-150
SELECT NULLIF ( 98, - CAST( - 46 AS SIGNED ) ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-150
SELECT NULLIF ( 98, - CAST ( - 46 AS INTEGER ) ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT COUNT( * ) * + SUM( ALL - 51 ) * - - 61 + + - 64 + - 4 * + 60 * + 82 - - + ( 71 ) + - 59
----
-22843

skipif mysql # not compatible
query I rowsort label-151
SELECT COUNT ( * ) * + SUM ( ALL - 51 ) * - - 61 + + - 64 + - 4 * + 60 * + 82 - - + ( 71 ) + - 59
----
-22843

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

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT + ( + 28 ) + + + COUNT( * ) * - 95
----
-67

skipif mysql # not compatible
query I rowsort label-153
SELECT + ( + 28 ) + + + COUNT ( * ) * - 95
----
-67

query I rowsort
SELECT - 89 * - - 70
----
-6230

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL 86 AS col0, 45
----
86
45

query I rowsort
SELECT - COALESCE ( 23, - 75 - - 66 * 77 )
----
-23

query I rowsort
SELECT - NULLIF ( + 1, - 12 ) - - 19 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT ALL - SUM( + - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL - SUM ( + - 23 )
----
23

query I rowsort
SELECT 21 + + - 19 + - - 19 * 47 + - 44 AS col1
----
851

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-164
SELECT MIN( ALL 95 ) DIV + - 17 AS col0, 0 + + 37 AS col2
----
-5
37

skipif mysql # not compatible
query II rowsort label-164
SELECT MIN ( ALL 95 ) / + - 17 AS col0, 0 + + 37 AS col2
----
-5
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-165
SELECT - CASE WHEN - 85 IN ( - - COUNT( * ), + 71, 65, + + CASE - 54 WHEN - 88 + - - CAST( NULL AS SIGNED ) THEN NULL WHEN 85 * + - 83 + - 2 THEN COUNT( * ) END ) THEN - 6 ELSE - COUNT( * ) END + + + 23 + + 49 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-165
SELECT - CASE WHEN - 85 IN ( - - COUNT ( * ), + 71, 65, + + CASE - 54 WHEN - 88 + - - CAST ( NULL AS INTEGER ) THEN NULL WHEN 85 * + - 83 + - 2 THEN COUNT ( * ) END ) THEN - 6 ELSE - COUNT ( * ) END + + + 23 + + 49 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT - COUNT( DISTINCT + 51 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-166
SELECT - COUNT ( DISTINCT + 51 ) AS col2
----
-1

query I rowsort
SELECT ALL - - 89 + - NULLIF ( + 87, - 7 ) + + ( - + 91 ) AS col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-168
SELECT CAST( - 4 AS SIGNED ) - + 95 AS col1, 42 AS col1
----
-99
42

skipif mysql # not compatible
query II rowsort label-168
SELECT CAST ( - 4 AS INTEGER ) - + 95 AS col1, 42 AS col1
----
-99
42

query I rowsort
SELECT 21 * + 51
----
1071

query I rowsort
SELECT DISTINCT 71 + + - 61
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-171
SELECT + CAST( NULL AS DECIMAL ) + + ( - 99 ) - + + SUM( + ( - 47 ) ) * - - 23 - 59 * - 23 AS col1, 68 + 75
----
NULL
143

skipif mysql # not compatible
query II rowsort label-171
SELECT + CAST ( NULL AS REAL ) + + ( - 99 ) - + + SUM ( + ( - 47 ) ) * - - 23 - 59 * - 23 AS col1, 68 + 75
----
NULL
143

query II rowsort
SELECT ALL 44 col1, - 95 + + 82
----
44
-13

query I rowsort
SELECT NULLIF ( + + 97, - 19 ) * + 4 + + 21 col2
----
409

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT - 56 - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-174
SELECT - 56 - COUNT ( * )
----
-57

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-177
SELECT DISTINCT COUNT( * ) * + 92 DIV - - 76 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-177
SELECT DISTINCT COUNT ( * ) * + 92 / - - 76 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT ALL 37 - COUNT( * ) * - 86 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-178
SELECT ALL 37 - COUNT ( * ) * - 86 AS col0
----
123

query I rowsort
SELECT 37 + + 5
----
42

query I rowsort
SELECT 76 * + 45 AS col0
----
3420

query I rowsort
SELECT 86 * - 46 AS col0
----
-3956

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-182
SELECT ALL 95 DIV + 64 AS col1, + COUNT( * ) + + 39 col0
----
1
40

skipif mysql # not compatible
query II rowsort label-182
SELECT ALL 95 / + 64 AS col1, + COUNT ( * ) + + 39 col0
----
1
40

query II rowsort
SELECT ALL - ( + 74 ) AS col2, ( - 12 ) * + 7 AS col2
----
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT ALL - COALESCE ( - COUNT( * ), - ( 46 ) + + - 48, - ( + + 45 ) )
----
1

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL - COALESCE ( - COUNT ( * ), - ( 46 ) + + - 48, - ( + + 45 ) )
----
1

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

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT - 96 * + - COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT 1 + - 9 + - - 41 + + 44 * + 60 * - COUNT( * )
----
-2607

skipif mysql # not compatible
query I rowsort label-186
SELECT 1 + - 9 + - - 41 + + 44 * + 60 * - COUNT ( * )
----
-2607

query I rowsort
SELECT 14 * - + 67 - - 9 * - 75 * + 56 + 67 * + 91 AS col0
----
-32641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-188
SELECT DISTINCT - 78 * - - MIN( DISTINCT + 6 ) * - ( + + 4 ) - - - CASE - + NULLIF ( 70, - 75 ) WHEN COUNT( * ) THEN - 87 + 33 END - + 61 + - SUM( + 89 ) - - 39 * ( + CASE - 42 WHEN 79 * - CAST( NULL AS SIGNED ) THEN NULL WHEN - ( COUNT( * ) ) + - COALESCE ( + COUNT( * ), + COUNT( * ) - - CAST( NULL AS SIGNED ) * - ( 35 ), - ( 30 ) ) THEN + COALESCE ( 28, 29 + 96 / 30 ) * 85 ELSE NULL END ) + + 67 * CAST( NULL AS SIGNED ) / 98
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT - 78 * - - MIN ( DISTINCT + 6 ) * - ( + + 4 ) - - - CASE - + NULLIF ( 70, - 75 ) WHEN COUNT ( * ) THEN - 87 + 33 END - + 61 + - SUM ( + 89 ) - - 39 * ( + CASE - 42 WHEN 79 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN - ( COUNT ( * ) ) + - COALESCE ( + COUNT ( * ), + COUNT ( * ) - - CAST ( NULL AS INTEGER ) * - ( 35 ), - ( 30 ) ) THEN + COALESCE ( 28, 29 + 96 / 30 ) * 85 ELSE NULL END ) + + 67 * CAST ( NULL AS INTEGER ) / 98
----
NULL

query I rowsort
SELECT ALL + 23 + + 45 AS col0
----
68

query I rowsort
SELECT + 97 + + 79
----
176

query I rowsort
SELECT 35 * - ( - 84 ) col0
----
2940

query I rowsort
SELECT + 11 + + + 41
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-193
SELECT ALL - - 37 + 35 * + 21 + + CAST( NULL AS SIGNED ) + + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL - - 37 + 35 * + 21 + + CAST ( NULL AS INTEGER ) + + 76 AS col2
----
NULL

query I rowsort
SELECT - 64 + - - 61
----
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-196
SELECT 5 + ( - + NULLIF ( + 2, 63 * - + ( - COUNT( * ) ) + - MAX( + 80 ) ) ) + + - 20 + - ( + 7 ) DIV 83 DIV COUNT( * ) col2
----
-17

skipif mysql # not compatible
query I rowsort label-196
SELECT 5 + ( - + NULLIF ( + 2, 63 * - + ( - COUNT ( * ) ) + - MAX ( + 80 ) ) ) + + - 20 + - ( + 7 ) / 83 / COUNT ( * ) col2
----
-17

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

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT + COUNT ( * ) / - 29 col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-199
SELECT + CAST( NULL AS SIGNED ) * - - 85 + 33 - - + MIN( DISTINCT + + 98 ) * 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-199
SELECT + CAST ( NULL AS INTEGER ) * - - 85 + 33 - - + MIN ( DISTINCT + + 98 ) * 90 AS col0
----
NULL

query I rowsort
SELECT ALL + 90 * - 8 * 55 * - 99
----
3920400

onlyif mysql # aggregate syntax: 
query II rowsort label-201
SELECT + 52 + + 87 AS col0, + COUNT( * ) * MIN( ALL + 38 ) AS col1
----
139
38

skipif mysql # not compatible
query II rowsort label-201
SELECT + 52 + + 87 AS col0, + COUNT ( * ) * MIN ( ALL + 38 ) AS col1
----
139
38

query I rowsort
SELECT 84 * - 64 AS col0
----
-5376

onlyif mysql # aggregate syntax: 
query II rowsort label-203
SELECT ( 82 ) + SUM( DISTINCT 52 ) AS col2, - AVG ( - 18 ) + - CASE 55 WHEN + + ( + 55 ) + - COUNT( * ) THEN 46 END
----
134
NULL

skipif mysql # not compatible
query II rowsort label-203
SELECT ( 82 ) + SUM ( DISTINCT 52 ) AS col2, - AVG ( - 18 ) + - CASE 55 WHEN + + ( + 55 ) + - COUNT ( * ) THEN 46 END
----
134
NULL

query II rowsort
SELECT + 80 * + 9 AS col0, 1
----
720
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-205
SELECT ALL + 30 * 28 / + - 74 + - ( - CASE + + 72 WHEN - 93 THEN - - CAST( + 9 AS SIGNED ) + + 79 WHEN 36 / + 75 THEN NULL ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL + 30 * 28 / + - 74 + - ( - CASE + + 72 WHEN - 93 THEN - - CAST ( + 9 AS INTEGER ) + + 79 WHEN 36 / + 75 THEN NULL ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT ALL - 71 * - - 65 col2
----
-4615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-207
SELECT ( - COALESCE ( + - NULLIF ( CAST( NULL AS SIGNED ), - 89 ), - 81, - 61, + - 68 ) ) + + 69 col1
----
150

skipif mysql # not compatible
query I rowsort label-207
SELECT ( - COALESCE ( + - NULLIF ( CAST ( NULL AS INTEGER ), - 89 ), - 81, - 61, + - 68 ) ) + + 69 col1
----
150

query II rowsort
SELECT + 45 AS col0, 77 AS col2
----
45
77

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL - 73 * - 74 * + 65 - + + SUM( DISTINCT + 32 ) * - 89 * - 90 AS col1
----
94810

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - 73 * - 74 * + 65 - + + SUM ( DISTINCT + 32 ) * - 89 * - 90 AS col1
----
94810

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

onlyif mysql # aggregate syntax: 
query II rowsort label-211
SELECT ALL - 1 AS col2, 58 * + - 65 * + - COUNT( * ) * - MAX( ALL - - 92 ) * + 80 AS col0
----
-1
-27747200

skipif mysql # not compatible
query II rowsort label-211
SELECT ALL - 1 AS col2, 58 * + - 65 * + - COUNT ( * ) * - MAX ( ALL - - 92 ) * + 80 AS col0
----
-1
-27747200

query I rowsort
SELECT DISTINCT 54 * - 44 AS col2
----
-2376

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

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

query I rowsort
SELECT ( 63 ) * + 20
----
1260

query I rowsort
SELECT ALL 89 * - + 56 AS col1
----
-4984

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-216
SELECT MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-216
SELECT MAX ( DISTINCT + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query II rowsort
SELECT ALL - 62 col0, 51
----
-62
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-218
SELECT CAST( NULL AS SIGNED ) / - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-218
SELECT CAST ( NULL AS INTEGER ) / - 97 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 17 + 98 + + + 45 * 99 * + + ( - 22 )
----
-97895

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-222
SELECT + CAST( + - 69 AS SIGNED ) DIV - SUM( + 93 ) - + 13 + + + MIN( ALL + 98 ) - - 82 * + - 11 * COUNT( * ) AS col0
----
-817

skipif mysql # not compatible
query I rowsort label-222
SELECT + CAST ( + - 69 AS INTEGER ) / - SUM ( + 93 ) - + 13 + + + MIN ( ALL + 98 ) - - 82 * + - 11 * COUNT ( * ) AS col0
----
-817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-223
SELECT - + CASE - CAST( NULL AS SIGNED ) WHEN + + 14 + + 49 THEN NULL ELSE - + 50 END / CASE + ( + 14 ) WHEN - 6 THEN - - 13 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-223
SELECT - + CASE - CAST ( NULL AS INTEGER ) WHEN + + 14 + + 49 THEN NULL ELSE - + 50 END / CASE + ( + 14 ) WHEN - 6 THEN - - 13 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT ALL + + SUM( DISTINCT 70 ) + - + 0 - 98
----
-28

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL + + SUM ( DISTINCT 70 ) + - + 0 - 98
----
-28

query I rowsort
SELECT + 34 * 73 AS col2
----
2482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-226
SELECT ALL COUNT( * ) + + ( - + 32 ) DIV - + 45
----
1

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL COUNT ( * ) + + ( - + 32 ) / - + 45
----
1

query I rowsort
SELECT DISTINCT + 19 + - 17
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-228
SELECT ALL + + 89 + - COUNT( * ) * + CAST( - MIN( ALL - + 56 ) AS SIGNED ) AS col0, CASE + ( - 70 ) WHEN 23 + 12 - - ( + 72 ) + + NULLIF ( MAX( ALL - + 40 ), + 51 ) * - + 23 * + - SUM( ALL 95 ) THEN + + 15 ELSE 56 + + ( - ( 37 ) ) END + - COUNT( * ) * + 74
----
33
-55

skipif mysql # not compatible
query II rowsort label-228
SELECT ALL + + 89 + - COUNT ( * ) * + CAST ( - MIN ( ALL - + 56 ) AS INTEGER ) AS col0, CASE + ( - 70 ) WHEN 23 + 12 - - ( + 72 ) + + NULLIF ( MAX ( ALL - + 40 ), + 51 ) * - + 23 * + - SUM ( ALL 95 ) THEN + + 15 ELSE 56 + + ( - ( 37 ) ) END + - COUNT ( * ) * + 74
----
33
-55

query I rowsort
SELECT DISTINCT + 94 * + - 77 * 98 * - 83
----
58873892

query I rowsort
SELECT + - 31 + - 29
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-231
SELECT ALL + - NULLIF ( + 25, NULLIF ( 49, - 80 * + - 81 + ( - 96 ) ) * - 62 ) * - 39 AS col1, 17 * - COUNT( * ) * + COUNT( ALL + 52 ) - + 78
----
975
-95

skipif mysql # not compatible
query II rowsort label-231
SELECT ALL + - NULLIF ( + 25, NULLIF ( 49, - 80 * + - 81 + ( - 96 ) ) * - 62 ) * - 39 AS col1, 17 * - COUNT ( * ) * + COUNT ( ALL + 52 ) - + 78
----
975
-95

query I rowsort
SELECT - + 56 + + 35
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT - - CASE + + COALESCE ( 3, + + 69 ) WHEN + ( - COUNT( * ) ) THEN 74 * + ( + - SUM( + ( 35 ) ) ) WHEN + + 67 THEN NULL END + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-233
SELECT - - CASE + + COALESCE ( 3, + + 69 ) WHEN + ( - COUNT ( * ) ) THEN 74 * + ( + - SUM ( + ( 35 ) ) ) WHEN + + 67 THEN NULL END + 51
----
NULL

query I rowsort
SELECT ALL - + ( - - 29 ) - - COALESCE ( - 18, 36, - + 37 + + 75 ) + + - 85
----
-132

query I rowsort
SELECT DISTINCT - 42 - 79 * - 62 + 88 AS col2
----
4944

onlyif mysql # DIV for integer division: 
query I rowsort label-236
SELECT ALL + 79 DIV + + 40
----
1

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL + 79 / + + 40
----
1

query I rowsort
SELECT - 91 + - - 25
----
-66

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

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

query I rowsort
SELECT - 4 + - 35
----
-39

query I rowsort
SELECT ALL - 29 * - 46 * 1 AS col2
----
1334

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT - ( 85 ) * MAX( DISTINCT + - 43 ) AS col2
----
3655

skipif mysql # not compatible
query I rowsort label-241
SELECT - ( 85 ) * MAX ( DISTINCT + - 43 ) AS col2
----
3655

onlyif mysql # aggregate syntax: 
query II rowsort label-242
SELECT ALL + 85 * + ( SUM( - 21 ) ) AS col1, ( 15 ) - + NULLIF ( - 6, + COUNT( * ) ) + 25 AS col1
----
-1785
46

skipif mysql # not compatible
query II rowsort label-242
SELECT ALL + 85 * + ( SUM ( - 21 ) ) AS col1, ( 15 ) - + NULLIF ( - 6, + COUNT ( * ) ) + 25 AS col1
----
-1785
46

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-244
SELECT + 2 - NULLIF ( CASE 14 WHEN 45 + COUNT( * ) THEN + 83 ELSE - + 23 + + - ( + 1 ) * - + 16 + 98 * + 94 * + - CAST( - - 72 AS SIGNED ) * + CAST( NULL AS SIGNED ) * - 45 END, + CAST( CAST( + 26 AS SIGNED ) AS SIGNED ) / - 56 + COUNT( * ) ) / - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-244
SELECT + 2 - NULLIF ( CASE 14 WHEN 45 + COUNT ( * ) THEN + 83 ELSE - + 23 + + - ( + 1 ) * - + 16 + 98 * + 94 * + - CAST ( - - 72 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - 45 END, + CAST ( CAST ( + 26 AS INTEGER ) AS INTEGER ) / - 56 + COUNT ( * ) ) / - 57
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-245
SELECT - 13 DIV + 59 * + 9
----
0

skipif mysql # not compatible
query I rowsort label-245
SELECT - 13 / + 59 * + 9
----
0

query I rowsort
SELECT + 19 * - 17 AS col0
----
-323

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT - MIN( + 8 ) * + 13 AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-247
SELECT - MIN ( + 8 ) * + 13 AS col1
----
-104

query I rowsort
SELECT ALL + 22 * - 91 * - - ( + 57 )
----
-114114

query I rowsort
SELECT DISTINCT - 68 * + 66 AS col2
----
-4488

query I rowsort
SELECT DISTINCT + 13 * + 62
----
806

onlyif mysql # DIV for integer division: 
query I rowsort label-251
SELECT ALL 77 DIV 50 col0
----
1

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL 77 / 50 col0
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-254
SELECT + 23 AS col1, + NULLIF ( + 40, - 85 / - 56 + COUNT( * ) * + 34 )
----
23
40

skipif mysql # not compatible
query II rowsort label-254
SELECT + 23 AS col1, + NULLIF ( + 40, - 85 / - 56 + COUNT ( * ) * + 34 )
----
23
40

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

query I rowsort
SELECT ALL 87 * - 72 + 10 - + + 56 + - 88
----
-6398

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT + 53 - - CASE COUNT( * ) WHEN - ( - 58 ) THEN NULL WHEN + 59 * - COALESCE ( + 58, + 13, + + 7 ) THEN - 75 * + - 15 - - 58 WHEN COUNT( * ) - + + 53 THEN + 14 + + 71 ELSE - - 63 * 27 + + 14 + - 97 * - CASE + 0 WHEN + 98 THEN 31 * 67 WHEN ( 96 ) THEN + 44 WHEN + 41 * 83 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-257
SELECT + 53 - - CASE COUNT ( * ) WHEN - ( - 58 ) THEN NULL WHEN + 59 * - COALESCE ( + 58, + 13, + + 7 ) THEN - 75 * + - 15 - - 58 WHEN COUNT ( * ) - + + 53 THEN + 14 + + 71 ELSE - - 63 * 27 + + 14 + - 97 * - CASE + 0 WHEN + 98 THEN 31 * 67 WHEN ( 96 ) THEN + 44 WHEN + 41 * 83 THEN NULL END END
----
NULL

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

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

query II rowsort
SELECT + 6 * - 25 + 82 + + 54, - 90 AS col2
----
-14
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT + 29 * - COALESCE ( + 76, - ( + 9 ) ) * - MIN( ALL - + 27 ) col0
----
-59508

skipif mysql # not compatible
query I rowsort label-260
SELECT + 29 * - COALESCE ( + 76, - ( + 9 ) ) * - MIN ( ALL - + 27 ) col0
----
-59508

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT ALL - 4 * - 55 + - 86 * - COUNT( * ) AS col1
----
306

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL - 4 * - 55 + - 86 * - COUNT ( * ) AS col1
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT + COUNT( * ) + 18 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-262
SELECT + COUNT ( * ) + 18 AS col0
----
19

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

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

query I rowsort
SELECT CASE 82 WHEN 36 THEN - 53 ELSE - 2 END
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-265
SELECT ALL + MAX( DISTINCT - - 7 ) DIV 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL + MAX ( DISTINCT - - 7 ) / 51 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-266
SELECT ALL + - MAX( DISTINCT + 33 ) AS col1, + COUNT( * ) AS col1
----
-33
1

skipif mysql # not compatible
query II rowsort label-266
SELECT ALL + - MAX ( DISTINCT + 33 ) AS col1, + COUNT ( * ) AS col1
----
-33
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-267
SELECT ALL + 84 * + - CASE - + 31 WHEN + 98 THEN NULL WHEN 86 THEN + COUNT( * ) * + CASE - 67 WHEN - 79 + - NULLIF ( - 79, - COUNT( * ) ) - + + 18 + - 91 + 67 * CAST( NULL AS SIGNED ) THEN NULL ELSE 37 * - + CASE + - SUM( DISTINCT - 82 ) WHEN + 54 THEN NULL ELSE - ( + 32 ) * + 73 END / 53 END + 71 * + NULLIF ( + ( 99 ), - COALESCE ( MIN( 35 ), - 3 * - 4, + 82 * - 52 ) * + 6 - + 63 ) END + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL + 84 * + - CASE - + 31 WHEN + 98 THEN NULL WHEN 86 THEN + COUNT ( * ) * + CASE - 67 WHEN - 79 + - NULLIF ( - 79, - COUNT ( * ) ) - + + 18 + - 91 + 67 * CAST ( NULL AS INTEGER ) THEN NULL ELSE 37 * - + CASE + - SUM ( DISTINCT - 82 ) WHEN + 54 THEN NULL ELSE - ( + 32 ) * + 73 END / 53 END + 71 * + NULLIF ( + ( 99 ), - COALESCE ( MIN ( 35 ), - 3 * - 4, + 82 * - 52 ) * + 6 - + 63 ) END + - 94
----
NULL

query II rowsort
SELECT DISTINCT + - 24 AS col1, - 17 AS col0
----
-24
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-269
SELECT ALL + - 71 * - + 26 * ( + 26 ) / - 32 * 71 * + + 70 * - 39 - + + CASE - 27 WHEN - + 69 + 44 * + - COUNT( * ) THEN - + 76 WHEN - - 14 + - - 72 * - 51 - + 76 * + 8 THEN 48 END + + + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) / + COALESCE ( - 53 - + 76, 49 ) * 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL + - 71 * - + 26 * ( + 26 ) / - 32 * 71 * + + 70 * - 39 - + + CASE - 27 WHEN - + 69 + 44 * + - COUNT ( * ) THEN - + 76 WHEN - - 14 + - - 72 * - 51 - + 76 * + 8 THEN 48 END + + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) / + COALESCE ( - 53 - + 76, 49 ) * 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT + + ( - MAX( 45 ) ) + + + 1
----
-44

skipif mysql # not compatible
query I rowsort label-270
SELECT + + ( - MAX ( 45 ) ) + + + 1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-271
SELECT + 82 + + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-271
SELECT + 82 + + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT - SUM( ALL - 22 ) + - 24 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-272
SELECT - SUM ( ALL - 22 ) + - 24 AS col2
----
-2

query I rowsort
SELECT - 9 + 18 AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-274
SELECT ALL COUNT( * ) DIV - 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL COUNT ( * ) / - 16 AS col1
----
0

query I rowsort
SELECT DISTINCT CASE + + 60 WHEN - + 39 + + 34 THEN + 29 * - 13 * + - 91 + 28 END
----
NULL

query I rowsort
SELECT ALL + 49 * + 8
----
392

query I rowsort
SELECT ALL - 38 - - - NULLIF ( + - 58, - 35 ) * - + 29
----
-1720

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT DISTINCT MIN( + 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-278
SELECT DISTINCT MIN ( + 75 ) AS col0
----
75

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

query II rowsort
SELECT - 24 AS col0, + 23
----
-24
23

query I rowsort
SELECT ALL + 89 * 19
----
1691

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

query II rowsort
SELECT DISTINCT ( + 11 ) AS col0, + 19 AS col0
----
11
19

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

query I rowsort
SELECT - ( - 21 ) * 15 AS col1
----
315

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT DISTINCT NULLIF ( + - COUNT( * ), 24 - + - 66 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-287
SELECT DISTINCT NULLIF ( + - COUNT ( * ), 24 - + - 66 ) AS col1
----
-1

query I rowsort
SELECT ALL CASE 78 WHEN + + 80 * - ( + - 35 ) THEN - 15 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-289
SELECT DISTINCT + CASE - 61 WHEN - 12 * - + 2 + + - 77 * - 76 + - + COALESCE ( - CASE + + 78 WHEN 78 THEN + ( - - 59 ) * - CASE - 22 WHEN 36 THEN - 48 WHEN - 60 * + - 70 + + 20 THEN + 40 + + - 10 WHEN - ( 79 ) * 38 THEN NULL END WHEN 79 * + NULLIF ( - 17, - CAST( NULL AS SIGNED ) ) THEN NULL ELSE + 27 END, ( 85 ) + + 61 ) THEN NULL WHEN - 28 THEN - 83 + + ( - CAST( NULL AS SIGNED ) ) ELSE NULL END + NULLIF ( + 6, 97 ) * 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-289
SELECT DISTINCT + CASE - 61 WHEN - 12 * - + 2 + + - 77 * - 76 + - + COALESCE ( - CASE + + 78 WHEN 78 THEN + ( - - 59 ) * - CASE - 22 WHEN 36 THEN - 48 WHEN - 60 * + - 70 + + 20 THEN + 40 + + - 10 WHEN - ( 79 ) * 38 THEN NULL END WHEN 79 * + NULLIF ( - 17, - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + 27 END, ( 85 ) + + 61 ) THEN NULL WHEN - 28 THEN - 83 + + ( - CAST ( NULL AS INTEGER ) ) ELSE NULL END + NULLIF ( + 6, 97 ) * 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-290
SELECT ALL COUNT( * ) DIV 87 * 61 + - 11 * + 91
----
-1001

skipif mysql # not compatible
query I rowsort label-290
SELECT ALL COUNT ( * ) / 87 * 61 + - 11 * + 91
----
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT ALL + 91 + CASE 97 WHEN AVG ( - 73 ) THEN NULL ELSE COUNT( * ) END - 87
----
5

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL + 91 + CASE 97 WHEN AVG ( - 73 ) THEN NULL ELSE COUNT ( * ) END - 87
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT 0 * - + 26 - COUNT( * ) + - COUNT( * ) * + 95 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-292
SELECT 0 * - + 26 - COUNT ( * ) + - COUNT ( * ) * + 95 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT NULLIF ( 40, 73 * NULLIF ( 26, + ( - + ( - 83 ) ) * + 8 ) * + COUNT( * ) + - 99 / + - 75 + + - 64 ) + - + COUNT( * ) + - 32 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-293
SELECT NULLIF ( 40, 73 * NULLIF ( 26, + ( - + ( - 83 ) ) * + 8 ) * + COUNT ( * ) + - 99 / + - 75 + + - 64 ) + - + COUNT ( * ) + - 32 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-294
SELECT DISTINCT - CAST( CASE - 39 WHEN - + ( + NULLIF ( NULLIF ( - 10, - + MIN( - 91 ) ), + COUNT( * ) * CASE - + ( - CASE - COALESCE ( + - 42, + 26 * 70 * + - ( - + 1 ) * - + MAX( DISTINCT 3 ) / - 43 * 32 ) WHEN SUM( DISTINCT - 21 ) THEN - 89 * + CAST( - MIN( 21 ) AS SIGNED ) WHEN + 81 * 34 THEN 75 + 90 ELSE - 53 * - 25 END ) WHEN 70 / - 37 THEN 30 END ) ) - + 25 * - 38 THEN - 93 * - 22 + - 52 WHEN 40 + + 13 / 89 THEN 38 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT - CAST ( CASE - 39 WHEN - + ( + NULLIF ( NULLIF ( - 10, - + MIN ( - 91 ) ), + COUNT ( * ) * CASE - + ( - CASE - COALESCE ( + - 42, + 26 * 70 * + - ( - + 1 ) * - + MAX ( DISTINCT 3 ) / - 43 * 32 ) WHEN SUM ( DISTINCT - 21 ) THEN - 89 * + CAST ( - MIN ( 21 ) AS INTEGER ) WHEN + 81 * 34 THEN 75 + 90 ELSE - 53 * - 25 END ) WHEN 70 / - 37 THEN 30 END ) ) - + 25 * - 38 THEN - 93 * - 22 + - 52 WHEN 40 + + 13 / 89 THEN 38 ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 88 + 68 * 31 - + 86 AS col2
----
2110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-296
SELECT 7 DIV + 13 AS col0, + COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-296
SELECT 7 / + 13 AS col0, + COUNT ( * ) AS col2
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-297
SELECT DISTINCT - 19 + + 5 + + ( - + COUNT( * ) ) + ( 34 ) + + COUNT( * ) + 46 + - - 40 * 51 DIV - - COUNT( * ) - + 87 + + - 3 + + 9 * - + COUNT( - + 15 ) DIV - COALESCE ( + 54, + + 55 + - 48 ) * + - 40 + - 65
----
1951

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT - 19 + + 5 + + ( - + COUNT ( * ) ) + ( 34 ) + + COUNT ( * ) + 46 + - - 40 * 51 / - - COUNT ( * ) - + 87 + + - 3 + + 9 * - + COUNT ( - + 15 ) / - COALESCE ( + 54, + + 55 + - 48 ) * + - 40 + - 65
----
1951

query I rowsort
SELECT ALL + 65 * - 9 AS col1
----
-585

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT ALL - - COALESCE ( - 76, - 57 + COUNT( * ) )
----
-76

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL - - COALESCE ( - 76, - 57 + COUNT ( * ) )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT + - 67 - + + MIN( 3 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT + - 67 - + + MIN ( 3 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT ALL - COUNT( * ) - + NULLIF ( + 74, 99 ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL - COUNT ( * ) - + NULLIF ( + 74, 99 ) col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT ALL MIN( ALL - 33 ) * - + 22 * 16
----
11616

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL MIN ( ALL - 33 ) * - + 22 * 16
----
11616

query I rowsort
SELECT DISTINCT - 1 * - + ( + 42 )
----
42

query II rowsort
SELECT ALL - + 63 * + 53 AS col2, 79 AS col2
----
-3339
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-306
SELECT CAST( - + 59 AS SIGNED ) * ( + - 18 ) AS col2
----
1062

skipif mysql # not compatible
query I rowsort label-306
SELECT CAST ( - + 59 AS INTEGER ) * ( + - 18 ) AS col2
----
1062

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

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

query I rowsort
SELECT 69 * 9
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT - NULLIF ( - 3, 73 / + 7 ) + + COUNT( * ) + - 59
----
-55

skipif mysql # not compatible
query I rowsort label-309
SELECT - NULLIF ( - 3, 73 / + 7 ) + + COUNT ( * ) + - 59
----
-55

query II rowsort
SELECT - 91 AS col2, + 23
----
-91
23

query I rowsort
SELECT 95 * + + 76 AS col0
----
7220

query I rowsort
SELECT ALL 2 + - - 80
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-313
SELECT CASE - MIN( + 69 ) WHEN - 35 THEN - 0 END + - 65 * + - ( + + 92 ) AS col1, - 95 + - - 74 * - - COUNT( * ) + 46
----
NULL
25

skipif mysql # not compatible
query II rowsort label-313
SELECT CASE - MIN ( + 69 ) WHEN - 35 THEN - 0 END + - 65 * + - ( + + 92 ) AS col1, - 95 + - - 74 * - - COUNT ( * ) + 46
----
NULL
25

onlyif mysql # aggregate syntax: 
query II rowsort label-314
SELECT - 57 AS col0, - COUNT( * )
----
-57
-1

skipif mysql # not compatible
query II rowsort label-314
SELECT - 57 AS col0, - COUNT ( * )
----
-57
-1

query I rowsort
SELECT ALL 25 + - 76
----
-51

query I rowsort
SELECT 72 * + 65 AS col2
----
4680

query I rowsort
SELECT 85 + + 8 AS col1
----
93

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-319
SELECT 30 + - 88 + - + 60 AS col0, - CASE - NULLIF ( + + 16, - 19 * 26 + - 65 ) WHEN - COUNT( ALL + 22 ) THEN NULL WHEN 4 * + 49 THEN + 10 + - COALESCE ( 87, - 36 ) * 48 END AS col1
----
-118
NULL

skipif mysql # not compatible
query II rowsort label-319
SELECT 30 + - 88 + - + 60 AS col0, - CASE - NULLIF ( + + 16, - 19 * 26 + - 65 ) WHEN - COUNT ( ALL + 22 ) THEN NULL WHEN 4 * + 49 THEN + 10 + - COALESCE ( 87, - 36 ) * 48 END AS col1
----
-118
NULL

query I rowsort
SELECT DISTINCT 24 * - 37
----
-888

query I rowsort
SELECT 7 - - 74
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT DISTINCT COUNT( * ) - - 38 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT COUNT ( * ) - - 38 AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-323
SELECT DISTINCT - COUNT( * ), - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-323
SELECT DISTINCT - COUNT ( * ), - COUNT ( * )
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT ALL - CASE + 1 WHEN 39 + + + 90 + + COUNT( - + 45 ) - + COUNT( * ) - - - 29 * + COUNT( * ) * - 31 THEN - COUNT( * ) + - 88 / - + 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL - CASE + 1 WHEN 39 + + + 90 + + COUNT ( - + 45 ) - + COUNT ( * ) - - - 29 * + COUNT ( * ) * - 31 THEN - COUNT ( * ) + - 88 / - + 33 ELSE NULL END
----
NULL

query I rowsort
SELECT 66 + - 25 * 84 + - - 6
----
-2028

query I rowsort
SELECT 25 * - 86 AS col0
----
-2150

query I rowsort
SELECT 56 - - + 58 AS col1
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-328
SELECT DISTINCT - 7 * + 21 * + 49 * + - 31 + - COUNT( ALL - 54 ) AS col2, 53 * 31 col0
----
223292
1643

skipif mysql # not compatible
query II rowsort label-328
SELECT DISTINCT - 7 * + 21 * + 49 * + - 31 + - COUNT ( ALL - 54 ) AS col2, 53 * 31 col0
----
223292
1643

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT - CASE COUNT( * ) WHEN 94 THEN NULL WHEN + 71 * + 51 THEN NULL ELSE 55 * - 55 + + 58 DIV + 4 + 89 + + 4 END
----
2918

skipif mysql # not compatible
query I rowsort label-329
SELECT - CASE COUNT ( * ) WHEN 94 THEN NULL WHEN + 71 * + 51 THEN NULL ELSE 55 * - 55 + + 58 / + 4 + 89 + + 4 END
----
2918

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

skipif mysql # not compatible
query I rowsort label-330
SELECT COUNT ( * ) / + - 68 * 2 AS col0
----
0

query I rowsort
SELECT ALL + + 15 * 42 col2
----
630

query I rowsort
SELECT 5 + CASE 6 WHEN 37 * + 20 - - 20 THEN NULL ELSE 77 + 90 END AS col0
----
172

onlyif mysql # aggregate syntax: 
query II rowsort label-333
SELECT DISTINCT - 63 AS col2, - MIN( DISTINCT + - 80 ) col1
----
-63
80

skipif mysql # not compatible
query II rowsort label-333
SELECT DISTINCT - 63 AS col2, - MIN ( DISTINCT + - 80 ) col1
----
-63
80

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-335
SELECT - ( COUNT( * ) ) + + 5, 61 AS col1
----
4
61

skipif mysql # not compatible
query II rowsort label-335
SELECT - ( COUNT ( * ) ) + + 5, 61 AS col1
----
4
61

query I rowsort
SELECT ALL - - 86 * + 61 AS col1
----
5246

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

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT 53 * + ( - 61 ) * - MAX( - 42 )
----
-135786

skipif mysql # not compatible
query I rowsort label-338
SELECT 53 * + ( - 61 ) * - MAX ( - 42 )
----
-135786

query I rowsort
SELECT + 93 + 48 AS col1
----
141

query II rowsort
SELECT - 42 AS col0, 1
----
-42
1

query I rowsort
SELECT DISTINCT - + 68 + + - ( + + 0 ) * + 72 AS col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-342
SELECT ALL 61 + - + 83 * + COUNT( * ) * + CAST( 42 AS SIGNED )
----
-3425

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL 61 + - + 83 * + COUNT ( * ) * + CAST ( 42 AS INTEGER )
----
-3425

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT DISTINCT COUNT( * ) + - - 10 * 47
----
471

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT COUNT ( * ) + - - 10 * 47
----
471

onlyif mysql # aggregate syntax: 
query II rowsort label-344
SELECT DISTINCT CASE 80 WHEN 52 THEN + 92 END AS col0, + 26 * + COUNT( * )
----
NULL
26

skipif mysql # not compatible
query II rowsort label-344
SELECT DISTINCT CASE 80 WHEN 52 THEN + 92 END AS col0, + 26 * + COUNT ( * )
----
NULL
26

query II rowsort
SELECT ALL 25 + - ( + ( + + 45 ) ) AS col1, + 72
----
-20
72

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT - COUNT( * ) - + 79 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-346
SELECT - COUNT ( * ) - + 79 AS col2
----
-80

query I rowsort
SELECT DISTINCT 60 + + ( 64 ) + 60
----
184

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-348
SELECT + CASE COUNT( * ) WHEN - - 57 - - 6 THEN - CASE - ( + 10 ) WHEN - NULLIF ( - CAST( - 82 AS DECIMAL ), - - 53 ) THEN NULL ELSE + 41 * ( - + ( + 12 ) ) + + CASE ( - - 94 ) WHEN - 5 + - 94 * - - 0 THEN NULL ELSE + 63 END END + - 45 * - 65 + SUM( 42 + 96 ) * + 64 END / - 58 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-348
SELECT + CASE COUNT ( * ) WHEN - - 57 - - 6 THEN - CASE - ( + 10 ) WHEN - NULLIF ( - CAST ( - 82 AS REAL ), - - 53 ) THEN NULL ELSE + 41 * ( - + ( + 12 ) ) + + CASE ( - - 94 ) WHEN - 5 + - 94 * - - 0 THEN NULL ELSE + 63 END END + - 45 * - 65 + SUM ( 42 + 96 ) * + 64 END / - 58 col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-350
SELECT DISTINCT COUNT( * ) DIV - MIN( ALL - 31 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-350
SELECT DISTINCT COUNT ( * ) / - MIN ( ALL - 31 ) AS col1
----
0

query I rowsort
SELECT + 70 + + 93
----
163

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT ( CASE AVG ( - CASE - + 31 WHEN - 16 + - 85 THEN NULL ELSE - 78 END ) WHEN - MAX( ( + 64 ) ) THEN 37 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-353
SELECT ( CASE AVG ( - CASE - + 31 WHEN - 16 + - 85 THEN NULL ELSE - 78 END ) WHEN - MAX ( ( + 64 ) ) THEN 37 ELSE NULL END )
----
NULL

query I rowsort
SELECT ( - ( - 23 ) )
----
23

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

query I rowsort
SELECT ALL + 78 * - 53
----
-4134

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT + COALESCE ( + 11, - 45 * + + 31 * 38 * + - COUNT( * ) + 89, + + 12 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-357
SELECT + COALESCE ( + 11, - 45 * + + 31 * 38 * + - COUNT ( * ) + 89, + + 12 ) AS col1
----
11

query I rowsort
SELECT - 62 + + + 93 * - 54
----
-5084

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-360
SELECT ALL 75 * COUNT( * ) * 38 DIV 89 + + 77 - - 77
----
186

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL 75 * COUNT ( * ) * 38 / 89 + + 77 - - 77
----
186

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

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT + NULLIF ( - - COUNT ( * ), + ( + - ( COUNT ( * ) ) ) + 50 )
----
1

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

query I rowsort
SELECT - 41 * + + 91 AS col2
----
-3731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-364
SELECT + CAST( - + 37 AS SIGNED ) AS col1, MAX( - + 45 )
----
-37
-45

skipif mysql # not compatible
query II rowsort label-364
SELECT + CAST ( - + 37 AS INTEGER ) AS col1, MAX ( - + 45 )
----
-37
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-365
SELECT DISTINCT + - 46 DIV - 46 + + MAX( DISTINCT 56 )
----
57

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT + - 46 / - 46 + + MAX ( DISTINCT 56 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-366
SELECT ALL - 70 * - SUM( 97 ) - - + 40 * - 73 + ( + + 41 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL - 70 * - SUM ( 97 ) - - + 40 * - 73 + ( + + 41 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 96 * - 96 + - 79 AS col1
----
9137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-368
SELECT DISTINCT COUNT( * ) * 81 + 44 + 6 DIV SUM( + 84 )
----
125

skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT COUNT ( * ) * 81 + 44 + 6 / SUM ( + 84 )
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT ALL + 91 * - COUNT( * ) + + 47
----
-44

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL + 91 * - COUNT ( * ) + + 47
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT - NULLIF ( 18, - - 55 / COUNT( * ) ) - - 94
----
76

skipif mysql # not compatible
query I rowsort label-370
SELECT - NULLIF ( 18, - - 55 / COUNT ( * ) ) - - 94
----
76

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

query I rowsort
SELECT + 87 * 79 + + 13 - + NULLIF ( + 28, - - 48 / - 10 + + 14 ) AS col2
----
6858

query II rowsort
SELECT ALL - 66 * 78 AS col2, 47 AS col0
----
-5148
47

query I rowsort
SELECT DISTINCT 84 * - 78 + + 71 + 77 AS col2
----
-6404

query II rowsort
SELECT - ( 31 ) + + 7 AS col0, - 88
----
-24
-88

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

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

query I rowsort
SELECT + 13 - + 80 * 79 * + - 80
----
505613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-378
SELECT - 83 + CAST( - - 49 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT - 83 + CAST ( - - 49 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 77 * - 27 AS col1
----
2079

onlyif mysql # aggregate syntax: 
query II rowsort label-380
SELECT ALL ( COUNT( DISTINCT 90 ) ), 25 AS col2
----
1
25

skipif mysql # not compatible
query II rowsort label-380
SELECT ALL ( COUNT ( DISTINCT 90 ) ), 25 AS col2
----
1
25

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT - 53 + - + 18 + COUNT( * ) * 66 * + + ( + 53 )
----
3427

skipif mysql # not compatible
query I rowsort label-381
SELECT - 53 + - + 18 + COUNT ( * ) * 66 * + + ( + 53 )
----
3427

query I rowsort
SELECT DISTINCT + 15 * 45 * - - 88 * 49
----
2910600

query I rowsort
SELECT + 47 * - 37
----
-1739

query I rowsort
SELECT + AVG ( ALL - 93 ) / + CASE ( 44 ) WHEN + - 53 - AVG ( ALL 88 ) THEN 59 * + 92 * - + 18 WHEN - 64 THEN NULL WHEN + + 65 / + - 32 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 11 * + CASE + - 6 WHEN - 34 THEN - 0 ELSE NULL END * 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-386
SELECT DISTINCT 88 AS col1, + MAX( DISTINCT - 73 ) - - + 79
----
88
6

skipif mysql # not compatible
query II rowsort label-386
SELECT DISTINCT 88 AS col1, + MAX ( DISTINCT - 73 ) - - + 79
----
88
6

onlyif mysql # DIV for integer division: 
query I rowsort label-387
SELECT ALL 20 DIV - - 5
----
4

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL 20 / - - 5
----
4

query II rowsort
SELECT DISTINCT + 47 col2, 2 * - + 74
----
47
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-389
SELECT + + 86 DIV COUNT( * ) DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-389
SELECT + + 86 / COUNT ( * ) / 47
----
1

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

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

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

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

query II rowsort
SELECT - 35 * - 64 + - 20, - 25 * - NULLIF ( - 29, 19 ) AS col2
----
2220
-725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-393
SELECT + CAST( NULL AS SIGNED ) - + MIN( 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-393
SELECT + CAST ( NULL AS INTEGER ) - + MIN ( 72 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-394
SELECT 19 * + 30 - COUNT( * ) col2, 96 + + CAST( NULL AS SIGNED )
----
569
NULL

skipif mysql # not compatible
query II rowsort label-394
SELECT 19 * + 30 - COUNT ( * ) col2, 96 + + CAST ( NULL AS INTEGER )
----
569
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-395
SELECT ALL 43 DIV - COALESCE ( - CASE 17 WHEN - 4 THEN + 81 * + 86 + + 24 * 94 * + 83 END, 60 ) - 51 + - ( 31 ) - - 94 - - 26 DIV 39 DIV - COALESCE ( 49, + ( - + 48 ) * COUNT( * ) + + CAST( + 76 AS SIGNED ) + - COUNT( * ) * 32 * + 68 ) + + 93 col1
----
105

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL 43 / - COALESCE ( - CASE 17 WHEN - 4 THEN + 81 * + 86 + + 24 * 94 * + 83 END, 60 ) - 51 + - ( 31 ) - - 94 - - 26 / 39 / - COALESCE ( 49, + ( - + 48 ) * COUNT ( * ) + + CAST ( + 76 AS INTEGER ) + - COUNT ( * ) * 32 * + 68 ) + + 93 col1
----
105

query I rowsort
SELECT + - 34 + - + 41 AS col1
----
-75

query I rowsort
SELECT DISTINCT - 28 * 99 AS col1
----
-2772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-398
SELECT DISTINCT 1 * - NULLIF ( + CAST( NULL AS SIGNED ), + ( + 83 ) ) + + + ( + ( COALESCE ( - 20, ( - 16 ), + 56 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT 1 * - NULLIF ( + CAST ( NULL AS INTEGER ), + ( + 83 ) ) + + + ( + ( COALESCE ( - 20, ( - 16 ), + 56 ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-399
SELECT ALL - COALESCE ( COUNT( * ), + 99 * CASE 0 WHEN - + COUNT( * ) * - 4 + + 34 + - CAST( NULL AS SIGNED ) * + + COUNT( 9 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) * - 69 THEN NULLIF ( ( - 35 ), 17 * - CAST( NULL AS SIGNED ) - + 9 + + 46 ) DIV + + CASE - 51 WHEN + 83 THEN NULLIF ( 50, - 25 ) WHEN 80 * + SUM( ALL - 42 * - 46 ) THEN - ( 81 ) + - 11 END END * 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL - COALESCE ( COUNT ( * ), + 99 * CASE 0 WHEN - + COUNT ( * ) * - 4 + + 34 + - CAST ( NULL AS INTEGER ) * + + COUNT ( 9 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) * - 69 THEN NULLIF ( ( - 35 ), 17 * - CAST ( NULL AS INTEGER ) - + 9 + + 46 ) / + + CASE - 51 WHEN + 83 THEN NULLIF ( 50, - 25 ) WHEN 80 * + SUM ( ALL - 42 * - 46 ) THEN - ( 81 ) + - 11 END END * 13 )
----
-1

query I rowsort
SELECT ALL - 79 + - + 23 col1
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-401
SELECT DISTINCT - - 16, + 84 * 14 - 20 * + COUNT( * ) AS col2
----
16
1156

skipif mysql # not compatible
query II rowsort label-401
SELECT DISTINCT - - 16, + 84 * 14 - 20 * + COUNT ( * ) AS col2
----
16
1156

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT 9 * + + SUM( 74 ) + - - 8
----
674

skipif mysql # not compatible
query I rowsort label-402
SELECT 9 * + + SUM ( 74 ) + - - 8
----
674

onlyif mysql # DIV for integer division: 
query I rowsort label-403
SELECT ALL + 9 DIV - + 37
----
0

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL + 9 / - + 37
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-404
SELECT CAST( + 13 AS SIGNED ) DIV - 26
----
0

skipif mysql # not compatible
query I rowsort label-404
SELECT CAST ( + 13 AS INTEGER ) / - 26
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-406
SELECT ALL 49, CASE + 84 WHEN + - 8 * 55 THEN NULL WHEN + ( 42 ) + + COUNT( * ) + + ( 52 ) * + 24 * 29 THEN - - 65 + + 27 ELSE - COUNT( * ) END * + 95 AS col0
----
49
-95

skipif mysql # not compatible
query II rowsort label-406
SELECT ALL 49, CASE + 84 WHEN + - 8 * 55 THEN NULL WHEN + ( 42 ) + + COUNT ( * ) + + ( 52 ) * + 24 * 29 THEN - - 65 + + 27 ELSE - COUNT ( * ) END * + 95 AS col0
----
49
-95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-408
SELECT 20 + 98 + - + CAST( NULL AS SIGNED ) * + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-408
SELECT 20 + 98 + - + CAST ( NULL AS INTEGER ) * + 49
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-409
SELECT ALL + NULLIF ( - ( - - CAST( - - 68 AS SIGNED ) ), + 47 * + 25 ) - COUNT( * ) + + - 25 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL + NULLIF ( - ( - - CAST ( - - 68 AS INTEGER ) ), + 47 * + 25 ) - COUNT ( * ) + + - 25 AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-410
SELECT ALL - CASE - 74 WHEN MAX( + 85 ) * - 15 * + + 76 * + 57 THEN NULL WHEN - 9 / 13 * + - 44 / + MAX( ALL - - 8 ) - - + 30 + - + 36 THEN 35 ELSE NULL END - CASE + - 74 WHEN + 72 THEN + - 51 * COUNT( + - CAST( - 15 AS SIGNED ) ) WHEN + COUNT( * ) * - + 22 THEN + 42 ELSE NULL END * + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL - CASE - 74 WHEN MAX ( + 85 ) * - 15 * + + 76 * + 57 THEN NULL WHEN - 9 / 13 * + - 44 / + MAX ( ALL - - 8 ) - - + 30 + - + 36 THEN 35 ELSE NULL END - CASE + - 74 WHEN + 72 THEN + - 51 * COUNT ( + - CAST ( - 15 AS INTEGER ) ) WHEN + COUNT ( * ) * - + 22 THEN + 42 ELSE NULL END * + 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-411
SELECT 1 DIV - + 6 AS col0, - COUNT( DISTINCT 57 ) col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-411
SELECT 1 / - + 6 AS col0, - COUNT ( DISTINCT 57 ) col2
----
0
-1

query I rowsort
SELECT DISTINCT 1 * - 76 AS col0
----
-76

query II rowsort
SELECT 22 AS col1, + 65 + - 49
----
22
16

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

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

query II rowsort
SELECT ALL 17 AS col2, 87 + - 86 + - + 96 * 53
----
17
-5087

query I rowsort
SELECT 0 - - 71
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT 36 * - NULLIF ( + 61, - 85 * ( - - ( + + COUNT( * ) ) ) / + 3 )
----
-2196

skipif mysql # not compatible
query I rowsort label-417
SELECT 36 * - NULLIF ( + 61, - 85 * ( - - ( + + COUNT ( * ) ) ) / + 3 )
----
-2196

query I rowsort
SELECT 7 + - CASE + 85 WHEN + + 76 + - COALESCE ( + COALESCE ( - - 7, - + 28 + - + 62, 85 * - ( + + ( + 3 ) ) ), - 21 ) THEN NULL ELSE - 23 * + 7 + 88 + - + 37 + NULLIF ( + 99, 90 + + 97 ) * ( + - 3 ) END
----
414

query I rowsort
SELECT 51 + - + 58 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-420
SELECT ALL 84 col1, 16 - - + 57 * - 55 + - COUNT( DISTINCT - 27 ) AS col0
----
84
-3120

skipif mysql # not compatible
query II rowsort label-420
SELECT ALL 84 col1, 16 - - + 57 * - 55 + - COUNT ( DISTINCT - 27 ) AS col0
----
84
-3120

query I rowsort
SELECT 26 * - + 62
----
-1612

query II rowsort
SELECT ALL 85 AS col1, CASE + 41 WHEN + 9 THEN ( 31 ) ELSE NULL END + - 91 * + 68 * + 86
----
85
NULL

query I rowsort
SELECT DISTINCT + 17 + + 46
----
63

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

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

query I rowsort
SELECT ALL + 95 * + ( 9 )
----
855

onlyif mysql # DIV for integer division: 
query I rowsort label-426
SELECT 33 + + + 79 DIV + 24
----
36

skipif mysql # not compatible
query I rowsort label-426
SELECT 33 + + + 79 / + 24
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-427
SELECT ALL 31 AS col0, 83 + - - SUM( DISTINCT + 20 ) AS col2
----
31
103

skipif mysql # not compatible
query II rowsort label-427
SELECT ALL 31 AS col0, 83 + - - SUM ( DISTINCT + 20 ) AS col2
----
31
103

query I rowsort
SELECT DISTINCT - 68 * - - 4 AS col0
----
-272

onlyif mysql # DIV for integer division: 
query II rowsort label-429
SELECT 13 * - 90 AS col1, + ( - + 21 ) DIV - 26
----
-1170
0

skipif mysql # not compatible
query II rowsort label-429
SELECT 13 * - 90 AS col1, + ( - + 21 ) / - 26
----
-1170
0

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

skipif mysql # not compatible
query I rowsort label-430
SELECT 23 / + 41 + + + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 1 + + + 10
----
11

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

query I rowsort
SELECT + 99 * + 11 AS col2
----
1089

query II rowsort
SELECT + 77 AS col0, - 78 AS col2
----
77
-78

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

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL - + CAST ( - 70 AS INTEGER ) AS col2
----
70

query I rowsort
SELECT DISTINCT - 41 + + 58 * + 96 AS col1
----
5527

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT ALL + 82 + + - COUNT( * ) * + + 70 * - MAX( ALL - 11 ) AS col1
----
-688

skipif mysql # not compatible
query I rowsort label-437
SELECT ALL + 82 + + - COUNT ( * ) * + + 70 * - MAX ( ALL - 11 ) AS col1
----
-688

query I rowsort
SELECT ALL + NULLIF ( - 99, + 4 * - 48 ) * + 50 * - - 64 * - NULLIF ( - - 37, - + ( + + 29 ) ) col2
----
11721600

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

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

query I rowsort
SELECT + + 89 * + + 45 - 79 AS col1
----
3926

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT 20 * + 83 + - + 23 * - 60 - - ( - MAX( - 53 ) ) * - 47 * - MIN( ALL + - 62 )
----
-151402

skipif mysql # not compatible
query I rowsort label-441
SELECT 20 * + 83 + - + 23 * - 60 - - ( - MAX ( - 53 ) ) * - 47 * - MIN ( ALL + - 62 )
----
-151402

query I rowsort
SELECT ALL 2 * - 7 AS col1
----
-14

query I rowsort
SELECT DISTINCT 7 * - 48 AS col0
----
-336

query II rowsort
SELECT ALL 42 * 82 col0, ( - 0 ) AS col2
----
3444
0

query I rowsort
SELECT 42 * + + 0 - + + 44 AS col2
----
-44

query II rowsort
SELECT ALL 60 * 50 AS col0, + 1 col1
----
3000
1

onlyif mysql # DIV for integer division: 
query I rowsort label-447
SELECT 36 DIV - 30 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-447
SELECT 36 / - 30 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ( 58 ) + + COUNT( * ) * + 73 + - 50 * - 10 + - 99 * 17
----
-1052

skipif mysql # not compatible
query I rowsort label-448
SELECT ( 58 ) + + COUNT ( * ) * + 73 + - 50 * - 10 + - 99 * 17
----
-1052

query II rowsort
SELECT 45 - + 77 AS col2, 66 * 91
----
-32
6006

query I rowsort
SELECT 19 + 11 + 83
----
113

query I rowsort
SELECT 55 - - 64 + + - 96 * + + 89
----
-8425

onlyif mysql # DIV for integer division: 
query I rowsort label-452
SELECT ALL 94 DIV + 8 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL 94 / + 8 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT DISTINCT - 25 * + 47 * COUNT( * )
----
-1175

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT - 25 * + 47 * COUNT ( * )
----
-1175

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

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

query I rowsort
SELECT DISTINCT ( 61 ) + - 84 AS col2
----
-23

query I rowsort
SELECT ALL - 30 * - - 29 AS col0
----
-870

query I rowsort
SELECT ALL + ( + - 6 ) + + - 48 * 50
----
-2406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-458
SELECT - 38 * + CASE - 6 WHEN COUNT( * ) THEN NULL WHEN + 11 * 73 THEN + 35 * + CAST( NULL AS SIGNED ) * 29 + 86 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-458
SELECT - 38 * + CASE - 6 WHEN COUNT ( * ) THEN NULL WHEN + 11 * 73 THEN + 35 * + CAST ( NULL AS INTEGER ) * 29 + 86 END AS col1
----
NULL

query II rowsort
SELECT DISTINCT + ( - 7 ) + - + 95 AS col1, 73
----
-102
73

query I rowsort
SELECT - - 28 col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT + COUNT( * ) * + 90 * - COUNT( + + 16 ) * + 97 + - 96
----
-8826

skipif mysql # not compatible
query I rowsort label-461
SELECT + COUNT ( * ) * + 90 * - COUNT ( + + 16 ) * + 97 + - 96
----
-8826

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL + NULLIF ( - SUM( ALL + 97 ), - 30 ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL + NULLIF ( - SUM ( ALL + 97 ), - 30 ) col1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-463
SELECT + SUM( ALL 51 ) AS col0, 15 - + + 61 + 21 DIV + + 17 - 50
----
51
-95

skipif mysql # not compatible
query II rowsort label-463
SELECT + SUM ( ALL 51 ) AS col0, 15 - + + 61 + 21 / + + 17 - 50
----
51
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT DISTINCT - 50 * + COUNT( * ) * + COUNT( * ) * + 77 + + 73 + - + 75 * COUNT( * ) + - 24 * 59
----
-5268

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT - 50 * + COUNT ( * ) * + COUNT ( * ) * + 77 + + 73 + - + 75 * COUNT ( * ) + - 24 * 59
----
-5268

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT + 68 * - COUNT( DISTINCT 12 ) * 96 - - 9 + COUNT( * )
----
-6518

skipif mysql # not compatible
query I rowsort label-465
SELECT + 68 * - COUNT ( DISTINCT 12 ) * 96 - - 9 + COUNT ( * )
----
-6518

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-467
SELECT DISTINCT - MAX( DISTINCT 11 ) * COALESCE ( + 45, NULLIF ( + 1, COALESCE ( + MAX( DISTINCT + CAST( NULL AS SIGNED ) ), - 81, SUM( 90 ) ) / + 29 * + 22 ) )
----
-495

skipif mysql # not compatible
query I rowsort label-467
SELECT DISTINCT - MAX ( DISTINCT 11 ) * COALESCE ( + 45, NULLIF ( + 1, COALESCE ( + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ), - 81, SUM ( 90 ) ) / + 29 * + 22 ) )
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT ALL + - 11 * ( - MIN( - 34 ) ) - + COUNT( ALL 71 ) * + COUNT( * )
----
-375

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL + - 11 * ( - MIN ( - 34 ) ) - + COUNT ( ALL 71 ) * + COUNT ( * )
----
-375

query I rowsort
SELECT - CASE 82 WHEN 71 / - - 1 - + 57 THEN 83 END * + 23
----
NULL

query I rowsort
SELECT ALL - + ( + + 33 ) * + + 30 - - 7 AS col0
----
-983

query I rowsort
SELECT - + 56 + + 1 + + + 40 - + + 72
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-472
SELECT - 1 DIV - 45 * 68 + - 93
----
-93

skipif mysql # not compatible
query I rowsort label-472
SELECT - 1 / - 45 * 68 + - 93
----
-93

query I rowsort
SELECT 10 * - - 96 - 58
----
902

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-474
SELECT DISTINCT - 1 * - CAST( NULL AS DECIMAL ) * 38 / + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT - 1 * - CAST ( NULL AS REAL ) * 38 / + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-475
SELECT DISTINCT + COUNT( * ), - ( - 62 ) + - COUNT( + 8 ) + + 68 * 45 AS col2
----
1
3121

skipif mysql # not compatible
query II rowsort label-475
SELECT DISTINCT + COUNT ( * ), - ( - 62 ) + - COUNT ( + 8 ) + + 68 * 45 AS col2
----
1
3121

query I rowsort
SELECT - 37 * - 64
----
2368

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

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL COUNT ( * ) / 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT + 54 + NULLIF ( - COUNT( * ), + MAX( + - 90 ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-478
SELECT + 54 + NULLIF ( - COUNT ( * ), + MAX ( + - 90 ) ) AS col1
----
53

query I rowsort
SELECT + 7 + ( - 20 ) col2
----
-13

query I rowsort
SELECT + 83 * ( + 97 ) * + 10 * 66 AS col1
----
5313660

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL 89 + 87 * + CASE 52 WHEN + 38 + + - 96 + COUNT( * ) + + + 82 * 70 * + AVG ( 8 ) + 39 * + 8 + - ( + COUNT( ALL 42 ) ) / + 77 THEN 96 + 27 + 20 / + - 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL 89 + 87 * + CASE 52 WHEN + 38 + + - 96 + COUNT ( * ) + + + 82 * 70 * + AVG ( 8 ) + 39 * + 8 + - ( + COUNT ( ALL 42 ) ) / + 77 THEN 96 + 27 + 20 / + - 42 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT + MIN( DISTINCT + + 16 ) + - 12 + + MIN( DISTINCT - 84 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-482
SELECT + MIN ( DISTINCT + + 16 ) + - 12 + + MIN ( DISTINCT - 84 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT - MAX( DISTINCT 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-483
SELECT - MAX ( DISTINCT 32 )
----
-32

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

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

query II rowsort
SELECT ALL 82 AS col0, 88
----
82
88

query I rowsort
SELECT + 17 * - 73 * 85 * 37 AS col2
----
-3902945

query I rowsort
SELECT + - 4 - 14 col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-488
SELECT + + 29 - + + MAX( ALL 37 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-488
SELECT + + 29 - + + MAX ( ALL 37 ) * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 23 * + 17 AS col1
----
-391

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT ALL + COUNT( * ) * 67 + NULLIF ( - - 60, 57 + - 41 ) AS col2
----
127

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL + COUNT ( * ) * 67 + NULLIF ( - - 60, 57 + - 41 ) AS col2
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-491
SELECT - - 42 AS col2, SUM( ALL - + 77 ) AS col2
----
42
-77

skipif mysql # not compatible
query II rowsort label-491
SELECT - - 42 AS col2, SUM ( ALL - + 77 ) AS col2
----
42
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-492
SELECT DISTINCT + 74 - + 66 DIV MAX( ( - ( ( 47 ) ) ) ) + + - 89 + - - 63
----
49

skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT + 74 - + 66 / MAX ( ( - ( ( 47 ) ) ) ) + + - 89 + - - 63
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-493
SELECT DISTINCT + 16 - + 54 + 7 + + + NULLIF ( - - 89, + 78 ) DIV - CAST( - - COUNT( * ) AS SIGNED )
----
-120

skipif mysql # not compatible
query I rowsort label-493
SELECT DISTINCT + 16 - + 54 + 7 + + + NULLIF ( - - 89, + 78 ) / - CAST ( - - COUNT ( * ) AS INTEGER )
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-494
SELECT DISTINCT - + 24 - 73 + - + CAST( 75 AS SIGNED )
----
-172

skipif mysql # not compatible
query I rowsort label-494
SELECT DISTINCT - + 24 - 73 + - + CAST ( 75 AS INTEGER )
----
-172

query I rowsort
SELECT + 38 * + 2 AS col2
----
76

query I rowsort
SELECT - - 97 * + 53 * - - 22 + 76
----
113178

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

query II rowsort
SELECT DISTINCT + 70 AS col0, - 12
----
70
-12

query I rowsort
SELECT - ( - - 50 ) AS col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-500
SELECT 5 / AVG ( DISTINCT + 76 ) / CAST( NULL AS SIGNED ) + - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-500
SELECT 5 / AVG ( DISTINCT + 76 ) / CAST ( NULL AS INTEGER ) + - 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-501
SELECT DISTINCT 32 DIV - + 85 * + 82 - + ( - - ( + + 27 ) ) AS col0, - 35 + COUNT( * ) * - - 78 + - + COUNT( * ) AS col0
----
-27
42

skipif mysql # not compatible
query II rowsort label-501
SELECT DISTINCT 32 / - + 85 * + 82 - + ( - - ( + + 27 ) ) AS col0, - 35 + COUNT ( * ) * - - 78 + - + COUNT ( * ) AS col0
----
-27
42

query I rowsort
SELECT - 44 + + 58
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT - + SUM( ALL 97 ) * - 51 * 7
----
34629

skipif mysql # not compatible
query I rowsort label-503
SELECT - + SUM ( ALL 97 ) * - 51 * 7
----
34629

onlyif mysql # aggregate syntax: 
query II rowsort label-504
SELECT ( + 21 ), 21 * - 7 * COUNT( * ) col0
----
21
-147

skipif mysql # not compatible
query II rowsort label-504
SELECT ( + 21 ), 21 * - 7 * COUNT ( * ) col0
----
21
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT DISTINCT - 60 * + MIN( ALL + - ( + 5 ) )
----
300

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT - 60 * + MIN ( ALL + - ( + 5 ) )
----
300

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

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

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

query I rowsort
SELECT ALL - 92 * - 77 + + ( - 62 ) AS col0
----
7022

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT 79 * - + COUNT( * ) - - 22
----
-57

skipif mysql # not compatible
query I rowsort label-509
SELECT 79 * - + COUNT ( * ) - - 22
----
-57

query II rowsort
SELECT - 95 + - + 12 AS col0, 89 AS col1
----
-107
89

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

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

query I rowsort
SELECT NULLIF ( - - 28, + ( - 48 ) )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-513
SELECT CASE + 52 WHEN 33 THEN NULL WHEN - 88 THEN NULL WHEN 90 + 91 + - 77 THEN NULL ELSE + 66 * + 87 * + CAST( 40 AS SIGNED ) END AS col2
----
229680

skipif mysql # not compatible
query I rowsort label-513
SELECT CASE + 52 WHEN 33 THEN NULL WHEN - 88 THEN NULL WHEN 90 + 91 + - 77 THEN NULL ELSE + 66 * + 87 * + CAST ( 40 AS INTEGER ) END AS col2
----
229680

query I rowsort
SELECT NULLIF ( + 70, + - 51 )
----
70

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

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

query I rowsort
SELECT ALL + CASE - NULLIF ( 43, + - 71 * + 28 ) WHEN + 89 - - 82 THEN - 97 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT ALL 29 * 43 + - MAX( - 8 ) AS col1
----
1255

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL 29 * 43 + - MAX ( - 8 ) AS col1
----
1255

query I rowsort
SELECT 16 * - 19 * 33 - - 85 AS col0
----
-9947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-519
SELECT DISTINCT CAST( - + COALESCE ( + ( 78 ), - - 32 * + + 31 ) AS SIGNED ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT CAST ( - + COALESCE ( + ( 78 ), - - 32 * + + 31 ) AS INTEGER ) AS col2
----
-78

query I rowsort
SELECT - 29 * + - 19 AS col1
----
551

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT ALL + COUNT( * ) * + 28 + + + 71
----
99

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL + COUNT ( * ) * + 28 + + + 71
----
99

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

skipif mysql # not compatible
query I rowsort label-523
SELECT MAX ( ALL 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT - - 58 + - 83 + + CASE COUNT( * ) WHEN - + 13 THEN + 87 / 21 + 47 + + + COUNT( * ) + 51 WHEN - 56 * - 62 + COUNT( * ) THEN + + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-524
SELECT - - 58 + - 83 + + CASE COUNT ( * ) WHEN - + 13 THEN + 87 / 21 + 47 + + + COUNT ( * ) + 51 WHEN - 56 * - 62 + COUNT ( * ) THEN + + 72 END
----
NULL

query I rowsort
SELECT + - ( 19 ) - - - 58 * - + 68 AS col1
----
3925

query I rowsort
SELECT DISTINCT + 89 * + 46 + 45 * - + 35
----
2519

query I rowsort
SELECT + + 83 + - 47 + + - 48
----
-12

query II rowsort
SELECT + 3 - - 0 AS col1, ( - + 32 ) AS col0
----
3
-32

query I rowsort
SELECT ALL 87 - - 68
----
155

query I rowsort
SELECT - 70 + - 35 AS col2
----
-105

query I rowsort
SELECT ALL - 12 * 32
----
-384

query II rowsort
SELECT ALL COALESCE ( + 12, + ( 81 ) ), + 59 + - 59 AS col1
----
12
0

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT ALL - MIN( DISTINCT 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL - MIN ( DISTINCT 23 )
----
-23

query I rowsort
SELECT - ( 76 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-535
SELECT 67 + - + COUNT( * ) AS col2, 61
----
66
61

skipif mysql # not compatible
query II rowsort label-535
SELECT 67 + - + COUNT ( * ) AS col2, 61
----
66
61

query I rowsort
SELECT + 36 * - - 13 - - ( 83 ) * + - ( 7 ) AS col0
----
-113

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT DISTINCT - COUNT( * ) * - MIN( DISTINCT - ( - 68 ) ) col1
----
68

skipif mysql # not compatible
query I rowsort label-540
SELECT DISTINCT - COUNT ( * ) * - MIN ( DISTINCT - ( - 68 ) ) col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT 6 * + MAX( DISTINCT - 28 ) col0
----
-168

skipif mysql # not compatible
query I rowsort label-541
SELECT 6 * + MAX ( DISTINCT - 28 ) col0
----
-168

query I rowsort
SELECT ALL + + 17 * - 1 + 42 * 60 * 95 * 35 * - 93 AS col2
----
-779247017

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT 46 * - 2 + + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-543
SELECT 46 * - 2 + + COUNT ( * )
----
-91

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-545
SELECT - 76 DIV - 61 + - 70 col2, - CAST( + 41 AS SIGNED ) DIV 18 + - 58 + + COALESCE ( 74, COUNT( * ) ) AS col1
----
-69
14

skipif mysql # not compatible
query II rowsort label-545
SELECT - 76 / - 61 + - 70 col2, - CAST ( + 41 AS INTEGER ) / 18 + - 58 + + COALESCE ( 74, COUNT ( * ) ) AS col1
----
-69
14

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT ( MAX( - - 59 ) ) + 41
----
100

skipif mysql # not compatible
query I rowsort label-546
SELECT ( MAX ( - - 59 ) ) + 41
----
100

query I rowsort
SELECT 29 * 11
----
319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-548
SELECT ALL COUNT( * ) + - 42 / - - CAST( NULL AS SIGNED ) / - 64 + - COALESCE ( - COUNT( * ), + COUNT( * ) + + + 65, - 43 * 28 ), + 57 col1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-548
SELECT ALL COUNT ( * ) + - 42 / - - CAST ( NULL AS INTEGER ) / - 64 + - COALESCE ( - COUNT ( * ), + COUNT ( * ) + + + 65, - 43 * 28 ), + 57 col1
----
NULL
57

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

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

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

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

query I rowsort
SELECT 83 * 67 * - + 81 + + 1 col0
----
-450440

query I rowsort
SELECT 45 - 37
----
8

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

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

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

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

query I rowsort
SELECT DISTINCT 36 + - 71
----
-35

query I rowsort
SELECT DISTINCT + 38 + - 55
----
-17

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

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL - 84 + - COUNT ( * ) AS col2
----
-85

query I rowsort
SELECT 35 + - ( + 69 )
----
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT ALL - MAX( ALL - 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL - MAX ( ALL - 79 ) AS col0
----
79

query I rowsort
SELECT ALL + 12 * - + 27
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT DISTINCT - SUM( 32 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT - SUM ( 32 ) AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-563
SELECT 35 * + MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

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

query I rowsort
SELECT ALL + 12 * 61 AS col2
----
732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-565
SELECT 80 + CAST( NULL AS SIGNED ) + - 78 * - + 17 / + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-565
SELECT 80 + CAST ( NULL AS INTEGER ) + - 78 * - + 17 / + 96
----
NULL

query II rowsort
SELECT DISTINCT ( + + COALESCE ( + ( + + 58 ), + 80 ) ) AS col0, 22 AS col1
----
58
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-567
SELECT DISTINCT 6 col0, + 63 + + CAST( 91 AS SIGNED )
----
6
154

skipif mysql # not compatible
query II rowsort label-567
SELECT DISTINCT 6 col0, + 63 + + CAST ( 91 AS INTEGER )
----
6
154

query I rowsort
SELECT 2 + + 87
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-569
SELECT - NULLIF ( NULLIF ( + COUNT( * ), + 33 ), - 20 ) AS col0, + 11 + + 25 + + CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-569
SELECT - NULLIF ( NULLIF ( + COUNT ( * ), + 33 ), - 20 ) AS col0, + 11 + + 25 + + CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT 51 - - 19
----
70

query I rowsort
SELECT 82 * 61 * 59 + 47 * + + 7 * - 82 * 21 AS col0
----
-271420

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-573
SELECT - 43 * + + COUNT( * ) + - + CAST( NULL AS SIGNED ) + - - 27 + + - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-573
SELECT - 43 * + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + - - 27 + + - 38 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 83 * - - 13
----
1079

query II rowsort
SELECT - + 74 AS col1, 17 * - - 90 AS col2
----
-74
1530

query II rowsort
SELECT DISTINCT - 48, + 68 * + 49 col0
----
-48
3332

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT ALL + + 98 * + CASE MAX( 3 ) WHEN + - 17 THEN ( - 42 ) * + 80 + + 61 + 64 - + 18 + + 34 WHEN - 9 THEN + + MIN( - - 95 ) / - - COALESCE ( + SUM( + 64 ), + 83, + 2 ) WHEN + 18 THEN + SUM( + ( - 55 ) ) * - 99 * - - 93 + + - ( + 73 ) + - 82 / - - 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL + + 98 * + CASE MAX ( 3 ) WHEN + - 17 THEN ( - 42 ) * + 80 + + 61 + 64 - + 18 + + 34 WHEN - 9 THEN + + MIN ( - - 95 ) / - - COALESCE ( + SUM ( + 64 ), + 83, + 2 ) WHEN + 18 THEN + SUM ( + ( - 55 ) ) * - 99 * - - 93 + + - ( + 73 ) + - 82 / - - 90 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT DISTINCT - + COUNT( * ) + - COUNT( * ) + + 73
----
71

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT - + COUNT ( * ) + - COUNT ( * ) + + 73
----
71

query I rowsort
SELECT + 84 - - 91
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT DISTINCT - 1 + + ( 67 ) * + 66 + + COUNT( * ) AS col1
----
4422

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT - 1 + + ( 67 ) * + 66 + + COUNT ( * ) AS col1
----
4422

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-581
SELECT - 36 AS col0, + 16 + - CAST( NULL AS SIGNED ) + - - 32 col2
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-581
SELECT - 36 AS col0, + 16 + - CAST ( NULL AS INTEGER ) + - - 32 col2
----
-36
NULL

query II rowsort
SELECT 44 AS col0, 82 AS col1
----
44
82

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

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

query II rowsort
SELECT DISTINCT - 71, - ( - 39 ) + ( + - 37 ) col2
----
-71
2

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT MIN( + 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-585
SELECT MIN ( + 84 ) AS col1
----
84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-587
SELECT 55 + - 75 * + - CAST( + - 30 AS SIGNED ) AS col1
----
-2195

skipif mysql # not compatible
query I rowsort label-587
SELECT 55 + - 75 * + - CAST ( + - 30 AS INTEGER ) AS col1
----
-2195

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT ALL + 38 * NULLIF ( 99, 23 + - COUNT( * ) + - - ( + 27 ) ) + - ( - 54 ) + + SUM( + - 0 ) * - 72 * - - 37 + 24
----
3840

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL + 38 * NULLIF ( 99, 23 + - COUNT ( * ) + - - ( + 27 ) ) + - ( - 54 ) + + SUM ( + - 0 ) * - 72 * - - 37 + 24
----
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT 26 * + - COALESCE ( - 65, + 7 * - COALESCE ( 36, - + 10, 19 * + 0 * 47 * - MAX( DISTINCT - - 31 ) * - ( + COUNT( ALL 43 ) ) + + 87 ) + + 42 ) * 7 + + COUNT( * ) * 47 AS col1
----
11877

skipif mysql # not compatible
query I rowsort label-589
SELECT 26 * + - COALESCE ( - 65, + 7 * - COALESCE ( 36, - + 10, 19 * + 0 * 47 * - MAX ( DISTINCT - - 31 ) * - ( + COUNT ( ALL 43 ) ) + + 87 ) + + 42 ) * 7 + + COUNT ( * ) * 47 AS col1
----
11877

query II rowsort
SELECT DISTINCT - 61 AS col1, 4 - 41
----
-61
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT ALL COUNT( ALL - ( - + NULLIF ( ( - 88 ), + 97 / - 28 ) ) ) * + COUNT( * ) - - - 51 + - 93
----
-143

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL COUNT ( ALL - ( - + NULLIF ( ( - 88 ), + 97 / - 28 ) ) ) * + COUNT ( * ) - - - 51 + - 93
----
-143

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

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

query II rowsort
SELECT ALL - 71 AS col0, 87 - - 22
----
-71
109

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

skipif mysql # not compatible
query II rowsort label-594
SELECT DISTINCT - COUNT ( * ) AS col0, + 40 AS col0
----
-1
40

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT DISTINCT + COUNT( * ) * + ( - + 10 ) + + NULLIF ( + + 54, + 2 )
----
44

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT + COUNT ( * ) * + ( - + 10 ) + + NULLIF ( + + 54, + 2 )
----
44

query I rowsort
SELECT DISTINCT 65 * 60
----
3900

onlyif mysql # aggregate syntax: 
query II rowsort label-597
SELECT ALL - 11 * - ( + - MIN( DISTINCT + 31 ) ) - + MAX( + 81 ) AS col0, 13 AS col1
----
-422
13

skipif mysql # not compatible
query II rowsort label-597
SELECT ALL - 11 * - ( + - MIN ( DISTINCT + 31 ) ) - + MAX ( + 81 ) AS col0, 13 AS col1
----
-422
13

onlyif mysql # aggregate syntax: 
query II rowsort label-598
SELECT 28 * + - 34 * COUNT( * ) * 47 AS col2, + 27
----
-44744
27

skipif mysql # not compatible
query II rowsort label-598
SELECT 28 * + - 34 * COUNT ( * ) * 47 AS col2, + 27
----
-44744
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-599
SELECT 53 * - COUNT( * ) DIV + 90 - - 50 - + 86 + 90
----
54

skipif mysql # not compatible
query I rowsort label-599
SELECT 53 * - COUNT ( * ) / + 90 - - 50 - + 86 + 90
----
54

query III rowsort
SELECT ALL - 6, - 39 AS col2, 11 AS col1
----
-6
-39
11

query II rowsort
SELECT 80 * + 74 AS col1, - 76
----
5920
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT MAX( DISTINCT 98 )
----
98

skipif mysql # not compatible
query I rowsort label-602
SELECT MAX ( DISTINCT 98 )
----
98

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

onlyif mysql # aggregate syntax: 
query II rowsort label-604
SELECT ALL + 38 AS col1, + 79 - - SUM( 52 )
----
38
131

skipif mysql # not compatible
query II rowsort label-604
SELECT ALL + 38 AS col1, + 79 - - SUM ( 52 )
----
38
131

query I rowsort
SELECT - - 75 - - + 49
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT ALL + COUNT( * ) * + 5 + + 20 + - 98 - - 21 + + + 24 + + 23 - - - 74 * - MIN( - + 87 ) AS col0
----
-6443

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL + COUNT ( * ) * + 5 + + 20 + - 98 - - 21 + + + 24 + + 23 - - - 74 * - MIN ( - + 87 ) AS col0
----
-6443

query I rowsort
SELECT ALL + - 50 * - 44 + + 55
----
2255

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT - ( + MIN( ALL 57 ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-609
SELECT - ( + MIN ( ALL 57 ) ) AS col1
----
-57

query I rowsort
SELECT - + 34 - + 45
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-611
SELECT ALL + SUM( DISTINCT 20 ), + COALESCE ( - 72, - 94 - COUNT( * ), - - 21 * - + MAX( ALL + + 82 ) + - CASE 65 WHEN + 34 THEN + 59 ELSE + COUNT( * ) END ) col2
----
20
-72

skipif mysql # not compatible
query II rowsort label-611
SELECT ALL + SUM ( DISTINCT 20 ), + COALESCE ( - 72, - 94 - COUNT ( * ), - - 21 * - + MAX ( ALL + + 82 ) + - CASE 65 WHEN + 34 THEN + 59 ELSE + COUNT ( * ) END ) col2
----
20
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT ALL - SUM( 0 ) + - + 60 - - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL - SUM ( 0 ) + - + 60 - - COUNT ( * )
----
-59

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-614
SELECT ALL - CAST( AVG ( ALL - - 26 ) AS SIGNED ) + + 55 col2, + 44
----
29
44

skipif mysql # not compatible
query II rowsort label-614
SELECT ALL - CAST ( AVG ( ALL - - 26 ) AS INTEGER ) + + 55 col2, + 44
----
29
44

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT DISTINCT - + 33 + - COUNT( * ) * 68 * + COUNT( * ) * + COUNT( * ) * - - 84 + + + 83 col2
----
-5662

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT - + 33 + - COUNT ( * ) * 68 * + COUNT ( * ) * + COUNT ( * ) * - - 84 + + + 83 col2
----
-5662

onlyif mysql # DIV for integer division: 
query I rowsort label-616
SELECT ALL + 77 + + - 96 + + + ( + 62 ) DIV + 4
----
-4

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL + 77 + + - 96 + + + ( + 62 ) / + 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT ALL - 19 + + - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL - 19 + + - COUNT ( * )
----
-20

query II rowsort
SELECT - 37 AS col2, + 11
----
-37
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-619
SELECT DISTINCT - 11 * + - COALESCE ( + + 8, + NULLIF ( - COUNT( * ), - - CAST( NULL AS SIGNED ) ) DIV COUNT( + 95 ) * COUNT( * ) ) col0
----
88

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT - 11 * + - COALESCE ( + + 8, + NULLIF ( - COUNT ( * ), - - CAST ( NULL AS INTEGER ) ) / COUNT ( + 95 ) * COUNT ( * ) ) col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-620
SELECT ALL ( SUM( 45 ) ) AS col1, - 37
----
45
-37

skipif mysql # not compatible
query II rowsort label-620
SELECT ALL ( SUM ( 45 ) ) AS col1, - 37
----
45
-37

query I rowsort
SELECT - 96 + + 73
----
-23

query I rowsort
SELECT + 60 * + ( - - 61 ) AS col2
----
3660

query I rowsort
SELECT - 72 + - - 99 + + 14 * + 85 * - - 85
----
101177

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT ALL CASE + - 15 WHEN COUNT( * ) THEN + 88 ELSE - 50 END AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL CASE + - 15 WHEN COUNT ( * ) THEN + 88 ELSE - 50 END AS col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-625
SELECT + MAX( + 65 ) col2, 21
----
65
21

skipif mysql # not compatible
query II rowsort label-625
SELECT + MAX ( + 65 ) col2, 21
----
65
21

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT ALL - COUNT( * ) * + 71 - - + COALESCE ( 99, COUNT( * ) )
----
28

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL - COUNT ( * ) * + 71 - - + COALESCE ( 99, COUNT ( * ) )
----
28

query I rowsort
SELECT ALL - 67 * 85 - - - 80 * + 23 AS col0
----
-7535

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-628
SELECT - 30 + - 92 - 41 * + - CAST( - COUNT( * ) AS SIGNED ) * - - 70
----
-2992

skipif mysql # not compatible
query I rowsort label-628
SELECT - 30 + - 92 - 41 * + - CAST ( - COUNT ( * ) AS INTEGER ) * - - 70
----
-2992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-629
SELECT + COALESCE ( - COUNT( * ), - + 92, + 8 * 99 * SUM( + + 45 ) + + 83 + + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + + 46 ) - - 89 + ( + CAST( NULL AS SIGNED ) ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-629
SELECT + COALESCE ( - COUNT ( * ), - + 92, + 8 * 99 * SUM ( + + 45 ) + + 83 + + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 46 ) - - 89 + ( + CAST ( NULL AS INTEGER ) ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 70 * - 52, 22 + - + 18 AS col2
----
-3640
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-631
SELECT + 88 + + + CAST( NULL AS SIGNED ) AS col2, 81 * - 13 * - + 65 AS col1
----
NULL
68445

skipif mysql # not compatible
query II rowsort label-631
SELECT + 88 + + + CAST ( NULL AS INTEGER ) AS col2, 81 * - 13 * - + 65 AS col1
----
NULL
68445

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

skipif mysql # not compatible
query I rowsort label-632
SELECT DISTINCT + CAST ( - - ( - 54 ) AS INTEGER ) AS col0
----
-54

query II rowsort
SELECT + 52 + + 97 AS col0, + 57
----
149
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-634
SELECT DISTINCT 64 * + COUNT( * ) AS col1, COUNT( ALL 35 ) DIV ( + 72 )
----
64
0

skipif mysql # not compatible
query II rowsort label-634
SELECT DISTINCT 64 * + COUNT ( * ) AS col1, COUNT ( ALL 35 ) / ( + 72 )
----
64
0

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

skipif mysql # not compatible
query I rowsort label-635
SELECT - MIN ( + + 67 )
----
-67

query I rowsort
SELECT ALL 6 * + 8 * + - 76
----
-3648

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT + COUNT( ALL - CASE + 84 WHEN + 87 THEN + 89 * + - 58 + 58 + + 17 WHEN - 85 THEN - ( - + 14 ) END )
----
0

skipif mysql # not compatible
query I rowsort label-637
SELECT + COUNT ( ALL - CASE + 84 WHEN + 87 THEN + 89 * + - 58 + 58 + + 17 WHEN - 85 THEN - ( - + 14 ) END )
----
0

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

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

query I rowsort
SELECT + - 69 * 90 AS col1
----
-6210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-640
SELECT + COALESCE ( CAST( NULL AS SIGNED ), - 8 ) / + + 4 + - 17 * - CASE + 41 WHEN - + CAST( 84 AS SIGNED ) THEN + CASE - NULLIF ( + COUNT( * ), - + 15 ) WHEN + NULLIF ( + - ( - 4 ), - 30 ) * + 59 * + 63 + + 31 * COALESCE ( - COALESCE ( - COALESCE ( + - 86, COUNT( * ) ), + - ( - - 25 ), - 83 ), NULLIF ( - 82, + 39 ) + 34 + - 57 * - 38 * + 20 ) THEN 74 * 73 + AVG ( + 81 ) WHEN + 41 THEN + 72 * + 19 + + 42 WHEN - COUNT( * ) THEN NULL ELSE NULL END * 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-640
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), - 8 ) / + + 4 + - 17 * - CASE + 41 WHEN - + CAST ( 84 AS INTEGER ) THEN + CASE - NULLIF ( + COUNT ( * ), - + 15 ) WHEN + NULLIF ( + - ( - 4 ), - 30 ) * + 59 * + 63 + + 31 * COALESCE ( - COALESCE ( - COALESCE ( + - 86, COUNT ( * ) ), + - ( - - 25 ), - 83 ), NULLIF ( - 82, + 39 ) + 34 + - 57 * - 38 * + 20 ) THEN 74 * 73 + AVG ( + 81 ) WHEN + 41 THEN + 72 * + 19 + + 42 WHEN - COUNT ( * ) THEN NULL ELSE NULL END * 72 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-641
SELECT DISTINCT + COALESCE ( - 41, - + 46 * - 92 ) DIV - 13 + + 64 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT + COALESCE ( - 41, - + 46 * - 92 ) / - 13 + + 64 AS col1
----
67

query I rowsort
SELECT ALL + 50 * - + 35 + + 3 AS col1
----
-1747

query I rowsort
SELECT DISTINCT - COALESCE ( - 32, + 3, ( 73 ) ) col0
----
32

query I rowsort
SELECT ALL + + 8 * - - 20 + 59 - - 35 + + 7 AS col2
----
261

query I rowsort
SELECT DISTINCT - 81 + - - 84
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT - + 12 + + CASE + 74 WHEN + ( - MIN( - 3 ) ) THEN + 98 ELSE NULL END + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-646
SELECT - + 12 + + CASE + 74 WHEN + ( - MIN ( - 3 ) ) THEN + 98 ELSE NULL END + 1 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT - MAX( 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-648
SELECT - MAX ( 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT ALL - + COUNT( * ) * + - ( - - NULLIF ( - + 72, + - 43 * + - 36 + 55 ) ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL - + COUNT ( * ) * + - ( - - NULLIF ( - + 72, + - 43 * + - 36 + 55 ) ) AS col2
----
-72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-650
SELECT CAST( + 52 AS SIGNED ) AS col0, - 97 + + - 13 DIV 62
----
52
-97

skipif mysql # not compatible
query II rowsort label-650
SELECT CAST ( + 52 AS INTEGER ) AS col0, - 97 + + - 13 / 62
----
52
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-651
SELECT ALL + CAST( 68 AS SIGNED ) + - 85 + - 91
----
-108

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL + CAST ( 68 AS INTEGER ) + - 85 + - 91
----
-108

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

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

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

query I rowsort
SELECT DISTINCT + 70 - - + 30 AS col0
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT DISTINCT - 70 DIV + COALESCE ( + 73, - 44 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT - 70 / + COALESCE ( + 73, - 44 ) AS col1
----
0

query I rowsort
SELECT - 1 - + COALESCE ( + 89, + 29 + 61 ) + + 85
----
-5

query I rowsort
SELECT ALL ( - + COALESCE ( + 50, - 28 ) ) AS col0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-658
SELECT - 30 DIV + 58 col1
----
0

skipif mysql # not compatible
query I rowsort label-658
SELECT - 30 / + 58 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-659
SELECT ALL CAST( NULL AS SIGNED ), - MAX( + 43 ) AS col0
----
NULL
-43

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-660
SELECT ALL + 62 * - - CASE 25 WHEN - 34 + 67 + - + 41 * - - 84 THEN + CAST( + 28 AS DECIMAL ) * + - 25 WHEN - - 90 * - 81 * - 95 THEN + 31 END * + 87 * - 12 * NULLIF ( + MIN( ALL ( - - 4 ) ), + - 10 * + NULLIF ( + SUM( - + 11 ), + - 37 / + 65 ) + + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL + 62 * - - CASE 25 WHEN - 34 + 67 + - + 41 * - - 84 THEN + CAST ( + 28 AS REAL ) * + - 25 WHEN - - 90 * - 81 * - 95 THEN + 31 END * + 87 * - 12 * NULLIF ( + MIN ( ALL ( - - 4 ) ), + - 10 * + NULLIF ( + SUM ( - + 11 ), + - 37 / + 65 ) + + 72 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-661
SELECT + CAST( NULL AS SIGNED ) / CAST( 76 AS SIGNED ) + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-661
SELECT + CAST ( NULL AS INTEGER ) / CAST ( 76 AS INTEGER ) + 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-662
SELECT ALL COALESCE ( 43, - 61 * + 12 ) DIV 16 * COUNT( * ) DIV + + NULLIF ( - + 29, CASE + 79 WHEN + 21 THEN 33 - + 78 ELSE NULL END - - - 78 - - + COUNT( * ) ) - SUM( DISTINCT + - 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL COALESCE ( 43, - 61 * + 12 ) / 16 * COUNT ( * ) / + + NULLIF ( - + 29, CASE + 79 WHEN + 21 THEN 33 - + 78 ELSE NULL END - - - 78 - - + COUNT ( * ) ) - SUM ( DISTINCT + - 46 ) AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-663
SELECT DISTINCT + 80 DIV ( + 79 )
----
1

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT + 80 / ( + 79 )
----
1

query I rowsort
SELECT ALL - 90 * + 96
----
-8640

onlyif mysql # DIV for integer division: 
query II rowsort label-665
SELECT 63 DIV - ( + 50 ) AS col0, - 88
----
-1
-88

skipif mysql # not compatible
query II rowsort label-665
SELECT 63 / - ( + 50 ) AS col0, - 88
----
-1
-88

query I rowsort
SELECT DISTINCT - 8 * + + 50
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT ALL - 90 * - COALESCE ( - 88, - ( + + COUNT( ALL 53 ) ) + + 69 + + 76 )
----
-7920

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL - 90 * - COALESCE ( - 88, - ( + + COUNT ( ALL 53 ) ) + + 69 + + 76 )
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT 70 * - 37 * - 21 - - - COUNT( * ) * + 10
----
54380

skipif mysql # not compatible
query I rowsort label-668
SELECT 70 * - 37 * - 21 - - - COUNT ( * ) * + 10
----
54380

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

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

query I rowsort
SELECT ALL + 4 + + 0 col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-671
SELECT + 87 + ( - 12 ) / CASE AVG ( DISTINCT 70 ) WHEN 20 * 31 THEN + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-671
SELECT + 87 + ( - 12 ) / CASE AVG ( DISTINCT 70 ) WHEN 20 * 31 THEN + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-672
SELECT + - 47 col0, - NULLIF ( - 29, COUNT( * ) + 47 )
----
-47
29

skipif mysql # not compatible
query II rowsort label-672
SELECT + - 47 col0, - NULLIF ( - 29, COUNT ( * ) + 47 )
----
-47
29

query II rowsort
SELECT ALL - - 26 AS col1, + 31
----
26
31

query I rowsort
SELECT ALL 40 + 77 + - + 37 + - 18
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-675
SELECT DISTINCT - + COUNT( * ) AS col2, 16 + + 80 AS col1
----
-1
96

skipif mysql # not compatible
query II rowsort label-675
SELECT DISTINCT - + COUNT ( * ) AS col2, 16 + + 80 AS col1
----
-1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT ALL 67 + 90 + NULLIF ( - 80, - COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL 67 + 90 + NULLIF ( - 80, - COUNT ( * ) )
----
77

query I rowsort
SELECT ALL + 52 + 82
----
134

query I rowsort
SELECT - NULLIF ( + 89, ( 47 ) + + - 38 * 49 ) col1
----
-89

query II rowsort
SELECT - 49, - 49 col2
----
-49
-49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT ALL + 2 + - NULLIF ( 61, + SUM( DISTINCT - ( - + 89 ) ) )
----
-59

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL + 2 + - NULLIF ( 61, + SUM ( DISTINCT - ( - + 89 ) ) )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-682
SELECT - - 45 * 55 - + COUNT( * ) + - 62 DIV - MIN( 12 ) AS col0
----
2479

skipif mysql # not compatible
query I rowsort label-682
SELECT - - 45 * 55 - + COUNT ( * ) + - 62 / - MIN ( 12 ) AS col0
----
2479

query I rowsort
SELECT 95 * + 50 - - 80
----
4830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-684
SELECT CASE COUNT( * ) WHEN - 86 THEN 3 - + + 52 + + 9 WHEN - + 77 THEN + 7 * 29 WHEN 40 THEN NULL ELSE NULL END + COUNT( * ) + + NULLIF ( CAST( NULL AS SIGNED ), - CAST( - + ( MAX( DISTINCT + + 16 ) ) AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-684
SELECT CASE COUNT ( * ) WHEN - 86 THEN 3 - + + 52 + + 9 WHEN - + 77 THEN + 7 * 29 WHEN 40 THEN NULL ELSE NULL END + COUNT ( * ) + + NULLIF ( CAST ( NULL AS INTEGER ), - CAST ( - + ( MAX ( DISTINCT + + 16 ) ) AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 12 * - - 37 - 22
----
-466

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

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

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

query II rowsort
SELECT ( - + ( + + 69 ) ) * - 29 AS col0, 72
----
2001
72

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT ALL + 57 DIV + 10 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL + 57 / + 10 AS col2
----
5

query I rowsort
SELECT DISTINCT ( + 74 ) - + 9 AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-691
SELECT CAST( NULL AS SIGNED ) + - - 75 + - COUNT( + 7 ) AS col1, + 34
----
NULL
34

skipif mysql # not compatible
query II rowsort label-691
SELECT CAST ( NULL AS INTEGER ) + - - 75 + - COUNT ( + 7 ) AS col1, + 34
----
NULL
34

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

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

query I rowsort
SELECT 64 * - + 43 * - 40 AS col0
----
110080

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-694
SELECT ALL COALESCE ( 65, + + 10 ) * 17 * - CAST( CAST( + + 99 AS DECIMAL ) AS SIGNED ) AS col2
----
-109395

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL COALESCE ( 65, + + 10 ) * 17 * - CAST ( CAST ( + + 99 AS REAL ) AS INTEGER ) AS col2
----
-109395

query I rowsort
SELECT NULLIF ( - 84, 97 ) + - - 96 * - 66 AS col2
----
-6420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-696
SELECT 44 + - MAX( ALL - - 86 ) DIV 46 * + + 18 * 11
----
-154

skipif mysql # not compatible
query I rowsort label-696
SELECT 44 + - MAX ( ALL - - 86 ) / 46 * + + 18 * 11
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT 83 + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-697
SELECT 83 + COUNT ( * ) AS col1
----
84

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

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL + 67 * ( COUNT ( * ) ) AS col0
----
67

query I rowsort
SELECT ( - 57 ) + - 30 * - 40 col0
----
1143

query I rowsort
SELECT ALL ( 18 ) * 42 AS col1
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT 60 + + - 71 + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-701
SELECT 60 + + - 71 + COUNT ( * )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-702
SELECT DISTINCT 0 * - - 84 * + ( - 13 ) * + 24 * + 49 + - - CAST( NULL AS SIGNED ) AS col2, + 33
----
NULL
33

skipif mysql # not compatible
query II rowsort label-702
SELECT DISTINCT 0 * - - 84 * + ( - 13 ) * + 24 * + 49 + - - CAST ( NULL AS INTEGER ) AS col2, + 33
----
NULL
33

query II rowsort
SELECT ALL - ( CASE + 98 WHEN 42 THEN 13 WHEN + + 85 + + + 11 THEN NULL END ) AS col2, 52
----
NULL
52

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT ALL + 22 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL + 22 / 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT COUNT( DISTINCT 26 ) + 48 * + + 8 col0
----
385

skipif mysql # not compatible
query I rowsort label-705
SELECT COUNT ( DISTINCT 26 ) + 48 * + + 8 col0
----
385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-706
SELECT + 35 * + ( - + 58 ) + - 65 - - COUNT( ALL 2 ) DIV + 6 + - 45 + + ( - 74 )
----
-2214

skipif mysql # not compatible
query I rowsort label-706
SELECT + 35 * + ( - + 58 ) + - 65 - - COUNT ( ALL 2 ) / + 6 + - 45 + + ( - 74 )
----
-2214

query I rowsort
SELECT - 27 + + + 42
----
15

query I rowsort
SELECT DISTINCT + - 93 + + 2 + 87 * - 42 * + + 64
----
-233947

onlyif mysql # DIV for integer division: 
query I rowsort label-709
SELECT ALL - + 31 + 22 + - + 10 * - 48 + - 76 DIV - 23
----
474

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL - + 31 + 22 + - + 10 * - 48 + - 76 / - 23
----
474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-710
SELECT ALL + COUNT( * ) + + + COALESCE ( 76, - ( 94 ) DIV + 77 + + COUNT( DISTINCT 20 ) )
----
77

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL + COUNT ( * ) + + + COALESCE ( 76, - ( 94 ) / + 77 + + COUNT ( DISTINCT 20 ) )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-711
SELECT ALL + + 56 + - 33 DIV - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL + + 56 + - 33 / - COUNT ( * )
----
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT 86 * - + 91 * - + COALESCE ( 68, + - 86 + + 5, COUNT( * ) + - 48 * 46 ) + - + 64
----
532104

skipif mysql # not compatible
query I rowsort label-713
SELECT 86 * - + 91 * - + COALESCE ( 68, + - 86 + + 5, COUNT ( * ) + - 48 * 46 ) + - + 64
----
532104

query I rowsort
SELECT - - 12 * - 88 + - 96 AS col0
----
-1152

query I rowsort
SELECT - 74 * ( + - 14 ) + + 5 AS col0
----
1041

query I rowsort
SELECT ALL - 31 + + + ( - ( - - 9 ) ) * 12 AS col1
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT DISTINCT + + 14 + - - MIN( ALL - 11 )
----
3

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT + + 14 + - - MIN ( ALL - 11 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT ALL - COUNT( ALL - 98 ) * - 74 * - 95 * - NULLIF ( - 20, + SUM( + 87 ) ) * - - 80 + + + MAX( 58 ) + - 51 * COUNT( * ) * + CASE - 38 WHEN - 51 / + 91 * + 61 - - 85 + - 90 THEN NULL ELSE COUNT( - 69 ) + 3 + - - 27 * + + 97 END + - 2 + + COUNT( * )
----
-11381716

skipif mysql # not compatible
query I rowsort label-718
SELECT ALL - COUNT ( ALL - 98 ) * - 74 * - 95 * - NULLIF ( - 20, + SUM ( + 87 ) ) * - - 80 + + + MAX ( 58 ) + - 51 * COUNT ( * ) * + CASE - 38 WHEN - 51 / + 91 * + 61 - - 85 + - 90 THEN NULL ELSE COUNT ( - 69 ) + 3 + - - 27 * + + 97 END + - 2 + + COUNT ( * )
----
-11381716

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT NULLIF ( + 58, + + SUM( DISTINCT - + 18 ) - - ( + + 19 ) ) * + - 65 AS col2
----
-3770

skipif mysql # not compatible
query I rowsort label-719
SELECT NULLIF ( + 58, + + SUM ( DISTINCT - + 18 ) - - ( + + 19 ) ) * + - 65 AS col2
----
-3770

query I rowsort
SELECT NULLIF ( + 13, + 69 ) + + 16 AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-721
SELECT DISTINCT CAST( 65 AS SIGNED ) * + - 15 col0
----
-975

skipif mysql # not compatible
query I rowsort label-721
SELECT DISTINCT CAST ( 65 AS INTEGER ) * + - 15 col0
----
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT ALL 1 * - + NULLIF ( 70, - CASE - + 8 WHEN + 48 THEN NULL WHEN + + 86 THEN NULL ELSE 78 * COUNT( * ) END ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL 1 * - + NULLIF ( 70, - CASE - + 8 WHEN + 48 THEN NULL WHEN + + 86 THEN NULL ELSE 78 * COUNT ( * ) END ) AS col1
----
-70

query I rowsort
SELECT 38 - 98 * - 24 AS col0
----
2390

onlyif mysql # DIV for integer division: 
query I rowsort label-724
SELECT + 59 DIV + + 17 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-724
SELECT + 59 / + + 17 AS col2
----
3

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

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

query II rowsort
SELECT DISTINCT 64, 39 * + 44 AS col2
----
64
1716

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT + MAX( DISTINCT + - 33 ) * - 84
----
2772

skipif mysql # not compatible
query I rowsort label-728
SELECT + MAX ( DISTINCT + - 33 ) * - 84
----
2772

query I rowsort
SELECT + ( - - 82 ) * 29 AS col1
----
2378

query I rowsort
SELECT ALL 11 + - 12 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT - SUM( 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-731
SELECT - SUM ( 58 )
----
-58

query I rowsort
SELECT - - 51 * 1 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT ALL + - COUNT( * ) * 39 + + 60
----
21

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL + - COUNT ( * ) * 39 + + 60
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT DISTINCT + 73 * - - 73 + - - COALESCE ( - COUNT( * ), - 84, - 4 + 72 * + - 26 ) AS col2
----
5328

skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT + 73 * - - 73 + - - COALESCE ( - COUNT ( * ), - 84, - 4 + 72 * + - 26 ) AS col2
----
5328

query I rowsort
SELECT DISTINCT 49 * + 59 + + + 74
----
2965

query I rowsort
SELECT ALL - 30 * ( + 90 ) + + ( + 5 ) - - + 68 - - 76
----
-2551

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT - - ( - - 32 ) * 5 * + COUNT( * )
----
160

skipif mysql # not compatible
query I rowsort label-737
SELECT - - ( - - 32 ) * 5 * + COUNT ( * )
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-738
SELECT ALL 61 * + - 66 * - CAST( 64 AS SIGNED )
----
257664

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL 61 * + - 66 * - CAST ( 64 AS INTEGER )
----
257664

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-739
SELECT 46 DIV 49 + + 17 AS col1, CAST( + + ( + - 45 ) AS SIGNED ) AS col1
----
17
-45

skipif mysql # not compatible
query II rowsort label-739
SELECT 46 / 49 + + 17 AS col1, CAST ( + + ( + - 45 ) AS INTEGER ) AS col1
----
17
-45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-740
SELECT ALL + - 89 * + - 63 - ( - CAST( NULL AS SIGNED ) ) * + 43 * + ( + CAST( + - CAST( ( + 73 ) AS DECIMAL ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL + - 89 * + - 63 - ( - CAST ( NULL AS INTEGER ) ) * + 43 * + ( + CAST ( + - CAST ( ( + 73 ) AS REAL ) AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 16 * 23 + 10 + - 31
----
-389

query I rowsort
SELECT - ( 93 ) * - 91 * - 36 + - 57
----
-304725

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-744
SELECT - + 22 * - - MIN( 90 ) * 77 + + 45 + - 54 + 8 + 6 + + 4 * - + 31 * 72 * SUM( ALL + - 65 ) + 14 * CAST( + 55 AS SIGNED ), - 95 AS col0
----
428635
-95

skipif mysql # not compatible
query II rowsort label-744
SELECT - + 22 * - - MIN ( 90 ) * 77 + + 45 + - 54 + 8 + 6 + + 4 * - + 31 * 72 * SUM ( ALL + - 65 ) + 14 * CAST ( + 55 AS INTEGER ), - 95 AS col0
----
428635
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-745
SELECT ALL + + COUNT( * ) * 40 DIV 23
----
1

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL + + COUNT ( * ) * 40 / 23
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT + 40 * + COUNT( * ) - - + 78 AS col2
----
118

skipif mysql # not compatible
query I rowsort label-747
SELECT + 40 * + COUNT ( * ) - - + 78 AS col2
----
118

query I rowsort
SELECT - 35 + - 88
----
-123

query I rowsort
SELECT - 13 * - 91 col1
----
1183

query I rowsort
SELECT ALL + 93 * + 21 AS col1
----
1953

query I rowsort
SELECT ALL ( - 47 ) col0
----
-47

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

skipif mysql # not compatible
query II rowsort label-752
SELECT COUNT ( * ), 62 AS col1
----
1
62

query I rowsort
SELECT ALL 71 + - + 47 + + - 49 + - 41
----
-66

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

query I rowsort
SELECT ALL 47 + 81 - 85
----
43

query I rowsort
SELECT - 53 * - - 42 * - 57
----
126882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-757
SELECT + NULLIF ( - 60, + 52 ) + + + 24 * - 83 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-757
SELECT + NULLIF ( - 60, + 52 ) + + + 24 * - 83 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( + + 95 ) col0
----
95

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-760
SELECT + 6 DIV - - 91 * - - 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-760
SELECT + 6 / - - 91 * - - 36 AS col0
----
0

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-763
SELECT 73 col0, + 8 + - COALESCE ( + COUNT( * ), - 81 + COUNT( * ) ) - + CAST( NULL AS DECIMAL ) AS col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-763
SELECT 73 col0, + 8 + - COALESCE ( + COUNT ( * ), - 81 + COUNT ( * ) ) - + CAST ( NULL AS REAL ) AS col0
----
73
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-764
SELECT + 99 - + COUNT( * ) DIV + 49 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-764
SELECT + 99 - + COUNT ( * ) / + 49 AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-765
SELECT + 75 DIV + 28
----
2

skipif mysql # not compatible
query I rowsort label-765
SELECT + 75 / + 28
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT ALL 92 + - COUNT( ALL - - 24 ) col0
----
91

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL 92 + - COUNT ( ALL - - 24 ) col0
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT - 68 * - COUNT( * ) + - + 5 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-768
SELECT - 68 * - COUNT ( * ) + - + 5 AS col0
----
63

query I rowsort
SELECT DISTINCT 15 * 77 AS col1
----
1155

query I rowsort
SELECT + 3 + - + 8 * - 31 AS col1
----
251

query II rowsort
SELECT - 17, + 55 AS col1
----
-17
55

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT + COUNT( * ) + - SUM( - 67 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-772
SELECT + COUNT ( * ) + - SUM ( - 67 ) AS col0
----
68

query I rowsort
SELECT - + 78 + + 47 - 92 col0
----
-123

query I rowsort
SELECT ALL + CASE - 40 WHEN + 2 - + + 76 + + 80 * 53 THEN - 67 END * COALESCE ( + 15, + 94 ) AS col1
----
NULL

query I rowsort
SELECT - 92 * 40 - + + 73 + + 10
----
-3743

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT + 92 * + 58 - + + COUNT( * ) col2
----
5335

skipif mysql # not compatible
query I rowsort label-776
SELECT + 92 * + 58 - + + COUNT ( * ) col2
----
5335

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT DISTINCT + + COALESCE ( + 25, - - 68, - + 23 * 44 - 80 * + MAX( DISTINCT - - 89 ), + COUNT( * ) * + COUNT( * ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-777
SELECT DISTINCT + + COALESCE ( + 25, - - 68, - + 23 * 44 - 80 * + MAX ( DISTINCT - - 89 ), + COUNT ( * ) * + COUNT ( * ) ) AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-778
SELECT + - COUNT( DISTINCT - 24 ) DIV - - 57 - 67 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-778
SELECT + - COUNT ( DISTINCT - 24 ) / - - 57 - 67 AS col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-779
SELECT - - 52 * - + COUNT( * ) / - + 67 * - 42 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-779
SELECT - - 52 * - + COUNT ( * ) / - + 67 * - 42 * + - CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT NULLIF ( + 52, - COALESCE ( - COUNT( * ), - - COALESCE ( 45, + + 83 ), - - 5 + - COUNT( * ) ) )
----
52

skipif mysql # not compatible
query I rowsort label-781
SELECT NULLIF ( + 52, - COALESCE ( - COUNT ( * ), - - COALESCE ( 45, + + 83 ), - - 5 + - COUNT ( * ) ) )
----
52

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

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL - 35 / - 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-783
SELECT 54 * - 23 col1, MAX( ALL - CAST( NULL AS SIGNED ) )
----
-1242
NULL

skipif mysql # not compatible
query II rowsort label-783
SELECT 54 * - 23 col1, MAX ( ALL - CAST ( NULL AS INTEGER ) )
----
-1242
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT DISTINCT + 62 + 59 AS col1, - SUM( - 95 )
----
121
95

skipif mysql # not compatible
query II rowsort label-784
SELECT DISTINCT + 62 + 59 AS col1, - SUM ( - 95 )
----
121
95

query I rowsort
SELECT ALL - 8 * 19 AS col0
----
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-786
SELECT ALL NULLIF ( NULLIF ( - + 67, + 12 ), 93 ) DIV 52
----
-1

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL NULLIF ( NULLIF ( - + 67, + 12 ), 93 ) / 52
----
-1

query II rowsort
SELECT ALL - 44 + + 36 AS col2, + 10 * + - 70 col1
----
-8
-700

query I rowsort
SELECT DISTINCT + 17 + - + 2 col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT DISTINCT - 63 + + SUM( + 96 ) * + MAX( + 97 ) AS col1
----
9249

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT - 63 + + SUM ( + 96 ) * + MAX ( + 97 ) AS col1
----
9249

query II rowsort
SELECT ALL - 45 + - + 35 AS col1, + 20
----
-80
20

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT 69 * - - COALESCE ( + 14, + COUNT( DISTINCT - + 11 ), + CASE - 27 WHEN + + NULLIF ( + + ( - 5 ), - 12 ) + 10 + + - 11 * - + 0 THEN + 46 WHEN 99 THEN NULL ELSE 59 END )
----
966

skipif mysql # not compatible
query I rowsort label-791
SELECT 69 * - - COALESCE ( + 14, + COUNT ( DISTINCT - + 11 ), + CASE - 27 WHEN + + NULLIF ( + + ( - 5 ), - 12 ) + 10 + + - 11 * - + 0 THEN + 46 WHEN 99 THEN NULL ELSE 59 END )
----
966

query I rowsort
SELECT 5 + - 12 + + 48 * - + 22
----
-1063

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT DISTINCT COUNT( DISTINCT 72 ) - + + 86 + - 12
----
-97

skipif mysql # not compatible
query I rowsort label-793
SELECT DISTINCT COUNT ( DISTINCT 72 ) - + + 86 + - 12
----
-97

query II rowsort
SELECT + 13 - + 8 col2, + 80 + 30 + + 23
----
5
133

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT ( + 5 ) - - COUNT( 9 )
----
6

skipif mysql # not compatible
query I rowsort label-796
SELECT ( + 5 ) - - COUNT ( 9 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-797
SELECT CASE - 60 WHEN 89 / 76 THEN NULL WHEN - CAST( NULL AS SIGNED ) * - 92 THEN NULL WHEN - + ( + - 67 ) * - 94 - - 16 THEN MAX( 26 ) / + COUNT( * ) + - 33 + - + ( + 29 ) ELSE NULL END * + + 85 + + + 27 - - ( 45 ) + + - 89 / 66 + - 73 * - - 7 - - 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-797
SELECT CASE - 60 WHEN 89 / 76 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * - 92 THEN NULL WHEN - + ( + - 67 ) * - 94 - - 16 THEN MAX ( 26 ) / + COUNT ( * ) + - 33 + - + ( + 29 ) ELSE NULL END * + + 85 + + + 27 - - ( 45 ) + + - 89 / 66 + - 73 * - - 7 - - 32 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-798
SELECT 39 * + CAST( 69 AS SIGNED )
----
2691

skipif mysql # not compatible
query I rowsort label-798
SELECT 39 * + CAST ( 69 AS INTEGER )
----
2691

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT MAX( + + 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-799
SELECT MAX ( + + 91 ) AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-800
SELECT 70 DIV + ( + 97 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-800
SELECT 70 / + ( + 97 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT ALL - COALESCE ( COALESCE ( - - 45, - 42 * - SUM( ALL + ( - 30 ) ) - + - 2 ), - 37, + ( 37 ) ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL - COALESCE ( COALESCE ( - - 45, - 42 * - SUM ( ALL + ( - 30 ) ) - + - 2 ), - 37, + ( 37 ) ) col1
----
-45

query I rowsort
SELECT DISTINCT + 75 * - + 18 + + 89 AS col0
----
-1261

query I rowsort
SELECT 18 * + NULLIF ( - 42, + + 94 )
----
-756

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT DISTINCT 24 DIV + 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-804
SELECT DISTINCT 24 / + 60 AS col0
----
0

query I rowsort
SELECT + 3 * + 33 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT COUNT( * ) * - - 36 + 70 - + 41 - - ( + COUNT( * ) ) + 6
----
72

skipif mysql # not compatible
query I rowsort label-806
SELECT COUNT ( * ) * - - 36 + 70 - + 41 - - ( + COUNT ( * ) ) + 6
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT ALL 37 + + COUNT( * ) * + 18 * - 36 - - ( 40 ) + + + 54 col0
----
-517

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL 37 + + COUNT ( * ) * + 18 * - 36 - - ( 40 ) + + + 54 col0
----
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT ALL COUNT( * ) + 28 col1
----
29

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL COUNT ( * ) + 28 col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-809
SELECT + 5 * - + 4 + + 10 + + 71 + - MAX( + + CAST( NULL AS SIGNED ) ) AS col0, - 68 AS col1
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-809
SELECT + 5 * - + 4 + + 10 + + 71 + - MAX ( + + CAST ( NULL AS INTEGER ) ) AS col0, - 68 AS col1
----
NULL
-68

query I rowsort
SELECT ALL 30 + + NULLIF ( 48, NULLIF ( - ( 73 ), + 89 + - - 99 + 30 * 46 ) ) AS col2
----
78

query I rowsort
SELECT DISTINCT 1 + 98 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT 76 * - SUM( ALL - 44 ) + - - 10 AS col0
----
3354

skipif mysql # not compatible
query I rowsort label-812
SELECT 76 * - SUM ( ALL - 44 ) + - - 10 AS col0
----
3354

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-813
SELECT DISTINCT 36 + NULLIF ( + 4, - CASE - 25 WHEN - 59 + + NULLIF ( + - COALESCE ( NULLIF ( 42, + 77 ), - + 31, 6 / - - 33 ), + 15 * 92 + - - CAST( NULL AS DECIMAL ) ) / - - 79 THEN - 45 ELSE - 50 END ) + + 90 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT 36 + NULLIF ( + 4, - CASE - 25 WHEN - 59 + + NULLIF ( + - COALESCE ( NULLIF ( 42, + 77 ), - + 31, 6 / - - 33 ), + 15 * 92 + - - CAST ( NULL AS REAL ) ) / - - 79 THEN - 45 ELSE - 50 END ) + + 90 AS col2
----
130

query II rowsort
SELECT 12 col1, - ( - ( - 98 ) )
----
12
-98

query I rowsort
SELECT 73 + - - 24
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-816
SELECT - 12, - 2 + - COUNT( * ) AS col0
----
-12
-3

skipif mysql # not compatible
query II rowsort label-816
SELECT - 12, - 2 + - COUNT ( * ) AS col0
----
-12
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT DISTINCT - COUNT( * ) + 88 + + 63 * 77 * + 59
----
286296

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT - COUNT ( * ) + 88 + + 63 * 77 * + 59
----
286296

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT ALL + SUM( + + 14 ) * - 78 + + 59 - 43
----
-1076

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL + SUM ( + + 14 ) * - 78 + + 59 - 43
----
-1076

query I rowsort
SELECT ALL - 14 - + - 46
----
32

query I rowsort
SELECT DISTINCT 87 * - 94 col2
----
-8178

query I rowsort
SELECT 8 + 29
----
37

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-823
SELECT ALL + + 93 * + NULLIF ( - 94, + CAST( NULL AS SIGNED ) + 48 * AVG ( DISTINCT - 42 ) ) + + 68 DIV 31 - 74 AS col0
----
-8814

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL + + 93 * + NULLIF ( - 94, + CAST ( NULL AS INTEGER ) + 48 * AVG ( DISTINCT - 42 ) ) + + 68 / 31 - 74 AS col0
----
-8814

query I rowsort
SELECT ALL - + 30 * 81 AS col2
----
-2430

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

query I rowsort
SELECT - 11 + - - 64 + - NULLIF ( 78, + 85 )
----
-25

query I rowsort
SELECT 95 + + 45 + - 1 + + - 3
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-828
SELECT - MAX( 96 ) - - COALESCE ( 71, - + COALESCE ( + + 63, - - COUNT( * ) ) ) + COUNT( * ) DIV 48 DIV COUNT( * ) + - 29 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-828
SELECT - MAX ( 96 ) - - COALESCE ( 71, - + COALESCE ( + + 63, - - COUNT ( * ) ) ) + COUNT ( * ) / 48 / COUNT ( * ) + - 29 AS col2
----
-54

query I rowsort
SELECT 54 * + - 25
----
-1350

query I rowsort
SELECT 41 + 62 AS col2
----
103

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

query I rowsort
SELECT + 60 + - + 29 AS col0
----
31

query II rowsort
SELECT 33 * - + 56 * - ( - - NULLIF ( + + NULLIF ( - 70, 19 ), 0 ) ) AS col1, + 60
----
-129360
60

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT + COUNT( * ) + - + 21 + + + 28 col2
----
8

skipif mysql # not compatible
query I rowsort label-834
SELECT + COUNT ( * ) + - + 21 + + + 28 col2
----
8

query I rowsort
SELECT + 23 + + + 26 col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT ALL 58 * + + 90 + - 36 + - COUNT( * ) * 7
----
5177

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL 58 * + + 90 + - 36 + - COUNT ( * ) * 7
----
5177

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT MAX( ALL - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-837
SELECT MAX ( ALL - 85 ) AS col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-838
SELECT ALL 51 * + + 31 * + 2 * + COUNT( DISTINCT 7 ) * 77 + + - COUNT( * ) DIV + + 71 * + COUNT( * ) + - 10 + - 99 + + - 75
----
243290

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL 51 * + + 31 * + 2 * + COUNT ( DISTINCT 7 ) * 77 + + - COUNT ( * ) / + + 71 * + COUNT ( * ) + - 10 + - 99 + + - 75
----
243290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-839
SELECT DISTINCT COUNT( * ) * 84 + - 97 + NULLIF ( + 14, + CASE + 76 WHEN - 2 - + COALESCE ( 40, - 6 + - + 80 * + COUNT( * ) + - 50 + 27 * + MAX( DISTINCT 37 ) + - + COUNT( * ) ) THEN + CAST( NULL AS SIGNED ) WHEN - CAST( + 85 AS SIGNED ) * - 23 - 78 THEN NULL END ) + + - 11 + + SUM( ALL - + 83 ) * - + MIN( + 81 )
----
6713

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT COUNT ( * ) * 84 + - 97 + NULLIF ( + 14, + CASE + 76 WHEN - 2 - + COALESCE ( 40, - 6 + - + 80 * + COUNT ( * ) + - 50 + 27 * + MAX ( DISTINCT 37 ) + - + COUNT ( * ) ) THEN + CAST ( NULL AS INTEGER ) WHEN - CAST ( + 85 AS INTEGER ) * - 23 - 78 THEN NULL END ) + + - 11 + + SUM ( ALL - + 83 ) * - + MIN ( + 81 )
----
6713

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

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL COUNT ( * ) / - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT COUNT( ALL 80 )
----
1

skipif mysql # not compatible
query I rowsort label-841
SELECT COUNT ( ALL 80 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-842
SELECT + COUNT( DISTINCT + - 22 ) * - 1 * - 83 DIV 68 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-842
SELECT + COUNT ( DISTINCT + - 22 ) * - 1 * - 83 / 68 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-843
SELECT ALL CASE - 30 WHEN CAST( NULL AS SIGNED ) + - + 52 THEN 61 / + CASE + - CAST( NULL AS SIGNED ) WHEN 78 THEN + 93 WHEN 42 * + SUM( 74 ) / + 26 * + + 69 + 52 + 30 THEN NULL ELSE - 59 * - 38 * - 21 + - MAX( - + 7 ) END * + COUNT( * ) + + 35 * - COUNT( * ) + 83 - - COUNT( * ) * - 36 * 50 ELSE NULL END * + + 45 + + 56 + - - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL CASE - 30 WHEN CAST ( NULL AS INTEGER ) + - + 52 THEN 61 / + CASE + - CAST ( NULL AS INTEGER ) WHEN 78 THEN + 93 WHEN 42 * + SUM ( 74 ) / + 26 * + + 69 + 52 + 30 THEN NULL ELSE - 59 * - 38 * - 21 + - MAX ( - + 7 ) END * + COUNT ( * ) + + 35 * - COUNT ( * ) + 83 - - COUNT ( * ) * - 36 * 50 ELSE NULL END * + + 45 + + 56 + - - 29
----
NULL

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

skipif mysql # not compatible
query I rowsort label-844
SELECT COUNT ( DISTINCT + + 95 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT + 94 + + + COUNT( * ) + + 5
----
100

skipif mysql # not compatible
query I rowsort label-845
SELECT + 94 + + + COUNT ( * ) + + 5
----
100

query II rowsort
SELECT + 59 * + 61 AS col1, 38 * ( - 82 ) col2
----
3599
-3116

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT ALL COUNT( * ) - - 53 - 41 * + - 5 + + - 14 AS col2
----
245

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL COUNT ( * ) - - 53 - 41 * + - 5 + + - 14 AS col2
----
245

query I rowsort
SELECT + 40 + - - 85
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-850
SELECT DISTINCT COUNT( * ) - + + 46, 78 + + + COUNT( * ) AS col0
----
-45
79

skipif mysql # not compatible
query II rowsort label-850
SELECT DISTINCT COUNT ( * ) - + + 46, 78 + + + COUNT ( * ) AS col0
----
-45
79

query I rowsort
SELECT + 17 + 60 + - - 17
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT ALL COUNT( ALL + 45 ) - + 78 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL COUNT ( ALL + 45 ) - + 78 AS col0
----
-77

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

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

query I rowsort
SELECT - - 76 col1
----
76

query I rowsort
SELECT + + 97 * - - 0 + - 24 AS col0
----
-24

query I rowsort
SELECT ALL + ( - - 51 ) * + + 76 AS col2
----
3876

onlyif mysql # aggregate syntax: 
query III rowsort label-857
SELECT ALL + + COUNT( * ) * + COUNT( * ) * + 67 + - 88 AS col1, NULLIF ( - 21, + 93 ), - 55 AS col2
----
-21
-21
-55

skipif mysql # not compatible
query III rowsort label-857
SELECT ALL + + COUNT ( * ) * + COUNT ( * ) * + 67 + - 88 AS col1, NULLIF ( - 21, + 93 ), - 55 AS col2
----
-21
-21
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT - + 47 DIV 91 - - 85 DIV - 42 + - 90 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-858
SELECT - + 47 / 91 - - 85 / - 42 + - 90 AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-859
SELECT ALL - CAST( NULL AS DECIMAL ) * + - AVG ( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) * - - 18 - + ( - COALESCE ( + CAST( 12 AS SIGNED ), 35 * - - 41 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL - CAST ( NULL AS REAL ) * + - AVG ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - - 18 - + ( - COALESCE ( + CAST ( 12 AS INTEGER ), 35 * - - 41 ) )
----
NULL

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

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

query I rowsort
SELECT ALL 28 * - 31 + 52 + 29 col0
----
-787

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT ( - NULLIF ( - ( - CAST( NULL AS SIGNED ) ), - + 96 * - 66 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-862
SELECT ( - NULLIF ( - ( - CAST ( NULL AS INTEGER ) ), - + 96 * - 66 ) ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-864
SELECT ALL + 68 DIV 80 * + 32 DIV + 67 + 12 + + + 53
----
65

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL + 68 / 80 * + 32 / + 67 + 12 + + + 53
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-865
SELECT + + 4 * - SUM( 58 ) - - 17, - MAX( + 14 ) AS col1
----
-215
-14

skipif mysql # not compatible
query II rowsort label-865
SELECT + + 4 * - SUM ( 58 ) - - 17, - MAX ( + 14 ) AS col1
----
-215
-14

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-867
SELECT ALL 91 DIV + 71 + + + COUNT( * ) AS col2, - 54 AS col2
----
2
-54

skipif mysql # not compatible
query II rowsort label-867
SELECT ALL 91 / + 71 + + + COUNT ( * ) AS col2, - 54 AS col2
----
2
-54

query I rowsort
SELECT - 13 - - ( + 64 ) + - 70 + - ( ( - 91 ) ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-869
SELECT ALL 16 / + + CASE - COUNT( * ) WHEN + + MIN( ALL + 41 ) THEN + 96 * - ( - - ( - + ( 47 ) ) ) END + - 86 * + + ( + - 28 ) * - + 86 + - + 80 AS col0, - 19 AS col0
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-869
SELECT ALL 16 / + + CASE - COUNT ( * ) WHEN + + MIN ( ALL + 41 ) THEN + 96 * - ( - - ( - + ( 47 ) ) ) END + - 86 * + + ( + - 28 ) * - + 86 + - + 80 AS col0, - 19 AS col0
----
NULL
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-870
SELECT - CAST( 77 AS SIGNED ) * 94 + + - 24 - + 71 * + CASE + - SUM( + 98 ) WHEN + COUNT( * ) * + AVG ( ALL - - 63 ) + - + 76 * COUNT( * ) + + - 11 THEN NULL ELSE - - 13 * + 71 END
----
-72795

skipif mysql # not compatible
query I rowsort label-870
SELECT - CAST ( 77 AS INTEGER ) * 94 + + - 24 - + 71 * + CASE + - SUM ( + 98 ) WHEN + COUNT ( * ) * + AVG ( ALL - - 63 ) + - + 76 * COUNT ( * ) + + - 11 THEN NULL ELSE - - 13 * + 71 END
----
-72795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-871
SELECT - CAST( - 81 AS SIGNED ) * - + 6
----
-486

skipif mysql # not compatible
query I rowsort label-871
SELECT - CAST ( - 81 AS INTEGER ) * - + 6
----
-486

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT - COALESCE ( ( - COUNT( * ) ), + 91 + - + 54 ) * 90 * - NULLIF ( - COUNT( * ), + CASE - 27 WHEN + 37 * + 5 THEN + 64 + - - 63 WHEN - - 83 THEN + - 62 - - 25 + - 83 * - - 26 + 55 - - 49 * + 42 WHEN - ( 88 ) THEN NULL ELSE NULLIF ( - - COALESCE ( + + 49, + 79 ), - + 65 ) + 36 - - - 79 END )
----
90

skipif mysql # not compatible
query I rowsort label-872
SELECT - COALESCE ( ( - COUNT ( * ) ), + 91 + - + 54 ) * 90 * - NULLIF ( - COUNT ( * ), + CASE - 27 WHEN + 37 * + 5 THEN + 64 + - - 63 WHEN - - 83 THEN + - 62 - - 25 + - 83 * - - 26 + 55 - - 49 * + 42 WHEN - ( 88 ) THEN NULL ELSE NULLIF ( - - COALESCE ( + + 49, + 79 ), - + 65 ) + 36 - - - 79 END )
----
90

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

query I rowsort
SELECT ALL + 86 * 5
----
430

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT - 59 * + - 95 - + - COUNT( * ) + + 29 AS col0
----
5635

skipif mysql # not compatible
query I rowsort label-875
SELECT - 59 * + - 95 - + - COUNT ( * ) + + 29 AS col0
----
5635

onlyif mysql # aggregate syntax: 
query II rowsort label-876
SELECT - 71 * - COUNT( * ) * + 2 AS col2, - 11
----
142
-11

skipif mysql # not compatible
query II rowsort label-876
SELECT - 71 * - COUNT ( * ) * + 2 AS col2, - 11
----
142
-11

query I rowsort
SELECT ALL - 23 * - 31 - - + 40
----
753

query II rowsort
SELECT COALESCE ( 84, + 27 ) AS col1, + 66 col0
----
84
66

query I rowsort
SELECT ALL - 86 * + + 36
----
-3096

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

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL 35 / 23
----
1

query I rowsort
SELECT + 99 + - 89
----
10

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-884
SELECT - 87 DIV 47 * 60 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-884
SELECT - 87 / 47 * 60 AS col2
----
-60

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-886
SELECT ALL 99 DIV - 60
----
-1

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL 99 / - 60
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT + 69 * COUNT( * ) col2
----
69

skipif mysql # not compatible
query I rowsort label-888
SELECT + 69 * COUNT ( * ) col2
----
69

query II rowsort
SELECT + + 51 * + 27 + + - 94, 84 AS col0
----
1283
84

query II rowsort
SELECT ALL 3 AS col1, - 19 AS col1
----
3
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT ALL 16 * + + 97 - - + 35 - - 11 - - 31 * + CASE - 21 WHEN + + 97 THEN - 61 * + - CASE - 6 WHEN + - ( + 54 ) THEN + 92 * - 17 * CASE + + 45 WHEN - 35 + + 30 THEN NULL WHEN - 90 THEN + COUNT( * ) END WHEN + 8 * - + 40 THEN + 34 WHEN - 10 - + 79 / - + 69 THEN NULL END WHEN 87 * + - 11 + + - 82 + 55 + + 7 * - - 28 / 68 THEN - 44 WHEN SUM( + 4 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL 16 * + + 97 - - + 35 - - 11 - - 31 * + CASE - 21 WHEN + + 97 THEN - 61 * + - CASE - 6 WHEN + - ( + 54 ) THEN + 92 * - 17 * CASE + + 45 WHEN - 35 + + 30 THEN NULL WHEN - 90 THEN + COUNT ( * ) END WHEN + 8 * - + 40 THEN + 34 WHEN - 10 - + 79 / - + 69 THEN NULL END WHEN 87 * + - 11 + + - 82 + 55 + + 7 * - - 28 / 68 THEN - 44 WHEN SUM ( + 4 ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - 86 * + 7
----
-602

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-894
SELECT + - MAX( ALL - 51 ) + + CAST( + 41 AS DECIMAL ) * 72 + AVG ( + 94 ) + 16 + + NULLIF ( - CASE - COUNT( * ) WHEN - 24 THEN 70 + - COUNT( * ) + + 19 END, MIN( + 63 ) ) / + 91 + - ( - 48 ) / - MAX( ALL - 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-894
SELECT + - MAX ( ALL - 51 ) + + CAST ( + 41 AS REAL ) * 72 + AVG ( + 94 ) + 16 + + NULLIF ( - CASE - COUNT ( * ) WHEN - 24 THEN 70 + - COUNT ( * ) + + 19 END, MIN ( + 63 ) ) / + 91 + - ( - 48 ) / - MAX ( ALL - 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT DISTINCT MAX( - 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT MAX ( - 97 ) AS col1
----
-97

query I rowsort
SELECT + + 99 + 16 - - - 3 + 54
----
166

query I rowsort
SELECT + - 93 - 24 * - 43 + 36 col1
----
975

onlyif mysql # aggregate syntax: 
query II rowsort label-898
SELECT ALL 62 + - MIN( - 98 ) AS col2, - 58 * + COUNT( * )
----
160
-58

skipif mysql # not compatible
query II rowsort label-898
SELECT ALL 62 + - MIN ( - 98 ) AS col2, - 58 * + COUNT ( * )
----
160
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-899
SELECT CAST( + + COUNT( * ) AS SIGNED ) + - - 64 * - - 34
----
2177

skipif mysql # not compatible
query I rowsort label-899
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) + - - 64 * - - 34
----
2177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-900
SELECT ALL - ( CAST( + 25 AS SIGNED ) ) * + + 26 AS col2
----
-650

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL - ( CAST ( + 25 AS INTEGER ) ) * + + 26 AS col2
----
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT - NULLIF ( + SUM( ALL + - 94 ), - + 54 )
----
94

skipif mysql # not compatible
query I rowsort label-901
SELECT - NULLIF ( + SUM ( ALL + - 94 ), - + 54 )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-902
SELECT ALL COUNT( * ) DIV + 49 * ( - 57 )
----
0

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL COUNT ( * ) / + 49 * ( - 57 )
----
0

query I rowsort
SELECT DISTINCT + 11 + + - 1 + + 49
----
59

query I rowsort
SELECT ALL + 89 * - + 17 AS col1
----
-1513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-905
SELECT ALL 42 + + CAST( - 33 AS SIGNED ) * + 41 AS col0
----
-1311

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL 42 + + CAST ( - 33 AS INTEGER ) * + 41 AS col0
----
-1311

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

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

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

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

query I rowsort
SELECT 54 * ( COALESCE ( ( + 31 ), 12 + - + COALESCE ( 52, - 97 ) ) )
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT DISTINCT 13 * + + 71 * + COUNT( * )
----
923

skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT 13 * + + 71 * + COUNT ( * )
----
923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-910
SELECT DISTINCT + 0 - + - 81 + - COALESCE ( 42, - SUM( DISTINCT - - 29 ) - + 40 - - - MIN( 77 ) * + + 0 * ( 15 ), + 51 ) + CAST( NULL AS SIGNED ) col2, + 28 + COUNT( ALL - 16 ) * + COALESCE ( + 0, 95 + + COUNT( * ), + SUM( + 25 ) ) AS col1
----
NULL
28

skipif mysql # not compatible
query II rowsort label-910
SELECT DISTINCT + 0 - + - 81 + - COALESCE ( 42, - SUM ( DISTINCT - - 29 ) - + 40 - - - MIN ( 77 ) * + + 0 * ( 15 ), + 51 ) + CAST ( NULL AS INTEGER ) col2, + 28 + COUNT ( ALL - 16 ) * + COALESCE ( + 0, 95 + + COUNT ( * ), + SUM ( + 25 ) ) AS col1
----
NULL
28

query I rowsort
SELECT DISTINCT 18 * - 20 AS col1
----
-360

query II rowsort
SELECT ALL - 27, 95 + - 68 col2
----
-27
27

query II rowsort
SELECT DISTINCT - 30 AS col1, + 0 AS col2
----
-30
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-915
SELECT 1 col2, 35 * + - 68 * - ( - - CASE + ( CAST( - 28 AS SIGNED ) ) WHEN - ( 41 ) THEN + 2 + CAST( NULL AS SIGNED ) - + 47 ELSE NULL END ) * 90 + + 75 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-915
SELECT 1 col2, 35 * + - 68 * - ( - - CASE + ( CAST ( - 28 AS INTEGER ) ) WHEN - ( 41 ) THEN + 2 + CAST ( NULL AS INTEGER ) - + 47 ELSE NULL END ) * 90 + + 75 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT ALL - MIN( - - 33 ) * + ( + 87 ) + + COALESCE ( - ( + 21 ), COUNT( * ) ) * + - 43 AS col0
----
-1968

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL - MIN ( - - 33 ) * + ( + 87 ) + + COALESCE ( - ( + 21 ), COUNT ( * ) ) * + - 43 AS col0
----
-1968

query I rowsort
SELECT 98 - - 75 + + 20 AS col2
----
193

onlyif mysql # DIV for integer division: 
query I rowsort label-918
SELECT 33 DIV + 38 col1
----
0

skipif mysql # not compatible
query I rowsort label-918
SELECT 33 / + 38 col1
----
0

query I rowsort
SELECT 4 * - 16
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT ALL - ( SUM( ALL + - 85 ) )
----
85

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL - ( SUM ( ALL + - 85 ) )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-921
SELECT 70 + + CAST( + - 54 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-921
SELECT 70 + + CAST ( + - 54 AS INTEGER ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT - + SUM( 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-922
SELECT - + SUM ( 74 ) AS col2
----
-74

query II rowsort
SELECT - + 62 AS col0, + 60
----
-62
60

query I rowsort
SELECT ALL + 34 + + - 73 + + 28 AS col2
----
-11

query I rowsort
SELECT COALESCE ( + + 86, 1 ) * 20 AS col2
----
1720

query II rowsort
SELECT + 82, + 64 AS col0
----
82
64

query I rowsort
SELECT 39 + - - 37 * + - 80
----
-2921

query I rowsort
SELECT DISTINCT 46 + - + 86
----
-40

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

query I rowsort
SELECT ALL 73 + - + ( + - ( ( + 9 ) ) ) AS col0
----
82

query II rowsort
SELECT - 38, 28 AS col2
----
-38
28

query II rowsort
SELECT ALL + 23, - 54 AS col1
----
23
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT DISTINCT 35 * - ( - + 65 ) * - 35 * + COALESCE ( 83, + 14 * 61, + COUNT( * ) * + 53 ) + - MIN( DISTINCT 11 ) col2
----
-6608886

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT 35 * - ( - + 65 ) * - 35 * + COALESCE ( 83, + 14 * 61, + COUNT ( * ) * + 53 ) + - MIN ( DISTINCT 11 ) col2
----
-6608886

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT CASE + 31 WHEN - 43 THEN NULL WHEN - + 11 * + + 74 + + - 5 THEN NULL ELSE + - COUNT( * ) END - + 94 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-934
SELECT CASE + 31 WHEN - 43 THEN NULL WHEN - + 11 * + + 74 + + - 5 THEN NULL ELSE + - COUNT ( * ) END - + 94 AS col2
----
-95

query I rowsort
SELECT + 14 * + - 40
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT 63 - 83 * - + COUNT( * ) * - 0 col2
----
63

skipif mysql # not compatible
query I rowsort label-936
SELECT 63 - 83 * - + COUNT ( * ) * - 0 col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT COUNT( - ( 0 ) ) * 89 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-937
SELECT COUNT ( - ( 0 ) ) * 89 AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-938
SELECT ALL 24 DIV + - 91 AS col0, + 28 - MAX( - + 6 )
----
0
34

skipif mysql # not compatible
query II rowsort label-938
SELECT ALL 24 / + - 91 AS col0, + 28 - MAX ( - + 6 )
----
0
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT ALL - CASE - COUNT( * ) WHEN + AVG ( + + 61 ) * - + 31 / - 14 - + 56 * 38 + ( + + 45 ) + - COUNT( * ) THEN + + 81 WHEN 44 THEN - 88 + + 7 WHEN + 47 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL - CASE - COUNT ( * ) WHEN + AVG ( + + 61 ) * - + 31 / - 14 - + 56 * 38 + ( + + 45 ) + - COUNT ( * ) THEN + + 81 WHEN 44 THEN - 88 + + 7 WHEN + 47 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-941
SELECT + 51 DIV - - 64 * + 20 - - 35
----
35

skipif mysql # not compatible
query I rowsort label-941
SELECT + 51 / - - 64 * + 20 - - 35
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-942
SELECT NULLIF ( + COUNT( * ), - COUNT( * ) + + 37 + - - 3 + - 91 * + CAST( + 89 AS SIGNED ) ) - - 75
----
76

skipif mysql # not compatible
query I rowsort label-942
SELECT NULLIF ( + COUNT ( * ), - COUNT ( * ) + + 37 + - - 3 + - 91 * + CAST ( + 89 AS INTEGER ) ) - - 75
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-943
SELECT AVG ( - - CAST( NULL AS DECIMAL ) ) / + 98 - - - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-943
SELECT AVG ( - - CAST ( NULL AS REAL ) ) / + 98 - - - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT NULLIF ( + 1, + + COUNT( * ) ) * - + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-944
SELECT NULLIF ( + 1, + + COUNT ( * ) ) * - + 77 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 23 * 47
----
1081

query I rowsort
SELECT 24 * - CASE + 82 WHEN - 84 + + 78 THEN 31 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT 27 * + + MIN( + 79 )
----
2133

skipif mysql # not compatible
query I rowsort label-947
SELECT 27 * + + MIN ( + 79 )
----
2133

query I rowsort
SELECT 7 + - ( 80 )
----
-73

query I rowsort
SELECT 87 * + 74 * + 14 * 81 * + NULLIF ( - 40, + - 98 + + 99 ) - - 72
----
-292027608

query I rowsort
SELECT 14 * - + 92 col1
----
-1288

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-951
SELECT ALL COUNT( * ) + + + 49 AS col1, 38 DIV 94
----
50
0

skipif mysql # not compatible
query II rowsort label-951
SELECT ALL COUNT ( * ) + + + 49 AS col1, 38 / 94
----
50
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-953
SELECT + COUNT( * ) * 71 + - 58 + - 13 * 33 DIV + 22
----
-6

skipif mysql # not compatible
query I rowsort label-953
SELECT + COUNT ( * ) * 71 + - 58 + - 13 * 33 / + 22
----
-6

query I rowsort
SELECT 54 + 33 AS col1
----
87

query I rowsort
SELECT CASE - 57 WHEN 24 - - 36 THEN NULL WHEN 24 THEN - 11 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 38 + + 36 AS col0
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT + 77 + - SUM( ALL 15 ) + + - ( - 52 ) - + 4 * - + COALESCE ( 2, - - 98, + 19 * + + COALESCE ( + 42, + 92 ) ) AS col2, 7 col1
----
122
7

skipif mysql # not compatible
query II rowsort label-957
SELECT + 77 + - SUM ( ALL 15 ) + + - ( - 52 ) - + 4 * - + COALESCE ( 2, - - 98, + 19 * + + COALESCE ( + 42, + 92 ) ) AS col2, 7 col1
----
122
7

query I rowsort
SELECT DISTINCT - 46 * - 13 + - 38
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT ALL + + 3 * - COUNT( * ) * + 94 AS col2
----
-282

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + + 3 * - COUNT ( * ) * + 94 AS col2
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT - MIN( 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-960
SELECT - MIN ( 29 )
----
-29

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT - 93 + 16 * 37 * + COUNT( * )
----
499

skipif mysql # not compatible
query I rowsort label-963
SELECT - 93 + 16 * 37 * + COUNT ( * )
----
499

query I rowsort
SELECT + - 92 * + 9 * - ( + 50 )
----
41400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-965
SELECT DISTINCT + + COUNT( + 85 ) DIV 53 DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT + + COUNT ( + 85 ) / 53 / 35
----
0

query I rowsort
SELECT - 54 + - 39
----
-93

query I rowsort
SELECT + 60 - 56
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT - ( 0 ) + + MAX( ALL - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-968
SELECT - ( 0 ) + + MAX ( ALL - 2 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-969
SELECT DISTINCT NULLIF ( - 37, - - 6 ) col0, - CAST( NULL AS SIGNED ) * + 5 * - - 75 * + + 50 + + - 80 + 39
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-969
SELECT DISTINCT NULLIF ( - 37, - - 6 ) col0, - CAST ( NULL AS INTEGER ) * + 5 * - - 75 * + + 50 + + - 80 + 39
----
-37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT ALL 18 * + COUNT( * ) * - NULLIF ( - 97, - COALESCE ( + 38, + - 23 * 13, - ( 47 ) ) ) AS col1
----
1746

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL 18 * + COUNT ( * ) * - NULLIF ( - 97, - COALESCE ( + 38, + - 23 * 13, - ( 47 ) ) ) AS col1
----
1746

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT + COUNT( * ) + + 45 col1
----
46

skipif mysql # not compatible
query I rowsort label-971
SELECT + COUNT ( * ) + + 45 col1
----
46

query I rowsort
SELECT ALL - 82 * + - 46
----
3772

query II rowsort
SELECT + 0 + + + 77 * 32, 24 + 56 + 75 AS col0
----
2464
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-974
SELECT - MAX( ALL - CAST( - 8 AS SIGNED ) ) * + ( + + 93 ) + + 55 + - 47 * - - 30 * + 84 * COUNT( * ) AS col0
----
-119129

skipif mysql # not compatible
query I rowsort label-974
SELECT - MAX ( ALL - CAST ( - 8 AS INTEGER ) ) * + ( + + 93 ) + + 55 + - 47 * - - 30 * + 84 * COUNT ( * ) AS col0
----
-119129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-975
SELECT - ( - COALESCE ( + 74, - 61 ) ) DIV COUNT( * ) + + + 22 + 95 * + 39
----
3801

skipif mysql # not compatible
query I rowsort label-975
SELECT - ( - COALESCE ( + 74, - 61 ) ) / COUNT ( * ) + + + 22 + 95 * + 39
----
3801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-976
SELECT ALL 82 * - CAST( + COUNT( * ) AS SIGNED ) * ( + 21 ) * + - 76
----
130872

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL 82 * - CAST ( + COUNT ( * ) AS INTEGER ) * ( + 21 ) * + - 76
----
130872

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-977
SELECT ( CAST( - ( + + 85 ) AS SIGNED ) ), 77 col1
----
-85
77

skipif mysql # not compatible
query II rowsort label-977
SELECT ( CAST ( - ( + + 85 ) AS INTEGER ) ), 77 col1
----
-85
77

query I rowsort
SELECT + 53 + - 3 AS col2
----
50

query I rowsort
SELECT ALL 40 * + - 38 + 86 - + 69 * - - 78 * + - 9 AS col0
----
47004

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL - NULLIF ( - 76, - 17 * - 81 + - + COUNT( * ) ) * - 77 + + - 95 AS col0
----
-5947

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL - NULLIF ( - 76, - 17 * - 81 + - + COUNT ( * ) ) * - 77 + + - 95 AS col0
----
-5947

onlyif mysql # DIV for integer division: 
query II rowsort label-981
SELECT + NULLIF ( - - 99, - 48 ) AS col0, 90 DIV - 64 AS col1
----
99
-1

skipif mysql # not compatible
query II rowsort label-981
SELECT + NULLIF ( - - 99, - 48 ) AS col0, 90 / - 64 AS col1
----
99
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-982
SELECT ALL - ( 46 ) * + 45 + - 33 + CASE - + 55 WHEN - 3 - + 49 THEN + + CAST( + 27 AS SIGNED ) + - 77 WHEN 21 THEN + ( - 44 ) ELSE + - COUNT( * ) + - 1 END
----
-2105

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL - ( 46 ) * + 45 + - 33 + CASE - + 55 WHEN - 3 - + 49 THEN + + CAST ( + 27 AS INTEGER ) + - 77 WHEN 21 THEN + ( - 44 ) ELSE + - COUNT ( * ) + - 1 END
----
-2105

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-984
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) DIV - 68 + + ( 93 ) * 55 * - COUNT( * )
----
-5115

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) / - 68 + + ( 93 ) * 55 * - COUNT ( * )
----
-5115

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

query II rowsort
SELECT + - 9, 84 AS col1
----
-9
84

query I rowsort
SELECT DISTINCT - + 22 * + - 8 * - + 68 * - + 95 + - + ( - + 24 )
----
1136984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-988
SELECT ALL + - 56 * - 7 * ( CAST( NULL AS SIGNED ) ) + + 94 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL + - 56 * - 7 * ( CAST ( NULL AS INTEGER ) ) + + 94 col2
----
NULL

query I rowsort
SELECT + 52 * + 83 AS col2
----
4316

query I rowsort
SELECT ALL 5 * 18
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-991
SELECT DISTINCT - 52 * + 61 - 91 DIV 32 - + 35 + 50, MAX( - 31 ) DIV - 43 * + 80 AS col2
----
-3159
0

skipif mysql # not compatible
query II rowsort label-991
SELECT DISTINCT - 52 * + 61 - 91 / 32 - + 35 + 50, MAX ( - 31 ) / - 43 * + 80 AS col2
----
-3159
0

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT ALL - CASE - - COUNT( * ) WHEN 51 THEN - COUNT( - 94 ) + - - 88 END * + 39 + + 0 - + MAX( + - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL - CASE - - COUNT ( * ) WHEN 51 THEN - COUNT ( - 94 ) + - - 88 END * + 39 + + 0 - + MAX ( + - 41 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT + - 87 * - 24 + 89 * + NULLIF ( COUNT( 50 ), NULLIF ( - 84, - 96 ) * + COUNT( * ) + 12 )
----
2177

skipif mysql # not compatible
query I rowsort label-993
SELECT + - 87 * - 24 + 89 * + NULLIF ( COUNT ( 50 ), NULLIF ( - 84, - 96 ) * + COUNT ( * ) + 12 )
----
2177

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-995
SELECT - - 12 - - 4 * - ( ( + 43 ) ) * CAST( + 91 AS SIGNED ) + - 63 AS col2
----
-15703

skipif mysql # not compatible
query I rowsort label-995
SELECT - - 12 - - 4 * - ( ( + 43 ) ) * CAST ( + 91 AS INTEGER ) + - 63 AS col2
----
-15703

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-996
SELECT + 69 * - COUNT( * ) DIV - + COALESCE ( 98, NULLIF ( COUNT( * ), COUNT( * ) * + 73 ) - + 55 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-996
SELECT + 69 * - COUNT ( * ) / - + COALESCE ( 98, NULLIF ( COUNT ( * ), COUNT ( * ) * + 73 ) - + 55 ) AS col0
----
0

query II rowsort
SELECT ALL + 91, - 94 col2
----
91
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-998
SELECT - 73, 51 + - ( + 59 ) * + 82 * ( + COUNT( 51 ) ) + 89 DIV + 78 AS col2
----
-73
-4786

skipif mysql # not compatible
query II rowsort label-998
SELECT - 73, 51 + - ( + 59 ) * + 82 * ( + COUNT ( 51 ) ) + 89 / + 78 AS col2
----
-73
-4786

query II rowsort
SELECT - + 94 AS col1, 73 * + - 89 AS col1
----
-94
-6497

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT DISTINCT - MAX( ALL + 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT - MAX ( ALL + 7 ) AS col2
----
-7

query I rowsort
SELECT ALL + + 84 * + 36 * - NULLIF ( 3, 76 ) AS col1
----
-9072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1002
SELECT ALL + COALESCE ( - + 89, - - 66, - COUNT( * ) + + SUM( + - 86 ) ) DIV - 52 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL + COALESCE ( - + 89, - - 66, - COUNT ( * ) + + SUM ( + - 86 ) ) / - 52 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1003
SELECT ALL 2 col0, - COUNT( * ) + + 29
----
2
28

skipif mysql # not compatible
query II rowsort label-1003
SELECT ALL 2 col0, - COUNT ( * ) + + 29
----
2
28

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1005
SELECT DISTINCT CAST( 49 AS SIGNED ) AS col1, - CAST( - - 51 AS SIGNED ) * ( - 57 ) - ( - - CAST( NULL AS SIGNED ) )
----
49
NULL

skipif mysql # not compatible
query II rowsort label-1005
SELECT DISTINCT CAST ( 49 AS INTEGER ) AS col1, - CAST ( - - 51 AS INTEGER ) * ( - 57 ) - ( - - CAST ( NULL AS INTEGER ) )
----
49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT ALL + NULLIF ( - - 17, COUNT( * ) * + 59 - COALESCE ( 63, 61, - + 62 - + ( 26 ) ) * 14 ) + - - 11
----
28

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL + NULLIF ( - - 17, COUNT ( * ) * + 59 - COALESCE ( 63, 61, - + 62 - + ( 26 ) ) * 14 ) + - - 11
----
28

query I rowsort
SELECT ALL - 24 + - 2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT - 17 * + COUNT( * ) * + ( - 13 ) col2
----
221

skipif mysql # not compatible
query I rowsort label-1008
SELECT - 17 * + COUNT ( * ) * + ( - 13 ) col2
----
221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1009
SELECT ALL + CAST( NULL AS SIGNED ) / + 75 + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL + CAST ( NULL AS INTEGER ) / + 75 + + 67
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1010
SELECT 24 DIV + 73 * - ( - 29 ) - - 53 DIV + ( + 48 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1010
SELECT 24 / + 73 * - ( - 29 ) - - 53 / + ( + 48 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT ALL + COALESCE ( 89, - ( + + 35 ) * + MAX( + + 85 ) * - CASE 10 WHEN + NULLIF ( - COUNT( * ), - - NULLIF ( - 8, + - COUNT( * ) ) ) THEN NULL WHEN + AVG ( DISTINCT 97 ) THEN + 35 + - - COUNT( * ) ELSE NULL END - - COUNT( ALL + 43 ) ) * 91
----
8099

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL + COALESCE ( 89, - ( + + 35 ) * + MAX ( + + 85 ) * - CASE 10 WHEN + NULLIF ( - COUNT ( * ), - - NULLIF ( - 8, + - COUNT ( * ) ) ) THEN NULL WHEN + AVG ( DISTINCT 97 ) THEN + 35 + - - COUNT ( * ) ELSE NULL END - - COUNT ( ALL + 43 ) ) * 91
----
8099

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1012
SELECT 34 DIV 96 + + + 61 * + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-1012
SELECT 34 / 96 + + + 61 * + COUNT ( * )
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT ALL - ( ( + - ( 77 ) ) ) + + 74 * - - COUNT( * )
----
151

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL - ( ( + - ( 77 ) ) ) + + 74 * - - COUNT ( * )
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT DISTINCT + ( - COUNT( * ) ) * - 50 * 66
----
3300

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT + ( - COUNT ( * ) ) * - 50 * 66
----
3300

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1017
SELECT COUNT( * ) * + 51, - 25 * + 60 AS col1
----
51
-1500

skipif mysql # not compatible
query II rowsort label-1017
SELECT COUNT ( * ) * + 51, - 25 * + 60 AS col1
----
51
-1500

onlyif mysql # aggregate syntax: 
query II rowsort label-1018
SELECT ALL - + MIN( 87 ) AS col0, 19 * - + 21
----
-87
-399

skipif mysql # not compatible
query II rowsort label-1018
SELECT ALL - + MIN ( 87 ) AS col0, 19 * - + 21
----
-87
-399

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

query I rowsort
SELECT + 64 + - 70 * - 2 AS col2
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT ALL - 77 - + + NULLIF ( - 42, 92 ) + + COUNT( 51 ) - + 54 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL - 77 - + + NULLIF ( - 42, 92 ) + + COUNT ( 51 ) - + 54 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT MAX( 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1022
SELECT MAX ( 81 ) AS col0
----
81

query I rowsort
SELECT ALL + 97 - - 21 + 7
----
125

query I rowsort
SELECT ( 5 ) * + 65 * - 54
----
-17550

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT ALL - - COUNT( 25 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL - - COUNT ( 25 ) AS col1
----
1

query I rowsort
SELECT - ( + 56 ) + + 86 col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT MIN( 24 ) * - 94 + - - 82 AS col0
----
-2174

skipif mysql # not compatible
query I rowsort label-1027
SELECT MIN ( 24 ) * - 94 + - - 82 AS col0
----
-2174

query I rowsort
SELECT - 22 * - 35 AS col2
----
770

query I rowsort
SELECT - 66 * - + 14
----
924

query I rowsort
SELECT ALL - 59 * 55
----
-3245

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

skipif mysql # not compatible
query I rowsort label-1031
SELECT CAST ( NULL AS INTEGER ) * 43 - + - 84
----
NULL

query II rowsort
SELECT DISTINCT 78, 54 + - - ( - 96 ) AS col0
----
78
-42

query I rowsort
SELECT ALL + ( 10 ) + - ( 32 )
----
-22

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1035
SELECT 17 + + COALESCE ( - - COUNT( * ), + - 60 - - 13 + ( - - 46 ) DIV - COUNT( * ) * 70 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-1035
SELECT 17 + + COALESCE ( - - COUNT ( * ), + - 60 - - 13 + ( - - 46 ) / - COUNT ( * ) * 70 ) AS col0
----
18

query I rowsort
SELECT 27 * + + 9 * 21
----
5103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1037
SELECT ALL 47 + + + ( - COUNT( * ) ) / ( - - 90 ) * - 84 * 8 * - CAST( NULL AS SIGNED ) * 86 + + 20 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL 47 + + + ( - COUNT ( * ) ) / ( - - 90 ) * - 84 * 8 * - CAST ( NULL AS INTEGER ) * 86 + + 20 col2
----
NULL

query I rowsort
SELECT ALL - 92 + 16
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT 23 * + 44 * 5 * NULLIF ( + - COUNT( * ), 60 / - ( - 62 ) - - 67 )
----
-5060

skipif mysql # not compatible
query I rowsort label-1039
SELECT 23 * + 44 * 5 * NULLIF ( + - COUNT ( * ), 60 / - ( - 62 ) - - 67 )
----
-5060

query I rowsort
SELECT DISTINCT 41 * - 99 AS col0
----
-4059

query I rowsort
SELECT DISTINCT 58 + + 19
----
77

query I rowsort
SELECT 42 + 21 + 57
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1043
SELECT ALL - CAST( - - SUM( - 22 ) AS SIGNED ) + 69 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - CAST ( - - SUM ( - 22 ) AS INTEGER ) + 69 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT 13 * + SUM( ALL 20 )
----
260

skipif mysql # not compatible
query I rowsort label-1044
SELECT 13 * + SUM ( ALL 20 )
----
260

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1045
SELECT 32 DIV - + MIN( - 86 ) AS col0, + 14
----
0
14

skipif mysql # not compatible
query II rowsort label-1045
SELECT 32 / - + MIN ( - 86 ) AS col0, + 14
----
0
14

query I rowsort
SELECT 68 + - 45 + - - 33 * - 21
----
-670

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1047
SELECT + COALESCE ( - 97, - - COUNT( * ) DIV 70 + + 98 * + 99 * - 23 * - + ( - 7 ), 19 ) AS col0, 48
----
-97
48

skipif mysql # not compatible
query II rowsort label-1047
SELECT + COALESCE ( - 97, - - COUNT ( * ) / 70 + + 98 * + 99 * - 23 * - + ( - 7 ), 19 ) AS col0, 48
----
-97
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1048
SELECT ALL - 59, COALESCE ( - COUNT( * ), 87 ) AS col1
----
-59
-1

skipif mysql # not compatible
query II rowsort label-1048
SELECT ALL - 59, COALESCE ( - COUNT ( * ), 87 ) AS col1
----
-59
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1049
SELECT ALL - 26 - - CASE + 7 WHEN + 4 THEN - 53 * CAST( + + NULLIF ( - 1, 84 ) AS SIGNED ) WHEN COALESCE ( + - 35, + COUNT( * ) ) * + ( + 23 ) THEN + - COUNT( * ) + + - NULLIF ( + 70, + + 9 ) + + MIN( 97 ) * - - 82 WHEN + 21 THEN + 98 WHEN + - COUNT( * ) THEN NULL ELSE - 67 * + - CASE - 64 WHEN 10 * + + 60 + + 0 THEN NULL WHEN + 74 THEN + AVG ( - ( 61 ) ) * + 78 / - 57 * ( - + 11 ) - + ( - + 3 ) + - - 67 + - 9 - - 98 + + 4 END * - 24 + 96 + - 25 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL - 26 - - CASE + 7 WHEN + 4 THEN - 53 * CAST ( + + NULLIF ( - 1, 84 ) AS INTEGER ) WHEN COALESCE ( + - 35, + COUNT ( * ) ) * + ( + 23 ) THEN + - COUNT ( * ) + + - NULLIF ( + 70, + + 9 ) + + MIN ( 97 ) * - - 82 WHEN + 21 THEN + 98 WHEN + - COUNT ( * ) THEN NULL ELSE - 67 * + - CASE - 64 WHEN 10 * + + 60 + + 0 THEN NULL WHEN + 74 THEN + AVG ( - ( 61 ) ) * + 78 / - 57 * ( - + 11 ) - + ( - + 3 ) + - - 67 + - 9 - - 98 + + 4 END * - 24 + 96 + - 25 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 67 * - 70 AS col1
----
-4690

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT DISTINCT - NULLIF ( COUNT( * ), - + 53 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT - NULLIF ( COUNT ( * ), - + 53 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT ALL - 34 * - - COUNT( * ) * + - NULLIF ( 99, - - 17 )
----
3366

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL - 34 * - - COUNT ( * ) * + - NULLIF ( 99, - - 17 )
----
3366

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT 39 + + - ( - COALESCE ( - COUNT( * ), COUNT( * ) ) ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1053
SELECT 39 + + - ( - COALESCE ( - COUNT ( * ), COUNT ( * ) ) ) AS col2
----
38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1054
SELECT ALL - ( + CAST( - 10 AS SIGNED ) ) - - 29 DIV 89 - - + 56 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL - ( + CAST ( - 10 AS INTEGER ) ) - - 29 / 89 - - + 56 AS col2
----
66

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

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

query I rowsort
SELECT 87 * + NULLIF ( + 67, - + 52 ) AS col0
----
5829

query I rowsort
SELECT + 20 * - - 34
----
680

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

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

query I rowsort
SELECT DISTINCT - ( + - 51 ) AS col1
----
51

query I rowsort
SELECT ALL - 30 * + 95
----
-2850

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

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL - COUNT ( * ) + ( + 24 ) AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT DISTINCT + 91 DIV - 23 + 72
----
69

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT + 91 / - 23 + 72
----
69

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

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

query I rowsort
SELECT ( 15 )
----
15

query I rowsort
SELECT ( - - ( + - 95 ) ) * - ( + + 58 )
----
5510

query II rowsort
SELECT - 83 AS col2, 40 * - - 84 AS col1
----
-83
3360

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT ALL 59 + 33 DIV 3 + - 90 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1067
SELECT ALL 59 + 33 / 3 + - 90 AS col0
----
-20

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

skipif mysql # not compatible
query I rowsort label-1068
SELECT ( - MAX ( ALL - 98 ) ) * + COUNT ( * ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query III rowsort label-1069
SELECT DISTINCT CASE - 57 WHEN + - 69 THEN CASE 98 WHEN + + SUM( ALL + + 95 ) * - 0 + + 20 THEN NULL ELSE + - NULLIF ( 51, + - 59 ) END + + + ( + 20 ) END * + - 38 + + - 49 AS col1, + COUNT( * ) AS col0, - + 41 AS col1
----
NULL
1
-41

skipif mysql # not compatible
query III rowsort label-1069
SELECT DISTINCT CASE - 57 WHEN + - 69 THEN CASE 98 WHEN + + SUM ( ALL + + 95 ) * - 0 + + 20 THEN NULL ELSE + - NULLIF ( 51, + - 59 ) END + + + ( + 20 ) END * + - 38 + + - 49 AS col1, + COUNT ( * ) AS col0, - + 41 AS col1
----
NULL
1
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT ALL 24 + + 5 + - - COUNT( ALL - 83 ) + - 16
----
14

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL 24 + + 5 + - - COUNT ( ALL - 83 ) + - 16
----
14

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

query I rowsort
SELECT ALL 0 * - 78 col1
----
0

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

skipif mysql # not compatible
query I rowsort label-1073
SELECT COUNT ( * ) + - + 49 - - COUNT ( * ) + + + COUNT ( * ) + + 71 AS col2
----
25

query II rowsort
SELECT 63 AS col0, + 23 col1
----
63
23

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

skipif mysql # not compatible
query II rowsort label-1075
SELECT - COUNT ( * ), - COUNT ( 66 ) AS col1
----
-1
-1

query II rowsort
SELECT - 13 AS col2, + 39
----
-13
39

query II rowsort
SELECT - 81 * - 23 AS col0, + 20 * - - COALESCE ( - 21, - + 3 ) col1
----
1863
-420

query II rowsort
SELECT ALL 68 AS col2, 18
----
68
18

query I rowsort
SELECT + 52 + - 31
----
21

query II rowsort
SELECT - 70 AS col0, - 76 AS col1
----
-70
-76

query I rowsort
SELECT + 28 + - 83
----
-55

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1083
SELECT DISTINCT - 19 DIV 56 * 31 * 32 * + + 84 + 21 + - 85 DIV - - 3 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT - 19 / 56 * 31 * 32 * + + 84 + 21 + - 85 / - - 3 AS col1
----
-7

query I rowsort
SELECT ALL - 69 * - 7
----
483

query I rowsort
SELECT - - 39 * - 12 + - + 47
----
-515

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT - + 0 - - 12 * - 86 - COUNT( DISTINCT - 75 )
----
-1033

skipif mysql # not compatible
query I rowsort label-1086
SELECT - + 0 - - 12 * - 86 - COUNT ( DISTINCT - 75 )
----
-1033

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1088
SELECT - 5 DIV + 78 * 1 * 17 col2
----
0

skipif mysql # not compatible
query I rowsort label-1088
SELECT - 5 / + 78 * 1 * 17 col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT - 48 + + COUNT( ALL - 38 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-1090
SELECT - 48 + + COUNT ( ALL - 38 ) AS col0
----
-47

query I rowsort
SELECT - 57 * + 24 * + - 87 * - 71 + - - 0
----
-8450136

query I rowsort
SELECT ALL + - 77 * - 29
----
2233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1093
SELECT ALL COUNT( DISTINCT - + 57 ) * - CAST( NULL AS SIGNED ) + - 15 / + 52 + - 98 AS col1, + COALESCE ( - - 79, + 36 )
----
NULL
79

skipif mysql # not compatible
query II rowsort label-1093
SELECT ALL COUNT ( DISTINCT - + 57 ) * - CAST ( NULL AS INTEGER ) + - 15 / + 52 + - 98 AS col1, + COALESCE ( - - 79, + 36 )
----
NULL
79

query II rowsort
SELECT + 42, 25 col0
----
42
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1095
SELECT DISTINCT + 38 * + 94 + - NULLIF ( - + NULLIF ( - 34, + 82 / + 93 ), - 48 + COUNT( * ) ) + - - SUM( DISTINCT 90 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT + 38 * + 94 + - NULLIF ( - + NULLIF ( - 34, + 82 / + 93 ), - 48 + COUNT ( * ) ) + - - SUM ( DISTINCT 90 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 87 + - 74 * + 50 AS col2
----
-3613

query I rowsort
SELECT ALL - + 98 * - - 49 AS col2
----
-4802

query I rowsort
SELECT DISTINCT + - CASE - 1 WHEN + 80 THEN - 59 - + 32 END
----
NULL

query I rowsort
SELECT - 89 + - + NULLIF ( - 27, - - ( + + 57 ) ) + + 99 AS col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1100
SELECT - CAST( - 2 AS SIGNED ) + - - 59 + + 0
----
61

skipif mysql # not compatible
query I rowsort label-1100
SELECT - CAST ( - 2 AS INTEGER ) + - - 59 + + 0
----
61

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

skipif mysql # not compatible
query I rowsort label-1101
SELECT COUNT ( 19 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT - NULLIF ( ( + 4 ), - - 67 * + - 17 * - 90 + - SUM( + 29 ) + - 82 + + 74 * - + 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1102
SELECT - NULLIF ( ( + 4 ), - - 67 * + - 17 * - 90 + - SUM ( + 29 ) + - 82 + + 74 * - + 4 ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1103
SELECT DISTINCT CASE - 76 WHEN + + ( - 24 ) THEN + MIN( - CAST( NULL AS SIGNED ) ) / + 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT CASE - 76 WHEN + + ( - 24 ) THEN + MIN ( - CAST ( NULL AS INTEGER ) ) / + 1 ELSE NULL END
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT - 94 * - MAX( DISTINCT + + 64 ) AS col1
----
6016

skipif mysql # not compatible
query I rowsort label-1106
SELECT - 94 * - MAX ( DISTINCT + + 64 ) AS col1
----
6016

query II rowsort
SELECT + 12 + + 75 AS col1, + 9 AS col1
----
87
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1108
SELECT ALL ( - + 17 ) AS col2, COUNT( * ) + + 96 col2
----
-17
97

skipif mysql # not compatible
query II rowsort label-1108
SELECT ALL ( - + 17 ) AS col2, COUNT ( * ) + + 96 col2
----
-17
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT + 88 + + 32 * - 46 + + - 82 * SUM( + 12 ) col0
----
-2368

skipif mysql # not compatible
query I rowsort label-1109
SELECT + 88 + + 32 * - 46 + + - 82 * SUM ( + 12 ) col0
----
-2368

query I rowsort
SELECT - 76 + - 81
----
-157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1111
SELECT + COUNT( - - CAST( - 50 AS SIGNED ) ) DIV + NULLIF ( - 13, - 2 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1111
SELECT + COUNT ( - - CAST ( - 50 AS INTEGER ) ) / + NULLIF ( - 13, - 2 ) AS col0
----
0

query I rowsort
SELECT - 52 + 26
----
-26

query II rowsort
SELECT + 58 - - 34 AS col2, + 97 * - 18
----
92
-1746

query II rowsort
SELECT DISTINCT ( + - 53 ) AS col0, + 86 * + 38 + - + 0 AS col2
----
-53
3268

query II rowsort
SELECT ALL 40 - - + 8 + - + 43 * + + 95 * - - 50 col1, + 67 + 36 * - 21
----
-204202
-689

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT DISTINCT + CASE - 41 WHEN + 85 + - 43 THEN NULL WHEN 50 THEN - 47 * + 14 END * + AVG ( - 78 ) + - MAX( - - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT + CASE - 41 WHEN + 85 + - 43 THEN NULL WHEN 50 THEN - 47 * + 14 END * + AVG ( - 78 ) + - MAX ( - - 88 )
----
NULL

query I rowsort
SELECT ALL 10 * - 13
----
-130

query I rowsort
SELECT DISTINCT 63 col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1120
SELECT ALL - ( COUNT( * ) ), + MIN( ALL CASE - + 93 WHEN - + 16 + 43 * - 56 THEN NULL WHEN - 2 THEN - 79 END ) * - + 79 + 4 + - COUNT( * ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1120
SELECT ALL - ( COUNT ( * ) ), + MIN ( ALL CASE - + 93 WHEN - + 16 + 43 * - 56 THEN NULL WHEN - 2 THEN - 79 END ) * - + 79 + 4 + - COUNT ( * ) AS col2
----
-1
NULL

query I rowsort
SELECT + 75 * + 31 * + + 39 AS col1
----
90675

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT DISTINCT + - NULLIF ( 16, - COUNT( * ) ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT + - NULLIF ( 16, - COUNT ( * ) ) AS col2
----
-16

query II rowsort
SELECT + + 52 * - 56 AS col1, 90
----
-2912
90

query I rowsort
SELECT DISTINCT + - 75 * 1 col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1125
SELECT ALL - 98 DIV 2 + 5 - + 23 col2
----
-67

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL - 98 / 2 + 5 - + 23 col2
----
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1126
SELECT ALL + 62 / - + 3 + + 85 + + - 0 - - 67 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL + 62 / - + 3 + + 85 + + - 0 - - 67 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT + - MAX( - 94 ) * + + 49 * - 74
----
-340844

skipif mysql # not compatible
query I rowsort label-1127
SELECT + - MAX ( - 94 ) * + + 49 * - 74
----
-340844

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT DISTINCT + ( + 7 ) * MAX( + 55 )
----
385

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT + ( + 7 ) * MAX ( + 55 )
----
385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1130
SELECT DISTINCT + COUNT( * ) * + 44 DIV + 14 - 26
----
-23

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT + COUNT ( * ) * + 44 / + 14 - 26
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1131
SELECT ALL + CAST( CASE + 95 WHEN + - 39 THEN 37 WHEN - 95 + + + 18 THEN NULL ELSE + 4 + 10 END AS SIGNED ) AS col1, 99 - 75 * - + 23 AS col1
----
14
1824

skipif mysql # not compatible
query II rowsort label-1131
SELECT ALL + CAST ( CASE + 95 WHEN + - 39 THEN 37 WHEN - 95 + + + 18 THEN NULL ELSE + 4 + 10 END AS INTEGER ) AS col1, 99 - 75 * - + 23 AS col1
----
14
1824

query I rowsort
SELECT DISTINCT - 88 * + - 32
----
2816

query I rowsort
SELECT 26 * + CASE + 39 WHEN 36 THEN 85 WHEN 26 THEN - 22 WHEN - 80 * 90 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 51 * 60 AS col1
----
3060

onlyif mysql # DIV for integer division: 
query II rowsort label-1135
SELECT ALL 66 AS col2, - 76 * + COALESCE ( - 67, - + 58 DIV + 28 + 46 + - - 39 + - - 74 )
----
66
5092

skipif mysql # not compatible
query II rowsort label-1135
SELECT ALL 66 AS col2, - 76 * + COALESCE ( - 67, - + 58 / + 28 + 46 + - - 39 + - - 74 )
----
66
5092

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1136
SELECT DISTINCT 18 AS col1, + 3 DIV COUNT( * ) col2
----
18
3

skipif mysql # not compatible
query II rowsort label-1136
SELECT DISTINCT 18 AS col1, + 3 / COUNT ( * ) col2
----
18
3

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

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

query I rowsort
SELECT 16 + 26 * + 61 + + 20 AS col1
----
1622

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT + 60 DIV 28 * - + 4
----
-8

skipif mysql # not compatible
query I rowsort label-1139
SELECT + 60 / 28 * - + 4
----
-8

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1141
SELECT SUM( - - 53 ) DIV - 86 + COUNT( * ) DIV 5
----
0

skipif mysql # not compatible
query I rowsort label-1141
SELECT SUM ( - - 53 ) / - 86 + COUNT ( * ) / 5
----
0

query I rowsort
SELECT + 17 + 60
----
77

query I rowsort
SELECT ALL - - 6 + 28
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1144
SELECT + 27 DIV + 12 + 9 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1144
SELECT + 27 / + 12 + 9 AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1145
SELECT ALL + 42 + + 14 + - 39 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL + 42 + + 14 + - 39 - CAST ( NULL AS INTEGER )
----
NULL

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

query I rowsort
SELECT 87 * - 40 + 34
----
-3446

query I rowsort
SELECT 55 + + + 24 * - 17 + - 80
----
-433

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT ALL - + SUM( ALL + - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL - + SUM ( ALL + - 75 )
----
75

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

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

query I rowsort
SELECT DISTINCT 81 - - - NULLIF ( + - 9, - - ( 96 ) * + 28 + + 78 ) * 54 AS col2
----
567

query II rowsort
SELECT DISTINCT - 93, 80 AS col1
----
-93
80

onlyif mysql # aggregate syntax: 
query II rowsort label-1153
SELECT - + 7 * - + 64 * - - COUNT( * ) + + CASE - ( - 1 ) WHEN 90 * - - 70 - + 19 THEN + 40 * - 84 ELSE NULL END * + MAX( 85 ) AS col1, 28 AS col2
----
NULL
28

skipif mysql # not compatible
query II rowsort label-1153
SELECT - + 7 * - + 64 * - - COUNT ( * ) + + CASE - ( - 1 ) WHEN 90 * - - 70 - + 19 THEN + 40 * - 84 ELSE NULL END * + MAX ( 85 ) AS col1, 28 AS col2
----
NULL
28

query I rowsort
SELECT ( 26 ) * - 19 AS col1
----
-494

query I rowsort
SELECT ALL + 65 * 78 AS col0
----
5070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1156
SELECT DISTINCT COALESCE ( - + 45, - SUM( ALL 98 ) DIV 86 * + - CAST( - 0 AS SIGNED ) + 1, + 10 + + COUNT( * ) + + - 86 * + - 98 * 8 ) * + + 0 * + 15
----
0

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT COALESCE ( - + 45, - SUM ( ALL 98 ) / 86 * + - CAST ( - 0 AS INTEGER ) + 1, + 10 + + COUNT ( * ) + + - 86 * + - 98 * 8 ) * + + 0 * + 15
----
0

query I rowsort
SELECT ALL - COALESCE ( + 76, 91 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT - 9 * - COALESCE ( - NULLIF ( COUNT( * ), + + 69 * + 66 ), 58 ) + 45
----
36

skipif mysql # not compatible
query I rowsort label-1158
SELECT - 9 * - COALESCE ( - NULLIF ( COUNT ( * ), + + 69 * + 66 ), 58 ) + 45
----
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT ( - - 23 ) * - COUNT( ALL 45 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-1160
SELECT ( - - 23 ) * - COUNT ( ALL 45 ) AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1161
SELECT ALL ( + 71 ) * - - CASE + + 24 WHEN MIN( ALL - 16 ) + SUM( - 18 ) * - 48 THEN - - 3 WHEN + + CAST( + 95 AS SIGNED ) THEN - 10 / - - 8 WHEN - ( + CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL ( + 71 ) * - - CASE + + 24 WHEN MIN ( ALL - 16 ) + SUM ( - 18 ) * - 48 THEN - - 3 WHEN + + CAST ( + 95 AS INTEGER ) THEN - 10 / - - 8 WHEN - ( + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1162
SELECT CAST ( NULL AS INTEGER ) / + 17
----
NULL

query I rowsort
SELECT 62 * 35
----
2170

onlyif mysql # DIV for integer division: 
query II rowsort label-1164
SELECT DISTINCT - 29 DIV 30 AS col1, + 76
----
0
76

skipif mysql # not compatible
query II rowsort label-1164
SELECT DISTINCT - 29 / 30 AS col1, + 76
----
0
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT NULLIF ( + 33, + AVG ( ALL - 39 ) + - - CASE - 23 WHEN + + 86 * - 15 THEN - - COUNT( * ) * - + 60 END ) + - 12 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1165
SELECT NULLIF ( + 33, + AVG ( ALL - 39 ) + - - CASE - 23 WHEN + + 86 * - 15 THEN - - COUNT ( * ) * - + 60 END ) + - 12 AS col0
----
21

query I rowsort
SELECT ALL - 3 * ( - 47 ) AS col0
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-1167
SELECT 58 + 5 AS col0, - COUNT( + 10 ) AS col2
----
63
-1

skipif mysql # not compatible
query II rowsort label-1167
SELECT 58 + 5 AS col0, - COUNT ( + 10 ) AS col2
----
63
-1

query I rowsort
SELECT 67 + 9 AS col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-1169
SELECT DISTINCT + 58 + - ( 31 ) * - + 80 AS col0, 57 * - COUNT( * )
----
2538
-57

skipif mysql # not compatible
query II rowsort label-1169
SELECT DISTINCT + 58 + - ( 31 ) * - + 80 AS col0, 57 * - COUNT ( * )
----
2538
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1170
SELECT CAST( - - 99 AS SIGNED ) * 35 + + + 42
----
3507

skipif mysql # not compatible
query I rowsort label-1170
SELECT CAST ( - - 99 AS INTEGER ) * 35 + + + 42
----
3507

query I rowsort
SELECT + 48 + + 29 col0
----
77

query I rowsort
SELECT ALL + 7 + 83 + + + 10 AS col0
----
100

query I rowsort
SELECT 62 + + 71 col2
----
133

query II rowsort
SELECT DISTINCT + 90 * + 6 * + ( - 24 ) AS col0, + 45
----
-12960
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1175
SELECT CAST( + MAX( + 36 ) AS SIGNED ) + - 28 * 86
----
-2372

skipif mysql # not compatible
query I rowsort label-1175
SELECT CAST ( + MAX ( + 36 ) AS INTEGER ) + - 28 * 86
----
-2372

query I rowsort
SELECT DISTINCT - ( + 99 ) + 3 AS col2
----
-96

query I rowsort
SELECT DISTINCT - 63 + - 17 AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1178
SELECT ALL + 5 + - CASE + + 10 WHEN + - COUNT( * ) * + 76 + - 12 THEN NULL ELSE CAST( NULL AS SIGNED ) * 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL + 5 + - CASE + + 10 WHEN + - COUNT ( * ) * + 76 + - 12 THEN NULL ELSE CAST ( NULL AS INTEGER ) * 52 END
----
NULL

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

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

query I rowsort
SELECT ALL - 25 * - 58 - - 25
----
1475

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT ( - 15 ) * - SUM( - - 71 )
----
1065

skipif mysql # not compatible
query I rowsort label-1181
SELECT ( - 15 ) * - SUM ( - - 71 )
----
1065

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1182
SELECT CAST( NULL AS SIGNED ) * - - 62 + - + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1182
SELECT CAST ( NULL AS INTEGER ) * - - 62 + - + 54 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 81 * 0 * - + 2 AS col1
----
0

query II rowsort
SELECT ALL + + 67 * + - 84 - 4 + + 13, + COALESCE ( 36, + 69 ) - 52 AS col2
----
-5619
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1185
SELECT COALESCE ( + + COUNT( * ), + 55 + + AVG ( DISTINCT 77 ) DIV + - 3 DIV 60 + - 60 ) * 15 * - 97 AS col2
----
-1455

skipif mysql # not compatible
query I rowsort label-1185
SELECT COALESCE ( + + COUNT ( * ), + 55 + + AVG ( DISTINCT 77 ) / + - 3 / 60 + - 60 ) * 15 * - 97 AS col2
----
-1455

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

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

query I rowsort
SELECT - 59 * 37 AS col1
----
-2183

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT MIN( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-1188
SELECT MIN ( - 0 )
----
0

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

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

query I rowsort
SELECT ALL 23 * - 10 AS col0
----
-230

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT DISTINCT 46 + + SUM( DISTINCT + 72 )
----
118

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT 46 + + SUM ( DISTINCT + 72 )
----
118

query I rowsort
SELECT ALL 81 + - + 84 * + + 56
----
-4623

onlyif mysql # DIV for integer division: 
query I rowsort label-1194
SELECT - 51 DIV 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1194
SELECT - 51 / 78 AS col1
----
0

query I rowsort
SELECT + 63 * - 30 AS col2
----
-1890

query II rowsort
SELECT - 22 AS col0, 91 * 9
----
-22
819

query I rowsort
SELECT ALL 33 + 94 * + 92
----
8681

query I rowsort
SELECT ALL 45 + 50
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1199
SELECT ALL - 81 DIV COALESCE ( ( 62 ), CASE - CAST( NULL AS SIGNED ) WHEN - 74 + 72 THEN 66 + - SUM( DISTINCT + 13 ) * - 65 WHEN - 66 THEN NULL END + - ( - MAX( ALL 24 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL - 81 / COALESCE ( ( 62 ), CASE - CAST ( NULL AS INTEGER ) WHEN - 74 + 72 THEN 66 + - SUM ( DISTINCT + 13 ) * - 65 WHEN - 66 THEN NULL END + - ( - MAX ( ALL 24 ) ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1200
SELECT + 15 DIV 23 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1200
SELECT + 15 / 23 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT ALL 21 + + COALESCE ( COUNT( + 12 ), 30 + COUNT( * ) * + ( + ( - 64 ) * - 20 ) )
----
22

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL 21 + + COALESCE ( COUNT ( + 12 ), 30 + COUNT ( * ) * + ( + ( - 64 ) * - 20 ) )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1202
SELECT DISTINCT 80 + - 81 * CASE + ( 86 ) WHEN NULLIF ( 53, 55 ) THEN 31 * + 89 WHEN - 7 THEN - COUNT( * ) + - 17 WHEN - 58 THEN 74 * + 5 + + 49 ELSE - 53 * ( ( 76 ) DIV 45 ) END AS col1
----
4373

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT 80 + - 81 * CASE + ( 86 ) WHEN NULLIF ( 53, 55 ) THEN 31 * + 89 WHEN - 7 THEN - COUNT ( * ) + - 17 WHEN - 58 THEN 74 * + 5 + + 49 ELSE - 53 * ( ( 76 ) / 45 ) END AS col1
----
4373

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL + 9 + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL + 9 + + COUNT ( * )
----
10

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

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT COUNT ( * ) + 67 AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1205
SELECT + CAST( COALESCE ( 69, + COALESCE ( MAX( 84 ), 51 / + COUNT( * ), + COUNT( * ) * + CASE + 4 * 93 WHEN 17 * 44 + ( + 18 ) THEN + 55 WHEN - 92 THEN - COUNT( * ) * MIN( ALL 6 ) ELSE NULL END + - 20 ) * - 97 ) AS SIGNED ) + 77 AS col0
----
146

skipif mysql # not compatible
query I rowsort label-1205
SELECT + CAST ( COALESCE ( 69, + COALESCE ( MAX ( 84 ), 51 / + COUNT ( * ), + COUNT ( * ) * + CASE + 4 * 93 WHEN 17 * 44 + ( + 18 ) THEN + 55 WHEN - 92 THEN - COUNT ( * ) * MIN ( ALL 6 ) ELSE NULL END + - 20 ) * - 97 ) AS INTEGER ) + 77 AS col0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT ALL + COUNT( * ) - COUNT( * ) * 94 col2
----
-93

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL + COUNT ( * ) - COUNT ( * ) * 94 col2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1207
SELECT + CAST( 7 AS SIGNED ) * + 10 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-1207
SELECT + CAST ( 7 AS INTEGER ) * + 10 AS col2
----
70

query I rowsort
SELECT + NULLIF ( 90, + 99 * 32 ) + 86 * - 35 col1
----
-2920

query I rowsort
SELECT ALL - 82 * + 85 AS col0
----
-6970

query I rowsort
SELECT - 26 + + 55
----
29

query I rowsort
SELECT ALL 31 - 74
----
-43

query I rowsort
SELECT - 2 + 4 AS col2
----
2

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

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

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

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT - COUNT ( DISTINCT - 7 ) * + 25 AS col1
----
-25

query I rowsort
SELECT - 95 * 94 AS col0
----
-8930

query I rowsort
SELECT - 72 + - 67
----
-139

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT + MIN( ALL 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1218
SELECT + MIN ( ALL 10 ) AS col1
----
10

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

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1220
SELECT - 59 DIV CASE - CAST( NULL AS DECIMAL ) WHEN + 73 THEN NULL WHEN - ( - 31 ) + + ( + 78 ) THEN NULL ELSE - 42 END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1220
SELECT - 59 / CASE - CAST ( NULL AS REAL ) WHEN + 73 THEN NULL WHEN - ( - 31 ) + + ( + 78 ) THEN NULL ELSE - 42 END AS col2
----
1

query I rowsort
SELECT - 65 * - 87
----
5655

query I rowsort
SELECT DISTINCT - 20 * - 8 AS col2
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT - 12 + COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-1223
SELECT - 12 + COUNT ( * ) AS col1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1224
SELECT ALL - 48 DIV 14 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL - 48 / 14 AS col1
----
-3

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

query I rowsort
SELECT ALL 0 * 99 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1227
SELECT - NULLIF ( + 58, ( - 99 ) * 98 ) * + NULLIF ( + 99 * ( + COUNT( * ) ), 59 * - COUNT( * ) + CAST( NULL AS SIGNED ) / COUNT( * ) ) AS col1
----
-5742

skipif mysql # not compatible
query I rowsort label-1227
SELECT - NULLIF ( + 58, ( - 99 ) * 98 ) * + NULLIF ( + 99 * ( + COUNT ( * ) ), 59 * - COUNT ( * ) + CAST ( NULL AS INTEGER ) / COUNT ( * ) ) AS col1
----
-5742

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT DISTINCT 38 * 73 + - COUNT( * )
----
2773

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT 38 * 73 + - COUNT ( * )
----
2773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1231
SELECT DISTINCT 7 * COUNT( * ) + - 33 * - ( - 98 * 32 - - COUNT( * ) * + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT 7 * COUNT ( * ) + - 33 * - ( - 98 * 32 - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT NULLIF ( 83, + 33 * 70 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL COUNT( * ) * - MIN( ALL 49 ) + - NULLIF ( - 92, NULLIF ( - 87, 81 ) ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL COUNT ( * ) * - MIN ( ALL 49 ) + - NULLIF ( - 92, NULLIF ( - 87, 81 ) ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT + MIN( + 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1234
SELECT + MIN ( + 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT CASE WHEN CASE + 20 WHEN SUM( - 27 ) THEN - COUNT( * ) + - COUNT( * ) / 71 WHEN 78 THEN 51 ELSE NULL END < 93 + 87 / 81 THEN - COUNT( * ) ELSE + 40 END
----
40

skipif mysql # not compatible
query I rowsort label-1235
SELECT CASE WHEN CASE + 20 WHEN SUM ( - 27 ) THEN - COUNT ( * ) + - COUNT ( * ) / 71 WHEN 78 THEN 51 ELSE NULL END < 93 + 87 / 81 THEN - COUNT ( * ) ELSE + 40 END
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT - MIN( + 10 ) + MIN( - 73 )
----
-83

skipif mysql # not compatible
query I rowsort label-1236
SELECT - MIN ( + 10 ) + MIN ( - 73 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT ALL 50 * + MAX( DISTINCT - 95 ) + 39 * - 54 AS col1
----
-6856

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL 50 * + MAX ( DISTINCT - 95 ) + 39 * - 54 AS col1
----
-6856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1238
SELECT ALL CAST( 12 AS SIGNED ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL CAST ( 12 AS INTEGER ) AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1239
SELECT + NULLIF ( + 35, 69 + - 66 ) + 96 DIV 19 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-1239
SELECT + NULLIF ( + 35, 69 + - 66 ) + 96 / 19 AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1240
SELECT + - 19 + COUNT( * ) DIV ( MIN( ALL 97 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-1240
SELECT + - 19 + COUNT ( * ) / ( MIN ( ALL 97 ) )
----
-19

query I rowsort
SELECT + NULLIF ( + 1, 65 )
----
1

query I rowsort
SELECT + - 69 + - ( - 47 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT ALL 3 - - CASE 2 WHEN ( COUNT( * ) ) - 85 THEN - 67 + + COUNT( * ) WHEN + 39 THEN COUNT( * ) ELSE NULL END * + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL 3 - - CASE 2 WHEN ( COUNT ( * ) ) - 85 THEN - 67 + + COUNT ( * ) WHEN + 39 THEN COUNT ( * ) ELSE NULL END * + 77 AS col1
----
NULL

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

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

query I rowsort
SELECT + 46 + + 27 col0
----
73

query I rowsort
SELECT - 60 * 54
----
-3240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1247
SELECT DISTINCT - CASE CAST( NULL AS SIGNED ) WHEN + 3 + + 7 THEN NULL ELSE 98 + 26 END * 80 AS col2
----
-9920

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT - CASE CAST ( NULL AS INTEGER ) WHEN + 3 + + 7 THEN NULL ELSE 98 + 26 END * 80 AS col2
----
-9920

query I rowsort
SELECT + + 92 * + 2 AS col1
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-1249
SELECT DISTINCT + 81 DIV + 62 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT + 81 / + 62 AS col2
----
1

query I rowsort
SELECT + - 17 * 78 AS col0
----
-1326

query I rowsort
SELECT + 26 * - 79 AS col0
----
-2054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1252
SELECT CAST( - ( + COALESCE ( 97, + 18, - COUNT( * ) ) ) AS SIGNED ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-1252
SELECT CAST ( - ( + COALESCE ( 97, + 18, - COUNT ( * ) ) ) AS INTEGER ) AS col1
----
-97

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

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

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

query I rowsort
SELECT 96 * + 81
----
7776

query I rowsort
SELECT 40 * + 70 AS col1
----
2800

query I rowsort
SELECT - CASE COALESCE ( 38, 30 + + 48 ) WHEN ( 26 ) THEN NULL ELSE ( 86 ) * + 37 END
----
-3182

query I rowsort
SELECT DISTINCT 13 * + + 68
----
884

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT ALL - COALESCE ( + 81, 35 ) * MAX( DISTINCT COALESCE ( - 14, 96, - 28 ) * 36 ) AS col2
----
40824

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL - COALESCE ( + 81, 35 ) * MAX ( DISTINCT COALESCE ( - 14, 96, - 28 ) * 36 ) AS col2
----
40824

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT COUNT( * ) + + + 48
----
49

skipif mysql # not compatible
query I rowsort label-1261
SELECT COUNT ( * ) + + + 48
----
49

query I rowsort
SELECT DISTINCT 59 + + COALESCE ( + 92, - 69 + 83 ) * 29 AS col0
----
2727

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1263
SELECT DISTINCT - 34 * - - 38 DIV + COUNT( * ) col0
----
-1292

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT - 34 * - - 38 / + COUNT ( * ) col0
----
-1292

query I rowsort
SELECT DISTINCT 77 * - - 99 col0
----
7623

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT 45 * + MIN( ALL - 92 ) * - 28 AS col2
----
115920

skipif mysql # not compatible
query I rowsort label-1265
SELECT 45 * + MIN ( ALL - 92 ) * - 28 AS col2
----
115920

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT DISTINCT - 25 + MAX( ALL 27 ) + 29 * + 71 AS col0
----
2061

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT - 25 + MAX ( ALL 27 ) + 29 * + 71 AS col0
----
2061

query I rowsort
SELECT 71 * + + 46
----
3266

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

skipif mysql # not compatible
query I rowsort label-1269
SELECT + COUNT ( * ) * - 60 + 75 AS col1
----
15

query I rowsort
SELECT ALL - 53 + + 62
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1271
SELECT DISTINCT + 99 DIV + 30 col0
----
3

skipif mysql # not compatible
query I rowsort label-1271
SELECT DISTINCT + 99 / + 30 col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL - 44 + - COUNT( * ) * 62 AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL - 44 + - COUNT ( * ) * 62 AS col2
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT 61 - - SUM( DISTINCT - 59 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1273
SELECT 61 - - SUM ( DISTINCT - 59 ) AS col0
----
2

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT 67 DIV - 3 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1275
SELECT 67 / - 3 AS col2
----
-22

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

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

query I rowsort
SELECT DISTINCT + 72 + 19 * + 74
----
1478

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT DISTINCT + 99 DIV 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT + 99 / 60 AS col2
----
1

query I rowsort
SELECT ALL - 8 + - 77 AS col1
----
-85

query I rowsort
SELECT 86 * - + 98
----
-8428

query I rowsort
SELECT ALL + 81 * + - ( NULLIF ( + 14, 48 * 59 + NULLIF ( 0, 48 / + 8 - 6 * - 43 ) ) ) * + 98
----
-111132

query I rowsort
SELECT DISTINCT - + 97 - - 2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT ALL - 67 - + 98 * - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL - 67 - + 98 * - COUNT ( * )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1284
SELECT 85 * - COALESCE ( 89, + 20 * - 33, + 61 + 36 ) / - ( 16 + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT 85 * - COALESCE ( 89, + 20 * - 33, + 61 + 36 ) / - ( 16 + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT COALESCE ( - 98, - 12, + 32 ) AS col1
----
-98

query I rowsort
SELECT 16 - - + 46 * - 91
----
-4170

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT NULLIF ( 42, 84 * SUM( ALL + 0 ) ) * + 25 AS col0
----
1050

skipif mysql # not compatible
query I rowsort label-1287
SELECT NULLIF ( 42, 84 * SUM ( ALL + 0 ) ) * + 25 AS col0
----
1050

query I rowsort
SELECT ALL + 52 * + 92 AS col0
----
4784

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT 85 * + MIN( + 5 ) AS col0
----
425

skipif mysql # not compatible
query I rowsort label-1289
SELECT 85 * + MIN ( + 5 ) AS col0
----
425

query I rowsort
SELECT DISTINCT 45 * 34 AS col0
----
1530

query I rowsort
SELECT 31 - - - 28
----
3

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1294
SELECT 65 DIV + + 81 + 58
----
58

skipif mysql # not compatible
query I rowsort label-1294
SELECT 65 / + + 81 + 58
----
58

query I rowsort
SELECT - 77 + - 9 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT DISTINCT COALESCE ( 91, + 79 + - ( - 85 ) ) * CASE 27 - - 92 WHEN 28 THEN COUNT( * ) WHEN + 82 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT COALESCE ( 91, + 79 + - ( - 85 ) ) * CASE 27 - - 92 WHEN 28 THEN COUNT ( * ) WHEN + 82 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( - + 26 ) AS col1
----
-26

query I rowsort
SELECT ALL 30 + 72 col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT + 0 + COUNT( ALL + 60 ) + + NULLIF ( 15, 58 ) * + 57
----
856

skipif mysql # not compatible
query I rowsort label-1299
SELECT + 0 + COUNT ( ALL + 60 ) + + NULLIF ( 15, 58 ) * + 57
----
856

query I rowsort
SELECT ALL 7 + 34
----
41

query I rowsort
SELECT 36 + + - 2 AS col2
----
34

query I rowsort
SELECT ALL 18 + + - 20 * - 6
----
138

query II rowsort
SELECT DISTINCT 78 AS col1, + 47
----
78
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1304
SELECT DISTINCT 36 + + 31 - + NULLIF ( + COALESCE ( COUNT( * ), 5 * 53, + 36 ), 10 * - 99 + + 76 ) DIV COUNT( 95 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT 36 + + 31 - + NULLIF ( + COALESCE ( COUNT ( * ), 5 * 53, + 36 ), 10 * - 99 + + 76 ) / COUNT ( 95 ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1305
SELECT ALL 0 + + NULLIF ( COUNT( * ), + ( CAST( - 69 AS SIGNED ) ) + + 32 * 14 ) DIV 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL 0 + + NULLIF ( COUNT ( * ), + ( CAST ( - 69 AS INTEGER ) ) + + 32 * 14 ) / 32 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1306
SELECT - 83 AS col0, 49 - + - NULLIF ( CAST( NULL AS SIGNED ), + COUNT( ( + 78 ) ) * + 12 - - COALESCE ( 91 + - 46, - COALESCE ( 42, 44 ) * - 87 - - 6, 18 * 80 - 89 ) )
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-1306
SELECT - 83 AS col0, 49 - + - NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( ( + 78 ) ) * + 12 - - COALESCE ( 91 + - 46, - COALESCE ( 42, 44 ) * - 87 - - 6, 18 * 80 - 89 ) )
----
-83
NULL

query I rowsort
SELECT DISTINCT + 75 + + + 7 + + 26 AS col1
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1308
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 7 * - 2 * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 7 * - 2 * 79
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1309
SELECT COALESCE ( + 85, 84 + 89 * 74 ) DIV 12
----
7

skipif mysql # not compatible
query I rowsort label-1309
SELECT COALESCE ( + 85, 84 + 89 * 74 ) / 12
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1310
SELECT ALL 64 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL 64 / - 92
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1312
SELECT COUNT( * ) col0, 73 col2
----
1
73

skipif mysql # not compatible
query II rowsort label-1312
SELECT COUNT ( * ) col0, 73 col2
----
1
73

query I rowsort
SELECT 58 * - 64 * + 22 + 94 AS col2
----
-81570

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT ALL 58 * COUNT( * ) * + 66
----
3828

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL 58 * COUNT ( * ) * + 66
----
3828

query I rowsort
SELECT ALL 17 + - 30 + - - ( 45 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT 61 + + COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-1316
SELECT 61 + + COUNT ( * ) AS col0
----
62

query II rowsort
SELECT + 4 AS col2, + 23 AS col2
----
4
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT CASE WHEN NOT - 49 BETWEEN - ( - COALESCE ( - ( ( 22 ) ), - MAX( 11 ) ) ) AND 78 + - 94 THEN NULL WHEN ( NULL ) NOT IN ( ( 60 ) ) THEN 50 / 26 ELSE 53 * - 71 + 40 END + 61 * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1319
SELECT CASE WHEN NOT - 49 BETWEEN - ( - COALESCE ( - ( ( 22 ) ), - MAX ( 11 ) ) ) AND 78 + - 94 THEN NULL WHEN ( NULL ) NOT IN ( ( 60 ) ) THEN 50 / 26 ELSE 53 * - 71 + 40 END + 61 * + 19
----
NULL

query I rowsort
SELECT ALL 5 + - 20 AS col1
----
-15

query I rowsort
SELECT ALL + 85 * - 86
----
-7310

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

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

query I rowsort
SELECT ALL 22 * - 40
----
-880

query I rowsort
SELECT DISTINCT 57 * + + 26
----
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT DISTINCT 16 - COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT 16 - COUNT ( * ) AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1326
SELECT ( 27 ) + + CAST( + 16 AS SIGNED ) + 72 * 4 AS col2
----
331

skipif mysql # not compatible
query I rowsort label-1326
SELECT ( 27 ) + + CAST ( + 16 AS INTEGER ) + 72 * 4 AS col2
----
331

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT ALL + + NULLIF ( - 77, - SUM( ALL + ( ( + 71 ) ) ) - - 20 * - 18 ) - + 71 AS col1
----
-148

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL + + NULLIF ( - 77, - SUM ( ALL + ( ( + 71 ) ) ) - - 20 * - 18 ) - + 71 AS col1
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1329
SELECT DISTINCT - + 67 AS col1, CAST( - 4 AS SIGNED ) * 90 AS col2
----
-67
-360

skipif mysql # not compatible
query II rowsort label-1329
SELECT DISTINCT - + 67 AS col1, CAST ( - 4 AS INTEGER ) * 90 AS col2
----
-67
-360

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT + COUNT( * ) * - 90 + + COALESCE ( 59, 63 * 28 )
----
-31

skipif mysql # not compatible
query I rowsort label-1331
SELECT + COUNT ( * ) * - 90 + + COALESCE ( 59, 63 * 28 )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1332
SELECT 31 + + SUM( DISTINCT 90 ) + + 0 * ( + CAST( NULL AS SIGNED ) + ( 71 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT 31 + + SUM ( DISTINCT 90 ) + + 0 * ( + CAST ( NULL AS INTEGER ) + ( 71 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1333
SELECT + 24 - + - 45 + 73 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1333
SELECT + 24 - + - 45 + 73 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1334
SELECT + 35 AS col1, 26 * - - SUM( DISTINCT 90 ) + 43 col0
----
35
2383

skipif mysql # not compatible
query II rowsort label-1334
SELECT + 35 AS col1, 26 * - - SUM ( DISTINCT 90 ) + 43 col0
----
35
2383

onlyif mysql # DIV for integer division: 
query I rowsort label-1335
SELECT ALL + - 65 DIV - ( + 7 )
----
9

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL + - 65 / - ( + 7 )
----
9

query I rowsort
SELECT ALL + + 57 * + 41
----
2337

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1337
SELECT + 81 + 65 * + CAST( NULL AS SIGNED ) - + 56 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1337
SELECT + 81 + 65 * + CAST ( NULL AS INTEGER ) - + 56 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1338
SELECT ALL + MIN( DISTINCT - 97 ) DIV + + 84 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL + MIN ( DISTINCT - 97 ) / + + 84 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT DISTINCT + - MAX( - - 36 ) * - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT + - MAX ( - - 36 ) * - COUNT ( * )
----
36

query I rowsort
SELECT - 48 * 44 * + 98 AS col1
----
-206976

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT ALL - COUNT( 76 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL - COUNT ( 76 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1343
SELECT - + COALESCE ( - SUM( DISTINCT + 29 ), 97 + COALESCE ( COUNT( * ), 15 + 79, 60 DIV - 95 + + 65 DIV + 82 ) DIV COALESCE ( 20, 8 + 79 ), COUNT( * ) - - CAST( NULL AS SIGNED ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1343
SELECT - + COALESCE ( - SUM ( DISTINCT + 29 ), 97 + COALESCE ( COUNT ( * ), 15 + 79, 60 / - 95 + + 65 / + 82 ) / COALESCE ( 20, 8 + 79 ), COUNT ( * ) - - CAST ( NULL AS INTEGER ) ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT - MIN( ALL - + 96 ) * + 28 + + 16
----
2704

skipif mysql # not compatible
query I rowsort label-1344
SELECT - MIN ( ALL - + 96 ) * + 28 + + 16
----
2704

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT + + SUM( 1 ) + - + 43 * 92
----
-3955

skipif mysql # not compatible
query I rowsort label-1345
SELECT + + SUM ( 1 ) + - + 43 * 92
----
-3955

query II rowsort
SELECT - 31 col2, 43 + 35 * + 36 AS col0
----
-31
1303

query I rowsort
SELECT + - 76 + + 62
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1348
SELECT ALL - + 65 + ( - MIN( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1350
SELECT - - ( - + 38 ) * 97 + 43 * + COALESCE ( 77 - - 85 * + COUNT( * ), 71 * CAST( - 19 AS SIGNED ), 48 )
----
3280

skipif mysql # not compatible
query I rowsort label-1350
SELECT - - ( - + 38 ) * 97 + 43 * + COALESCE ( 77 - - 85 * + COUNT ( * ), 71 * CAST ( - 19 AS INTEGER ), 48 )
----
3280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1351
SELECT DISTINCT + COUNT( * ) + - CAST( NULL AS SIGNED ) + + 6 + COALESCE ( + COUNT( DISTINCT - 16 ), + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1351
SELECT DISTINCT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + 6 + COALESCE ( + COUNT ( DISTINCT - 16 ), + 91 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1352
SELECT ALL - CAST( + + 32 AS SIGNED ) + - 33
----
-65

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL - CAST ( + + 32 AS INTEGER ) + - 33
----
-65

query I rowsort
SELECT DISTINCT 59 * + 29 AS col2
----
1711

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1354
SELECT DISTINCT 18 + 90 AS col0, 4 DIV - 41 + MAX( DISTINCT 91 ) col2
----
108
91

skipif mysql # not compatible
query II rowsort label-1354
SELECT DISTINCT 18 + 90 AS col0, 4 / - 41 + MAX ( DISTINCT 91 ) col2
----
108
91

query I rowsort
SELECT ALL 77 + - 11
----
66

query I rowsort
SELECT DISTINCT 23 * - 71
----
-1633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1357
SELECT + CAST( NULL AS SIGNED ) / 28 / NULLIF ( - ( + 61 ), 41 * + 40 - ( + 66 ) ) * 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1357
SELECT + CAST ( NULL AS INTEGER ) / 28 / NULLIF ( - ( + 61 ), 41 * + 40 - ( + 66 ) ) * 3 AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( + + 20, 55, ( 50 ) ) * 20 AS col2
----
-400

query I rowsort
SELECT - CASE + 72 WHEN 63 THEN 89 * - NULLIF ( 93, - 27 * - 74 + - 72 ) END
----
NULL

query I rowsort
SELECT ALL 58 * - + NULLIF ( - 79, + 77 )
----
4582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1361
SELECT DISTINCT NULLIF ( - MIN( - + 98 ), 38 ) * CASE NULLIF ( - 24, - 10 ) WHEN 8 + 49 THEN COUNT( * ) * - CASE COUNT( * ) WHEN 24 THEN 47 * NULLIF ( + 86, + COALESCE ( - 2, 91 ) ) END + - CAST( NULL AS SIGNED ) END + - 20 * 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT NULLIF ( - MIN ( - + 98 ), 38 ) * CASE NULLIF ( - 24, - 10 ) WHEN 8 + 49 THEN COUNT ( * ) * - CASE COUNT ( * ) WHEN 24 THEN 47 * NULLIF ( + 86, + COALESCE ( - 2, 91 ) ) END + - CAST ( NULL AS INTEGER ) END + - 20 * 14 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1362
SELECT + 99 DIV 82
----
1

skipif mysql # not compatible
query I rowsort label-1362
SELECT + 99 / 82
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT DISTINCT + COALESCE ( - + COALESCE ( 51, + 36 ), 57 * + 55 - NULLIF ( + COUNT( * ), 47 / CASE 15 WHEN CASE ( 57 ) WHEN SUM( ALL - 38 ) THEN NULL WHEN MAX( - 77 ) THEN - 69 WHEN 81 + MIN( DISTINCT - 64 + - 46 ) THEN 23 ELSE 3 END + + 93 THEN + 7 * - 62 END ) * + COUNT( * ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT + COALESCE ( - + COALESCE ( 51, + 36 ), 57 * + 55 - NULLIF ( + COUNT ( * ), 47 / CASE 15 WHEN CASE ( 57 ) WHEN SUM ( ALL - 38 ) THEN NULL WHEN MAX ( - 77 ) THEN - 69 WHEN 81 + MIN ( DISTINCT - 64 + - 46 ) THEN 23 ELSE 3 END + + 93 THEN + 7 * - 62 END ) * + COUNT ( * ) ) AS col2
----
-51

query I rowsort
SELECT ALL 6 * 31 - - - 23
----
163

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

query I rowsort
SELECT ALL + 95 * + 70 - - 15
----
6665

query I rowsort
SELECT + 81 * ( + 62 ) AS col2
----
5022

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

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

query I rowsort
SELECT + ( - + NULLIF ( - 26, 48 * 75 ) ) AS col1
----
26

query I rowsort
SELECT + NULLIF ( - - NULLIF ( - 97, - + 37 * COALESCE ( + ( 28 ), 87 ) + ( + 28 ) ), - 76 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1371
SELECT DISTINCT COALESCE ( + - 23, + + CAST( - - 10 AS SIGNED ) ) * - CASE COUNT( * ) WHEN - 85 * - ( + 23 ) THEN COUNT( * ) / - 24 WHEN - COALESCE ( - 77, + 25, 18 ) * + 55 THEN 96 / - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT DISTINCT COALESCE ( + - 23, + + CAST ( - - 10 AS INTEGER ) ) * - CASE COUNT ( * ) WHEN - 85 * - ( + 23 ) THEN COUNT ( * ) / - 24 WHEN - COALESCE ( - 77, + 25, 18 ) * + 55 THEN 96 / - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 79 * + 42 AS col1
----
3318

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL + 61 * + + 64 + 93 + + - 15 - + 97 * - COUNT( * ) * 70 col2
----
10772

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL + 61 * + + 64 + 93 + + - 15 - + 97 * - COUNT ( * ) * 70 col2
----
10772

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT DISTINCT + 24 * - - MAX( ALL 87 ) * + 29 * - 17 + 85 * + 39
----
-1026069

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT + 24 * - - MAX ( ALL 87 ) * + 29 * - 17 + 85 * + 39
----
-1026069

query I rowsort
SELECT + + CASE - 16 WHEN 15 THEN + + 27 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1376
SELECT + - 85 DIV - 33 + - 14 * - 77 AS col2
----
1080

skipif mysql # not compatible
query I rowsort label-1376
SELECT + - 85 / - 33 + - 14 * - 77 AS col2
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT - - 80 * + MIN( DISTINCT - + 0 ) + - 11 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-1377
SELECT - - 80 * + MIN ( DISTINCT - + 0 ) + - 11 AS col2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1378
SELECT ALL + + 61 * - - 75 + 16 DIV + 57
----
4575

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL + + 61 * - - 75 + 16 / + 57
----
4575

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT - COUNT( * ) * + 62 + + + 86 - 36 + + 30 * 67
----
1998

skipif mysql # not compatible
query I rowsort label-1379
SELECT - COUNT ( * ) * + 62 + + + 86 - 36 + + 30 * 67
----
1998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1380
SELECT ALL - - 62 * - - 52 + - - 84 * + + CAST( NULL AS SIGNED ) * 71 + 69 * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL - - 62 * - - 52 + - - 84 * + + CAST ( NULL AS INTEGER ) * 71 + 69 * 46
----
NULL

query I rowsort
SELECT + 68 - + - 31 + - 43
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT DISTINCT + COUNT( + - 36 ) + - 89
----
-88

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT + COUNT ( + - 36 ) + - 89
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1383
SELECT ALL - - 12 + 31 AS col2, 62 * - CAST( NULL AS SIGNED )
----
43
NULL

skipif mysql # not compatible
query II rowsort label-1383
SELECT ALL - - 12 + 31 AS col2, 62 * - CAST ( NULL AS INTEGER )
----
43
NULL

query I rowsort
SELECT ALL - 57 + - 65 * - 98
----
6313

query I rowsort
SELECT - 83 - - 14
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT - CASE - ( + 19 ) WHEN + 82 THEN NULL WHEN - 1 THEN - 97 ELSE NULL END * ( 40 / - 89 + CASE WHEN COUNT( * ) > + 0 THEN - 16 ELSE - 8 / 99 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1386
SELECT - CASE - ( + 19 ) WHEN + 82 THEN NULL WHEN - 1 THEN - 97 ELSE NULL END * ( 40 / - 89 + CASE WHEN COUNT ( * ) > + 0 THEN - 16 ELSE - 8 / 99 END )
----
NULL

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

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

query I rowsort
SELECT - 30 + - 18
----
-48

query I rowsort
SELECT - 47 + 14 + 31
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT - COUNT( + 40 ) * - - 86 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-1390
SELECT - COUNT ( + 40 ) * - - 86 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT - COALESCE ( + NULLIF ( + + 48, + MIN( 37 ) * 43 ), + ( 56 ) - + 37 ) + 57 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-1391
SELECT - COALESCE ( + NULLIF ( + + 48, + MIN ( 37 ) * 43 ), + ( 56 ) - + 37 ) + 57 AS col0
----
9

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

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL CAST ( - + 19 AS INTEGER )
----
-19

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1395
SELECT ALL 5 * COUNT( * ) DIV - 44 AS col1, 31 AS col1
----
0
31

skipif mysql # not compatible
query II rowsort label-1395
SELECT ALL 5 * COUNT ( * ) / - 44 AS col1, 31 AS col1
----
0
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1396
SELECT + SUM( ALL - 39 ) DIV + + 30 + + 35 + - + 14 + - COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1396
SELECT + SUM ( ALL - 39 ) / + + 30 + + 35 + - + 14 + - COUNT ( * ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT ALL + COALESCE ( + 87, - MAX( - 12 ) * 11 )
----
87

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL + COALESCE ( + 87, - MAX ( - 12 ) * 11 )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1398
SELECT + 46 + - + ( 47 ) DIV + 99 - - - COUNT( * ) - + 5 * MAX( + COALESCE ( - 48, 99 ) ) AS col0
----
285

skipif mysql # not compatible
query I rowsort label-1398
SELECT + 46 + - + ( 47 ) / + 99 - - - COUNT ( * ) - + 5 * MAX ( + COALESCE ( - 48, 99 ) ) AS col0
----
285

query I rowsort
SELECT - 57 * + 76
----
-4332

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT + 63 * - 86 * + COALESCE ( - 71, - + 55, 68 * - 27, COUNT( * ) * 90 - 38 )
----
384678

skipif mysql # not compatible
query I rowsort label-1400
SELECT + 63 * - 86 * + COALESCE ( - 71, - + 55, 68 * - 27, COUNT ( * ) * 90 - 38 )
----
384678

query I rowsort
SELECT ALL 69 * - 11 AS col2
----
-759

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1404
SELECT + 39 * 88 + - 39 AS col2, ( - 91 ) * - COUNT( - 61 + + CAST( 82 AS SIGNED ) ) AS col2
----
3393
91

skipif mysql # not compatible
query II rowsort label-1404
SELECT + 39 * 88 + - 39 AS col2, ( - 91 ) * - COUNT ( - 61 + + CAST ( 82 AS INTEGER ) ) AS col2
----
3393
91

query I rowsort
SELECT DISTINCT + + 62 AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1406
SELECT DISTINCT + NULLIF ( + 93, - 81 * - - CAST( - 58 AS SIGNED ) + COALESCE ( 82 + + 92, - 81 ) * - 54 )
----
93

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT + NULLIF ( + 93, - 81 * - - CAST ( - 58 AS INTEGER ) + COALESCE ( 82 + + 92, - 81 ) * - 54 )
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1407
SELECT ALL - + 48 * - + 81 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL - + 48 * - + 81 / CAST ( NULL AS REAL )
----
NULL

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

query II rowsort
SELECT 94 AS col0, - 64
----
94
-64

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

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

query I rowsort
SELECT ALL 69 + + - CASE 26 WHEN + + 89 / 68 * + 80 + - 70 * + 9 THEN NULL WHEN + 77 THEN 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT - 39 + ( + SUM( DISTINCT - 71 ) ) * + 64 AS col1
----
-4583

skipif mysql # not compatible
query I rowsort label-1412
SELECT - 39 + ( + SUM ( DISTINCT - 71 ) ) * + 64 AS col1
----
-4583

query I rowsort
SELECT + 77 * 75 + + + 69
----
5844

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT DISTINCT + COALESCE ( + COUNT( + 84 ), - + 34 * 56 * + ( + 95 ) ) * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT + COALESCE ( + COUNT ( + 84 ), - + 34 * 56 * + ( + 95 ) ) * COUNT ( * ) AS col0
----
1

query I rowsort
SELECT ALL 10 * - 41 * 47 * - - 14 + - ( + 40 ) AS col0
----
-269820

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1417
SELECT ALL - - 85 + + + CAST( NULL AS SIGNED ) * - 99 AS col2, + 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-1417
SELECT ALL - - 85 + + + CAST ( NULL AS INTEGER ) * - 99 AS col2, + 84
----
NULL
84

query I rowsort
SELECT + 88 + - 74 * - 49 AS col1
----
3714

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT DISTINCT 58 * + + MIN( DISTINCT + ( - 72 ) )
----
-4176

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT 58 * + + MIN ( DISTINCT + ( - 72 ) )
----
-4176

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT ALL + COUNT( DISTINCT + 76 ) + + - 93
----
-92

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL + COUNT ( DISTINCT + 76 ) + + - 93
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1421
SELECT + 2 + + 61 DIV 53 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1421
SELECT + 2 + + 61 / 53 AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1422
SELECT ALL 21, 59 - - NULLIF ( 46, - + ( + 33 ) * MAX( 34 ) + COALESCE ( SUM( + 88 ), + 47 ) ) AS col2
----
21
105

skipif mysql # not compatible
query II rowsort label-1422
SELECT ALL 21, 59 - - NULLIF ( 46, - + ( + 33 ) * MAX ( 34 ) + COALESCE ( SUM ( + 88 ), + 47 ) ) AS col2
----
21
105

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

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

query II rowsort
SELECT 83 AS col2, - 68
----
83
-68

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

skipif mysql # not compatible
query II rowsort label-1425
SELECT - 81 AS col1, - COUNT ( * ) AS col1
----
-81
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1426
SELECT 90 + CASE - - CASE + COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN - - MAX( ALL 26 ) THEN 33 END WHEN 22 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN - MIN( 50 ) WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1426
SELECT 90 + CASE - - CASE + COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN - - MAX ( ALL 26 ) THEN 33 END WHEN 22 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - MIN ( 50 ) WHEN + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1427
SELECT MAX( + 3 ) DIV + 31 * - COALESCE ( + - 86, + - 39 - ( 98 ) * + 32, COUNT( * ) - - 47, + 67 ) * 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1427
SELECT MAX ( + 3 ) / + 31 * - COALESCE ( + - 86, + - 39 - ( 98 ) * + 32, COUNT ( * ) - - 47, + 67 ) * 24 AS col0
----
0

query I rowsort
SELECT ALL - 53 / + CASE + ( + 28 ) WHEN - - 32 THEN + + 50 ELSE NULL END * 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT DISTINCT - COUNT( * ) * 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT - COUNT ( * ) * 42 AS col0
----
-42

query II rowsort
SELECT 7, 10 AS col1
----
7
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1431
SELECT ALL - COALESCE ( - + 95, - COUNT( * ) DIV - AVG ( - 49 ) ) * - + 27 + + 98 AS col1
----
-2467

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL - COALESCE ( - + 95, - COUNT ( * ) / - AVG ( - 49 ) ) * - + 27 + + 98 AS col1
----
-2467

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1432
SELECT ALL 1, CAST( - 87 AS SIGNED ) AS col2
----
1
-87

skipif mysql # not compatible
query II rowsort label-1432
SELECT ALL 1, CAST ( - 87 AS INTEGER ) AS col2
----
1
-87

query I rowsort
SELECT DISTINCT + 36 * - - ( + - 62 ) AS col1
----
-2232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1434
SELECT - 55, - COUNT( * ) DIV + 49 + + - COUNT( * ) + - 16 - 28 + ( CAST( + 0 AS SIGNED ) + COUNT( * ) * 31 ) col2
----
-55
-14

skipif mysql # not compatible
query II rowsort label-1434
SELECT - 55, - COUNT ( * ) / + 49 + + - COUNT ( * ) + - 16 - 28 + ( CAST ( + 0 AS INTEGER ) + COUNT ( * ) * 31 ) col2
----
-55
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1435
SELECT 12 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-1435
SELECT 12 / + 66
----
0

query I rowsort
SELECT 21 * - 67
----
-1407

query I rowsort
SELECT + 35 * + + ( - ( 78 ) ) - - 17 * COALESCE ( 27, - 39 ) + + 70
----
-2201

query I rowsort
SELECT DISTINCT - NULLIF ( 83, - 40 ) + - 78 + ( - 16 )
----
-177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1439
SELECT ALL - + 95 AS col2, COUNT( * ) * - + 61 * - + 79 - - CAST( + + 8 AS SIGNED ) col0
----
-95
4827

skipif mysql # not compatible
query II rowsort label-1439
SELECT ALL - + 95 AS col2, COUNT ( * ) * - + 61 * - + 79 - - CAST ( + + 8 AS INTEGER ) col0
----
-95
4827

query II rowsort
SELECT DISTINCT - 3, 71 AS col0
----
-3
71

query II rowsort
SELECT ALL - + 17 AS col1, 19 col0
----
-17
19

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

skipif mysql # not compatible
query I rowsort label-1442
SELECT SUM ( - + ( + - ( 77 ) ) )
----
77

query II rowsort
SELECT - 70 + - 52 AS col0, 71 AS col1
----
-122
71

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

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

query I rowsort
SELECT ALL + - 33 + 16
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1446
SELECT DISTINCT - 73 AS col1, 9 * + ( CAST( NULL AS SIGNED ) )
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-1446
SELECT DISTINCT - 73 AS col1, 9 * + ( CAST ( NULL AS INTEGER ) )
----
-73
NULL

query I rowsort
SELECT + 37 * - + 3 * ( 54 ) + + - 97 col2
----
-6091

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT - MAX( + - 13 ) * - COALESCE ( COUNT( * ), + COUNT( * ) * 8, + 57 ) * - 88 + 8
----
1152

skipif mysql # not compatible
query I rowsort label-1448
SELECT - MAX ( + - 13 ) * - COALESCE ( COUNT ( * ), + COUNT ( * ) * 8, + 57 ) * - 88 + 8
----
1152

onlyif mysql # aggregate syntax: 
query II rowsort label-1449
SELECT 71 AS col2, COUNT( DISTINCT - 53 ) AS col1
----
71
1

skipif mysql # not compatible
query II rowsort label-1449
SELECT 71 AS col2, COUNT ( DISTINCT - 53 ) AS col1
----
71
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL - - 41 + - ( COUNT( 13 ) ) / + CASE 17 WHEN + 55 + + 77 THEN + 52 WHEN - CASE 43 WHEN 61 THEN 80 ELSE NULL END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL - - 41 + - ( COUNT ( 13 ) ) / + CASE 17 WHEN + 55 + + 77 THEN + 52 WHEN - CASE 43 WHEN 61 THEN 80 ELSE NULL END THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT ALL + 14 + + - 70 - - - COUNT( * ) * - 72 * 40 col2
----
2824

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL + 14 + + - 70 - - - COUNT ( * ) * - 72 * 40 col2
----
2824

query II rowsort
SELECT + - 24 AS col1, + 51 AS col2
----
-24
51

query I rowsort
SELECT 54 * + ( + 91 )
----
4914

query II rowsort
SELECT ALL - - 60, - 58 AS col0
----
60
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT ALL ( 32 ) - + 8 + + 91 + + + COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL ( 32 ) - + 8 + + 91 + + + COUNT ( * )
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-1456
SELECT - 6, - 53 + + + 77 - + - COUNT( * ) + - - 65 AS col0
----
-6
90

skipif mysql # not compatible
query II rowsort label-1456
SELECT - 6, - 53 + + + 77 - + - COUNT ( * ) + - - 65 AS col0
----
-6
90

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

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

query I rowsort
SELECT ALL 94 * + + 57
----
5358

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT MIN( 76 ) * 36 AS col1
----
2736

skipif mysql # not compatible
query I rowsort label-1460
SELECT MIN ( 76 ) * 36 AS col1
----
2736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1461
SELECT ALL 58 * + NULLIF ( + 11, - CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col1
----
638

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL 58 * + NULLIF ( + 11, - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col1
----
638

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT SUM( ALL 23 ) - - + 16
----
39

skipif mysql # not compatible
query I rowsort label-1462
SELECT SUM ( ALL 23 ) - - + 16
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT 67 * - COUNT( * ) * + 85 * 37
----
-210715

skipif mysql # not compatible
query I rowsort label-1463
SELECT 67 * - COUNT ( * ) * + 85 * 37
----
-210715

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT ( + 36 ) + COALESCE ( SUM( ALL - 69 ), - 52, + - 78 ) / CASE - 47 WHEN MIN( 45 ) * - 85 THEN NULL WHEN COUNT( * ) * - 50 THEN - 15 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1464
SELECT ( + 36 ) + COALESCE ( SUM ( ALL - 69 ), - 52, + - 78 ) / CASE - 47 WHEN MIN ( 45 ) * - 85 THEN NULL WHEN COUNT ( * ) * - 50 THEN - 15 ELSE NULL END
----
NULL

query I rowsort
SELECT 15 * 2 * 60 * - 51
----
-91800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1466
SELECT MAX( DISTINCT - 46 ) + CAST( - - 50 AS SIGNED ) - + + 97 * - + 94 AS col2
----
9122

skipif mysql # not compatible
query I rowsort label-1466
SELECT MAX ( DISTINCT - 46 ) + CAST ( - - 50 AS INTEGER ) - + + 97 * - + 94 AS col2
----
9122

query I rowsort
SELECT 95 + - - 96 AS col0
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT DISTINCT + COALESCE ( - ( + 30 ), 17 + + 9, + ( 34 ), - 70 ) + + COUNT( * ) * + 95 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1468
SELECT DISTINCT + COALESCE ( - ( + 30 ), 17 + + 9, + ( 34 ), - 70 ) + + COUNT ( * ) * + 95 AS col0
----
65

query I rowsort
SELECT ALL 92 + 79
----
171

query II rowsort
SELECT DISTINCT + 87 + + - NULLIF ( + 52, - 47 ) - - 64, - 49 + - - 32 col2
----
99
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT ALL - - 10 + + 79 * + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL - - 10 + + 79 * + + COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT DISTINCT + - NULLIF ( + 12, COALESCE ( + MAX( - + 99 ), + - 6 ) ) * - MAX( DISTINCT + 17 ) * 89 AS col1
----
18156

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT + - NULLIF ( + 12, COALESCE ( + MAX ( - + 99 ), + - 6 ) ) * - MAX ( DISTINCT + 17 ) * 89 AS col1
----
18156

onlyif mysql # aggregate syntax: 
query II rowsort label-1473
SELECT DISTINCT + ( - + 84 ), COUNT( * ) * - + 99 AS col2
----
-84
-99

skipif mysql # not compatible
query II rowsort label-1473
SELECT DISTINCT + ( - + 84 ), COUNT ( * ) * - + 99 AS col2
----
-84
-99

query I rowsort
SELECT ALL - + 18 * 61 AS col0
----
-1098

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT - + 98 * - NULLIF ( + + 2, + 47 / COALESCE ( 15, - - ( 93 ) + 55 * - COUNT( * ) ) ) + 54
----
250

skipif mysql # not compatible
query I rowsort label-1476
SELECT - + 98 * - NULLIF ( + + 2, + 47 / COALESCE ( 15, - - ( 93 ) + 55 * - COUNT ( * ) ) ) + 54
----
250

onlyif mysql # aggregate syntax: 
query II rowsort label-1477
SELECT - ( 0 ) AS col1, 8 * - 58 * - MAX( DISTINCT - 82 ) + - + 98 AS col1
----
0
-38146

skipif mysql # not compatible
query II rowsort label-1477
SELECT - ( 0 ) AS col1, 8 * - 58 * - MAX ( DISTINCT - 82 ) + - + 98 AS col1
----
0
-38146

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT ALL + + CASE - 25 WHEN + - COALESCE ( 57, - - 33 * - 41 * - COUNT( * ) * 36, COUNT( * ) ) / + 7 THEN 19 / + 70 WHEN 39 THEN + COUNT( * ) ELSE - 94 END AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL + + CASE - 25 WHEN + - COALESCE ( 57, - - 33 * - 41 * - COUNT ( * ) * 36, COUNT ( * ) ) / + 7 THEN 19 / + 70 WHEN 39 THEN + COUNT ( * ) ELSE - 94 END AS col1
----
-94

query I rowsort
SELECT - 97 * CASE 53 WHEN ( + 67 ) - + - 7 * - 85 THEN + 6 * ( + 65 ) END + 79 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1480
SELECT DISTINCT - + COALESCE ( - - COUNT( * ), - 58 ) * + CASE + 53 WHEN + COUNT( * ) THEN - + 3 WHEN + 15 * 92 THEN - COUNT( DISTINCT CAST( 3 AS SIGNED ) ) END + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT - + COALESCE ( - - COUNT ( * ), - 58 ) * + CASE + 53 WHEN + COUNT ( * ) THEN - + 3 WHEN + 15 * 92 THEN - COUNT ( DISTINCT CAST ( 3 AS INTEGER ) ) END + + 24
----
NULL

query I rowsort
SELECT DISTINCT + ( + 25 ) AS col1
----
25

query I rowsort
SELECT - 28 * - 22
----
616

query I rowsort
SELECT - + 80 + + - 4
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1484
SELECT DISTINCT + 69 * 30 + 93 - CAST( NULL AS SIGNED ) + COUNT( * ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT + 69 * 30 + 93 - CAST ( NULL AS INTEGER ) + COUNT ( * ) / + COUNT ( * )
----
NULL

query I rowsort
SELECT 62 * - + CASE - ( - 26 ) WHEN - 49 THEN NULL WHEN + + COALESCE ( + 97, - 85 - ( 91 + 19 * + 14 ) ) THEN + 53 END + 83 * + 78
----
NULL

query II rowsort
SELECT ALL + 35 AS col2, - 86 * + + 90
----
35
-7740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1487
SELECT - COALESCE ( 42, + - COALESCE ( - 57, - CASE - 42 WHEN - 8 / + 0 + 94 THEN NULL WHEN 83 * COUNT( * ) THEN 31 END, COUNT( DISTINCT 20 ) * - 62 ) + + CAST( 67 AS SIGNED ) ) + MIN( ALL + 43 ) * 80
----
3398

skipif mysql # not compatible
query I rowsort label-1487
SELECT - COALESCE ( 42, + - COALESCE ( - 57, - CASE - 42 WHEN - 8 / + 0 + 94 THEN NULL WHEN 83 * COUNT ( * ) THEN 31 END, COUNT ( DISTINCT 20 ) * - 62 ) + + CAST ( 67 AS INTEGER ) ) + MIN ( ALL + 43 ) * 80
----
3398

query I rowsort
SELECT DISTINCT + 53 * 33 AS col0
----
1749

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT + MAX( - 63 ) + + ( - CASE WHEN NOT ( 48 ) NOT IN ( 57 - 49 + 52 / COUNT( * ) ) THEN - 22 * 59 WHEN NOT ( NULL ) IS NOT NULL THEN + 68 * - NULLIF ( - 21, 41 ) ELSE NULL END ) + - 93
----
-1584

skipif mysql # not compatible
query I rowsort label-1489
SELECT + MAX ( - 63 ) + + ( - CASE WHEN NOT ( 48 ) NOT IN ( 57 - 49 + 52 / COUNT ( * ) ) THEN - 22 * 59 WHEN NOT ( NULL ) IS NOT NULL THEN + 68 * - NULLIF ( - 21, 41 ) ELSE NULL END ) + - 93
----
-1584

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1490
SELECT + CAST( + 7 AS SIGNED ) DIV + 40 - - 30
----
30

skipif mysql # not compatible
query I rowsort label-1490
SELECT + CAST ( + 7 AS INTEGER ) / + 40 - - 30
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1491
SELECT - ( COUNT( * ) ) DIV - 86 - - + 36 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-1491
SELECT - ( COUNT ( * ) ) / - 86 - - + 36 AS col0
----
36

query II rowsort
SELECT 38, 94 * - 66 * + + 45 AS col1
----
38
-279180

query I rowsort
SELECT + 64 * + 79
----
5056

query I rowsort
SELECT + 23 + - 46
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-1495
SELECT 46 AS col1, SUM( ALL + + ( + - 19 ) )
----
46
-19

skipif mysql # not compatible
query II rowsort label-1495
SELECT 46 AS col1, SUM ( ALL + + ( + - 19 ) )
----
46
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1496
SELECT 81 AS col0, + COUNT( * ) DIV + 54 + 0 * - 21 DIV - 87
----
81
0

skipif mysql # not compatible
query II rowsort label-1496
SELECT 81 AS col0, + COUNT ( * ) / + 54 + 0 * - 21 / - 87
----
81
0

query I rowsort
SELECT ALL 46 * - 50
----
-2300

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

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

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

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

query I rowsort
SELECT + 28 + + 1
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT - NULLIF ( 89, - 41 * COUNT( * ) + 84 + + 32 - + 15 )
----
-89

skipif mysql # not compatible
query I rowsort label-1502
SELECT - NULLIF ( 89, - 41 * COUNT ( * ) + 84 + + 32 - + 15 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT ALL 10 + - + COUNT( * ) * 97 - 98
----
-185

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL 10 + - + COUNT ( * ) * 97 - 98
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1504
SELECT DISTINCT COUNT( * ) AS col2, + CAST( + 26 AS SIGNED )
----
1
26

skipif mysql # not compatible
query II rowsort label-1504
SELECT DISTINCT COUNT ( * ) AS col2, + CAST ( + 26 AS INTEGER )
----
1
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT - 51 - - + COUNT( * ) + - 77 AS col1
----
-127

skipif mysql # not compatible
query I rowsort label-1505
SELECT - 51 - - + COUNT ( * ) + - 77 AS col1
----
-127

query I rowsort
SELECT + - 13 * - 56 + - - 33
----
761

query I rowsort
SELECT - - ( - - 51 )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1508
SELECT 58 AS col1, 16 + + - 13 + + COUNT( * ) * - COUNT( * )
----
58
2

skipif mysql # not compatible
query II rowsort label-1508
SELECT 58 AS col1, 16 + + - 13 + + COUNT ( * ) * - COUNT ( * )
----
58
2

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1511
SELECT ALL + 73 DIV - 26 + NULLIF ( + 29, + 17 - + 22 * + + 8 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL + 73 / - 26 + NULLIF ( + 29, + 17 - + 22 * + + 8 ) AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1512
SELECT - - COALESCE ( - 25, ( + 52 ) ) DIV + 25 - + 77
----
-78

skipif mysql # not compatible
query I rowsort label-1512
SELECT - - COALESCE ( - 25, ( + 52 ) ) / + 25 - + 77
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-1513
SELECT DISTINCT 53 DIV - 10 - - 19 * 47
----
888

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT 53 / - 10 - - 19 * 47
----
888

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT ALL + 86 / - 74 * - + 26 - + 45 - + - 78 * - CASE + - COUNT( * ) WHEN + + ( - 95 ) - + 46 THEN + MAX( 58 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL + 86 / - 74 * - + 26 - + 45 - + - 78 * - CASE + - COUNT ( * ) WHEN + + ( - 95 ) - + 46 THEN + MAX ( 58 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - - 70 + - 77 - + - ( + - 87 ) - - 73 * + 28 AS col1
----
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT - + ( + 6 ) + - + 61 * CASE + ( + 94 ) WHEN - 11 * + - 69 + 83 THEN NULL WHEN - 47 * 57 + + 66 THEN NULL ELSE 74 * CASE 27 WHEN + COUNT( * ) + + 30 THEN 90 WHEN 23 + ( - COUNT( * ) ) THEN NULL END END * ( - 18 ) + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1516
SELECT - + ( + 6 ) + - + 61 * CASE + ( + 94 ) WHEN - 11 * + - 69 + 83 THEN NULL WHEN - 47 * 57 + + 66 THEN NULL ELSE 74 * CASE 27 WHEN + COUNT ( * ) + + 30 THEN 90 WHEN 23 + ( - COUNT ( * ) ) THEN NULL END END * ( - 18 ) + 80
----
NULL

query I rowsort
SELECT ALL - 31 * 55 * 99
----
-168795

query I rowsort
SELECT + - 26 * ( - 94 ) AS col0
----
2444

query I rowsort
SELECT + + 51 * + 90
----
4590

query I rowsort
SELECT ALL 4 * 6 + + ( + 31 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT DISTINCT + COALESCE ( COUNT( * ), + + NULLIF ( - COUNT( * ), - COUNT( * ) ) * + + 82 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT + COALESCE ( COUNT ( * ), + + NULLIF ( - COUNT ( * ), - COUNT ( * ) ) * + + 82 ) col1
----
1

query I rowsort
SELECT - ( + + 55 ) * 8 + + 24
----
-416

query I rowsort
SELECT NULLIF ( - 67, - 94 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT NULLIF ( + 50, + 64 * - CASE 28 WHEN COUNT( * ) THEN + MIN( 21 ) WHEN + + 5 THEN NULL WHEN 46 * - COUNT( * ) THEN 11 * + 32 ELSE NULL END * - 2 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1524
SELECT NULLIF ( + 50, + 64 * - CASE 28 WHEN COUNT ( * ) THEN + MIN ( 21 ) WHEN + + 5 THEN NULL WHEN 46 * - COUNT ( * ) THEN 11 * + 32 ELSE NULL END * - 2 ) AS col0
----
50

query I rowsort
SELECT - ( + ( + 88 ) ) * - - 28 AS col1
----
-2464

query I rowsort
SELECT - 47 * + 55
----
-2585

query I rowsort
SELECT NULLIF ( - + 50, - 74 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT - NULLIF ( + COUNT( * ), + 35 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1528
SELECT - NULLIF ( + COUNT ( * ), + 35 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1529
SELECT + 99 DIV - 62 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1529
SELECT + 99 / - 62 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1530
SELECT DISTINCT ( - + COUNT( * ) ) AS col0, 25
----
-1
25

skipif mysql # not compatible
query II rowsort label-1530
SELECT DISTINCT ( - + COUNT ( * ) ) AS col0, 25
----
-1
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1531
SELECT 5 + COUNT( * ), 17 - + 57 AS col1
----
6
-40

skipif mysql # not compatible
query II rowsort label-1531
SELECT 5 + COUNT ( * ), 17 - + 57 AS col1
----
6
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT ALL MAX( - + 14 ) + + + 63 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL MAX ( - + 14 ) + + + 63 AS col2
----
49

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

skipif mysql # not compatible
query II rowsort label-1533
SELECT ALL - COUNT ( * ) + + - 27 AS col1, + CAST ( NULL AS INTEGER )
----
-28
NULL

query I rowsort
SELECT 21 * - - 7
----
147

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

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

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

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

query I rowsort
SELECT 4 + + 46
----
50

query II rowsort
SELECT 40 - + - 14 col0, + 22 - - 75 + + - 6
----
54
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1539
SELECT 60 * - - CAST( - - 86 AS SIGNED ) * COUNT( ALL + ( + 46 ) ) * - 75, 70 * - 39 * 26 AS col2
----
-387000
-70980

skipif mysql # not compatible
query II rowsort label-1539
SELECT 60 * - - CAST ( - - 86 AS INTEGER ) * COUNT ( ALL + ( + 46 ) ) * - 75, 70 * - 39 * 26 AS col2
----
-387000
-70980

query II rowsort
SELECT NULLIF ( - 61, - ( - 62 ) ) col0, 53 AS col2
----
-61
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1541
SELECT DISTINCT 6 DIV COUNT( * ) * 13 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT 6 / COUNT ( * ) * 13 AS col0
----
78

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1543
SELECT ALL 24 * + 35 / - + CASE + 77 WHEN - + 62 THEN NULL WHEN - + ( - + CAST( + + 5 AS SIGNED ) ) - + 95 - + 68 * 88 THEN + 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL 24 * + 35 / - + CASE + 77 WHEN - + 62 THEN NULL WHEN - + ( - + CAST ( + + 5 AS INTEGER ) ) - + 95 - + 68 * 88 THEN + 47 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1544
SELECT 53 + + - 43 DIV - + 48
----
53

skipif mysql # not compatible
query I rowsort label-1544
SELECT 53 + + - 43 / - + 48
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT ALL - ( - MAX( DISTINCT 3 ) ) - - 26 col1
----
29

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL - ( - MAX ( DISTINCT 3 ) ) - - 26 col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1546
SELECT DISTINCT - COALESCE ( - 79, 80 + + COUNT( * ) + 76 + + 15 DIV + - 20 * 81 DIV 0 - 18, - 27 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT - COALESCE ( - 79, 80 + + COUNT ( * ) + 76 + + 15 / + - 20 * 81 / 0 - 18, - 27 ) AS col1
----
79

query I rowsort
SELECT 99 + + 14
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1548
SELECT ALL CAST( NULL AS SIGNED ) * + 47 - - 42 * + 43 * - NULLIF ( - - COUNT( * ), + 80 + + 46 / 84 ) + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL CAST ( NULL AS INTEGER ) * + 47 - - 42 * + 43 * - NULLIF ( - - COUNT ( * ), + 80 + + 46 / 84 ) + + 53
----
NULL

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

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

query I rowsort
SELECT 22 + + + 29 + - 4 + - - 53 AS col0
----
100

query I rowsort
SELECT 9 * - ( + 36 )
----
-324

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1552
SELECT MIN( DISTINCT 78 ) + + AVG ( DISTINCT + 16 ) + - 61 + - 65 / CAST( NULL AS DECIMAL ) / ( - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1552
SELECT MIN ( DISTINCT 78 ) + + AVG ( DISTINCT + 16 ) + - 61 + - 65 / CAST ( NULL AS REAL ) / ( - 98 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1553
SELECT 1 DIV - ( - - ( 42 ) ) + + 62 + - 97 * + - NULLIF ( - 13, - 1 * AVG ( DISTINCT + 38 ) ) * 97
----
-122255

skipif mysql # not compatible
query I rowsort label-1553
SELECT 1 / - ( - - ( 42 ) ) + + 62 + - 97 * + - NULLIF ( - 13, - 1 * AVG ( DISTINCT + 38 ) ) * 97
----
-122255

query I rowsort
SELECT - 80 * + + 10
----
-800

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT - 51 DIV - - 5 + + - 64 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-1555
SELECT - 51 / - - 5 + + - 64 AS col2
----
-74

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

query I rowsort
SELECT DISTINCT - + 98
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1558
SELECT ALL + 8 + + + 22 * + 33 + CAST( NULL AS SIGNED ) * - NULLIF ( - 91, + 67 + - MAX( + + 1 ) ) + - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL + 8 + + + 22 * + 33 + CAST ( NULL AS INTEGER ) * - NULLIF ( - 91, + 67 + - MAX ( + + 1 ) ) + - 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT 86 - + - 16 + + ( - 83 ) * - 76 + - - MAX( - + 54 ) col1
----
6356

skipif mysql # not compatible
query I rowsort label-1559
SELECT 86 - + - 16 + + ( - 83 ) * - 76 + - - MAX ( - + 54 ) col1
----
6356

query I rowsort
SELECT + ( + 97 ) * 40 + - 26
----
3854

query I rowsort
SELECT ALL 35 * + 99
----
3465

onlyif mysql # DIV for integer division: 
query I rowsort label-1562
SELECT 70 DIV NULLIF ( - 14, + 18 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-1562
SELECT 70 / NULLIF ( - 14, + 18 ) AS col2
----
-5

query I rowsort
SELECT 76 + + 10 * ( + - 35 ) AS col1
----
-274

query I rowsort
SELECT DISTINCT 70 + - 70 * + CASE - 18 WHEN 52 THEN - + 89 END
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 87, - + 5 ) + - - 82 + + + ( - 35 ) AS col1
----
-40

query II rowsort
SELECT + 37 AS col0, 67 AS col1
----
37
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT ALL MIN( 19 ) * 48
----
912

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL MIN ( 19 ) * 48
----
912

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

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL + CAST ( NULL AS REAL ) + + 26
----
NULL

query I rowsort
SELECT ALL 69 + - 85 * + - 48 - + 34
----
4115

query I rowsort
SELECT 95 * + - 22 AS col2
----
-2090

query I rowsort
SELECT - 6 * - ( + 22 ) + ( + ( + - 44 ) ) * + 80 + - COALESCE ( - + ( - ( 27 ) ), - 53 )
----
-3415

query I rowsort
SELECT 20 * + 21
----
420

query I rowsort
SELECT DISTINCT - + 62 - + + 31
----
-93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1575
SELECT DISTINCT 17 col2, CAST( NULL AS SIGNED )
----
17
NULL

skipif mysql # not compatible
query II rowsort label-1575
SELECT DISTINCT 17 col2, CAST ( NULL AS INTEGER )
----
17
NULL

query I rowsort
SELECT ALL - 25 - 8 col2
----
-33

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

query I rowsort
SELECT DISTINCT - ( + 42 ) - - 6 AS col0
----
-36

query II rowsort
SELECT - + 31 AS col0, - ( + 77 ) + 17
----
-31
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT COUNT( * ) - + 85 * - SUM( DISTINCT - 18 )
----
-1529

skipif mysql # not compatible
query I rowsort label-1580
SELECT COUNT ( * ) - + 85 * - SUM ( DISTINCT - 18 )
----
-1529

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1582
SELECT ALL 68, SUM( ALL - + 13 ) * CAST( NULL AS SIGNED ) * 54 AS col2
----
68
NULL

skipif mysql # not compatible
query II rowsort label-1582
SELECT ALL 68, SUM ( ALL - + 13 ) * CAST ( NULL AS INTEGER ) * 54 AS col2
----
68
NULL

query I rowsort
SELECT 78 * + 12 * + 70
----
65520

query I rowsort
SELECT - 37 + 41
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT 24 * + 92 * COUNT( * ) * - 97 AS col1
----
-214176

skipif mysql # not compatible
query I rowsort label-1585
SELECT 24 * + 92 * COUNT ( * ) * - 97 AS col1
----
-214176

onlyif mysql # DIV for integer division: 
query I rowsort label-1586
SELECT DISTINCT + + ( - - 88 ) DIV 26
----
3

skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT + + ( - - 88 ) / 26
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1587
SELECT ALL + 48 * - 44 + - COUNT( * ) + + 29 * - - CAST( - - 56 AS SIGNED ) * - 2
----
-5361

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL + 48 * - 44 + - COUNT ( * ) + + 29 * - - CAST ( - - 56 AS INTEGER ) * - 2
----
-5361

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

query I rowsort
SELECT 26 * + - 36 AS col1
----
-936

query I rowsort
SELECT 96 + + 77 * + 54 * + - 13 + - 78 col2
----
-54036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1591
SELECT + 98 * 69 * + 36 - + - 89 + - 73 + 90 * + 89 * + 44 DIV 22 + - COUNT( * )
----
259467

skipif mysql # not compatible
query I rowsort label-1591
SELECT + 98 * 69 * + 36 - + - 89 + - 73 + 90 * + 89 * + 44 / 22 + - COUNT ( * )
----
259467

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT SUM( + - 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-1593
SELECT SUM ( + - 37 ) AS col1
----
-37

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

skipif mysql # not compatible
query I rowsort label-1594
SELECT 86 * COUNT ( ALL + 53 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT COUNT( DISTINCT 25 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1595
SELECT COUNT ( DISTINCT 25 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1596
SELECT COUNT( ALL 98 ), + 58 AS col0
----
1
58

skipif mysql # not compatible
query II rowsort label-1596
SELECT COUNT ( ALL 98 ), + 58 AS col0
----
1
58

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1598
SELECT ALL 91 * 41 + - + CASE 62 WHEN - COALESCE ( 16, COUNT( * ) ) * - 69 - - + COUNT( * ) THEN NULL WHEN 62 THEN NULL ELSE + CAST( + ( - 67 ) AS SIGNED ) / 59 + 47 END * - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL 91 * 41 + - + CASE 62 WHEN - COALESCE ( 16, COUNT ( * ) ) * - 69 - - + COUNT ( * ) THEN NULL WHEN 62 THEN NULL ELSE + CAST ( + ( - 67 ) AS INTEGER ) / 59 + 47 END * - 85 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT + CASE - CASE - - 48 WHEN + 0 * - 31 THEN NULL WHEN 61 * - 5 + 21 THEN - 28 * - 44 * 29 + - 43 END WHEN 3 THEN - 35 / COUNT( * ) + 89 WHEN 95 * + COUNT( + 31 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1600
SELECT + CASE - CASE - - 48 WHEN + 0 * - 31 THEN NULL WHEN 61 * - 5 + 21 THEN - 28 * - 44 * 29 + - 43 END WHEN 3 THEN - 35 / COUNT ( * ) + 89 WHEN 95 * + COUNT ( + 31 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + 40 * + ( - + 14 )
----
-560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT DISTINCT SUM( ALL 13 ) * + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT SUM ( ALL 13 ) * + COUNT ( * )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1604
SELECT - 65 * - 20 * 96 - MAX( DISTINCT + - 50 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1604
SELECT - 65 * - 20 * 96 - MAX ( DISTINCT + - 50 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1605
SELECT - COUNT( * ) DIV + - 32 AS col1, - COALESCE ( - - 23, 64 * + - 62, 33 + - 82 - 72 + - 67 DIV - 9 - - 87 DIV 34 )
----
0
-23

skipif mysql # not compatible
query II rowsort label-1605
SELECT - COUNT ( * ) / + - 32 AS col1, - COALESCE ( - - 23, 64 * + - 62, 33 + - 82 - 72 + - 67 / - 9 - - 87 / 34 )
----
0
-23

query I rowsort
SELECT + 98 + 74 + 25 - + 77 - - 95 + - 58 * - - 49 AS col2
----
-2627

query II rowsort
SELECT 8 AS col0, - 21
----
8
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT DISTINCT NULLIF ( 39, + SUM( DISTINCT + 63 ) ) * COALESCE ( - 44, + 42, + 7, - - 38 ) * + 52
----
-89232

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT NULLIF ( 39, + SUM ( DISTINCT + 63 ) ) * COALESCE ( - 44, + 42, + 7, - - 38 ) * + 52
----
-89232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1609
SELECT ALL - CAST( - MAX( DISTINCT + 76 ) AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL - CAST ( - MAX ( DISTINCT + 76 ) AS INTEGER )
----
76

query I rowsort
SELECT - 99 - 70 * + + 36
----
-2619

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT + 38 * + 81 + + - COUNT( * )
----
3077

skipif mysql # not compatible
query I rowsort label-1611
SELECT + 38 * + 81 + + - COUNT ( * )
----
3077

query I rowsort
SELECT + 42 + 16
----
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT - - MAX( DISTINCT - 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-1614
SELECT - - MAX ( DISTINCT - 26 ) AS col1
----
-26

query I rowsort
SELECT DISTINCT + COALESCE ( + 6, - ( - - 24 ) ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1616
SELECT - 85 AS col2, - CAST( CASE 17 WHEN 59 - 28 * + ( + - COALESCE ( 74, 53 / + 74 + - 39 * - CASE - ( - 51 ) * - COUNT( * ) WHEN - CASE + 20 WHEN 82 THEN NULL ELSE 42 * 22 + 25 END THEN 54 + 23 ELSE NULL END, 74 - 55 ) ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN 64 ELSE + CAST( 82 AS SIGNED ) + + ( 50 + + NULLIF ( 69, 66 ) ) END AS SIGNED ) AS col1
----
-85
-201

skipif mysql # not compatible
query II rowsort label-1616
SELECT - 85 AS col2, - CAST ( CASE 17 WHEN 59 - 28 * + ( + - COALESCE ( 74, 53 / + 74 + - 39 * - CASE - ( - 51 ) * - COUNT ( * ) WHEN - CASE + 20 WHEN 82 THEN NULL ELSE 42 * 22 + 25 END THEN 54 + 23 ELSE NULL END, 74 - 55 ) ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN 64 ELSE + CAST ( 82 AS INTEGER ) + + ( 50 + + NULLIF ( 69, 66 ) ) END AS INTEGER ) AS col1
----
-85
-201

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1617
SELECT - + 8 * + COUNT( * ), 27 DIV - 52 AS col2
----
-8
0

skipif mysql # not compatible
query II rowsort label-1617
SELECT - + 8 * + COUNT ( * ), 27 / - 52 AS col2
----
-8
0

query I rowsort
SELECT - 39 + COALESCE ( 54, 86 * - 53 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT - - COUNT( * ) + + 49 + + - COUNT( * ) + - 70
----
-21

skipif mysql # not compatible
query I rowsort label-1619
SELECT - - COUNT ( * ) + + 49 + + - COUNT ( * ) + - 70
----
-21

query II rowsort
SELECT ALL 47 AS col2, - NULLIF ( + - 38, - - 6 )
----
47
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT DISTINCT + MIN( ALL - 3 ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-1621
SELECT DISTINCT + MIN ( ALL - 3 ) col0
----
-3

query I rowsort
SELECT ALL - 52 * - 3 AS col2
----
156

query I rowsort
SELECT - 1 * 32 + 81 * - 10 + - - 58 + + + 8 + + 3
----
-773

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

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL + COUNT ( * ) + - 24 + - 11 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query III rowsort label-1625
SELECT ALL - 51 AS col2, COUNT( * ) AS col0, + COUNT( - NULLIF ( 91, - 40 ) )
----
-51
1
1

skipif mysql # not compatible
query III rowsort label-1625
SELECT ALL - 51 AS col2, COUNT ( * ) AS col0, + COUNT ( - NULLIF ( 91, - 40 ) )
----
-51
1
1

query I rowsort
SELECT - + 81 * + 80 col2
----
-6480

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1628
SELECT ALL 75 / 15 + CAST( NULL AS SIGNED ) - - 99 + 94 * + - COUNT( * ) * - 42 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL 75 / 15 + CAST ( NULL AS INTEGER ) - - 99 + 94 * + - COUNT ( * ) * - 42 col2
----
NULL

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

query I rowsort
SELECT + 93 * - 96 * + 40 + + + ( + 18 ) AS col1
----
-357102

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT DISTINCT + COALESCE ( + + COALESCE ( + + 95, - COUNT( * ) * + 97 * - ( 86 ) * NULLIF ( - 61, - 38 * - - 47 + + 86 + 63 / - ( + 26 + + 85 ) ) + 67 * + 8, 90, + MIN( ALL + 46 ) ), - COALESCE ( - ( + COUNT( * ) ), + 49 ), - CASE WHEN 91 NOT BETWEEN NULL AND NULL THEN NULL ELSE 3 END )
----
95

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT + COALESCE ( + + COALESCE ( + + 95, - COUNT ( * ) * + 97 * - ( 86 ) * NULLIF ( - 61, - 38 * - - 47 + + 86 + 63 / - ( + 26 + + 85 ) ) + 67 * + 8, 90, + MIN ( ALL + 46 ) ), - COALESCE ( - ( + COUNT ( * ) ), + 49 ), - CASE WHEN 91 NOT BETWEEN NULL AND NULL THEN NULL ELSE 3 END )
----
95

query I rowsort
SELECT - 88 + - 63 AS col1
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT ALL ( - SUM( DISTINCT + 66 ) ) * + ( - 32 ) * - 87 * - + MIN( + 84 ) + 2 + + 88 + - NULLIF ( 16, 14 )
----
15434570

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL ( - SUM ( DISTINCT + 66 ) ) * + ( - 32 ) * - 87 * - + MIN ( + 84 ) + 2 + + 88 + - NULLIF ( 16, 14 )
----
15434570

query I rowsort
SELECT ( 40 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT ALL SUM( - ( 42 ) ) * 88
----
-3696

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL SUM ( - ( 42 ) ) * 88
----
-3696

query I rowsort
SELECT + 82 + + - 89 + + 62
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1637
SELECT ALL + CAST( 71 AS SIGNED ) AS col0, 75 AS col1
----
71
75

skipif mysql # not compatible
query II rowsort label-1637
SELECT ALL + CAST ( 71 AS INTEGER ) AS col0, 75 AS col1
----
71
75

query I rowsort
SELECT NULLIF ( + 6, - 56 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1639
SELECT - 22 + + CASE - 8 WHEN + COUNT( * ) * - COUNT( * ) + 96 THEN - + 69 + 93 * + 51 + - CASE + 37 WHEN - CAST( NULL AS SIGNED ) * - 81 THEN 34 WHEN - 33 * + 33 THEN NULL END WHEN 64 THEN 83 + + COUNT( * ) ELSE NULL END / NULLIF ( 7 + + SUM( DISTINCT 25 ), 50 * + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT - 22 + + CASE - 8 WHEN + COUNT ( * ) * - COUNT ( * ) + 96 THEN - + 69 + 93 * + 51 + - CASE + 37 WHEN - CAST ( NULL AS INTEGER ) * - 81 THEN 34 WHEN - 33 * + 33 THEN NULL END WHEN 64 THEN 83 + + COUNT ( * ) ELSE NULL END / NULLIF ( 7 + + SUM ( DISTINCT 25 ), 50 * + 65 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1640
SELECT + 28 - COUNT ( * ) AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1641
SELECT - 98 * + - 55 * + COUNT( * ) + COUNT( * ) + - 51 + 11 - ( ( - - ( - + 80 ) ) ) * + COUNT( * ) DIV + NULLIF ( 93, 46 ) DIV 11
----
5351

skipif mysql # not compatible
query I rowsort label-1641
SELECT - 98 * + - 55 * + COUNT ( * ) + COUNT ( * ) + - 51 + 11 - ( ( - - ( - + 80 ) ) ) * + COUNT ( * ) / + NULLIF ( 93, 46 ) / 11
----
5351

query I rowsort
SELECT ALL 13 * 6 AS col1
----
78

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

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

query I rowsort
SELECT + 40 * + 26 * + - 87
----
-90480

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT + - MAX( 8 ) * + 10 + + 69 + + + 12 * - ( 99 ) - - COALESCE ( 82, + 98 ) + + 85 * + + 24
----
923

skipif mysql # not compatible
query I rowsort label-1645
SELECT + - MAX ( 8 ) * + 10 + + 69 + + + 12 * - ( 99 ) - - COALESCE ( 82, + 98 ) + + 85 * + + 24
----
923

query I rowsort
SELECT ALL - 48 * - + 96 AS col1
----
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT DISTINCT - 4 * + ( ( + 68 ) ) * COUNT( * ) * ( ( - + 79 ) ) AS col0
----
21488

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT - 4 * + ( ( + 68 ) ) * COUNT ( * ) * ( ( - + 79 ) ) AS col0
----
21488

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

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

query I rowsort
SELECT DISTINCT - + 90 + + - ( + ( + 67 ) ) col2
----
-157

query I rowsort
SELECT ALL 60 + 45
----
105

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1652
SELECT - ( + 19 ), - MIN( DISTINCT + 4 ) col0
----
-19
-4

skipif mysql # not compatible
query II rowsort label-1652
SELECT - ( + 19 ), - MIN ( DISTINCT + 4 ) col0
----
-19
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-1653
SELECT - + 35 + + + 96 AS col0, 56 + + - COUNT( * )
----
61
55

skipif mysql # not compatible
query II rowsort label-1653
SELECT - + 35 + + + 96 AS col0, 56 + + - COUNT ( * )
----
61
55

query I rowsort
SELECT ALL - - 85 + 97 AS col2
----
182

query I rowsort
SELECT ALL + 77 * - 76
----
-5852

query I rowsort
SELECT ALL - 5 - + - 9 + ( - 35 ) + + 68 * - + NULLIF ( - 29, + + 95 + - + 43 )
----
1941

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1657
SELECT ALL - CAST( - 82 AS SIGNED ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL - CAST ( - 82 AS INTEGER ) AS col0
----
82

onlyif mysql # DIV for integer division: 
query II rowsort label-1658
SELECT 21 DIV - ( - 45 ) col1, - 52 AS col1
----
0
-52

skipif mysql # not compatible
query II rowsort label-1658
SELECT 21 / - ( - 45 ) col1, - 52 AS col1
----
0
-52

query I rowsort
SELECT - 51 * - 24 - 35 + + 64 col0
----
1253

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1662
SELECT 11 DIV COUNT( DISTINCT - + 58 ) col0, + 69 + ( 58 ) * + - 25 * + + 67
----
11
-97081

skipif mysql # not compatible
query II rowsort label-1662
SELECT 11 / COUNT ( DISTINCT - + 58 ) col0, + 69 + ( 58 ) * + - 25 * + + 67
----
11
-97081

query II rowsort
SELECT + 46 AS col2, 86 AS col1
----
46
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1664
SELECT 24 DIV + 22 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1664
SELECT 24 / + 22 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT 30 * + + SUM( - + 47 ) AS col1
----
-1410

skipif mysql # not compatible
query I rowsort label-1665
SELECT 30 * + + SUM ( - + 47 ) AS col1
----
-1410

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT DISTINCT 27 * + 34 * 43 * - MAX( ALL + 21 ) AS col0
----
-828954

skipif mysql # not compatible
query I rowsort label-1666
SELECT DISTINCT 27 * + 34 * 43 * - MAX ( ALL + 21 ) AS col0
----
-828954

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT ALL 86 * 13 * + + COUNT( * ) AS col0
----
1118

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL 86 * 13 * + + COUNT ( * ) AS col0
----
1118

query II rowsort
SELECT + 15 AS col2, 47 + 55 AS col2
----
15
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT MAX( ALL 40 ) * 96 col1
----
3840

skipif mysql # not compatible
query I rowsort label-1669
SELECT MAX ( ALL 40 ) * 96 col1
----
3840

query I rowsort
SELECT 53 + - 98 AS col0
----
-45

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

query II rowsort
SELECT - 75, - 22 + 78 AS col0
----
-75
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT ALL - + COALESCE ( 17, + COUNT( * ) ) + 41 + - 86 + 7 + 78 + - ( + COUNT( * ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL - + COALESCE ( 17, + COUNT ( * ) ) + 41 + - 86 + 7 + 78 + - ( + COUNT ( * ) ) AS col0
----
22

query I rowsort
SELECT - 4 * 66 - 64 AS col2
----
-328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1675
SELECT + 8 * + COALESCE ( - 38, - 29 - + COALESCE ( - + COUNT( * ), - + ( + 25 ), + 10, + 67 ) + + CAST( NULL AS SIGNED ), ( - 94 ), - 94 * + 61 + + CAST( - 70 AS SIGNED ) ) * 99
----
-30096

skipif mysql # not compatible
query I rowsort label-1675
SELECT + 8 * + COALESCE ( - 38, - 29 - + COALESCE ( - + COUNT ( * ), - + ( + 25 ), + 10, + 67 ) + + CAST ( NULL AS INTEGER ), ( - 94 ), - 94 * + 61 + + CAST ( - 70 AS INTEGER ) ) * 99
----
-30096

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT - COUNT( * ) + - SUM( 91 )
----
-92

skipif mysql # not compatible
query I rowsort label-1676
SELECT - COUNT ( * ) + - SUM ( 91 )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1677
SELECT ALL - 61 + 2 + 17 DIV + 10 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL - 61 + 2 + 17 / + 10 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query III rowsort label-1678
SELECT + 97 - + ( - + 74 ) AS col0, + 29, + ( + COUNT( * ) ) AS col2
----
171
29
1

skipif mysql # not compatible
query III rowsort label-1678
SELECT + 97 - + ( - + 74 ) AS col0, + 29, + ( + COUNT ( * ) ) AS col2
----
171
29
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT ( SUM( DISTINCT - 7 ) ) - - 97 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1680
SELECT ( SUM ( DISTINCT - 7 ) ) - - 97 AS col1
----
90

query I rowsort
SELECT + 24 + COALESCE ( + + 8, + + 39 )
----
32

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

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

query I rowsort
SELECT 70 + + 95 - - 61 * - 68 AS col0
----
-3983

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

query I rowsort
SELECT - 90 + + - 26 - + - 96 AS col2
----
-20

query II rowsort
SELECT ALL 77 - + + 66 col2, + ( + 60 )
----
11
60

query I rowsort
SELECT 15 * + - 98 AS col2
----
-1470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1688
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) * + 79 * 4, 1 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1688
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + 79 * 4, 1 AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1689
SELECT - MAX( ALL - 91 ) col0, - ( - + 91 ) AS col1
----
91
91

skipif mysql # not compatible
query II rowsort label-1689
SELECT - MAX ( ALL - 91 ) col0, - ( - + 91 ) AS col1
----
91
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1690
SELECT 34 + - 12 + - + MIN( ALL - 5 ) + + 20 DIV - 80 DIV 61 * 48
----
27

skipif mysql # not compatible
query I rowsort label-1690
SELECT 34 + - 12 + - + MIN ( ALL - 5 ) + + 20 / - 80 / 61 * 48
----
27

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

skipif mysql # not compatible
query I rowsort label-1691
SELECT MAX ( + - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT ALL - COUNT( DISTINCT ( CASE + ( - + 1 ) WHEN 66 THEN NULL WHEN 27 THEN 96 END ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL - COUNT ( DISTINCT ( CASE + ( - + 1 ) WHEN 66 THEN NULL WHEN 27 THEN 96 END ) ) AS col1
----
0

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

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

query I rowsort
SELECT 50 * - 33
----
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT MIN( 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1695
SELECT MIN ( 83 ) AS col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1696
SELECT COUNT( * ) DIV + - COUNT( * ) + + - 63 + - 42 * + 65 AS col0
----
-2794

skipif mysql # not compatible
query I rowsort label-1696
SELECT COUNT ( * ) / + - COUNT ( * ) + + - 63 + - 42 * + 65 AS col0
----
-2794

query I rowsort
SELECT ALL ( + + 63 ) * + 73 AS col1
----
4599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1698
SELECT 40 + 87 * CASE 92 WHEN - - CAST( - SUM( 15 ) AS SIGNED ) * + 13 * 19 / - 86 + - 47 THEN + - 36 WHEN + - 89 * - 53 THEN NULL ELSE 36 * - 47 END * - 6
----
883264

skipif mysql # not compatible
query I rowsort label-1698
SELECT 40 + 87 * CASE 92 WHEN - - CAST ( - SUM ( 15 ) AS INTEGER ) * + 13 * 19 / - 86 + - 47 THEN + - 36 WHEN + - 89 * - 53 THEN NULL ELSE 36 * - 47 END * - 6
----
883264

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT 55 + - NULLIF ( + 43, - - 41 * ( - + MAX( 95 ) ) )
----
12

skipif mysql # not compatible
query I rowsort label-1699
SELECT 55 + - NULLIF ( + 43, - - 41 * ( - + MAX ( 95 ) ) )
----
12

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1702
SELECT DISTINCT + ( + - ( - SUM( - NULLIF ( - COALESCE ( - 59, CAST( NULL AS SIGNED ), + + 55 ), + 99 + 92 * - - 65 + CAST( 93 AS SIGNED ) ) ) ) ) + 0
----
-59

skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT + ( + - ( - SUM ( - NULLIF ( - COALESCE ( - 59, CAST ( NULL AS INTEGER ), + + 55 ), + 99 + 92 * - - 65 + CAST ( 93 AS INTEGER ) ) ) ) ) + 0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT ALL + COUNT( 60 ) + 57
----
58

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL + COUNT ( 60 ) + 57
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1704
SELECT DISTINCT - - 19 DIV + 9 + - 84
----
-82

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT - - 19 / + 9 + - 84
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1705
SELECT 37 DIV + 94 col0
----
0

skipif mysql # not compatible
query I rowsort label-1705
SELECT 37 / + 94 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL - 65 + - - COUNT( * ) * - - 51 * - + 53 - - 41
----
-2727

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL - 65 + - - COUNT ( * ) * - - 51 * - + 53 - - 41
----
-2727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1707
SELECT SUM( DISTINCT + + 49 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT SUM ( DISTINCT + + 49 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1708
SELECT ALL - 54 DIV - NULLIF ( + 77, - - 43 ) col2, + 66
----
0
66

skipif mysql # not compatible
query II rowsort label-1708
SELECT ALL - 54 / - NULLIF ( + 77, - - 43 ) col2, + 66
----
0
66

query I rowsort
SELECT ALL - 4 + - 80 - + 92 AS col1
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT 6 + + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-1710
SELECT 6 + + COUNT ( * )
----
7

query I rowsort
SELECT ALL COALESCE ( + 44, + 53 ) AS col0
----
44

query II rowsort
SELECT DISTINCT - + 64 - - 60, 35 col0
----
-4
35

query I rowsort
SELECT DISTINCT 9 - + + 14 AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1714
SELECT - - 58 * + - 84 * - ( - + 63 ) * COUNT( + 74 ) + NULLIF ( + CASE - 57 WHEN - 60 + + - 98 THEN NULL WHEN - 33 THEN + - CAST( 82 AS SIGNED ) + 58 ELSE + 16 * + COUNT( * ) END, - 86 )
----
-306920

skipif mysql # not compatible
query I rowsort label-1714
SELECT - - 58 * + - 84 * - ( - + 63 ) * COUNT ( + 74 ) + NULLIF ( + CASE - 57 WHEN - 60 + + - 98 THEN NULL WHEN - 33 THEN + - CAST ( 82 AS INTEGER ) + 58 ELSE + 16 * + COUNT ( * ) END, - 86 )
----
-306920

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

skipif mysql # not compatible
query I rowsort label-1715
SELECT SUM ( + 88 )
----
88

query II rowsort
SELECT 55 AS col1, 27 * 4
----
55
108

query I rowsort
SELECT - 35 + 13 AS col2
----
-22

query I rowsort
SELECT + 59 + - + 84 col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1719
SELECT DISTINCT 65 DIV 63 DIV - 47 col2
----
0

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT 65 / 63 / - 47 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT + COUNT( * ) + + 31 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1720
SELECT + COUNT ( * ) + + 31 AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1721
SELECT - 5 DIV - - ( + 62 ) * - 1 + + - 20
----
-20

skipif mysql # not compatible
query I rowsort label-1721
SELECT - 5 / - - ( + 62 ) * - 1 + + - 20
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT ALL COUNT( * ) * 45 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL COUNT ( * ) * 45 AS col2
----
45

query I rowsort
SELECT + 23 * + 25 AS col1
----
575

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT + 58 - + - COUNT( * ) col1
----
59

skipif mysql # not compatible
query I rowsort label-1724
SELECT + 58 - + - COUNT ( * ) col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT ALL MAX( DISTINCT + - 72 ) * + - 8 + 89 AS col1
----
665

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL MAX ( DISTINCT + - 72 ) * + - 8 + 89 AS col1
----
665

query I rowsort
SELECT DISTINCT ( - - 21 ) * + + 9 * + 80 AS col1
----
15120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1727
SELECT DISTINCT 4 / - + CAST( NULL AS SIGNED ) * MIN( DISTINCT + + 66 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT 4 / - + CAST ( NULL AS INTEGER ) * MIN ( DISTINCT + + 66 ) AS col1
----
NULL

query I rowsort
SELECT ( 71 ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT + COALESCE ( 61, + 88, - MIN( ALL 73 ) )
----
61

skipif mysql # not compatible
query I rowsort label-1729
SELECT + COALESCE ( 61, + 88, - MIN ( ALL 73 ) )
----
61

query I rowsort
SELECT - 21 * - 46 AS col0
----
966

query I rowsort
SELECT ALL - 71 * - 83 + + 79
----
5972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1732
SELECT ALL - - 76 * + + CAST( NULL AS SIGNED ) * - + ( 16 ) + + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL - - 76 * + + CAST ( NULL AS INTEGER ) * - + ( 16 ) + + + 41
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1733
SELECT + - 80 * - - COUNT( * ) DIV 95 * + 97 - + + 21
----
-21

skipif mysql # not compatible
query I rowsort label-1733
SELECT + - 80 * - - COUNT ( * ) / 95 * + 97 - + + 21
----
-21

query I rowsort
SELECT DISTINCT 8 * - - 74 + + + 12 + + - 14 AS col0
----
590

query II rowsort
SELECT + + 36 AS col0, + 90 * - 54
----
36
-4860

query II rowsort
SELECT - 10 AS col2, - 84
----
-10
-84

query I rowsort
SELECT + 96 + + - 73 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ALL - 56 * + 96 * + 95 + - + 46 - 5 + COUNT( DISTINCT - 68 ) col1
----
-510770

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL - 56 * + 96 * + 95 + - + 46 - 5 + COUNT ( DISTINCT - 68 ) col1
----
-510770

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1739
SELECT + NULLIF ( + 67, - 7 + + - 27 + - 58 ) AS col0, + ( + 69 ) DIV + COUNT( * ) AS col0
----
67
69

skipif mysql # not compatible
query II rowsort label-1739
SELECT + NULLIF ( + 67, - 7 + + - 27 + - 58 ) AS col0, + ( + 69 ) / + COUNT ( * ) AS col0
----
67
69

query II rowsort
SELECT 70 * + 90 + - + 87 * 10 * 87 AS col1, 21 * - + 27 + - 22 + + 36 col1
----
-69390
-553

query II rowsort
SELECT - - 78 + - + 75 * 72, 55 AS col0
----
-5322
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT - + COUNT( * ) + + + 32 * - 46 - COUNT( * ) * + 22 * - 72 * + ( - 31 ) AS col2
----
-50577

skipif mysql # not compatible
query I rowsort label-1742
SELECT - + COUNT ( * ) + + + 32 * - 46 - COUNT ( * ) * + 22 * - 72 * + ( - 31 ) AS col2
----
-50577

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1744
SELECT - 81 * - 11 - COALESCE ( + - 30, - COUNT( * ) ), 33 AS col1
----
921
33

skipif mysql # not compatible
query II rowsort label-1744
SELECT - 81 * - 11 - COALESCE ( + - 30, - COUNT ( * ) ), 33 AS col1
----
921
33

query I rowsort
SELECT ALL + + 99 * 40 * 4
----
15840

onlyif mysql # aggregate syntax: 
query II rowsort label-1746
SELECT + COUNT( * ) + - - 10 * - 66 AS col0, 71 AS col2
----
-659
71

skipif mysql # not compatible
query II rowsort label-1746
SELECT + COUNT ( * ) + - - 10 * - 66 AS col0, 71 AS col2
----
-659
71

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

query I rowsort
SELECT - 18 + - 32
----
-50

query I rowsort
SELECT - 29 * + ( - + 90 )
----
2610

query I rowsort
SELECT - 35 * + - NULLIF ( ( - 12 ), - 17 )
----
-420

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1751
SELECT - MAX( - - 66 ) + + CAST( NULL AS DECIMAL ) + + + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT - MAX ( - - 66 ) + + CAST ( NULL AS REAL ) + + + 75 AS col0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1752
SELECT ALL CAST ( NULL AS REAL ), 49 AS col0
----
NULL
49

query I rowsort
SELECT - 82 + - 95 * + 13
----
-1317

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1756
SELECT - COALESCE ( CAST( NULL AS SIGNED ), + + 76 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-1756
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), + + 76 ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-1757
SELECT + COUNT( * ) + + 50 AS col2, 52 AS col2
----
51
52

skipif mysql # not compatible
query II rowsort label-1757
SELECT + COUNT ( * ) + + 50 AS col2, 52 AS col2
----
51
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT ALL 10 * - CASE - 52 WHEN + 63 + - 18 + 33 THEN - + ( COUNT( * ) ) WHEN - 55 THEN + 27 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL 10 * - CASE - 52 WHEN + 63 + - 18 + 33 THEN - + ( COUNT ( * ) ) WHEN - 55 THEN + 27 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1759
SELECT + COUNT( * ) DIV - 24 AS col2, 28 AS col0
----
0
28

skipif mysql # not compatible
query II rowsort label-1759
SELECT + COUNT ( * ) / - 24 AS col2, 28 AS col0
----
0
28

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1761
SELECT ALL - 27 DIV - 32 + - 85
----
-85

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL - 27 / - 32 + - 85
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1762
SELECT ALL CASE - CAST( + - 45 AS SIGNED ) WHEN 64 * - 93 * - NULLIF ( - - ( + 49 ), - 8 * + ( COUNT( * ) ) + - 52 ) THEN - COUNT( DISTINCT - + 44 ) WHEN 13 THEN - + MAX( 16 ) WHEN 75 * + 55 THEN 14 * COUNT( * ) ELSE NULL END / + 98 + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL CASE - CAST ( + - 45 AS INTEGER ) WHEN 64 * - 93 * - NULLIF ( - - ( + 49 ), - 8 * + ( COUNT ( * ) ) + - 52 ) THEN - COUNT ( DISTINCT - + 44 ) WHEN 13 THEN - + MAX ( 16 ) WHEN 75 * + 55 THEN 14 * COUNT ( * ) ELSE NULL END / + 98 + 68 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 87 * - - 27
----
2349

query I rowsort
SELECT ALL - 29 * 66
----
-1914

query I rowsort
SELECT + 36 + + - 33 + - 27 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT + + 57 * COUNT( * ) col2
----
57

skipif mysql # not compatible
query I rowsort label-1766
SELECT + + 57 * COUNT ( * ) col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1767
SELECT - CASE + 32 WHEN + CAST( NULL AS SIGNED ) THEN - ( + 44 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1767
SELECT - CASE + 32 WHEN + CAST ( NULL AS INTEGER ) THEN - ( + 44 ) END
----
NULL

query II rowsort
SELECT ALL - + 60, - 59 AS col1
----
-60
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1769
SELECT + - CAST( - 67 AS SIGNED ), 95 * - + 80 AS col1
----
67
-7600

skipif mysql # not compatible
query II rowsort label-1769
SELECT + - CAST ( - 67 AS INTEGER ), 95 * - + 80 AS col1
----
67
-7600

query I rowsort
SELECT ALL 99 - + + 55 AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1771
SELECT DISTINCT - - 8 AS col0, 2 * - CAST( NULL AS SIGNED ) col0
----
8
NULL

skipif mysql # not compatible
query II rowsort label-1771
SELECT DISTINCT - - 8 AS col0, 2 * - CAST ( NULL AS INTEGER ) col0
----
8
NULL

query I rowsort
SELECT COALESCE ( - 10, + 98 * + 68 * + 5 * + 86 )
----
-10

query I rowsort
SELECT - 66 * 64 AS col2
----
-4224

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT NULLIF ( - 90, + 85 * 68 ) DIV - - 21
----
-4

skipif mysql # not compatible
query I rowsort label-1776
SELECT NULLIF ( - 90, + 85 * 68 ) / - - 21
----
-4

query II rowsort
SELECT 14 - + 54 AS col2, + 94
----
-40
94

query I rowsort
SELECT ALL + ( 28 ) + + + 4 AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT 30 DIV - 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1779
SELECT 30 / - 81 AS col1
----
0

query I rowsort
SELECT DISTINCT NULLIF ( 28, - + 45 + + 43 ) + 14
----
42

query I rowsort
SELECT DISTINCT + 70 + 46 AS col0
----
116

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

skipif mysql # not compatible
query I rowsort label-1782
SELECT CAST ( NULL AS INTEGER ) / + + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT COUNT( * ) + + 55
----
56

skipif mysql # not compatible
query I rowsort label-1783
SELECT COUNT ( * ) + + 55
----
56

query I rowsort
SELECT DISTINCT - 7 * ( - 42 ) * - 99 AS col1
----
-29106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1785
SELECT ALL CASE CAST( + 93 AS SIGNED ) WHEN 52 THEN + 92 + 60 + - 74 / + 63 * 8 WHEN - 72 THEN + 64 + - 76 ELSE NULL END * - SUM( ALL - + 54 ) - 15 * 92 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL CASE CAST ( + 93 AS INTEGER ) WHEN 52 THEN + 92 + 60 + - 74 / + 63 * 8 WHEN - 72 THEN + 64 + - 76 ELSE NULL END * - SUM ( ALL - + 54 ) - 15 * 92 + + COUNT ( * )
----
NULL

query I rowsort
SELECT 55 * - 6 * 66
----
-21780

query I rowsort
SELECT ALL - 53 + 62 AS col0
----
9

query I rowsort
SELECT ALL - ( - - 43 ) AS col1
----
-43

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

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

query I rowsort
SELECT DISTINCT - 0 - - 14 col0
----
14

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

query I rowsort
SELECT DISTINCT - + 62 - - - 2 * - 45 AS col1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1793
SELECT ALL + NULLIF ( + - 75, + + 38 + + - 80 ) DIV + + 88
----
0

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL + NULLIF ( + - 75, + + 38 + + - 80 ) / + + 88
----
0

query I rowsort
SELECT DISTINCT + - 57 * 56
----
-3192

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1796
SELECT - 41 * - 26 + + 61 + + 87 + + 74 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1796
SELECT - 41 * - 26 + + 61 + + 87 + + 74 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT ALL + 82 * + 2 * - - MAX( ALL - 58 ) AS col0
----
-9512

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL + 82 * + 2 * - - MAX ( ALL - 58 ) AS col0
----
-9512

query I rowsort
SELECT DISTINCT - + 44 * - 38 + + - 87 - + - 15 AS col2
----
1600

query I rowsort
SELECT + 63 - + - COALESCE ( + - 55, + - 66 * + - ( - ( + + 45 ) ) + + - 7 * - 38 ) col0
----
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT 1 * 34 * + NULLIF ( - + 62, 63 ) * + + COUNT( * ) * - + 35 - + - 42 * + 29 AS col0
----
74998

skipif mysql # not compatible
query I rowsort label-1801
SELECT 1 * 34 * + NULLIF ( - + 62, 63 ) * + + COUNT ( * ) * - + 35 - + - 42 * + 29 AS col0
----
74998

query I rowsort
SELECT + 90 * + 67
----
6030

onlyif mysql # DIV for integer division: 
query I rowsort label-1803
SELECT ALL 60 + + 61 + - ( - 81 ) DIV 77 + - 30 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL 60 + + 61 + - ( - 81 ) / 77 + - 30 AS col1
----
92

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

skipif mysql # not compatible
query I rowsort label-1804
SELECT + MIN ( + 22 )
----
22

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

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

query I rowsort
SELECT 24 + 44 + + 80 + + - 53 col1
----
95

query I rowsort
SELECT 43 + 69
----
112

query I rowsort
SELECT ALL 41 + + 50
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT DISTINCT ( 39 ) + - - 80 + - 22 * 4 + COUNT( * ) - + 44 * + CASE + COUNT( * ) WHEN - SUM( + - 56 ) + CASE 57 WHEN - 37 * + 83 + + COUNT( DISTINCT 61 ) THEN - ( 23 ) ELSE NULL END + CASE MIN( ( - 22 ) ) WHEN - COUNT( * ) THEN NULL WHEN - SUM( - 32 ) THEN + 73 END * - 76 THEN 38 - 72 WHEN + 77 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT DISTINCT ( 39 ) + - - 80 + - 22 * 4 + COUNT ( * ) - + 44 * + CASE + COUNT ( * ) WHEN - SUM ( + - 56 ) + CASE 57 WHEN - 37 * + 83 + + COUNT ( DISTINCT 61 ) THEN - ( 23 ) ELSE NULL END + CASE MIN ( ( - 22 ) ) WHEN - COUNT ( * ) THEN NULL WHEN - SUM ( - 32 ) THEN + 73 END * - 76 THEN 38 - 72 WHEN + 77 THEN NULL END AS col2
----
NULL

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

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

query II rowsort
SELECT DISTINCT 37 AS col1, + 97 + + + 90 + ( 93 )
----
37
280

query I rowsort
SELECT 68 + - 61 AS col2
----
7

query I rowsort
SELECT 78 + + 46
----
124

query I rowsort
SELECT ALL 87 + - - 71 + + 13
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1815
SELECT CAST( NULL AS SIGNED ) * - 15 * 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1815
SELECT CAST ( NULL AS INTEGER ) * - 15 * 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT - MIN( - 44 )
----
44

skipif mysql # not compatible
query I rowsort label-1816
SELECT - MIN ( - 44 )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-1817
SELECT 95 col1, CASE - + 98 WHEN - 30 + + + 15 THEN + COUNT( * ) END AS col1
----
95
NULL

skipif mysql # not compatible
query II rowsort label-1817
SELECT 95 col1, CASE - + 98 WHEN - 30 + + + 15 THEN + COUNT ( * ) END AS col1
----
95
NULL

query I rowsort
SELECT 68 + - 64 - + 3 AS col2
----
1

query I rowsort
SELECT ALL 51 - + 15
----
36

query I rowsort
SELECT 74 * + - 28 AS col0
----
-2072

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

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

query I rowsort
SELECT 88 - - 32 AS col2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT + 22 DIV 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1823
SELECT + 22 / 45 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT - CASE - COUNT( * ) WHEN + ( + + 68 ) / - 94 - + 41 * 29 THEN + - 3 + + + 36 + - 56 * + ( - AVG ( DISTINCT + 5 ) ) END * 14 + - + 96 * 63 / - - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT - CASE - COUNT ( * ) WHEN + ( + + 68 ) / - 94 - + 41 * 29 THEN + - 3 + + + 36 + - 56 * + ( - AVG ( DISTINCT + 5 ) ) END * 14 + - + 96 * 63 / - - 45
----
NULL

query I rowsort
SELECT ALL + 46 * - 22
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT + + 29 * - 80 + COUNT( * ) + 97 AS col0
----
-2222

skipif mysql # not compatible
query I rowsort label-1826
SELECT + + 29 * - 80 + COUNT ( * ) + 97 AS col0
----
-2222

query I rowsort
SELECT + + 83 col2
----
83

query I rowsort
SELECT DISTINCT + 19 * 53 * + + 73 * - 25
----
-1837775

onlyif mysql # aggregate syntax: 
query II rowsort label-1829
SELECT - - 91 + ( ( - 8 ) ) + - CASE 14 WHEN + COUNT( * ) THEN 49 * 57 + + 85 END * - - COUNT( * ) AS col2, + 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-1829
SELECT - - 91 + ( ( - 8 ) ) + - CASE 14 WHEN + COUNT ( * ) THEN 49 * 57 + + 85 END * - - COUNT ( * ) AS col2, + 84
----
NULL
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT ALL + 85 * + - 1 * - - CAST( - 55 AS SIGNED ) + - 84
----
4591

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL + 85 * + - 1 * - - CAST ( - 55 AS INTEGER ) + - 84
----
4591

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT - - 28 * + ( 85 ) + + 5 + + - 29 * COUNT( * ) col0
----
2356

skipif mysql # not compatible
query I rowsort label-1832
SELECT - - 28 * + ( 85 ) + + 5 + + - 29 * COUNT ( * ) col0
----
2356

onlyif mysql # DIV for integer division: 
query II rowsort label-1833
SELECT - 8 col2, ( 76 ) DIV + + 89 * + 41 + 41
----
-8
41

skipif mysql # not compatible
query II rowsort label-1833
SELECT - 8 col2, ( 76 ) / + + 89 * + 41 + 41
----
-8
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT - MAX( DISTINCT + 65 ) * - 35 * + MAX( - 79 ) * 54 + - MIN( + 5 ) + 54 + 88
----
-9705013

skipif mysql # not compatible
query I rowsort label-1834
SELECT - MAX ( DISTINCT + 65 ) * - 35 * + MAX ( - 79 ) * 54 + - MIN ( + 5 ) + 54 + 88
----
-9705013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1835
SELECT - 5 DIV + + 45 * + 44 + COUNT( * ) + - 56 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-1835
SELECT - 5 / + + 45 * + 44 + COUNT ( * ) + - 56 AS col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1836
SELECT ALL - CASE - 37 WHEN + 78 * - CAST( + ( + COUNT( * ) ) AS SIGNED ) THEN ( 53 ) ELSE NULL END * 70 + - 53 + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL - CASE - 37 WHEN + 78 * - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) THEN ( 53 ) ELSE NULL END * 70 + - 53 + 92
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1837
SELECT 46 AS col1, CAST( NULL AS SIGNED ) + 93 * - + COUNT( * )
----
46
NULL

skipif mysql # not compatible
query II rowsort label-1837
SELECT 46 AS col1, CAST ( NULL AS INTEGER ) + 93 * - + COUNT ( * )
----
46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT DISTINCT - - 14 * - 28 + MAX( ALL - ( - 89 ) ) + + ( + 30 ) AS col2
----
-273

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT - - 14 * - 28 + MAX ( ALL - ( - 89 ) ) + + ( + 30 ) AS col2
----
-273

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1839
SELECT - 59 DIV CAST( - + CAST( - 99 AS SIGNED ) AS SIGNED )
----
0

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

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

skipif mysql # not compatible
query I rowsort label-1840
SELECT SUM ( - + 36 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1841
SELECT ALL + NULLIF ( + 22, + 20 - - 39 + CAST( NULL AS SIGNED ) ) * - 92 * + 91 * + 81 + + 99 DIV - + 67
----
-14918905

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL + NULLIF ( + 22, + 20 - - 39 + CAST ( NULL AS INTEGER ) ) * - 92 * + 91 * + 81 + + 99 / - + 67
----
-14918905

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT - 23 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-1842
SELECT - 23 / - 86
----
0

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

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

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

query I rowsort
SELECT ALL 87 - 67
----
20

query I rowsort
SELECT + 93 - + 90 * + 48 AS col2
----
-4227

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1848
SELECT DISTINCT - 53 - + 94 DIV 68 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT - 53 - + 94 / 68 AS col2
----
-54

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

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL 81 * + - COUNT ( * ) col1
----
-81

query I rowsort
SELECT ALL ( COALESCE ( - 80, 15 ) )
----
-80

query I rowsort
SELECT ALL 51 - + ( 19 )
----
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT ALL 33 - COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL 33 - COUNT ( * ) AS col0
----
32

query I rowsort
SELECT ALL 45 * - 77 AS col2
----
-3465

query I rowsort
SELECT + 56 + 68 * - 80
----
-5384

query I rowsort
SELECT ALL NULLIF ( - 64, + 58 + AVG ( DISTINCT + 53 ) ) AS col0
----
-64

query I rowsort
SELECT + 60 * - 93 * 31
----
-172980

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT - + 81 * COUNT( + 44 ) + COUNT( * ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-1858
SELECT - + 81 * COUNT ( + 44 ) + COUNT ( * ) AS col0
----
-80

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

query I rowsort
SELECT DISTINCT 47 * + ( - + 91 ) AS col2
----
-4277

onlyif mysql # DIV for integer division: 
query I rowsort label-1861
SELECT ALL - + 32 DIV 50 + + 2
----
2

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL - + 32 / 50 + + 2
----
2

query I rowsort
SELECT + + 20 * + 3
----
60

query I rowsort
SELECT ALL COALESCE ( - 4, + 75 ) col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1864
SELECT ALL + 39 DIV 66 + + ( - 82 ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL + 39 / 66 + + ( - 82 ) col1
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1865
SELECT ALL 92 DIV - + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL 92 / - + 93 AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1867
SELECT + COUNT( 69 ) * + - 94 - 3 + ( - + 70 ) * COUNT( * ) / + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1867
SELECT + COUNT ( 69 ) * + - 94 - 3 + ( - + 70 ) * COUNT ( * ) / + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1868
SELECT - 59 DIV + 28
----
-2

skipif mysql # not compatible
query I rowsort label-1868
SELECT - 59 / + 28
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1869
SELECT ALL + - COUNT( - 17 ) * - 96 + NULLIF ( - 56, - + 38 + 2 + - COUNT( * ) / + 65 * 77 ) + - 68 + - + COALESCE ( - 6, - CAST( NULL AS SIGNED ) ) * - 27 * + 23 * + 29 + + CASE + + COUNT( * ) WHEN + 49 / - 37 + + ( 37 ) * + 27 THEN 44 WHEN + 74 / + 9 THEN NULL ELSE + ( - COALESCE ( NULLIF ( 23, - 87 ), 76 ) ) END + 60 * 25
----
-106605

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + - COUNT ( - 17 ) * - 96 + NULLIF ( - 56, - + 38 + 2 + - COUNT ( * ) / + 65 * 77 ) + - 68 + - + COALESCE ( - 6, - CAST ( NULL AS INTEGER ) ) * - 27 * + 23 * + 29 + + CASE + + COUNT ( * ) WHEN + 49 / - 37 + + ( 37 ) * + 27 THEN 44 WHEN + 74 / + 9 THEN NULL ELSE + ( - COALESCE ( NULLIF ( 23, - 87 ), 76 ) ) END + 60 * 25
----
-106605

onlyif mysql # aggregate syntax: 
query II rowsort label-1870
SELECT DISTINCT - + 85 * + COUNT( * ), COUNT( * ) * - 58 AS col2
----
-85
-58

skipif mysql # not compatible
query II rowsort label-1870
SELECT DISTINCT - + 85 * + COUNT ( * ), COUNT ( * ) * - 58 AS col2
----
-85
-58

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

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT + COUNT ( ALL + 75 ) AS col0
----
1

query I rowsort
SELECT 29 * 28 - + + 70 * - 22 * - 9 AS col2
----
-13048

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT + 23 + - 55 - + - COUNT( * ) - + - ( - 85 )
----
-116

skipif mysql # not compatible
query I rowsort label-1873
SELECT + 23 + - 55 - + - COUNT ( * ) - + - ( - 85 )
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1874
SELECT - COUNT( * ) - - - ( - 30 ) + + CAST( + + 83 AS SIGNED ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-1874
SELECT - COUNT ( * ) - - - ( - 30 ) + + CAST ( + + 83 AS INTEGER ) AS col1
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-1875
SELECT COALESCE ( 10, + MAX( DISTINCT - 21 ), + 74 ) AS col2, - MIN( ALL + 70 )
----
10
-70

skipif mysql # not compatible
query II rowsort label-1875
SELECT COALESCE ( 10, + MAX ( DISTINCT - 21 ), + 74 ) AS col2, - MIN ( ALL + 70 )
----
10
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT COUNT( * ) * + COALESCE ( + 66, CASE - 59 WHEN + + 78 * - 42 THEN + - COUNT( * ) END ) + 7 + - COUNT( * ) + + 42
----
114

skipif mysql # not compatible
query I rowsort label-1876
SELECT COUNT ( * ) * + COALESCE ( + 66, CASE - 59 WHEN + + 78 * - 42 THEN + - COUNT ( * ) END ) + 7 + - COUNT ( * ) + + 42
----
114

query I rowsort
SELECT - 17 * + 71
----
-1207

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1879
SELECT ALL + ( - 58 ) * - 28 + + + 65 - + 27 + MIN( DISTINCT + + 19 ) * + 70 / + CAST( NULL AS SIGNED ) * - - ( + 93 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL + ( - 58 ) * - 28 + + + 65 - + 27 + MIN ( DISTINCT + + 19 ) * + 70 / + CAST ( NULL AS INTEGER ) * - - ( + 93 ) AS col1
----
NULL

query I rowsort
SELECT - 87 * - - 62 AS col2
----
-5394

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT DISTINCT - 48 * - SUM( - 36 )
----
-1728

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT - 48 * - SUM ( - 36 )
----
-1728

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

skipif mysql # not compatible
query I rowsort label-1883
SELECT + COUNT ( * ) / - MIN ( + - 58 ) * 65 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1884
SELECT ALL + 30 * + NULLIF ( + - 60, - AVG ( - ( 3 ) ) - - + 30 * + 90 ) * - + CAST( + - 59 AS SIGNED ) AS col0
----
-106200

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL + 30 * + NULLIF ( + - 60, - AVG ( - ( 3 ) ) - - + 30 * + 90 ) * - + CAST ( + - 59 AS INTEGER ) AS col0
----
-106200

query I rowsort
SELECT - 51 * + - 93 AS col2
----
4743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1886
SELECT COUNT( * ) + - - CAST( NULL AS SIGNED ) * - + 0 * 55 + + - 84 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1886
SELECT COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * - + 0 * 55 + + - 84 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1887
SELECT 74 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1887
SELECT 74 / 92 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1888
SELECT - CASE - - 54 WHEN + 25 THEN 58 END + 57 - - 3 + 44 - 1 - NULLIF ( - + 99, ( - 80 ) + - 17 ) - + 74 * 76 / AVG ( DISTINCT 45 ) + - COALESCE ( - + 19, + + CAST( NULL AS DECIMAL ) * 67 + - CAST( 76 AS SIGNED ) ) / 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT - CASE - - 54 WHEN + 25 THEN 58 END + 57 - - 3 + 44 - 1 - NULLIF ( - + 99, ( - 80 ) + - 17 ) - + 74 * 76 / AVG ( DISTINCT 45 ) + - COALESCE ( - + 19, + + CAST ( NULL AS REAL ) * 67 + - CAST ( 76 AS INTEGER ) ) / 72
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1889
SELECT + COUNT( * ) AS col0, - 11 + - + 92 * - + 96 AS col2
----
1
8821

skipif mysql # not compatible
query II rowsort label-1889
SELECT + COUNT ( * ) AS col0, - 11 + - + 92 * - + 96 AS col2
----
1
8821

query I rowsort
SELECT DISTINCT + 96 + + - 66 + + - 81 + + 12
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT ALL MIN( DISTINCT - 92 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL MIN ( DISTINCT - 92 ) AS col2
----
-92

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

query I rowsort
SELECT 45 - - 27
----
72

query II rowsort
SELECT - 47 AS col0, - 6 AS col0
----
-47
-6

query II rowsort
SELECT ALL 59, - CASE - 55 WHEN + + 65 THEN NULL WHEN - 14 THEN NULL WHEN - + 71 THEN NULL ELSE - 19 + + ( 88 ) END AS col2
----
59
-69

query I rowsort
SELECT 66 * + 15 AS col0
----
990

query I rowsort
SELECT ( - NULLIF ( + + 19, - + 27 ) ) col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1898
SELECT - + 91 * ( - CAST( + 43 AS SIGNED ) ) + + 4 * 20 AS col1
----
3993

skipif mysql # not compatible
query I rowsort label-1898
SELECT - + 91 * ( - CAST ( + 43 AS INTEGER ) ) + + 4 * 20 AS col1
----
3993

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT DISTINCT - COALESCE ( - + 34, + COUNT( * ) * + 3, - COUNT( + + 41 ) * 60 + 48 - 53 ) + - 2 + 21 col0
----
53

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT - COALESCE ( - + 34, + COUNT ( * ) * + 3, - COUNT ( + + 41 ) * 60 + 48 - 53 ) + - 2 + 21 col0
----
53

query I rowsort
SELECT ALL ( - + 49 ) + - + 64 + + 94
----
-19

query I rowsort
SELECT - 10 + - 70 AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1902
SELECT ALL - AVG ( DISTINCT + - 20 ) + - 9 + + - CAST( NULL AS DECIMAL ) + 65 * + 37 * - 38 + - COUNT( * ) * ( + + 48 ) AS col1, 49 AS col0
----
NULL
49

skipif mysql # not compatible
query II rowsort label-1902
SELECT ALL - AVG ( DISTINCT + - 20 ) + - 9 + + - CAST ( NULL AS REAL ) + 65 * + 37 * - 38 + - COUNT ( * ) * ( + + 48 ) AS col1, 49 AS col0
----
NULL
49

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

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT - COUNT ( DISTINCT + 68 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT ALL - - CASE 31 WHEN + 56 THEN + + 80 ELSE + 85 * - COUNT( * ) + - - 98 * + - 6 - - 63 END AS col1
----
-610

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL - - CASE 31 WHEN + 56 THEN + + 80 ELSE + 85 * - COUNT ( * ) + - - 98 * + - 6 - - 63 END AS col1
----
-610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1905
SELECT COUNT( * ) DIV + MAX( ALL - 81 ) * + 93 + 71
----
71

skipif mysql # not compatible
query I rowsort label-1905
SELECT COUNT ( * ) / + MAX ( ALL - 81 ) * + 93 + 71
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT ALL 35 - + 61 DIV - 10 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL 35 - + 61 / - 10 AS col2
----
41

onlyif mysql # DIV for integer division: 
query II rowsort label-1907
SELECT + 17, 57 DIV - 66 col0
----
17
0

skipif mysql # not compatible
query II rowsort label-1907
SELECT + 17, 57 / - 66 col0
----
17
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1909
SELECT + 68 DIV + - 10 + - + 10 + + + NULLIF ( - 80, + 65 DIV + 51 ) + + 65 * 57
----
3609

skipif mysql # not compatible
query I rowsort label-1909
SELECT + 68 / + - 10 + - + 10 + + + NULLIF ( - 80, + 65 / + 51 ) + + 65 * 57
----
3609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1910
SELECT ( - ( - 10 ) ) DIV - COUNT( * ) AS col1, - CAST( 57 AS SIGNED ) * - COUNT( - + 99 ) + - COUNT( * ) AS col2
----
-10
56

skipif mysql # not compatible
query II rowsort label-1910
SELECT ( - ( - 10 ) ) / - COUNT ( * ) AS col1, - CAST ( 57 AS INTEGER ) * - COUNT ( - + 99 ) + - COUNT ( * ) AS col2
----
-10
56

query I rowsort
SELECT 75 * - 43
----
-3225

query I rowsort
SELECT 78 + - + 17 AS col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1913
SELECT DISTINCT ( + COALESCE ( + 27, - + 56 ) ) DIV - - 29
----
0

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT ( + COALESCE ( + 27, - + 56 ) ) / - - 29
----
0

query I rowsort
SELECT ALL - 61 * 88
----
-5368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1915
SELECT ALL - COALESCE ( - - 41, + CAST( 27 AS SIGNED ), + 80 * - COUNT( * ) + 70 + + COUNT( * ) + + + 59 + + 39 )
----
-41

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL - COALESCE ( - - 41, + CAST ( 27 AS INTEGER ), + 80 * - COUNT ( * ) + 70 + + COUNT ( * ) + + + 59 + + 39 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1916
SELECT ALL CAST( - - CAST( + NULLIF ( - 69, - + COALESCE ( - 77, 49 ) ) AS SIGNED ) AS SIGNED ) - + - 54
----
-15

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL CAST ( - - CAST ( + NULLIF ( - 69, - + COALESCE ( - 77, 49 ) ) AS INTEGER ) AS INTEGER ) - + - 54
----
-15

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

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

query I rowsort
SELECT ALL - 35 - + - 74 AS col0
----
39

query I rowsort
SELECT 74 * + - 63
----
-4662

query I rowsort
SELECT ALL 69 * + 31 AS col0
----
2139

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT ALL - NULLIF ( + 48, COUNT( * ) ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL - NULLIF ( + 48, COUNT ( * ) ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-1922
SELECT - 42 * SUM( ALL 19 ) - + + 59 * - ( - + COUNT( * ) ) AS col0, NULLIF ( - 30, - + 48 / + 47 + + 27 - 24 )
----
-857
-30

skipif mysql # not compatible
query II rowsort label-1922
SELECT - 42 * SUM ( ALL 19 ) - + + 59 * - ( - + COUNT ( * ) ) AS col0, NULLIF ( - 30, - + 48 / + 47 + + 27 - 24 )
----
-857
-30

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

query III rowsort
SELECT + 94 AS col2, + 21 col0, 97
----
94
21
97

query II rowsort
SELECT - 46 AS col1, - 48 AS col2
----
-46
-48

query I rowsort
SELECT 0 + - + 92 + - + 49 AS col1
----
-141

query II rowsort
SELECT ALL 2, 23 + + 79 col0
----
2
102

query I rowsort
SELECT 12 * - + 78 AS col1
----
-936

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1930
SELECT ALL + 78, + 86 * - - 41 + + MAX( 72 ) AS col2
----
78
3598

skipif mysql # not compatible
query II rowsort label-1930
SELECT ALL + 78, + 86 * - - 41 + + MAX ( 72 ) AS col2
----
78
3598

onlyif mysql # DIV for integer division: 
query I rowsort label-1931
SELECT DISTINCT + + 98 DIV + 41 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT + + 98 / + 41 AS col1
----
2

query I rowsort
SELECT 81 * - 7
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT DISTINCT + NULLIF ( 19, + 29 - COUNT( * ) - + 21 )
----
19

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT + NULLIF ( 19, + 29 - COUNT ( * ) - + 21 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT ALL + + COALESCE ( + 75, 99, ( - - 43 ) + + COUNT( * ) ) + + 1
----
76

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL + + COALESCE ( + 75, 99, ( - - 43 ) + + COUNT ( * ) ) + + 1
----
76

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

skipif mysql # not compatible
query I rowsort label-1935
SELECT + COUNT ( * ) + - 4 AS col2
----
-3

query I rowsort
SELECT DISTINCT - 7 + 89
----
82

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

skipif mysql # not compatible
query I rowsort label-1937
SELECT - COUNT ( - 90 )
----
-1

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

skipif mysql # not compatible
query I rowsort label-1938
SELECT CAST ( NULL AS INTEGER ) + + + ( ( ( 88 ) ) ) * - 32 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1939
SELECT ALL - CAST( + 84 AS SIGNED ) + - COUNT( 76 ) - + 93 * - 21 AS col2, - 42 AS col2
----
1868
-42

skipif mysql # not compatible
query II rowsort label-1939
SELECT ALL - CAST ( + 84 AS INTEGER ) + - COUNT ( 76 ) - + 93 * - 21 AS col2, - 42 AS col2
----
1868
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1940
SELECT DISTINCT + 15 DIV + ( MIN( + 10 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT + 15 / + ( MIN ( + 10 ) ) AS col1
----
1

query II rowsort
SELECT DISTINCT - - 43 + 43 AS col1, 14 + - ( + + 36 )
----
86
-22

query I rowsort
SELECT DISTINCT - 24 + - ( - 45 )
----
21

query I rowsort
SELECT 93 + - - 57
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-1944
SELECT MAX( ALL 60 ) * + - SUM( + 97 ) AS col0, + 11
----
-5820
11

skipif mysql # not compatible
query II rowsort label-1944
SELECT MAX ( ALL 60 ) * + - SUM ( + 97 ) AS col0, + 11
----
-5820
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT + MAX( ALL 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-1945
SELECT + MAX ( ALL 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT 66 * - ( 23 ) * + + 4 - COUNT( * ) + COUNT( * ) AS col1
----
-6072

skipif mysql # not compatible
query I rowsort label-1946
SELECT 66 * - ( 23 ) * + + 4 - COUNT ( * ) + COUNT ( * ) AS col1
----
-6072

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1947
SELECT COUNT( * ) * - - 29 AS col2, + 89 DIV + + 92 * 29 * 13 AS col1
----
29
0

skipif mysql # not compatible
query II rowsort label-1947
SELECT COUNT ( * ) * - - 29 AS col2, + 89 / + + 92 * 29 * 13 AS col1
----
29
0

query I rowsort
SELECT ALL + 66 * + 31 * - - 23
----
47058

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT 58 - + SUM( 68 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-1949
SELECT 58 - + SUM ( 68 ) AS col0
----
-10

query I rowsort
SELECT ( - 19 ) * + - 63 AS col0
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL AVG ( ALL + 36 ) / + 18 * COUNT( * ) + CASE 63 WHEN - 78 / + 86 + - SUM( DISTINCT + CASE - + COALESCE ( - 39, ( + - 23 ), - 54 / - 18 * - 27 ) WHEN + 54 THEN + 79 + - 48 ELSE NULL END ) + - - CASE - - 41 WHEN 6 / + 23 THEN 36 - 19 END + - ( + 12 ) * + 9 THEN + COALESCE ( ( 66 ), 3 + 23 * - COUNT( * ), MAX( - 33 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL AVG ( ALL + 36 ) / + 18 * COUNT ( * ) + CASE 63 WHEN - 78 / + 86 + - SUM ( DISTINCT + CASE - + COALESCE ( - 39, ( + - 23 ), - 54 / - 18 * - 27 ) WHEN + 54 THEN + 79 + - 48 ELSE NULL END ) + - - CASE - - 41 WHEN 6 / + 23 THEN 36 - 19 END + - ( + 12 ) * + 9 THEN + COALESCE ( ( 66 ), 3 + 23 * - COUNT ( * ), MAX ( - 33 ) ) END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1953
SELECT 48 + + + 92 - CASE - CAST( NULL AS SIGNED ) WHEN - 97 * - 26 * - + COUNT( * ) THEN - AVG ( - 7 ) END / + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT 48 + + + 92 - CASE - CAST ( NULL AS INTEGER ) WHEN - 97 * - 26 * - + COUNT ( * ) THEN - AVG ( - 7 ) END / + 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1954
SELECT COUNT( * ) * - 77 * 24 - + 4 - COALESCE ( + + 48, 43 + - 57 DIV + 88 * + + 73 + 73, 69 * + COALESCE ( 18, - 30 DIV + - CASE - ( - + 5 ) WHEN 58 DIV + 44 THEN MAX( DISTINCT - 57 ) * + 60 END + + 22 + + 55 ), - 48 ) AS col1
----
-1900

skipif mysql # not compatible
query I rowsort label-1954
SELECT COUNT ( * ) * - 77 * 24 - + 4 - COALESCE ( + + 48, 43 + - 57 / + 88 * + + 73 + 73, 69 * + COALESCE ( 18, - 30 / + - CASE - ( - + 5 ) WHEN 58 / + 44 THEN MAX ( DISTINCT - 57 ) * + 60 END + + 22 + + 55 ), - 48 ) AS col1
----
-1900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1955
SELECT + CAST( NULL AS SIGNED ) - COUNT( 99 ) * + 38 + 36 - + - AVG ( DISTINCT + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1955
SELECT + CAST ( NULL AS INTEGER ) - COUNT ( 99 ) * + 38 + 36 - + - AVG ( DISTINCT + 80 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1956
SELECT ALL 22 DIV - 17
----
-1

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL 22 / - 17
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1957
SELECT + ( - - 34 ) DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-1957
SELECT + ( - - 34 ) / 35
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1958
SELECT DISTINCT 16 + 69 + + CAST( + 80 AS SIGNED )
----
165

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT 16 + 69 + + CAST ( + 80 AS INTEGER )
----
165

query I rowsort
SELECT ALL 86 * - 59 AS col2
----
-5074

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1960
SELECT ALL + COUNT( * ) + + CAST( NULL AS DECIMAL ) col2, 58
----
NULL
58

skipif mysql # not compatible
query II rowsort label-1960
SELECT ALL + COUNT ( * ) + + CAST ( NULL AS REAL ) col2, 58
----
NULL
58

query I rowsort
SELECT ALL 62 * 21 AS col1
----
1302

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

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

query I rowsort
SELECT + 1 + + + 30
----
31

query I rowsort
SELECT - COALESCE ( - ( + + 15 ), - + ( + 66 ), - + 1 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT + 15 + + MAX( - 28 )
----
-13

skipif mysql # not compatible
query I rowsort label-1965
SELECT + 15 + + MAX ( - 28 )
----
-13

query I rowsort
SELECT - + 8 + + 6 * - + 51 col2
----
-314

query I rowsort
SELECT - - 81 + 1 + - - 62
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT DISTINCT - 75 + + CASE + 42 WHEN - - 76 THEN + 92 WHEN COUNT( * ) THEN + 62 + + - 56 - 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - 75 + + CASE + 42 WHEN - - 76 THEN + 92 WHEN COUNT ( * ) THEN + 62 + + - 56 - 62 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1969
SELECT - + NULLIF ( + - COUNT( * ), 0 ) + + COALESCE ( - COALESCE ( 64, + COALESCE ( + + 15, - + 23 * - 41 ), - 56, + 42 DIV - ( - + 14 ) ), - NULLIF ( + 6, COUNT( * ) ) DIV 54 * - 10 + + 15 )
----
-63

skipif mysql # not compatible
query I rowsort label-1969
SELECT - + NULLIF ( + - COUNT ( * ), 0 ) + + COALESCE ( - COALESCE ( 64, + COALESCE ( + + 15, - + 23 * - 41 ), - 56, + 42 / - ( - + 14 ) ), - NULLIF ( + 6, COUNT ( * ) ) / 54 * - 10 + + 15 )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT - CAST( - + 95 AS SIGNED ) * 8 + + - 39 * + - 39 + + - 63 AS col0
----
2218

skipif mysql # not compatible
query I rowsort label-1970
SELECT - CAST ( - + 95 AS INTEGER ) * 8 + + - 39 * + - 39 + + - 63 AS col0
----
2218

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

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

query I rowsort
SELECT - 1 - - + ( - 6 )
----
-7

query II rowsort
SELECT - 45 + 24 AS col0, - 20 * - - 57 * 7
----
-21
-7980

query I rowsort
SELECT ALL - + NULLIF ( + + 23, - + 86 ) - + 7
----
-30

query I rowsort
SELECT + 28 + - 61 * - - 45 AS col2
----
-2717

query I rowsort
SELECT - 67 + - + 37 AS col1
----
-104

query II rowsort
SELECT - 72 * - 89 AS col1, + 21 AS col2
----
6408
21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1979
SELECT ALL - 7 DIV - 28
----
0

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL - 7 / - 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL - 85 / + CASE - 49 WHEN + 18 THEN + 37 * - COALESCE ( - - NULLIF ( + 16, 38 ), 94 * + 33 ) END / - 25 + - + AVG ( - ( - 48 ) ) * + CASE + 43 WHEN + - 9 / + NULLIF ( + CASE 32 WHEN - 41 - + - COALESCE ( 34, MIN( - 51 ) ) THEN NULL ELSE + 34 * - 22 - 80 END, 63 / - 38 ) THEN COUNT( * ) ELSE - 75 * 64 END - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL - 85 / + CASE - 49 WHEN + 18 THEN + 37 * - COALESCE ( - - NULLIF ( + 16, 38 ), 94 * + 33 ) END / - 25 + - + AVG ( - ( - 48 ) ) * + CASE + 43 WHEN + - 9 / + NULLIF ( + CASE 32 WHEN - 41 - + - COALESCE ( 34, MIN ( - 51 ) ) THEN NULL ELSE + 34 * - 22 - 80 END, 63 / - 38 ) THEN COUNT ( * ) ELSE - 75 * 64 END - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT DISTINCT + COALESCE ( + COUNT( * ), ( + - 93 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT + COALESCE ( + COUNT ( * ), ( + - 93 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1982
SELECT ALL + 3 AS col2, - COUNT( * ) - + MAX( ALL + + 38 ) + + 3 DIV - + 81
----
3
-39

skipif mysql # not compatible
query II rowsort label-1982
SELECT ALL + 3 AS col2, - COUNT ( * ) - + MAX ( ALL + + 38 ) + + 3 / - + 81
----
3
-39

query I rowsort
SELECT ( NULLIF ( 96, - - 88 * - + 63 * 39 ) ) col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT + COALESCE ( COUNT( * ), 73 )
----
1

skipif mysql # not compatible
query I rowsort label-1984
SELECT + COALESCE ( COUNT ( * ), 73 )
----
1

query I rowsort
SELECT ALL 81 * ( 99 ) AS col2
----
8019

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT - ( - 69 ) * - - COUNT( * ) - + 49 + + 5
----
25

skipif mysql # not compatible
query I rowsort label-1986
SELECT - ( - 69 ) * - - COUNT ( * ) - + 49 + + 5
----
25

query II rowsort
SELECT + 93 + + - ( 90 ) AS col1, - 64
----
3
-64

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT DISTINCT - 36 * - - 65 * - ( + - 72 ) + 36 + + ( - SUM( + 41 ) ) * - 47
----
-166517

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT - 36 * - - 65 * - ( + - 72 ) + 36 + + ( - SUM ( + 41 ) ) * - 47
----
-166517

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT DISTINCT 34 * + - NULLIF ( - 71, 48 ) + 18 + + COUNT( * ) col1
----
2433

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT 34 * + - NULLIF ( - 71, 48 ) + 18 + + COUNT ( * ) col1
----
2433

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT + COALESCE ( + COUNT( * ), 75 )
----
1

skipif mysql # not compatible
query I rowsort label-1993
SELECT + COALESCE ( + COUNT ( * ), 75 )
----
1

query II rowsort
SELECT DISTINCT 9 * - 97 + + 6 AS col2, + 4 * 6 * - COALESCE ( 42, 15 ) + 11 + + 43
----
-867
-954

onlyif mysql # aggregate syntax: 
query II rowsort label-1995
SELECT ALL 83 * - 0 + + 36, - COUNT( * ) + + + 40 col0
----
36
39

skipif mysql # not compatible
query II rowsort label-1995
SELECT ALL 83 * - 0 + + 36, - COUNT ( * ) + + + 40 col0
----
36
39

query I rowsort
SELECT + 60 * + - 57 * + ( 1 ) * 53
----
-181260

query I rowsort
SELECT DISTINCT + 48 * 15 * + - 21 * - 70 col1
----
1058400

query I rowsort
SELECT DISTINCT - + ( 97 ) * - + 51 + - 17
----
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT ALL + COUNT( * ) * + 10 * + NULLIF ( - COUNT( * ), + + 28 ) + 26
----
16

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL + COUNT ( * ) * + 10 * + NULLIF ( - COUNT ( * ), + + 28 ) + 26
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2000
SELECT ALL + + 16 * + CAST( NULL AS DECIMAL ) + + - NULLIF ( - + 38, - ( + + 11 ) * - + 70 ) + 8 / + CASE - 79 WHEN + 23 - - 96 * 66 THEN NULL ELSE + 74 * - COUNT( * ) END - + 67 + CASE + 38 WHEN + 73 + + 58 * - 84 THEN - 94 + + 19 WHEN 19 * 51 THEN NULL WHEN ( - 63 ) * - 49 + 96 THEN NULL ELSE - 37 END * 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL + + 16 * + CAST ( NULL AS REAL ) + + - NULLIF ( - + 38, - ( + + 11 ) * - + 70 ) + 8 / + CASE - 79 WHEN + 23 - - 96 * 66 THEN NULL ELSE + 74 * - COUNT ( * ) END - + 67 + CASE + 38 WHEN + 73 + + 58 * - 84 THEN - 94 + + 19 WHEN 19 * 51 THEN NULL WHEN ( - 63 ) * - 49 + 96 THEN NULL ELSE - 37 END * 85 AS col1
----
NULL

query I rowsort
SELECT + + 52 - - 90 AS col2
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2002
SELECT + - MAX( ALL - + 10 ) - 69 + + CAST( NULL AS DECIMAL ) * - 43 * + - 74 AS col2, + CAST( 92 AS SIGNED )
----
NULL
92

skipif mysql # not compatible
query II rowsort label-2002
SELECT + - MAX ( ALL - + 10 ) - 69 + + CAST ( NULL AS REAL ) * - 43 * + - 74 AS col2, + CAST ( 92 AS INTEGER )
----
NULL
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT - + ( - + NULLIF ( + COUNT( 96 ), + 16 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2003
SELECT - + ( - + NULLIF ( + COUNT ( 96 ), + 16 ) )
----
1

query I rowsort
SELECT ALL - 96 - - + 50 + + 96 AS col0
----
50

query II rowsort
SELECT 1, + 77 col2
----
1
77

query I rowsort
SELECT + + 16 + + 23 AS col2
----
39

query II rowsort
SELECT - 73 AS col0, - ( + 79 )
----
-73
-79

query I rowsort
SELECT - 3 - + - 87 AS col1
----
84

query I rowsort
SELECT + 42 * 96 * - 46
----
-185472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2010
SELECT MAX( - - CAST( NULL AS SIGNED ) )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2011
SELECT - + 15 AS col1, - 82 + - 64 * ( + CASE - CAST( NULL AS SIGNED ) WHEN + 74 THEN NULL ELSE 77 END ) AS col2
----
-15
-5010

skipif mysql # not compatible
query II rowsort label-2011
SELECT - + 15 AS col1, - 82 + - 64 * ( + CASE - CAST ( NULL AS INTEGER ) WHEN + 74 THEN NULL ELSE 77 END ) AS col2
----
-15
-5010

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT - 71 * + SUM( + 90 ) * + 46 AS col2
----
-293940

skipif mysql # not compatible
query I rowsort label-2013
SELECT - 71 * + SUM ( + 90 ) * + 46 AS col2
----
-293940

query I rowsort
SELECT DISTINCT - 2 * 27 col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT ALL CASE - 58 WHEN + SUM( - - 89 ) + 50 THEN NULL ELSE + - 83 * + + 39 END
----
-3237

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL CASE - 58 WHEN + SUM ( - - 89 ) + 50 THEN NULL ELSE + - 83 * + + 39 END
----
-3237

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

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

query I rowsort
SELECT + 35 + - 86
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT ALL - 3 * + 65 DIV + 29
----
-6

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - 3 * + 65 / + 29
----
-6

query I rowsort
SELECT ALL + 48 * 71
----
3408

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT 68 DIV - 7
----
-9

skipif mysql # not compatible
query I rowsort label-2020
SELECT 68 / - 7
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2021
SELECT 40 DIV - + 92 - - SUM( ALL + 38 ) + - SUM( ALL 54 )
----
-16

skipif mysql # not compatible
query I rowsort label-2021
SELECT 40 / - + 92 - - SUM ( ALL + 38 ) + - SUM ( ALL 54 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2022
SELECT ALL + COUNT( * ) + - COUNT( * ) * + - 34 / 42 * - - ( + ( - CASE 35 WHEN + 12 THEN NULL WHEN CAST( - + NULLIF ( - 24, + 17 * COUNT( * ) ) AS SIGNED ) * + + 86 * + 39 / + ( + COALESCE ( 15, + - 56, + 53 - - NULLIF ( - - 9, ( - 25 ) ) + - ( 59 ) * 80 ) ) + + 74 + 18 THEN - 32 * 46 ELSE NULL END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL + COUNT ( * ) + - COUNT ( * ) * + - 34 / 42 * - - ( + ( - CASE 35 WHEN + 12 THEN NULL WHEN CAST ( - + NULLIF ( - 24, + 17 * COUNT ( * ) ) AS INTEGER ) * + + 86 * + 39 / + ( + COALESCE ( 15, + - 56, + 53 - - NULLIF ( - - 9, ( - 25 ) ) + - ( 59 ) * 80 ) ) + + 74 + 18 THEN - 32 * 46 ELSE NULL END ) ) AS col2
----
NULL

query I rowsort
SELECT 83 - + 49 * + 16 + 7 AS col2
----
-694

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT ALL - COALESCE ( - 79, + COUNT( 33 ) * - 29 + 20 )
----
79

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL - COALESCE ( - 79, + COUNT ( 33 ) * - 29 + 20 )
----
79

query I rowsort
SELECT DISTINCT + 31 + + 93 AS col2
----
124

query II rowsort
SELECT 83 + - NULLIF ( + 58, + 42 ) AS col1, + 53 AS col0
----
25
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2027
SELECT - 36 * + - 63 * CAST( - 77 AS SIGNED ) - + - COUNT( * ) AS col2
----
-174635

skipif mysql # not compatible
query I rowsort label-2027
SELECT - 36 * + - 63 * CAST ( - 77 AS INTEGER ) - + - COUNT ( * ) AS col2
----
-174635

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT 28 - + COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-2028
SELECT 28 - + COUNT ( * ) AS col1
----
27

query I rowsort
SELECT - 83 * 53 + + 71 AS col0
----
-4328

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT - SUM( DISTINCT 29 ) + + COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-2030
SELECT - SUM ( DISTINCT 29 ) + + COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-2031
SELECT ALL + SUM( - - 4 ) - + 98 * 38, + 25 * + - 22 * 1 col0
----
-3720
-550

skipif mysql # not compatible
query II rowsort label-2031
SELECT ALL + SUM ( - - 4 ) - + 98 * 38, + 25 * + - 22 * 1 col0
----
-3720
-550

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT MAX( DISTINCT 10 ) + 55 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-2032
SELECT MAX ( DISTINCT 10 ) + 55 AS col1
----
65

query I rowsort
SELECT ALL - - ( + - 56 ) * + 12 AS col1
----
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2034
SELECT DISTINCT - COALESCE ( - - 42, + - NULLIF ( + 40, + 42 * + 93 / + + 65 * + + COUNT( * ) ) + + + CAST( NULL AS SIGNED ) - 66, - MAX( 79 ) ) col1, 63 - - 6 AS col2
----
-42
69

skipif mysql # not compatible
query II rowsort label-2034
SELECT DISTINCT - COALESCE ( - - 42, + - NULLIF ( + 40, + 42 * + 93 / + + 65 * + + COUNT ( * ) ) + + + CAST ( NULL AS INTEGER ) - 66, - MAX ( 79 ) ) col1, 63 - - 6 AS col2
----
-42
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2035
SELECT DISTINCT - + 37 * 52 - 18 * + COUNT( * ) AS col0, - COUNT( * ) AS col0
----
-1942
-1

skipif mysql # not compatible
query II rowsort label-2035
SELECT DISTINCT - + 37 * 52 - 18 * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0
----
-1942
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2036
SELECT + MAX( ALL - - 3 ) + + SUM( 16 ), 44 AS col0
----
19
44

skipif mysql # not compatible
query II rowsort label-2036
SELECT + MAX ( ALL - - 3 ) + + SUM ( 16 ), 44 AS col0
----
19
44

query I rowsort
SELECT DISTINCT + NULLIF ( - - 55, - 40 ) col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT 4 * - - 86 * CASE ( - 52 ) WHEN - 25 + - + 24 THEN 87 * + + 36 END / - + 51 + + + 52 * + - 43 + - 8 * + NULLIF ( + COALESCE ( + 6, 35, - 69, - + 42 * 50 ), - - SUM( - 18 ) + 73 ) + + 36 + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT 4 * - - 86 * CASE ( - 52 ) WHEN - 25 + - + 24 THEN 87 * + + 36 END / - + 51 + + + 52 * + - 43 + - 8 * + NULLIF ( + COALESCE ( + 6, 35, - 69, - + 42 * 50 ), - - SUM ( - 18 ) + 73 ) + + 36 + - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT COUNT( * ) + - - 18 + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2039
SELECT COUNT ( * ) + - - 18 + COUNT ( * ) AS col2
----
20

query I rowsort
SELECT - 87 + 21 * + 36
----
669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2041
SELECT ALL - COALESCE ( 24, - CASE CASE + 58 WHEN + 91 + + ( + + 3 ) THEN - - NULLIF ( - AVG ( - 81 ), - COALESCE ( 55, + CASE 87 WHEN - - 92 DIV + 24 + 1 - - 89 DIV + 11 + 50 THEN NULL WHEN - ( 6 ) * - 19 * 57 + COUNT( * ) THEN COUNT( + 68 ) * 72 + - COUNT( ALL 38 ) END + + 31 ) ) ELSE - 56 END WHEN COALESCE ( - COALESCE ( + 52, 95 * + 23 + CAST( NULL AS SIGNED ) ), 29 ) * COUNT( * ) THEN - 87 + AVG ( 7 + 20 ) DIV 84 WHEN NULLIF ( + CAST( COUNT( * ) AS SIGNED ), 0 ) THEN NULL END, - 67, 81 * - ( + 55 * 23 ) ) * + 95
----
-2280

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL - COALESCE ( 24, - CASE CASE + 58 WHEN + 91 + + ( + + 3 ) THEN - - NULLIF ( - AVG ( - 81 ), - COALESCE ( 55, + CASE 87 WHEN - - 92 / + 24 + 1 - - 89 / + 11 + 50 THEN NULL WHEN - ( 6 ) * - 19 * 57 + COUNT ( * ) THEN COUNT ( + 68 ) * 72 + - COUNT ( ALL 38 ) END + + 31 ) ) ELSE - 56 END WHEN COALESCE ( - COALESCE ( + 52, 95 * + 23 + CAST ( NULL AS INTEGER ) ), 29 ) * COUNT ( * ) THEN - 87 + AVG ( 7 + 20 ) / 84 WHEN NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), 0 ) THEN NULL END, - 67, 81 * - ( + 55 * 23 ) ) * + 95
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT COUNT( * ) * CASE - - 29 WHEN + 80 + + COALESCE ( + 14, + COALESCE ( - 92, - + COALESCE ( 18, + 49, 93 + + + 42 * - 22 ) ) ) * 34 THEN - 59 WHEN + + 93 - - AVG ( DISTINCT - 13 ) THEN - + 92 * 5 * AVG ( DISTINCT - NULLIF ( - - 78, + 96 ) ) END - - ( + 36 ) / + 66 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT COUNT ( * ) * CASE - - 29 WHEN + 80 + + COALESCE ( + 14, + COALESCE ( - 92, - + COALESCE ( 18, + 49, 93 + + + 42 * - 22 ) ) ) * 34 THEN - 59 WHEN + + 93 - - AVG ( DISTINCT - 13 ) THEN - + 92 * 5 * AVG ( DISTINCT - NULLIF ( - - 78, + 96 ) ) END - - ( + 36 ) / + 66 col1
----
NULL

query I rowsort
SELECT 68 + - - 66
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2044
SELECT DISTINCT 88 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT 88 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT 14 + + 19 * COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-2045
SELECT 14 + + 19 * COUNT ( * )
----
33

query I rowsort
SELECT ALL 32 * + + 65
----
2080

query I rowsort
SELECT ALL 53 + - 35 col1
----
18

query I rowsort
SELECT DISTINCT 70 * + 45
----
3150

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

skipif mysql # not compatible
query I rowsort label-2049
SELECT COUNT ( * ) + + 55 AS col2
----
56

query I rowsort
SELECT ( ( - 93 ) ) + + 78 + 85
----
70

query I rowsort
SELECT 93 + - 70
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT DISTINCT 40 + + + MIN( DISTINCT 19 )
----
59

skipif mysql # not compatible
query I rowsort label-2052
SELECT DISTINCT 40 + + + MIN ( DISTINCT 19 )
----
59

query I rowsort
SELECT ( - 39 ) + 3 AS col1
----
-36

query II rowsort
SELECT ( + 92 ) * + + 95 + - 92 * + 97, + 58 + + - 99 AS col0
----
-184
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT ALL - CASE 56 WHEN - 16 + + COUNT( * ) * + - COUNT( * ) * - 78 * - 24 THEN 49 / + 70 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL - CASE 56 WHEN - 16 + + COUNT ( * ) * + - COUNT ( * ) * - 78 * - 24 THEN 49 / + 70 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2056
SELECT + COALESCE ( + COALESCE ( COUNT( * ), - 93 ), + - 30 DIV - 73 + + CAST( + - 13 AS SIGNED ), ( CASE 4 WHEN + ( + 16 ) THEN NULL WHEN 20 - - + 12 THEN 48 WHEN - + 27 THEN NULL END ) DIV + 90 * + 6 + 93 * AVG ( DISTINCT + - 50 ) * - 51 ) DIV - 87 + - ( 85 ) + - 5
----
-90

skipif mysql # not compatible
query I rowsort label-2056
SELECT + COALESCE ( + COALESCE ( COUNT ( * ), - 93 ), + - 30 / - 73 + + CAST ( + - 13 AS INTEGER ), ( CASE 4 WHEN + ( + 16 ) THEN NULL WHEN 20 - - + 12 THEN 48 WHEN - + 27 THEN NULL END ) / + 90 * + 6 + 93 * AVG ( DISTINCT + - 50 ) * - 51 ) / - 87 + - ( 85 ) + - 5
----
-90

query I rowsort
SELECT ALL 63 + + 1
----
64

query I rowsort
SELECT ALL - 54 * 67
----
-3618

query I rowsort
SELECT DISTINCT + ( + 66 ) + ( + 62 )
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT DISTINCT MAX( 67 ) + + ( - CASE 49 WHEN 13 THEN - COUNT( * ) * + + 4 * - 43 WHEN + 91 * + 37 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT MAX ( 67 ) + + ( - CASE 49 WHEN 13 THEN - COUNT ( * ) * + + 4 * - 43 WHEN + 91 * + 37 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT 57 * + + 92 AS col0
----
5244

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2064
SELECT - 69 * + - 94 + + 32 AS col1, - COUNT( * ) col2
----
6518
-1

skipif mysql # not compatible
query II rowsort label-2064
SELECT - 69 * + - 94 + + 32 AS col1, - COUNT ( * ) col2
----
6518
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT DISTINCT - MAX( - 46 )
----
46

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT - MAX ( - 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT ALL + NULLIF ( 71, - + 9 / 71 * 15 ) * + COUNT( * ) * 51 * + COUNT( * ) + 34 AS col2
----
3655

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL + NULLIF ( 71, - + 9 / 71 * 15 ) * + COUNT ( * ) * 51 * + COUNT ( * ) + 34 AS col2
----
3655

onlyif mysql # DIV for integer division: 
query I rowsort label-2068
SELECT ALL + 99 DIV + 70 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL + 99 / + 70 AS col1
----
1

query I rowsort
SELECT ALL - - 34 - + 38
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT - 35 * + SUM( + 82 ) + 86 * + + 53
----
1688

skipif mysql # not compatible
query I rowsort label-2070
SELECT - 35 * + SUM ( + 82 ) + 86 * + + 53
----
1688

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

query I rowsort
SELECT + ( 36 ) * + + 14 - + 36
----
468

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

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

query I rowsort
SELECT 14 * + - 17 col1
----
-238

query I rowsort
SELECT + 67 + - 66
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT 4 + - 68 - + - 26 * + - COUNT( * ) * + + ( + 92 )
----
-2456

skipif mysql # not compatible
query I rowsort label-2076
SELECT 4 + - 68 - + - 26 * + - COUNT ( * ) * + + ( + 92 )
----
-2456

query I rowsort
SELECT ALL - + 59 * + 61
----
-3599

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

query I rowsort
SELECT 52 - + NULLIF ( + - 21, COALESCE ( - - 20, 4 * COALESCE ( - 17, 40 * - + 27 + 43 ) * + 95 ) ) col2
----
73

query II rowsort
SELECT ALL - 39 AS col1, + 23
----
-39
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT - - MIN( - - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-2081
SELECT - - MIN ( - - 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT ALL + 53 * + + MIN( + 8 )
----
424

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL + 53 * + + MIN ( + 8 )
----
424

query I rowsort
SELECT 29 * - - 66 + 92 + + 99
----
2105

query I rowsort
SELECT ALL + 31 + + 73
----
104

query I rowsort
SELECT ALL - 62 + - 23
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-2086
SELECT 68 AS col0, COALESCE ( - 3, - 47 * ( COUNT( * ) ) + + + 26 ) * - - 74 - COUNT( * ) * + - 22 + - 81 col1
----
68
-281

skipif mysql # not compatible
query II rowsort label-2086
SELECT 68 AS col0, COALESCE ( - 3, - 47 * ( COUNT ( * ) ) + + + 26 ) * - - 74 - COUNT ( * ) * + - 22 + - 81 col1
----
68
-281

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

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

query I rowsort
SELECT + ( + - 21 ) * + - 24
----
504

query I rowsort
SELECT ALL 23 + + - 40 + 8 * - 17 AS col0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2090
SELECT ALL 99 + CAST( NULL AS SIGNED ) + + 58 * + 66 * - - 39 * - 3 / - + 60 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL 99 + CAST ( NULL AS INTEGER ) + + 58 * + 66 * - - 39 * - 3 / - + 60 col0
----
NULL

query II rowsort
SELECT - 21 AS col0, 16
----
-21
16

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

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

query I rowsort
SELECT ALL 52 * - - 46
----
2392

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT + MIN( - 5 ) * + 25
----
-125

skipif mysql # not compatible
query I rowsort label-2094
SELECT + MIN ( - 5 ) * + 25
----
-125

query I rowsort
SELECT ALL 63 + - 4
----
59

query I rowsort
SELECT ALL 22 * - 55 * + 67
----
-81070

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2097
SELECT - CASE + - CAST( NULL AS DECIMAL ) WHEN - 21 THEN + 75 WHEN MAX( ALL - 63 ) THEN NULL END AS col2, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2097
SELECT - CASE + - CAST ( NULL AS REAL ) WHEN - 21 THEN + 75 WHEN MAX ( ALL - 63 ) THEN NULL END AS col2, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT 50 * + - 4 * ( 10 ) + - COUNT( * ) AS col1
----
-2001

skipif mysql # not compatible
query I rowsort label-2098
SELECT 50 * + - 4 * ( 10 ) + - COUNT ( * ) AS col1
----
-2001

query II rowsort
SELECT ( - 32 ) AS col1, 81
----
-32
81

query II rowsort
SELECT ALL + 57 AS col0, 38 * + 76 * 31 * 31
----
57
2775368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2101
SELECT + CAST( + NULLIF ( + 94, - - 1 ) AS SIGNED ) * + 11 + + COUNT( * ) + - + 69 AS col0
----
966

skipif mysql # not compatible
query I rowsort label-2101
SELECT + CAST ( + NULLIF ( + 94, - - 1 ) AS INTEGER ) * + 11 + + COUNT ( * ) + - + 69 AS col0
----
966

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2102
SELECT ALL - 45 * + + 13 - - 39 - - COUNT( * ) + COALESCE ( + - 13, 43 + COUNT( DISTINCT + 36 ) * - 45 * + 90 + - 69 + + ( - - 89 ) * + - 8 + - + COUNT( * ), - - 0 DIV 82 * + - 57 - COUNT( * ) + - 80 + + 68 )
----
-558

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL - 45 * + + 13 - - 39 - - COUNT ( * ) + COALESCE ( + - 13, 43 + COUNT ( DISTINCT + 36 ) * - 45 * + 90 + - 69 + + ( - - 89 ) * + - 8 + - + COUNT ( * ), - - 0 / 82 * + - 57 - COUNT ( * ) + - 80 + + 68 )
----
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT + COUNT( + + 42 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2103
SELECT + COUNT ( + + 42 ) col2
----
1

query III rowsort
SELECT + 51, 90 * + 31 + + 45 AS col2, - 23 * + - 90 + - 34 AS col0
----
51
2835
2036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2105
SELECT CASE + + AVG ( ALL - ( 27 ) ) WHEN + + 97 / + 36 * + COUNT( * ) THEN + - 22 WHEN - CAST( NULL AS SIGNED ) + - 92 + + + ( + 74 ) - - 3 THEN + 67 * + CAST( NULL AS SIGNED ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2105
SELECT CASE + + AVG ( ALL - ( 27 ) ) WHEN + + 97 / + 36 * + COUNT ( * ) THEN + - 22 WHEN - CAST ( NULL AS INTEGER ) + - 92 + + + ( + 74 ) - - 3 THEN + 67 * + CAST ( NULL AS INTEGER ) END col0
----
NULL

query I rowsort
SELECT ALL + - 11 * + + 43
----
-473

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT - - 23 * + + 56 + COUNT( * )
----
1289

skipif mysql # not compatible
query I rowsort label-2107
SELECT - - 23 * + + 56 + COUNT ( * )
----
1289

query II rowsort
SELECT ALL + + 76 col1, + 14 AS col1
----
76
14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2109
SELECT + - 48 * + + SUM( ALL + CASE 27 WHEN - 62 THEN NULL ELSE + - CAST( NULL AS DECIMAL ) END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2109
SELECT + - 48 * + + SUM ( ALL + CASE 27 WHEN - 62 THEN NULL ELSE + - CAST ( NULL AS REAL ) END ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2110
SELECT ALL - 9 * + CASE - - 77 WHEN + + COUNT( DISTINCT 14 ) THEN 54 WHEN 73 / - - 47 + - - 48 THEN - - 51 WHEN + 34 + + 41 * + AVG ( ALL + 24 ) + + CAST( NULL AS SIGNED ) THEN NULL END + + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL - 9 * + CASE - - 77 WHEN + + COUNT ( DISTINCT 14 ) THEN 54 WHEN 73 / - - 47 + - - 48 THEN - - 51 WHEN + 34 + + 41 * + AVG ( ALL + 24 ) + + CAST ( NULL AS INTEGER ) THEN NULL END + + + COUNT ( * ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2112
SELECT + - 37 DIV SUM( ALL + 6 ) - - 85 - + 58 * + - ( + 17 ), + 86 + - 85 DIV - COALESCE ( + - 41, + 40 - - + 33, - 7 + + - 11 ) col0
----
1065
84

skipif mysql # not compatible
query II rowsort label-2112
SELECT + - 37 / SUM ( ALL + 6 ) - - 85 - + 58 * + - ( + 17 ), + 86 + - 85 / - COALESCE ( + - 41, + 40 - - + 33, - 7 + + - 11 ) col0
----
1065
84

query II rowsort
SELECT + 24 * + - 36 * 72 + 74, 15 AS col1
----
-62134
15

query I rowsort
SELECT - + 23 - 42 - - 58 - + 87
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT + + 22 * - 92 + 82 + - NULLIF ( - SUM( + - 70 ), 39 ) AS col2
----
-2012

skipif mysql # not compatible
query I rowsort label-2115
SELECT + + 22 * - 92 + 82 + - NULLIF ( - SUM ( + - 70 ), 39 ) AS col2
----
-2012

query II rowsort
SELECT DISTINCT + ( + 89 ) AS col2, 17 AS col1
----
89
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2117
SELECT - - 46 * - - 19 AS col0, - CASE + ( - 96 ) WHEN + 16 + MAX( DISTINCT - ( 72 ) ) THEN NULL WHEN - 4 / - + MAX( + 70 ) * - + NULLIF ( + 21, + 9 - ( + + 1 ) ) * - + 97 * + - 8 + + + 51 * + COUNT( * ) + + 26 + 30 * + ( CASE + MIN( - 65 ) WHEN COUNT( * ) * - 16 + 19 THEN 54 WHEN + 23 / 32 THEN NULL ELSE NULL END ) + CASE 57 WHEN + ( COUNT( * ) ) + - 82 THEN NULL WHEN - 5 THEN NULL WHEN 20 THEN ( 91 ) END * 77 - 66 THEN NULL ELSE 7 / - SUM( ALL + CAST( NULL AS SIGNED ) * + 57 ) END * NULLIF ( - 36, - 48 )
----
874
NULL

skipif mysql # not compatible
query II rowsort label-2117
SELECT - - 46 * - - 19 AS col0, - CASE + ( - 96 ) WHEN + 16 + MAX ( DISTINCT - ( 72 ) ) THEN NULL WHEN - 4 / - + MAX ( + 70 ) * - + NULLIF ( + 21, + 9 - ( + + 1 ) ) * - + 97 * + - 8 + + + 51 * + COUNT ( * ) + + 26 + 30 * + ( CASE + MIN ( - 65 ) WHEN COUNT ( * ) * - 16 + 19 THEN 54 WHEN + 23 / 32 THEN NULL ELSE NULL END ) + CASE 57 WHEN + ( COUNT ( * ) ) + - 82 THEN NULL WHEN - 5 THEN NULL WHEN 20 THEN ( 91 ) END * 77 - 66 THEN NULL ELSE 7 / - SUM ( ALL + CAST ( NULL AS INTEGER ) * + 57 ) END * NULLIF ( - 36, - 48 )
----
874
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2118
SELECT DISTINCT + COUNT( ALL - 89 ) * COUNT( * ) * + CAST( + - 25 AS SIGNED ) + + - 71 * - - 21 AS col1
----
-1516

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT + COUNT ( ALL - 89 ) * COUNT ( * ) * + CAST ( + - 25 AS INTEGER ) + + - 71 * - - 21 AS col1
----
-1516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2119
SELECT DISTINCT 81 * - CAST( NULL AS SIGNED ) * - + ( - 47 ) + + COUNT( * ) + - COUNT( * ) * - - ( - 65 ) * - 93 * + 86 / - MAX( ALL COALESCE ( 26, + 42 ) ) + + 4 + 74 * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT 81 * - CAST ( NULL AS INTEGER ) * - + ( - 47 ) + + COUNT ( * ) + - COUNT ( * ) * - - ( - 65 ) * - 93 * + 86 / - MAX ( ALL COALESCE ( 26, + 42 ) ) + + 4 + 74 * - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2120
SELECT DISTINCT + ( - + 71 ) * - COUNT( - 46 ) + - ( - - 34 ) + COALESCE ( + CAST( NULL AS SIGNED ), + 2 ) + + COUNT( ALL - - 7 ) * - 60 + - 11
----
-32

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT + ( - + 71 ) * - COUNT ( - 46 ) + - ( - - 34 ) + COALESCE ( + CAST ( NULL AS INTEGER ), + 2 ) + + COUNT ( ALL - - 7 ) * - 60 + - 11
----
-32

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

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

query I rowsort
SELECT - 11 + + 37
----
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT ALL - 26 + + MIN( 72 ) + + COUNT( + + 86 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL - 26 + + MIN ( 72 ) + + COUNT ( + + 86 ) AS col1
----
47

query I rowsort
SELECT DISTINCT + 72 * - - 2 AS col1
----
144

query I rowsort
SELECT DISTINCT + 99 + + 10 AS col0
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-2127
SELECT - ( + - 36 ) + - COALESCE ( + 91, - 55 + + 52 DIV - 3 )
----
-55

skipif mysql # not compatible
query I rowsort label-2127
SELECT - ( + - 36 ) + - COALESCE ( + 91, - 55 + + 52 / - 3 )
----
-55

query I rowsort
SELECT ALL + 81 + - + 18 AS col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-2129
SELECT DISTINCT CASE - 10 WHEN 15 THEN COUNT( ALL 41 ) + + 3 END - - - 22 / + + 46 AS col0, 12 + + 10 * + 76 - + 22 - 14 * - - 80 - COUNT( * )
----
NULL
-371

skipif mysql # not compatible
query II rowsort label-2129
SELECT DISTINCT CASE - 10 WHEN 15 THEN COUNT ( ALL 41 ) + + 3 END - - - 22 / + + 46 AS col0, 12 + + 10 * + 76 - + 22 - 14 * - - 80 - COUNT ( * )
----
NULL
-371

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2130
SELECT ALL CAST( + + 37 AS SIGNED ) AS col2, 64
----
37
64

skipif mysql # not compatible
query II rowsort label-2130
SELECT ALL CAST ( + + 37 AS INTEGER ) AS col2, 64
----
37
64

query I rowsort
SELECT + 28 + - 86 - 58 + + 2 * - 52
----
-220

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

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

query II rowsort
SELECT ALL 10 - - CASE 37 WHEN - + ( + - 0 ) THEN 2 ELSE NULL END + - - 24 AS col1, - 94 + 11
----
NULL
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2134
SELECT ALL ( + 57 ) DIV + SUM( + 13 ) + - 24
----
-20

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL ( + 57 ) / + SUM ( + 13 ) + - 24
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2135
SELECT + MIN( - 25 ) + + - CAST( - 80 AS SIGNED ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2135
SELECT + MIN ( - 25 ) + + - CAST ( - 80 AS INTEGER ) AS col0
----
55

query I rowsort
SELECT - 92 + - - 57 * 79
----
4411

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2137
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 40, + 86 AS col2
----
NULL
86

skipif mysql # not compatible
query II rowsort label-2137
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 40, + 86 AS col2
----
NULL
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2138
SELECT DISTINCT - 37 DIV COUNT( * ) AS col1
----
-37

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

query I rowsort
SELECT ALL 38 * + - 99
----
-3762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2140
SELECT DISTINCT 69 * - 95 AS col0, COUNT( * ) - ( COUNT( * ) ) + + - CAST( NULL AS SIGNED )
----
-6555
NULL

skipif mysql # not compatible
query II rowsort label-2140
SELECT DISTINCT 69 * - 95 AS col0, COUNT ( * ) - ( COUNT ( * ) ) + + - CAST ( NULL AS INTEGER )
----
-6555
NULL

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

query I rowsort
SELECT + 70 * + 79 * + 12 AS col2
----
66360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2143
SELECT DISTINCT + - COALESCE ( - 62, - 98 * COUNT( * ) DIV + 38 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT + - COALESCE ( - 62, - 98 * COUNT ( * ) / + 38 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT - + COUNT( * ) * - 78 - + + 59 * 7 * - 77 * + 45 + 55 AS col1
----
1431178

skipif mysql # not compatible
query I rowsort label-2144
SELECT - + COUNT ( * ) * - 78 - + + 59 * 7 * - 77 * + 45 + 55 AS col1
----
1431178

query I rowsort
SELECT ALL 12 * + 64
----
768

onlyif mysql # DIV for integer division: 
query I rowsort label-2146
SELECT 0 DIV - - 89 * + 31 * - 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2146
SELECT 0 / - - 89 * + 31 * - 15 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT 56 * 10 - - COUNT( * ) AS col1
----
561

skipif mysql # not compatible
query I rowsort label-2147
SELECT 56 * 10 - - COUNT ( * ) AS col1
----
561

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT + MIN( ALL + + 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-2148
SELECT + MIN ( ALL + + 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT DISTINCT + 29 + + NULLIF ( + 54, + 3 ) + ( - - 69 ) + - SUM( - 46 ) + - - 51
----
249

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT + 29 + + NULLIF ( + 54, + 3 ) + ( - - 69 ) + - SUM ( - 46 ) + - - 51
----
249

query I rowsort
SELECT ALL - 70 * 70 * - 55 AS col2
----
269500

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT + 79 + - 56 * + MAX( - 26 ) AS col2
----
1535

skipif mysql # not compatible
query I rowsort label-2151
SELECT + 79 + - 56 * + MAX ( - 26 ) AS col2
----
1535

query II rowsort
SELECT 93 col1, + 18
----
93
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL - 31 - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL - 31 - COUNT ( * )
----
-32

query II rowsort
SELECT 87 - - + 78 * ( ( - ( + 21 ) ) ) AS col2, + 64 AS col1
----
-1551
64

query II rowsort
SELECT DISTINCT 68 AS col1, 13 AS col0
----
68
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT - NULLIF ( 96, + 40 + + 65 ) - + COALESCE ( - + 81, 22 ) + 10 * - 56 + + + 56 * + COUNT( * ) AS col2
----
-519

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT - NULLIF ( 96, + 40 + + 65 ) - + COALESCE ( - + 81, 22 ) + 10 * - 56 + + + 56 * + COUNT ( * ) AS col2
----
-519

onlyif mysql # DIV for integer division: 
query I rowsort label-2157
SELECT 77 DIV 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2157
SELECT 77 / 87 AS col0
----
0

query I rowsort
SELECT 12 * - 70 AS col0
----
-840

query II rowsort
SELECT DISTINCT 79 col2, + 53 * + - 42 AS col1
----
79
-2226

query I rowsort
SELECT DISTINCT - 13 - + 72 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT + 41 * - COALESCE ( + ( + 36 ), COUNT( * ) + - - 67 + + + COUNT( * ) )
----
-1476

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT + 41 * - COALESCE ( + ( + 36 ), COUNT ( * ) + - - 67 + + + COUNT ( * ) )
----
-1476

onlyif mysql # DIV for integer division: 
query II rowsort label-2162
SELECT - 40, 82 DIV 61 col1
----
-40
1

skipif mysql # not compatible
query II rowsort label-2162
SELECT - 40, 82 / 61 col1
----
-40
1

query II rowsort
SELECT 22 AS col2, 56 col0
----
22
56

query I rowsort
SELECT ALL - 24 * 98
----
-2352

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT - MAX( - 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2166
SELECT - MAX ( - 36 ) AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2167
SELECT ALL - + CASE 73 WHEN 63 * + 48 + - NULLIF ( - 3, 25 * 55 ) / + - 77 THEN + 97 WHEN - - ( CASE + - 45 WHEN 65 THEN NULL WHEN 7 * - 97 * 99 THEN + 82 / + AVG ( ALL + 38 ) - 99 ELSE NULL END ) + COALESCE ( - 24, - + CASE + CAST( NULL AS SIGNED ) WHEN - + 49 THEN 21 + - AVG ( + 61 ) + 45 WHEN + 93 + 71 THEN NULL END * COUNT( * ) + 37 ) * 12 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL - + CASE 73 WHEN 63 * + 48 + - NULLIF ( - 3, 25 * 55 ) / + - 77 THEN + 97 WHEN - - ( CASE + - 45 WHEN 65 THEN NULL WHEN 7 * - 97 * 99 THEN + 82 / + AVG ( ALL + 38 ) - 99 ELSE NULL END ) + COALESCE ( - 24, - + CASE + CAST ( NULL AS INTEGER ) WHEN - + 49 THEN 21 + - AVG ( + 61 ) + 45 WHEN + 93 + 71 THEN NULL END * COUNT ( * ) + 37 ) * 12 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2168
SELECT - COALESCE ( - 52, - - ( + COUNT( * ) ), + + CAST( NULL AS SIGNED ) * ( - - 35 ), + 28 * - COUNT( * ) + 29 ) DIV - COUNT( * ) + + + 63 - - 8 + 61 + + 33 + 3 * 90 * + 30
----
8213

skipif mysql # not compatible
query I rowsort label-2168
SELECT - COALESCE ( - 52, - - ( + COUNT ( * ) ), + + CAST ( NULL AS INTEGER ) * ( - - 35 ), + 28 * - COUNT ( * ) + 29 ) / - COUNT ( * ) + + + 63 - - 8 + 61 + + 33 + 3 * 90 * + 30
----
8213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2169
SELECT 79 * COALESCE ( 53, + 83, - 77 + + CAST( - SUM( ALL - - 13 ) AS SIGNED ), + 86 + + 98 )
----
4187

skipif mysql # not compatible
query I rowsort label-2169
SELECT 79 * COALESCE ( 53, + 83, - 77 + + CAST ( - SUM ( ALL - - 13 ) AS INTEGER ), + 86 + + 98 )
----
4187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2170
SELECT ALL - 76 DIV 3 DIV - - 45 + SUM( 30 )
----
30

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL - 76 / 3 / - - 45 + SUM ( 30 )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT DISTINCT - - 86 + 52 + + 16 DIV - - 25 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT - - 86 + 52 + + 16 / - - 25 AS col2
----
138

query I rowsort
SELECT ALL - 26 + - 19 + - + 69 col0
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2173
SELECT 58 + + 85 + - + CAST( + 78 AS SIGNED ) - + + 69
----
-4

skipif mysql # not compatible
query I rowsort label-2173
SELECT 58 + + 85 + - + CAST ( + 78 AS INTEGER ) - + + 69
----
-4

query I rowsort
SELECT ALL - 15 + + - 93
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-2175
SELECT DISTINCT - COUNT( * ) AS col2, - 66 * + 79 + + ( - 32 )
----
-1
-5246

skipif mysql # not compatible
query II rowsort label-2175
SELECT DISTINCT - COUNT ( * ) AS col2, - 66 * + 79 + + ( - 32 )
----
-1
-5246

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT 71 * + + 68 * - - 44 * + + 87 + COUNT( * ) + - ( - 8 )
----
18481593

skipif mysql # not compatible
query I rowsort label-2176
SELECT 71 * + + 68 * - - 44 * + + 87 + COUNT ( * ) + - ( - 8 )
----
18481593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT ALL - CAST( - + 44 AS SIGNED ) + + CAST( - 60 AS SIGNED ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL - CAST ( - + 44 AS INTEGER ) + + CAST ( - 60 AS INTEGER ) AS col2
----
-16

query I rowsort
SELECT 37 + - - 75 * 24 AS col0
----
1837

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT - COALESCE ( - + 11, 30, - 1 ) * - COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-2179
SELECT - COALESCE ( - + 11, 30, - 1 ) * - COUNT ( * ) AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2180
SELECT ALL COUNT( * ) + + + COUNT( * ) + 52 + + - 47 DIV 30 + - - 12 * + 67 * + + COUNT( * ) DIV + - COUNT( * ) AS col0
----
-751

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL COUNT ( * ) + + + COUNT ( * ) + 52 + + - 47 / 30 + - - 12 * + 67 * + + COUNT ( * ) / + - COUNT ( * ) AS col0
----
-751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT - CAST( 62 AS SIGNED ) + - + NULLIF ( + CASE - 80 WHEN + 93 THEN NULL WHEN 57 THEN - + COALESCE ( + 19, - - 40 + 57 ) ELSE NULL END, 12 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT - CAST ( 62 AS INTEGER ) + - + NULLIF ( + CASE - 80 WHEN + 93 THEN NULL WHEN 57 THEN - + COALESCE ( + 19, - - 40 + 57 ) ELSE NULL END, 12 ) AS col0
----
NULL

query I rowsort
SELECT 11 * - 94 + + 8 AS col1
----
-1026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2183
SELECT - CASE + - 75 WHEN + + 16 THEN - COUNT( * ) * 17 DIV + - 91 + 5 DIV + - 10 * - - ( 19 ) + + + CAST( NULL AS SIGNED ) + + 86 + + - NULLIF ( + 12, - 74 * 58 ) DIV - 35 DIV + - COUNT( * ) + + 92 WHEN - - ( 58 ) * - + 99 * - NULLIF ( + COALESCE ( - + 61, + + 39 + + - 76 + + COUNT( * ) ), + COUNT( * ) ) * - 29 - - 63 THEN NULL ELSE - 29 + 17 END + + 27 col2
----
39

skipif mysql # not compatible
query I rowsort label-2183
SELECT - CASE + - 75 WHEN + + 16 THEN - COUNT ( * ) * 17 / + - 91 + 5 / + - 10 * - - ( 19 ) + + + CAST ( NULL AS INTEGER ) + + 86 + + - NULLIF ( + 12, - 74 * 58 ) / - 35 / + - COUNT ( * ) + + 92 WHEN - - ( 58 ) * - + 99 * - NULLIF ( + COALESCE ( - + 61, + + 39 + + - 76 + + COUNT ( * ) ), + COUNT ( * ) ) * - 29 - - 63 THEN NULL ELSE - 29 + 17 END + + 27 col2
----
39

query I rowsort
SELECT ALL + 0 + - 33 + - 55 AS col0
----
-88

query II rowsort
SELECT + + ( ( - 89 ) ), + 50 AS col0
----
-89
50

query I rowsort
SELECT ALL - 30 * + - 2 AS col2
----
60

query I rowsort
SELECT DISTINCT + 72 - - + 7 col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2188
SELECT ALL - - NULLIF ( - COALESCE ( 42, - 42 ), - CAST( + 88 AS SIGNED ) )
----
-42

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - - NULLIF ( - COALESCE ( 42, - 42 ), - CAST ( + 88 AS INTEGER ) )
----
-42

query I rowsort
SELECT 96 + - 34 + 8 AS col1
----
70

query I rowsort
SELECT ALL 29 * 3 * + 38
----
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT 3 * COUNT( - ( 62 ) )
----
3

skipif mysql # not compatible
query I rowsort label-2191
SELECT 3 * COUNT ( - ( 62 ) )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2192
SELECT 74 + + + CAST( ( 75 ) AS SIGNED ) AS col1
----
149

skipif mysql # not compatible
query I rowsort label-2192
SELECT 74 + + + CAST ( ( 75 ) AS INTEGER ) AS col1
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2193
SELECT + 60 * + 77 * - COUNT( * ) + + 65 AS col2, - 71 DIV - 9
----
-4555
7

skipif mysql # not compatible
query II rowsort label-2193
SELECT + 60 * + 77 * - COUNT ( * ) + + 65 AS col2, - 71 / - 9
----
-4555
7

query I rowsort
SELECT ALL 93 * + 24
----
2232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2195
SELECT 93 + + CASE - - ( - 5 ) WHEN - 51 DIV + COUNT( * ) * - + 8 THEN + 82 WHEN - + 41 THEN NULL ELSE - + 73 END DIV - 95 + - 5 + - 68 + - 8 DIV + 50 * + 19 + - 61 * - 23
----
1423

skipif mysql # not compatible
query I rowsort label-2195
SELECT 93 + + CASE - - ( - 5 ) WHEN - 51 / + COUNT ( * ) * - + 8 THEN + 82 WHEN - + 41 THEN NULL ELSE - + 73 END / - 95 + - 5 + - 68 + - 8 / + 50 * + 19 + - 61 * - 23
----
1423

query I rowsort
SELECT 31 + ( - 17 )
----
14

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

skipif mysql # not compatible
query I rowsort label-2197
SELECT COUNT ( * ) + 77 * 34 * - ( - 15 ) AS col1
----
39271

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT ALL COALESCE ( COUNT( * ), COUNT( * ) ) * - 72
----
-72

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL COALESCE ( COUNT ( * ), COUNT ( * ) ) * - 72
----
-72

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

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

query I rowsort
SELECT 37 + + 95 AS col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT COUNT( * ) * NULLIF ( COUNT( * ), MIN( - 34 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2201
SELECT COUNT ( * ) * NULLIF ( COUNT ( * ), MIN ( - 34 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT DISTINCT + CASE + - 80 WHEN - 16 THEN NULL WHEN COUNT( * ) THEN - + 73 WHEN - 60 THEN NULL ELSE NULL END + + + COUNT( * ) * + COUNT( * ) * + COUNT( * ) / - ( + + 23 ) + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT + CASE + - 80 WHEN - 16 THEN NULL WHEN COUNT ( * ) THEN - + 73 WHEN - 60 THEN NULL ELSE NULL END + + + COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) / - ( + + 23 ) + + 26
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 89 + + - 53 - + 37 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ALL - COUNT( * ) + - 92 + - 86
----
-179

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL - COUNT ( * ) + - 92 + - 86
----
-179

query I rowsort
SELECT NULLIF ( + 13, - 48 - 84 * - + 75 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT ALL - MAX( - 99 ) * 67 * - COUNT( * )
----
-6633

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL - MAX ( - 99 ) * 67 * - COUNT ( * )
----
-6633

query I rowsort
SELECT DISTINCT + - 50 * - 44 + + 39
----
2239

query I rowsort
SELECT ALL - 16 * - 40 + 7 col1
----
647

query I rowsort
SELECT + NULLIF ( - 2, 8 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2211
SELECT DISTINCT + CASE - ( 40 ) WHEN - + 16 + - 76 * - + 71 THEN 16 WHEN - - ( - 99 ) / + + 63 THEN NULL WHEN 98 + - 77 THEN NULL ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT + CASE - ( 40 ) WHEN - + 16 + - 76 * - + 71 THEN 16 WHEN - - ( - 99 ) / + + 63 THEN NULL WHEN 98 + - 77 THEN NULL ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT + 29 DIV - 84 + - - 15 + 18 + + - 62 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-2212
SELECT + 29 / - 84 + - - 15 + 18 + + - 62 AS col2
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2213
SELECT DISTINCT - 70 DIV - 8 + + 44 + COUNT( * ) + + + 27 * - + 53 * - - 45 + + 82 AS col1
----
-64260

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT - 70 / - 8 + + 44 + COUNT ( * ) + + + 27 * - + 53 * - - 45 + + 82 AS col1
----
-64260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2214
SELECT - ( + 87 ) * 18 - + 93 * 63 - + CAST( 12 AS SIGNED )
----
-7437

skipif mysql # not compatible
query I rowsort label-2214
SELECT - ( + 87 ) * 18 - + 93 * 63 - + CAST ( 12 AS INTEGER )
----
-7437

query I rowsort
SELECT ALL + - 44 AS col0
----
-44

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

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

query I rowsort
SELECT + 35 * + 27
----
945

query I rowsort
SELECT + 11 * + 31
----
341

query I rowsort
SELECT DISTINCT 52 * + 3
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT + NULLIF ( + - 58, - NULLIF ( + - 57, COUNT( * ) * + 87 / - + 56 + - COUNT( * ) - + - 26 ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-2220
SELECT + NULLIF ( + - 58, - NULLIF ( + - 57, COUNT ( * ) * + 87 / - + 56 + - COUNT ( * ) - + - 26 ) ) AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2221
SELECT DISTINCT - CASE - - ( - - CASE + 62 WHEN - 9 THEN - - ( 88 ) * + NULLIF ( 93, + - 45 ) + - 40 + + - COUNT( + - 89 ) + + 59 / - 2 END ) WHEN - CASE 64 WHEN 70 + + 73 * - + COALESCE ( + 13, - + 36, + ( + ( + 99 ) ) ) THEN + 97 ELSE + 59 * + - COUNT( * ) + 80 - - - COUNT( * ) - - 35 END THEN + 68 * ( 42 ) WHEN + 77 * 13 THEN + 61 ELSE ( + COUNT( * ) ) * ( 80 + MIN( NULLIF ( + NULLIF ( 99, 9 ), + CAST( NULL AS SIGNED ) / 4 ) ) * - 82 ) END * + 78 AS col1
----
626964

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT - CASE - - ( - - CASE + 62 WHEN - 9 THEN - - ( 88 ) * + NULLIF ( 93, + - 45 ) + - 40 + + - COUNT ( + - 89 ) + + 59 / - 2 END ) WHEN - CASE 64 WHEN 70 + + 73 * - + COALESCE ( + 13, - + 36, + ( + ( + 99 ) ) ) THEN + 97 ELSE + 59 * + - COUNT ( * ) + 80 - - - COUNT ( * ) - - 35 END THEN + 68 * ( 42 ) WHEN + 77 * 13 THEN + 61 ELSE ( + COUNT ( * ) ) * ( 80 + MIN ( NULLIF ( + NULLIF ( 99, 9 ), + CAST ( NULL AS INTEGER ) / 4 ) ) * - 82 ) END * + 78 AS col1
----
626964

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2223
SELECT + 28 - - 75 + ( + 90 ) * - 37 * + - 9 + - - MIN( DISTINCT - 90 ) AS col2, + 11 AS col1
----
29983
11

skipif mysql # not compatible
query II rowsort label-2223
SELECT + 28 - - 75 + ( + 90 ) * - 37 * + - 9 + - - MIN ( DISTINCT - 90 ) AS col2, + 11 AS col1
----
29983
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2224
SELECT + 45 * - + 58 * - CAST( NULL AS DECIMAL ) AS col1, - 7 DIV - + ( SUM( 58 ) ) + 27 * - - 23 * - CAST( 12 AS SIGNED ) + - COUNT( * ) * - - 42 * + 3
----
NULL
-7578

skipif mysql # not compatible
query II rowsort label-2224
SELECT + 45 * - + 58 * - CAST ( NULL AS REAL ) AS col1, - 7 / - + ( SUM ( 58 ) ) + 27 * - - 23 * - CAST ( 12 AS INTEGER ) + - COUNT ( * ) * - - 42 * + 3
----
NULL
-7578

query I rowsort
SELECT ALL 51 + + 33
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT - CASE + 97 WHEN COUNT( * ) + - 73 + - - COUNT( * ) * - 53 + - - ( + + 80 ) THEN 13 * COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT - CASE + 97 WHEN COUNT ( * ) + - 73 + - - COUNT ( * ) * - 53 + - - ( + + 80 ) THEN 13 * COUNT ( * ) END AS col0
----
NULL

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

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

query I rowsort
SELECT + 92 + 46 * + 21 + + - 37 AS col2
----
1021

query I rowsort
SELECT + 9 * + + 30
----
270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2230
SELECT + 15 * MAX( ALL 69 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2230
SELECT + 15 * MAX ( ALL 69 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2231
SELECT DISTINCT COALESCE ( MAX( DISTINCT - CAST( NULL AS SIGNED ) ), + 79 ) + + 34 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT COALESCE ( MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ), + 79 ) + + 34 AS col1
----
113

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2232
SELECT - NULLIF ( 4, + - COUNT( * ) + + + AVG ( ALL CAST( NULL AS DECIMAL ) ) + + 14 + 66 / - - 37 * 52 - + 69 )
----
-4

skipif mysql # not compatible
query I rowsort label-2232
SELECT - NULLIF ( 4, + - COUNT ( * ) + + + AVG ( ALL CAST ( NULL AS REAL ) ) + + 14 + 66 / - - 37 * 52 - + 69 )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2233
SELECT 99, CASE + 63 WHEN + + ( - 4 ) * + 38 * 74 THEN + - CASE - ( + ( - 93 ) ) WHEN 48 THEN + - 69 * - 58 WHEN COALESCE ( - + 88, + + 99 ) THEN NULL WHEN - - 55 THEN NULL ELSE NULL END WHEN + + 37 + + 49 + - - COUNT( + - NULLIF ( + - 77, - 36 ) ) * - 26 THEN - 55 + + - 88 END * - CAST( - 24 AS DECIMAL ) + + 26 AS col2
----
99
NULL

skipif mysql # not compatible
query II rowsort label-2233
SELECT 99, CASE + 63 WHEN + + ( - 4 ) * + 38 * 74 THEN + - CASE - ( + ( - 93 ) ) WHEN 48 THEN + - 69 * - 58 WHEN COALESCE ( - + 88, + + 99 ) THEN NULL WHEN - - 55 THEN NULL ELSE NULL END WHEN + + 37 + + 49 + - - COUNT ( + - NULLIF ( + - 77, - 36 ) ) * - 26 THEN - 55 + + - 88 END * - CAST ( - 24 AS REAL ) + + 26 AS col2
----
99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2234
SELECT 72 AS col1, MAX( DISTINCT + 98 ) + + CAST( - 97 AS SIGNED )
----
72
1

skipif mysql # not compatible
query II rowsort label-2234
SELECT 72 AS col1, MAX ( DISTINCT + 98 ) + + CAST ( - 97 AS INTEGER )
----
72
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2235
SELECT + COALESCE ( 20, - ( - MAX( DISTINCT + 96 ) ) ) * 71 + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2235
SELECT + COALESCE ( 20, - ( - MAX ( DISTINCT + 96 ) ) ) * 71 + - CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT + - ( + 23 ) * 91 AS col2, + ( 97 )
----
-2093
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT - + 13 - 36 * + - MIN( DISTINCT + 51 ) * COUNT( * )
----
1823

skipif mysql # not compatible
query I rowsort label-2238
SELECT - + 13 - 36 * + - MIN ( DISTINCT + 51 ) * COUNT ( * )
----
1823

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT - + 55 * + COUNT( * ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-2239
SELECT - + 55 * + COUNT ( * ) col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2240
SELECT + 85 * 58 DIV 11 - - + 85 + - + 42 DIV 59 * ( - + 1 ) + 22
----
555

skipif mysql # not compatible
query I rowsort label-2240
SELECT + 85 * 58 / 11 - - + 85 + - + 42 / 59 * ( - + 1 ) + 22
----
555

onlyif mysql # DIV for integer division: 
query I rowsort label-2241
SELECT - - 38 DIV + 44 + 26
----
26

skipif mysql # not compatible
query I rowsort label-2241
SELECT - - 38 / + 44 + 26
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT ALL + 33 DIV - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL + 33 / - 54 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2243
SELECT + MIN( DISTINCT - - 9 ) DIV + + 50 + - 81 - + + 66 AS col0, + 62 + - CAST( 55 AS SIGNED )
----
-147
7

skipif mysql # not compatible
query II rowsort label-2243
SELECT + MIN ( DISTINCT - - 9 ) / + + 50 + - 81 - + + 66 AS col0, + 62 + - CAST ( 55 AS INTEGER )
----
-147
7

query I rowsort
SELECT - ( 57 ) AS col2
----
-57

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

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

query I rowsort
SELECT ALL - 92 * - 83 AS col0
----
7636

query I rowsort
SELECT - - 86 * + - 81
----
-6966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2248
SELECT ALL + + CASE CAST( 77 AS SIGNED ) WHEN - + ( - COUNT( * ) ) + + NULLIF ( + CASE + + COUNT( * ) WHEN 8 THEN - 82 ELSE - 93 END, - ( + MIN( DISTINCT + - 92 ) ) ) * + 23 THEN NULL WHEN CAST( + 48 AS SIGNED ) THEN NULL ELSE 35 END
----
35

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL + + CASE CAST ( 77 AS INTEGER ) WHEN - + ( - COUNT ( * ) ) + + NULLIF ( + CASE + + COUNT ( * ) WHEN 8 THEN - 82 ELSE - 93 END, - ( + MIN ( DISTINCT + - 92 ) ) ) * + 23 THEN NULL WHEN CAST ( + 48 AS INTEGER ) THEN NULL ELSE 35 END
----
35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2249
SELECT - - 39 DIV - + CAST( COALESCE ( - + 92, + 38 ) AS SIGNED ) + + - ( 84 ) col0
----
-84

skipif mysql # not compatible
query I rowsort label-2249
SELECT - - 39 / - + CAST ( COALESCE ( - + 92, + 38 ) AS INTEGER ) + + - ( 84 ) col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2250
SELECT + COALESCE ( 6, 70 * + + MIN( + 4 ) ) + + - CASE + 39 WHEN - COALESCE ( MIN( 95 ), + + ( 89 ) * - COUNT( * ) + + + 2, ( 58 ) * 24 + + ( 41 ) + 54 * - 71 + + CAST( NULL AS SIGNED ) * + + 77 * + ( 23 ) + - 3 ) THEN - + 60 * ( + 97 ) * + - 12 + + ( 1 ) * 69 ELSE 33 DIV - 86 END AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2250
SELECT + COALESCE ( 6, 70 * + + MIN ( + 4 ) ) + + - CASE + 39 WHEN - COALESCE ( MIN ( 95 ), + + ( 89 ) * - COUNT ( * ) + + + 2, ( 58 ) * 24 + + ( 41 ) + 54 * - 71 + + CAST ( NULL AS INTEGER ) * + + 77 * + ( 23 ) + - 3 ) THEN - + 60 * ( + 97 ) * + - 12 + + ( 1 ) * 69 ELSE 33 / - 86 END AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2251
SELECT - 11 DIV + + 99
----
0

skipif mysql # not compatible
query I rowsort label-2251
SELECT - 11 / + + 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT - COALESCE ( + ( + 38 ), COUNT( * ) ) * + + 29 + - - 79 col0
----
-1023

skipif mysql # not compatible
query I rowsort label-2252
SELECT - COALESCE ( + ( + 38 ), COUNT ( * ) ) * + + 29 + - - 79 col0
----
-1023

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2253
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) + + 91 - - 74 / 21 * - 40 + - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2253
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) + + 91 - - 74 / 21 * - 40 + - 79 AS col1
----
NULL

query I rowsort
SELECT - 88 + + 75 AS col1
----
-13

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

query I rowsort
SELECT - 64 + - 28 col1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT ALL + ( + 63 ) DIV + + 32 col2
----
1

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL + ( + 63 ) / + + 32 col2
----
1

query I rowsort
SELECT 0 * 56 + + - COALESCE ( + 78, 70 ) AS col1
----
-78

query II rowsort
SELECT ALL + 47 AS col0, - 1
----
47
-1

query I rowsort
SELECT DISTINCT - 30 * + 17 + - 76 * + 54 * + ( + - 56 ) + 24
----
229338

query I rowsort
SELECT - 28 + + 34
----
6

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2263
SELECT - 45 DIV 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2263
SELECT - 45 / 88 AS col0
----
0

query I rowsort
SELECT ALL - 14 * - 74 + - 18 + - - 68 AS col2
----
1086

query I rowsort
SELECT 92 * 1 + + NULLIF ( + 65, + 77 ) AS col2
----
157

query I rowsort
SELECT ALL + 65 * ( + 52 )
----
3380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2267
SELECT - 9 + 93 - + 79 * + + CAST( NULL AS SIGNED ) * - ( - - CAST( NULL AS SIGNED ) ) AS col1, - NULLIF ( ( + 65 ), - + COUNT( * ) ) AS col1
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-2267
SELECT - 9 + 93 - + 79 * + + CAST ( NULL AS INTEGER ) * - ( - - CAST ( NULL AS INTEGER ) ) AS col1, - NULLIF ( ( + 65 ), - + COUNT ( * ) ) AS col1
----
NULL
-65

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

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 11 * - 64
----
NULL

query I rowsort
SELECT ALL 73 + 64 + + 72
----
209

onlyif mysql # aggregate syntax: 
query II rowsort label-2270
SELECT - CASE + 94 WHEN + 36 THEN 43 + - 3 + - + 45 WHEN + CASE COUNT( * ) WHEN 85 * + 9 + 77 * - 80 * + - 8 - + 71 THEN - 70 WHEN 28 THEN - COUNT( DISTINCT 16 ) END THEN NULL WHEN - - 92 THEN + - 48 - - - 89 END AS col0, 60 AS col2
----
NULL
60

skipif mysql # not compatible
query II rowsort label-2270
SELECT - CASE + 94 WHEN + 36 THEN 43 + - 3 + - + 45 WHEN + CASE COUNT ( * ) WHEN 85 * + 9 + 77 * - 80 * + - 8 - + 71 THEN - 70 WHEN 28 THEN - COUNT ( DISTINCT 16 ) END THEN NULL WHEN - - 92 THEN + - 48 - - - 89 END AS col0, 60 AS col2
----
NULL
60

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

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

query I rowsort
SELECT + + 8 + COALESCE ( - 69, 52 ) AS col0
----
-61

query II rowsort
SELECT ALL 33 AS col1, 43 AS col0
----
33
43

query I rowsort
SELECT + 57 + + 22 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL - + 29 + + - COUNT( - 2 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL - + 29 + + - COUNT ( - 2 ) AS col0
----
-30

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

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

query I rowsort
SELECT 43 * + 96 AS col0
----
4128

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

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

query I rowsort
SELECT ALL - COALESCE ( + + 94, - + 64 ) AS col0
----
-94

query I rowsort
SELECT 33 + + 78 * + - 95
----
-7377

query I rowsort
SELECT ALL 67 * 91 AS col2
----
6097

query I rowsort
SELECT - 7 + 85 * + 85 + 77 AS col0
----
7295

query I rowsort
SELECT ALL 76 * - 52
----
-3952

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2284
SELECT DISTINCT + - 24 DIV + + COUNT( * ) + - + ( - - 66 ), + 50 AS col0
----
-90
50

skipif mysql # not compatible
query II rowsort label-2284
SELECT DISTINCT + - 24 / + + COUNT ( * ) + - + ( - - 66 ), + 50 AS col0
----
-90
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2285
SELECT - - 12 AS col0, CASE - 18 WHEN 62 THEN NULL WHEN + 84 THEN + ( 99 ) END + + 9 * - COUNT( * ) * - 85
----
12
NULL

skipif mysql # not compatible
query II rowsort label-2285
SELECT - - 12 AS col0, CASE - 18 WHEN 62 THEN NULL WHEN + 84 THEN + ( 99 ) END + + 9 * - COUNT ( * ) * - 85
----
12
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2286
SELECT ALL - + COUNT( * ), 45 * 55 * + 91 AS col1
----
-1
225225

skipif mysql # not compatible
query II rowsort label-2286
SELECT ALL - + COUNT ( * ), 45 * 55 * + 91 AS col1
----
-1
225225

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2287
SELECT - 1, COUNT( * ) - - + CAST( NULL AS DECIMAL ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2287
SELECT - 1, COUNT ( * ) - - + CAST ( NULL AS REAL ) AS col1
----
-1
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2289
SELECT ALL 79 DIV - 74 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL 79 / - 74 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2290
SELECT ALL - 41 AS col0, + SUM( + 96 )
----
-41
96

skipif mysql # not compatible
query II rowsort label-2290
SELECT ALL - 41 AS col0, + SUM ( + 96 )
----
-41
96

query II rowsort
SELECT + 24 col2, 8 - - 63
----
24
71

query I rowsort
SELECT CASE + - 34 WHEN - 71 + + 86 THEN 41 ELSE NULL END * + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL + COUNT( * ) + - + NULLIF ( + 41, + + CASE + 22 WHEN + 81 / + + 85 THEN - + COUNT( * ) WHEN + + 24 * + COALESCE ( - AVG ( DISTINCT 90 ), - - 52 ) THEN NULL END )
----
-40

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL + COUNT ( * ) + - + NULLIF ( + 41, + + CASE + 22 WHEN + 81 / + + 85 THEN - + COUNT ( * ) WHEN + + 24 * + COALESCE ( - AVG ( DISTINCT 90 ), - - 52 ) THEN NULL END )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT DISTINCT MAX( - 39 ) + ( - - 42 )
----
3

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT MAX ( - 39 ) + ( - - 42 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT 31 * 42 * + - CASE + MAX( ALL - 94 ) WHEN + - 65 - 40 THEN + + 99 WHEN - COALESCE ( - ( + - CASE - 26 WHEN 42 THEN 50 ELSE + COALESCE ( - - COUNT( * ), - MAX( DISTINCT - ( - - 67 ) ), 94 ) / COUNT( * ) + NULLIF ( COUNT( 30 ), + 41 ) END ), + MIN( ALL + 12 ) ) THEN NULL ELSE + ( - 63 ) + - 84 END AS col2
----
191394

skipif mysql # not compatible
query I rowsort label-2295
SELECT 31 * 42 * + - CASE + MAX ( ALL - 94 ) WHEN + - 65 - 40 THEN + + 99 WHEN - COALESCE ( - ( + - CASE - 26 WHEN 42 THEN 50 ELSE + COALESCE ( - - COUNT ( * ), - MAX ( DISTINCT - ( - - 67 ) ), 94 ) / COUNT ( * ) + NULLIF ( COUNT ( 30 ), + 41 ) END ), + MIN ( ALL + 12 ) ) THEN NULL ELSE + ( - 63 ) + - 84 END AS col2
----
191394

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT ( + 82 ) * + CASE + 11 WHEN 63 + COUNT( * ) + - COUNT( * ) * - 90 THEN - + ( - + COUNT( * ) ) + - 32 + + 89 * + 79 * - 15 ELSE NULL END + + - 58 * - 47 / + 12 * - 68 * + 5 + ( - 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2296
SELECT ( + 82 ) * + CASE + 11 WHEN 63 + COUNT ( * ) + - COUNT ( * ) * - 90 THEN - + ( - + COUNT ( * ) ) + - 32 + + 89 * + 79 * - 15 ELSE NULL END + + - 58 * - 47 / + 12 * - 68 * + 5 + ( - 69 )
----
NULL

query I rowsort
SELECT 5 * 43 * + - 7 + - - 8
----
-1497

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

skipif mysql # not compatible
query I rowsort label-2298
SELECT CAST ( NULL AS INTEGER ) + + - NULLIF ( ( COUNT ( * ) ), + 44 ) AS col0
----
NULL

query I rowsort
SELECT 56 * - 14 AS col0
----
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT COUNT( DISTINCT - COALESCE ( 82, - - 39 ) ) + 39
----
40

skipif mysql # not compatible
query I rowsort label-2300
SELECT COUNT ( DISTINCT - COALESCE ( 82, - - 39 ) ) + 39
----
40

query I rowsort
SELECT ALL - 6 + 49
----
43

query II rowsort
SELECT ALL + 43 + - 19 AS col1, - 32 col0
----
24
-32

query I rowsort
SELECT 46 * 47 col0
----
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL - 34 * - 2 * + - CASE - 56 WHEN MAX( ALL + 88 ) * - + 29 * + 69 THEN - + NULLIF ( + COUNT( * ), 54 ) ELSE - + 59 END * + COALESCE ( + 69, + 5 + - 73 + 67, - 97 + 38 + + - 1 * - + COUNT( * ) + + COUNT( * ) ) col0
----
276828

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL - 34 * - 2 * + - CASE - 56 WHEN MAX ( ALL + 88 ) * - + 29 * + 69 THEN - + NULLIF ( + COUNT ( * ), 54 ) ELSE - + 59 END * + COALESCE ( + 69, + 5 + - 73 + 67, - 97 + 38 + + - 1 * - + COUNT ( * ) + + COUNT ( * ) ) col0
----
276828

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

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

query I rowsort
SELECT ALL 81 - - 94 * 99
----
9387

query I rowsort
SELECT ALL + 7 * - 99 + + - 96
----
-789

query I rowsort
SELECT DISTINCT - 49 * + - 22 - - 23
----
1101

onlyif mysql # DIV for integer division: 
query I rowsort label-2309
SELECT 17 DIV - - 10
----
1

skipif mysql # not compatible
query I rowsort label-2309
SELECT 17 / - - 10
----
1

query I rowsort
SELECT ALL + ( 46 ) col2
----
46

query II rowsort
SELECT + 30 - - 31, 26 - 43 * - 95 AS col2
----
61
4111

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

skipif mysql # not compatible
query I rowsort label-2312
SELECT 50 * - COUNT ( * )
----
-50

query I rowsort
SELECT ALL + 47 * - 69
----
-3243

query I rowsort
SELECT + NULLIF ( - 43, + + 96 ) - + + 39
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT 7 + MAX( + 69 )
----
76

skipif mysql # not compatible
query I rowsort label-2315
SELECT 7 + MAX ( + 69 )
----
76

query I rowsort
SELECT - 93 - + - 0 + - 26
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2317
SELECT ALL 68 * CAST( + + 25 AS SIGNED ) AS col2
----
1700

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL 68 * CAST ( + + 25 AS INTEGER ) AS col2
----
1700

query I rowsort
SELECT + - 10 * - 72 * - - 86 + 49 + + 90 + - - 56 AS col0
----
62115

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT - COALESCE ( ( - - MAX( DISTINCT 85 ) ), + 97, - 23 - + 84 ) col0
----
-85

skipif mysql # not compatible
query I rowsort label-2320
SELECT - COALESCE ( ( - - MAX ( DISTINCT 85 ) ), + 97, - 23 - + 84 ) col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2321
SELECT ALL + - MIN( ALL - + 7 ) * + - CAST( NULL AS SIGNED ) + + 20 - + + COUNT( * ) + 91 * AVG ( DISTINCT - 82 ) * - - 74 + + MIN( DISTINCT + 29 ) - + 78 + + 79 * + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL + - MIN ( ALL - + 7 ) * + - CAST ( NULL AS INTEGER ) + + 20 - + + COUNT ( * ) + 91 * AVG ( DISTINCT - 82 ) * - - 74 + + MIN ( DISTINCT + 29 ) - + 78 + + 79 * + 9 AS col2
----
NULL

query I rowsort
SELECT ALL - 53 * - 34 * - 47 + 39 * - + NULLIF ( 96, - 80 / + - 40 * - 26 )
----
-88438

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT ALL - 76 * + - 72 + COUNT( * ) * - 61 AS col0
----
5411

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL - 76 * + - 72 + COUNT ( * ) * - 61 AS col0
----
5411

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

skipif mysql # not compatible
query I rowsort label-2324
SELECT SUM ( + - 7 )
----
-7

query I rowsort
SELECT 10 * - 66 + + 75 - + + 56 * - + 25 + - 35 AS col0
----
780

query I rowsort
SELECT 2 * CASE + - 61 WHEN + 52 * + 93 - + 32 THEN + 43 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2328
SELECT + MIN( ALL - - ( 58 ) ) AS col1, - ( + 15 ) AS col2
----
58
-15

skipif mysql # not compatible
query II rowsort label-2328
SELECT + MIN ( ALL - - ( 58 ) ) AS col1, - ( + 15 ) AS col2
----
58
-15

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

skipif mysql # not compatible
query I rowsort label-2329
SELECT SUM ( - 90 )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT 21 DIV - COALESCE ( - 63, - 85 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2330
SELECT 21 / - COALESCE ( - 63, - 85 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT ALL 57 + - CASE - + 23 WHEN ( - + COUNT( DISTINCT + 14 ) ) * + 46 + - 0 * COUNT( DISTINCT - 87 ) THEN NULL WHEN - 45 + + 15 + + 56 + + + MIN( ALL - - 50 ) * - ( - - COALESCE ( 85, - 17 / - 31 ) ) / 41 THEN - ( 85 ) / 96 + - - 30 END + + 20 * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL 57 + - CASE - + 23 WHEN ( - + COUNT ( DISTINCT + 14 ) ) * + 46 + - 0 * COUNT ( DISTINCT - 87 ) THEN NULL WHEN - 45 + + 15 + + 56 + + + MIN ( ALL - - 50 ) * - ( - - COALESCE ( 85, - 17 / - 31 ) ) / 41 THEN - ( 85 ) / 96 + - - 30 END + + 20 * - 94
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2333
SELECT ALL - 72 AS col0, - COUNT( * ) AS col1
----
-72
-1

skipif mysql # not compatible
query II rowsort label-2333
SELECT ALL - 72 AS col0, - COUNT ( * ) AS col1
----
-72
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT MIN( + 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2334
SELECT MIN ( + 69 ) AS col2
----
69

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

skipif mysql # not compatible
query I rowsort label-2335
SELECT + MAX ( - 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT - + COALESCE ( 90, + 79, + MAX( DISTINCT - 25 ) + 95 ) - + 69 AS col0
----
-159

skipif mysql # not compatible
query I rowsort label-2336
SELECT - + COALESCE ( 90, + 79, + MAX ( DISTINCT - 25 ) + 95 ) - + 69 AS col0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT - 66 + + - NULLIF ( ( + COUNT( ALL - 39 ) ), 61 ) * + + 28 * - 90 + + 37
----
2491

skipif mysql # not compatible
query I rowsort label-2337
SELECT - 66 + + - NULLIF ( ( + COUNT ( ALL - 39 ) ), 61 ) * + + 28 * - 90 + + 37
----
2491

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL + CASE - 59 WHEN 45 * 27 + + COUNT( * ) THEN - 34 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + CASE - 59 WHEN 45 * 27 + + COUNT ( * ) THEN - 34 WHEN COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT - + 81 * + COALESCE ( + + 10, + 59, + COUNT( * ) )
----
-810

skipif mysql # not compatible
query I rowsort label-2340
SELECT - + 81 * + COALESCE ( + + 10, + 59, + COUNT ( * ) )
----
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2341
SELECT ALL - CAST( + + CASE 10 WHEN - + 31 THEN + 49 + + 21 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL - CAST ( + + CASE 10 WHEN - + 31 THEN + 49 + + 21 END AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT DISTINCT COALESCE ( + - MAX( 94 ), + 20 + - 12 )
----
-94

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT COALESCE ( + - MAX ( 94 ), + 20 + - 12 )
----
-94

query II rowsort
SELECT - 29 AS col0, 55 AS col0
----
-29
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2344
SELECT ALL - + 7 DIV + 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - + 7 / + 44 AS col0
----
0

query I rowsort
SELECT - 55 + - - ( 24 ) + + + 61
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2346
SELECT DISTINCT - - MIN( ALL + 82 ) * - 10, CAST( NULL AS SIGNED ) * 35 * 82 + - + 91 AS col1
----
-820
NULL

skipif mysql # not compatible
query II rowsort label-2346
SELECT DISTINCT - - MIN ( ALL + 82 ) * - 10, CAST ( NULL AS INTEGER ) * 35 * 82 + - + 91 AS col1
----
-820
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT ALL + - 94 + + MIN( + ( + 77 ) ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL + - 94 + + MIN ( + ( + 77 ) ) AS col0
----
-17

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2349
SELECT - - ( + COALESCE ( + ( 83 ), + MAX( - 25 ), + NULLIF ( + - 59, + CAST( NULL AS SIGNED ) * + + 28 + 33 + + 54 ) - + - 47, - CASE - COUNT( * ) WHEN 55 THEN - + 94 * COUNT( * ) WHEN ( + + 41 ) * - COUNT( * ) * 29 THEN NULL END * - 41 + + 9 + + + 50 + + - 2 ) ) + + 58 * - CASE - CAST( 21 AS SIGNED ) WHEN - - 78 * + - 98 - 92 THEN COUNT( * ) WHEN 4 * + COUNT( + 6 ) THEN 15 + 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT - - ( + COALESCE ( + ( 83 ), + MAX ( - 25 ), + NULLIF ( + - 59, + CAST ( NULL AS INTEGER ) * + + 28 + 33 + + 54 ) - + - 47, - CASE - COUNT ( * ) WHEN 55 THEN - + 94 * COUNT ( * ) WHEN ( + + 41 ) * - COUNT ( * ) * 29 THEN NULL END * - 41 + + 9 + + + 50 + + - 2 ) ) + + 58 * - CASE - CAST ( 21 AS INTEGER ) WHEN - - 78 * + - 98 - 92 THEN COUNT ( * ) WHEN 4 * + COUNT ( + 6 ) THEN 15 + 7 ELSE NULL END
----
NULL

query II rowsort
SELECT - 70 AS col2, - ( - 51 )
----
-70
51

query I rowsort
SELECT - + 80 * 64 AS col1
----
-5120

query I rowsort
SELECT + + 74 + 17 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT NULLIF ( + ( + 59 ), + COUNT( * ) - 52 * + ( - 24 ) + - + 28 ) col1
----
59

skipif mysql # not compatible
query I rowsort label-2353
SELECT NULLIF ( + ( + 59 ), + COUNT ( * ) - 52 * + ( - 24 ) + - + 28 ) col1
----
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2354
SELECT DISTINCT - CAST( - 99 AS SIGNED ) + 71 DIV 57 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT - CAST ( - 99 AS INTEGER ) + 71 / 57 AS col2
----
100

query I rowsort
SELECT DISTINCT - + 52 + - - 15
----
-37

query II rowsort
SELECT ALL 23 + 41, - 68 AS col2
----
64
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT - 29 * + ( - + MIN( ALL + 39 ) ) * - - 21
----
23751

skipif mysql # not compatible
query I rowsort label-2357
SELECT - 29 * + ( - + MIN ( ALL + 39 ) ) * - - 21
----
23751

query I rowsort
SELECT ALL - 32 * + 91 + - - 59 AS col1
----
-2853

query I rowsort
SELECT DISTINCT + CASE + 49 WHEN + - 55 THEN 36 END
----
NULL

query I rowsort
SELECT - 52 * - - 27 - - + 27
----
-1377

query II rowsort
SELECT ( - + 97 ) AS col2, 13 * 31 AS col1
----
-97
403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2362
SELECT ALL + ( CASE 92 WHEN - - 39 + + 84 THEN NULL WHEN CAST( - 53 AS SIGNED ) THEN 50 ELSE + + ( - CAST( + - 11 AS SIGNED ) ) * - 0 END )
----
0

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL + ( CASE 92 WHEN - - 39 + + 84 THEN NULL WHEN CAST ( - 53 AS INTEGER ) THEN 50 ELSE + + ( - CAST ( + - 11 AS INTEGER ) ) * - 0 END )
----
0

query I rowsort
SELECT - 93 * - 37
----
3441

query I rowsort
SELECT + 99 * 59
----
5841

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

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

query I rowsort
SELECT ALL 95 * - + 72 - - 27 + 84 * + - 50 AS col0
----
-11013

query I rowsort
SELECT ALL 74 * - 82
----
-6068

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT + 51 * + 9 + COUNT( * )
----
460

skipif mysql # not compatible
query I rowsort label-2368
SELECT + 51 * + 9 + COUNT ( * )
----
460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2369
SELECT ALL - 89 * 61 - + CAST( + COUNT( * ) AS SIGNED ) + + + 55 AS col2
----
-5375

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL - 89 * 61 - + CAST ( + COUNT ( * ) AS INTEGER ) + + + 55 AS col2
----
-5375

query II rowsort
SELECT + 33 * + 57, - 84 AS col0
----
1881
-84

query I rowsort
SELECT COALESCE ( + 61, ( 72 ), + 93 * - 69 )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2372
SELECT - ( - + COALESCE ( 32, + ( - - 76 ) ) ) * - 4 DIV COUNT( * ) * + - 33 + + ( + COUNT( * ) ) * + - 77
----
4147

skipif mysql # not compatible
query I rowsort label-2372
SELECT - ( - + COALESCE ( 32, + ( - - 76 ) ) ) * - 4 / COUNT ( * ) * + - 33 + + ( + COUNT ( * ) ) * + - 77
----
4147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2373
SELECT + MIN( ALL + 10 ) DIV - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2373
SELECT + MIN ( ALL + 10 ) / - 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT + 97 * + - COUNT( * ) * 49 AS col0
----
-4753

skipif mysql # not compatible
query I rowsort label-2374
SELECT + 97 * + - COUNT ( * ) * 49 AS col0
----
-4753

query I rowsort
SELECT + 46 + + - 94 + - 61
----
-109

query II rowsort
SELECT ALL + ( + 74 ) AS col1, - 93 AS col0
----
74
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2377
SELECT - CAST( - 58 AS SIGNED ) + 12 + 8
----
78

skipif mysql # not compatible
query I rowsort label-2377
SELECT - CAST ( - 58 AS INTEGER ) + 12 + 8
----
78

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

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

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

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

query I rowsort
SELECT DISTINCT + 97 * ( 98 )
----
9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2381
SELECT + + CAST( NULL AS SIGNED ) - 10, 16 DIV COUNT( * ) DIV - COUNT( ( - - 19 ) ) AS col2
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-2381
SELECT + + CAST ( NULL AS INTEGER ) - 10, 16 / COUNT ( * ) / - COUNT ( ( - - 19 ) ) AS col2
----
NULL
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2382
SELECT ALL - 64 + - CAST( - COUNT( * ) AS SIGNED ) * - - 94 + + 6
----
36

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL - 64 + - CAST ( - COUNT ( * ) AS INTEGER ) * - - 94 + + 6
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2383
SELECT + - MIN( - - 6 ) + - CAST( 79 AS SIGNED ) + - - 84 * + 62 * 56
----
291563

skipif mysql # not compatible
query I rowsort label-2383
SELECT + - MIN ( - - 6 ) + - CAST ( 79 AS INTEGER ) + - - 84 * + 62 * 56
----
291563

onlyif mysql # aggregate syntax: 
query II rowsort label-2384
SELECT - COUNT( DISTINCT + 21 ), MAX( DISTINCT 48 ) AS col0
----
-1
48

skipif mysql # not compatible
query II rowsort label-2384
SELECT - COUNT ( DISTINCT + 21 ), MAX ( DISTINCT 48 ) AS col0
----
-1
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2385
SELECT ALL + MIN( ALL CAST( NULL AS SIGNED ) ) + 60 - - AVG ( DISTINCT + + 77 ) - - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL + MIN ( ALL CAST ( NULL AS INTEGER ) ) + 60 - - AVG ( DISTINCT + + 77 ) - - 20
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT + - 9 DIV + + ( + 46 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT + - 9 / + + ( + 46 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2387
SELECT + COALESCE ( 83, 7 DIV + 16 + - - 69 ) - - 12
----
95

skipif mysql # not compatible
query I rowsort label-2387
SELECT + COALESCE ( 83, 7 / + 16 + - - 69 ) - - 12
----
95

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

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

query II rowsort
SELECT ALL + COALESCE ( + + 69, + - NULLIF ( + ( + - 71 ), - 19 ) ) + - 63, - 81 AS col1
----
6
-81

query I rowsort
SELECT - 42 - 38
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL - 12 + COUNT( ALL + + 19 )
----
-11

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL - 12 + COUNT ( ALL + + 19 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ALL + - SUM( + - 90 ) * 91
----
8190

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL + - SUM ( + - 90 ) * 91
----
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT ALL + - COUNT( ALL + + NULLIF ( - - 28, + + 69 * - + 81 + - + ( 15 ) ) ) * - 5
----
5

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL + - COUNT ( ALL + + NULLIF ( - - 28, + + 69 * - + 81 + - + ( 15 ) ) ) * - 5
----
5

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

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT + COUNT ( - - 2 ) / - 32 * 48
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2395
SELECT + 17 + + 57 + + + 13 * - COUNT( * ) + - 63 + - + COALESCE ( - + 40, + + 23, - + CAST( - - 67 AS SIGNED ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2395
SELECT + 17 + + 57 + + + 13 * - COUNT ( * ) + - 63 + - + COALESCE ( - + 40, + + 23, - + CAST ( - - 67 AS INTEGER ) ) AS col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2396
SELECT ALL + ( + - 8 ) * 34 AS col0, + COUNT( * ) DIV - 77
----
-272
0

skipif mysql # not compatible
query II rowsort label-2396
SELECT ALL + ( + - 8 ) * 34 AS col0, + COUNT ( * ) / - 77
----
-272
0

query I rowsort
SELECT + 93 + - - CASE + 91 WHEN - 56 THEN + 62 + - 18 * 71 + + - 14 WHEN + 83 THEN NULL ELSE - 39 - - 79 + + - 5 END
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT - SUM( ALL + 21 ) - + 93 AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-2398
SELECT - SUM ( ALL + 21 ) - + 93 AS col2
----
-114

query I rowsort
SELECT - 69 + 39 * + + 24 * - + 79 AS col1
----
-74013

query I rowsort
SELECT - 75 - - + 0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT ALL CASE + 73 WHEN + NULLIF ( + 90, + 29 + - + 53 - MIN( + 82 ) ) THEN NULL WHEN 98 THEN NULL WHEN - 51 * 99 THEN - 90 END * 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL CASE + 73 WHEN + NULLIF ( + 90, + 29 + - + 53 - MIN ( + 82 ) ) THEN NULL WHEN 98 THEN NULL WHEN - 51 * 99 THEN - 90 END * 40 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT - 63 DIV - + 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2402
SELECT - 63 / - + 53 AS col1
----
1

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

query I rowsort
SELECT + 47 * + 63 + + 26
----
2987

query II rowsort
SELECT 40 AS col1, - 33 + - 84 col2
----
40
-117

query I rowsort
SELECT ALL - ( 65 ) AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2407
SELECT 36 * CAST( - + 84 AS SIGNED ) AS col0, 18 * + - 71
----
-3024
-1278

skipif mysql # not compatible
query II rowsort label-2407
SELECT 36 * CAST ( - + 84 AS INTEGER ) AS col0, 18 * + - 71
----
-3024
-1278

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

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

query I rowsort
SELECT ALL + 12 * 15 AS col0
----
180

query I rowsort
SELECT 62 * + ( 16 )
----
992

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT ALL - - COALESCE ( - - COUNT( * ), 10 - + 62 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL - - COALESCE ( - - COUNT ( * ), 10 - + 62 ) AS col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2412
SELECT CAST( NULL AS DECIMAL ) * + - 46 + - 98 AS col1, 97 col1
----
NULL
97

skipif mysql # not compatible
query II rowsort label-2412
SELECT CAST ( NULL AS REAL ) * + - 46 + - 98 AS col1, 97 col1
----
NULL
97

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

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

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

skipif mysql # not compatible
query I rowsort label-2414
SELECT ( + + 33 ) * + COUNT ( DISTINCT 60 ) AS col2
----
33

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

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

query I rowsort
SELECT ALL - 68 + + + 28 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT 66 + - - COUNT( * ) * - + 55 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-2417
SELECT 66 + - - COUNT ( * ) * - + 55 AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2418
SELECT + ( 16 ) * - - 75 + + - ( - 8 ) DIV + - MIN( + - 54 ) * 78
----
1200

skipif mysql # not compatible
query I rowsort label-2418
SELECT + ( 16 ) * - - 75 + + - ( - 8 ) / + - MIN ( + - 54 ) * 78
----
1200

query I rowsort
SELECT 56 - - - 31 * 85
----
-2579

query I rowsort
SELECT - 64 * 79 AS col2
----
-5056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2421
SELECT ALL NULLIF ( 52, 6 * - 95 DIV + COALESCE ( - 31, + - MIN( + - 32 ) * 80 ) ) DIV + 79 + + - 92 - 40 AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL NULLIF ( 52, 6 * - 95 / + COALESCE ( - 31, + - MIN ( + - 32 ) * 80 ) ) / + 79 + + - 92 - 40 AS col0
----
-132

query I rowsort
SELECT ALL + 52 + 55
----
107

query I rowsort
SELECT ALL + 41 + + 23
----
64

query I rowsort
SELECT + 40 + - 22 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2425
SELECT ALL + - NULLIF ( + COALESCE ( + 58, - - 79 * + ( + + 77 ) + - 64 * 47 ), - 21 + 64 ) + + CAST( ( - 2 ) AS SIGNED ) + + - CASE - ( + + 62 ) WHEN + + 29 THEN - - 67 * + 9 * + 41 / - COUNT( * ) END * - - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL + - NULLIF ( + COALESCE ( + 58, - - 79 * + ( + + 77 ) + - 64 * 47 ), - 21 + 64 ) + + CAST ( ( - 2 ) AS INTEGER ) + + - CASE - ( + + 62 ) WHEN + + 29 THEN - - 67 * + 9 * + 41 / - COUNT ( * ) END * - - 90
----
NULL

query I rowsort
SELECT ( - 78 ) + 31 + - - 92 AS col2
----
45

query I rowsort
SELECT ALL + 92 + 90
----
182

query I rowsort
SELECT 61 * + - 64
----
-3904

query I rowsort
SELECT 5 * + 54 AS col1
----
270

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

query II rowsort
SELECT - 6, 83 AS col1
----
-6
83

query I rowsort
SELECT 47 + + - COALESCE ( 15, + 79 ) * - 96 AS col0
----
1487

onlyif mysql # aggregate syntax: 
query II rowsort label-2433
SELECT ALL 8 AS col1, COUNT( * ) AS col0
----
8
1

skipif mysql # not compatible
query II rowsort label-2433
SELECT ALL 8 AS col1, COUNT ( * ) AS col0
----
8
1

query I rowsort
SELECT 56 + + + 74 * - 94 * + 89 AS col1
----
-619028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2435
SELECT COALESCE ( - 84, CAST( 5 AS SIGNED ) DIV 65 - 60 ) * 93 + 66 * - 42 + 29 * + COUNT( * ) - 97 * + - COUNT( * )
----
-10458

skipif mysql # not compatible
query I rowsort label-2435
SELECT COALESCE ( - 84, CAST ( 5 AS INTEGER ) / 65 - 60 ) * 93 + 66 * - 42 + 29 * + COUNT ( * ) - 97 * + - COUNT ( * )
----
-10458

query II rowsort
SELECT DISTINCT 66 AS col2, 72
----
66
72

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

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

query I rowsort
SELECT DISTINCT + 97 * 46 AS col1
----
4462

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2439
SELECT ALL - 27, - COALESCE ( + CAST( NULL AS SIGNED ), - COALESCE ( 11, 0 + + ( 83 ) * - 74 ) ) AS col1
----
-27
11

skipif mysql # not compatible
query II rowsort label-2439
SELECT ALL - 27, - COALESCE ( + CAST ( NULL AS INTEGER ), - COALESCE ( 11, 0 + + ( 83 ) * - 74 ) ) AS col1
----
-27
11

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

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

query I rowsort
SELECT 65 * + 99 * 52
----
334620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2442
SELECT ALL 98 DIV COUNT( 17 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL 98 / COUNT ( 17 ) AS col1
----
98

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

skipif mysql # not compatible
query I rowsort label-2443
SELECT - 5 * + + 6 - + COUNT ( * ) AS col1
----
-31

query II rowsort
SELECT 25, - 75 AS col1
----
25
-75

query II rowsort
SELECT ALL - 17 AS col1, 48 + - 10
----
-17
38

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2447
SELECT SUM( + - COALESCE ( + 42, + 26 * - - 98 * + 15 ) ) DIV + 70 + + - 89 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-2447
SELECT SUM ( + - COALESCE ( + 42, + 26 * - - 98 * + 15 ) ) / + 70 + + - 89 AS col2
----
-89

query II rowsort
SELECT DISTINCT + 71 + + + 53, - 93 col2
----
124
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2449
SELECT DISTINCT 97 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT 97 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2450
SELECT + CAST( - 59 AS SIGNED ) * - COALESCE ( - 7, 25 ) - 48 + - 57 * + 16
----
-1373

skipif mysql # not compatible
query I rowsort label-2450
SELECT + CAST ( - 59 AS INTEGER ) * - COALESCE ( - 7, 25 ) - 48 + - 57 * + 16
----
-1373

query I rowsort
SELECT DISTINCT + 30 + - - 5
----
35

query I rowsort
SELECT DISTINCT - + 42 + 97 AS col2
----
55

query II rowsort
SELECT ALL - + 38, - 38
----
-38
-38

query I rowsort
SELECT ALL - 39 + - 85 + NULLIF ( + 55, + 3 + - 73 ) + - + 60 AS col1
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2455
SELECT + + 65 * - CAST( NULL AS SIGNED ) + + 79 * + + COUNT( * ), ( + 42 ) AS col0
----
NULL
42

skipif mysql # not compatible
query II rowsort label-2455
SELECT + + 65 * - CAST ( NULL AS INTEGER ) + + 79 * + + COUNT ( * ), ( + 42 ) AS col0
----
NULL
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2456
SELECT ALL - - CAST( NULL AS SIGNED ) AS col2, 16
----
NULL
16

skipif mysql # not compatible
query II rowsort label-2456
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2, 16
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT 71 + - - COUNT( * ) + + 63 AS col2
----
135

skipif mysql # not compatible
query I rowsort label-2457
SELECT 71 + - - COUNT ( * ) + + 63 AS col2
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2458
SELECT + CASE WHEN NOT - 24 IS NOT NULL THEN + - MIN( ALL + 61 ) + + - CAST( NULL AS SIGNED ) ELSE NULL END, 29 * ( + 52 ) AS col2
----
NULL
1508

skipif mysql # not compatible
query II rowsort label-2458
SELECT + CASE WHEN NOT - 24 IS NOT NULL THEN + - MIN ( ALL + 61 ) + + - CAST ( NULL AS INTEGER ) ELSE NULL END, 29 * ( + 52 ) AS col2
----
NULL
1508

query I rowsort
SELECT ALL - + 75 + 64 * 54 AS col0
----
3381

query II rowsort
SELECT DISTINCT - 48 AS col1, + 43
----
-48
43

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

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

query I rowsort
SELECT DISTINCT + - COALESCE ( + 91, - 11 ) * + ( - - 68 ) col1
----
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2463
SELECT DISTINCT 63 - - - 67 / - 97 + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT 63 - - - 67 / - 97 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 27 AS col0, + 54 AS col2
----
27
54

query I rowsort
SELECT ALL + + 95 * + 25 AS col0
----
2375

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2467
SELECT - NULLIF ( + 38, + 70 ) * + CAST( NULL AS SIGNED ) * 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2467
SELECT - NULLIF ( + 38, + 70 ) * + CAST ( NULL AS INTEGER ) * 86 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2468
SELECT 19 * - COUNT ( - + 69 ) AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2469
SELECT 27 / + CAST( NULL AS SIGNED ), - 35 col0, - CASE - - 90 WHEN + + 21 THEN COUNT( * ) END * + MAX( DISTINCT + ( 60 ) )
----
NULL
-35
NULL

skipif mysql # not compatible
query III rowsort label-2469
SELECT 27 / + CAST ( NULL AS INTEGER ), - 35 col0, - CASE - - 90 WHEN + + 21 THEN COUNT ( * ) END * + MAX ( DISTINCT + ( 60 ) )
----
NULL
-35
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2470
SELECT + COUNT( * ) + - CASE + CAST( NULL AS SIGNED ) WHEN 22 THEN - 51 ELSE NULL END + - - 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT + COUNT ( * ) + - CASE + CAST ( NULL AS INTEGER ) WHEN 22 THEN - 51 ELSE NULL END + - - 70 AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( + - 45, ( - 53 ) + - 98 )
----
45

query I rowsort
SELECT + ( + + 27 ) * - 21 AS col0
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT + 56 + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-2473
SELECT + 56 + COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ( - 64 ) * + CASE WHEN NOT ( NOT ( MAX( + 83 ) BETWEEN - 80 AND NULL ) ) THEN + 5 ELSE - 38 + COUNT( * ) + - 10 END * + ( 73 ) - - + 14 AS col2
----
219598

skipif mysql # not compatible
query I rowsort label-2474
SELECT ( - 64 ) * + CASE WHEN NOT ( NOT ( MAX ( + 83 ) BETWEEN - 80 AND NULL ) ) THEN + 5 ELSE - 38 + COUNT ( * ) + - 10 END * + ( 73 ) - - + 14 AS col2
----
219598

onlyif mysql # DIV for integer division: 
query I rowsort label-2475
SELECT + ( 93 ) + - 25 + 99 + + + 69 DIV + 12 AS col2
----
172

skipif mysql # not compatible
query I rowsort label-2475
SELECT + ( 93 ) + - 25 + 99 + + + 69 / + 12 AS col2
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT ALL COUNT( DISTINCT + NULLIF ( + - ( 96 ), 92 ) ) * + ( + COUNT( * ) ) + - + 27 + - ( - 69 ) + 6 * 2 * + NULLIF ( - + SUM( DISTINCT - ( COALESCE ( - 51, - 87 ) ) ), - - 19 ) - - 95
----
-474

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL COUNT ( DISTINCT + NULLIF ( + - ( 96 ), 92 ) ) * + ( + COUNT ( * ) ) + - + 27 + - ( - 69 ) + 6 * 2 * + NULLIF ( - + SUM ( DISTINCT - ( COALESCE ( - 51, - 87 ) ) ), - - 19 ) - - 95
----
-474

query I rowsort
SELECT ALL 56 * - NULLIF ( + 42, - - 39 )
----
-2352

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2478
SELECT + COUNT( * ) + - - SUM( + 85 ) / + COUNT( * ) * CAST( NULL AS DECIMAL ) AS col2, - 12 * - 62 col1
----
NULL
744

skipif mysql # not compatible
query II rowsort label-2478
SELECT + COUNT ( * ) + - - SUM ( + 85 ) / + COUNT ( * ) * CAST ( NULL AS REAL ) AS col2, - 12 * - 62 col1
----
NULL
744

onlyif mysql # aggregate syntax: 
query II rowsort label-2479
SELECT ALL + MAX( 3 ), 56 AS col2
----
3
56

skipif mysql # not compatible
query II rowsort label-2479
SELECT ALL + MAX ( 3 ), 56 AS col2
----
3
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2480
SELECT DISTINCT 44 * - 37 + + 8 + - - 36 DIV + - 33 + 19
----
-1602

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT 44 * - 37 + + 8 + - - 36 / + - 33 + 19
----
-1602

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2482
SELECT - CAST( - 1 AS SIGNED ) DIV - - 76 + 47
----
47

skipif mysql # not compatible
query I rowsort label-2482
SELECT - CAST ( - 1 AS INTEGER ) / - - 76 + 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT ALL + MIN( + - 37 ) * + - 56 + + - 39 + - - 8 * + 95 * 7 + - 89 * 52 + + - ( - 8 ) AS col2
----
2733

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL + MIN ( + - 37 ) * + - 56 + + - 39 + - - 8 * + 95 * 7 + - 89 * 52 + + - ( - 8 ) AS col2
----
2733

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2484
SELECT DISTINCT + ( + + 34 ) DIV 45 * NULLIF ( 51, + 98 ) - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT + ( + + 34 ) / 45 * NULLIF ( 51, + 98 ) - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2485
SELECT + - 46 DIV 7 + MIN( ALL 83 ) * 99 * - 49 * 73 * + 27
----
-793589649

skipif mysql # not compatible
query I rowsort label-2485
SELECT + - 46 / 7 + MIN ( ALL 83 ) * 99 * - 49 * 73 * + 27
----
-793589649

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT + 63 * + 17 * - - COUNT( * )
----
1071

skipif mysql # not compatible
query I rowsort label-2487
SELECT + 63 * + 17 * - - COUNT ( * )
----
1071

query I rowsort
SELECT - + 7 + + 43
----
36

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2490
SELECT ALL + COUNT( * ) * - NULLIF ( 26, + + 46 ) DIV - ( + NULLIF ( + + 44, 80 * - + ( 92 ) ) ) + 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL + COUNT ( * ) * - NULLIF ( 26, + + 46 ) / - ( + NULLIF ( + + 44, 80 * - + ( 92 ) ) ) + 1 AS col2
----
1

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

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

query I rowsort
SELECT ALL + 16 * + - NULLIF ( 15, 26 ) AS col2
----
-240

query I rowsort
SELECT - 39 * + - 34 + 49 * - 53 AS col0
----
-1271

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2496
SELECT ALL + - 43 * + CAST( 19 AS SIGNED ) + + + 11
----
-806

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL + - 43 * + CAST ( 19 AS INTEGER ) + + + 11
----
-806

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT + 66 * + ( - COUNT( * ) ) * + + MIN( 20 ) - - 88 AS col0
----
-1232

skipif mysql # not compatible
query I rowsort label-2497
SELECT + 66 * + ( - COUNT ( * ) ) * + + MIN ( 20 ) - - 88 AS col0
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT - 35 * + - MIN( ALL 28 )
----
980

skipif mysql # not compatible
query I rowsort label-2498
SELECT - 35 * + - MIN ( ALL 28 )
----
980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2499
SELECT - + MIN( ALL ( + 14 ) ) - 50 * + - AVG ( DISTINCT - + 27 ) / CAST( NULL AS SIGNED ) + - COUNT( * ) - + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT - + MIN ( ALL ( + 14 ) ) - 50 * + - AVG ( DISTINCT - + 27 ) / CAST ( NULL AS INTEGER ) + - COUNT ( * ) - + 17 AS col0
----
NULL

query I rowsort
SELECT 89 * + + 96 + - 71
----
8473

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

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

query I rowsort
SELECT - 64 + 24 col0
----
-40

query I rowsort
SELECT ALL CASE 9 WHEN 34 THEN + 58 END
----
NULL

query II rowsort
SELECT ALL 11 * - 71 * + 61, - 3 AS col1
----
-47641
-3

query I rowsort
SELECT - 16 + 95 AS col2
----
79

query I rowsort
SELECT ALL - 15 * + 25 AS col0
----
-375

query I rowsort
SELECT DISTINCT - 97 * 41
----
-3977

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

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

query I rowsort
SELECT - 80 * + + 25 AS col2
----
-2000

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT + 86 + + NULLIF ( - - 16, - - 3 ) + - COUNT( DISTINCT + 89 )
----
101

skipif mysql # not compatible
query I rowsort label-2510
SELECT + 86 + + NULLIF ( - - 16, - - 3 ) + - COUNT ( DISTINCT + 89 )
----
101

query II rowsort
SELECT 37 AS col2, 82
----
37
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT + CAST( 71 AS SIGNED ) + - 47 col1
----
24

skipif mysql # not compatible
query I rowsort label-2512
SELECT + CAST ( 71 AS INTEGER ) + - 47 col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2513
SELECT - 33 DIV 15
----
-2

skipif mysql # not compatible
query I rowsort label-2513
SELECT - 33 / 15
----
-2

query I rowsort
SELECT + 50 * 82
----
4100

query I rowsort
SELECT ALL 97 + ( 54 )
----
151

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2516
SELECT ALL 40 DIV + + CAST( + 1 AS SIGNED ) + - + 18
----
22

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL 40 / + + CAST ( + 1 AS INTEGER ) + - + 18
----
22

query I rowsort
SELECT + 79 * 85
----
6715

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2518
SELECT + + CAST( + AVG ( ALL + 76 ) AS SIGNED ) AS col0, - 71 AS col2
----
76
-71

skipif mysql # not compatible
query II rowsort label-2518
SELECT + + CAST ( + AVG ( ALL + 76 ) AS INTEGER ) AS col0, - 71 AS col2
----
76
-71

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2520
SELECT + - COUNT( * ) * MAX( DISTINCT - 14 ) * - - 99 AS col2, 60
----
1386
60

skipif mysql # not compatible
query II rowsort label-2520
SELECT + - COUNT ( * ) * MAX ( DISTINCT - 14 ) * - - 99 AS col2, 60
----
1386
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT + - 37 * - CASE - - 35 WHEN + ( + - ( 0 ) ) THEN + 19 END * + ( + 42 ) - + + 99 - CASE + 13 WHEN - - 98 * - COUNT( * ) * + - 57 + + 51 + - NULLIF ( - + 64, + 12 * - + 62 * - + NULLIF ( - + MAX( DISTINCT - - 0 ), + - 16 ) + - 59 + + 88 ) + 64 / - - AVG ( 60 ) THEN NULL WHEN - COUNT( * ) + - 57 * - 60 THEN + MIN( DISTINCT + - 74 ) * + COUNT( ALL - + 38 ) + - - ( + - 91 ) + 23 END + ( ( + 34 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT + - 37 * - CASE - - 35 WHEN + ( + - ( 0 ) ) THEN + 19 END * + ( + 42 ) - + + 99 - CASE + 13 WHEN - - 98 * - COUNT ( * ) * + - 57 + + 51 + - NULLIF ( - + 64, + 12 * - + 62 * - + NULLIF ( - + MAX ( DISTINCT - - 0 ), + - 16 ) + - 59 + + 88 ) + 64 / - - AVG ( 60 ) THEN NULL WHEN - COUNT ( * ) + - 57 * - 60 THEN + MIN ( DISTINCT + - 74 ) * + COUNT ( ALL - + 38 ) + - - ( + - 91 ) + 23 END + ( ( + 34 ) ) col2
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2524
SELECT 14, - 98 * - + CASE + NULLIF ( 97, COALESCE ( - 13, + + 51 + COUNT( * ) * + - COALESCE ( - 18, ( + 59 ) ), + 29 ) ) WHEN - + 58 THEN - 20 / + 87 END * + 74 * - + COUNT( * ) * + 55 AS col1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-2524
SELECT 14, - 98 * - + CASE + NULLIF ( 97, COALESCE ( - 13, + + 51 + COUNT ( * ) * + - COALESCE ( - 18, ( + 59 ) ), + 29 ) ) WHEN - + 58 THEN - 20 / + 87 END * + 74 * - + COUNT ( * ) * + 55 AS col1
----
14
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2525
SELECT ALL - + 20 DIV 18 * + + ( - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL - + 20 / 18 * + + ( - 1 )
----
1

query II rowsort
SELECT ALL + 77 AS col1, 47
----
77
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2527
SELECT ALL + + COUNT( * ) DIV - 45 - + 64
----
-64

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL + + COUNT ( * ) / - 45 - + 64
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2528
SELECT - - 10 * 93 DIV - - 26 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2528
SELECT - - 10 * 93 / - - 26 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL - ( + 74 ) / CASE + 79 WHEN - + 54 - + - COUNT( * ) THEN - - COUNT( * ) END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL - ( + 74 ) / CASE + 79 WHEN - + 54 - + - COUNT ( * ) THEN - - COUNT ( * ) END - + COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT + + MAX( + 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2531
SELECT + + MAX ( + 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT + 86 * CASE + MAX( + - 42 ) WHEN - 38 * 24 * 58 THEN + + NULLIF ( - 86, - 2 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2532
SELECT + 86 * CASE + MAX ( + - 42 ) WHEN - 38 * 24 * 58 THEN + + NULLIF ( - 86, - 2 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2533
SELECT ALL 56 DIV 71 * COUNT( * ) + + 12 + - COUNT( * ) * 88 + - + 99 AS col0
----
-175

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL 56 / 71 * COUNT ( * ) + + 12 + - COUNT ( * ) * 88 + - + 99 AS col0
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ALL - - 65 * + 18 + 33 + + ( + COUNT( * ) ) AS col1
----
1204

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL - - 65 * + 18 + 33 + + ( + COUNT ( * ) ) AS col1
----
1204

query II rowsort
SELECT ALL 85 AS col1, + 49
----
85
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2536
SELECT + COUNT( * ) * SUM( - COALESCE ( 15, + 3 ) ) + - CAST( + 55 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-2536
SELECT + COUNT ( * ) * SUM ( - COALESCE ( 15, + 3 ) ) + - CAST ( + 55 AS INTEGER )
----
-70

query I rowsort
SELECT 30 * + 67 AS col0
----
2010

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT 66 * + MIN( ALL 60 )
----
3960

skipif mysql # not compatible
query I rowsort label-2538
SELECT 66 * + MIN ( ALL 60 )
----
3960

query I rowsort
SELECT 36 + - - 85 + + 67
----
188

query I rowsort
SELECT 56 * + 36 AS col1
----
2016

query I rowsort
SELECT ALL - 84 + 35 AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2542
SELECT ALL 39 + - CAST( 68 AS SIGNED ) + 8 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL 39 + - CAST ( 68 AS INTEGER ) + 8 AS col0
----
-21

query I rowsort
SELECT 71 - 88 * 5 AS col2
----
-369

query I rowsort
SELECT DISTINCT + 39 + + 19 * - ( + 76 ) * + 65 * - ( 54 ) * - 91 col2
----
-461228001

query II rowsort
SELECT DISTINCT - 67 * 76 AS col2, 60 col2
----
-5092
60

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2547
SELECT 46 - - CAST( NULL AS SIGNED ) * - - 8 * + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT 46 - - CAST ( NULL AS INTEGER ) * - - 8 * + - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT - 1 - - 25 + 92 * + COUNT( * ) * - + SUM( + - 13 ) col2
----
1220

skipif mysql # not compatible
query I rowsort label-2548
SELECT - 1 - - 25 + 92 * + COUNT ( * ) * - + SUM ( + - 13 ) col2
----
1220

query II rowsort
SELECT ALL 71 - - + ( - + 67 ) * + 5 AS col0, 65 + 20 + 26 * 58
----
-264
1593

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2552
SELECT - 68 + 38 + - ( - + 7 ) AS col0, + CAST( NULL AS SIGNED ) / - 28
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-2552
SELECT - 68 + 38 + - ( - + 7 ) AS col0, + CAST ( NULL AS INTEGER ) / - 28
----
-23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT + 77 * + - SUM( + 42 )
----
-3234

skipif mysql # not compatible
query I rowsort label-2553
SELECT + 77 * + - SUM ( + 42 )
----
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT - 10 * + SUM( - 89 ) + - CASE + + 23 WHEN - ( + + COUNT( * ) ) THEN NULL WHEN 14 + - 99 THEN + + CASE - 62 WHEN - + 39 * COALESCE ( + - 13, + + 60 / + 44 ) + COUNT( * ) THEN NULL WHEN + 41 THEN + 55 END WHEN - 52 / + - 63 THEN - - 39 ELSE NULL END + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT - 10 * + SUM ( - 89 ) + - CASE + + 23 WHEN - ( + + COUNT ( * ) ) THEN NULL WHEN 14 + - 99 THEN + + CASE - 62 WHEN - + 39 * COALESCE ( + - 13, + + 60 / + 44 ) + COUNT ( * ) THEN NULL WHEN + 41 THEN + 55 END WHEN - 52 / + - 63 THEN - - 39 ELSE NULL END + 90
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2555
SELECT ALL - + 1 - CAST( NULL AS DECIMAL ), 57 AS col1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-2555
SELECT ALL - + 1 - CAST ( NULL AS REAL ), 57 AS col1
----
NULL
57

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

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

query I rowsort
SELECT - 17 + 16
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT - 57 + + SUM( ALL + + 5 ) * - 30
----
-207

skipif mysql # not compatible
query I rowsort label-2558
SELECT - 57 + + SUM ( ALL + + 5 ) * - 30
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT DISTINCT + 42 * + - MIN( + 18 ) + + 39
----
-717

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT + 42 * + - MIN ( + 18 ) + + 39
----
-717

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2561
SELECT + CAST( + + 97 AS SIGNED ) * - - 10 + 15 AS col2
----
985

skipif mysql # not compatible
query I rowsort label-2561
SELECT + CAST ( + + 97 AS INTEGER ) * - - 10 + 15 AS col2
----
985

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

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT - ( + + CAST ( - 45 AS INTEGER ) ) AS col0
----
45

query I rowsort
SELECT 56 + - 75 AS col1
----
-19

query I rowsort
SELECT - 14 * - + 61 + + 98
----
952

query I rowsort
SELECT ALL 75 + 76 col1
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2566
SELECT 46 + + - COUNT( * ) DIV - 65 AS col2, 75 * + 24 * 35
----
46
63000

skipif mysql # not compatible
query II rowsort label-2566
SELECT 46 + + - COUNT ( * ) / - 65 AS col2, 75 * + 24 * 35
----
46
63000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2567
SELECT 81 + 84 * - - 71 + + 4 - + AVG ( - 15 ) - + + 57 DIV - - ( - CASE - 60 WHEN + + 91 * - 90 * + - 36 * 27 + - 72 THEN + 93 WHEN - ( - + COUNT( * ) ) THEN NULL ELSE NULL END ) AS col1, + COUNT( * ) DIV 82 + - 73 + - 35 * 27 + - NULLIF ( - 43, - - 55 * - - CASE + COALESCE ( - COUNT( ALL - 87 ), + 55 + + + 8 + - 18, + + 28 ) WHEN + + 87 THEN - + 92 * + 64 * - SUM( + - ( 63 ) ) * 72 - COALESCE ( + 93 + - 38, - 72 ) DIV - 40 ELSE NULL END ) + + 38
----
NULL
-937

skipif mysql # not compatible
query II rowsort label-2567
SELECT 81 + 84 * - - 71 + + 4 - + AVG ( - 15 ) - + + 57 / - - ( - CASE - 60 WHEN + + 91 * - 90 * + - 36 * 27 + - 72 THEN + 93 WHEN - ( - + COUNT ( * ) ) THEN NULL ELSE NULL END ) AS col1, + COUNT ( * ) / 82 + - 73 + - 35 * 27 + - NULLIF ( - 43, - - 55 * - - CASE + COALESCE ( - COUNT ( ALL - 87 ), + 55 + + + 8 + - 18, + + 28 ) WHEN + + 87 THEN - + 92 * + 64 * - SUM ( + - ( 63 ) ) * 72 - COALESCE ( + 93 + - 38, - 72 ) / - 40 ELSE NULL END ) + + 38
----
NULL
-937

query I rowsort
SELECT ALL 69 + - 37
----
32

query I rowsort
SELECT ALL 39 + 7 AS col1
----
46

query I rowsort
SELECT DISTINCT 98 + - - 37
----
135

query I rowsort
SELECT ALL + 26 + 42 AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2572
SELECT CAST( + 55 AS SIGNED ) + + 41 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-2572
SELECT CAST ( + 55 AS INTEGER ) + + 41 AS col2
----
96

query I rowsort
SELECT ALL 33 + - - 77 * - 87
----
-6666

query II rowsort
SELECT 91 + + - 15 + - 69, 73 AS col0
----
7
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT - SUM( DISTINCT - 83 )
----
83

skipif mysql # not compatible
query I rowsort label-2575
SELECT - SUM ( DISTINCT - 83 )
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT 6 + + - COUNT( * ) * + - 31
----
37

skipif mysql # not compatible
query I rowsort label-2577
SELECT 6 + + - COUNT ( * ) * + - 31
----
37

query II rowsort
SELECT - 42, - 35 + + - 86 AS col0
----
-42
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL - MIN( ALL - + 32 ) - COUNT( * ) - MIN( + 82 ) + - ( CASE 5 WHEN - 77 * + + 60 - - 51 + 88 THEN - - 80 WHEN - 18 * + - 58 * + + 55 * - 91 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - MIN ( ALL - + 32 ) - COUNT ( * ) - MIN ( + 82 ) + - ( CASE 5 WHEN - 77 * + + 60 - - 51 + 88 THEN - - 80 WHEN - 18 * + - 58 * + + 55 * - 91 THEN NULL ELSE NULL END )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT - 75 * + MIN( + + 16 ) + 72
----
-1128

skipif mysql # not compatible
query I rowsort label-2582
SELECT - 75 * + MIN ( + + 16 ) + 72
----
-1128

query I rowsort
SELECT ALL + + 36 * 75 AS col2
----
2700

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ALL - COUNT( * ) * + 76 + - + 6 + 48
----
-34

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL - COUNT ( * ) * + 76 + - + 6 + 48
----
-34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2587
SELECT ALL - 22 DIV - - CAST( 73 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL - 22 / - - CAST ( 73 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT - 77 * - 3
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT MIN( DISTINCT + + 55 ) col2
----
55

skipif mysql # not compatible
query I rowsort label-2589
SELECT MIN ( DISTINCT + + 55 ) col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT DISTINCT CAST( 71 AS SIGNED ) * + + 56 + - + 86
----
3890

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT CAST ( 71 AS INTEGER ) * + + 56 + - + 86
----
3890

onlyif mysql # aggregate syntax: 
query II rowsort label-2591
SELECT + 11 col1, - ( - 48 ) * COUNT( * ) + 70
----
11
118

skipif mysql # not compatible
query II rowsort label-2591
SELECT + 11 col1, - ( - 48 ) * COUNT ( * ) + 70
----
11
118

query I rowsort
SELECT ALL 28 * - ( 95 )
----
-2660

query I rowsort
SELECT ALL + 93 * - + 92
----
-8556

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT DISTINCT - 39 + + COUNT( * ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT - 39 + + COUNT ( * ) col0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-2595
SELECT DISTINCT + 84 * + 87 col0, COUNT( * ) - - + 58
----
7308
59

skipif mysql # not compatible
query II rowsort label-2595
SELECT DISTINCT + 84 * + 87 col0, COUNT ( * ) - - + 58
----
7308
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT MAX( ALL 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2596
SELECT MAX ( ALL 13 ) AS col2
----
13

query I rowsort
SELECT ALL 33 + + 46 AS col2
----
79

query II rowsort
SELECT + 34 * + 22 * - 39 + + 94 + - + 14 * + 23 AS col1, + 41 * + 35 AS col2
----
-29400
1435

query I rowsort
SELECT - NULLIF ( - 33, + 24 * 12 )
----
33

query I rowsort
SELECT + 56 * - 72 AS col2
----
-4032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2601
SELECT + CAST( - 73 AS SIGNED ) + 98
----
25

skipif mysql # not compatible
query I rowsort label-2601
SELECT + CAST ( - 73 AS INTEGER ) + 98
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2602
SELECT + 74 / + ( + + 31 ) * - - 68 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT + 74 / + ( + + 31 ) * - - 68 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2603
SELECT ALL CASE - - 31 WHEN + + 63 THEN + - 31 ELSE NULL END - - 68 * COALESCE ( - 67, - + 88 * 40 * - 97 + AVG ( DISTINCT - - CAST( + + 57 AS SIGNED ) ) + - - 45 * - MIN( - + 23 ), - + COUNT( * ) ) + - 6 + 60 - - 75 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL CASE - - 31 WHEN + + 63 THEN + - 31 ELSE NULL END - - 68 * COALESCE ( - 67, - + 88 * 40 * - 97 + AVG ( DISTINCT - - CAST ( + + 57 AS INTEGER ) ) + - - 45 * - MIN ( - + 23 ), - + COUNT ( * ) ) + - 6 + 60 - - 75 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT + COUNT( * ) + - 57
----
-56

skipif mysql # not compatible
query I rowsort label-2604
SELECT + COUNT ( * ) + - 57
----
-56

query I rowsort
SELECT + 20 * + 14
----
280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2606
SELECT ALL COUNT( * ) DIV 59 * 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL COUNT ( * ) / 59 * 40 AS col2
----
0

query II rowsort
SELECT DISTINCT 49, + ( + 60 ) * + 36 + + 35 - - - 93 + - 90 * + - 75 * 6 * + 97 col0
----
49
3930602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2608
SELECT ALL 92 * 19 + + + 72 * CASE - + 6 WHEN + CASE + - 44 WHEN - 0 * CAST( ( + COUNT( * ) ) AS SIGNED ) THEN NULL WHEN - 29 - + + CAST( NULL AS DECIMAL ) + - - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) THEN NULL ELSE 0 - + 51 END * + 51 * - 93 + + 30 + COALESCE ( - + 20, - 22, 20 ) * 23 + - 44 + - 7 + + + 86 - - 68 * - CAST( NULL AS SIGNED ) THEN - 77 WHEN + 5 THEN 7 + - + 86 WHEN + ( - 82 ) THEN NULL ELSE NULL END + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL 92 * 19 + + + 72 * CASE - + 6 WHEN + CASE + - 44 WHEN - 0 * CAST ( ( + COUNT ( * ) ) AS INTEGER ) THEN NULL WHEN - 29 - + + CAST ( NULL AS REAL ) + - - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE 0 - + 51 END * + 51 * - 93 + + 30 + COALESCE ( - + 20, - 22, 20 ) * 23 + - 44 + - 7 + + + 86 - - 68 * - CAST ( NULL AS INTEGER ) THEN - 77 WHEN + 5 THEN 7 + - + 86 WHEN + ( - 82 ) THEN NULL ELSE NULL END + - 19
----
NULL

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

query I rowsort
SELECT + 89 + + 31
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-2611
SELECT - 59 DIV - 13
----
4

skipif mysql # not compatible
query I rowsort label-2611
SELECT - 59 / - 13
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT + NULLIF ( - 73, - 89 ) + 40 + + 26 DIV - - 55
----
-33

skipif mysql # not compatible
query I rowsort label-2612
SELECT + NULLIF ( - 73, - 89 ) + 40 + + 26 / - - 55
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT + 16 + + MIN( + 77 )
----
93

skipif mysql # not compatible
query I rowsort label-2613
SELECT + 16 + + MIN ( + 77 )
----
93

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

skipif mysql # not compatible
query I rowsort label-2614
SELECT + + 53 + + COUNT ( * ) AS col1
----
54

query II rowsort
SELECT ALL 69, 79 AS col0
----
69
79

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

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL + 71 / - 85 * + COUNT ( * ) + - 83 + 29 * + COUNT ( * ) AS col2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2617
SELECT - - MAX( DISTINCT - + NULLIF ( + 97, - 78 ) ) + - CAST( NULL AS SIGNED ) - + 44 + + 83 * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT - - MAX ( DISTINCT - + NULLIF ( + 97, - 78 ) ) + - CAST ( NULL AS INTEGER ) - + 44 + + 83 * - 97
----
NULL

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

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

query I rowsort
SELECT - 66 + + + 29 * - ( 16 ) AS col0
----
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT COUNT( * ) * + ( 87 ) + - + 44 + + + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-2620
SELECT COUNT ( * ) * + ( 87 ) + - + 44 + + + COUNT ( * ) AS col1
----
44

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2622
SELECT + 21 * - 20 * + - 41 + + CASE - + 24 WHEN + COUNT( * ) + - 1 THEN NULL ELSE - 14 - 56 * + 82 END + + 80 DIV - ( 45 )
----
12613

skipif mysql # not compatible
query I rowsort label-2622
SELECT + 21 * - 20 * + - 41 + + CASE - + 24 WHEN + COUNT ( * ) + - 1 THEN NULL ELSE - 14 - 56 * + 82 END + + 80 / - ( 45 )
----
12613

query I rowsort
SELECT - - 10 + 89
----
99

query I rowsort
SELECT - 87 * + 93
----
-8091

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL - NULLIF ( + 65, + + 27 ) * 86 + - 85 + COUNT( * ) * COUNT( * ) * 77 + + COUNT( * ) AS col2
----
-5597

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL - NULLIF ( + 65, + + 27 ) * 86 + - 85 + COUNT ( * ) * COUNT ( * ) * 77 + + COUNT ( * ) AS col2
----
-5597

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

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT + COALESCE ( 0, + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2627
SELECT MAX( ALL 12 ) * COUNT( * ) + + 26 * + 86 AS col0, COUNT( * ) + + COUNT( * )
----
2248
2

skipif mysql # not compatible
query II rowsort label-2627
SELECT MAX ( ALL 12 ) * COUNT ( * ) + + 26 * + 86 AS col0, COUNT ( * ) + + COUNT ( * )
----
2248
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT + 31 * + 49 + - 99 - - - 7 + - MIN( DISTINCT ( - + 24 ) ) * NULLIF ( 22, + 95 )
----
1941

skipif mysql # not compatible
query I rowsort label-2628
SELECT + 31 * + 49 + - 99 - - - 7 + - MIN ( DISTINCT ( - + 24 ) ) * NULLIF ( 22, + 95 )
----
1941

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2629
SELECT - 86 DIV - - 28, 91 * - 59 * COUNT( - 85 ) AS col0
----
-3
-5369

skipif mysql # not compatible
query II rowsort label-2629
SELECT - 86 / - - 28, 91 * - 59 * COUNT ( - 85 ) AS col0
----
-3
-5369

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT ALL - 35 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL - 35 / + 58
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( + 94, - - 4 ) AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2632
SELECT - 16 DIV + + 66 * - 3 * + 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2632
SELECT - 16 / + + 66 * - 3 * + 77 AS col0
----
0

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

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

query I rowsort
SELECT + NULLIF ( + 50, + 45 ) col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT 26 * - - COUNT( * ) + - NULLIF ( - MIN( - 69 ), + + COALESCE ( 92, MIN( ALL 5 ) ) * + 71 / + NULLIF ( - 35, + 4 ) + + 58 ) + - 40
----
-83

skipif mysql # not compatible
query I rowsort label-2636
SELECT 26 * - - COUNT ( * ) + - NULLIF ( - MIN ( - 69 ), + + COALESCE ( 92, MIN ( ALL 5 ) ) * + 71 / + NULLIF ( - 35, + 4 ) + + 58 ) + - 40
----
-83

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT - NULLIF ( + 19, + - 2 - + 82 - ( - 20 ) + + - COUNT( - 1 ) + + + ( - 67 ) * - 29 * + + CASE - - 90 WHEN + 48 * - - 40 * + + 43 THEN + + NULLIF ( + + 45, 57 ) + - ( + 14 ) WHEN + 18 THEN NULL WHEN + 63 + + + ( AVG ( - 33 ) ) - + COUNT( 6 ) THEN NULL END ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-2639
SELECT - NULLIF ( + 19, + - 2 - + 82 - ( - 20 ) + + - COUNT ( - 1 ) + + + ( - 67 ) * - 29 * + + CASE - - 90 WHEN + 48 * - - 40 * + + 43 THEN + + NULLIF ( + + 45, 57 ) + - ( + 14 ) WHEN + 18 THEN NULL WHEN + 63 + + + ( AVG ( - 33 ) ) - + COUNT ( 6 ) THEN NULL END ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT DISTINCT + COUNT( * ) * - COALESCE ( - + 51, 64 )
----
51

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT + COUNT ( * ) * - COALESCE ( - + 51, 64 )
----
51

query II rowsort
SELECT + 97 * + 96, + 3 * COALESCE ( + ( + - 24 ), + 14, 30 ) * - - 17 + 6 AS col2
----
9312
-1218

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

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

query I rowsort
SELECT DISTINCT 35 col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2644
SELECT + ( - COALESCE ( + CAST( - NULLIF ( + + 0, 28 + 22 / + + 24 + - + 62 ) AS SIGNED ), + SUM( 51 ) - + + 17, + ( 59 ) + + 28 - 16 ) ) * 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2644
SELECT + ( - COALESCE ( + CAST ( - NULLIF ( + + 0, 28 + 22 / + + 24 + - + 62 ) AS INTEGER ), + SUM ( 51 ) - + + 17, + ( 59 ) + + 28 - 16 ) ) * 97 AS col0
----
0

query I rowsort
SELECT + - 26 + + 27 * + 25
----
649

onlyif mysql # aggregate syntax: 
query II rowsort label-2646
SELECT + + COUNT( DISTINCT - 59 ) + + - ( 49 ) * - COUNT( * ) AS col0, + 64 AS col0
----
50
64

skipif mysql # not compatible
query II rowsort label-2646
SELECT + + COUNT ( DISTINCT - 59 ) + + - ( 49 ) * - COUNT ( * ) AS col0, + 64 AS col0
----
50
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2647
SELECT ALL - CAST( + 49 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL - CAST ( + 49 AS INTEGER )
----
-49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2649
SELECT ALL - CAST( - 84 AS SIGNED ) + 52 AS col0
----
136

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL - CAST ( - 84 AS INTEGER ) + 52 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT DISTINCT CASE + 65 WHEN + SUM( DISTINCT 25 ) THEN 84 / 31 WHEN SUM( 74 ) THEN - 68 - - 81 END + - + SUM( 59 ) * - + 83 + + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT CASE + 65 WHEN + SUM ( DISTINCT 25 ) THEN 84 / 31 WHEN SUM ( 74 ) THEN - 68 - - 81 END + - + SUM ( 59 ) * - + 83 + + 51 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 11 + + 64 AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2652
SELECT 72 * - - CAST( NULL AS SIGNED ) * - - COUNT( DISTINCT - 71 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2652
SELECT 72 * - - CAST ( NULL AS INTEGER ) * - - COUNT ( DISTINCT - 71 ) col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT + 94 + + + 72 / + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT ALL + 61 + - - 47 + - 59 * 16 * - 81 + 61 - + SUM( 13 ) + 80 + - 11 AS col0
----
76689

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL + 61 + - - 47 + - 59 * 16 * - 81 + 61 - + SUM ( 13 ) + 80 + - 11 AS col0
----
76689

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT + CASE WHEN + COUNT( * ) = 25 THEN - 20 * + 53 + + + 32 - + 11 / + COUNT( + ( + + 57 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2656
SELECT + CASE WHEN + COUNT ( * ) = 25 THEN - 20 * + 53 + + + 32 - + 11 / + COUNT ( + ( + + 57 ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2657
SELECT 41 * - COUNT( 79 ) AS col1, - CASE - 14 WHEN 87 * - CAST( - NULLIF ( + NULLIF ( - COUNT( * ), - + 83 ), - COUNT( * ) ) AS SIGNED ) + - 69 THEN NULL WHEN - 20 * COUNT( ALL + 45 ) * + MAX( + 34 ) THEN + + COUNT( ALL + - 85 ) WHEN 50 THEN NULL ELSE + - COUNT( * ) * + + 20 + - + 39 + 49 DIV + 88 * + - SUM( 7 ) END AS col2
----
-41
59

skipif mysql # not compatible
query II rowsort label-2657
SELECT 41 * - COUNT ( 79 ) AS col1, - CASE - 14 WHEN 87 * - CAST ( - NULLIF ( + NULLIF ( - COUNT ( * ), - + 83 ), - COUNT ( * ) ) AS INTEGER ) + - 69 THEN NULL WHEN - 20 * COUNT ( ALL + 45 ) * + MAX ( + 34 ) THEN + + COUNT ( ALL + - 85 ) WHEN 50 THEN NULL ELSE + - COUNT ( * ) * + + 20 + - + 39 + 49 / + 88 * + - SUM ( 7 ) END AS col2
----
-41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT ALL - - COALESCE ( - 66, SUM( ALL - + 3 ) * + - 78, 71 )
----
-66

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL - - COALESCE ( - 66, SUM ( ALL - + 3 ) * + - 78, 71 )
----
-66

query I rowsort
SELECT ALL - 39 - + 89
----
-128

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

skipif mysql # not compatible
query I rowsort label-2660
SELECT + COUNT ( * ) / - 2 - - + COUNT ( * ) + + ( - 61 )
----
-60

query II rowsort
SELECT + 64 AS col1, 88
----
64
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL - 39 - + - SUM( - 67 )
----
-106

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL - 39 - + - SUM ( - 67 )
----
-106

query I rowsort
SELECT 65 * - - 58 AS col0
----
3770

query I rowsort
SELECT 0 * + 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT + 64 * - 84 * - - CASE - 68 WHEN + - 34 * + ( + + ( SUM( 82 ) ) ) THEN - 21 WHEN 1 + 41 THEN NULL END + + 57 + - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT + 64 * - 84 * - - CASE - 68 WHEN + - 34 * + ( + + ( SUM ( 82 ) ) ) THEN - 21 WHEN 1 + 41 THEN NULL END + + 57 + - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT 40 * + COUNT( * ) * + - ( - 75 ) * + + 62 - 59
----
185941

skipif mysql # not compatible
query I rowsort label-2666
SELECT 40 * + COUNT ( * ) * + - ( - 75 ) * + + 62 - 59
----
185941

query I rowsort
SELECT ALL 50 * - 35 AS col1
----
-1750

query I rowsort
SELECT DISTINCT 68 * - 65 * - 0 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2669
SELECT ALL - CAST( 50 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL - CAST ( 50 AS INTEGER )
----
-50

query II rowsort
SELECT 21 AS col2, - 50 AS col2
----
21
-50

query I rowsort
SELECT 16 * 92
----
1472

query I rowsort
SELECT ALL - 59 * + - 71
----
4189

query II rowsort
SELECT ALL 95 AS col1, 45
----
95
45

query II rowsort
SELECT - 96, + ( 72 ) AS col1
----
-96
72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2675
SELECT 96 + - 81 + - NULLIF ( - 62, CAST( NULL AS DECIMAL ) * COUNT( * ) * 22 - - COUNT( * ) ) - - 4
----
81

skipif mysql # not compatible
query I rowsort label-2675
SELECT 96 + - 81 + - NULLIF ( - 62, CAST ( NULL AS REAL ) * COUNT ( * ) * 22 - - COUNT ( * ) ) - - 4
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2676
SELECT COUNT( * ) DIV 14 * + + SUM( - 61 ) + + 62
----
62

skipif mysql # not compatible
query I rowsort label-2676
SELECT COUNT ( * ) / 14 * + + SUM ( - 61 ) + + 62
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2677
SELECT ( - ( 11 ) ) + - NULLIF ( - ( - - 54 ), + + COUNT( * ) ) + - + 2, + 47 AS col0
----
41
47

skipif mysql # not compatible
query II rowsort label-2677
SELECT ( - ( 11 ) ) + - NULLIF ( - ( - - 54 ), + + COUNT ( * ) ) + - + 2, + 47 AS col0
----
41
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL + - 30 * - 89 * + - COUNT( * )
----
-2670

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL + - 30 * - 89 * + - COUNT ( * )
----
-2670

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT - 85 + COUNT( * ) * - 87
----
-172

skipif mysql # not compatible
query I rowsort label-2679
SELECT - 85 + COUNT ( * ) * - 87
----
-172

query I rowsort
SELECT COALESCE ( - - 84, - - 89 )
----
84

query I rowsort
SELECT 17 + - 33
----
-16

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

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

query I rowsort
SELECT ALL 51 + 72
----
123

query I rowsort
SELECT 94 + + - 87 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ALL - - 50 * COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL - - 50 * COUNT ( * ) AS col0
----
50

query I rowsort
SELECT DISTINCT - + 25 + 20 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ( + 19 ) + + + 20 - + + COUNT( * ) + - - 53 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-2687
SELECT ( + 19 ) + + + 20 - + + COUNT ( * ) + - - 53 AS col1
----
91

query I rowsort
SELECT COALESCE ( ( - 37 ), - 61 ) AS col0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2689
SELECT - 84 + + ( CAST( NULL AS SIGNED ) ) + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT - 84 + + ( CAST ( NULL AS INTEGER ) ) + 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2690
SELECT DISTINCT - + 33 DIV ( - 51 ) * COUNT( * ) * + 75 * - 80 + - 50 + - + COUNT( * ) + - - COUNT( * ) * 49
----
-2

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT - + 33 / ( - 51 ) * COUNT ( * ) * + 75 * - 80 + - 50 + - + COUNT ( * ) + - - COUNT ( * ) * 49
----
-2

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

query I rowsort
SELECT ALL 17 * ( NULLIF ( 15, - 60 ) ) AS col0
----
255

query I rowsort
SELECT DISTINCT 34 * 9 AS col1
----
306

query I rowsort
SELECT ALL 10 * - - 29
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT ALL 69 * - MAX( ALL - 90 )
----
6210

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL 69 * - MAX ( ALL - 90 )
----
6210

query I rowsort
SELECT COALESCE ( + - 77, - + 27 ) * - 76 * 62 * - 18
----
-6530832

query I rowsort
SELECT 10 * + 23
----
230

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2698
SELECT 81 + 15 + - + 76 DIV 40 AS col1, + COUNT( * )
----
95
1

skipif mysql # not compatible
query II rowsort label-2698
SELECT 81 + 15 + - + 76 / 40 AS col1, + COUNT ( * )
----
95
1

query I rowsort
SELECT 19 + 11 col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2700
SELECT SUM( ALL 74 ), COALESCE ( + + 81, + - SUM( - 70 ) + - MIN( - + 35 ) + + 97 - COUNT( DISTINCT - 0 ) * + 71 * + 64 ) + + 40 AS col1
----
74
121

skipif mysql # not compatible
query II rowsort label-2700
SELECT SUM ( ALL 74 ), COALESCE ( + + 81, + - SUM ( - 70 ) + - MIN ( - + 35 ) + + 97 - COUNT ( DISTINCT - 0 ) * + 71 * + 64 ) + + 40 AS col1
----
74
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT ALL - MIN( DISTINCT 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL - MIN ( DISTINCT 54 )
----
-54

query I rowsort
SELECT 0 * - 3 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2703
SELECT 63 * + MAX( ALL 47 ) + COALESCE ( + 91, - ( + CAST( NULL AS SIGNED ) ), - - 81 ) + - 3 * + 57 * + - 3 * CAST( 6 AS SIGNED ) DIV + - 3 - 41 * NULLIF ( + - CAST( - 78 AS SIGNED ), - 81 - 93 )
----
-1172

skipif mysql # not compatible
query I rowsort label-2703
SELECT 63 * + MAX ( ALL 47 ) + COALESCE ( + 91, - ( + CAST ( NULL AS INTEGER ) ), - - 81 ) + - 3 * + 57 * + - 3 * CAST ( 6 AS INTEGER ) / + - 3 - 41 * NULLIF ( + - CAST ( - 78 AS INTEGER ), - 81 - 93 )
----
-1172

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT 90 * + - CAST( + - COALESCE ( - 8, - 5 * 58 ) AS SIGNED ) AS col2
----
-720

skipif mysql # not compatible
query I rowsort label-2705
SELECT 90 * + - CAST ( + - COALESCE ( - 8, - 5 * 58 ) AS INTEGER ) AS col2
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT 25 + - + 27 * - - MAX( 88 ) * + - 36 AS col1
----
85561

skipif mysql # not compatible
query I rowsort label-2706
SELECT 25 + - + 27 * - - MAX ( 88 ) * + - 36 AS col1
----
85561

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT + COUNT( ALL - 76 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2707
SELECT + COUNT ( ALL - 76 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2708
SELECT DISTINCT - CASE + 21 WHEN - + 79 * + 34 * - - 23 + + + AVG ( DISTINCT + 74 ) / 8 + - 28 THEN NULL WHEN 99 + - 7 THEN + + 38 * 96 - CAST( - 60 AS SIGNED ) + + COUNT( * ) + + - 13 * 81 + - 22 + - 70 * - 87 * - + 75 / - AVG ( + - 47 ) - + 48 - - - 81 + + + 52 - ( + 35 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT - CASE + 21 WHEN - + 79 * + 34 * - - 23 + + + AVG ( DISTINCT + 74 ) / 8 + - 28 THEN NULL WHEN 99 + - 7 THEN + + 38 * 96 - CAST ( - 60 AS INTEGER ) + + COUNT ( * ) + + - 13 * 81 + - 22 + - 70 * - 87 * - + 75 / - AVG ( + - 47 ) - + 48 - - - 81 + + + 52 - ( + 35 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT ALL - + 27 + ( COUNT( * ) ) * - - 39 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL - + 27 + ( COUNT ( * ) ) * - - 39 AS col1
----
12

query I rowsort
SELECT DISTINCT + 88 + - 28
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2711
SELECT MIN( - 97 ), + 89 AS col0
----
-97
89

skipif mysql # not compatible
query II rowsort label-2711
SELECT MIN ( - 97 ), + 89 AS col0
----
-97
89

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

query I rowsort
SELECT - - 49 * 72 AS col2
----
3528

onlyif mysql # DIV for integer division: 
query II rowsort label-2714
SELECT DISTINCT + 38 DIV 9 AS col0, - 59 + 83 AS col1
----
4
24

skipif mysql # not compatible
query II rowsort label-2714
SELECT DISTINCT + 38 / 9 AS col0, - 59 + 83 AS col1
----
4
24

query I rowsort
SELECT ALL + 94 + + ( + 61 ) + 5
----
160

query I rowsort
SELECT - 71 * - + 53 * + 14
----
52682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2717
SELECT DISTINCT + - 10 / + - ( - CASE - - 60 WHEN ( - - CAST( - 5 AS SIGNED ) ) + - SUM( DISTINCT - 42 ) / - - COUNT( * ) THEN + 6 - 55 * ( + COUNT( * ) ) WHEN - 27 + + + ( + 70 ) + 71 + + 18 THEN - - ( - 22 ) END ) + + + 62 col2, - 72
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-2717
SELECT DISTINCT + - 10 / + - ( - CASE - - 60 WHEN ( - - CAST ( - 5 AS INTEGER ) ) + - SUM ( DISTINCT - 42 ) / - - COUNT ( * ) THEN + 6 - 55 * ( + COUNT ( * ) ) WHEN - 27 + + + ( + 70 ) + 71 + + 18 THEN - - ( - 22 ) END ) + + + 62 col2, - 72
----
NULL
-72

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

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

query I rowsort
SELECT ALL + 44 * - + 37
----
-1628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2720
SELECT + MAX( 0 ) + - 40 + - - CAST( NULL AS SIGNED ) + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT + MAX ( 0 ) + - 40 + - - CAST ( NULL AS INTEGER ) + + 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2721
SELECT ALL - MIN( DISTINCT - + 43 ) - - + ( 92 ) + 98 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL - MIN ( DISTINCT - + 43 ) - - + ( 92 ) + 98 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT ALL - NULLIF ( - - COUNT( * ), + + 17 ) * - 4 * + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL - NULLIF ( - - COUNT ( * ), + + 17 ) * - 4 * + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT - MIN( 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-2723
SELECT - MIN ( 47 )
----
-47

query II rowsort
SELECT DISTINCT - - 81 * + - 42, 10 * - 31 AS col1
----
-3402
-310

query I rowsort
SELECT ALL - 39 - - 13 AS col0
----
-26

query I rowsort
SELECT + COALESCE ( 95, - 69 ) * - - 41
----
3895

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

query I rowsort
SELECT DISTINCT + NULLIF ( - 69, + ( 15 ) ) AS col2
----
-69

query I rowsort
SELECT ( - - 64 )
----
64

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2731
SELECT + 57 DIV ( COUNT( * ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-2731
SELECT + 57 / ( COUNT ( * ) ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT + NULLIF ( + MIN( - 43 ), + 43 + 18 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-2732
SELECT + NULLIF ( + MIN ( - 43 ), + 43 + 18 ) AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2733
SELECT DISTINCT + COALESCE ( - MAX( DISTINCT - + 92 ), MAX( + 84 ) * + 88 - + 52 + 93 * - COALESCE ( + 31, - + CASE - 28 WHEN + + 74 THEN NULL WHEN - 34 THEN + COALESCE ( + 57, + + 68 + - ( - 97 ) ) + + 57 ELSE NULL END, 88 + - + 99 * COUNT( * ) + - CAST( NULL AS SIGNED ) ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT + COALESCE ( - MAX ( DISTINCT - + 92 ), MAX ( + 84 ) * + 88 - + 52 + 93 * - COALESCE ( + 31, - + CASE - 28 WHEN + + 74 THEN NULL WHEN - 34 THEN + COALESCE ( + 57, + + 68 + - ( - 97 ) ) + + 57 ELSE NULL END, 88 + - + 99 * COUNT ( * ) + - CAST ( NULL AS INTEGER ) ) ) AS col0
----
92

query I rowsort
SELECT ALL COALESCE ( - + 96, + 43 ) * 4
----
-384

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2736
SELECT ALL + 4 DIV + - 17 * + - 71 AS col1, + 31
----
0
31

skipif mysql # not compatible
query II rowsort label-2736
SELECT ALL + 4 / + - 17 * + - 71 AS col1, + 31
----
0
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2737
SELECT DISTINCT NULLIF ( 94, + - 79 * - - COUNT( * ) / - 62 + + - COUNT( * ) - + 95 ) * CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + + 89 * - CAST( + - 99 AS SIGNED ) + + + 21 / + COUNT( * ) + + MAX( ALL 31 ), + 99 + - 52 AS col2
----
NULL
47

skipif mysql # not compatible
query II rowsort label-2737
SELECT DISTINCT NULLIF ( 94, + - 79 * - - COUNT ( * ) / - 62 + + - COUNT ( * ) - + 95 ) * CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + 89 * - CAST ( + - 99 AS INTEGER ) + + + 21 / + COUNT ( * ) + + MAX ( ALL 31 ), + 99 + - 52 AS col2
----
NULL
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT COALESCE ( - - 61, COUNT( * ) ) col0
----
61

skipif mysql # not compatible
query I rowsort label-2738
SELECT COALESCE ( - - 61, COUNT ( * ) ) col0
----
61

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

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

query I rowsort
SELECT ALL + 70 * - COALESCE ( - + 72, + 81 + - + 97 + + - 57 ) + + - 69
----
4971

query I rowsort
SELECT CASE + ( + ( - 6 ) ) WHEN + 8 THEN + 65 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2742
SELECT + 55 DIV COUNT( ALL - 69 )
----
55

skipif mysql # not compatible
query I rowsort label-2742
SELECT + 55 / COUNT ( ALL - 69 )
----
55

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

query I rowsort
SELECT + - ( + ( - 99 ) ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT + 3 * - COALESCE ( - NULLIF ( + COUNT( * ), - 56 ), COALESCE ( - + 93, + 72, - - MAX( ALL 67 ) - 0 ) ) + - + 0 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2745
SELECT + 3 * - COALESCE ( - NULLIF ( + COUNT ( * ), - 56 ), COALESCE ( - + 93, + 72, - - MAX ( ALL 67 ) - 0 ) ) + - + 0 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2746
SELECT ALL - + CAST( NULL AS SIGNED ) * - 92 + + 75 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 92 + + 75 col0
----
NULL

query I rowsort
SELECT + 56 + - 92 AS col1
----
-36

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2749
SELECT + 69 + ( + 66 ) AS col1, COUNT( * ) + - + 20 DIV - + 54 * + 45 AS col1
----
135
1

skipif mysql # not compatible
query II rowsort label-2749
SELECT + 69 + ( + 66 ) AS col1, COUNT ( * ) + - + 20 / - + 54 * + 45 AS col1
----
135
1

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

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

query I rowsort
SELECT ALL - 57 - - 15 AS col2
----
-42

query I rowsort
SELECT ALL 75 * + - COALESCE ( - - 95, + 61 ) - 75 AS col0
----
-7200

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2754
SELECT ALL + - 32 DIV - 68 * + 20 + + 19
----
19

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL + - 32 / - 68 * + 20 + + 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT - NULLIF ( + 80, SUM( ALL 40 ) - + 15 / + 2 - - 13 ) + - + 49 * - + 98 + - NULLIF ( - 59, - 63 ) + + + CASE + 31 WHEN - 16 + + 33 + + 74 - - - 71 THEN - - 6 * COUNT( * ) / - + 25 WHEN + 68 THEN NULL END * - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT - NULLIF ( + 80, SUM ( ALL 40 ) - + 15 / + 2 - - 13 ) + - + 49 * - + 98 + - NULLIF ( - 59, - 63 ) + + + CASE + 31 WHEN - 16 + + 33 + + 74 - - - 71 THEN - - 6 * COUNT ( * ) / - + 25 WHEN + 68 THEN NULL END * - + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT + ( + - 98 ) / - ( - CASE + ( + + COUNT( * ) ) WHEN + COUNT( - 38 ) * + - 96 THEN NULL WHEN + - 88 THEN + 3 * - - 79 + 14 * - - 15 + - COUNT( * ) + ( - COUNT( * ) ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT + ( + - 98 ) / - ( - CASE + ( + + COUNT ( * ) ) WHEN + COUNT ( - 38 ) * + - 96 THEN NULL WHEN + - 88 THEN + 3 * - - 79 + 14 * - - 15 + - COUNT ( * ) + ( - COUNT ( * ) ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2757
SELECT - 41 * + 16 + - ( COALESCE ( - 99, - COUNT( * ) * ( + - ( ( - 44 ) ) ), 17, + COALESCE ( + 80, + COUNT( * ) + + 16 + 83, - - 99 + + 64 DIV - 17, - 67 ) * - 6 + 85 ) ) + + 92 * - 78 * - SUM( - 13 ) AS col1
----
-93845

skipif mysql # not compatible
query I rowsort label-2757
SELECT - 41 * + 16 + - ( COALESCE ( - 99, - COUNT ( * ) * ( + - ( ( - 44 ) ) ), 17, + COALESCE ( + 80, + COUNT ( * ) + + 16 + 83, - - 99 + + 64 / - 17, - 67 ) * - 6 + 85 ) ) + + 92 * - 78 * - SUM ( - 13 ) AS col1
----
-93845

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

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

query II rowsort
SELECT 94, + 12 * + + 55 AS col0
----
94
660

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT - 81 * + SUM( DISTINCT + - 4 ) AS col1
----
324

skipif mysql # not compatible
query I rowsort label-2760
SELECT - 81 * + SUM ( DISTINCT + - 4 ) AS col1
----
324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2761
SELECT ALL - 80 DIV COALESCE ( COUNT( DISTINCT 92 ), 74 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL - 80 / COALESCE ( COUNT ( DISTINCT 92 ), 74 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT - 52 + + 57 + - - CASE - 50 WHEN - COUNT( * ) THEN - 86 * 63 + + - 37 WHEN - 66 / - + 89 * + 75 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2762
SELECT - 52 + + 57 + - - CASE - 50 WHEN - COUNT ( * ) THEN - 86 * 63 + + - 37 WHEN - 66 / - + 89 * + 75 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2763
SELECT - 69 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-2763
SELECT - 69 / - 99
----
0

query II rowsort
SELECT - 34 + - 41 - + ( - + 10 ) + - 81 + + 53 - + 56 + - 41 * + 74 * + - 16 * - 9 * - - ( - ( + - 26 ) ), 11 AS col2
----
-11359445
11

query I rowsort
SELECT ALL + 8 * + + 71 col1
----
568

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL CASE - - 8 WHEN - 48 THEN NULL ELSE COUNT( - - 63 ) + 40 * 74 * 48 * + 85 END AS col0
----
12076801

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL CASE - - 8 WHEN - 48 THEN NULL ELSE COUNT ( - - 63 ) + 40 * 74 * 48 * + 85 END AS col0
----
12076801

onlyif mysql # DIV for integer division: 
query I rowsort label-2767
SELECT DISTINCT 77 DIV - + 71 + - 85 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT 77 / - + 71 + - 85 AS col2
----
-86

query I rowsort
SELECT - 15 * 17
----
-255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2769
SELECT DISTINCT - 25 DIV - + COUNT( * ) + 55
----
80

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT - 25 / - + COUNT ( * ) + 55
----
80

query II rowsort
SELECT + 26 AS col0, 18 AS col0
----
26
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2771
SELECT DISTINCT + 67, - MAX( ALL 30 ) DIV + 46 AS col2
----
67
0

skipif mysql # not compatible
query II rowsort label-2771
SELECT DISTINCT + 67, - MAX ( ALL 30 ) / + 46 AS col2
----
67
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2772
SELECT CAST( NULL AS SIGNED ), - 59 * ( - + 53 ) AS col2
----
NULL
3127

skipif mysql # not compatible
query II rowsort label-2772
SELECT CAST ( NULL AS INTEGER ), - 59 * ( - + 53 ) AS col2
----
NULL
3127

query I rowsort
SELECT 15 + - + 12 * 65
----
-765

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2774
SELECT ALL CAST( NULL AS SIGNED ) / 27 AS col2, COALESCE ( - 85, - 18 ) AS col0
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-2774
SELECT ALL CAST ( NULL AS INTEGER ) / 27 AS col2, COALESCE ( - 85, - 18 ) AS col0
----
NULL
-85

query I rowsort
SELECT DISTINCT 61 * 8 * - + 54 * 90 AS col2
----
-2371680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2776
SELECT DISTINCT + 60 + + - COUNT( * ) DIV + + 88
----
60

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT + 60 + + - COUNT ( * ) / + + 88
----
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT - MAX( ALL - 27 ) + - 39 * - COUNT( * ) col2
----
66

skipif mysql # not compatible
query I rowsort label-2778
SELECT - MAX ( ALL - 27 ) + - 39 * - COUNT ( * ) col2
----
66

query I rowsort
SELECT ( 45 ) * 58 * + + 56 + + + 43 * + - CASE - 20 WHEN - 54 THEN NULL ELSE - 10 END
----
146590

query II rowsort
SELECT + - 49, 73 AS col0
----
-49
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT - ( + MIN( DISTINCT + 34 ) ) * - 10
----
340

skipif mysql # not compatible
query I rowsort label-2781
SELECT - ( + MIN ( DISTINCT + 34 ) ) * - 10
----
340

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

skipif mysql # not compatible
query I rowsort label-2782
SELECT COUNT ( * ) * + 15 / - - 65 + - - COUNT ( * ) - 43 / - 92 AS col1
----
1

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

query I rowsort
SELECT 69 + - + 95 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT + COALESCE ( + - 0, + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-2785
SELECT + COALESCE ( + - 0, + COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2786
SELECT - 45 col2, + 94 * 30 + + ( - AVG ( - CAST( NULL AS SIGNED ) ) )
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-2786
SELECT - 45 col2, + 94 * 30 + + ( - AVG ( - CAST ( NULL AS INTEGER ) ) )
----
-45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT ALL COUNT( * ) - + 84 + COUNT( ALL 8 ) * + 4
----
-79

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL COUNT ( * ) - + 84 + COUNT ( ALL 8 ) * + 4
----
-79

query I rowsort
SELECT 3 * + + 48 + + 58 AS col0
----
202

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

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

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

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

query I rowsort
SELECT DISTINCT + 3 * 38 + ( - - 83 ) col0
----
197

query II rowsort
SELECT - 63 AS col1, + 26
----
-63
26

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

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

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

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

query II rowsort
SELECT ALL 40 * - - 56 AS col0, - 39
----
2240
-39

query I rowsort
SELECT ALL 10 + - 59 * + 94 * - - 33
----
-183008

query II rowsort
SELECT ALL + 4 + - 5 AS col0, 86
----
-1
86

query I rowsort
SELECT DISTINCT 45 + 91
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2799
SELECT ALL AVG ( + - 5 ) + 18 * + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL AVG ( + - 5 ) + 18 * + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL CASE - 57 WHEN - + 42 THEN - - COUNT( + 78 ) ELSE NULL END + 2 * + - 47 * - COUNT( * ) * - 21 * - ( 43 ) + + 28 / 76 * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL CASE - 57 WHEN - + 42 THEN - - COUNT ( + 78 ) ELSE NULL END + 2 * + - 47 * - COUNT ( * ) * - 21 * - ( 43 ) + + 28 / 76 * 14
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT 99 + + CAST( NULL AS SIGNED ) - 34 * - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2801
SELECT 99 + + CAST ( NULL AS INTEGER ) - 34 * - 3 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2802
SELECT ALL - COALESCE ( + 39, 34 + CASE + 57 WHEN 17 * - 51 + + 71 THEN 51 + - - 16 WHEN + 59 + - + COUNT( * ) THEN NULL END ) DIV + 26 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL - COALESCE ( + 39, 34 + CASE + 57 WHEN 17 * - 51 + + 71 THEN 51 + - - 16 WHEN + 59 + - + COUNT ( * ) THEN NULL END ) / + 26 AS col0
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2804
SELECT - 72 DIV 72 + + 23 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2804
SELECT - 72 / 72 + + 23 AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2805
SELECT ALL + 42 * CAST( NULL AS SIGNED ) * 48 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL + 42 * CAST ( NULL AS INTEGER ) * 48 * 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2806
SELECT 41 * NULLIF ( COUNT( * ), - CASE + - 99 WHEN 51 - 20 THEN + 32 WHEN + 22 + ( - 15 ) THEN 89 WHEN + 14 * CAST( + 57 AS SIGNED ) - + COUNT( * ) + + CASE 84 WHEN CAST( - + 19 AS SIGNED ) + - NULLIF ( 67, + 1 * - CAST( NULL AS SIGNED ) * + SUM( 3 ) ) THEN - CASE - NULLIF ( - 50, + - MIN( ALL + CAST( NULL AS DECIMAL ) ) ) WHEN - COUNT( * ) * - - 16 * + 58 * 9 THEN CASE + 2 WHEN 26 / SUM( ALL - - 7 ) + - 85 THEN - 25 + + - 44 - - 96 WHEN - 89 THEN NULL END * - - NULLIF ( - 25, + NULLIF ( 12, - 19 ) * 95 ) ELSE NULL END END + 39 THEN NULL WHEN - 68 THEN - 89 * + 42 END ) * 40 AS col2
----
1640

skipif mysql # not compatible
query I rowsort label-2806
SELECT 41 * NULLIF ( COUNT ( * ), - CASE + - 99 WHEN 51 - 20 THEN + 32 WHEN + 22 + ( - 15 ) THEN 89 WHEN + 14 * CAST ( + 57 AS INTEGER ) - + COUNT ( * ) + + CASE 84 WHEN CAST ( - + 19 AS INTEGER ) + - NULLIF ( 67, + 1 * - CAST ( NULL AS INTEGER ) * + SUM ( 3 ) ) THEN - CASE - NULLIF ( - 50, + - MIN ( ALL + CAST ( NULL AS REAL ) ) ) WHEN - COUNT ( * ) * - - 16 * + 58 * 9 THEN CASE + 2 WHEN 26 / SUM ( ALL - - 7 ) + - 85 THEN - 25 + + - 44 - - 96 WHEN - 89 THEN NULL END * - - NULLIF ( - 25, + NULLIF ( 12, - 19 ) * 95 ) ELSE NULL END END + 39 THEN NULL WHEN - 68 THEN - 89 * + 42 END ) * 40 AS col2
----
1640

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2807
SELECT DISTINCT + 69 - + CAST( NULL AS DECIMAL ) - - ( + 10 ) + COALESCE ( - 38, + 55, - 78 * - 37 ) * 21 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT + 69 - + CAST ( NULL AS REAL ) - - ( + 10 ) + COALESCE ( - 38, + 55, - 78 * - 37 ) * 21 + - - COUNT ( * )
----
NULL

query I rowsort
SELECT 48 - + 85 AS col2
----
-37

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

query I rowsort
SELECT + 20 * + 66 - - + 35 AS col0
----
1355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2811
SELECT - 78 * + CAST( NULL AS SIGNED ) * + 83 - + 13 / + AVG ( ALL ( 23 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2811
SELECT - 78 * + CAST ( NULL AS INTEGER ) * + 83 - + 13 / + AVG ( ALL ( 23 ) ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL 18 * - 63 + - COUNT ( * ) AS col1
----
-1135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2813
SELECT 63 - COALESCE ( + - COUNT( * ), - 98 + 5 + - - NULLIF ( - 1, 27 * + + COUNT( DISTINCT + + 34 ) ), + 84, + 79 + + 13 + + 8 DIV + ( - CAST( NULL AS SIGNED ) ) ) * - 66 + - MIN( ALL + + 32 ) + SUM( + 1 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-2813
SELECT 63 - COALESCE ( + - COUNT ( * ), - 98 + 5 + - - NULLIF ( - 1, 27 * + + COUNT ( DISTINCT + + 34 ) ), + 84, + 79 + + 13 + + 8 / + ( - CAST ( NULL AS INTEGER ) ) ) * - 66 + - MIN ( ALL + + 32 ) + SUM ( + 1 ) AS col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT ALL - 55 DIV - NULLIF ( - - 95, - - 15 + - SUM( DISTINCT 80 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL - 55 / - NULLIF ( - - 95, - - 15 + - SUM ( DISTINCT 80 ) ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2815
SELECT + + NULLIF ( - 87, - ( + 73 ) * + COALESCE ( - SUM( ALL - 66 ), - 84, - 9 ) - + 75 + CAST( NULL AS SIGNED ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-2815
SELECT + + NULLIF ( - 87, - ( + 73 ) * + COALESCE ( - SUM ( ALL - 66 ), - 84, - 9 ) - + 75 + CAST ( NULL AS INTEGER ) ) AS col1
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2816
SELECT + 45 DIV - 29 + + + 7 + + ( - - 85 ) - - 36 - + + COUNT( * ) * 22 * + - 84
----
1975

skipif mysql # not compatible
query I rowsort label-2816
SELECT + 45 / - 29 + + + 7 + + ( - - 85 ) - - 36 - + + COUNT ( * ) * 22 * + - 84
----
1975

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT COALESCE ( ( - 57 ), + + 25 DIV 84 + + - 63 ) + - + 18 + + 45 DIV - + COALESCE ( 56, + 36, + - 83, + 79 + + 36 )
----
-75

skipif mysql # not compatible
query I rowsort label-2819
SELECT COALESCE ( ( - 57 ), + + 25 / 84 + + - 63 ) + - + 18 + + 45 / - + COALESCE ( 56, + 36, + - 83, + 79 + + 36 )
----
-75

query I rowsort
SELECT + 28 * 23 AS col2
----
644

query I rowsort
SELECT ALL + COALESCE ( - - 42, + 16, 68 * 20 - 5 ) + + - 27 + 27 + - 72 * + 22 * + 53
----
-83910

query I rowsort
SELECT - 67 + - - ( - 36 )
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT 33 - CAST( 60 AS SIGNED ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-2823
SELECT 33 - CAST ( 60 AS INTEGER ) AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2824
SELECT 35 + - CAST( + + 63 AS SIGNED ) + NULLIF ( + 49, - COUNT( * ) ) * + 32 * + ( - 34 )
----
-53340

skipif mysql # not compatible
query I rowsort label-2824
SELECT 35 + - CAST ( + + 63 AS INTEGER ) + NULLIF ( + 49, - COUNT ( * ) ) * + 32 * + ( - 34 )
----
-53340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2825
SELECT - 48 AS col1, - COALESCE ( SUM( - - 64 ), - 81 * - + 98 ) * + - ( NULLIF ( 63, + 34 - + 66 * - 82 ) ) + + NULLIF ( - CAST( NULL AS SIGNED ), 65 ) - - MIN( ALL 84 ) + - + 74 - + 17 - CAST( - COUNT( * ) AS DECIMAL ) / + + 31 * - + 91
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-2825
SELECT - 48 AS col1, - COALESCE ( SUM ( - - 64 ), - 81 * - + 98 ) * + - ( NULLIF ( 63, + 34 - + 66 * - 82 ) ) + + NULLIF ( - CAST ( NULL AS INTEGER ), 65 ) - - MIN ( ALL 84 ) + - + 74 - + 17 - CAST ( - COUNT ( * ) AS REAL ) / + + 31 * - + 91
----
-48
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2826
SELECT DISTINCT MAX( ALL + 77 ) + 38 col0, - COUNT( * ) * 5 * + 7 AS col0
----
115
-35

skipif mysql # not compatible
query II rowsort label-2826
SELECT DISTINCT MAX ( ALL + 77 ) + 38 col0, - COUNT ( * ) * 5 * + 7 AS col0
----
115
-35

query I rowsort
SELECT DISTINCT 34 + - 14 * - 87 * - + 12 + + - 33 AS col0
----
-14615

query I rowsort
SELECT 19 + - + 35 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT + 45 + - + COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-2829
SELECT + 45 + - + COUNT ( * ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL 50 * MIN( - 41 )
----
-2050

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL 50 * MIN ( - 41 )
----
-2050

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT CASE + 65 WHEN - - 0 THEN NULL WHEN - 19 THEN + COUNT( * ) * + + 75 / NULLIF ( + 76, + 16 ) END - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT CASE + 65 WHEN - - 0 THEN NULL WHEN - 19 THEN + COUNT ( * ) * + + 75 / NULLIF ( + 76, + 16 ) END - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT DISTINCT - COUNT( * ) * - - 44 - 59 col1
----
-103

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT - COUNT ( * ) * - - 44 - 59 col1
----
-103

query I rowsort
SELECT + 73 * + - 54 AS col1
----
-3942

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

skipif mysql # not compatible
query I rowsort label-2834
SELECT - 78 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2836
SELECT 25 * - + ( + - 29 ) * - ( - 84 ) * + + ( - ( - 20 ) ) + + COUNT( ( + CAST( + - 76 AS SIGNED ) ) ) + CASE - - 12 WHEN 35 + + ( - MIN( - 58 ) ) - + AVG ( ALL + COALESCE ( + 75, 31 + - - 33 ) ) + 1 * - + 54 * 10 + 47 * - - 84 THEN + - COUNT( * ) WHEN + 50 + - - 73 + - CAST( NULL AS SIGNED ) THEN - 76 + - - COUNT( * ) END - + 26 + - ( + CAST( NULL AS DECIMAL ) ) - - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT 25 * - + ( + - 29 ) * - ( - 84 ) * + + ( - ( - 20 ) ) + + COUNT ( ( + CAST ( + - 76 AS INTEGER ) ) ) + CASE - - 12 WHEN 35 + + ( - MIN ( - 58 ) ) - + AVG ( ALL + COALESCE ( + 75, 31 + - - 33 ) ) + 1 * - + 54 * 10 + 47 * - - 84 THEN + - COUNT ( * ) WHEN + 50 + - - 73 + - CAST ( NULL AS INTEGER ) THEN - 76 + - - COUNT ( * ) END - + 26 + - ( + CAST ( NULL AS REAL ) ) - - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT + 36 + - 54 * - COUNT( * ) + + 99 * 78 AS col0
----
7812

skipif mysql # not compatible
query I rowsort label-2837
SELECT + 36 + - 54 * - COUNT ( * ) + + 99 * 78 AS col0
----
7812

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ALL - - ( + 75 ) * - + MAX( DISTINCT 68 )
----
-5100

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - - ( + 75 ) * - + MAX ( DISTINCT 68 )
----
-5100

query I rowsort
SELECT - 49 * - - 10 + + - 47 + 57
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT ALL - COUNT( - 24 ) * - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL - COUNT ( - 24 ) * - - COUNT ( * ) AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT ALL - COUNT( * ) * 96 - + 19 col0
----
-115

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL - COUNT ( * ) * 96 - + 19 col0
----
-115

onlyif mysql # DIV for integer division: 
query II rowsort label-2843
SELECT DISTINCT + - 50 AS col0, 89 + - 71 DIV + 65 AS col0
----
-50
88

skipif mysql # not compatible
query II rowsort label-2843
SELECT DISTINCT + - 50 AS col0, 89 + - 71 / + 65 AS col0
----
-50
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2844
SELECT - NULLIF ( CASE - + NULLIF ( 18, - - ( + + CAST( - - 28 AS SIGNED ) ) ) WHEN 60 THEN - + COUNT( * ) ELSE - 79 * COUNT( * ) * + 80 END, - ( 50 ) )
----
6320

skipif mysql # not compatible
query I rowsort label-2844
SELECT - NULLIF ( CASE - + NULLIF ( 18, - - ( + + CAST ( - - 28 AS INTEGER ) ) ) WHEN 60 THEN - + COUNT ( * ) ELSE - 79 * COUNT ( * ) * + 80 END, - ( 50 ) )
----
6320

query I rowsort
SELECT - 5 * - + 77 + + + 22 AS col2
----
407

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2847
SELECT - COUNT( * ), NULLIF ( + 19, + - 84 ) * + 30 * + 82 AS col0
----
-1
46740

skipif mysql # not compatible
query II rowsort label-2847
SELECT - COUNT ( * ), NULLIF ( + 19, + - 84 ) * + 30 * + 82 AS col0
----
-1
46740

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT ALL 17 * - ( - COUNT( * ) ) + + + 41
----
58

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL 17 * - ( - COUNT ( * ) ) + + + 41
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT - NULLIF ( 98, - + COUNT( * ) + + 59 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-2849
SELECT - NULLIF ( 98, - + COUNT ( * ) + + 59 ) AS col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2850
SELECT DISTINCT + - 84 + + COUNT( ALL + + 92 ) * + + 51, 13 + - MAX( DISTINCT - ( - CAST( NULL AS SIGNED ) ) ) AS col0
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-2850
SELECT DISTINCT + - 84 + + COUNT ( ALL + + 92 ) * + + 51, 13 + - MAX ( DISTINCT - ( - CAST ( NULL AS INTEGER ) ) ) AS col0
----
-33
NULL

query I rowsort
SELECT ALL - - 21 + - 21
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2852
SELECT - 23 * 52 DIV 37
----
-32

skipif mysql # not compatible
query I rowsort label-2852
SELECT - 23 * 52 / 37
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT ALL NULLIF ( + - COUNT( * ), 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL NULLIF ( + - COUNT ( * ), 9 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2854
SELECT ALL CAST( 59 AS SIGNED ) + - CASE + 28 WHEN - + ( + + NULLIF ( - 54, - ( + - 97 ) ) ) * - - 84 + COALESCE ( + 85, CASE 99 WHEN - COUNT( * ) + - 85 THEN - - MIN( ALL + - 53 ) * + 3 * + - 29 * + 28 + + + 22 WHEN - + ( - + 3 ) THEN - 5 + + ( MIN( DISTINCT - 50 ) ) END * - 95 + - 54 + - + CAST( + 71 AS SIGNED ) / + 75 ) THEN NULL WHEN + + 77 + ( 26 ) * - + 16 THEN - + 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL CAST ( 59 AS INTEGER ) + - CASE + 28 WHEN - + ( + + NULLIF ( - 54, - ( + - 97 ) ) ) * - - 84 + COALESCE ( + 85, CASE 99 WHEN - COUNT ( * ) + - 85 THEN - - MIN ( ALL + - 53 ) * + 3 * + - 29 * + 28 + + + 22 WHEN - + ( - + 3 ) THEN - 5 + + ( MIN ( DISTINCT - 50 ) ) END * - 95 + - 54 + - + CAST ( + 71 AS INTEGER ) / + 75 ) THEN NULL WHEN + + 77 + ( 26 ) * - + 16 THEN - + 57 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2855
SELECT DISTINCT + SUM( DISTINCT 3 ) DIV + 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT + SUM ( DISTINCT 3 ) / + 46 AS col0
----
0

query II rowsort
SELECT DISTINCT - 4 + + 41 - 60 + - + 44 AS col0, 72 * + 30
----
-67
2160

query I rowsort
SELECT DISTINCT + ( 41 ) * ( 28 )
----
1148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2858
SELECT - 63 - - + MAX( - - 19 ) + + 37 DIV ( 43 ) * + ( + 98 ) col1
----
-44

skipif mysql # not compatible
query I rowsort label-2858
SELECT - 63 - - + MAX ( - - 19 ) + + 37 / ( 43 ) * + ( + 98 ) col1
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2859
SELECT - 39 DIV - + 30 * + COALESCE ( + COUNT( * ), - + 11 + - 3, + + 4 + 51, ( + - 43 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2859
SELECT - 39 / - + 30 * + COALESCE ( + COUNT ( * ), - + 11 + - 3, + + 4 + 51, ( + - 43 ) )
----
1

query I rowsort
SELECT ALL - 87 - + + 7 + + 65 * + - 12 * 36 + + - 93
----
-28267

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2863
SELECT + 85 - 36 DIV + COUNT( ALL ( + 93 ) )
----
49

skipif mysql # not compatible
query I rowsort label-2863
SELECT + 85 - 36 / + COUNT ( ALL ( + 93 ) )
----
49

query I rowsort
SELECT - COALESCE ( 19, 37 ) AS col0
----
-19

query I rowsort
SELECT - ( + 57 ) col0
----
-57

query I rowsort
SELECT + 49 + + 9
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2867
SELECT + MIN( + ( CAST( NULL AS DECIMAL ) ) ) * - - 83 * - 35 + 84 / - - 49 * - 38 - + CASE + COALESCE ( - - 93, - - 61 ) WHEN + NULLIF ( - COUNT( ALL + - 83 ), 85 ) THEN - + 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT + MIN ( + ( CAST ( NULL AS REAL ) ) ) * - - 83 * - 35 + 84 / - - 49 * - 38 - + CASE + COALESCE ( - - 93, - - 61 ) WHEN + NULLIF ( - COUNT ( ALL + - 83 ), 85 ) THEN - + 94 END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 55 * - 41 * - ( + 10 )
----
22550

query I rowsort
SELECT ALL 94 * 77
----
7238

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2871
SELECT DISTINCT 12 * - 21 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT DISTINCT 12 * - 21 + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT + SUM( + 58 ) * - 89 + COUNT( * )
----
-5161

skipif mysql # not compatible
query I rowsort label-2872
SELECT + SUM ( + 58 ) * - 89 + COUNT ( * )
----
-5161

query I rowsort
SELECT ALL + + COALESCE ( 75, + 42 )
----
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2874
SELECT ALL - 51 DIV - CAST( + - 40 AS SIGNED ) + 89
----
88

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL - 51 / - CAST ( + - 40 AS INTEGER ) + 89
----
88

onlyif mysql # DIV for integer division: 
query II rowsort label-2875
SELECT + 49 DIV + - 42 - - 28 * 14 AS col1, 45
----
391
45

skipif mysql # not compatible
query II rowsort label-2875
SELECT + 49 / + - 42 - - 28 * 14 AS col1, 45
----
391
45

query I rowsort
SELECT + + 93 col0
----
93

query I rowsort
SELECT + COALESCE ( + 5, + 57 * 36 + 66 + + + CASE WHEN NOT - 11 IS NULL THEN + - 52 END * 25 ) - 64 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT + - COALESCE ( 78, + 72 * + 42 - - - NULLIF ( + 51, - 17 * 20 * - + 59 * COUNT( * ) / 70 - + 79 ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-2878
SELECT + - COALESCE ( 78, + 72 * + 42 - - - NULLIF ( + 51, - 17 * 20 * - + 59 * COUNT ( * ) / 70 - + 79 ) ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2879
SELECT DISTINCT + ( + 62 ) AS col2, 90 * + COUNT( * ) - + 0
----
62
90

skipif mysql # not compatible
query II rowsort label-2879
SELECT DISTINCT + ( + 62 ) AS col2, 90 * + COUNT ( * ) - + 0
----
62
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2880
SELECT + - 83 * + CAST( + + 42 AS SIGNED )
----
-3486

skipif mysql # not compatible
query I rowsort label-2880
SELECT + - 83 * + CAST ( + + 42 AS INTEGER )
----
-3486

query I rowsort
SELECT - - 77 * - 12 + + - 0 * - NULLIF ( 87, - + COALESCE ( 22, + 75 ) - - + 99 / 34 ) + - 79
----
-1003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2882
SELECT ALL CASE + 39 WHEN - 72 THEN + CAST( + COUNT( * ) AS SIGNED ) * + 52 + 49 ELSE - + CAST( NULL AS SIGNED ) END * + - 37 + + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL CASE + 39 WHEN - 72 THEN + CAST ( + COUNT ( * ) AS INTEGER ) * + 52 + 49 ELSE - + CAST ( NULL AS INTEGER ) END * + - 37 + + + 75
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2883
SELECT + + COUNT( * ) * + + 44 * 89 * - 53, 57 + - 97 AS col2
----
-207548
-40

skipif mysql # not compatible
query II rowsort label-2883
SELECT + + COUNT ( * ) * + + 44 * 89 * - 53, 57 + - 97 AS col2
----
-207548
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT DISTINCT 15 * + - 13 - COUNT( * ) + + + 9 col2
----
-187

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT 15 * + - 13 - COUNT ( * ) + + + 9 col2
----
-187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT ALL - 50 * + + ( CASE 2 WHEN 62 + + 58 + + 34 * 22 / + 41 THEN NULL WHEN 36 + + - 64 THEN - 57 / NULLIF ( + 86, - + 24 * - + COUNT( * ) * + 99 + COALESCE ( CAST( NULL AS SIGNED ), + - 22 ) ) WHEN AVG ( DISTINCT + 61 ) * - 89 + 77 * 2 * + 45 + + 62 THEN NULL END ) + + COALESCE ( - 40, - 49 / + + 70, + + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL - 50 * + + ( CASE 2 WHEN 62 + + 58 + + 34 * 22 / + 41 THEN NULL WHEN 36 + + - 64 THEN - 57 / NULLIF ( + 86, - + 24 * - + COUNT ( * ) * + 99 + COALESCE ( CAST ( NULL AS INTEGER ), + - 22 ) ) WHEN AVG ( DISTINCT + 61 ) * - 89 + 77 * 2 * + 45 + + 62 THEN NULL END ) + + COALESCE ( - 40, - 49 / + + 70, + + 97 )
----
NULL

query I rowsort
SELECT ALL ( + - ( - 8 ) ) * 98
----
784

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2888
SELECT CAST( + 43 AS DECIMAL ) * 29 + + + 87 + + CASE + NULLIF ( + 73, COUNT( * ) * + + CASE - + AVG ( - 44 ) WHEN + ( - 4 ) + - + CAST( + + 55 AS SIGNED ) THEN NULL WHEN - 80 THEN - + 10 + + 30 + + 9 + 23 END + + 48 ) WHEN 28 * - 1 THEN 30 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2888
SELECT CAST ( + 43 AS REAL ) * 29 + + + 87 + + CASE + NULLIF ( + 73, COUNT ( * ) * + + CASE - + AVG ( - 44 ) WHEN + ( - 4 ) + - + CAST ( + + 55 AS INTEGER ) THEN NULL WHEN - 80 THEN - + 10 + + 30 + + 9 + 23 END + + 48 ) WHEN 28 * - 1 THEN 30 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT ALL + 16 * 94 + - + 48 * - + ( MIN( ALL + 77 ) ) + - 73 AS col0
----
5127

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL + 16 * 94 + - + 48 * - + ( MIN ( ALL + 77 ) ) + - 73 AS col0
----
5127

query I rowsort
SELECT 35 * + + 35 col1
----
1225

query I rowsort
SELECT 9 + + 43
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT 44 - + - COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-2892
SELECT 44 - + - COUNT ( * ) AS col1
----
45

query I rowsort
SELECT 25 * + ( + + 42 ) * + + 73
----
76650

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT + COUNT( * ) - + 93 + + 69 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT + COUNT ( * ) - + 93 + + 69 AS col2
----
-23

query I rowsort
SELECT DISTINCT + 1 * - 56 * - 95 AS col2
----
5320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2897
SELECT 44 + - + 22 * - 72 + - + MAX( - - 38 ) - + 18 DIV + - 62 + - - 86 + - 30 * 94 AS col0
----
-1144

skipif mysql # not compatible
query I rowsort label-2897
SELECT 44 + - + 22 * - 72 + - + MAX ( - - 38 ) - + 18 / + - 62 + - - 86 + - 30 * 94 AS col0
----
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL 97 * - COUNT( * ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL 97 * - COUNT ( * ) AS col2
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT DISTINCT + 10 DIV - - 20 * - 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT + 10 / - - 20 * - 22 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT MAX( 50 ) + + + 50 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-2900
SELECT MAX ( 50 ) + + + 50 AS col0
----
100

query I rowsort
SELECT 40 + - - 14 AS col1
----
54

query I rowsort
SELECT 79 + - - 75 + - ( + 45 ) * + 27 AS col0
----
-1061

query I rowsort
SELECT ALL + 93 * + 50
----
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT DISTINCT - ( + 3 ) * COALESCE ( COUNT( ALL - 79 ) * 18, + 17 + 74 )
----
-54

skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT - ( + 3 ) * COALESCE ( COUNT ( ALL - 79 ) * 18, + 17 + 74 )
----
-54

query I rowsort
SELECT ALL 31 + NULLIF ( 58, + 66 * 45 )
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2906
SELECT DISTINCT 48 DIV COALESCE ( 45 * 52, + 56 * + COALESCE ( + COUNT( * ), 24 * - COUNT( * ) ), 45 )
----
0

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT 48 / COALESCE ( 45 * 52, + 56 * + COALESCE ( + COUNT ( * ), 24 * - COUNT ( * ) ), 45 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT DISTINCT - 66 + 67 DIV 30 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT - 66 + 67 / 30 AS col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2908
SELECT DISTINCT + 2 + 68 * ( - 2 DIV 88 )
----
2

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT + 2 + 68 * ( - 2 / 88 )
----
2

query I rowsort
SELECT ALL - 48 + - 14 * - 44 AS col0
----
568

query I rowsort
SELECT ALL 54 + + 55 AS col2
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2911
SELECT + MAX( + 86 ) DIV CAST( COUNT( * ) DIV - 14 + + 41 AS SIGNED ) + 63 DIV 17
----
5

skipif mysql # not compatible
query I rowsort label-2911
SELECT + MAX ( + 86 ) / CAST ( COUNT ( * ) / - 14 + + 41 AS INTEGER ) + 63 / 17
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2912
SELECT 68 - - 96 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT 68 - - 96 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 75 + - 25 * + 6
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT 49 * + COUNT( * ) - + 67 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-2914
SELECT 49 * + COUNT ( * ) - + 67 AS col1
----
-18

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

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

query I rowsort
SELECT DISTINCT 82 + 85 AS col0
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT ALL 17 + + COALESCE ( 7, 75 - - ( 59 - SUM( ALL 16 ) * 75 ) * + 78, - 62 * 40 )
----
24

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL 17 + + COALESCE ( 7, 75 - - ( 59 - SUM ( ALL 16 ) * 75 ) * + 78, - 62 * 40 )
----
24

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

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

query I rowsort
SELECT DISTINCT 46 + + 0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT DISTINCT - CASE 38 WHEN + NULLIF ( - 33, - 32 * + CASE + 40 WHEN + 14 THEN 33 * - COUNT( - NULLIF ( 4, - 23 ) ) ELSE 45 END + - 72 * - 42 ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE - COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT - CASE 38 WHEN + NULLIF ( - 33, - 32 * + CASE + 40 WHEN + 14 THEN 33 * - COUNT ( - NULLIF ( 4, - 23 ) ) ELSE 45 END + - 72 * - 42 ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ALL 81 - + SUM( - 8 + 83 ) * 74 AS col1
----
-5469

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL 81 - + SUM ( - 8 + 83 ) * 74 AS col1
----
-5469

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT ( 54 ) DIV 49 col0
----
1

skipif mysql # not compatible
query I rowsort label-2922
SELECT ( 54 ) / 49 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2923
SELECT ALL 10 DIV + ( + 62 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL 10 / + ( + 62 ) AS col1
----
0

query I rowsort
SELECT ALL - 87 - 62 AS col2
----
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-2925
SELECT 25 DIV 17 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2925
SELECT 25 / 17 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT DISTINCT 39 DIV 10
----
3

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT 39 / 10
----
3

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

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL + 23 * COUNT ( * ) AS col0
----
23

query I rowsort
SELECT DISTINCT + 14 * + 59
----
826

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

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

query I rowsort
SELECT 60 * + 35
----
2100

query I rowsort
SELECT 34 - - 34 col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2932
SELECT CAST( NULL AS SIGNED ) - + ( 89 + + 45 ) / 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT CAST ( NULL AS INTEGER ) - + ( 89 + + 45 ) / 28
----
NULL

query I rowsort
SELECT 50 * 24
----
1200

query I rowsort
SELECT DISTINCT + 79 + 57 AS col1
----
136

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

skipif mysql # not compatible
query I rowsort label-2935
SELECT COUNT ( * ) + - 47 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT + MIN( - 52 ) + COUNT( * ) * + 53
----
1

skipif mysql # not compatible
query I rowsort label-2936
SELECT + MIN ( - 52 ) + COUNT ( * ) * + 53
----
1

query I rowsort
SELECT ALL + 47 * 0
----
0

query I rowsort
SELECT 7 + - 92
----
-85

query I rowsort
SELECT - ( - 81 ) * 22 - + 9 * 38 AS col2
----
1440

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

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

query I rowsort
SELECT ALL - - 62 AS col0
----
62

query I rowsort
SELECT ALL + 86 * 43 AS col1
----
3698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2943
SELECT MIN( DISTINCT CAST( NULL AS SIGNED ) ) * SUM( + 6 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2943
SELECT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * SUM ( + 6 ) AS col0
----
NULL

query I rowsort
SELECT - 45 * 19 AS col2
----
-855

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

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT + + CASE 43 WHEN + 37 + + COUNT( * ) THEN 0 + ( - 75 ) WHEN - 80 THEN 56 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT + + CASE 43 WHEN + 37 + + COUNT ( * ) THEN 0 + ( - 75 ) WHEN - 80 THEN 56 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2947
SELECT + - 55 DIV - 72 - COALESCE ( + 64, 24 * 72 ) * - COUNT( * ) col0
----
64

skipif mysql # not compatible
query I rowsort label-2947
SELECT + - 55 / - 72 - COALESCE ( + 64, 24 * 72 ) * - COUNT ( * ) col0
----
64

query I rowsort
SELECT - 20 - 39
----
-59

query I rowsort
SELECT - + 81 * - 34 AS col2
----
2754

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

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL ( + + COUNT ( * ) ) * - ( 96 ) AS col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2951
SELECT COUNT( + COALESCE ( 61, + CAST( - 54 AS SIGNED ) * - 78, 59, 90 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2951
SELECT COUNT ( + COALESCE ( 61, + CAST ( - 54 AS INTEGER ) * - 78, 59, 90 ) ) AS col1
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2953
SELECT DISTINCT + CASE 0 WHEN + ( - 16 ) THEN NULL WHEN - CASE - COUNT( NULLIF ( - 23, + CAST( - 72 AS SIGNED ) ) ) WHEN + COUNT( ALL 87 ) * 66 + CASE 22 WHEN 93 THEN NULL WHEN - 33 THEN NULL ELSE - 36 * + COUNT( * ) END THEN NULL ELSE COALESCE ( - 31, - NULLIF ( 96, + 81 ) + + 20 ) - 61 * + 24 END THEN 60 / - SUM( DISTINCT 93 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT + CASE 0 WHEN + ( - 16 ) THEN NULL WHEN - CASE - COUNT ( NULLIF ( - 23, + CAST ( - 72 AS INTEGER ) ) ) WHEN + COUNT ( ALL 87 ) * 66 + CASE 22 WHEN 93 THEN NULL WHEN - 33 THEN NULL ELSE - 36 * + COUNT ( * ) END THEN NULL ELSE COALESCE ( - 31, - NULLIF ( 96, + 81 ) + + 20 ) - 61 * + 24 END THEN 60 / - SUM ( DISTINCT 93 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( 29 ) * ( - 52 * - 39 ) AS col0
----
-58812

query I rowsort
SELECT DISTINCT 33 * + 8
----
264

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2957
SELECT + 80 DIV 7
----
11

skipif mysql # not compatible
query I rowsort label-2957
SELECT + 80 / 7
----
11

query I rowsort
SELECT + 50 + - 18 AS col1
----
32

query I rowsort
SELECT ALL 20 + + 86 + 21 * - 14
----
-188

query I rowsort
SELECT - 32 - + 71
----
-103

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2961
SELECT + 44 DIV CAST( 1 AS SIGNED ) * 17 AS col1
----
748

skipif mysql # not compatible
query I rowsort label-2961
SELECT + 44 / CAST ( 1 AS INTEGER ) * 17 AS col1
----
748

onlyif mysql # DIV for integer division: 
query I rowsort label-2962
SELECT + 13 * + ( 88 ) + 44 DIV 66 col0
----
1144

skipif mysql # not compatible
query I rowsort label-2962
SELECT + 13 * + ( 88 ) + 44 / 66 col0
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT - CASE - COUNT( ALL - ( 83 ) ) WHEN 48 + + 61 THEN NULLIF ( + 6, - NULLIF ( COUNT( 39 ), 27 + 61 ) ) + + MAX( DISTINCT 59 ) ELSE + 23 END col0
----
-23

skipif mysql # not compatible
query I rowsort label-2963
SELECT - CASE - COUNT ( ALL - ( 83 ) ) WHEN 48 + + 61 THEN NULLIF ( + 6, - NULLIF ( COUNT ( 39 ), 27 + 61 ) ) + + MAX ( DISTINCT 59 ) ELSE + 23 END col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT ALL SUM( - 99 ) + 2
----
-97

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL SUM ( - 99 ) + 2
----
-97

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

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

query I rowsort
SELECT DISTINCT 61 + 72
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ALL + MIN( - 3 ) + COALESCE ( + 77, - COUNT( * ) ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL + MIN ( - 3 ) + COALESCE ( + 77, - COUNT ( * ) ) AS col1
----
74

query I rowsort
SELECT + - 47 + - 60
----
-107

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

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

query I rowsort
SELECT - + 73 + - 66
----
-139

query I rowsort
SELECT ALL + 67 + - 47 * 81 AS col2
----
-3740

query I rowsort
SELECT DISTINCT - 9 * 61
----
-549

query I rowsort
SELECT DISTINCT - 59 + 12 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT DISTINCT - 48 * + CASE + 91 WHEN - COUNT( * ) THEN NULL ELSE 6 END - + 57
----
-345

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT - 48 * + CASE + 91 WHEN - COUNT ( * ) THEN NULL ELSE 6 END - + 57
----
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT DISTINCT + + COUNT( 57 ) + 38
----
39

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT + + COUNT ( 57 ) + 38
----
39

query I rowsort
SELECT ALL - + 87 + + - 14
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT - CASE 10 WHEN 67 * - 49 THEN - CASE + COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE - 15 * - 71 END + + ( + COALESCE ( CASE 55 WHEN - ( 57 ) THEN + ( 52 ) ELSE NULL END, + 27 ) ) WHEN 92 THEN NULL ELSE 17 END
----
-17

skipif mysql # not compatible
query I rowsort label-2977
SELECT - CASE 10 WHEN 67 * - 49 THEN - CASE + COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE - 15 * - 71 END + + ( + COALESCE ( CASE 55 WHEN - ( 57 ) THEN + ( 52 ) ELSE NULL END, + 27 ) ) WHEN 92 THEN NULL ELSE 17 END
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT ALL SUM( ALL - 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL SUM ( ALL - 44 ) AS col1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-2979
SELECT DISTINCT - 93 * 33 DIV + ( + 13 ) AS col1
----
-236

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT - 93 * 33 / + ( + 13 ) AS col1
----
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT ALL + + MAX( DISTINCT + - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL + + MAX ( DISTINCT + - 3 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2981
SELECT DISTINCT 58 DIV + 30 - 64
----
-63

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT 58 / + 30 - 64
----
-63

query I rowsort
SELECT + - 60 * + - 43 AS col2
----
2580

query I rowsort
SELECT - - 55 + - 9 + - 7
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT - - CASE + 71 WHEN 40 THEN 56 / - 97 END / CASE 57 + + 74 WHEN 15 THEN NULL ELSE 2 + + ( COUNT( * ) ) END + 43 * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT - - CASE + 71 WHEN 40 THEN 56 / - 97 END / CASE 57 + + 74 WHEN 15 THEN NULL ELSE 2 + + ( COUNT ( * ) ) END + 43 * 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT - CASE 71 WHEN 44 * - 83 + - COUNT( * ) * + 2 THEN NULL WHEN 45 + 17 THEN 35 END * 20 - - 14 * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2986
SELECT - CASE 71 WHEN 44 * - 83 + - COUNT ( * ) * + 2 THEN NULL WHEN 45 + 17 THEN 35 END * 20 - - 14 * + 70
----
NULL

query I rowsort
SELECT - 79 * + ( NULLIF ( + 4, 14 ) )
----
-316

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL - COUNT( - 41 ) * + ( 38 + + 93 ) AS col0
----
-131

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL - COUNT ( - 41 ) * + ( 38 + + 93 ) AS col0
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT DISTINCT - COUNT( * ) * + - 40 * + NULLIF ( 30, + 50 ) AS col2
----
1200

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT - COUNT ( * ) * + - 40 * + NULLIF ( 30, + 50 ) AS col2
----
1200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2990
SELECT - 34 + 42 DIV - - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-2990
SELECT - 34 + 42 / - - COUNT ( * )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT - 93 DIV 93
----
-1

skipif mysql # not compatible
query I rowsort label-2991
SELECT - 93 / 93
----
-1

query I rowsort
SELECT ALL + ( ( - - 21 ) ) * - 57
----
-1197

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2994
SELECT ALL + 9 col0, + ( COUNT( * ) ) + 39 AS col0
----
9
40

skipif mysql # not compatible
query II rowsort label-2994
SELECT ALL + 9 col0, + ( COUNT ( * ) ) + 39 AS col0
----
9
40

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

query I rowsort
SELECT ALL - 41 * + 1 + - 14
----
-55

query I rowsort
SELECT + 56 + - 21
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2998
SELECT + CASE 75 WHEN + + ( + 35 ) + - 70 THEN + MAX( ALL ( ( CAST( NULL AS SIGNED ) ) ) ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT + CASE 75 WHEN + + ( + 35 ) + - 70 THEN + MAX ( ALL ( ( CAST ( NULL AS INTEGER ) ) ) ) END col2
----
NULL

query I rowsort
SELECT + 47 * - 74 + + + 67 + + 38 * 93
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT COALESCE ( + + 97, + NULLIF ( 4, COUNT( ALL 85 ) ) + 15 * + 40 )
----
97

skipif mysql # not compatible
query I rowsort label-3000
SELECT COALESCE ( + + 97, + NULLIF ( 4, COUNT ( ALL 85 ) ) + 15 * + 40 )
----
97

query I rowsort
SELECT DISTINCT + COALESCE ( 32, - 89 * - 31 ) * + 82 + 4 * 9 AS col2
----
2660

query I rowsort
SELECT ALL 66 * + 27 + - 33 AS col2
----
1749

query I rowsort
SELECT NULLIF ( + + 57, + 41 * 37 ) AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3004
SELECT ALL + 14 * - ( - 10 ) + + CAST( - 62 AS SIGNED ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL + 14 * - ( - 10 ) + + CAST ( - 62 AS INTEGER ) AS col1
----
78

query I rowsort
SELECT ALL 78 * - 32 + + 76 * 54 col0
----
1608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3006
SELECT ALL COALESCE ( CASE + 98 WHEN COUNT( * ) + - 65 THEN NULL ELSE 76 END, + 92 DIV - COUNT( * ), + COUNT( * ) * + CAST( 27 AS SIGNED ) ) * - 37 + MIN( - 21 )
----
-2833

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL COALESCE ( CASE + 98 WHEN COUNT ( * ) + - 65 THEN NULL ELSE 76 END, + 92 / - COUNT ( * ), + COUNT ( * ) * + CAST ( 27 AS INTEGER ) ) * - 37 + MIN ( - 21 )
----
-2833

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3008
SELECT - 50 - CAST( - 18 AS SIGNED ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-3008
SELECT - 50 - CAST ( - 18 AS INTEGER ) AS col1
----
-32

query II rowsort
SELECT + 71 AS col0, 59 AS col1
----
71
59

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

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

query I rowsort
SELECT ALL 94 + - 37 AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3012
SELECT + 64 - MAX( - + CAST( + CAST( - 35 AS SIGNED ) AS SIGNED ) )
----
29

skipif mysql # not compatible
query I rowsort label-3012
SELECT + 64 - MAX ( - + CAST ( + CAST ( - 35 AS INTEGER ) AS INTEGER ) )
----
29

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

query I rowsort
SELECT ALL - 55 - + - 5 + + 82 AS col2
----
32

query I rowsort
SELECT + - 50 * 85
----
-4250

query I rowsort
SELECT ALL NULLIF ( 25, - 54 * - NULLIF ( - 3, 88 + + 62 ) ) * 58
----
1450

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3017
SELECT DISTINCT ( - 69 ) - - CAST( NULL AS DECIMAL ) + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT ( - 69 ) - - CAST ( NULL AS REAL ) + 12 AS col0
----
NULL

query I rowsort
SELECT ALL - 64 * 95 * - ( 14 ) * 57 AS col2
----
4851840

query II rowsort
SELECT DISTINCT + 42 AS col2, 77
----
42
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT + - 0 - - 69 + - MIN( ALL 18 )
----
51

skipif mysql # not compatible
query I rowsort label-3020
SELECT + - 0 - - 69 + - MIN ( ALL 18 )
----
51

query I rowsort
SELECT 18 * - + 61 * 58 AS col0
----
-63684

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT - 50 * - CASE 8 WHEN 72 * - 1 THEN 0 * + 51 WHEN COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3022
SELECT - 50 * - CASE 8 WHEN 72 * - 1 THEN 0 * + 51 WHEN COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 19 * 60 + ( - 36 ) AS col0
----
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT 65 + NULLIF ( + + 84, 94 ) * + MIN( 19 )
----
1661

skipif mysql # not compatible
query I rowsort label-3024
SELECT 65 + NULLIF ( + + 84, 94 ) * + MIN ( 19 )
----
1661

query II rowsort
SELECT DISTINCT - 67, - 94 AS col1
----
-67
-94

query II rowsort
SELECT ALL - 98, 96 AS col1
----
-98
96

query I rowsort
SELECT + 16 * - 89 AS col0
----
-1424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3028
SELECT ALL + CAST( NULL AS SIGNED ) * - CASE 55 WHEN 84 * 23 THEN + 50 / MIN( ALL - 4 ) WHEN 4 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL + CAST ( NULL AS INTEGER ) * - CASE 55 WHEN 84 * 23 THEN + 50 / MIN ( ALL - 4 ) WHEN 4 THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3029
SELECT 44 * - CAST( + 38 AS SIGNED ) * + 98
----
-163856

skipif mysql # not compatible
query I rowsort label-3029
SELECT 44 * - CAST ( + 38 AS INTEGER ) * + 98
----
-163856

query I rowsort
SELECT ( - 26 ) + - 31 AS col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3031
SELECT 65 * + COALESCE ( - 21, 68 ) * NULLIF ( + 12 DIV COUNT( * ), - COUNT( * ) * 81 ) + 1
----
-16379

skipif mysql # not compatible
query I rowsort label-3031
SELECT 65 * + COALESCE ( - 21, 68 ) * NULLIF ( + 12 / COUNT ( * ), - COUNT ( * ) * 81 ) + 1
----
-16379

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT ALL - 92 + 56 + 51 * - + CASE CASE ( - 11 ) WHEN + 42 THEN 17 + 61 END WHEN + ( 67 ) + - COUNT( * ) * + 94 THEN NULL ELSE + CASE 75 WHEN + 26 / + COUNT( * ) THEN 91 * - MIN( ALL 59 ) WHEN 86 * 27 + CASE 65 WHEN + 15 THEN 52 WHEN - 12 THEN + COUNT( * ) ELSE NULL END / COUNT( * ) THEN + 24 WHEN + COUNT( ALL NULLIF ( - 18, - 62 * 71 ) ) THEN 79 END + + 36 * 94 END * - 6 / - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL - 92 + 56 + 51 * - + CASE CASE ( - 11 ) WHEN + 42 THEN 17 + 61 END WHEN + ( 67 ) + - COUNT ( * ) * + 94 THEN NULL ELSE + CASE 75 WHEN + 26 / + COUNT ( * ) THEN 91 * - MIN ( ALL 59 ) WHEN 86 * 27 + CASE 65 WHEN + 15 THEN 52 WHEN - 12 THEN + COUNT ( * ) ELSE NULL END / COUNT ( * ) THEN + 24 WHEN + COUNT ( ALL NULLIF ( - 18, - 62 * 71 ) ) THEN 79 END + + 36 * 94 END * - 6 / - 83 AS col0
----
NULL

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

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

query I rowsort
SELECT 59 * + 34 AS col1
----
2006

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

query I rowsort
SELECT 69 - - 28 AS col0
----
97

query I rowsort
SELECT ALL - 93 * + 58 col0
----
-5394

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

skipif mysql # not compatible
query II rowsort label-3038
SELECT ALL + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2, 72 AS col1
----
NULL
72

query I rowsort
SELECT 78 + + - 35 * - + 21 * + 89 * 14 AS col1
----
915888

query I rowsort
SELECT 49 * + + 93 AS col2
----
4557

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3041
SELECT DISTINCT + 21 DIV + 51 * + 4 * + 98 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT + 21 / + 51 * + 4 * + 98 * COUNT ( * ) AS col1
----
0

query II rowsort
SELECT 59 + + 58 AS col0, 44
----
117
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3043
SELECT - - COUNT( * ) * - 67 + + 32 * - + CAST( 58 AS SIGNED ) * MAX( + 18 + CAST( NULL AS SIGNED ) ) + - 26 / 38 - - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3043
SELECT - - COUNT ( * ) * - 67 + + 32 * - + CAST ( 58 AS INTEGER ) * MAX ( + 18 + CAST ( NULL AS INTEGER ) ) + - 26 / 38 - - COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3044
SELECT 85 + + 62 * - 69 * - - CASE - COALESCE ( + CAST( NULL AS SIGNED ), - 12, 85 ) WHEN 12 - 16 THEN + 19 + COUNT( * ) * + 50 END * + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3044
SELECT 85 + + 62 * - 69 * - - CASE - COALESCE ( + CAST ( NULL AS INTEGER ), - 12, 85 ) WHEN 12 - 16 THEN + 19 + COUNT ( * ) * + 50 END * + 11 AS col2
----
NULL

query I rowsort
SELECT ALL - 59 * + 76 + + 74
----
-4410

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

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

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

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

query I rowsort
SELECT DISTINCT - 26 * - 58
----
1508

query I rowsort
SELECT - 98 + + + NULLIF ( + - 64, 44 ) AS col2
----
-162

query I rowsort
SELECT ALL + + ( 33 ) * - 5 * + + CASE + 73 WHEN 33 THEN NULL ELSE 82 END + - 22 col0
----
-13552

query I rowsort
SELECT 54 + COALESCE ( + + ( + 67 ), 62 ) - ( - 64 ) AS col2
----
185

query I rowsort
SELECT DISTINCT + 66 * + 77 AS col2
----
5082

query I rowsort
SELECT 0 + + 58 + - 28
----
30

query I rowsort
SELECT NULLIF ( - - 10, - - 40 + + 95 * 25 ) * + ( ( + ( + 84 ) ) ) AS col0
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT + 73 + - + COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3055
SELECT + 73 + - + COUNT ( * ) AS col0
----
72

query I rowsort
SELECT - COALESCE ( 36, + + 31 * + - ( 29 ) + ( 72 + - 10 ), ( 49 ) - 10 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3057
SELECT + MIN( + CAST( NULL AS SIGNED ) ) + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT + MIN ( + CAST ( NULL AS INTEGER ) ) + - 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3058
SELECT ALL + 83 DIV 1
----
83

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL + 83 / 1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3059
SELECT 10 DIV + 18
----
0

skipif mysql # not compatible
query I rowsort label-3059
SELECT 10 / + 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT - COUNT( * ) * + NULLIF ( - - 3, + MAX( DISTINCT 31 ) + 26 * - 59 )
----
-3

skipif mysql # not compatible
query I rowsort label-3060
SELECT - COUNT ( * ) * + NULLIF ( - - 3, + MAX ( DISTINCT 31 ) + 26 * - 59 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT ALL COUNT( - 24 ) + 23
----
24

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL COUNT ( - 24 ) + 23
----
24

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3063
SELECT ALL 97 DIV + 66 + + + 96 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL 97 / + 66 + + + 96 AS col0
----
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT MIN( - 98 ) col2
----
-98

skipif mysql # not compatible
query I rowsort label-3065
SELECT MIN ( - 98 ) col2
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 13 * 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 13 * 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3067
SELECT - CASE - NULLIF ( - COUNT( * ), 66 + + + ( 23 ) ) WHEN + COUNT( * ) THEN - 22 * + 80 ELSE 31 DIV 89 END * 52 + - 97 * - 1
----
91617

skipif mysql # not compatible
query I rowsort label-3067
SELECT - CASE - NULLIF ( - COUNT ( * ), 66 + + + ( 23 ) ) WHEN + COUNT ( * ) THEN - 22 * + 80 ELSE 31 / 89 END * 52 + - 97 * - 1
----
91617

query I rowsort
SELECT ALL 45 + + + 29 AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3069
SELECT 97 DIV + + 27 + + 42 DIV ( - - COUNT( * ) ) - 14 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3069
SELECT 97 / + + 27 + + 42 / ( - - COUNT ( * ) ) - 14 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT COUNT( DISTINCT - 36 ) * - + 18 + + 57 + - 65 * + MAX( ALL 1 + - 5 ) + 15
----
314

skipif mysql # not compatible
query I rowsort label-3070
SELECT COUNT ( DISTINCT - 36 ) * - + 18 + + 57 + - 65 * + MAX ( ALL 1 + - 5 ) + 15
----
314

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

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

query I rowsort
SELECT DISTINCT 56 + + 82 AS col1
----
138

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

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

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

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

query I rowsort
SELECT 79 + + 3
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT + MIN( + + 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-3076
SELECT + MIN ( + + 69 ) AS col2
----
69

query I rowsort
SELECT ALL 55 - - 91
----
146

query I rowsort
SELECT ( - - ( - 87 ) ) * + 52 + + 42
----
-4482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3079
SELECT ALL + - CAST( NULLIF ( - 35, - + 72 * 23 * - COUNT( * ) + + 75 ) AS SIGNED ) - - 38 * - 87 col1
----
-3271

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL + - CAST ( NULLIF ( - 35, - + 72 * 23 * - COUNT ( * ) + + 75 ) AS INTEGER ) - - 38 * - 87 col1
----
-3271

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

query I rowsort
SELECT DISTINCT + 61 - + 95
----
-34

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

query I rowsort
SELECT DISTINCT + 70 * - 88
----
-6160

query I rowsort
SELECT + + 47 * - 4
----
-188

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

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

query I rowsort
SELECT - - 84 * - - 61 AS col1
----
5124

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT ALL - 78 DIV + + 46 col2
----
-1

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - 78 / + + 46 col2
----
-1

query I rowsort
SELECT - - 73 - - 7 col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3089
SELECT - + 98 - + + 9 + - 94 DIV - + SUM( - 26 )
----
-110

skipif mysql # not compatible
query I rowsort label-3089
SELECT - + 98 - + + 9 + - 94 / - + SUM ( - 26 )
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT - MIN( + COALESCE ( - 68, + 52 ) )
----
68

skipif mysql # not compatible
query I rowsort label-3090
SELECT - MIN ( + COALESCE ( - 68, + 52 ) )
----
68

query II rowsort
SELECT ALL 2 AS col2, 65 * - 86
----
2
-5590

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT - 71 * + COUNT( ALL + + 47 ) * + 85 AS col1
----
-6035

skipif mysql # not compatible
query I rowsort label-3092
SELECT - 71 * + COUNT ( ALL + + 47 ) * + 85 AS col1
----
-6035

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT - - COUNT( * ) + - - 40
----
41

skipif mysql # not compatible
query I rowsort label-3093
SELECT - - COUNT ( * ) + - - 40
----
41

query I rowsort
SELECT DISTINCT + + 26 * - ( + 93 ) AS col2
----
-2418

query I rowsort
SELECT DISTINCT - + 63 + - - 75 AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT ALL - 21 + 15 + 21 DIV + 79
----
-6

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL - 21 + 15 + 21 / + 79
----
-6

query I rowsort
SELECT ALL 42 + + + 46
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT - COALESCE ( 19, - MIN( - COALESCE ( + 38, 76, - 75 ) ) + 4 ) - 94
----
-113

skipif mysql # not compatible
query I rowsort label-3098
SELECT - COALESCE ( 19, - MIN ( - COALESCE ( + 38, 76, - 75 ) ) + 4 ) - 94
----
-113

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

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

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

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

query I rowsort
SELECT DISTINCT 4 + 27 col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3102
SELECT - 10 + + COUNT( * ) - - 5 + + CASE + 8 WHEN + - 16 THEN - 67 * - 5 WHEN - 59 DIV 26 THEN NULL ELSE + 27 END DIV 61 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3102
SELECT - 10 + + COUNT ( * ) - - 5 + + CASE + 8 WHEN + - 16 THEN - 67 * - 5 WHEN - 59 / 26 THEN NULL ELSE + 27 END / 61 AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT - 27 DIV 11
----
-2

skipif mysql # not compatible
query I rowsort label-3103
SELECT - 27 / 11
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3104
SELECT ALL - 82 * + + CAST( NULL AS SIGNED ) + + ( - 90 ) * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL - 82 * + + CAST ( NULL AS INTEGER ) + + ( - 90 ) * 72
----
NULL

query I rowsort
SELECT ( 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL 48 * + COUNT( * ) + - - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL 48 * + COUNT ( * ) + - - COUNT ( * )
----
49

query I rowsort
SELECT DISTINCT + CASE + 77 WHEN - - 13 THEN - 6 * - ( + 66 ) * - 72 + + 44 * - 83 END AS col0
----
NULL

query II rowsort
SELECT ALL 92 * 91, 87 AS col0
----
8372
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3109
SELECT DISTINCT 21 DIV COALESCE ( - 70, - + 7 + + 17 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT 21 / COALESCE ( - 70, - + 7 + + 17 ) AS col0
----
0

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

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

query I rowsort
SELECT + COALESCE ( + + 39, + + 47 ) col1
----
39

query I rowsort
SELECT + 61 + + 95
----
156

onlyif mysql # DIV for integer division: 
query II rowsort label-3113
SELECT + 67 DIV 69 * + - ( - 45 ), + 66 AS col0
----
0
66

skipif mysql # not compatible
query II rowsort label-3113
SELECT + 67 / 69 * + - ( - 45 ), + 66 AS col0
----
0
66

query I rowsort
SELECT + NULLIF ( 58, 22 ) + + + 39 AS col1
----
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT DISTINCT + 57 * - 49 / + 92 * + CASE + + 68 WHEN - + CASE + 8 WHEN - NULLIF ( 17, + 70 ) * 97 THEN + 66 WHEN 59 THEN 27 ELSE NULL END * + CASE MIN( DISTINCT + 25 ) * ( + NULLIF ( + 6, - 22 * + COUNT( * ) ) / - COUNT( * ) + - COUNT( * ) * - 54 ) WHEN - 91 THEN NULL WHEN 41 THEN NULL ELSE - COUNT( * ) - - 33 END THEN COUNT( * ) WHEN 78 THEN 10 + + 45 * + 2 END * 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT + 57 * - 49 / + 92 * + CASE + + 68 WHEN - + CASE + 8 WHEN - NULLIF ( 17, + 70 ) * 97 THEN + 66 WHEN 59 THEN 27 ELSE NULL END * + CASE MIN ( DISTINCT + 25 ) * ( + NULLIF ( + 6, - 22 * + COUNT ( * ) ) / - COUNT ( * ) + - COUNT ( * ) * - 54 ) WHEN - 91 THEN NULL WHEN 41 THEN NULL ELSE - COUNT ( * ) - - 33 END THEN COUNT ( * ) WHEN 78 THEN 10 + + 45 * + 2 END * 34 AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( - 52, + + 23 )
----
-52

query I rowsort
SELECT + + 85 * - 50 + + + ( + 86 ) * 82 - + + 90 * + NULLIF ( 25, - 43 )
----
552

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT + + MAX( ALL + 19 ) + 34
----
53

skipif mysql # not compatible
query I rowsort label-3120
SELECT + + MAX ( ALL + 19 ) + 34
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3121
SELECT ALL + COUNT( * ), - 93 + + 80 AS col0
----
1
-13

skipif mysql # not compatible
query II rowsort label-3121
SELECT ALL + COUNT ( * ), - 93 + + 80 AS col0
----
1
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3122
SELECT + - CAST( + ( - - 82 ) AS SIGNED ) + + - 75 AS col1
----
-157

skipif mysql # not compatible
query I rowsort label-3122
SELECT + - CAST ( + ( - - 82 ) AS INTEGER ) + + - 75 AS col1
----
-157

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

skipif mysql # not compatible
query I rowsort label-3123
SELECT + - 77 / - ( - COUNT ( * ) ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT - 57 * - - 27 + COUNT( * ) + - 94 * + 19
----
-3324

skipif mysql # not compatible
query I rowsort label-3124
SELECT - 57 * - - 27 + COUNT ( * ) + - 94 * + 19
----
-3324

query II rowsort
SELECT ALL + ( 81 ) AS col1, - 81
----
81
-81

query I rowsort
SELECT - - 38 * + 99 AS col0
----
3762

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3127
SELECT + 46 + - 49, 23 + CAST( NULL AS SIGNED ) + + CAST( - 48 AS SIGNED ) * 93 AS col1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3127
SELECT + 46 + - 49, 23 + CAST ( NULL AS INTEGER ) + + CAST ( - 48 AS INTEGER ) * 93 AS col1
----
-3
NULL

query I rowsort
SELECT - 16 - - NULLIF ( 81, 74 * 61 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3129
SELECT ALL - + 36 * ( AVG ( + + 61 ) ) * - CAST( NULL AS SIGNED ) + - 5 + 18 / - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL - + 36 * ( AVG ( + + 61 ) ) * - CAST ( NULL AS INTEGER ) + - 5 + 18 / - 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3130
SELECT - COUNT( * ), 24 AS col0
----
-1
24

skipif mysql # not compatible
query II rowsort label-3130
SELECT - COUNT ( * ), 24 AS col0
----
-1
24

query I rowsort
SELECT + 73 * + - 18
----
-1314

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT - - SUM( - - 82 ) + + 87
----
169

skipif mysql # not compatible
query I rowsort label-3132
SELECT - - SUM ( - - 82 ) + + 87
----
169

onlyif mysql # aggregate syntax: 
query II rowsort label-3133
SELECT ALL + COUNT( * ), 82 + + ( - MIN( ALL + - 11 ) ) + + 80 - 85 AS col1
----
1
88

skipif mysql # not compatible
query II rowsort label-3133
SELECT ALL + COUNT ( * ), 82 + + ( - MIN ( ALL + - 11 ) ) + + 80 - 85 AS col1
----
1
88

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

skipif mysql # not compatible
query I rowsort label-3134
SELECT - COUNT ( * ) * - 7 + - 89 + - CAST ( NULL AS INTEGER ) + - + 22 + 20
----
NULL

query I rowsort
SELECT ALL + ( - 74 ) + - + 49 AS col1
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3136
SELECT - 28 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - 28 - + ( + - 38 ) + ( - 51 ) * - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3136
SELECT - 28 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - 28 - + ( + - 38 ) + ( - 51 ) * - 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ALL COUNT( * ) + - MIN( ALL - + 84 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL COUNT ( * ) + - MIN ( ALL - + 84 ) AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3138
SELECT ALL + CAST( - 94 AS SIGNED ) + + 68 + + 58 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL + CAST ( - 94 AS INTEGER ) + + 68 + + 58 AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3139
SELECT ALL - 33 + - NULLIF ( + CAST( + 73 AS SIGNED ), - 44 + + 80 ) DIV + 20 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL - 33 + - NULLIF ( + CAST ( + 73 AS INTEGER ), - 44 + + 80 ) / + 20 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL + 79 + + COUNT( * ) + - 24
----
56

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL + 79 + + COUNT ( * ) + - 24
----
56

query II rowsort
SELECT ALL ( - 90 ), - 73 AS col1
----
-90
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3142
SELECT - MAX( DISTINCT 45 ) + 10, CASE CAST( NULL AS SIGNED ) WHEN - + 68 THEN NULL WHEN - 9 THEN + 61 * 83 ELSE NULL END AS col1
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-3142
SELECT - MAX ( DISTINCT 45 ) + 10, CASE CAST ( NULL AS INTEGER ) WHEN - + 68 THEN NULL WHEN - 9 THEN + 61 * 83 ELSE NULL END AS col1
----
-35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT - 56 * + - MIN( 28 )
----
1568

skipif mysql # not compatible
query I rowsort label-3143
SELECT - 56 * + - MIN ( 28 )
----
1568

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT ALL 12 DIV - 32 * 84 * - 70 - - + 7
----
7

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL 12 / - 32 * 84 * - 70 - - + 7
----
7

query I rowsort
SELECT - 20 * + 49 * - 5
----
4900

query I rowsort
SELECT + 26 * 54 * - 84 AS col1
----
-117936

query I rowsort
SELECT 34 * + 45 + + 25 AS col0
----
1555

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3149
SELECT ALL 2 DIV + + 40 * 23 DIV - + COALESCE ( - COUNT( + - 11 ), + 55 * 49 ) * COUNT( 36 )
----
0

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL 2 / + + 40 * 23 / - + COALESCE ( - COUNT ( + - 11 ), + 55 * 49 ) * COUNT ( 36 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT COALESCE ( ( - 16 ), - 96, - 53 + 40 ) * - COUNT( * ) * 14 AS col0
----
224

skipif mysql # not compatible
query I rowsort label-3150
SELECT COALESCE ( ( - 16 ), - 96, - 53 + 40 ) * - COUNT ( * ) * 14 AS col0
----
224

query I rowsort
SELECT ( + - 16 ) + 98 + + - 12
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT + 8 * - COUNT( * ) * + 57
----
-456

skipif mysql # not compatible
query I rowsort label-3152
SELECT + 8 * - COUNT ( * ) * + 57
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT DISTINCT + COALESCE ( - COUNT( * ), + - 99, + COALESCE ( - - MAX( + + 5 ), - - 35 ) * - 18 ) * - ( + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT + COALESCE ( - COUNT ( * ), + - 99, + COALESCE ( - - MAX ( + + 5 ), - - 35 ) * - 18 ) * - ( + 55 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3154
SELECT - - 30 * + 16 * - CAST( COUNT( * ) AS SIGNED ) + 25 AS col0
----
-455

skipif mysql # not compatible
query I rowsort label-3154
SELECT - - 30 * + 16 * - CAST ( COUNT ( * ) AS INTEGER ) + 25 AS col0
----
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT ALL 74 + COUNT( + 72 )
----
75

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL 74 + COUNT ( + 72 )
----
75

query I rowsort
SELECT 85 * 95
----
8075

query II rowsort
SELECT ALL - - 17 + + + 80 AS col2, 90
----
97
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT ALL - 96 + NULLIF ( - - 72, - COUNT( * ) )
----
-24

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL - 96 + NULLIF ( - - 72, - COUNT ( * ) )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3159
SELECT ( ( NULLIF ( + + COALESCE ( + 9, 94 ), COUNT( * ) ) ) ) * CASE - COALESCE ( + 78, COUNT( * ) * - 34 ) * 21 + 21 WHEN CAST( NULL AS SIGNED ) THEN 26 WHEN 87 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT ( ( NULLIF ( + + COALESCE ( + 9, 94 ), COUNT ( * ) ) ) ) * CASE - COALESCE ( + 78, COUNT ( * ) * - 34 ) * 21 + 21 WHEN CAST ( NULL AS INTEGER ) THEN 26 WHEN 87 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT 39 + - 43 DIV 78 * 25 * - 58 + - 32 * + 33 AS col2
----
-1017

skipif mysql # not compatible
query I rowsort label-3160
SELECT 39 + - 43 / 78 * 25 * - 58 + - 32 * + 33 AS col2
----
-1017

onlyif mysql # DIV for integer division: 
query I rowsort label-3161
SELECT DISTINCT 59 + - - 59 DIV - + 96 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT 59 + - - 59 / - + 96 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT ALL MAX( + - ( - + 8 ) ) + + + 71 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL MAX ( + - ( - + 8 ) ) + + + 71 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT NULLIF ( - - MAX( 79 ), 57 )
----
79

skipif mysql # not compatible
query I rowsort label-3163
SELECT NULLIF ( - - MAX ( 79 ), 57 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT 88 - + 99 + - 99 + + COUNT( * )
----
-109

skipif mysql # not compatible
query I rowsort label-3164
SELECT 88 - + 99 + - 99 + + COUNT ( * )
----
-109

query I rowsort
SELECT 34 - + 66 + - - 68 * + 40 * 5 AS col1
----
13568

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT COUNT( * ) * - ( + 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT COUNT ( * ) * - ( + 55 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3167
SELECT COUNT( * ) + + - 99 DIV - CAST( - COALESCE ( + 53, + CAST( + 94 AS SIGNED ) + 74 ) AS SIGNED ) + 68
----
68

skipif mysql # not compatible
query I rowsort label-3167
SELECT COUNT ( * ) + + - 99 / - CAST ( - COALESCE ( + 53, + CAST ( + 94 AS INTEGER ) + 74 ) AS INTEGER ) + 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT ALL + 47 - + 62 * - 12 * - + ( + 62 ) * - + ( + + 11 ) - - CASE - MAX( DISTINCT 98 ) WHEN + 48 THEN - 29 * - 37 WHEN 97 * COALESCE ( + 61, - 90 * + COUNT( * ) ) THEN 1 * CASE - 13 WHEN 96 THEN 6 WHEN + ( COUNT( * ) ) / + MIN( COALESCE ( 2, - 53, 0 ) ) THEN + 25 ELSE NULL END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL + 47 - + 62 * - 12 * - + ( + 62 ) * - + ( + + 11 ) - - CASE - MAX ( DISTINCT 98 ) WHEN + 48 THEN - 29 * - 37 WHEN 97 * COALESCE ( + 61, - 90 * + COUNT ( * ) ) THEN 1 * CASE - 13 WHEN 96 THEN 6 WHEN + ( COUNT ( * ) ) / + MIN ( COALESCE ( 2, - 53, 0 ) ) THEN + 25 ELSE NULL END END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3169
SELECT 98 col0, - 24 * 31 * - + COALESCE ( 33, 19 * + COUNT( * ) * + 98 + + NULLIF ( + 96 + + COALESCE ( 22, + 6 - + 67 ), - CAST( NULL AS SIGNED ) * + 90 - 87 * 97 ) * NULLIF ( 92, + 8 ) - + 1 * + 4 ) * - 18
----
98
-441936

skipif mysql # not compatible
query II rowsort label-3169
SELECT 98 col0, - 24 * 31 * - + COALESCE ( 33, 19 * + COUNT ( * ) * + 98 + + NULLIF ( + 96 + + COALESCE ( 22, + 6 - + 67 ), - CAST ( NULL AS INTEGER ) * + 90 - 87 * 97 ) * NULLIF ( 92, + 8 ) - + 1 * + 4 ) * - 18
----
98
-441936

query I rowsort
SELECT 72 - - + ( - 1 )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3171
SELECT COUNT( * ) * + - 46 * 2 * - 87 * - 38 DIV COUNT( * )
----
-304152

skipif mysql # not compatible
query I rowsort label-3171
SELECT COUNT ( * ) * + - 46 * 2 * - 87 * - 38 / COUNT ( * )
----
-304152

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT ALL 39 - + 77 + + + 82 + - COUNT( * ) + + 48 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL 39 - + 77 + + + 82 + - COUNT ( * ) + + 48 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT 98 * MAX( ALL + 42 )
----
4116

skipif mysql # not compatible
query I rowsort label-3173
SELECT 98 * MAX ( ALL + 42 )
----
4116

onlyif mysql # DIV for integer division: 
query I rowsort label-3174
SELECT 72 + 4 DIV 14 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3174
SELECT 72 + 4 / 14 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT 7 * + COALESCE ( 61, CASE + - 55 WHEN + - COUNT( * ) THEN - 45 * - - 12 END )
----
427

skipif mysql # not compatible
query I rowsort label-3175
SELECT 7 * + COALESCE ( 61, CASE + - 55 WHEN + - COUNT ( * ) THEN - 45 * - - 12 END )
----
427

query II rowsort
SELECT DISTINCT 72, + 56 * + CASE - - 77 WHEN 3 THEN - 70 + - 15 END AS col1
----
72
NULL

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

skipif mysql # not compatible
query I rowsort label-3177
SELECT 97 * - COUNT ( * )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3178
SELECT ALL - 33 AS col1, ( - - 29 ) / 49 * + 22 + + CASE - 94 WHEN AVG ( 17 ) THEN NULL WHEN 86 THEN SUM( DISTINCT CAST( - 55 AS SIGNED ) ) ELSE NULL END
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-3178
SELECT ALL - 33 AS col1, ( - - 29 ) / 49 * + 22 + + CASE - 94 WHEN AVG ( 17 ) THEN NULL WHEN 86 THEN SUM ( DISTINCT CAST ( - 55 AS INTEGER ) ) ELSE NULL END
----
-33
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - - 75, 15 / - 69 + 4 - ( - - 38 ) * + 33 )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3180
SELECT + 51 DIV SUM( - 14 ) + - + 60 col1
----
-63

skipif mysql # not compatible
query I rowsort label-3180
SELECT + 51 / SUM ( - 14 ) + - + 60 col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT 31 * + CASE - + 41 WHEN - - 66 THEN - COUNT( * ) + 75 END * - COUNT( * ) * 49 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT 31 * + CASE - + 41 WHEN - - 66 THEN - COUNT ( * ) + 75 END * - COUNT ( * ) * 49 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL + COUNT( DISTINCT - - 99 ) + - 35 * - CASE + 49 WHEN + AVG ( + COALESCE ( 79, 10 ) ) THEN NULL WHEN + 43 THEN NULL WHEN 35 - 77 THEN MAX( 51 ) ELSE NULL END - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL + COUNT ( DISTINCT - - 99 ) + - 35 * - CASE + 49 WHEN + AVG ( + COALESCE ( 79, 10 ) ) THEN NULL WHEN + 43 THEN NULL WHEN 35 - 77 THEN MAX ( 51 ) ELSE NULL END - 32
----
NULL

query I rowsort
SELECT - 74 * 16 + - + 19 + + 62 AS col1
----
-1141

query I rowsort
SELECT ALL - 99 + 72
----
-27

query II rowsort
SELECT DISTINCT - - 7 col0, - 55 + 28
----
7
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT - 73 * 87 + COUNT( * )
----
-6350

skipif mysql # not compatible
query I rowsort label-3186
SELECT - 73 * 87 + COUNT ( * )
----
-6350

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT DISTINCT - 97 + + - 97 + MIN( DISTINCT - 53 ) * + + 40 col2
----
-2314

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT - 97 + + - 97 + MIN ( DISTINCT - 53 ) * + + 40 col2
----
-2314

query II rowsort
SELECT + 71 AS col0, 97 AS col2
----
71
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT ALL - + SUM( + 99 ) + 14 + + - 17
----
-102

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL - + SUM ( + 99 ) + 14 + + - 17
----
-102

query II rowsort
SELECT + 15 AS col2, - ( ( - + 82 ) ) + - 22
----
15
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT NULLIF ( - 30, COUNT( * ) ) * 97 * 25 AS col0
----
-72750

skipif mysql # not compatible
query I rowsort label-3192
SELECT NULLIF ( - 30, COUNT ( * ) ) * 97 * 25 AS col0
----
-72750

query I rowsort
SELECT + 14 - - 25 AS col0
----
39

query I rowsort
SELECT - 19 * - + 46 + + 17 * - - 10 * + 23 * - 17 * - 36 + + 72 AS col0
----
2393866

onlyif mysql # aggregate syntax: 
query II rowsort label-3195
SELECT COUNT( ALL + 60 ) * - 1 * - + COUNT( * ) AS col2, - 30 AS col0
----
1
-30

skipif mysql # not compatible
query II rowsort label-3195
SELECT COUNT ( ALL + 60 ) * - 1 * - + COUNT ( * ) AS col2, - 30 AS col0
----
1
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3196
SELECT CAST( + - 94 AS SIGNED ) + - - COALESCE ( - ( + - MAX( DISTINCT - 71 ) ), - 59 DIV 59 + - ( + CAST( + 17 AS SIGNED ) ) ) + COUNT( * ) * 11 col0
----
-154

skipif mysql # not compatible
query I rowsort label-3196
SELECT CAST ( + - 94 AS INTEGER ) + - - COALESCE ( - ( + - MAX ( DISTINCT - 71 ) ), - 59 / 59 + - ( + CAST ( + 17 AS INTEGER ) ) ) + COUNT ( * ) * 11 col0
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT CASE 76 WHEN 67 THEN MAX( + 62 ) - + COUNT( * ) END + 59 - + ( + 32 ) * ( 96 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3197
SELECT CASE 76 WHEN 67 THEN MAX ( + 62 ) - + COUNT ( * ) END + 59 - + ( + 32 ) * ( 96 ) AS col2
----
NULL

query I rowsort
SELECT ALL 39 - + - 95 - + - 0 AS col0
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3199
SELECT 69 + - + CASE - 37 WHEN + - ( + ( + 61 ) ) * + 97 THEN - 41 ELSE - 8 END + 27 DIV + COUNT( * ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-3199
SELECT 69 + - + CASE - 37 WHEN + - ( + ( + 61 ) ) * + 97 THEN - 41 ELSE - 8 END + 27 / + COUNT ( * ) AS col1
----
104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT DISTINCT COUNT( * ) * - + 41
----
-41

skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT COUNT ( * ) * - + 41
----
-41

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

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL SUM ( ALL 34 )
----
34

query I rowsort
SELECT + 85 + 41
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3204
SELECT ALL SUM( ALL + + 90 ) * MIN( - 52 ) * - CAST( NULL AS SIGNED ) * + + 39 / + 50 * - CAST( 18 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL SUM ( ALL + + 90 ) * MIN ( - 52 ) * - CAST ( NULL AS INTEGER ) * + + 39 / + 50 * - CAST ( 18 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 61 + + 68 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT - MAX( 30 ) * - 83 + + + 96 + - COUNT( * ) AS col2
----
2585

skipif mysql # not compatible
query I rowsort label-3206
SELECT - MAX ( 30 ) * - 83 + + + 96 + - COUNT ( * ) AS col2
----
2585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3207
SELECT + CAST( NULL AS SIGNED ) * - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3207
SELECT + CAST ( NULL AS INTEGER ) * - + 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3208
SELECT + - CAST( NULL AS SIGNED ) * + + ( 92 ) + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3208
SELECT + - CAST ( NULL AS INTEGER ) * + + ( 92 ) + + 76
----
NULL

query I rowsort
SELECT DISTINCT + CASE + 89 WHEN + - 73 THEN - 39 WHEN - ( 96 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT ALL + + 73 * 16 + - - COUNT( * ) + MIN( ALL - 90 ) + 17 + + 60 + 5
----
1161

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL + + 73 * 16 + - - COUNT ( * ) + MIN ( ALL - 90 ) + 17 + + 60 + 5
----
1161

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT DISTINCT + + 17 * - 74 - - 46 * + 13 + + 27 + COUNT( * ) AS col0
----
-632

skipif mysql # not compatible
query I rowsort label-3211
SELECT DISTINCT + + 17 * - 74 - - 46 * + 13 + + 27 + COUNT ( * ) AS col0
----
-632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3212
SELECT ALL ( + 77 ) * + CAST( + + 85 AS SIGNED ) + 77 + - - 2
----
6624

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL ( + 77 ) * + CAST ( + + 85 AS INTEGER ) + 77 + - - 2
----
6624

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ALL + 29 * + MIN( ALL 47 ) + - - 38 + - 23
----
1378

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL + 29 * + MIN ( ALL 47 ) + - - 38 + - 23
----
1378

query I rowsort
SELECT ( ( 82 ) )
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3215
SELECT - - ( + 27 ) * COUNT( * ) DIV - 94 * - + NULLIF ( 60, 5 * + 30 + 42 ) + COALESCE ( + MIN( ALL + 82 ) + + COUNT( * ), + 16 + - 51 DIV - 48, - ( 61 ) * - 54 + - 10, ( 67 ) ) * - COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-3215
SELECT - - ( + 27 ) * COUNT ( * ) / - 94 * - + NULLIF ( 60, 5 * + 30 + 42 ) + COALESCE ( + MIN ( ALL + 82 ) + + COUNT ( * ), + 16 + - 51 / - 48, - ( 61 ) * - 54 + - 10, ( 67 ) ) * - COUNT ( * ) AS col2
----
-83

query I rowsort
SELECT + + 88 * + 98
----
8624

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT + ( COALESCE ( COUNT( * ), + + 1 * - - 18 * + + 52 + 93 + + 59 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3217
SELECT + ( COALESCE ( COUNT ( * ), + + 1 * - - 18 * + + 52 + 93 + + 59 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT DISTINCT + + COUNT( * ) * - + CASE WHEN NULL IS NULL THEN - COUNT( * ) ELSE NULL END * - + 95 * 92 * - - ( COUNT( + 6 ) ) - CASE 15 WHEN + 38 THEN - MIN( 95 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT + + COUNT ( * ) * - + CASE WHEN NULL IS NULL THEN - COUNT ( * ) ELSE NULL END * - + 95 * 92 * - - ( COUNT ( + 6 ) ) - CASE 15 WHEN + 38 THEN - MIN ( 95 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 3 col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3220
SELECT ALL CASE + 14 WHEN - - 57 * COUNT( * ) THEN - 91 * - 47 * + 5 * + - 87 / + 4 ELSE 8 END * - CAST( NULL AS DECIMAL ) - + MIN( 45 + 15 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL CASE + 14 WHEN - - 57 * COUNT ( * ) THEN - 91 * - 47 * + 5 * + - 87 / + 4 ELSE 8 END * - CAST ( NULL AS REAL ) - + MIN ( 45 + 15 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 86 AS col1
----
86

query I rowsort
SELECT + + 63 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT CASE - COUNT( * ) WHEN 67 THEN - + 66 WHEN + AVG ( ALL + 78 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT CASE - COUNT ( * ) WHEN 67 THEN - + 66 WHEN + AVG ( ALL + 78 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT ALL NULLIF ( + COUNT( * ), - 3 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL NULLIF ( + COUNT ( * ), - 3 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT COUNT( ALL - COALESCE ( - 57, - + 0 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3225
SELECT COUNT ( ALL - COALESCE ( - 57, - + 0 ) ) AS col1
----
1

query I rowsort
SELECT ALL + 75 * - 70
----
-5250

query I rowsort
SELECT + NULLIF ( + 35, + + 92 ) * + 75 * 45 col0
----
118125

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT ALL - 84 * + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL - 84 * + COUNT ( * )
----
-84

query I rowsort
SELECT ALL + 12 * + 86 col1
----
1032

query I rowsort
SELECT DISTINCT - 58 + - 62 col1
----
-120

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3231
SELECT - COALESCE ( + 29, - + 2 * + 93 + - + CAST( - + ( + + ( + 57 ) ) AS SIGNED ) - - NULLIF ( + - 96, + CAST( NULL AS SIGNED ) * 5 ) - + 51 DIV 3 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-3231
SELECT - COALESCE ( + 29, - + 2 * + 93 + - + CAST ( - + ( + + ( + 57 ) ) AS INTEGER ) - - NULLIF ( + - 96, + CAST ( NULL AS INTEGER ) * 5 ) - + 51 / 3 ) AS col2
----
-29

query I rowsort
SELECT ALL 79 + + 18
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT DISTINCT COALESCE ( + ( - - COUNT( * ) ), - + 45, 45 ) + - 47
----
-46

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT COALESCE ( + ( - - COUNT ( * ) ), - + 45, 45 ) + - 47
----
-46

query I rowsort
SELECT + 44 - COALESCE ( + 97, 77 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT + 61 * COALESCE ( 94, COUNT( * ), + + 70 + - ( - - 54 ) ) AS col1
----
5734

skipif mysql # not compatible
query I rowsort label-3235
SELECT + 61 * COALESCE ( 94, COUNT ( * ), + + 70 + - ( - - 54 ) ) AS col1
----
5734

query I rowsort
SELECT ALL 43 + + 24 AS col0
----
67

query I rowsort
SELECT + 25 * 48 * - + 1
----
-1200

query I rowsort
SELECT DISTINCT ( - 80 ) + + - 0
----
-80

query I rowsort
SELECT DISTINCT NULLIF ( 13, 65 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT ALL COALESCE ( - SUM( - 75 ), COUNT( * ) + + MAX( ALL + 49 ) * CAST( 72 AS SIGNED ) * - 22, + 13 * 5 ) * + 27
----
2025

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL COALESCE ( - SUM ( - 75 ), COUNT ( * ) + + MAX ( ALL + 49 ) * CAST ( 72 AS INTEGER ) * - 22, + 13 * 5 ) * + 27
----
2025

query I rowsort
SELECT ( + 83 ) col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT DISTINCT - - 30 / - ( 94 ) + 68 - + 43 * - - 18 + + COUNT( * ) * CASE - + ( - COUNT( * ) ) WHEN + 64 THEN + 78 * ( 98 ) WHEN 54 + + 17 THEN NULL ELSE NULL END + - COUNT( 11 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - - 30 / - ( 94 ) + 68 - + 43 * - - 18 + + COUNT ( * ) * CASE - + ( - COUNT ( * ) ) WHEN + 64 THEN + 78 * ( 98 ) WHEN 54 + + 17 THEN NULL ELSE NULL END + - COUNT ( 11 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT ALL + 39 * - 79 * - ( + SUM( DISTINCT + + 93 ) ) + - COUNT( * ) - + 7 * + - 92 * + - 87 AS col0
----
230504

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL + 39 * - 79 * - ( + SUM ( DISTINCT + + 93 ) ) + - COUNT ( * ) - + 7 * + - 92 * + - 87 AS col0
----
230504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3244
SELECT COUNT( * ) / + SUM( + - ( - CAST( - + 23 AS SIGNED ) ) ) * CASE + 73 WHEN + + CAST( NULL AS SIGNED ) THEN 95 ELSE NULL END + + COALESCE ( - AVG ( - 18 ), COUNT( * ) ) / 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3244
SELECT COUNT ( * ) / + SUM ( + - ( - CAST ( - + 23 AS INTEGER ) ) ) * CASE + 73 WHEN + + CAST ( NULL AS INTEGER ) THEN 95 ELSE NULL END + + COALESCE ( - AVG ( - 18 ), COUNT ( * ) ) / 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3245
SELECT 73, - ( + - 95 ) + 87 + + COUNT( * ) DIV 18 + - + 33 * + + 46 AS col1
----
73
-1336

skipif mysql # not compatible
query II rowsort label-3245
SELECT 73, - ( + - 95 ) + 87 + + COUNT ( * ) / 18 + - + 33 * + + 46 AS col1
----
73
-1336

query I rowsort
SELECT + ( - - 10 ) + - 9 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT - - MIN( DISTINCT - 61 ) * - - 20 + 72 + + 14 * - 93 + - 96
----
-2546

skipif mysql # not compatible
query I rowsort label-3247
SELECT - - MIN ( DISTINCT - 61 ) * - - 20 + 72 + + 14 * - 93 + - 96
----
-2546

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT + - 76 * 48 DIV + - 57
----
64

skipif mysql # not compatible
query I rowsort label-3248
SELECT + - 76 * 48 / + - 57
----
64

query I rowsort
SELECT - 40 + + 22 - - 77 + + 46 AS col1
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3250
SELECT - + COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT - + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT ALL + + COUNT( * ) * - 28
----
-28

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL + + COUNT ( * ) * - 28
----
-28

query I rowsort
SELECT - - 26 + + 98
----
124

query I rowsort
SELECT + - 15 * + 37 AS col0
----
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT - 72 * COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-3254
SELECT - 72 * COUNT ( * )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3255
SELECT + COUNT( 95 ) * - 84 * + + 58 / 23 * + - 57 + + CASE CAST( NULL AS SIGNED ) WHEN - 6 * 19 + + 14 - + 27 THEN 11 WHEN 99 * - 60 THEN NULL END + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3255
SELECT + COUNT ( 95 ) * - 84 * + + 58 / 23 * + - 57 + + CASE CAST ( NULL AS INTEGER ) WHEN - 6 * 19 + + 14 - + 27 THEN 11 WHEN 99 * - 60 THEN NULL END + - 6
----
NULL

query II rowsort
SELECT + 42 AS col0, 99 AS col2
----
42
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3257
SELECT COALESCE ( - NULLIF ( - ( CASE - 12 WHEN + - 50 - CASE + + 85 WHEN + 86 THEN NULL WHEN + - 30 THEN + + CAST( + 72 AS DECIMAL ) + - MAX( 66 + + 32 * 12 ) * + 66 END * 79 THEN + 18 * - 2 ELSE NULL END ), + 25 * - COUNT( * ) ), CASE 27 WHEN 78 THEN NULL WHEN 89 THEN COALESCE ( COALESCE ( - 23, - 42 + + 72 ), - 95 * - COUNT( * ), 58 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3257
SELECT COALESCE ( - NULLIF ( - ( CASE - 12 WHEN + - 50 - CASE + + 85 WHEN + 86 THEN NULL WHEN + - 30 THEN + + CAST ( + 72 AS REAL ) + - MAX ( 66 + + 32 * 12 ) * + 66 END * 79 THEN + 18 * - 2 ELSE NULL END ), + 25 * - COUNT ( * ) ), CASE 27 WHEN 78 THEN NULL WHEN 89 THEN COALESCE ( COALESCE ( - 23, - 42 + + 72 ), - 95 * - COUNT ( * ), 58 ) END )
----
NULL

query I rowsort
SELECT - ( + 7 ) * 20 * 20
----
-2800

query I rowsort
SELECT DISTINCT 62 * + + 96 AS col2
----
5952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3260
SELECT ALL 65 * 91 + - - NULLIF ( + - 88, + 13 ) - - 83 DIV 23 DIV 66 - COUNT( * ) AS col2
----
5826

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL 65 * 91 + - - NULLIF ( + - 88, + 13 ) - - 83 / 23 / 66 - COUNT ( * ) AS col2
----
5826

query II rowsort
SELECT - 64, - 60 - - 53 AS col0
----
-64
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3262
SELECT 7 + 47 + 29 * - COUNT( * ) + - 40 * + 12 * - 8 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT 7 + 47 + 29 * - COUNT ( * ) + - 40 * + 12 * - 8 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT ALL - 53 DIV + 47 col1
----
-1

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL - 53 / + 47 col1
----
-1

query II rowsort
SELECT - 18 AS col2, + CASE ( + 64 ) WHEN + - 57 THEN + ( 69 ) WHEN + + 90 / - 57 THEN NULL WHEN - - 34 THEN NULL ELSE NULL END col0
----
-18
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT 13 DIV + 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3265
SELECT 13 / + 47 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT COUNT( * ) + - + 24 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3266
SELECT COUNT ( * ) + - + 24 AS col2
----
-23

query I rowsort
SELECT ALL + 81 + 5 + + 86
----
172

query I rowsort
SELECT 94 + 27 + 30 col1
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3269
SELECT 97 * - 48 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT 97 * - 48 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 3 + + 38 col2
----
41

query II rowsort
SELECT 37 AS col0, 81 + + 35 col2
----
37
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT ALL + 82 + + 99 * 23 - + COUNT( * ) + COUNT( * )
----
2359

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL + 82 + + 99 * 23 - + COUNT ( * ) + COUNT ( * )
----
2359

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT NULLIF ( + 72, - - SUM( - - 69 ) / 21 - - 85 ) + - 53 - 67 + 11 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3273
SELECT NULLIF ( + 72, - - SUM ( - - 69 ) / 21 - - 85 ) + - 53 - 67 + 11 AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3274
SELECT - COALESCE ( - - NULLIF ( + CAST( - + 64 AS SIGNED ), + + 63 - + - 35 ), + + MAX( + NULLIF ( + - 90, 63 ) ), 81 * + 86 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3274
SELECT - COALESCE ( - - NULLIF ( + CAST ( - + 64 AS INTEGER ), + + 63 - + - 35 ), + + MAX ( + NULLIF ( + - 90, 63 ) ), 81 * + 86 ) AS col0
----
64

query II rowsort
SELECT 29 + + - 10, 79 AS col0
----
19
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3276
SELECT 31 AS col1, - 42 * + CAST( NULL AS SIGNED ) AS col0
----
31
NULL

skipif mysql # not compatible
query II rowsort label-3276
SELECT 31 AS col1, - 42 * + CAST ( NULL AS INTEGER ) AS col0
----
31
NULL

query I rowsort
SELECT - 75 * - 47 AS col1
----
3525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3278
SELECT COUNT( ALL - - 29 ) * - 3 * + 41 + + 32 - + 59 * + SUM( ALL + 63 ) + - CAST( NULL AS SIGNED ) * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT COUNT ( ALL - - 29 ) * - 3 * + 41 + + 32 - + 59 * + SUM ( ALL + 63 ) + - CAST ( NULL AS INTEGER ) * - 12
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3279
SELECT + COUNT( * ) col2, + COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-3279
SELECT + COUNT ( * ) col2, + COUNT ( * ) AS col0
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3280
SELECT 66 * + 90 + 98 + - - 39 - - + SUM( DISTINCT - 26 ) + - 49 - - COUNT( * ) + - 62 DIV CASE + - MAX( DISTINCT - 65 ) WHEN - 97 + + 44 THEN NULL ELSE 96 END + - 84 * MAX( NULLIF ( + 16, - 24 ) ) AS col1
----
4659

skipif mysql # not compatible
query I rowsort label-3280
SELECT 66 * + 90 + 98 + - - 39 - - + SUM ( DISTINCT - 26 ) + - 49 - - COUNT ( * ) + - 62 / CASE + - MAX ( DISTINCT - 65 ) WHEN - 97 + + 44 THEN NULL ELSE 96 END + - 84 * MAX ( NULLIF ( + 16, - 24 ) ) AS col1
----
4659

query II rowsort
SELECT 43 AS col2, - 74
----
43
-74

query I rowsort
SELECT ALL - ( - 56 ) col0
----
56

query II rowsort
SELECT ALL 41 * + 49 AS col1, - 19 + - 65
----
2009
-84

query I rowsort
SELECT NULLIF ( + - 61, - 56 ) col0
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3285
SELECT ALL - 98 AS col2, + 3 + + - COUNT( + 78 ) + - 67 * + - 83 + - 15 AS col1
----
-98
5548

skipif mysql # not compatible
query II rowsort label-3285
SELECT ALL - 98 AS col2, + 3 + + - COUNT ( + 78 ) + - 67 * + - 83 + - 15 AS col1
----
-98
5548

query II rowsort
SELECT DISTINCT ( + 3 ) * 87 + - - 46 AS col2, + NULLIF ( 92, + 83 ) col0
----
307
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT ALL - CAST( + CASE - + 97 WHEN + 62 THEN NULL WHEN - - 41 THEN + - 38 WHEN - 18 * 73 THEN 76 * - - 35 + + - AVG ( 29 ) ELSE 83 + 94 END AS SIGNED ) AS col1
----
-177

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - CAST ( + CASE - + 97 WHEN + 62 THEN NULL WHEN - - 41 THEN + - 38 WHEN - 18 * 73 THEN 76 * - - 35 + + - AVG ( 29 ) ELSE 83 + 94 END AS INTEGER ) AS col1
----
-177

onlyif mysql # aggregate syntax: 
query II rowsort label-3288
SELECT + + 31, + 13 + - COUNT( ALL - - 25 ) AS col0
----
31
12

skipif mysql # not compatible
query II rowsort label-3288
SELECT + + 31, + 13 + - COUNT ( ALL - - 25 ) AS col0
----
31
12

query I rowsort
SELECT DISTINCT 26 * + 60 col2
----
1560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3290
SELECT 54 * + + 86 + CAST( - CASE + 96 WHEN + ( - COUNT( * ) ) * 54 THEN 41 - 29 END AS SIGNED ) + 52 - + 86 * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT 54 * + + 86 + CAST ( - CASE + 96 WHEN + ( - COUNT ( * ) ) * 54 THEN 41 - 29 END AS INTEGER ) + 52 - + 86 * 88
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 1, - 69 * + 72 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3292
SELECT CAST( 62 AS SIGNED ) * - - 79
----
4898

skipif mysql # not compatible
query I rowsort label-3292
SELECT CAST ( 62 AS INTEGER ) * - - 79
----
4898

query II rowsort
SELECT DISTINCT 21 + + - 23 AS col0, 4 + - 21
----
-2
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL 80 + NULLIF ( 15, 28 ) * - COUNT( * ) + + CASE + + 86 WHEN COUNT( + 97 ) + - 13 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE - 61 + 92 END AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL 80 + NULLIF ( 15, 28 ) * - COUNT ( * ) + + CASE + + 86 WHEN COUNT ( + 97 ) + - 13 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE - 61 + 92 END AS col2
----
96

query I rowsort
SELECT 97 - + 22
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3296
SELECT MAX( DISTINCT - + ( + + 60 ) ) + + + 86 - + - 56 DIV + 59 + - - COALESCE ( + + ( ( - 10 ) ), COUNT( * ), - 65 ) * + COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3296
SELECT MAX ( DISTINCT - + ( + + 60 ) ) + + + 86 - + - 56 / + 59 + - - COALESCE ( + + ( ( - 10 ) ), COUNT ( * ), - 65 ) * + COUNT ( * ) AS col2
----
16

query I rowsort
SELECT DISTINCT 9 * + - 33
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3298
SELECT ( - - CASE + 25 WHEN + + 35 THEN - 71 WHEN CAST( + - 57 AS SIGNED ) / 69 + 95 + ( CAST( NULL AS SIGNED ) ) THEN NULL END ) + + + 78 * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT ( - - CASE + 25 WHEN + + 35 THEN - 71 WHEN CAST ( + - 57 AS INTEGER ) / 69 + 95 + ( CAST ( NULL AS INTEGER ) ) THEN NULL END ) + + + 78 * + 22
----
NULL

query II rowsort
SELECT ALL 8 * + 60, - 16 AS col0
----
480
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ALL COUNT( DISTINCT - 23 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL COUNT ( DISTINCT - 23 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3301
SELECT 32 * + + COALESCE ( COUNT( * ), - 30, 98 DIV 3 + + 51 * - 92 * 7 - - 19 + - COUNT( * ), + + 34 )
----
32

skipif mysql # not compatible
query I rowsort label-3301
SELECT 32 * + + COALESCE ( COUNT ( * ), - 30, 98 / 3 + + 51 * - 92 * 7 - - 19 + - COUNT ( * ), + + 34 )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3302
SELECT 85 - COUNT( * ) * - + CAST( + COUNT( * ) AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-3302
SELECT 85 - COUNT ( * ) * - + CAST ( + COUNT ( * ) AS INTEGER )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT - 59 * CAST( 56 AS SIGNED ) + - 49
----
-3353

skipif mysql # not compatible
query I rowsort label-3303
SELECT - 59 * CAST ( 56 AS INTEGER ) + - 49
----
-3353

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3304
SELECT 43 * 95, + 50 - + 19 + + 21 + - - CAST( NULL AS SIGNED ) col2
----
4085
NULL

skipif mysql # not compatible
query II rowsort label-3304
SELECT 43 * 95, + 50 - + 19 + + 21 + - - CAST ( NULL AS INTEGER ) col2
----
4085
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3305
SELECT ( - + 22 ) DIV + + MIN( DISTINCT + 74 ) * NULLIF ( + 81, 14 ) + - COALESCE ( - 39, - 67 ) AS col0, 46 * 61 + - 53
----
39
2753

skipif mysql # not compatible
query II rowsort label-3305
SELECT ( - + 22 ) / + + MIN ( DISTINCT + 74 ) * NULLIF ( + 81, 14 ) + - COALESCE ( - 39, - 67 ) AS col0, 46 * 61 + - 53
----
39
2753

query I rowsort
SELECT DISTINCT + 89 * 68 + - + 70
----
5982

query II rowsort
SELECT - ( - 81 ) AS col1, + 30 * - 99
----
81
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT ALL NULLIF ( COUNT( * ), 30 )
----
1

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL NULLIF ( COUNT ( * ), 30 )
----
1

query I rowsort
SELECT ALL + CASE - 85 WHEN 21 THEN NULL ELSE - 5 END AS col1
----
-5

query I rowsort
SELECT ( + 83 ) * - + 15 AS col1
----
-1245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3311
SELECT ALL + + MAX( ALL 79 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + + MAX ( ALL 79 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3312
SELECT 54 DIV + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3312
SELECT 54 / + 61 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3313
SELECT + 9 * + CAST( NULL AS DECIMAL ) * + 11 * - + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3313
SELECT + 9 * + CAST ( NULL AS REAL ) * + 11 * - + 61
----
NULL

query I rowsort
SELECT ALL - - NULLIF ( 41, + - 39 + 9 ) * + 66 AS col1
----
2706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3315
SELECT - CASE - 30 WHEN - 99 THEN 84 ELSE 76 * - - 57 END DIV COALESCE ( + 50, 93 + - ( - 76 ) * COALESCE ( ( - 71 ), - 75 ), 44 DIV - ( 97 * + COALESCE ( - 84, + NULLIF ( + CAST( NULL AS SIGNED ), - 33 ) * - CASE MAX( + 72 ) WHEN 8 DIV + ( 81 ) THEN + 73 * + AVG ( DISTINCT 75 ) END + 50, CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) ) ) ) - ( - COUNT( * ) - CAST( + AVG ( ALL + ( - 67 ) ) AS SIGNED ) ) DIV 3 + + 72 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-3315
SELECT - CASE - 30 WHEN - 99 THEN 84 ELSE 76 * - - 57 END / COALESCE ( + 50, 93 + - ( - 76 ) * COALESCE ( ( - 71 ), - 75 ), 44 / - ( 97 * + COALESCE ( - 84, + NULLIF ( + CAST ( NULL AS INTEGER ), - 33 ) * - CASE MAX ( + 72 ) WHEN 8 / + ( 81 ) THEN + 73 * + AVG ( DISTINCT 75 ) END + 50, CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) ) ) ) - ( - COUNT ( * ) - CAST ( + AVG ( ALL + ( - 67 ) ) AS INTEGER ) ) / 3 + + 72 AS col0
----
-36

query I rowsort
SELECT - 75 * 13 + + 65 AS col0
----
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT 92 * COUNT( * ) * - 41 * 4 AS col2
----
-15088

skipif mysql # not compatible
query I rowsort label-3317
SELECT 92 * COUNT ( * ) * - 41 * 4 AS col2
----
-15088

query I rowsort
SELECT + ( 87 ) + - ( + 40 ) * - 99 + 51 * - 33 AS col1
----
2364

query II rowsort
SELECT + 98 + + - 93 AS col1, - 7 * 35
----
5
-245

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT + + 7 DIV 85 - + 87 + + + ( - - 93 ) * 98 - - - 45 DIV - ( - 17 )
----
9025

skipif mysql # not compatible
query I rowsort label-3320
SELECT + + 7 / 85 - + 87 + + + ( - - 93 ) * 98 - - - 45 / - ( - 17 )
----
9025

query I rowsort
SELECT ALL - NULLIF ( 93, + + 64 )
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-3322
SELECT ALL - 46 col0, + COUNT( * ) AS col1
----
-46
1

skipif mysql # not compatible
query II rowsort label-3322
SELECT ALL - 46 col0, + COUNT ( * ) AS col1
----
-46
1

query I rowsort
SELECT DISTINCT 57 * + + 70 + + 21 AS col2
----
4011

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT ALL + 9 * + + 78 + COUNT( * ) AS col1
----
703

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL + 9 * + + 78 + COUNT ( * ) AS col1
----
703

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT + CASE - 22 WHEN + COUNT( * ) THEN - 90 + + 53 ELSE 38 END + ( - + NULLIF ( + 48, - 3 - + 23 ) ) * - 32
----
1574

skipif mysql # not compatible
query I rowsort label-3325
SELECT + CASE - 22 WHEN + COUNT ( * ) THEN - 90 + + 53 ELSE 38 END + ( - + NULLIF ( + 48, - 3 - + 23 ) ) * - 32
----
1574

query I rowsort
SELECT ALL 74 * - - 43
----
3182

onlyif mysql # aggregate syntax: 
query II rowsort label-3327
SELECT + 2 AS col0, + SUM( + 89 ) AS col0
----
2
89

skipif mysql # not compatible
query II rowsort label-3327
SELECT + 2 AS col0, + SUM ( + 89 ) AS col0
----
2
89

query I rowsort
SELECT + 45 + - 78 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT DISTINCT 68 + + NULLIF ( + 75, COUNT( * ) - + 42 ) + COUNT( * ) * 79 * 51
----
4172

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT 68 + + NULLIF ( + 75, COUNT ( * ) - + 42 ) + COUNT ( * ) * 79 * 51
----
4172

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL COUNT( * ) + - 31 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL COUNT ( * ) + - 31 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT + COALESCE ( - 28, COUNT( * ) ) * - ( - 50 ) AS col1
----
-1400

skipif mysql # not compatible
query I rowsort label-3331
SELECT + COALESCE ( - 28, COUNT ( * ) ) * - ( - 50 ) AS col1
----
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT + NULLIF ( - + NULLIF ( - 32, + ( + - 18 ) * + COUNT( * ) ), 48 )
----
32

skipif mysql # not compatible
query I rowsort label-3332
SELECT + NULLIF ( - + NULLIF ( - 32, + ( + - 18 ) * + COUNT ( * ) ), 48 )
----
32

query I rowsort
SELECT DISTINCT 32 + 49 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT ALL MAX( DISTINCT - 80 ) - + + 13 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL MAX ( DISTINCT - 80 ) - + + 13 AS col1
----
-93

query I rowsort
SELECT + 2 * - + NULLIF ( + + 35, + NULLIF ( + 19, 61 ) )
----
-70

query I rowsort
SELECT DISTINCT - 9 * + - 93 AS col0
----
837

query I rowsort
SELECT - 31 * - 82 AS col1
----
2542

query I rowsort
SELECT + 43 * - 17
----
-731

query II rowsort
SELECT 61 col0, + 89 + + 28 AS col2
----
61
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3340
SELECT ALL 73 - + CAST( NULL AS SIGNED ) + 6 + - COUNT( * ) + - 48 * - - 46 * + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL 73 - + CAST ( NULL AS INTEGER ) + 6 + - COUNT ( * ) + - 48 * - - 46 * + 19 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT + - COALESCE ( - 71, + 60 * COUNT( * ) ) + - 95
----
-24

skipif mysql # not compatible
query I rowsort label-3341
SELECT + - COALESCE ( - 71, + 60 * COUNT ( * ) ) + - 95
----
-24

query I rowsort
SELECT + + 71 - - - 3
----
68

query I rowsort
SELECT - + 66 * 10 AS col0
----
-660

query I rowsort
SELECT ALL - - ( 90 ) * - 42
----
-3780

query II rowsort
SELECT ALL + 4, + 3 AS col1
----
4
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3346
SELECT DISTINCT 79 AS col2, 33 + + + 23 * NULLIF ( - 1, + SUM( + 90 ) ) AS col1
----
79
10

skipif mysql # not compatible
query II rowsort label-3346
SELECT DISTINCT 79 AS col2, 33 + + + 23 * NULLIF ( - 1, + SUM ( + 90 ) ) AS col1
----
79
10

query I rowsort
SELECT - + 14 + - 1
----
-15

query I rowsort
SELECT - - 39 + - 7
----
32

query II rowsort
SELECT DISTINCT + 20, - 92 * 69 AS col2
----
20
-6348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3350
SELECT - + 64 * - 14 * + ( - CAST( SUM( DISTINCT - - 68 ) AS SIGNED ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT - + 64 * - 14 * + ( - CAST ( SUM ( DISTINCT - - 68 ) AS INTEGER ) ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3351
SELECT + + 53 col0, - 70 DIV 91
----
53
0

skipif mysql # not compatible
query II rowsort label-3351
SELECT + + 53 col0, - 70 / 91
----
53
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3352
SELECT - - MIN( - 26 ) DIV 6 col2
----
-4

skipif mysql # not compatible
query I rowsort label-3352
SELECT - - MIN ( - 26 ) / 6 col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL + MIN( + - 74 ) * - + 32 + CASE + 2 WHEN + + 35 THEN + + 75 * + + 97 * COUNT( * ) + - + 8 ELSE 48 END
----
2416

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL + MIN ( + - 74 ) * - + 32 + CASE + 2 WHEN + + 35 THEN + + 75 * + + 97 * COUNT ( * ) + - + 8 ELSE 48 END
----
2416

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT DISTINCT - 85 * - - MAX( - + 10 ) AS col1
----
850

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT - 85 * - - MAX ( - + 10 ) AS col1
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT + COUNT( DISTINCT 52 )
----
1

skipif mysql # not compatible
query I rowsort label-3355
SELECT + COUNT ( DISTINCT 52 )
----
1

query I rowsort
SELECT ALL + 68 col2
----
68

query I rowsort
SELECT - 45 * + - 88 AS col1
----
3960

query II rowsort
SELECT ( - - 82 ), + 61 + 49 + - 10 AS col2
----
82
100

query I rowsort
SELECT + 15 * - 87 * ( 7 ) AS col0
----
-9135

query II rowsort
SELECT DISTINCT + NULLIF ( - - 16, - + 20 - - 93 ), + ( - 14 ) col0
----
16
-14

query I rowsort
SELECT DISTINCT + COALESCE ( 60, + - 78 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT COALESCE ( - + COUNT( * ), - COUNT( ALL NULLIF ( 17, + 64 + + + 24 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3362
SELECT COALESCE ( - + COUNT ( * ), - COUNT ( ALL NULLIF ( 17, + 64 + + + 24 ) ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3363
SELECT ALL + 72 * + + CASE + CAST( NULL AS SIGNED ) WHEN 56 THEN + + 68 * - 57 DIV + + 29 DIV COALESCE ( ( + - 50 ), 12, 0 + + + COUNT( * ), + 0 ) * - CAST( ( - COUNT( * ) ) + 94 AS SIGNED ) WHEN AVG ( + 98 ) - - COUNT( * ) THEN NULL ELSE - 81 END - + ( + COALESCE ( 81, 19 ) ) * 49 AS col2
----
-9801

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL + 72 * + + CASE + CAST ( NULL AS INTEGER ) WHEN 56 THEN + + 68 * - 57 / + + 29 / COALESCE ( ( + - 50 ), 12, 0 + + + COUNT ( * ), + 0 ) * - CAST ( ( - COUNT ( * ) ) + 94 AS INTEGER ) WHEN AVG ( + 98 ) - - COUNT ( * ) THEN NULL ELSE - 81 END - + ( + COALESCE ( 81, 19 ) ) * 49 AS col2
----
-9801

query II rowsort
SELECT DISTINCT + 5 * 26 AS col1, 8
----
130
8

query I rowsort
SELECT - 25 + + 98
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT - ( - SUM( 40 ) )
----
40

skipif mysql # not compatible
query I rowsort label-3366
SELECT - ( - SUM ( 40 ) )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3367
SELECT - 43 * + + CAST( NULL AS DECIMAL ) AS col0, CAST( - COUNT( * ) AS SIGNED ) col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3367
SELECT - 43 * + + CAST ( NULL AS REAL ) AS col0, CAST ( - COUNT ( * ) AS INTEGER ) col1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT MAX( ALL + - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-3368
SELECT MAX ( ALL + - 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT MAX( ALL + - 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-3369
SELECT MAX ( ALL + - 77 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT + - COUNT( * ) + - + 75 * + + COUNT( * ) col0
----
-76

skipif mysql # not compatible
query I rowsort label-3370
SELECT + - COUNT ( * ) + - + 75 * + + COUNT ( * ) col0
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3371
SELECT + 11 DIV + - NULLIF ( + + 89, - + COALESCE ( + + CASE + 2 WHEN 22 * ( 88 ) THEN - 19 + 85 WHEN - 35 + + - 26 THEN - 96 END, - 31 * COUNT( * ) ) + - 86 ) + 96
----
96

skipif mysql # not compatible
query I rowsort label-3371
SELECT + 11 / + - NULLIF ( + + 89, - + COALESCE ( + + CASE + 2 WHEN 22 * ( 88 ) THEN - 19 + 85 WHEN - 35 + + - 26 THEN - 96 END, - 31 * COUNT ( * ) ) + - 86 ) + 96
----
96

query I rowsort
SELECT + 50 * + 51 + + 36 AS col1
----
2586

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL MIN( 62 )
----
62

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL MIN ( 62 )
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-3374
SELECT DISTINCT ( - 91 ) col1, 45 - + 5 * - 35 * + - MIN( - 68 ) AS col2
----
-91
11945

skipif mysql # not compatible
query II rowsort label-3374
SELECT DISTINCT ( - 91 ) col1, 45 - + 5 * - 35 * + - MIN ( - 68 ) AS col2
----
-91
11945

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL NULLIF ( + 57, + 30 - + COALESCE ( 30, - COUNT( * ) ) + 34 + - 66 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL NULLIF ( + 57, + 30 - + COALESCE ( 30, - COUNT ( * ) ) + 34 + - 66 ) AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT ALL 7 DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL 7 / 39
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3377
SELECT + 77 DIV + COUNT( * ) + CAST( - 70 AS SIGNED ) col1
----
7

skipif mysql # not compatible
query I rowsort label-3377
SELECT + 77 / + COUNT ( * ) + CAST ( - 70 AS INTEGER ) col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3378
SELECT ALL + 29 DIV - NULLIF ( - + 2, - + 43 * - 93 * + - 48 + - - NULLIF ( - 95, 94 ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL + 29 / - NULLIF ( - + 2, - + 43 * - 93 * + - 48 + - - NULLIF ( - 95, 94 ) ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT + - 48 * - - COALESCE ( - + 33, SUM( + - 70 ) ) * ( NULLIF ( - 21, COALESCE ( 57, 97 * - + 3 ) * - COUNT( * ) ) )
----
-33264

skipif mysql # not compatible
query I rowsort label-3379
SELECT + - 48 * - - COALESCE ( - + 33, SUM ( + - 70 ) ) * ( NULLIF ( - 21, COALESCE ( 57, 97 * - + 3 ) * - COUNT ( * ) ) )
----
-33264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT + - 43 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT + - 43 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL - 37 + - CASE 12 WHEN 2 + - 69 + 86 * + 23 * 80 + + - MAX( ALL - 18 ) / + + AVG ( ALL 63 ) THEN NULL ELSE - 98 * - + 52 END + - 63 * - 53
----
-1794

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL - 37 + - CASE 12 WHEN 2 + - 69 + 86 * + 23 * 80 + + - MAX ( ALL - 18 ) / + + AVG ( ALL 63 ) THEN NULL ELSE - 98 * - + 52 END + - 63 * - 53
----
-1794

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT SUM( ALL - + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-3382
SELECT SUM ( ALL - + 64 )
----
-64

query I rowsort
SELECT - CASE 26 WHEN + 74 THEN NULL WHEN 32 THEN - 59 END AS col2
----
NULL

query I rowsort
SELECT + 53 - + - 33 * 81
----
2726

query I rowsort
SELECT - + 9 AS col1
----
-9

query I rowsort
SELECT ALL 49 + + ( + 20 ) AS col0
----
69

query I rowsort
SELECT DISTINCT 54 * + 9 col2
----
486

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3388
SELECT ALL + - 96 + 7 + - CAST( + 6 AS SIGNED ) * 73 DIV + 11
----
-128

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL + - 96 + 7 + - CAST ( + 6 AS INTEGER ) * 73 / + 11
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-3389
SELECT + - 70 DIV + 46 - 79
----
-80

skipif mysql # not compatible
query I rowsort label-3389
SELECT + - 70 / + 46 - 79
----
-80

query II rowsort
SELECT DISTINCT + 10 * - + 95, + 54 AS col1
----
-950
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT 81 + - SUM( DISTINCT NULLIF ( + - 8, 97 ) ) * + 78
----
705

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT 81 + - SUM ( DISTINCT NULLIF ( + - 8, 97 ) ) * + 78
----
705

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT - COUNT( ALL + + 21 ) * - - CASE - 2 WHEN ( 97 ) THEN 84 * - + 33 ELSE NULL END - - + 47 + + + 49 * + - 53 * - AVG ( - 13 ) * - + COUNT( * ) + AVG ( ( NULLIF ( - 5, 70 * ( 21 ) ) ) ) + + 90 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT - COUNT ( ALL + + 21 ) * - - CASE - 2 WHEN ( 97 ) THEN 84 * - + 33 ELSE NULL END - - + 47 + + + 49 * + - 53 * - AVG ( - 13 ) * - + COUNT ( * ) + AVG ( ( NULLIF ( - 5, 70 * ( 21 ) ) ) ) + + 90 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3393
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + 56 * + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 56 * + 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT CASE ( - CASE SUM( DISTINCT + 3 ) WHEN - + 33 THEN - 47 * + 37 * 78 END ) WHEN - + COALESCE ( + + 37, 5 ) THEN 35 WHEN 94 THEN NULL END + - - 52 * ( 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3394
SELECT CASE ( - CASE SUM ( DISTINCT + 3 ) WHEN - + 33 THEN - 47 * + 37 * 78 END ) WHEN - + COALESCE ( + + 37, 5 ) THEN 35 WHEN 94 THEN NULL END + - - 52 * ( 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT - MIN( ALL - 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT - MIN ( ALL - 98 ) AS col0
----
98

query I rowsort
SELECT 97 + 22
----
119

query I rowsort
SELECT 32 - 89
----
-57

query I rowsort
SELECT ALL 91 - - 43 AS col0
----
134

query I rowsort
SELECT 16 + 29 col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL - ( 15 ) - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL - ( 15 ) - COUNT ( * )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3401
SELECT 22 DIV - 21
----
-1

skipif mysql # not compatible
query I rowsort label-3401
SELECT 22 / - 21
----
-1

query I rowsort
SELECT ALL + 36 * 1 AS col1
----
36

query II rowsort
SELECT ALL - 77, 2 col0
----
-77
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT + 84 * - 54 + COUNT( * ) + - 74 AS col0
----
-4609

skipif mysql # not compatible
query I rowsort label-3404
SELECT + 84 * - 54 + COUNT ( * ) + - 74 AS col0
----
-4609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3405
SELECT MAX( + CAST( - + 11 AS SIGNED ) ) * - 48
----
528

skipif mysql # not compatible
query I rowsort label-3405
SELECT MAX ( + CAST ( - + 11 AS INTEGER ) ) * - 48
----
528

query I rowsort
SELECT ALL - ( + 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT 29 * - COUNT( DISTINCT 0 )
----
-29

skipif mysql # not compatible
query I rowsort label-3407
SELECT 29 * - COUNT ( DISTINCT 0 )
----
-29

query I rowsort
SELECT ALL - COALESCE ( 46, + - 51, 30 )
----
-46

query I rowsort
SELECT DISTINCT + 99 + + + 43 + 40
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-3410
SELECT ( - - 57 ) DIV 60 col2
----
0

skipif mysql # not compatible
query I rowsort label-3410
SELECT ( - - 57 ) / 60 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - SUM( + - 75 ) + 81
----
156

skipif mysql # not compatible
query I rowsort label-3411
SELECT - SUM ( + - 75 ) + 81
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT ALL - + COUNT( * ) + - 18 + + - ( 5 )
----
-24

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL - + COUNT ( * ) + - 18 + + - ( 5 )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3413
SELECT - COALESCE ( ( - ( - - 5 ) ), + MAX( - 21 ) ) + 75 DIV + 16 + - 62 + + 86 DIV + MAX( 16 )
----
-48

skipif mysql # not compatible
query I rowsort label-3413
SELECT - COALESCE ( ( - ( - - 5 ) ), + MAX ( - 21 ) ) + 75 / + 16 + - 62 + + 86 / + MAX ( 16 )
----
-48

query I rowsort
SELECT - 50 + - 24 AS col1
----
-74

query I rowsort
SELECT + 20 - 83
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT 77 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3416
SELECT 77 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL + 25 + - - COALESCE ( - + 9, + 83 + + 38 * - 1 * - - 25 + COALESCE ( - COUNT( * ), - 32 ) ) * + 65
----
-560

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL + 25 + - - COALESCE ( - + 9, + 83 + + 38 * - 1 * - - 25 + COALESCE ( - COUNT ( * ), - 32 ) ) * + 65
----
-560

onlyif mysql # aggregate syntax: 
query II rowsort label-3418
SELECT DISTINCT 98 AS col0, CASE + COUNT( * ) WHEN - COUNT( * ) * - 34 + 59 + + 46 THEN + 0 * - + 27 * 59 END * - ( - 12 ) AS col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-3418
SELECT DISTINCT 98 AS col0, CASE + COUNT ( * ) WHEN - COUNT ( * ) * - 34 + 59 + + 46 THEN + 0 * - + 27 * 59 END * - ( - 12 ) AS col2
----
98
NULL

query I rowsort
SELECT + 86 + 80 + - + 26
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT - - COUNT( DISTINCT - 52 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3420
SELECT - - COUNT ( DISTINCT - 52 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT ALL + COALESCE ( COUNT( * ), - 49 * - - 33 * + + 1 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL + COALESCE ( COUNT ( * ), - 49 * - - 33 * + + 1 ) col2
----
1

query I rowsort
SELECT DISTINCT 65 + - 85
----
-20

query I rowsort
SELECT 46 + - + 29 + + + ( - - 8 ) col0
----
25

query II rowsort
SELECT 54, + 63 * - 25 AS col1
----
54
-1575

onlyif mysql # aggregate syntax: 
query II rowsort label-3425
SELECT - 87 AS col0, + 8 + - 49 + - NULLIF ( + - COUNT( * ), - - 50 ) AS col1
----
-87
-40

skipif mysql # not compatible
query II rowsort label-3425
SELECT - 87 AS col0, + 8 + - 49 + - NULLIF ( + - COUNT ( * ), - - 50 ) AS col1
----
-87
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3426
SELECT CAST( NULL AS SIGNED ) + - + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT CAST ( NULL AS INTEGER ) + - + 96 AS col2
----
NULL

query I rowsort
SELECT ( + - 44 ) * 51
----
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT DISTINCT NULLIF ( + + COUNT( * ), - 61 + + 11 * - + COUNT( * ) ) * + 41 * COALESCE ( + 5, 93 ) * - 60 * - + 69
----
848700

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT NULLIF ( + + COUNT ( * ), - 61 + + 11 * - + COUNT ( * ) ) * + 41 * COALESCE ( + 5, 93 ) * - 60 * - + 69
----
848700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3429
SELECT ALL - 36 AS col2, 58 - + CAST( NULL AS SIGNED )
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-3429
SELECT ALL - 36 AS col2, 58 - + CAST ( NULL AS INTEGER )
----
-36
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3430
SELECT 13 * MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT 13 * MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT DISTINCT 9 * 5 * 7 * - COUNT( ALL - 92 ) * 94 AS col1
----
-29610

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT 9 * 5 * 7 * - COUNT ( ALL - 92 ) * 94 AS col1
----
-29610

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT MIN( ( 17 ) ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-3432
SELECT MIN ( ( 17 ) ) AS col0
----
17

query I rowsort
SELECT 26 * 50 AS col1
----
1300

query I rowsort
SELECT ALL 44 * 66 AS col2
----
2904

query I rowsort
SELECT 3 * + - 53 * 77
----
-12243

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT SUM( - 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3436
SELECT SUM ( - 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT ALL - MAX( - - 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL - MAX ( - - 16 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT 51 * COUNT( * ) * CASE - 2 WHEN - 72 - - + 57 * - 69 THEN + - ( 47 ) WHEN - 61 THEN NULL ELSE NULL END * 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3438
SELECT 51 * COUNT ( * ) * CASE - 2 WHEN - 72 - - + 57 * - 69 THEN + - ( 47 ) WHEN - 61 THEN NULL ELSE NULL END * 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT 32 * 57 - + CASE - ( + - COUNT( * ) ) WHEN - MAX( - + 29 ) THEN + 42 ELSE NULL END * - 77 / - + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT 32 * 57 - + CASE - ( + - COUNT ( * ) ) WHEN - MAX ( - + 29 ) THEN + 42 ELSE NULL END * - 77 / - + 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3440
SELECT ALL - SUM( DISTINCT - + 35 ) DIV COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL - SUM ( DISTINCT - + 35 ) / COUNT ( * )
----
35

query I rowsort
SELECT 41 * - - 64
----
2624

query I rowsort
SELECT ALL - 33 * + 7 col0
----
-231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3443
SELECT 47 DIV + - ( - CAST( + SUM( 16 ) AS SIGNED ) )
----
2

skipif mysql # not compatible
query I rowsort label-3443
SELECT 47 / + - ( - CAST ( + SUM ( 16 ) AS INTEGER ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT ALL SUM( ALL - 77 ) + + + 8
----
-69

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL SUM ( ALL - 77 ) + + + 8
----
-69

query I rowsort
SELECT ALL - 3 + 17
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT + MIN( + 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-3446
SELECT + MIN ( + 18 ) AS col2
----
18

query I rowsort
SELECT ALL + - ( - 22 ) + 15 AS col1
----
37

query I rowsort
SELECT DISTINCT + - 80 + + 13 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-3449
SELECT ALL - 12 * - SUM( DISTINCT + 14 ) - - 46 AS col1, - 84 AS col2
----
214
-84

skipif mysql # not compatible
query II rowsort label-3449
SELECT ALL - 12 * - SUM ( DISTINCT + 14 ) - - 46 AS col1, - 84 AS col2
----
214
-84

query II rowsort
SELECT - + 20 AS col2, 57 AS col0
----
-20
57

query I rowsort
SELECT 36 - + 39 + - 49
----
-52

query I rowsort
SELECT DISTINCT - ( 64 )
----
-64

query I rowsort
SELECT ALL ( + 75 ) col0
----
75

query II rowsort
SELECT ALL + ( 10 ), 54 AS col2
----
10
54

query I rowsort
SELECT DISTINCT - + 62 + - 27 col1
----
-89

query I rowsort
SELECT ALL 15 * 9
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3457
SELECT - COUNT( 36 ) DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-3457
SELECT - COUNT ( 36 ) / + 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT DISTINCT - - COALESCE ( + COUNT( * ), - + 74 + - - 47 * 58 ) - + 61
----
-60

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT - - COALESCE ( + COUNT ( * ), - + 74 + - - 47 * 58 ) - + 61
----
-60

query I rowsort
SELECT - 42 * + 91
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT + COUNT( * ) * + NULLIF ( - COUNT( * ), 82 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3460
SELECT + COUNT ( * ) * + NULLIF ( - COUNT ( * ), 82 ) col0
----
-1

query I rowsort
SELECT ALL - 8 * - 15
----
120

query I rowsort
SELECT DISTINCT + 54 * NULLIF ( 83, + 34 - + 56 )
----
4482

query I rowsort
SELECT DISTINCT NULLIF ( + + 84, 95 ) AS col2
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3464
SELECT + 38 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT + 38 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3465
SELECT ALL CASE + - CAST( 74 AS SIGNED ) WHEN + 1 * + COUNT( * ) / + 61 + + 72 * + COUNT( * ) THEN + + 37 WHEN + 87 + - 92 THEN + 1 WHEN COUNT( - 88 ) / - COUNT( * ) + - ( 59 ) * + 95 THEN + 62 END * + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL CASE + - CAST ( 74 AS INTEGER ) WHEN + 1 * + COUNT ( * ) / + 61 + + 72 * + COUNT ( * ) THEN + + 37 WHEN + 87 + - 92 THEN + 1 WHEN COUNT ( - 88 ) / - COUNT ( * ) + - ( 59 ) * + 95 THEN + 62 END * + 16 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT 73 DIV + 91 + + + 11 + + 60 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3466
SELECT 73 / + 91 + + + 11 + + 60 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT 36 * - ( + 97 ) + - 44 + - COUNT( * )
----
-3537

skipif mysql # not compatible
query I rowsort label-3467
SELECT 36 * - ( + 97 ) + - 44 + - COUNT ( * )
----
-3537

query II rowsort
SELECT + 50 * 36 AS col1, + 24 AS col2
----
1800
24

onlyif mysql # aggregate syntax: 
query III rowsort label-3469
SELECT + 20 + COUNT( + ( - 36 ) ) + - MIN( DISTINCT + 81 ) * - 56 AS col1, - 47 * + 90 + + 22 AS col0, + COUNT( * )
----
4557
-4208
1

skipif mysql # not compatible
query III rowsort label-3469
SELECT + 20 + COUNT ( + ( - 36 ) ) + - MIN ( DISTINCT + 81 ) * - 56 AS col1, - 47 * + 90 + + 22 AS col0, + COUNT ( * )
----
4557
-4208
1

query I rowsort
SELECT + ( 97 ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3471
SELECT ALL + MIN( - 59 ) * 27 + + + 55 - + COUNT( * ) * + 97 + - CAST( - 90 AS SIGNED ) DIV ( + - 40 ) + 70 * + 12 AS col1
----
-797

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL + MIN ( - 59 ) * 27 + + + 55 - + COUNT ( * ) * + 97 + - CAST ( - 90 AS INTEGER ) / ( + - 40 ) + 70 * + 12 AS col1
----
-797

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT COUNT( * ) * + 27 * 60 + 36
----
1656

skipif mysql # not compatible
query I rowsort label-3472
SELECT COUNT ( * ) * + 27 * 60 + 36
----
1656

query I rowsort
SELECT + 14 * - 41
----
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT DISTINCT - 19 * + 71 + 64 * COUNT( * )
----
-1285

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT - 19 * + 71 + 64 * COUNT ( * )
----
-1285

onlyif mysql # aggregate syntax: 
query II rowsort label-3475
SELECT ALL + 69 * 68 + + COUNT( * ) AS col1, + 22
----
4693
22

skipif mysql # not compatible
query II rowsort label-3475
SELECT ALL + 69 * 68 + + COUNT ( * ) AS col1, + 22
----
4693
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT DISTINCT - 3 * - COUNT( * ) + + + 87 + + 95 col0
----
185

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT - 3 * - COUNT ( * ) + + + 87 + + 95 col0
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3477
SELECT ALL 44 * + ( + 98 ) + - 14 DIV - CASE + ( + ( - + 63 ) ) WHEN 32 THEN NULL WHEN + - COUNT( * ) DIV - 91 + COUNT( * ) * - + 49 * + 77 THEN + + 41 * + 52 * 68 ELSE - COUNT( * ) END - + 69 * + COUNT( * )
----
4229

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL 44 * + ( + 98 ) + - 14 / - CASE + ( + ( - + 63 ) ) WHEN 32 THEN NULL WHEN + - COUNT ( * ) / - 91 + COUNT ( * ) * - + 49 * + 77 THEN + + 41 * + 52 * 68 ELSE - COUNT ( * ) END - + 69 * + COUNT ( * )
----
4229

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL MIN( - 98 ) * + 66 + + MAX( ALL 53 ) + + 42
----
-6373

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL MIN ( - 98 ) * + 66 + + MAX ( ALL 53 ) + + 42
----
-6373

query I rowsort
SELECT + ( + - 89 ) * - + 59 + 32 * + 26
----
6083

onlyif mysql # aggregate syntax: 
query II rowsort label-3480
SELECT 72 * + 11 + - 66 * - MIN( - 17 ), - 55 + 86 AS col0
----
-330
31

skipif mysql # not compatible
query II rowsort label-3480
SELECT 72 * + 11 + - 66 * - MIN ( - 17 ), - 55 + 86 AS col0
----
-330
31

query I rowsort
SELECT - NULLIF ( + - 57, - 82 + + - 80 )
----
57

query I rowsort
SELECT + - 11 * 1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3483
SELECT ALL COALESCE ( - 84, + - CAST( NULL AS SIGNED ) + - 43 + MIN( - 16 ) ) DIV + - 98 + - + 49 + + 10 * + 79 * - 90 AS col0
----
-71149

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL COALESCE ( - 84, + - CAST ( NULL AS INTEGER ) + - 43 + MIN ( - 16 ) ) / + - 98 + - + 49 + + 10 * + 79 * - 90 AS col0
----
-71149

query I rowsort
SELECT DISTINCT + 67 * 48 AS col1
----
3216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3485
SELECT - 59 * - 21 AS col2, 88 * + + COALESCE ( COUNT( * ), - 74 + - SUM( DISTINCT + 24 ) ) * + + 60 + - 3 + - CAST( NULL AS SIGNED ) - - CASE + + NULLIF ( + 88, + COUNT( * ) ) WHEN + 21 + - 17 * + 73 THEN - COUNT( * ) WHEN ( ( CAST( + 26 AS SIGNED ) ) ) THEN NULL WHEN - 45 THEN NULL ELSE + 94 END / - 87
----
1239
NULL

skipif mysql # not compatible
query II rowsort label-3485
SELECT - 59 * - 21 AS col2, 88 * + + COALESCE ( COUNT ( * ), - 74 + - SUM ( DISTINCT + 24 ) ) * + + 60 + - 3 + - CAST ( NULL AS INTEGER ) - - CASE + + NULLIF ( + 88, + COUNT ( * ) ) WHEN + 21 + - 17 * + 73 THEN - COUNT ( * ) WHEN ( ( CAST ( + 26 AS INTEGER ) ) ) THEN NULL WHEN - 45 THEN NULL ELSE + 94 END / - 87
----
1239
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3486
SELECT ALL + COUNT( CAST( - 15 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL + COUNT ( CAST ( - 15 AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT - - 29 + + ( - COUNT( * ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3487
SELECT - - 29 + + ( - COUNT ( * ) ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT DISTINCT + COUNT( * ) - + 63 - + 62 AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT + COUNT ( * ) - + 63 - + 62 AS col2
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3489
SELECT - + ( + + SUM( DISTINCT 21 ) ) + 80 DIV COALESCE ( + - 33, - ( 55 ) * 86 * 95 )
----
-23

skipif mysql # not compatible
query I rowsort label-3489
SELECT - + ( + + SUM ( DISTINCT 21 ) ) + 80 / COALESCE ( + - 33, - ( 55 ) * 86 * 95 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT DISTINCT - + 60 * + - 2 + - MIN( ALL + 63 ) + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT - + 60 * + - 2 + - MIN ( ALL + 63 ) + COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3491
SELECT ALL COALESCE ( + - 90, + + 31 + - 18 + + 65 - - ( - 57 ) * - 67 * + + 56 * - - 92 + + 0 * 41 ) AS col2, + 11 * + + 33 * - + COUNT( * )
----
-90
-363

skipif mysql # not compatible
query II rowsort label-3491
SELECT ALL COALESCE ( + - 90, + + 31 + - 18 + + 65 - - ( - 57 ) * - 67 * + + 56 * - - 92 + + 0 * 41 ) AS col2, + 11 * + + 33 * - + COUNT ( * )
----
-90
-363

query I rowsort
SELECT - - 68 + - + 33 + - 28 * - - 57 AS col2
----
-1561

query I rowsort
SELECT - - 10 * 61 * - 52
----
-31720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3494
SELECT - + COUNT( * ) - + 34 + + CAST( + COUNT( 91 ) AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-3494
SELECT - + COUNT ( * ) - + 34 + + CAST ( + COUNT ( 91 ) AS INTEGER )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL CASE + 60 WHEN + - 21 * + COALESCE ( ( 84 ), + + 13 + COUNT( * ) + + 55 + - COUNT( * ) / - 68 * - 38 + 51 + - 72 + - 83 + + 58 - + - 65 + 74 * 10, + COUNT( * ) * ( 97 ) ) THEN NULL ELSE 51 END AS col2
----
51

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL CASE + 60 WHEN + - 21 * + COALESCE ( ( 84 ), + + 13 + COUNT ( * ) + + 55 + - COUNT ( * ) / - 68 * - 38 + 51 + - 72 + - 83 + + 58 - + - 65 + 74 * 10, + COUNT ( * ) * ( 97 ) ) THEN NULL ELSE 51 END AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT - 63 * 51 * - COUNT( * )
----
3213

skipif mysql # not compatible
query I rowsort label-3496
SELECT - 63 * 51 * - COUNT ( * )
----
3213

query I rowsort
SELECT ALL COALESCE ( 49, 42 + 48 * + 53 )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3498
SELECT DISTINCT CASE + - COUNT( * ) WHEN 49 THEN 79 * 68 - CAST( NULL AS SIGNED ) - + 24 * + 91 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT CASE + - COUNT ( * ) WHEN 49 THEN 79 * 68 - CAST ( NULL AS INTEGER ) - + 24 * + 91 END col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - - 98, + - 42 * + - 71 )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-3500
SELECT ALL 98 AS col1, + COUNT( * ) AS col1
----
98
1

skipif mysql # not compatible
query II rowsort label-3500
SELECT ALL 98 AS col1, + COUNT ( * ) AS col1
----
98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT - SUM( DISTINCT + + 57 ) + - 4 + - 76
----
-137

skipif mysql # not compatible
query I rowsort label-3501
SELECT - SUM ( DISTINCT + + 57 ) + - 4 + - 76
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT ALL ( + - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL ( + - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL + 77 * 9 * + CASE - 88 WHEN + - 55 THEN + 83 ELSE NULL END
----
NULL

query I rowsort
SELECT - 27 * - 7 AS col0
----
189

query I rowsort
SELECT - 32 + + 10
----
-22

query I rowsort
SELECT DISTINCT + ( 4 ) * + 4 - + 89 + + 19 * + - 7
----
-206

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3507
SELECT + SUM( ALL + 98 ) DIV COUNT( * ) DIV 39 col0
----
2

skipif mysql # not compatible
query I rowsort label-3507
SELECT + SUM ( ALL + 98 ) / COUNT ( * ) / 39 col0
----
2

query I rowsort
SELECT - 96 * 42 * 51 * + - 60
----
12337920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3509
SELECT ALL + 92 DIV + COUNT( * ) + - - 90 + - - 5 * 26
----
312

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL + 92 / + COUNT ( * ) + - - 90 + - - 5 * 26
----
312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3510
SELECT - COUNT( * ) DIV - - 13
----
0

skipif mysql # not compatible
query I rowsort label-3510
SELECT - COUNT ( * ) / - - 13
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3511
SELECT ALL 40 DIV + 30 * - COUNT( * ) + - 95 + + + 18 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL 40 / + 30 * - COUNT ( * ) + - 95 + + + 18 AS col2
----
-78

query I rowsort
SELECT + ( 88 ) col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3513
SELECT - COUNT( * ) DIV - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3513
SELECT - COUNT ( * ) / - + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3514
SELECT + + COUNT( * ) DIV - - 22
----
0

skipif mysql # not compatible
query I rowsort label-3514
SELECT + + COUNT ( * ) / - - 22
----
0

query I rowsort
SELECT + NULLIF ( 14, + + 97 * + 96 * - - 61 / 74 + 3 * 7 )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3516
SELECT ALL - 69 DIV - 71 + + 49
----
49

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL - 69 / - 71 + + 49
----
49

query II rowsort
SELECT 15 * - - 75 - + - 52, + 21 + 85 + - ( + 0 ) + - 36 * - - 90 + + - 46 AS col0
----
1177
-3180

query I rowsort
SELECT + + 40 - - 35 AS col0
----
75

query I rowsort
SELECT DISTINCT - 27 - 35
----
-62

query II rowsort
SELECT ALL - + 13 AS col2, 11 * 94
----
-13
1034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3521
SELECT - ( - CAST( NULL AS SIGNED ) ) * 94 - 48 + + 53 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT - ( - CAST ( NULL AS INTEGER ) ) * 94 - 48 + + 53 / + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3522
SELECT + 97 * + 0 DIV + 75 - 81
----
-81

skipif mysql # not compatible
query I rowsort label-3522
SELECT + 97 * + 0 / + 75 - 81
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3523
SELECT - 45 AS col2, - COUNT( * )
----
-45
-1

skipif mysql # not compatible
query II rowsort label-3523
SELECT - 45 AS col2, - COUNT ( * )
----
-45
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3524
SELECT - ( COALESCE ( 36, - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3524
SELECT - ( COALESCE ( 36, - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) AS col2
----
-36

query I rowsort
SELECT ALL + ( + 95 ) AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3526
SELECT CAST( NULL AS SIGNED ) / + ( 99 ) / + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3526
SELECT CAST ( NULL AS INTEGER ) / + ( 99 ) / + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 44 * - 29 col0
----
-1276

onlyif mysql # DIV for integer division: 
query I rowsort label-3528
SELECT ALL 20 DIV - 19 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL 20 / - 19 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3529
SELECT CAST( NULL AS SIGNED ) / 6 * + - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT CAST ( NULL AS INTEGER ) / 6 * + - 52 AS col2
----
NULL

query I rowsort
SELECT ALL ( - 42 ) * 31
----
-1302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3531
SELECT CAST( NULL AS SIGNED ) / + - ( + + 75 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT CAST ( NULL AS INTEGER ) / + - ( + + 75 ) AS col0
----
NULL

query II rowsort
SELECT 42 * - 14 AS col2, NULLIF ( + - 60, - - 80 ) AS col0
----
-588
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-3533
SELECT 51 * COUNT( * ), NULLIF ( + - 14, 27 + - + 11 + - - 44 * 20 ) AS col0
----
51
-14

skipif mysql # not compatible
query II rowsort label-3533
SELECT 51 * COUNT ( * ), NULLIF ( + - 14, 27 + - + 11 + - - 44 * 20 ) AS col0
----
51
-14

query II rowsort
SELECT ALL + 73 + 66, COALESCE ( - 26, + - 84 * + 67 - 81 ) * + 68 + - CASE - 4 WHEN + NULLIF ( 77, + + 41 ) THEN 72 + + 2 WHEN 11 + 35 * - - 73 * 98 * 73 THEN NULL ELSE NULL END AS col0
----
139
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3535
SELECT NULLIF ( CASE + 44 WHEN + + 93 THEN NULL WHEN + 50 THEN ( - 95 ) + COUNT( * ) * + + ( + 64 ) END, - 25 - 74 * 70 ) + 18 + - SUM( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT NULLIF ( CASE + 44 WHEN + + 93 THEN NULL WHEN + 50 THEN ( - 95 ) + COUNT ( * ) * + + ( + 64 ) END, - 25 - 74 * 70 ) + 18 + - SUM ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT DISTINCT 20 + + COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT 20 + + COUNT ( * ) AS col0
----
21

query I rowsort
SELECT ALL - 74 + - 26
----
-100

query I rowsort
SELECT 57 - - 87 + 24 * 67
----
1752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3539
SELECT - 68 DIV + - COUNT( * ) + - + 36 - - 75 * + + ( + + 38 ) AS col1
----
2882

skipif mysql # not compatible
query I rowsort label-3539
SELECT - 68 / + - COUNT ( * ) + - + 36 - - 75 * + + ( + + 38 ) AS col1
----
2882

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT ALL - 74 + + + COUNT( - 18 ) col1
----
-73

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL - 74 + + + COUNT ( - 18 ) col1
----
-73

query I rowsort
SELECT ALL + 11 - + ( 23 )
----
-12

query I rowsort
SELECT - ( - 37 ) + + 55 + 18 * + 36 * 46 AS col0
----
29900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3543
SELECT ALL + 33 * - CAST( - + 31 AS SIGNED ) * - 82, - 45 AS col0
----
-83886
-45

skipif mysql # not compatible
query II rowsort label-3543
SELECT ALL + 33 * - CAST ( - + 31 AS INTEGER ) * - 82, - 45 AS col0
----
-83886
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3544
SELECT DISTINCT + 22 * - + 50 AS col2, 28 DIV + 55 + + 22 DIV - - COUNT( * )
----
-1100
22

skipif mysql # not compatible
query II rowsort label-3544
SELECT DISTINCT + 22 * - + 50 AS col2, 28 / + 55 + + 22 / - - COUNT ( * )
----
-1100
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3545
SELECT DISTINCT - + CAST( MAX( ALL 70 ) AS SIGNED ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT - + CAST ( MAX ( ALL 70 ) AS INTEGER ) AS col2
----
-70

query I rowsort
SELECT ALL + 89 - 60
----
29

query II rowsort
SELECT DISTINCT - 31 * + 16 col0, 54
----
-496
54

query I rowsort
SELECT ALL + 9 - 28 AS col1
----
-19

query I rowsort
SELECT 90 + - ( - 29 ) AS col1
----
119

query I rowsort
SELECT 21 * - + 51 * 6 col1
----
-6426

onlyif mysql # DIV for integer division: 
query I rowsort label-3551
SELECT DISTINCT - + 6 DIV 87 * - 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT - + 6 / 87 * - 60 AS col0
----
0

query II rowsort
SELECT - 94 * + 84 AS col0, + 69
----
-7896
69

query I rowsort
SELECT 67 * - - 33 * - 62
----
-137082

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL - MIN( ALL 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL - MIN ( ALL 75 ) AS col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3555
SELECT NULLIF ( - + 88, - + CAST( 7 AS SIGNED ) ) + + + 47 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-3555
SELECT NULLIF ( - + 88, - + CAST ( 7 AS INTEGER ) ) + + + 47 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3556
SELECT DISTINCT - + MIN( 0 ), + 99 AS col1
----
0
99

skipif mysql # not compatible
query II rowsort label-3556
SELECT DISTINCT - + MIN ( 0 ), + 99 AS col1
----
0
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3557
SELECT ALL 61 * - + ( NULLIF ( + 50, - CAST( NULL AS SIGNED ) ) ) AS col1
----
-3050

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL 61 * - + ( NULLIF ( + 50, - CAST ( NULL AS INTEGER ) ) ) AS col1
----
-3050

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT DISTINCT + - 1 * - 44 * 43 * + 31 AS col2, - COUNT( DISTINCT + 47 )
----
58652
-1

skipif mysql # not compatible
query II rowsort label-3558
SELECT DISTINCT + - 1 * - 44 * 43 * + 31 AS col2, - COUNT ( DISTINCT + 47 )
----
58652
-1

query I rowsort
SELECT ALL - ( - 29 ) + + 27 col2
----
56

query I rowsort
SELECT - 9 * + 63 + - 48 * + + 38 AS col0
----
-2391

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3561
SELECT DISTINCT ( - 86 ) + SUM( DISTINCT - 33 ) DIV + + COALESCE ( - 72, - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT ( - 86 ) + SUM ( DISTINCT - 33 ) / + + COALESCE ( - 72, - 86 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL COUNT( * ) + - 16
----
-15

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL COUNT ( * ) + - 16
----
-15

query I rowsort
SELECT ( 69 ) + - 16
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL COUNT( * ) + - 22 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL COUNT ( * ) + - 22 AS col0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3565
SELECT 41 DIV + 18 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3565
SELECT 41 / + 18 AS col2
----
2

query I rowsort
SELECT ALL 79 + - 75 AS col2
----
4

query I rowsort
SELECT ( + 50 ) + 25
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT DISTINCT 64 col0, 53 + + COUNT( * )
----
64
54

skipif mysql # not compatible
query II rowsort label-3568
SELECT DISTINCT 64 col0, 53 + + COUNT ( * )
----
64
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT ALL 31 * 9 * - + COUNT( * )
----
-279

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL 31 * 9 * - + COUNT ( * )
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT DISTINCT ( + COUNT( * ) ) + + - 93 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT ( + COUNT ( * ) ) + + - 93 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT - MIN( + 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-3571
SELECT - MIN ( + 74 ) AS col1
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3572
SELECT 76 + - CAST( + 21 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-3572
SELECT 76 + - CAST ( + 21 AS INTEGER )
----
55

query I rowsort
SELECT 50 * + - 28
----
-1400

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3574
SELECT ALL + + CASE - COUNT( - 28 ) WHEN 58 THEN + 11 * ( + ( COALESCE ( 14, - - 3 ) ) ) + 68 + - + SUM( ALL + 46 ) + - 64 + + 66 WHEN + 25 THEN NULL WHEN - 38 / - CAST( NULL AS DECIMAL ) + + MIN( DISTINCT - - ( 51 ) ) THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL + + CASE - COUNT ( - 28 ) WHEN 58 THEN + 11 * ( + ( COALESCE ( 14, - - 3 ) ) ) + 68 + - + SUM ( ALL + 46 ) + - 64 + + 66 WHEN + 25 THEN NULL WHEN - 38 / - CAST ( NULL AS REAL ) + + MIN ( DISTINCT - - ( 51 ) ) THEN NULL ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3575
SELECT + COUNT( * ) AS col0, + 28
----
1
28

skipif mysql # not compatible
query II rowsort label-3575
SELECT + COUNT ( * ) AS col0, + 28
----
1
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3576
SELECT ALL + COUNT( * ) * + - 41 + 81 AS col0, ( 57 ) AS col0
----
40
57

skipif mysql # not compatible
query II rowsort label-3576
SELECT ALL + COUNT ( * ) * + - 41 + 81 AS col0, ( 57 ) AS col0
----
40
57

query I rowsort
SELECT - 12 * 91
----
-1092

query I rowsort
SELECT + + 63 + + - 28 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT ALL - 77 * - COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL - 77 * - COUNT ( * ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT - + 66 * - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3580
SELECT - + 66 * - COUNT ( * ) AS col0
----
66

query I rowsort
SELECT + ( NULLIF ( - + 96, + 56 ) )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT DISTINCT + COALESCE ( - COUNT( * ), + + 73 + + - 76 + + - 62 - - ( + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT + COALESCE ( - COUNT ( * ), + + 73 + + - 76 + + - 62 - - ( + COUNT ( * ) ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3583
SELECT ALL - - 11 * + COUNT( * ) * + 81, 74 DIV + CAST( 32 AS SIGNED ) + - 31 * - CAST( + 13 AS SIGNED ) + + - 36 + + + 59 * - - 34 + + ( - 66 ) AS col0
----
891
2309

skipif mysql # not compatible
query II rowsort label-3583
SELECT ALL - - 11 * + COUNT ( * ) * + 81, 74 / + CAST ( 32 AS INTEGER ) + - 31 * - CAST ( + 13 AS INTEGER ) + + - 36 + + + 59 * - - 34 + + ( - 66 ) AS col0
----
891
2309

query I rowsort
SELECT - - 47 + 31
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3585
SELECT DISTINCT - CAST( - ( - + COUNT( NULLIF ( 77, - - 64 ) ) ) AS SIGNED ) * - 76 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT - CAST ( - ( - + COUNT ( NULLIF ( 77, - - 64 ) ) ) AS INTEGER ) * - 76 AS col0
----
76

query II rowsort
SELECT ALL - + 2 * 96 * 55 + 86 + - - 2 * - - 1, + 94 AS col2
----
-10472
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3587
SELECT + CAST( - NULLIF ( + 55, + 74 ) AS SIGNED ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-3587
SELECT + CAST ( - NULLIF ( + 55, + 74 ) AS INTEGER ) AS col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3588
SELECT - 81 DIV + 36
----
-2

skipif mysql # not compatible
query I rowsort label-3588
SELECT - 81 / + 36
----
-2

query I rowsort
SELECT - 51 * + 55 AS col1
----
-2805

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT + COUNT( * ) * 83 * 84
----
6972

skipif mysql # not compatible
query I rowsort label-3590
SELECT + COUNT ( * ) * 83 * 84
----
6972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3591
SELECT ALL - CAST( NULL AS SIGNED ) + COALESCE ( - CAST( NULL AS SIGNED ), + + COUNT( * ) * - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL - CAST ( NULL AS INTEGER ) + COALESCE ( - CAST ( NULL AS INTEGER ), + + COUNT ( * ) * - 78 )
----
NULL

query I rowsort
SELECT DISTINCT ( - 21 ) AS col1
----
-21

query II rowsort
SELECT 71 col2, 2 * + 38
----
71
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3594
SELECT DISTINCT COALESCE ( + COUNT( * ), 2 DIV - 84, - 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT COALESCE ( + COUNT ( * ), 2 / - 84, - 93 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT - 56 + COUNT( * ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3595
SELECT - 56 + COUNT ( * ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query III rowsort label-3596
SELECT DISTINCT ( + - 1 ), MAX( DISTINCT - 19 ) col1, + 51 col0
----
-1
-19
51

skipif mysql # not compatible
query III rowsort label-3596
SELECT DISTINCT ( + - 1 ), MAX ( DISTINCT - 19 ) col1, + 51 col0
----
-1
-19
51

query I rowsort
SELECT + 67 * - 63 AS col2
----
-4221

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3598
SELECT ALL 59 AS col0, COUNT( DISTINCT - - 27 ) DIV - 81 + - 92 * 15 * - ( + + MAX( ( + - 61 ) ) ) col0
----
59
-84180

skipif mysql # not compatible
query II rowsort label-3598
SELECT ALL 59 AS col0, COUNT ( DISTINCT - - 27 ) / - 81 + - 92 * 15 * - ( + + MAX ( ( + - 61 ) ) ) col0
----
59
-84180

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT - 38 + + MAX( + 57 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3599
SELECT - 38 + + MAX ( + 57 ) AS col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3600
SELECT 71 AS col0, + CAST( NULL AS SIGNED )
----
71
NULL

skipif mysql # not compatible
query II rowsort label-3600
SELECT 71 AS col0, + CAST ( NULL AS INTEGER )
----
71
NULL

query I rowsort
SELECT ALL 49 - + + 59 * + 40
----
-2311

query I rowsort
SELECT - 14 + 15
----
1

query I rowsort
SELECT ALL 25 - 75
----
-50

query I rowsort
SELECT - 31 + 85 * 45
----
3794

query II rowsort
SELECT 52 AS col0, 77
----
52
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3606
SELECT 87 col2, - COUNT( * )
----
87
-1

skipif mysql # not compatible
query II rowsort label-3606
SELECT 87 col2, - COUNT ( * )
----
87
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT + COUNT( * ) + 90 col1
----
91

skipif mysql # not compatible
query I rowsort label-3607
SELECT + COUNT ( * ) + 90 col1
----
91

query I rowsort
SELECT - ( + 91 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT ALL 78 DIV + + 45
----
1

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL 78 / + + 45
----
1

query I rowsort
SELECT + 84 + - - 25 * + + 24 AS col2
----
684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3611
SELECT DISTINCT 79, - CAST( + 42 AS SIGNED ) * + 66 + + COUNT( * ) AS col1
----
79
-2771

skipif mysql # not compatible
query II rowsort label-3611
SELECT DISTINCT 79, - CAST ( + 42 AS INTEGER ) * + 66 + + COUNT ( * ) AS col1
----
79
-2771

query I rowsort
SELECT + ( + + 7 ) + ( - ( 76 ) ) * 39 AS col2
----
-2957

onlyif mysql # DIV for integer division: 
query II rowsort label-3613
SELECT DISTINCT - 79 AS col0, + 9 DIV 46
----
-79
0

skipif mysql # not compatible
query II rowsort label-3613
SELECT DISTINCT - 79 AS col0, + 9 / 46
----
-79
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3614
SELECT ALL ( + - 56 ) DIV + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL ( + - 56 ) / + 96 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3615
SELECT + - ( + - ( 16 ) ) DIV COUNT( * ) + + ( + COALESCE ( + - 88, + + 33 DIV - + 62, + - 18 + - COALESCE ( + + 10, - 60 + - + COUNT( DISTINCT - 71 ), - - ( + CASE - - 38 WHEN + - 91 THEN - - 94 * - 44 + + 34 * 2 + 83 END ) * + 50 ) + + 68 ) ) + + 56 + + COALESCE ( + 38 + - NULLIF ( + 60, - 41 * + 36 - - COUNT( * ) ) * - ( - CAST( NULL AS SIGNED ) ), 91 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3615
SELECT + - ( + - ( 16 ) ) / COUNT ( * ) + + ( + COALESCE ( + - 88, + + 33 / - + 62, + - 18 + - COALESCE ( + + 10, - 60 + - + COUNT ( DISTINCT - 71 ), - - ( + CASE - - 38 WHEN + - 91 THEN - - 94 * - 44 + + 34 * 2 + 83 END ) * + 50 ) + + 68 ) ) + + 56 + + COALESCE ( + 38 + - NULLIF ( + 60, - 41 * + 36 - - COUNT ( * ) ) * - ( - CAST ( NULL AS INTEGER ) ), 91 ) AS col0
----
75

query II rowsort
SELECT ALL + 71 AS col2, + ( + 38 ) AS col2
----
71
38

query II rowsort
SELECT + + 26 + 53 + - - ( 35 ), - 29 AS col2
----
114
-29

query II rowsort
SELECT ALL + 86, 37 AS col1
----
86
37

query II rowsort
SELECT + - 30, - 38 AS col2
----
-30
-38

query I rowsort
SELECT ALL + + NULLIF ( + 61, 89 ) * + 8 + + + 20
----
508

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT DISTINCT - - 26 * COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT - - 26 * COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT + + SUM( + + 68 ) + + + 43 + - 57 + + + 54 + - - 59 + + - 2 * + + SUM( 10 ) * 84 - - 39 - - 18 * + 9 * + + 8
----
-178

skipif mysql # not compatible
query I rowsort label-3622
SELECT + + SUM ( + + 68 ) + + + 43 + - 57 + + + 54 + - - 59 + + - 2 * + + SUM ( 10 ) * 84 - - 39 - - 18 * + 9 * + + 8
----
-178

query I rowsort
SELECT + ( - 17 ) * + - 76 + 39 * - + 65 + + 62 * 24 AS col2
----
245

query I rowsort
SELECT - 40 + + 87 AS col2
----
47

query II rowsort
SELECT + 20, 10 AS col0
----
20
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT + MIN( ALL + - ( 39 ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3626
SELECT + MIN ( ALL + - ( 39 ) ) AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3627
SELECT + 82 AS col2, SUM( - ( - - ( CAST( NULL AS SIGNED ) ) ) ) + - 89
----
82
NULL

skipif mysql # not compatible
query II rowsort label-3627
SELECT + 82 AS col2, SUM ( - ( - - ( CAST ( NULL AS INTEGER ) ) ) ) + - 89
----
82
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3628
SELECT - 80 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT - 80 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3629
SELECT - 98 + - - 46, SUM( 71 ) AS col2
----
-52
71

skipif mysql # not compatible
query II rowsort label-3629
SELECT - 98 + - - 46, SUM ( 71 ) AS col2
----
-52
71

query I rowsort
SELECT DISTINCT - 32 * + - 30 AS col2
----
960

onlyif mysql # aggregate syntax: 
query II rowsort label-3631
SELECT ALL COUNT( * ) * - COUNT( * ) * + - 89 * - MIN( - + 31 ) + + 66 + - 39 - 74 * + + 60 + 8 * + 52 * - 6 - - COUNT( - 13 ) + COUNT( * ) AS col0, COUNT( * ) + - 22 AS col1
----
-4148
-21

skipif mysql # not compatible
query II rowsort label-3631
SELECT ALL COUNT ( * ) * - COUNT ( * ) * + - 89 * - MIN ( - + 31 ) + + 66 + - 39 - 74 * + + 60 + 8 * + 52 * - 6 - - COUNT ( - 13 ) + COUNT ( * ) AS col0, COUNT ( * ) + - 22 AS col1
----
-4148
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3632
SELECT - 50 * - - 95 * - + CASE - NULLIF ( + - 3, - 95 + - 17 ) WHEN - COALESCE ( - 47, + MAX( 39 ) / 4 ) + 43 + + - 97 / + 72 THEN - + CAST( NULL AS SIGNED ) * - + COUNT( * ) / 33 + - - 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT - 50 * - - 95 * - + CASE - NULLIF ( + - 3, - 95 + - 17 ) WHEN - COALESCE ( - 47, + MAX ( 39 ) / 4 ) + 43 + + - 97 / + 72 THEN - + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) / 33 + - - 76 END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 28, - - 53 * - 44 ) * + - 24 AS col2
----
672

query I rowsort
SELECT - NULLIF ( 54, + 54 ) + - 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3635
SELECT - COUNT( * ) DIV 12 AS col1, 34 AS col2
----
0
34

skipif mysql # not compatible
query II rowsort label-3635
SELECT - COUNT ( * ) / 12 AS col1, 34 AS col2
----
0
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3636
SELECT DISTINCT + 70 DIV - 71 * 3
----
0

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT + 70 / - 71 * 3
----
0

query I rowsort
SELECT 92 + - 11 col2
----
81

query I rowsort
SELECT DISTINCT 37 * + - 31 AS col1
----
-1147

query II rowsort
SELECT ALL 96 - + 47, + 92 * + - 2 AS col0
----
49
-184

query I rowsort
SELECT 82 * - + 98
----
-8036

onlyif mysql # aggregate syntax: 
query II rowsort label-3641
SELECT DISTINCT - 98 * - - COUNT( * ) AS col2, ( 54 ) AS col1
----
-98
54

skipif mysql # not compatible
query II rowsort label-3641
SELECT DISTINCT - 98 * - - COUNT ( * ) AS col2, ( 54 ) AS col1
----
-98
54

query I rowsort
SELECT 65 * - 93
----
-6045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3643
SELECT - NULLIF ( 48, - ( - - 51 ) * - 30 + - - 15 * - + 59 * - 69 + - 74 ) * - 43 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT - NULLIF ( 48, - ( - - 51 ) * - 30 + - - 15 * - + 59 * - 69 + - 74 ) * - 43 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ( - - 89 ) + + - COALESCE ( MIN( - 42 ), - 48 + + 57, COUNT( 36 ) + NULLIF ( - 15, - - 27 + COALESCE ( - - 2, - 95 * - 39 * + 23 ) - 60 ) ) AS col2
----
131

skipif mysql # not compatible
query I rowsort label-3644
SELECT ( - - 89 ) + + - COALESCE ( MIN ( - 42 ), - 48 + + 57, COUNT ( 36 ) + NULLIF ( - 15, - - 27 + COALESCE ( - - 2, - 95 * - 39 * + 23 ) - 60 ) ) AS col2
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT - COALESCE ( ( - 7 ), + SUM( + 29 ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3645
SELECT - COALESCE ( ( - 7 ), + SUM ( + 29 ) ) AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3646
SELECT - CAST( - + CASE + CAST( NULL AS SIGNED ) WHEN ( + 39 ) THEN NULL ELSE - 59 + - 36 END AS SIGNED ) AS col2, + 71 * + + MAX( - - 59 ) * 84 * - CAST( NULL AS SIGNED ) + - 41 * - - 9
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-3646
SELECT - CAST ( - + CASE + CAST ( NULL AS INTEGER ) WHEN ( + 39 ) THEN NULL ELSE - 59 + - 36 END AS INTEGER ) AS col2, + 71 * + + MAX ( - - 59 ) * 84 * - CAST ( NULL AS INTEGER ) + - 41 * - - 9
----
-95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL - MAX( + 53 ) + CASE 71 WHEN - ( - + COUNT( * ) ) THEN NULL WHEN - MIN( ALL + 31 ) THEN - 5 ELSE NULL END + 13 * 24 * + ( + 81 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL - MAX ( + 53 ) + CASE 71 WHEN - ( - + COUNT ( * ) ) THEN NULL WHEN - MIN ( ALL + 31 ) THEN - 5 ELSE NULL END + 13 * 24 * + ( + 81 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 86 + + 22 + 49 + - 46 * 16 * - 66
----
48733

onlyif mysql # DIV for integer division: 
query I rowsort label-3649
SELECT DISTINCT + 28 + - 2 + 13 + + 29 - + ( - 79 ) DIV - + ( - - ( + 68 ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT + 28 + - 2 + 13 + + 29 - + ( - 79 ) / - + ( - - ( + 68 ) ) AS col0
----
67

query I rowsort
SELECT - 54 + 29 + ( + 87 ) * + 38 + 8 AS col0
----
3289

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT + NULLIF ( CASE 46 WHEN - 60 + + COUNT( * ) THEN + - 95 + - 31 WHEN - 94 / - COUNT( * ) THEN NULL ELSE NULL END, - 98 * - - 95 ) * + NULLIF ( - 21, - 60 * COUNT( * ) - 59 + - 81 + NULLIF ( - 16, ( - 98 ) ) * 69 * 75 + + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT + NULLIF ( CASE 46 WHEN - 60 + + COUNT ( * ) THEN + - 95 + - 31 WHEN - 94 / - COUNT ( * ) THEN NULL ELSE NULL END, - 98 * - - 95 ) * + NULLIF ( - 21, - 60 * COUNT ( * ) - 59 + - 81 + NULLIF ( - 16, ( - 98 ) ) * 69 * 75 + + 56 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3652
SELECT ALL + COUNT( * ) * 62 AS col1, 51 AS col2
----
62
51

skipif mysql # not compatible
query II rowsort label-3652
SELECT ALL + COUNT ( * ) * 62 AS col1, 51 AS col2
----
62
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT - - SUM( DISTINCT + - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT - - SUM ( DISTINCT + - 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL 16 * - COUNT( * ) * + MIN( ALL + 94 ) * 31 AS col0
----
-46624

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL 16 * - COUNT ( * ) * + MIN ( ALL + 94 ) * 31 AS col0
----
-46624

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL 60 * + COUNT( 48 )
----
60

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL 60 * + COUNT ( 48 )
----
60

query I rowsort
SELECT 35 + 81 * 65
----
5300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3657
SELECT ALL 63 - - NULLIF ( - 69, - - ( - + 75 ) - - 67 ) + - + 37 + - 44 * 0 DIV + 3 * + MIN( DISTINCT + 25 )
----
-43

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL 63 - - NULLIF ( - 69, - - ( - + 75 ) - - 67 ) + - + 37 + - 44 * 0 / + 3 * + MIN ( DISTINCT + 25 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT ALL - NULLIF ( MIN( DISTINCT - 95 ), + 3 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL - NULLIF ( MIN ( DISTINCT - 95 ), + 3 ) AS col0
----
95

query II rowsort
SELECT + 48 AS col2, 73 * - + 10 + + 69
----
48
-661

query I rowsort
SELECT ALL + 83 * + COALESCE ( 88, + - 63 ) AS col0
----
7304

query I rowsort
SELECT ALL 49 * - - 81
----
3969

query I rowsort
SELECT 76 * - 38 AS col1
----
-2888

query I rowsort
SELECT ALL 66 * + + 71
----
4686

query II rowsort
SELECT DISTINCT 73 AS col0, - 60
----
73
-60

query II rowsort
SELECT ALL 25 AS col2, + 88 AS col0
----
25
88

query II rowsort
SELECT 25, - 17 col0
----
25
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3667
SELECT CAST( 7 AS SIGNED ) + - + SUM( DISTINCT + + 16 ) + 92 + ( + - 71 ) * + MAX( ALL - - ( - 56 ) )
----
4059

skipif mysql # not compatible
query I rowsort label-3667
SELECT CAST ( 7 AS INTEGER ) + - + SUM ( DISTINCT + + 16 ) + 92 + ( + - 71 ) * + MAX ( ALL - - ( - 56 ) )
----
4059

query I rowsort
SELECT 1 * - 2 * 76 AS col1
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT + ( + 94 ) + + 45 * CAST( - - 33 AS SIGNED )
----
1579

skipif mysql # not compatible
query I rowsort label-3669
SELECT + ( + 94 ) + + 45 * CAST ( - - 33 AS INTEGER )
----
1579

query I rowsort
SELECT 98 + - - 89
----
187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3671
SELECT - COUNT( * ) / - COUNT( * ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT - COUNT ( * ) / - COUNT ( * ) / + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 86 AS col2, + 79
----
86
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT 90 + - COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3673
SELECT 90 + - COUNT ( * ) AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT ALL - CAST( - 75 AS SIGNED ) * ( + 97 )
----
7275

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL - CAST ( - 75 AS INTEGER ) * ( + 97 )
----
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT - + SUM( 59 ) + - 31 col2
----
-90

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT - + SUM ( 59 ) + - 31 col2
----
-90

query I rowsort
SELECT ALL - + 5 + - 88
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT - 86 + + - SUM( + 18 ) + + + 87 * + - 49
----
-4367

skipif mysql # not compatible
query I rowsort label-3677
SELECT - 86 + + - SUM ( + 18 ) + + + 87 * + - 49
----
-4367

query I rowsort
SELECT ALL + 54 + - + 75 col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT ALL + + 92 * - - CASE - 15 WHEN SUM( 44 ) * + 61 + + 4 THEN + + 26 WHEN 29 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL + + 92 * - - CASE - 15 WHEN SUM ( 44 ) * + 61 + + 4 THEN + + 26 WHEN 29 THEN NULL ELSE NULL END col2
----
NULL

query I rowsort
SELECT 69 * 75 + 69 AS col2
----
5244

query I rowsort
SELECT DISTINCT + 5 * + 58 AS col2
----
290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3682
SELECT - 25 DIV - 65 * - MIN( - 9 ) + 78
----
78

skipif mysql # not compatible
query I rowsort label-3682
SELECT - 25 / - 65 * - MIN ( - 9 ) + 78
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3683
SELECT - CAST( - MAX( DISTINCT 60 ) AS SIGNED ) * + 72
----
4320

skipif mysql # not compatible
query I rowsort label-3683
SELECT - CAST ( - MAX ( DISTINCT 60 ) AS INTEGER ) * + 72
----
4320

query II rowsort
SELECT ALL - 80, - 54 AS col1
----
-80
-54

query I rowsort
SELECT ALL + 38 * - - 60 + + - 12
----
2268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3686
SELECT 39 + + COALESCE ( 29, + 52 * 95 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT 39 + + COALESCE ( 29, + 52 * 95 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT ALL - 22 / + CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - 22 / + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT + 97 * + 14
----
1358

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3689
SELECT ALL - 59 AS col1, CAST( - - 22 AS SIGNED )
----
-59
22

skipif mysql # not compatible
query II rowsort label-3689
SELECT ALL - 59 AS col1, CAST ( - - 22 AS INTEGER )
----
-59
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ALL - MAX( ALL 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL - MAX ( ALL 44 )
----
-44

query I rowsort
SELECT DISTINCT 4 * - - 53 * 91 AS col2
----
19292

query I rowsort
SELECT ALL 21 * + 90 * - 42
----
-79380

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT COUNT( * ) * ( - COUNT( * ) ) * 64 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-3693
SELECT COUNT ( * ) * ( - COUNT ( * ) ) * 64 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT COUNT( ALL - + 70 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3694
SELECT COUNT ( ALL - + 70 ) AS col2
----
1

query I rowsort
SELECT 60 * + 71 * + + 82 + - + 7 + + 47
----
349360

query II rowsort
SELECT DISTINCT 68 * + + 51 AS col0, 39 + 52 - 64 AS col0
----
3468
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3697
SELECT + 97 DIV - 10
----
-9

skipif mysql # not compatible
query I rowsort label-3697
SELECT + 97 / - 10
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT 15 * + + 99 + - + COUNT( * ) + + COUNT( ALL 45 ) * - 40 * 26
----
444

skipif mysql # not compatible
query I rowsort label-3698
SELECT 15 * + + 99 + - + COUNT ( * ) + + COUNT ( ALL 45 ) * - 40 * 26
----
444

query I rowsort
SELECT DISTINCT 32 * - 1 * + 28 AS col2
----
-896

query I rowsort
SELECT DISTINCT + 37 col1
----
37

query I rowsort
SELECT DISTINCT 8 * - 53 * - - 6 AS col0
----
-2544

onlyif mysql # aggregate syntax: 
query II rowsort label-3702
SELECT ALL 25 * - + 57 AS col1, 67 * + COUNT( ALL - 96 ) AS col1
----
-1425
67

skipif mysql # not compatible
query II rowsort label-3702
SELECT ALL 25 * - + 57 AS col1, 67 * + COUNT ( ALL - 96 ) AS col1
----
-1425
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT + ( - COUNT( * ) ) * - 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3703
SELECT + ( - COUNT ( * ) ) * - 49 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT + ( - COUNT( * ) ) + - 64 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-3704
SELECT + ( - COUNT ( * ) ) + - 64 AS col1
----
-65

query I rowsort
SELECT - 31 + - ( - + 59 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT + ( - COUNT( * ) ) * + 17 * + 7 + 14
----
-105

skipif mysql # not compatible
query I rowsort label-3706
SELECT + ( - COUNT ( * ) ) * + 17 * + 7 + 14
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3707
SELECT ALL - COUNT( * ) + - 31 + + CAST( NULL AS SIGNED ) * + + 10, COUNT( * ) * + + 91 AS col1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-3707
SELECT ALL - COUNT ( * ) + - 31 + + CAST ( NULL AS INTEGER ) * + + 10, COUNT ( * ) * + + 91 AS col1
----
NULL
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3708
SELECT ALL COUNT( * ) DIV + + 50 * 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL COUNT ( * ) / + + 50 * 15 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT ( - COUNT( - 99 ) ) + - + 99 * + NULLIF ( + 33, 85 ) - MIN( ALL 95 ) AS col1
----
-3363

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT ( - COUNT ( - 99 ) ) + - + 99 * + NULLIF ( + 33, 85 ) - MIN ( ALL 95 ) AS col1
----
-3363

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT ALL + COUNT( * ) + - + 60 + - 36
----
-95

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + COUNT ( * ) + - + 60 + - 36
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT DISTINCT 21 * 14 * 28 * - COUNT( DISTINCT - - 92 ) AS col2
----
-8232

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT 21 * 14 * 28 * - COUNT ( DISTINCT - - 92 ) AS col2
----
-8232

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT DISTINCT + ( + COUNT( * ) ) + 15 * + 73
----
1096

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT + ( + COUNT ( * ) ) + 15 * + 73
----
1096

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT DISTINCT COUNT( * ) + 1 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT COUNT ( * ) + 1 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3714
SELECT - CASE + + 48 WHEN - CAST( + - MIN( + + 10 ) AS DECIMAL ) THEN 85 ELSE - 55 END AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3714
SELECT - CASE + + 48 WHEN - CAST ( + - MIN ( + + 10 ) AS REAL ) THEN 85 ELSE - 55 END AS col0
----
55

query II rowsort
SELECT ALL - 78 + + 91, 72 * - - 28 AS col0
----
13
2016

query I rowsort
SELECT - 79 * + 10 + + + 45
----
-745

query I rowsort
SELECT ALL ( - NULLIF ( 29, 47 ) )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3718
SELECT ALL - 17 - + - 11 DIV - COALESCE ( + COUNT( * ), - COUNT( * ) - + 8 DIV 47 )
----
-28

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL - 17 - + - 11 / - COALESCE ( + COUNT ( * ), - COUNT ( * ) - + 8 / 47 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT ALL - COUNT( 72 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL - COUNT ( 72 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3720
SELECT DISTINCT - 73 DIV - 68, 93 AS col2
----
1
93

skipif mysql # not compatible
query II rowsort label-3720
SELECT DISTINCT - 73 / - 68, 93 AS col2
----
1
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3721
SELECT DISTINCT + + 14 * + COUNT( * ), COUNT( * ) + + + 25 * - 34 AS col1
----
14
-849

skipif mysql # not compatible
query II rowsort label-3721
SELECT DISTINCT + + 14 * + COUNT ( * ), COUNT ( * ) + + + 25 * - 34 AS col1
----
14
-849

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + COUNT( DISTINCT + ( + 20 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3722
SELECT + COUNT ( DISTINCT + ( + 20 ) )
----
1

query II rowsort
SELECT - 95 * + 48 * + 86 * - + 60 AS col0, 44 * 7 AS col1
----
23529600
308

query I rowsort
SELECT DISTINCT 34 * + 63 AS col0
----
2142

query I rowsort
SELECT - 21 + - 93
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3726
SELECT + COUNT( * ) AS col0, ( - ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3726
SELECT + COUNT ( * ) AS col0, ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
1
NULL

query I rowsort
SELECT - ( 73 ) * 34 + - - 65 AS col2
----
-2417

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT - COUNT( * ) * - - 76
----
-76

skipif mysql # not compatible
query I rowsort label-3728
SELECT - COUNT ( * ) * - - 76
----
-76

query I rowsort
SELECT + ( - 18 ) * 9 * - CASE 44 WHEN + 33 THEN - ( 77 ) WHEN + 31 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT + 44 col1, - 11 col2
----
44
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT + MAX( 39 ) col0
----
39

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT + MAX ( 39 ) col0
----
39

query II rowsort
SELECT DISTINCT + 2 AS col2, ( + 53 ) + - 70
----
2
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3733
SELECT ALL 6 * + 71 * 89 + - COUNT( * ) + - + 67 + - - CASE - - ( - CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) * 42 + - COALESCE ( + NULLIF ( 46, + 69 ), - CAST( NULL AS DECIMAL ) + - 91 + + + 36 ) * 56 / - + 55 * 37 THEN - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL 6 * + 71 * 89 + - COUNT ( * ) + - + 67 + - - CASE - - ( - CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) * 42 + - COALESCE ( + NULLIF ( 46, + 69 ), - CAST ( NULL AS REAL ) + - 91 + + + 36 ) * 56 / - + 55 * 37 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3734
SELECT ALL ( - + ( + 51 ) ) * + 16 - + - 49 DIV + 53 + - + COUNT( * ) * - 91, + 67 + - 34 * - - 73 * - - 90 AS col0
----
-725
-223313

skipif mysql # not compatible
query II rowsort label-3734
SELECT ALL ( - + ( + 51 ) ) * + 16 - + - 49 / + 53 + - + COUNT ( * ) * - 91, + 67 + - 34 * - - 73 * - - 90 AS col0
----
-725
-223313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3735
SELECT DISTINCT + COALESCE ( 45, + 87, - + 24 * - COALESCE ( - CAST( 9 AS SIGNED ), MAX( 57 ) ) ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT + COALESCE ( 45, + 87, - + 24 * - COALESCE ( - CAST ( 9 AS INTEGER ), MAX ( 57 ) ) ) AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3736
SELECT ALL - 2 * + COUNT( ( 76 ) ) DIV COUNT( * ) + - 89 AS col2, - CAST( NULL AS SIGNED ) * - + 13
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-3736
SELECT ALL - 2 * + COUNT ( ( 76 ) ) / COUNT ( * ) + - 89 AS col2, - CAST ( NULL AS INTEGER ) * - + 13
----
-91
NULL

query I rowsort
SELECT + 55 * - - 98 AS col2
----
5390

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT DISTINCT - 48 DIV + 28 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT - 48 / + 28 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT + SUM( - 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-3739
SELECT + SUM ( - 32 ) AS col1
----
-32

query I rowsort
SELECT + ( - - 95 )
----
95

query I rowsort
SELECT + 90 - - - CASE + 89 WHEN - + 33 THEN - 96 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3742
SELECT NULLIF ( + 9, + 97 ), CAST( NULL AS SIGNED ) AS col1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3742
SELECT NULLIF ( + 9, + 97 ), CAST ( NULL AS INTEGER ) AS col1
----
9
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT + 7 DIV - 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3743
SELECT + 7 / - 44 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT ALL 62 * - 66 + + + COUNT( * ) AS col1
----
-4091

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL 62 * - 66 + + + COUNT ( * ) AS col1
----
-4091

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3745
SELECT + 19 - - ( + COALESCE ( + + 97, + 55 * 76 + - + 46 ) ) * + CAST( NULL AS SIGNED ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT + 19 - - ( + COALESCE ( + + 97, + 55 * 76 + - + 46 ) ) * + CAST ( NULL AS INTEGER ) - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT SUM( + - 15 ) col1
----
-15

skipif mysql # not compatible
query I rowsort label-3746
SELECT SUM ( + - 15 ) col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3747
SELECT DISTINCT + COALESCE ( 15, + COALESCE ( + - 71, + 84 * 60 DIV - 79 ) * - 38 * COUNT( * ) + + COUNT( * ) ) * 68 col1
----
1020

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT + COALESCE ( 15, + COALESCE ( + - 71, + 84 * 60 / - 79 ) * - 38 * COUNT ( * ) + + COUNT ( * ) ) * 68 col1
----
1020

query I rowsort
SELECT ALL 80 + - + 19
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT + 50 - - SUM( DISTINCT + 84 ) AS col2
----
134

skipif mysql # not compatible
query I rowsort label-3749
SELECT + 50 - - SUM ( DISTINCT + 84 ) AS col2
----
134

query I rowsort
SELECT + 93 + - 60
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT ALL COUNT( + 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL COUNT ( + 17 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT + 7 + - - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-3752
SELECT + 7 + - - COUNT ( * )
----
8

query I rowsort
SELECT + 77 * 21
----
1617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3754
SELECT + - 16 * + CAST( NULL AS SIGNED ) - - 40 * + - 52 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT + - 16 * + CAST ( NULL AS INTEGER ) - - 40 * + - 52 col0
----
NULL

query I rowsort
SELECT + + 41 + - - 9 - + 79 * + 83 AS col0
----
-6507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3756
SELECT + 34 * + COUNT( * ) * NULLIF ( 25, 46 * + 90 * - 23 + CAST( + COUNT( * ) AS SIGNED ) )
----
850

skipif mysql # not compatible
query I rowsort label-3756
SELECT + 34 * + COUNT ( * ) * NULLIF ( 25, 46 * + 90 * - 23 + CAST ( + COUNT ( * ) AS INTEGER ) )
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT + - MIN( DISTINCT 98 ) + + ( 59 ) + - 47 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-3757
SELECT + - MIN ( DISTINCT 98 ) + + ( 59 ) + - 47 AS col0
----
-86

query I rowsort
SELECT - + 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ALL COUNT( * ) * - 76
----
-76

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL COUNT ( * ) * - 76
----
-76

query I rowsort
SELECT - 93 + + 66
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3761
SELECT + COUNT( * ) * + - 55 DIV - - 75
----
0

skipif mysql # not compatible
query I rowsort label-3761
SELECT + COUNT ( * ) * + - 55 / - - 75
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3762
SELECT 97 * + COUNT( * ) + CAST( + 88 AS SIGNED ) * + 1
----
185

skipif mysql # not compatible
query I rowsort label-3762
SELECT 97 * + COUNT ( * ) + CAST ( + 88 AS INTEGER ) * + 1
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3763
SELECT + 15 DIV - ( - 16 ) * - - MIN( 87 )
----
0

skipif mysql # not compatible
query I rowsort label-3763
SELECT + 15 / - ( - 16 ) * - - MIN ( 87 )
----
0

query II rowsort
SELECT 76 * 0, 69 + 86 AS col2
----
0
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL - COALESCE ( + COUNT( * ), - 98 * 57 * 9 * - 31 - - 6 - + 94 * - 95, 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL - COALESCE ( + COUNT ( * ), - 98 * 57 * 9 * - 31 - - 6 - + 94 * - 95, 38 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3766
SELECT 98 AS col1, COUNT( * ) * + 81 + + + 73 col0
----
98
154

skipif mysql # not compatible
query II rowsort label-3766
SELECT 98 AS col1, COUNT ( * ) * + 81 + + + 73 col0
----
98
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT COUNT( + - 86 ) * - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3767
SELECT COUNT ( + - 86 ) * - 0 AS col0
----
0

query I rowsort
SELECT ALL - 24 * - 97 AS col1
----
2328

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT 66 DIV + - 5
----
-13

skipif mysql # not compatible
query I rowsort label-3769
SELECT 66 / + - 5
----
-13

query I rowsort
SELECT DISTINCT 91 + ( - 70 ) AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT 76 * - - 10 * CAST( 91 AS SIGNED ) col2
----
69160

skipif mysql # not compatible
query I rowsort label-3771
SELECT 76 * - - 10 * CAST ( 91 AS INTEGER ) col2
----
69160

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT DISTINCT - MIN( - + 12 ) + 48 * - NULLIF ( - + 42, - COUNT( * ) ) * 33 + 81 AS col0
----
66621

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - MIN ( - + 12 ) + 48 * - NULLIF ( - + 42, - COUNT ( * ) ) * 33 + 81 AS col0
----
66621

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ALL - CASE - 84 WHEN NULLIF ( - COUNT( * ), - 40 * - - 75 * - + 42 / - 44 ) THEN 22 / 67 + - - SUM( 11 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL - CASE - 84 WHEN NULLIF ( - COUNT ( * ), - 40 * - - 75 * - + 42 / - 44 ) THEN 22 / 67 + - - SUM ( 11 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3774
SELECT + 53 AS col0, 22 * - CAST( NULL AS SIGNED ) + - - 82 / + 61 * + 76 AS col0
----
53
NULL

skipif mysql # not compatible
query II rowsort label-3774
SELECT + 53 AS col0, 22 * - CAST ( NULL AS INTEGER ) + - - 82 / + 61 * + 76 AS col0
----
53
NULL

query II rowsort
SELECT + 7 AS col0, - 8 AS col1
----
7
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ALL - 62 * + 37 * + COALESCE ( + 70, 81 * - MAX( ALL 8 ) * + COUNT( + - 22 ) ) * - + 0
----
0

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL - 62 * + 37 * + COALESCE ( + 70, 81 * - MAX ( ALL 8 ) * + COUNT ( + - 22 ) ) * - + 0
----
0

query I rowsort
SELECT DISTINCT + 7 + + - 35 AS col0
----
-28

query I rowsort
SELECT DISTINCT - 53 + + 20
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-3779
SELECT ALL + 89 + + + ( + 18 ) DIV - 91
----
89

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL + 89 + + + ( + 18 ) / - 91
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT ALL - COUNT( * ) + - ( + COUNT( * ) ) * - - 2 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL - COUNT ( * ) + - ( + COUNT ( * ) ) * - - 2 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT DISTINCT + 8 + + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT + 8 + + COUNT ( * )
----
9

query II rowsort
SELECT 30 col1, + 53
----
30
53

query I rowsort
SELECT ALL - 35 + + 57
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3784
SELECT ALL 82, - 40 AS col0, - + 18 - - 69 + CAST( NULL AS SIGNED ) * + AVG ( - 0 ) / + 68 AS col1
----
82
-40
NULL

skipif mysql # not compatible
query III rowsort label-3784
SELECT ALL 82, - 40 AS col0, - + 18 - - 69 + CAST ( NULL AS INTEGER ) * + AVG ( - 0 ) / + 68 AS col1
----
82
-40
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3785
SELECT ALL - + 10 DIV + + 41 + - 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL - + 10 / + + 41 + - 35 AS col0
----
-35

query I rowsort
SELECT + 74 + - NULLIF ( - 83, 66 + - - 49 ) AS col2
----
157

onlyif mysql # aggregate syntax: 
query II rowsort label-3787
SELECT DISTINCT 95 AS col1, COUNT( * ) * - COUNT( * ) + - + 45 + + + 70 AS col1
----
95
24

skipif mysql # not compatible
query II rowsort label-3787
SELECT DISTINCT 95 AS col1, COUNT ( * ) * - COUNT ( * ) + - + 45 + + + 70 AS col1
----
95
24

query II rowsort
SELECT DISTINCT + 32 col0, + 77 col1
----
32
77

query II rowsort
SELECT - 1, 89 AS col1
----
-1
89

onlyif mysql # aggregate syntax: 
query III rowsort label-3790
SELECT ALL 23, - 38 + - 91 * 96 AS col0, - COALESCE ( ( - 96 ), - 18 + - - 16, COUNT( * ) + - COUNT( * ) ) AS col0
----
23
-8774
96

skipif mysql # not compatible
query III rowsort label-3790
SELECT ALL 23, - 38 + - 91 * 96 AS col0, - COALESCE ( ( - 96 ), - 18 + - - 16, COUNT ( * ) + - COUNT ( * ) ) AS col0
----
23
-8774
96

query I rowsort
SELECT + COALESCE ( + 46, + 39, - - 25 )
----
46

query I rowsort
SELECT 83 * + 70 + - 2 AS col1
----
5808

onlyif mysql # aggregate syntax: 
query II rowsort label-3793
SELECT ALL 62, COUNT( * ) * 23 AS col1
----
62
23

skipif mysql # not compatible
query II rowsort label-3793
SELECT ALL 62, COUNT ( * ) * 23 AS col1
----
62
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3794
SELECT + 16 * 15 * + - CAST( 46 AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT + 16 * 15 * + - CAST ( 46 AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT - COALESCE ( - COUNT( * ), - 24 * - COUNT( * ), + - 77 )
----
1

skipif mysql # not compatible
query I rowsort label-3795
SELECT - COALESCE ( - COUNT ( * ), - 24 * - COUNT ( * ), + - 77 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3796
SELECT ALL 46, ( + COUNT( * ) ) AS col0
----
46
1

skipif mysql # not compatible
query II rowsort label-3796
SELECT ALL 46, ( + COUNT ( * ) ) AS col0
----
46
1

query I rowsort
SELECT ( - 52 ) * - 14 AS col1
----
728

onlyif mysql # DIV for integer division: 
query I rowsort label-3798
SELECT ALL 3 * - 7 DIV - 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL 3 * - 7 / - 84 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3799
SELECT DISTINCT COUNT( * ) + 46 + - - COALESCE ( MAX( DISTINCT - 34 ), + - 22, - - NULLIF ( + + 43, + 81 + + NULLIF ( + - ( - - 22 ), 47 ) + - 25 DIV + COUNT( * ) ) + 18 * - + 53 * - COUNT( * ) ) DIV + 40 * 80 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT COUNT ( * ) + 46 + - - COALESCE ( MAX ( DISTINCT - 34 ), + - 22, - - NULLIF ( + + 43, + 81 + + NULLIF ( + - ( - - 22 ), 47 ) + - 25 / + COUNT ( * ) ) + 18 * - + 53 * - COUNT ( * ) ) / + 40 * 80 AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT ALL 38 + 47 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL 38 + 47 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT MIN( 37 ) * + ( - 77 ) * - 31
----
88319

skipif mysql # not compatible
query I rowsort label-3801
SELECT MIN ( 37 ) * + ( - 77 ) * - 31
----
88319

query I rowsort
SELECT ALL 50 + 43
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT DISTINCT - COUNT( * ) + - 29 * - + 95
----
2754

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT - COUNT ( * ) + - 29 * - + 95
----
2754

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL 2 + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL 2 + COUNT ( * )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT + 60 DIV + 82 * + - 66 * - - 56 - + 25 + + 67 * - - 58
----
3861

skipif mysql # not compatible
query I rowsort label-3805
SELECT + 60 / + 82 * + - 66 * - - 56 - + 25 + + 67 * - - 58
----
3861

query I rowsort
SELECT - 98 * - + 23 + + ( - 69 )
----
2185

query I rowsort
SELECT DISTINCT 37 + + - ( 65 ) + 25 * + 38 AS col0
----
922

onlyif mysql # DIV for integer division: 
query I rowsort label-3808
SELECT 14 DIV - ( + 46 )
----
0

skipif mysql # not compatible
query I rowsort label-3808
SELECT 14 / - ( + 46 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3809
SELECT ALL + COUNT( * ) + - 40 * + + COUNT( * ) * + - 93 * - NULLIF ( 90, + CASE - + 54 WHEN 66 THEN + - ( + 99 ) ELSE - + 48 * + COUNT( * ) / - + ( - COUNT( * ) ) + - ( - + 1 ) * + + 71 END + - 99 + - CAST( + + COUNT( * ) AS SIGNED ) * + + 16 ) * + ( + 78 ) + 18
----
-26114381

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL + COUNT ( * ) + - 40 * + + COUNT ( * ) * + - 93 * - NULLIF ( 90, + CASE - + 54 WHEN 66 THEN + - ( + 99 ) ELSE - + 48 * + COUNT ( * ) / - + ( - COUNT ( * ) ) + - ( - + 1 ) * + + 71 END + - 99 + - CAST ( + + COUNT ( * ) AS INTEGER ) * + + 16 ) * + ( + 78 ) + 18
----
-26114381

onlyif mysql # DIV for integer division: 
query I rowsort label-3810
SELECT ALL + CASE + + 3 WHEN - 83 * - 23 * - 9 THEN NULL ELSE - 47 END DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL + CASE + + 3 WHEN - 83 * - 23 * - 9 THEN NULL ELSE - 47 END / + 64
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT ( - 94 ) DIV 39 col1
----
-2

skipif mysql # not compatible
query I rowsort label-3811
SELECT ( - 94 ) / 39 col1
----
-2

query II rowsort
SELECT DISTINCT 1 + 24, 44 AS col0
----
25
44

query I rowsort
SELECT DISTINCT + 76 * + - 46 * + 64
----
-223744

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT 4 + COUNT( * ) + 27 * - - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-3814
SELECT 4 + COUNT ( * ) + 27 * - - COUNT ( * )
----
32

query I rowsort
SELECT 10 * 80 AS col0
----
800

query I rowsort
SELECT ALL - ( - - 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT ALL - 4 - CASE - + 67 WHEN + 39 THEN NULL WHEN - + 64 * - + ( - COUNT( * ) ) THEN + ( ( + 16 ) ) END + + COUNT( * ) * ( + 78 ) / COUNT( * ) * - 68 + - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL - 4 - CASE - + 67 WHEN + 39 THEN NULL WHEN - + 64 * - + ( - COUNT ( * ) ) THEN + ( ( + 16 ) ) END + + COUNT ( * ) * ( + 78 ) / COUNT ( * ) * - 68 + - 98 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3818
SELECT + CAST( + + AVG ( 36 ) AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-3818
SELECT + CAST ( + + AVG ( 36 ) AS INTEGER )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT SUM( - COALESCE ( 14, - 82 ) ) + 35 * + CASE - - ( ( - 32 ) ) WHEN - ( COUNT( - + 34 ) ) + + + 30 THEN CASE 34 WHEN 66 * ( - 41 ) + + - MIN( DISTINCT - 46 ) / + + COUNT( DISTINCT - 95 ) THEN NULL WHEN - 26 / 37 + 23 + - 82 THEN - 13 * COUNT( * ) ELSE 18 END * 85 WHEN + 35 + 13 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT SUM ( - COALESCE ( 14, - 82 ) ) + 35 * + CASE - - ( ( - 32 ) ) WHEN - ( COUNT ( - + 34 ) ) + + + 30 THEN CASE 34 WHEN 66 * ( - 41 ) + + - MIN ( DISTINCT - 46 ) / + + COUNT ( DISTINCT - 95 ) THEN NULL WHEN - 26 / 37 + 23 + - 82 THEN - 13 * COUNT ( * ) ELSE 18 END * 85 WHEN + 35 + 13 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT DISTINCT - 38 * - ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT - 38 * - ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT COUNT( * ) + + 93 + + 14
----
108

skipif mysql # not compatible
query I rowsort label-3821
SELECT COUNT ( * ) + + 93 + + 14
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-3822
SELECT ALL - + 83 * 50 * - - 26 * + ( COUNT( + 96 ) ) * ( - + 62 ) AS col1, - 27 AS col1
----
6689800
-27

skipif mysql # not compatible
query II rowsort label-3822
SELECT ALL - + 83 * 50 * - - 26 * + ( COUNT ( + 96 ) ) * ( - + 62 ) AS col1, - 27 AS col1
----
6689800
-27

query I rowsort
SELECT - 98 - + + 36 + 60 * - 43 AS col2
----
-2714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3824
SELECT DISTINCT COALESCE ( + 3, + CASE + + 87 WHEN - + CAST( - 60 AS SIGNED ) / - 44 + - - 4 - - 68 + - + 40 THEN 31 - 75 END ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT COALESCE ( + 3, + CASE + + 87 WHEN - + CAST ( - 60 AS INTEGER ) / - 44 + - - 4 - - 68 + - + 40 THEN 31 - 75 END ) AS col1
----
3

query I rowsort
SELECT DISTINCT - - ( - 31 ) * + 69 AS col2
----
-2139

query I rowsort
SELECT DISTINCT + NULLIF ( + - 44, - ( - 20 ) )
----
-44

query I rowsort
SELECT ALL ( 38 ) AS col2
----
38

query I rowsort
SELECT ALL COALESCE ( - + 55, + 50, 43 ) AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3829
SELECT 39 + 51 + MIN( DISTINCT 9 ) DIV 72 + + COUNT( * ) - - 94 * - COALESCE ( + 12, 31, - - 46 )
----
-1037

skipif mysql # not compatible
query I rowsort label-3829
SELECT 39 + 51 + MIN ( DISTINCT 9 ) / 72 + + COUNT ( * ) - - 94 * - COALESCE ( + 12, 31, - - 46 )
----
-1037

query I rowsort
SELECT + ( + 38 ) + - 51 + - 14
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT - MAX( ALL - - 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-3831
SELECT - MAX ( ALL - - 65 ) AS col1
----
-65

onlyif mysql # DIV for integer division: 
query III rowsort label-3832
SELECT - - 40 DIV 48 AS col0, 17 AS col0, 87 AS col0
----
0
17
87

skipif mysql # not compatible
query III rowsort label-3832
SELECT - - 40 / 48 AS col0, 17 AS col0, 87 AS col0
----
0
17
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL 72 + + COUNT( * ) - 79
----
-6

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL 72 + + COUNT ( * ) - 79
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3834
SELECT ALL - CAST( + - 39 AS SIGNED ) + - - ( - 21 )
----
18

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL - CAST ( + - 39 AS INTEGER ) + - - ( - 21 )
----
18

query I rowsort
SELECT + ( + 47 ) + - 44
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3836
SELECT ALL COUNT( DISTINCT + 27 ) + + SUM( DISTINCT 44 ), ( + 85 ) col2
----
45
85

skipif mysql # not compatible
query II rowsort label-3836
SELECT ALL COUNT ( DISTINCT + 27 ) + + SUM ( DISTINCT 44 ), ( + 85 ) col2
----
45
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT - SUM( DISTINCT + - 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-3837
SELECT - SUM ( DISTINCT + - 92 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT DISTINCT CASE + 42 WHEN + SUM( + 35 ) * NULLIF ( - + COALESCE ( + MAX( DISTINCT - 87 ), 40, + - 5 + 16 ), + COUNT( + - 53 ) ) THEN 36 + - 3 / - ( + 88 ) / - - 8 * AVG ( ALL 83 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT CASE + 42 WHEN + SUM ( + 35 ) * NULLIF ( - + COALESCE ( + MAX ( DISTINCT - 87 ), 40, + - 5 + 16 ), + COUNT ( + - 53 ) ) THEN 36 + - 3 / - ( + 88 ) / - - 8 * AVG ( ALL 83 ) END AS col2
----
NULL

query I rowsort
SELECT ALL 32 + 49 AS col2
----
81

query I rowsort
SELECT ALL 3 + + - 82 AS col2
----
-79

query I rowsort
SELECT DISTINCT 62 + - + ( - 34 ) + 20
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT + SUM( 49 )
----
49

skipif mysql # not compatible
query I rowsort label-3842
SELECT + SUM ( 49 )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT 7 DIV 81 + + - 88
----
-88

skipif mysql # not compatible
query I rowsort label-3843
SELECT 7 / 81 + + - 88
----
-88

query I rowsort
SELECT + ( - 27 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3845
SELECT ALL + 56 AS col1, COALESCE ( 15, + + COUNT( * ) DIV + - 84 * - + 10 + - + CAST( NULL AS SIGNED ) ) AS col1
----
56
15

skipif mysql # not compatible
query II rowsort label-3845
SELECT ALL + 56 AS col1, COALESCE ( 15, + + COUNT ( * ) / + - 84 * - + 10 + - + CAST ( NULL AS INTEGER ) ) AS col1
----
56
15

onlyif mysql # aggregate syntax: 
query II rowsort label-3846
SELECT ALL COUNT( * ) * - MIN( DISTINCT + + 59 ) AS col2, - COUNT( + 11 ) + + 84 col1
----
-59
83

skipif mysql # not compatible
query II rowsort label-3846
SELECT ALL COUNT ( * ) * - MIN ( DISTINCT + + 59 ) AS col2, - COUNT ( + 11 ) + + 84 col1
----
-59
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT + ( + + SUM( ALL + - 32 ) ) * 78 AS col0
----
-2496

skipif mysql # not compatible
query I rowsort label-3847
SELECT + ( + + SUM ( ALL + - 32 ) ) * 78 AS col0
----
-2496

query II rowsort
SELECT + NULLIF ( + - 54, - NULLIF ( - - 76, 40 + + - 82 ) ) AS col1, 77
----
-54
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3849
SELECT DISTINCT AVG ( - 70 ) * - CAST( NULL AS SIGNED ) * - - 67 + 36 + + + 53 + - 37 + + 76 + MAX( ALL + COALESCE ( + + 77, + - ( - ( - CAST( NULL AS SIGNED ) ) ) / 25 * + 87 * - 64 ) ) * 32 - COALESCE ( - 15, - 63 * 11 ) * + 80 / - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT AVG ( - 70 ) * - CAST ( NULL AS INTEGER ) * - - 67 + 36 + + + 53 + - 37 + + 76 + MAX ( ALL + COALESCE ( + + 77, + - ( - ( - CAST ( NULL AS INTEGER ) ) ) / 25 * + 87 * - 64 ) ) * 32 - COALESCE ( - 15, - 63 * 11 ) * + 80 / - 79 AS col2
----
NULL

query I rowsort
SELECT + 25 * 5
----
125

query II rowsort
SELECT + ( - 10 ) + - - 12 AS col2, 31 AS col0
----
2
31

query II rowsort
SELECT + 78 AS col0, - 6 AS col2
----
78
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT + 73 * - COUNT( * ) * 63 AS col1
----
-4599

skipif mysql # not compatible
query I rowsort label-3853
SELECT + 73 * - COUNT ( * ) * 63 AS col1
----
-4599

query I rowsort
SELECT - 43 * 54
----
-2322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT - 10 * 12 + - ( + 23 ) + + CAST( + + 25 AS SIGNED ) AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-3855
SELECT - 10 * 12 + - ( + 23 ) + + CAST ( + + 25 AS INTEGER ) AS col0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT + SUM( 85 ) * - 14
----
-1190

skipif mysql # not compatible
query I rowsort label-3856
SELECT + SUM ( 85 ) * - 14
----
-1190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT + - CAST( - 23 AS SIGNED ) + + 76
----
99

skipif mysql # not compatible
query I rowsort label-3857
SELECT + - CAST ( - 23 AS INTEGER ) + + 76
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3858
SELECT + 29 AS col1, CASE - 21 WHEN + 75 + + - 29 THEN - 70 + - 94 + - CAST( NULL AS SIGNED ) * + 39 * - - NULLIF ( + - SUM( DISTINCT + 49 ), - 43 ) ELSE - NULLIF ( + 12, + 10 ) + 89 END
----
29
77

skipif mysql # not compatible
query II rowsort label-3858
SELECT + 29 AS col1, CASE - 21 WHEN + 75 + + - 29 THEN - 70 + - 94 + - CAST ( NULL AS INTEGER ) * + 39 * - - NULLIF ( + - SUM ( DISTINCT + 49 ), - 43 ) ELSE - NULLIF ( + 12, + 10 ) + 89 END
----
29
77

query II rowsort
SELECT ALL + - 70 AS col2, + 96 + - 58 + - 17 * 61 + 88
----
-70
-911

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ALL + - COUNT( * ) * - + 39
----
39

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL + - COUNT ( * ) * - + 39
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3861
SELECT DISTINCT 88 DIV - 86
----
-1

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT 88 / - 86
----
-1

query II rowsort
SELECT + 13 AS col2, COALESCE ( + 44, - 97 + + 72 - - 53 + + + 96 ) AS col2
----
13
44

query I rowsort
SELECT ALL + - 38 + - 81
----
-119

query II rowsort
SELECT - + 99, ( + 6 ) AS col1
----
-99
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT - SUM( ALL - 34 ) + - SUM( - 99 ) * - 63 - + COUNT( 50 )
----
-6204

skipif mysql # not compatible
query I rowsort label-3865
SELECT - SUM ( ALL - 34 ) + - SUM ( - 99 ) * - 63 - + COUNT ( 50 )
----
-6204

query I rowsort
SELECT - + 77 * + - 89
----
6853

query I rowsort
SELECT ALL + 72 + - CASE + 85 WHEN ( - 75 ) THEN + + 97 WHEN + 13 THEN + - ( - 87 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT DISTINCT + ( + 9 ) + 21 DIV 63 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT + ( + 9 ) + 21 / 63 AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT DISTINCT + 20 + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT + 20 + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL ( + - 29 ), ( - + 32 ) AS col2
----
-29
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3871
SELECT - CAST( NULL AS SIGNED ) * + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT - CAST ( NULL AS INTEGER ) * + 77 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 94 * - - 78 AS col1
----
7332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3873
SELECT - CASE + - 58 WHEN + 37 * 69 + - 33 THEN NULL ELSE COUNT( * ) + + + COUNT( * ) DIV 19 * + 77 END - - 95
----
94

skipif mysql # not compatible
query I rowsort label-3873
SELECT - CASE + - 58 WHEN + 37 * 69 + - 33 THEN NULL ELSE COUNT ( * ) + + + COUNT ( * ) / 19 * + 77 END - - 95
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL MAX( DISTINCT 98 ) * + 88
----
8624

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL MAX ( DISTINCT 98 ) * + 88
----
8624

query I rowsort
SELECT ALL 49 * - - 40 AS col2
----
1960

query I rowsort
SELECT - 55 - + 26 + 93 AS col1
----
12

query I rowsort
SELECT ALL - 3 - 82 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT DISTINCT ( - + MAX( + + 57 ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT ( - + MAX ( + + 57 ) ) AS col1
----
-57

query I rowsort
SELECT ALL + 31 * - 76
----
-2356

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT - ( MIN( DISTINCT 84 ) ) + + - COALESCE ( - 97, - 84 ) + 36
----
49

skipif mysql # not compatible
query I rowsort label-3880
SELECT - ( MIN ( DISTINCT 84 ) ) + + - COALESCE ( - 97, - 84 ) + 36
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3881
SELECT - 14 DIV - 41 - - 94
----
94

skipif mysql # not compatible
query I rowsort label-3881
SELECT - 14 / - 41 - - 94
----
94

query I rowsort
SELECT - 13 * - - 76
----
-988

query I rowsort
SELECT + ( + 43 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT CAST( + 94 AS SIGNED ) col1
----
94

skipif mysql # not compatible
query I rowsort label-3884
SELECT CAST ( + 94 AS INTEGER ) col1
----
94

query I rowsort
SELECT ALL + 88 * - 95 - - - 40
----
-8400

query I rowsort
SELECT + - ( + - 27 )
----
27

query I rowsort
SELECT DISTINCT + - 59 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL + COUNT( * ) * 84 - - COUNT( * ) + + 28 * - 54 + - SUM( + 8 ) AS col2
----
-1435

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + COUNT ( * ) * 84 - - COUNT ( * ) + + 28 * - 54 + - SUM ( + 8 ) AS col2
----
-1435

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT + COUNT( * ) * 63 * + ( 69 )
----
4347

skipif mysql # not compatible
query I rowsort label-3889
SELECT + COUNT ( * ) * 63 * + ( 69 )
----
4347

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT ALL - - CAST( - 16 AS SIGNED ) * - 15 + 3 AS col1
----
243

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL - - CAST ( - 16 AS INTEGER ) * - 15 + 3 AS col1
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT DISTINCT + + MAX( ALL + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT + + MAX ( ALL + 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT ALL ( 35 ) * + + SUM( DISTINCT + 74 ) + - COUNT( * ) * ( COALESCE ( 11, + 4 * 57 + + 73 ) ) AS col0
----
2579

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL ( 35 ) * + + SUM ( DISTINCT + 74 ) + - COUNT ( * ) * ( COALESCE ( 11, + 4 * 57 + + 73 ) ) AS col0
----
2579

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3893
SELECT COUNT( * ) DIV + NULLIF ( + - NULLIF ( + 13, - 18 + + - MAX( ALL - - 20 ) ), + - 49 + - + 84 + 66 DIV ( - ( ( 91 ) ) ) * - COALESCE ( - 78, - 33 * - - AVG ( - + 70 ) + 5 + - 27 DIV - - 18 ) + - 32 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3893
SELECT COUNT ( * ) / + NULLIF ( + - NULLIF ( + 13, - 18 + + - MAX ( ALL - - 20 ) ), + - 49 + - + 84 + 66 / ( - ( ( 91 ) ) ) * - COALESCE ( - 78, - 33 * - - AVG ( - + 70 ) + 5 + - 27 / - - 18 ) + - 32 ) col1
----
0

query I rowsort
SELECT + 43 * - 89 * 9 * + ( 10 ) AS col1
----
-344430

query I rowsort
SELECT ALL + 87 + 94 + 51
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT - + NULLIF ( 65, - COUNT( * ) * + + ( - 90 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-3896
SELECT - + NULLIF ( 65, - COUNT ( * ) * + + ( - 90 ) )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3897
SELECT ALL - 12 + 81 + + 89 DIV + MIN( DISTINCT 95 )
----
69

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL - 12 + 81 + + 89 / + MIN ( DISTINCT 95 )
----
69

query II rowsort
SELECT + 10 + 30, 30 + - - 42 col2
----
40
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3899
SELECT DISTINCT - 95 / - + CAST( NULL AS SIGNED ) * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT - 95 / - + CAST ( NULL AS INTEGER ) * + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT ALL - ( - 21 ) * MIN( DISTINCT - 35 )
----
-735

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL - ( - 21 ) * MIN ( DISTINCT - 35 )
----
-735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3901
SELECT - NULLIF ( CAST( - AVG ( DISTINCT 60 ) AS SIGNED ), + 19 - - 34 + + COALESCE ( - - 32, 38 + 37 + 13 * + COALESCE ( ( COUNT( * ) ), - - COUNT( * ) * 70 + 96 ) - - + 2 ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3901
SELECT - NULLIF ( CAST ( - AVG ( DISTINCT 60 ) AS INTEGER ), + 19 - - 34 + + COALESCE ( - - 32, 38 + 37 + 13 * + COALESCE ( ( COUNT ( * ) ), - - COUNT ( * ) * 70 + 96 ) - - + 2 ) ) AS col2
----
60

query I rowsort
SELECT DISTINCT + 93 + + - 34 AS col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3903
SELECT - 79 col0, - SUM( DISTINCT - ( 68 ) ) AS col1
----
-79
68

skipif mysql # not compatible
query II rowsort label-3903
SELECT - 79 col0, - SUM ( DISTINCT - ( 68 ) ) AS col1
----
-79
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3904
SELECT ( + - 31 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT ( + - 31 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 95 - 31
----
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3906
SELECT ALL 21 + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL 21 + + CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT ALL 35, 70 col2
----
35
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL + COUNT( * ) * - + 32
----
-32

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL + COUNT ( * ) * - + 32
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT ALL 85 * COUNT( * ) * SUM( 73 ) AS col0
----
6205

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL 85 * COUNT ( * ) * SUM ( 73 ) AS col0
----
6205

query II rowsort
SELECT ALL 47 AS col2, 59
----
47
59

query I rowsort
SELECT DISTINCT 20 * + 46 AS col2
----
920

onlyif mysql # aggregate syntax: 
query II rowsort label-3912
SELECT 4 + - - 44 + COUNT( ( + 33 ) ) AS col1, 23 AS col2
----
49
23

skipif mysql # not compatible
query II rowsort label-3912
SELECT 4 + - - 44 + COUNT ( ( + 33 ) ) AS col1, 23 AS col2
----
49
23

query I rowsort
SELECT 10 * - 50 AS col1
----
-500

query I rowsort
SELECT 14 + + + 90
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT ( - CAST( NULL AS SIGNED ) ) + + - ( 25 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT ( - CAST ( NULL AS INTEGER ) ) + + - ( 25 ) col1
----
NULL

query I rowsort
SELECT 29 + - NULLIF ( - 36, + 70 / + 60 + - 70 ) col0
----
65

query I rowsort
SELECT 36 * + 19 AS col1
----
684

query II rowsort
SELECT + 71, - 98 AS col0
----
71
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT 48 + + COUNT( * ) * - 64 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3919
SELECT 48 + + COUNT ( * ) * - 64 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL - COALESCE ( + 99, + 50 * - COUNT( * ), + 73 ) * + + 7 AS col2
----
-693

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL - COALESCE ( + 99, + 50 * - COUNT ( * ), + 73 ) * + + 7 AS col2
----
-693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3921
SELECT 19 + - CAST( - - 92 AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-3921
SELECT 19 + - CAST ( - - 92 AS INTEGER )
----
-73

query II rowsort
SELECT DISTINCT - 1 * 9 - - - 50 AS col1, 63 + + 58
----
-59
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT ALL 8 * - 36 + - COUNT( * )
----
-289

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL 8 * - 36 + - COUNT ( * )
----
-289

query II rowsort
SELECT 21 col1, + 40
----
21
40

query I rowsort
SELECT ALL + - 47 + 44 + 47 * 70 * - 8 AS col0
----
-26323

onlyif mysql # aggregate syntax: 
query II rowsort label-3926
SELECT + 25, + 27 * + COUNT( * ) * 26 AS col2
----
25
702

skipif mysql # not compatible
query II rowsort label-3926
SELECT + 25, + 27 * + COUNT ( * ) * 26 AS col2
----
25
702

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3927
SELECT ALL - MIN( DISTINCT - 78 ) + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL - MIN ( DISTINCT - 78 ) + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3928
SELECT - MAX( + 60 ) * + - CAST( NULL AS DECIMAL ) - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3928
SELECT - MAX ( + 60 ) * + - CAST ( NULL AS REAL ) - + 99
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3929
SELECT + - COUNT( * ) DIV - - COUNT( * ) + + 84 + - 68
----
15

skipif mysql # not compatible
query I rowsort label-3929
SELECT + - COUNT ( * ) / - - COUNT ( * ) + + 84 + - 68
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT + + MIN( + 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3930
SELECT + + MIN ( + 45 ) AS col1
----
45

query I rowsort
SELECT + - ( + 33 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3932
SELECT COALESCE ( 40, + - 68, - + 48 * NULLIF ( 50, - ( + COUNT( * ) ) + - CAST( NULL AS SIGNED ) ) + 74 ) * + + 13 + + ( COUNT( * ) ) + + 2 - - 96 - - 31 * + 2 AS col0
----
681

skipif mysql # not compatible
query I rowsort label-3932
SELECT COALESCE ( 40, + - 68, - + 48 * NULLIF ( 50, - ( + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) ) + 74 ) * + + 13 + + ( COUNT ( * ) ) + + 2 - - 96 - - 31 * + 2 AS col0
----
681

query I rowsort
SELECT DISTINCT - 5 + 62 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT 14 + + - 96 + - COUNT( * ) * + - 98 * + - 82 * + - ( - 33 )
----
-265270

skipif mysql # not compatible
query I rowsort label-3934
SELECT 14 + + - 96 + - COUNT ( * ) * + - 98 * + - 82 * + - ( - 33 )
----
-265270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3935
SELECT - CAST( NULL AS SIGNED ) * + AVG ( 9 ) - + 61 * - MIN( + - 2 ) * + 50 * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT - CAST ( NULL AS INTEGER ) * + AVG ( 9 ) - + 61 * - MIN ( + - 2 ) * + 50 * - 98
----
NULL

query I rowsort
SELECT ALL 38 * + 43 AS col2
----
1634

query I rowsort
SELECT ALL - 55 + 27 AS col1
----
-28

query I rowsort
SELECT DISTINCT COALESCE ( + + 17, + 15 ) AS col1
----
17

query I rowsort
SELECT DISTINCT 39 * - + ( - + ( + 47 ) )
----
1833

query I rowsort
SELECT 79 * - - 49 AS col0
----
3871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3941
SELECT 85 DIV - COALESCE ( + + COUNT( * ), + + ( - - 12 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-3941
SELECT 85 / - COALESCE ( + + COUNT ( * ), + + ( - - 12 ) )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3942
SELECT ALL 85 * CAST( + COUNT( * ) AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL 85 * CAST ( + COUNT ( * ) AS INTEGER )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3943
SELECT DISTINCT 9 DIV + + NULLIF ( 37, + 56 + + 6 )
----
0

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT 9 / + + NULLIF ( 37, + 56 + + 6 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3944
SELECT ALL 93 AS col1, + 51 DIV 93
----
93
0

skipif mysql # not compatible
query II rowsort label-3944
SELECT ALL 93 AS col1, + 51 / 93
----
93
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT ALL - 49 DIV 40 * + 91 * + 68
----
-6188

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL - 49 / 40 * + 91 * + 68
----
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT COUNT( * ) * 59 * 66
----
3894

skipif mysql # not compatible
query I rowsort label-3946
SELECT COUNT ( * ) * 59 * 66
----
3894

query II rowsort
SELECT ALL 47, + 41 AS col1
----
47
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3948
SELECT NULLIF ( + CAST( NULL AS SIGNED ), + 20 * - 3 / + SUM( 53 ) ) / - - 19 * + - CAST( NULL AS SIGNED ) + + 82 - + - 19 * + AVG ( - 3 ) * + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3948
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), + 20 * - 3 / + SUM ( 53 ) ) / - - 19 * + - CAST ( NULL AS INTEGER ) + + 82 - + - 19 * + AVG ( - 3 ) * + + 51
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3949
SELECT ALL - 76 * + CAST( 80 AS SIGNED ) AS col2
----
-6080

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL - 76 * + CAST ( 80 AS INTEGER ) AS col2
----
-6080

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT COUNT( ( + 64 ) ) * 14 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3950
SELECT COUNT ( ( + 64 ) ) * 14 AS col2
----
14

query II rowsort
SELECT 77 AS col0, 69
----
77
69

onlyif mysql # aggregate syntax: 
query II rowsort label-3952
SELECT - COUNT( * ), + 99 AS col0
----
-1
99

skipif mysql # not compatible
query II rowsort label-3952
SELECT - COUNT ( * ), + 99 AS col0
----
-1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ( - 18 ) - + 32 * COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-3953
SELECT ( - 18 ) - + 32 * COUNT ( * )
----
-50

query I rowsort
SELECT DISTINCT 30 * + - ( - 84 ) AS col0
----
2520

query I rowsort
SELECT 29 - 15
----
14

query I rowsort
SELECT 35 * - - 18
----
630

query I rowsort
SELECT DISTINCT + 84 * 42 + 10 - - - 74 * + 99
----
-3788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3958
SELECT DISTINCT - 19 * 70 * - NULLIF ( + - 30, + CAST( - 54 AS SIGNED ) ) * - - NULLIF ( SUM( DISTINCT - CASE + ( 53 ) WHEN - 23 * - + CASE + 71 WHEN - + 83 THEN NULL ELSE - - 87 - - + 23 + - - 33 END THEN NULL ELSE + NULLIF ( - 12, 16 ) END ), + CASE + 40 WHEN + MIN( ALL - 18 ) THEN NULL WHEN + NULLIF ( CASE COUNT( * ) WHEN - 69 * + 11 + + 15 + 15 THEN NULL WHEN - 42 THEN + 30 ELSE 12 END, NULLIF ( - 43, 70 * - COUNT( * ) ) ) THEN - 10 * + 72 + - 70 END ) + + 35 AS col2
----
-478765

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT - 19 * 70 * - NULLIF ( + - 30, + CAST ( - 54 AS INTEGER ) ) * - - NULLIF ( SUM ( DISTINCT - CASE + ( 53 ) WHEN - 23 * - + CASE + 71 WHEN - + 83 THEN NULL ELSE - - 87 - - + 23 + - - 33 END THEN NULL ELSE + NULLIF ( - 12, 16 ) END ), + CASE + 40 WHEN + MIN ( ALL - 18 ) THEN NULL WHEN + NULLIF ( CASE COUNT ( * ) WHEN - 69 * + 11 + + 15 + 15 THEN NULL WHEN - 42 THEN + 30 ELSE 12 END, NULLIF ( - 43, 70 * - COUNT ( * ) ) ) THEN - 10 * + 72 + - 70 END ) + + 35 AS col2
----
-478765

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT 22 DIV ( 22 ) + - 50
----
-49

skipif mysql # not compatible
query I rowsort label-3959
SELECT 22 / ( 22 ) + - 50
----
-49

query I rowsort
SELECT + NULLIF ( - 40, + 48 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT ALL - MIN( COALESCE ( + + 77, + 67 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL - MIN ( COALESCE ( + + 77, + 67 ) )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3962
SELECT + + 6 DIV COUNT( * ) col1, + 81 AS col0
----
6
81

skipif mysql # not compatible
query II rowsort label-3962
SELECT + + 6 / COUNT ( * ) col1, + 81 AS col0
----
6
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3963
SELECT + + 47 + - 79 * + 67 / - CAST( NULL AS DECIMAL ) * 36 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT + + 47 + - 79 * + 67 / - CAST ( NULL AS REAL ) * 36 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3964
SELECT + - 19 / 27 * - 59 * CAST( NULL AS SIGNED ) * 17 * - 75 * 62 - CASE - NULLIF ( - 46, - 66 + + 20 * + ( - 34 ) / 74 ) WHEN + 5 THEN - - 50 ELSE NULL END * - 64 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT + - 19 / 27 * - 59 * CAST ( NULL AS INTEGER ) * 17 * - 75 * 62 - CASE - NULLIF ( - 46, - 66 + + 20 * + ( - 34 ) / 74 ) WHEN + 5 THEN - - 50 ELSE NULL END * - 64 col0
----
NULL

query II rowsort
SELECT 92, - 65 AS col1
----
92
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT ALL 19 * + MAX( ALL 56 ) - CASE 80 WHEN COUNT( * ) THEN - 55 END + + - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL 19 * + MAX ( ALL 56 ) - CASE 80 WHEN COUNT ( * ) THEN - 55 END + + - 80 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3967
SELECT ( CAST( - - 75 AS SIGNED ) ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3967
SELECT ( CAST ( - - 75 AS INTEGER ) ) AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3968
SELECT - MAX( + + 13 ) DIV - - ( + + 21 )
----
0

skipif mysql # not compatible
query I rowsort label-3968
SELECT - MAX ( + + 13 ) / - - ( + + 21 )
----
0

query I rowsort
SELECT ALL + - 39 AS col2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3970
SELECT DISTINCT + 17 DIV + 48 col1
----
0

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + 17 / + 48 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3971
SELECT - CASE - 73 WHEN 13 THEN + - 80 ELSE NULL END + COALESCE ( 43, CASE AVG ( - - NULLIF ( + 18, 46 + CAST( NULL AS SIGNED ) ) ) WHEN 49 - 17 + 37 + 98 THEN NULL ELSE 73 END - MIN( ALL + - 58 ) / - - 50 + - 83 / - 70 ) + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3971
SELECT - CASE - 73 WHEN 13 THEN + - 80 ELSE NULL END + COALESCE ( 43, CASE AVG ( - - NULLIF ( + 18, 46 + CAST ( NULL AS INTEGER ) ) ) WHEN 49 - 17 + 37 + 98 THEN NULL ELSE 73 END - MIN ( ALL + - 58 ) / - - 50 + - 83 / - 70 ) + + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL + + COALESCE ( 7, + MAX( ALL - - 21 ), 76 + + 21 + - 46 + + 29 + + 68 - 63 * + 23 * - + 89 ) * - NULLIF ( 53, - MIN( ALL - + 35 ) * + - 48 )
----
-371

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL + + COALESCE ( 7, + MAX ( ALL - - 21 ), 76 + + 21 + - 46 + + 29 + + 68 - 63 * + 23 * - + 89 ) * - NULLIF ( 53, - MIN ( ALL - + 35 ) * + - 48 )
----
-371

onlyif mysql # aggregate syntax: 
query II rowsort label-3973
SELECT ALL + 18 * - - 70 - 60 + - - NULLIF ( - 98, 16 + + ( + - COALESCE ( - 84, - - ( 92 ), + + 90 ) ) + - COUNT( * ) * - 35 ) * + + 63 - 19 AS col0, + ( + + 41 ) AS col1
----
-4993
41

skipif mysql # not compatible
query II rowsort label-3973
SELECT ALL + 18 * - - 70 - 60 + - - NULLIF ( - 98, 16 + + ( + - COALESCE ( - 84, - - ( 92 ), + + 90 ) ) + - COUNT ( * ) * - 35 ) * + + 63 - 19 AS col0, + ( + + 41 ) AS col1
----
-4993
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT ALL + CASE - - 67 WHEN - 47 THEN - + MIN( DISTINCT + 47 ) - 48 + 67 * 11 ELSE - 96 END AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL + CASE - - 67 WHEN - 47 THEN - + MIN ( DISTINCT + 47 ) - 48 + 67 * 11 ELSE - 96 END AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT - + 99 * 15 * - NULLIF ( 12, - 54 * 90 + - - CASE - - 42 WHEN + - COUNT( * ) - 51 * - - 38 THEN NULL ELSE - - MAX( 57 ) END * + - 90 ) AS col0
----
17820

skipif mysql # not compatible
query I rowsort label-3975
SELECT - + 99 * 15 * - NULLIF ( 12, - 54 * 90 + - - CASE - - 42 WHEN + - COUNT ( * ) - 51 * - - 38 THEN NULL ELSE - - MAX ( 57 ) END * + - 90 ) AS col0
----
17820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3976
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + - 34 + + 9 + - 83 + - COUNT( * ) * 68 - MAX( DISTINCT + - 56 ) / 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + - 34 + + 9 + - 83 + - COUNT ( * ) * 68 - MAX ( DISTINCT + - 56 ) / 57 AS col1
----
NULL

query I rowsort
SELECT ALL + + ( + - 41 ) AS col1
----
-41

query I rowsort
SELECT 65 * + 70 - 40 + - 59 + + 24
----
4475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3979
SELECT + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3980
SELECT SUM( + - 76 ), + COUNT( * ) col2
----
-76
1

skipif mysql # not compatible
query II rowsort label-3980
SELECT SUM ( + - 76 ), + COUNT ( * ) col2
----
-76
1

query I rowsort
SELECT - ( + - 13 ) - - + 92
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-3982
SELECT - COUNT( * ) * - + 51 AS col1, 5 * - 68
----
51
-340

skipif mysql # not compatible
query II rowsort label-3982
SELECT - COUNT ( * ) * - + 51 AS col1, 5 * - 68
----
51
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL NULLIF ( + + COUNT( + 40 ), - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL NULLIF ( + + COUNT ( + 40 ), - COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3984
SELECT ALL 68 * + 92 * - CAST( NULL AS SIGNED ) / + CAST( - - 59 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL 68 * + 92 * - CAST ( NULL AS INTEGER ) / + CAST ( - - 59 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT + 8 * ( - ( COUNT( * ) ) ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3985
SELECT + 8 * ( - ( COUNT ( * ) ) ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT - COUNT( * ) + - + ( 74 ) + + 65 * 61 + NULLIF ( - 98, + COUNT( * ) + - + COUNT( + 96 ) ) * - - 45 * - 92 + 34 AS col2
----
409644

skipif mysql # not compatible
query I rowsort label-3986
SELECT - COUNT ( * ) + - + ( 74 ) + + 65 * 61 + NULLIF ( - 98, + COUNT ( * ) + - + COUNT ( + 96 ) ) * - - 45 * - 92 + 34 AS col2
----
409644

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT + 26 - COALESCE ( - + 46, + NULLIF ( - COUNT( * ), - 69 + + - 51 ) * + 48 )
----
72

skipif mysql # not compatible
query I rowsort label-3987
SELECT + 26 - COALESCE ( - + 46, + NULLIF ( - COUNT ( * ), - 69 + + - 51 ) * + 48 )
----
72

query I rowsort
SELECT ALL 32 * - - 32 AS col1
----
1024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3989
SELECT - 96 + + - COUNT( * ) + + + 37 DIV - - COUNT( * ) col1
----
-60

skipif mysql # not compatible
query I rowsort label-3989
SELECT - 96 + + - COUNT ( * ) + + + 37 / - - COUNT ( * ) col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT + 2 - - CASE COUNT( DISTINCT + 26 ) WHEN - 54 THEN + NULLIF ( - 25, - 88 ) - - 93 END - - 9 + + COUNT( * ) / + + 79 * 18 * + + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT + 2 - - CASE COUNT ( DISTINCT + 26 ) WHEN - 54 THEN + NULLIF ( - 25, - 88 ) - - 93 END - - 9 + + COUNT ( * ) / + + 79 * 18 * + + 44 AS col1
----
NULL

query I rowsort
SELECT - 72 * - 84
----
6048

query I rowsort
SELECT - ( - + 68 ) AS col1
----
68

query II rowsort
SELECT + 66 + + 56 AS col2, 23
----
122
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT ALL COUNT( * ) * - 59
----
-59

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL COUNT ( * ) * - 59
----
-59

query I rowsort
SELECT DISTINCT 89 + 38 AS col2
----
127

query I rowsort
SELECT + + 51 * 83 AS col1
----
4233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3997
SELECT ALL COUNT( * ) DIV - NULLIF ( + - ( 83 ), 2 * + + 97 - + - COUNT( * ) + 12 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL COUNT ( * ) / - NULLIF ( + - ( 83 ), 2 * + + 97 - + - COUNT ( * ) + 12 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT + 13 + - COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3998
SELECT + 13 + - COUNT ( * ) AS col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3999
SELECT ALL ( 63 ) DIV - + 16 + 50 * - 3 + + COALESCE ( - 61, - 67 ) - - + SUM( DISTINCT - 93 ) - + COUNT( * ) AS col2
----
-308

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL ( 63 ) / - + 16 + 50 * - 3 + + COALESCE ( - 61, - 67 ) - - + SUM ( DISTINCT - 93 ) - + COUNT ( * ) AS col2
----
-308

query I rowsort
SELECT + 53 * + 85
----
4505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT CAST( NULL AS SIGNED ) * + 85 + + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT CAST ( NULL AS INTEGER ) * + 85 + + 32 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4002
SELECT DISTINCT - 42 DIV + - CAST( 9 AS SIGNED ) - 33 col2
----
-29

skipif mysql # not compatible
query I rowsort label-4002
SELECT DISTINCT - 42 / + - CAST ( 9 AS INTEGER ) - 33 col2
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4003
SELECT 75 * 93 DIV COUNT( * ) - + + 97 AS col1
----
6878

skipif mysql # not compatible
query I rowsort label-4003
SELECT 75 * 93 / COUNT ( * ) - + + 97 AS col1
----
6878

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4004
SELECT - + 95 DIV - 26 AS col1, COUNT( + 34 ) + - 32 AS col1, 14 * + 41 AS col0
----
3
-31
574

skipif mysql # not compatible
query III rowsort label-4004
SELECT - + 95 / - 26 AS col1, COUNT ( + 34 ) + - 32 AS col1, 14 * + 41 AS col0
----
3
-31
574

query I rowsort
SELECT + 56 * - - 84
----
4704

query I rowsort
SELECT - 26 + + - 75
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-4007
SELECT ALL + 73 DIV + 42
----
1

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + 73 / + 42
----
1

query I rowsort
SELECT ALL 50 * + 28 - 68
----
1332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4009
SELECT CAST( + COUNT( * ) AS SIGNED ) * - + 2 + + 76 - 22 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4009
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * - + 2 + + 76 - 22 AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4010
SELECT - 83 DIV CAST( - 74 AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4010
SELECT - 83 / CAST ( - 74 AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL + COUNT( * ) * - + 93
----
-93

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + COUNT ( * ) * - + 93
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4012
SELECT - CAST( ( 87 ) AS SIGNED ) + - 46 * ( + - CAST( - COUNT( * ) AS SIGNED ) ) * + COALESCE ( + 69, + 11 ) * + + NULLIF ( SUM( - ( ( - + 26 ) ) ), + 62 )
----
-82611

skipif mysql # not compatible
query I rowsort label-4012
SELECT - CAST ( ( 87 ) AS INTEGER ) + - 46 * ( + - CAST ( - COUNT ( * ) AS INTEGER ) ) * + COALESCE ( + 69, + 11 ) * + + NULLIF ( SUM ( - ( ( - + 26 ) ) ), + 62 )
----
-82611

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4013
SELECT DISTINCT + CAST( + ( + - CAST( - + 24 AS DECIMAL ) ) AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT + CAST ( + ( + - CAST ( - + 24 AS REAL ) ) AS INTEGER )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT DISTINCT + MIN( + - 89 ) * + 96 - + - 54
----
-8490

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT + MIN ( + - 89 ) * + 96 - + - 54
----
-8490

query II rowsort
SELECT DISTINCT + 46 AS col1, 82
----
46
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4016
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT - 17 * + 0 + 19 + 61 AS col0
----
80

query I rowsort
SELECT - 85 * + 24 AS col1
----
-2040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4019
SELECT ALL - CASE + 78 WHEN NULLIF ( - SUM( + 79 ), - - COUNT( * ) * + 31 + - + 88 + - 43 + NULLIF ( - - 28, ( 34 ) + + COUNT( * ) ) + - 67 * 63 ) THEN - COALESCE ( ( - - CAST( 45 AS SIGNED ) ), + ( - - 19 ) ) ELSE NULL END * - ( - + CAST( - 53 AS SIGNED ) ) - + COUNT( * ) * + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL - CASE + 78 WHEN NULLIF ( - SUM ( + 79 ), - - COUNT ( * ) * + 31 + - + 88 + - 43 + NULLIF ( - - 28, ( 34 ) + + COUNT ( * ) ) + - 67 * 63 ) THEN - COALESCE ( ( - - CAST ( 45 AS INTEGER ) ), + ( - - 19 ) ) ELSE NULL END * - ( - + CAST ( - 53 AS INTEGER ) ) - + COUNT ( * ) * + 82 AS col1
----
NULL

query I rowsort
SELECT - 2 + 78 AS col0
----
76

query II rowsort
SELECT - 99, - 5 AS col0
----
-99
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT + MIN( 42 ) + 47 + - ( + 40 ) * + + 20 * - 14 * - 13 + - 75
----
-145586

skipif mysql # not compatible
query I rowsort label-4022
SELECT + MIN ( 42 ) + 47 + - ( + 40 ) * + + 20 * - 14 * - 13 + - 75
----
-145586

query I rowsort
SELECT ALL + 97 * - 29 * - 68 + + - 86 AS col1
----
191198

query II rowsort
SELECT - 1, - 19 + 63 AS col1
----
-1
44

query I rowsort
SELECT + 55 * - - 48 AS col2
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT - MAX( ALL - 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4026
SELECT - MAX ( ALL - 80 ) AS col0
----
80

query II rowsort
SELECT ALL 58 AS col2, + 67
----
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL 37 + - - SUM( DISTINCT 93 ) + - COUNT( * ) * + 68 + COALESCE ( - 6, + - 65 * + - COUNT( * ) ) * + 9
----
8

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL 37 + - - SUM ( DISTINCT 93 ) + - COUNT ( * ) * + 68 + COALESCE ( - 6, + - 65 * + - COUNT ( * ) ) * + 9
----
8

query I rowsort
SELECT - 19 * + + 79 col2
----
-1501

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4030
SELECT ALL 30 + + 47 + CAST( NULL AS SIGNED ) + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL 30 + + 47 + CAST ( NULL AS INTEGER ) + + 48
----
NULL

query II rowsort
SELECT - NULLIF ( + 58, + 35 ) AS col0, 71
----
-58
71

query I rowsort
SELECT 19 - + 24
----
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4033
SELECT ALL + CAST( NULL AS DECIMAL ) * + NULLIF ( + MIN( + + 98 ), + + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL + CAST ( NULL AS REAL ) * + NULLIF ( + MIN ( + + 98 ), + + 78 )
----
NULL

query I rowsort
SELECT - 71 * 89 * - 98 * - 99 AS col1
----
-61306938

onlyif mysql # DIV for integer division: 
query I rowsort label-4035
SELECT 40 + + 86 DIV 61
----
41

skipif mysql # not compatible
query I rowsort label-4035
SELECT 40 + + 86 / 61
----
41

query I rowsort
SELECT + 38 - + - 42 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL + SUM( - + 47 ) col2
----
-47

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL + SUM ( - + 47 ) col2
----
-47

query I rowsort
SELECT ALL - + 85 - 5 AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4039
SELECT - 16 col0, - 85 * CAST( - COUNT( * ) AS SIGNED ) + - - 77 col0
----
-16
162

skipif mysql # not compatible
query II rowsort label-4039
SELECT - 16 col0, - 85 * CAST ( - COUNT ( * ) AS INTEGER ) + - - 77 col0
----
-16
162

query I rowsort
SELECT 12 * + 56 - + 13 + NULLIF ( ( + 80 ), - - 66 )
----
739

query I rowsort
SELECT - 18 + 8
----
-10

query I rowsort
SELECT - 87 * + 18
----
-1566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4043
SELECT MIN( - + 0 ) * + 87 * - COUNT( * ) DIV + - NULLIF ( + 72, COUNT( * ) - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4043
SELECT MIN ( - + 0 ) * + 87 * - COUNT ( * ) / + - NULLIF ( + 72, COUNT ( * ) - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT + COUNT( * ) * - 51 * 48 AS col1
----
-2448

skipif mysql # not compatible
query I rowsort label-4044
SELECT + COUNT ( * ) * - 51 * 48 AS col1
----
-2448

query I rowsort
SELECT 50 - 83 AS col0
----
-33

query I rowsort
SELECT ALL 84 * 57
----
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT + 54 * MAX( ALL 27 )
----
1458

skipif mysql # not compatible
query I rowsort label-4047
SELECT + 54 * MAX ( ALL 27 )
----
1458

query I rowsort
SELECT 81 * + 6
----
486

query I rowsort
SELECT DISTINCT - - COALESCE ( - - 85, - - 45 * - - 56 + 13, + 78 * + 86 ) AS col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4050
SELECT + COALESCE ( 52, - COUNT( * ) ) DIV - 84 + - 49
----
-49

skipif mysql # not compatible
query I rowsort label-4050
SELECT + COALESCE ( 52, - COUNT ( * ) ) / - 84 + - 49
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4051
SELECT ALL - 58, + ( + - ( COUNT( * ) ) ) DIV - 41 AS col0
----
-58
0

skipif mysql # not compatible
query II rowsort label-4051
SELECT ALL - 58, + ( + - ( COUNT ( * ) ) ) / - 41 AS col0
----
-58
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT CAST( NULL AS SIGNED ) * + 6 * - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT CAST ( NULL AS INTEGER ) * + 6 * - 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT DISTINCT SUM( ALL - 71 ) * - 52 * - 89
----
-328588

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT SUM ( ALL - 71 ) * - 52 * - 89
----
-328588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4054
SELECT + 38 * - - 77 + CASE - 74 WHEN + CASE MAX( DISTINCT - 2 ) WHEN - CASE - - MAX( ALL - + ( 12 ) ) WHEN + 20 + 8 THEN + - 11 * - 94 WHEN - CAST( NULL AS SIGNED ) + 79 * 35 / 17 THEN - - 0 + - 55 + - - 30 ELSE - 5 + - + CAST( - 10 AS DECIMAL ) * - COUNT( * ) + - + 89 END THEN + - 95 * 43 / - 24 ELSE NULL END * - ( 45 ) + 53 THEN - 58 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4054
SELECT + 38 * - - 77 + CASE - 74 WHEN + CASE MAX ( DISTINCT - 2 ) WHEN - CASE - - MAX ( ALL - + ( 12 ) ) WHEN + 20 + 8 THEN + - 11 * - 94 WHEN - CAST ( NULL AS INTEGER ) + 79 * 35 / 17 THEN - - 0 + - 55 + - - 30 ELSE - 5 + - + CAST ( - 10 AS REAL ) * - COUNT ( * ) + - + 89 END THEN + - 95 * 43 / - 24 ELSE NULL END * - ( 45 ) + 53 THEN - 58 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4055
SELECT 30 * COUNT( * ) DIV + - 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4055
SELECT 30 * COUNT ( * ) / + - 62 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT ALL + COUNT( DISTINCT + 13 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL + COUNT ( DISTINCT + 13 ) + + COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4057
SELECT DISTINCT 7 DIV - 66 * + CAST( 4 AS SIGNED ) AS col0, + 75 AS col1
----
0
75

skipif mysql # not compatible
query II rowsort label-4057
SELECT DISTINCT 7 / - 66 * + CAST ( 4 AS INTEGER ) AS col0, + 75 AS col1
----
0
75

query I rowsort
SELECT 39 + 54 AS col1
----
93

query I rowsort
SELECT ALL - 82 + COALESCE ( - 37, 94, - + 87 ) + + 35 + + - 83
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT 45 * ( - - 1 ) * - MIN( ALL - 61 ) col1
----
2745

skipif mysql # not compatible
query I rowsort label-4060
SELECT 45 * ( - - 1 ) * - MIN ( ALL - 61 ) col1
----
2745

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4061
SELECT DISTINCT - COUNT( * ) * - ( - ( + + 19 ) ) DIV 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT - COUNT ( * ) * - ( - ( + + 19 ) ) / 22 AS col1
----
0

query I rowsort
SELECT ALL + 55 * 26 AS col1
----
1430

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4063
SELECT ( + - 65 ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT ( + - 65 ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT 55 - ( - COUNT( * ) ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4064
SELECT 55 - ( - COUNT ( * ) ) AS col1
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4065
SELECT 35 * COUNT( ALL 30 ) * - 29 - - + COUNT( * ) + 48 DIV 10 AS col2
----
-1010

skipif mysql # not compatible
query I rowsort label-4065
SELECT 35 * COUNT ( ALL 30 ) * - 29 - - + COUNT ( * ) + 48 / 10 AS col2
----
-1010

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT SUM( DISTINCT - 93 ) + - 39 + 1 * + CASE - - 59 WHEN 78 THEN NULL ELSE + 25 + - - 63 * 18 END AS col2
----
1027

skipif mysql # not compatible
query I rowsort label-4066
SELECT SUM ( DISTINCT - 93 ) + - 39 + 1 * + CASE - - 59 WHEN 78 THEN NULL ELSE + 25 + - - 63 * 18 END AS col2
----
1027

query II rowsort
SELECT + 8 + + 63 AS col1, 92
----
71
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT - - SUM( 19 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-4068
SELECT - - SUM ( 19 ) col0
----
19

query I rowsort
SELECT ALL COALESCE ( - CASE + 57 WHEN - - 29 THEN NULL WHEN - 67 THEN - - 46 + - 65 END, + + 88 * - ( 26 ) + ( + 99 ), + + 89 ) AS col1
----
-2189

query I rowsort
SELECT DISTINCT + + 96 - + 43 AS col1
----
53

query I rowsort
SELECT ALL + 88 - + 40 AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT + COUNT( * ) + 61, + 78 * + 52 * + + 26 * - ( NULLIF ( - + NULLIF ( 79, + 53 ), - + 10 - + 19 * 38 * COUNT( * ) + 64 / + 16 * - - 66 ) ) AS col2
----
62
8331024

skipif mysql # not compatible
query II rowsort label-4072
SELECT + COUNT ( * ) + 61, + 78 * + 52 * + + 26 * - ( NULLIF ( - + NULLIF ( 79, + 53 ), - + 10 - + 19 * 38 * COUNT ( * ) + 64 / + 16 * - - 66 ) ) AS col2
----
62
8331024

query I rowsort
SELECT 26 + - + 48 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT CASE + COUNT( - - ( - 8 ) ) WHEN - - 75 THEN + - 99 / - CASE + + 79 WHEN 72 THEN + ( - 52 ) ELSE NULL END + + 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT CASE + COUNT ( - - ( - 8 ) ) WHEN - - 75 THEN + - 99 / - CASE + + 79 WHEN 72 THEN + ( - 52 ) ELSE NULL END + + 13 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT ( 84 ) DIV + NULLIF ( + 60, - + 65 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4075
SELECT ( 84 ) / + NULLIF ( + 60, - + 65 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4076
SELECT 51 DIV 6 + + + 33 + - 26 + + 48 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4076
SELECT 51 / 6 + + + 33 + - 26 + + 48 AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4077
SELECT 1 * - + 71 - - - 78 DIV - 11 + 32 + COALESCE ( - 68, - 17 * + 30 * + - 4 * + 89 + - + 96, 4 * - 92 * COUNT( * ) * - - 75 * 73, - - ( - COUNT( * ) ) ) * + 26 + + 75 * 73
----
3675

skipif mysql # not compatible
query I rowsort label-4077
SELECT 1 * - + 71 - - - 78 / - 11 + 32 + COALESCE ( - 68, - 17 * + 30 * + - 4 * + 89 + - + 96, 4 * - 92 * COUNT ( * ) * - - 75 * 73, - - ( - COUNT ( * ) ) ) * + 26 + + 75 * 73
----
3675

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT ALL 47 * - 17 * - - 72 + + COUNT( + - ( - - 82 ) ) * ( - MAX( + 41 ) ) col0
----
-57569

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL 47 * - 17 * - - 72 + + COUNT ( + - ( - - 82 ) ) * ( - MAX ( + 41 ) ) col0
----
-57569

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4079
SELECT COUNT( * ) AS col1, 90 DIV - 67 AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-4079
SELECT COUNT ( * ) AS col1, 90 / - 67 AS col0
----
1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4080
SELECT - 72 * - + 27 + - + CAST( 52 AS SIGNED ) + - COUNT( * )
----
1891

skipif mysql # not compatible
query I rowsort label-4080
SELECT - 72 * - + 27 + - + CAST ( 52 AS INTEGER ) + - COUNT ( * )
----
1891

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT MAX( + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-4081
SELECT MAX ( + 52 )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4082
SELECT 94 DIV + ( + SUM( - 38 ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4082
SELECT 94 / + ( + SUM ( - 38 ) ) AS col2
----
-2

query II rowsort
SELECT ALL 9 + + + CASE + - ( + 73 ) WHEN + 41 THEN NULL ELSE + 15 - - 21 + - + 62 END AS col0, + 52
----
-17
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4084
SELECT CAST( NULL AS DECIMAL ) + + ( 67 ) / + - 2 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4084
SELECT CAST ( NULL AS REAL ) + + ( 67 ) / + - 2 col1
----
NULL

query I rowsort
SELECT - 9 * 4 + - 0 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT MIN( + + 37 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4086
SELECT MIN ( + + 37 ) AS col1
----
37

query I rowsort
SELECT 50 * 65 * + + 84 * + 92 + 36 AS col1
----
25116036

query I rowsort
SELECT ALL 73 + + 65
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4089
SELECT CAST( NULL AS SIGNED ) * 17 / - 65 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT CAST ( NULL AS INTEGER ) * 17 / - 65 col1
----
NULL

query I rowsort
SELECT ALL 55 + - 18 AS col0
----
37

query I rowsort
SELECT + 37 + 50 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT + NULLIF ( 96, - SUM( 93 ) ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4092
SELECT + NULLIF ( 96, - SUM ( 93 ) ) AS col1
----
96

query I rowsort
SELECT ALL 1 * 38
----
38

query I rowsort
SELECT + 7 * + + 5
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4095
SELECT 50 * + 35 + + COUNT( * ) - + ( + ( - + 35 ) ) DIV - + 51 * + + 11 DIV 9
----
1751

skipif mysql # not compatible
query I rowsort label-4095
SELECT 50 * + 35 + + COUNT ( * ) - + ( + ( - + 35 ) ) / - + 51 * + + 11 / 9
----
1751

onlyif mysql # aggregate syntax: 
query II rowsort label-4096
SELECT 72 AS col0, + ( CASE - - 78 WHEN - 55 * 0 * + + MAX( 73 ) THEN + - ( - + 25 ) END )
----
72
NULL

skipif mysql # not compatible
query II rowsort label-4096
SELECT 72 AS col0, + ( CASE - - 78 WHEN - 55 * 0 * + + MAX ( 73 ) THEN + - ( - + 25 ) END )
----
72
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ALL 95 - - COUNT( * ) + + ( COUNT( * ) ) * MIN( NULLIF ( + 5, - + 4 + 1 ) )
----
101

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL 95 - - COUNT ( * ) + + ( COUNT ( * ) ) * MIN ( NULLIF ( + 5, - + 4 + 1 ) )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT - NULLIF ( + - COUNT( * ), - 43 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4098
SELECT - NULLIF ( + - COUNT ( * ), - 43 ) AS col0
----
1

query I rowsort
SELECT - 83 * + 49 AS col1
----
-4067

onlyif mysql # DIV for integer division: 
query I rowsort label-4100
SELECT DISTINCT - 78 DIV + 26
----
-3

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT - 78 / + 26
----
-3

query I rowsort
SELECT ALL AVG ( CASE + 97 WHEN 66 / 87 THEN NULL WHEN + 48 - 44 THEN + + 48 * 13 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4102
SELECT ALL 76 - + - 45 - 10 DIV - - 92
----
121

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL 76 - + - 45 - 10 / - - 92
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT - 78 AS col0, - 50 * + - SUM( ALL + - ( - 2 ) ) + - 84
----
-78
16

skipif mysql # not compatible
query II rowsort label-4103
SELECT - 78 AS col0, - 50 * + - SUM ( ALL + - ( - 2 ) ) + - 84
----
-78
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT ALL - COUNT( * ) * + - 27 * + - 38 * - 98 col0
----
100548

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - COUNT ( * ) * + - 27 * + - 38 * - 98 col0
----
100548

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT - - 6 * + 88 + + MIN( ALL - 52 ) AS col0
----
476

skipif mysql # not compatible
query I rowsort label-4105
SELECT - - 6 * + 88 + + MIN ( ALL - 52 ) AS col0
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT - MIN( 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-4106
SELECT - MIN ( 22 )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT - COALESCE ( 18, + CAST( NULL AS SIGNED ) * - 11 * + 81 + 26 + + + ( 93 ) ) * - 73 * 53 * - - 30 AS col0
----
2089260

skipif mysql # not compatible
query I rowsort label-4107
SELECT - COALESCE ( 18, + CAST ( NULL AS INTEGER ) * - 11 * + 81 + 26 + + + ( 93 ) ) * - 73 * 53 * - - 30 AS col0
----
2089260

query I rowsort
SELECT ALL - - 31 * + - 87 AS col2
----
-2697

query II rowsort
SELECT - + 95 AS col2, - 94
----
-95
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4110
SELECT + - CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT + - CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT + + 88 + - + ( + 79 ) + - 78
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT - 9 * - - MAX( - - ( - - 37 ) )
----
-333

skipif mysql # not compatible
query I rowsort label-4112
SELECT - 9 * - - MAX ( - - ( - - 37 ) )
----
-333

query I rowsort
SELECT - ( 78 ) * - 82 * + 40 AS col2
----
255840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT - - CAST( NULL AS SIGNED ) * - 21 * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT - - CAST ( NULL AS INTEGER ) * - 21 * 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT DISTINCT - NULLIF ( + 72, + + MAX( + COALESCE ( 17, - 98, + 99 ) ) )
----
-72

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT - NULLIF ( + 72, + + MAX ( + COALESCE ( 17, - 98, + 99 ) ) )
----
-72

query I rowsort
SELECT - 45 * 30
----
-1350

query I rowsort
SELECT - 49 + - 84
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL MIN( ALL + + 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL MIN ( ALL + + 77 ) AS col2
----
77

query I rowsort
SELECT ALL + - 13 + 68
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT - - 44 * - 32 + - + COUNT( * ) col0
----
-1409

skipif mysql # not compatible
query I rowsort label-4120
SELECT - - 44 * - 32 + - + COUNT ( * ) col0
----
-1409

query I rowsort
SELECT - + 86 + - 67 AS col0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT + MAX( - + 35 ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-4122
SELECT + MAX ( - + 35 ) col0
----
-35

query I rowsort
SELECT + 62 - - 70 * + 23 col0
----
1672

query II rowsort
SELECT ALL + 84 AS col0, + 25
----
84
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4125
SELECT + MAX( ALL - 54 ) AS col0, - 71 AS col2
----
-54
-71

skipif mysql # not compatible
query II rowsort label-4125
SELECT + MAX ( ALL - 54 ) AS col0, - 71 AS col2
----
-54
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4126
SELECT DISTINCT + NULLIF ( - + CAST( NULL AS DECIMAL ), 61 * - + 56 ) * + - 40 * 51 * - - 79 * - - AVG ( ALL + 26 ) * + + COUNT( * ) + - 49 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT + NULLIF ( - + CAST ( NULL AS REAL ), 61 * - + 56 ) * + - 40 * 51 * - - 79 * - - AVG ( ALL + 26 ) * + + COUNT ( * ) + - 49 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4127
SELECT ALL - 27 * + ( - - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - 27 * + ( - - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT DISTINCT + SUM( 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT + SUM ( 78 ) AS col0
----
78

query I rowsort
SELECT + 96 * + 15
----
1440

query I rowsort
SELECT - 85 * - + 82 + - 64 + 65
----
6971

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4131
SELECT + COUNT( * ) DIV - 18
----
0

skipif mysql # not compatible
query I rowsort label-4131
SELECT + COUNT ( * ) / - 18
----
0

query I rowsort
SELECT + ( - 79 )
----
-79

query I rowsort
SELECT ALL 54 * + + ( + 86 ) AS col2
----
4644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) / + 68 * - + 21 * - - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) / + 68 * - + 21 * - - 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT ALL 48 * - + COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL 48 * - + COUNT ( * ) AS col2
----
-48

query I rowsort
SELECT + 54 + + 85 AS col2
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL 58 * - CASE 37 WHEN - + COUNT( * ) THEN + 57 ELSE NULL END * - 54 - 54 * + - 36 + + 32 * - COALESCE ( + + COUNT( * ), + - 87 ) - + + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL 58 * - CASE 37 WHEN - + COUNT ( * ) THEN + 57 ELSE NULL END * - 54 - 54 * + - 36 + + 32 * - COALESCE ( + + COUNT ( * ), + - 87 ) - + + 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT - ( MIN( 98 ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4138
SELECT - ( MIN ( 98 ) ) AS col0
----
-98

query I rowsort
SELECT ALL + 72 * - + 32 * + 83 * 35
----
-6693120

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4140
SELECT + - 61 * - 29 - + 56 + - CAST( + 83 AS SIGNED ) + + 4 - - 28 + 74 + 35 DIV + 73
----
1736

skipif mysql # not compatible
query I rowsort label-4140
SELECT + - 61 * - 29 - + 56 + - CAST ( + 83 AS INTEGER ) + + 4 - - 28 + 74 + 35 / + 73
----
1736

query I rowsort
SELECT + + 86 + + 30 + 99
----
215

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4142
SELECT + - COALESCE ( - 23, + 7 * + 35, + - CAST( COALESCE ( CAST( COALESCE ( - CAST( + 99 AS SIGNED ), - - 73 ) AS SIGNED ), 57 - - - 95 ) AS SIGNED ) + - 98 - + ( - AVG ( DISTINCT - - 69 ) ) * + 88 DIV + 90 ) * 53 AS col1
----
1219

skipif mysql # not compatible
query I rowsort label-4142
SELECT + - COALESCE ( - 23, + 7 * + 35, + - CAST ( COALESCE ( CAST ( COALESCE ( - CAST ( + 99 AS INTEGER ), - - 73 ) AS INTEGER ), 57 - - - 95 ) AS INTEGER ) + - 98 - + ( - AVG ( DISTINCT - - 69 ) ) * + 88 / + 90 ) * 53 AS col1
----
1219

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT DISTINCT - MAX( DISTINCT + COALESCE ( 75, + 11 + + 10 ) ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT - MAX ( DISTINCT + COALESCE ( 75, + 11 + + 10 ) ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT + COUNT( * ) + + - 62
----
-61

skipif mysql # not compatible
query I rowsort label-4144
SELECT + COUNT ( * ) + + - 62
----
-61

query II rowsort
SELECT ALL - 87 AS col1, 33
----
-87
33

query I rowsort
SELECT ALL - 56 + + + 4
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT + COUNT( * ) + - 13 * - 76 * - - MAX( 25 )
----
24701

skipif mysql # not compatible
query I rowsort label-4147
SELECT + COUNT ( * ) + - 13 * - 76 * - - MAX ( 25 )
----
24701

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT DISTINCT + COUNT( * ) + + 24 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT + COUNT ( * ) + + 24 AS col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4149
SELECT - - COUNT( * ) + - + 87, 21 * - 16 AS col0
----
-86
-336

skipif mysql # not compatible
query II rowsort label-4149
SELECT - - COUNT ( * ) + - + 87, 21 * - 16 AS col0
----
-86
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT ALL + 95 + + - MAX( + 54 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL + 95 + + - MAX ( + 54 ) AS col2
----
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4151
SELECT DISTINCT 35 + + CAST( NULL AS DECIMAL ) * - ( - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT 35 + + CAST ( NULL AS REAL ) * - ( - 38 )
----
NULL

query I rowsort
SELECT ALL - 4 * - 15 * - 21 * - 27 AS col1
----
34020

onlyif mysql # DIV for integer division: 
query II rowsort label-4153
SELECT - - 45, - 55 * 7 DIV + 36 AS col2
----
45
-10

skipif mysql # not compatible
query II rowsort label-4153
SELECT - - 45, - 55 * 7 / + 36 AS col2
----
45
-10

query I rowsort
SELECT - 83 + - 22 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-4155
SELECT DISTINCT COUNT( * ) AS col1, + 87 + - - 96
----
1
183

skipif mysql # not compatible
query II rowsort label-4155
SELECT DISTINCT COUNT ( * ) AS col1, + 87 + - - 96
----
1
183

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ALL + ( - 53 ) + - + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL + ( - 53 ) + - + COUNT ( * )
----
-54

query I rowsort
SELECT - 68 + + 10 * - + 27
----
-338

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL + MAX( DISTINCT - ( + 67 ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + MAX ( DISTINCT - ( + 67 ) ) AS col1
----
-67

query I rowsort
SELECT - 44 + + COALESCE ( 44, + - 2 )
----
0

query I rowsort
SELECT ALL + ( - 64 ) - + + 93 AS col0
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT DISTINCT + 50 - + ( COUNT( * ) ) - + 16 - 28 * - + 92 AS col0
----
2609

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT + 50 - + ( COUNT ( * ) ) - + 16 - 28 * - + 92 AS col0
----
2609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4162
SELECT ALL - CAST( + 96 AS SIGNED ) * - 12 + - MAX( + - 17 ) AS col2
----
1169

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - CAST ( + 96 AS INTEGER ) * - 12 + - MAX ( + - 17 ) AS col2
----
1169

query II rowsort
SELECT 64 + ( - 10 ), + 15 AS col2
----
54
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL + MIN( - 65 ) * - - 9
----
-585

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL + MIN ( - 65 ) * - - 9
----
-585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT DISTINCT + CAST( - + 91 AS SIGNED ) * - 99 AS col1
----
9009

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT + CAST ( - + 91 AS INTEGER ) * - 99 AS col1
----
9009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4166
SELECT - 68 * CAST( - COUNT( * ) AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-4166
SELECT - 68 * CAST ( - COUNT ( * ) AS INTEGER )
----
68

query I rowsort
SELECT 81 * + 39 AS col0
----
3159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4168
SELECT NULLIF ( - 82, - 50 - 86 + + ( + COUNT( * ) ) - - COALESCE ( - 76, + - CASE - CAST( 96 AS SIGNED ) WHEN - 39 THEN NULL ELSE 61 - + 0 END ) * - MAX( ALL 46 ) / 24 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4168
SELECT NULLIF ( - 82, - 50 - 86 + + ( + COUNT ( * ) ) - - COALESCE ( - 76, + - CASE - CAST ( 96 AS INTEGER ) WHEN - 39 THEN NULL ELSE 61 - + 0 END ) * - MAX ( ALL 46 ) / 24 ) AS col2
----
-82

query II rowsort
SELECT ALL 21 + + 4, + ( + 72 ) AS col1
----
25
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT ALL + CASE + + 24 WHEN - + 69 THEN NULL ELSE + + COUNT( * ) * - 72 + + 55 END AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL + CASE + + 24 WHEN - + 69 THEN NULL ELSE + + COUNT ( * ) * - 72 + + 55 END AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT ALL + + ( 57 ) + COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL + + ( 57 ) + COUNT ( * ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4172
SELECT - MIN( - - 60 ), + COUNT( * ) + + + 48 AS col0
----
-60
49

skipif mysql # not compatible
query II rowsort label-4172
SELECT - MIN ( - - 60 ), + COUNT ( * ) + + + 48 AS col0
----
-60
49

query I rowsort
SELECT DISTINCT + 58 + + - 72
----
-14

query II rowsort
SELECT DISTINCT + ( + 58 ), - 60 AS col1
----
58
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4175
SELECT - - CAST( + 13 AS SIGNED ) AS col1, 22
----
13
22

skipif mysql # not compatible
query II rowsort label-4175
SELECT - - CAST ( + 13 AS INTEGER ) AS col1, 22
----
13
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ALL - 25 + - 59 * + + COUNT( * ) * + - 41
----
2394

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL - 25 + - 59 * + + COUNT ( * ) * + - 41
----
2394

query I rowsort
SELECT - 71 + 29 + - - ( 28 ) AS col1
----
-14

query I rowsort
SELECT - ( 36 ) + - + 43 AS col1
----
-79

query I rowsort
SELECT - 54 * 26
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT + NULLIF ( - - 91, - - COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-4180
SELECT + NULLIF ( - - 91, - - COUNT ( * ) )
----
91

query II rowsort
SELECT ( - + 57 ) AS col0, - 92 AS col1
----
-57
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT CAST( - + 70 AS SIGNED ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4182
SELECT CAST ( - + 70 AS INTEGER ) AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4183
SELECT DISTINCT + ( + 27 ), 95 DIV - NULLIF ( - + 90, 69 - - 76 ) + 74 + COALESCE ( - - 72, CAST( + + 42 AS SIGNED ), + + 5 ) AS col0
----
27
147

skipif mysql # not compatible
query II rowsort label-4183
SELECT DISTINCT + ( + 27 ), 95 / - NULLIF ( - + 90, 69 - - 76 ) + 74 + COALESCE ( - - 72, CAST ( + + 42 AS INTEGER ), + + 5 ) AS col0
----
27
147

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4184
SELECT + 20 * + - 20 * + CAST( + + CAST( - + 55 AS SIGNED ) AS SIGNED ), + 44 DIV + 1 + 4 DIV - 12 AS col1
----
22000
44

skipif mysql # not compatible
query II rowsort label-4184
SELECT + 20 * + - 20 * + CAST ( + + CAST ( - + 55 AS INTEGER ) AS INTEGER ), + 44 / + 1 + 4 / - 12 AS col1
----
22000
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT 23 - + MAX( DISTINCT + 0 )
----
23

skipif mysql # not compatible
query I rowsort label-4185
SELECT 23 - + MAX ( DISTINCT + 0 )
----
23

query II rowsort
SELECT - 29, - 27 + 26 AS col1
----
-29
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4187
SELECT CAST( NULL AS SIGNED ) + - - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT CAST ( NULL AS INTEGER ) + - - 14 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT CAST( NULL AS SIGNED ) * - 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT CAST ( NULL AS INTEGER ) * - 31 AS col1
----
NULL

query I rowsort
SELECT ALL + 54 * - 91 AS col2
----
-4914

onlyif mysql # DIV for integer division: 
query II rowsort label-4190
SELECT 0 DIV + 86 + + 98, + 69 + 43 AS col1
----
98
112

skipif mysql # not compatible
query II rowsort label-4190
SELECT 0 / + 86 + + 98, + 69 + 43 AS col1
----
98
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4191
SELECT ( - ( + + COUNT( 10 ) ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT ( - ( + + COUNT ( 10 ) ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4192
SELECT + 21 DIV 1 - + + COUNT( DISTINCT - - 43 ) * + 9 DIV - 71 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-4192
SELECT + 21 / 1 - + + COUNT ( DISTINCT - - 43 ) * + 9 / - 71 AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT CAST( NULL AS SIGNED ) * + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT CAST ( NULL AS INTEGER ) * + 61 AS col1
----
NULL

query I rowsort
SELECT 67 - ( - + 73 ) + - + 87 AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4195
SELECT 24, - CAST( + 29 AS SIGNED ) col0
----
24
-29

skipif mysql # not compatible
query II rowsort label-4195
SELECT 24, - CAST ( + 29 AS INTEGER ) col0
----
24
-29

query I rowsort
SELECT 57 + - - 42
----
99

query I rowsort
SELECT ALL - NULLIF ( - 35, - 76 + - 22 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4198
SELECT + 60 AS col0, COUNT( * ) AS col0
----
60
1

skipif mysql # not compatible
query II rowsort label-4198
SELECT + 60 AS col0, COUNT ( * ) AS col0
----
60
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT 44 + + COUNT( ALL 65 ) col0
----
45

skipif mysql # not compatible
query I rowsort label-4199
SELECT 44 + + COUNT ( ALL 65 ) col0
----
45

query I rowsort
SELECT 80 - - 83 AS col2
----
163

query II rowsort
SELECT 83 * - - ( 20 ) AS col0, + NULLIF ( 90, - 85 ) * - 69
----
1660
-6210

query II rowsort
SELECT 31 AS col2, - 94 + - 83
----
31
-177

query I rowsort
SELECT - 53 + - 86 AS col2
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT COUNT( * ) * - 26 * + - 26 * - - 19 * + 85 * 40
----
43669600

skipif mysql # not compatible
query I rowsort label-4204
SELECT COUNT ( * ) * - 26 * + - 26 * - - 19 * + 85 * 40
----
43669600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT + CAST( NULL AS SIGNED ) * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT + CAST ( NULL AS INTEGER ) * - 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4206
SELECT + 75 + - 78 - - ( - + 96 ) AS col2, + COUNT( * ) + + - ( 89 ) * + NULLIF ( + 18, - COUNT( * ) * 47 - - CASE - - AVG ( DISTINCT CAST( 99 AS SIGNED ) ) WHEN + 84 THEN + 40 END ) AS col2
----
-99
-1601

skipif mysql # not compatible
query II rowsort label-4206
SELECT + 75 + - 78 - - ( - + 96 ) AS col2, + COUNT ( * ) + + - ( 89 ) * + NULLIF ( + 18, - COUNT ( * ) * 47 - - CASE - - AVG ( DISTINCT CAST ( 99 AS INTEGER ) ) WHEN + 84 THEN + 40 END ) AS col2
----
-99
-1601

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ALL + 78 * - + COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL + 78 * - + COUNT ( * ) AS col0
----
-78

query I rowsort
SELECT ALL - 20 + - 23
----
-43

query I rowsort
SELECT ALL - - 28 col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT DISTINCT - - ( ( - 68 ) ) + - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT - - ( ( - 68 ) ) + - COUNT ( * )
----
-69

query I rowsort
SELECT 19 + 22 AS col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4212
SELECT - 69 DIV - - 93
----
0

skipif mysql # not compatible
query I rowsort label-4212
SELECT - 69 / - - 93
----
0

query I rowsort
SELECT 95 + + 27 - + + 78 - - - 73 AS col1
----
-29

query I rowsort
SELECT - + CASE + 78 WHEN - 45 THEN NULL WHEN - - 21 THEN + 59 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 94 + + 84
----
-10

query I rowsort
SELECT 88 + + 83 AS col2
----
171

query I rowsort
SELECT ALL - 13 - + 97
----
-110

query I rowsort
SELECT DISTINCT CASE - 16 WHEN - 76 + 38 THEN 83 ELSE - 59 * - 38 END AS col0
----
2242

onlyif mysql # DIV for integer division: 
query I rowsort label-4219
SELECT DISTINCT + COALESCE ( + + 59, - 61 ) * + 11 * 72 DIV - 11 AS col0
----
-4248

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT + COALESCE ( + + 59, - 61 ) * + 11 * 72 / - 11 AS col0
----
-4248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4220
SELECT - 91 * - + 90 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT - 91 * - + 90 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT + MAX( - NULLIF ( + 48, 60 ) ) * 41 + COUNT( * ) * + - 68
----
-2036

skipif mysql # not compatible
query I rowsort label-4221
SELECT + MAX ( - NULLIF ( + 48, 60 ) ) * 41 + COUNT ( * ) * + - 68
----
-2036

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4222
SELECT ALL ( 12 ) * ( + 59 ) - - 26 col0, COUNT( ALL 74 ) DIV 20
----
734
0

skipif mysql # not compatible
query II rowsort label-4222
SELECT ALL ( 12 ) * ( + 59 ) - - 26 col0, COUNT ( ALL 74 ) / 20
----
734
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4223
SELECT + MAX( DISTINCT + CAST( 51 AS SIGNED ) ) * + NULLIF ( 93, + 81 )
----
4743

skipif mysql # not compatible
query I rowsort label-4223
SELECT + MAX ( DISTINCT + CAST ( 51 AS INTEGER ) ) * + NULLIF ( 93, + 81 )
----
4743

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4224
SELECT + ( - - CAST( - 16 AS SIGNED ) ) * - 14, + 10 - - 5 AS col2
----
224
15

skipif mysql # not compatible
query II rowsort label-4224
SELECT + ( - - CAST ( - 16 AS INTEGER ) ) * - 14, + 10 - - 5 AS col2
----
224
15

query I rowsort
SELECT + 55 + - + 80
----
-25

query I rowsort
SELECT ALL 25 * 1
----
25

query I rowsort
SELECT 97 * - 98 + + 10 AS col0
----
-9496

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT COUNT( * ) * + 38 - - - 59 + + + 33 * + 67
----
2190

skipif mysql # not compatible
query I rowsort label-4228
SELECT COUNT ( * ) * + 38 - - - 59 + + + 33 * + 67
----
2190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT CASE + + 49 WHEN - + 15 * 86 + + + 8 + - 60 * + 95 * - 10 THEN NULL WHEN + - 39 THEN - - 62 / CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4229
SELECT CASE + + 49 WHEN - + 15 * 86 + + + 8 + - 60 * + 95 * - 10 THEN NULL WHEN + - 39 THEN - - 62 / CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4230
SELECT ALL 89 * + CAST( - 15 AS SIGNED ) * - 57 AS col0
----
76095

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL 89 * + CAST ( - 15 AS INTEGER ) * - 57 AS col0
----
76095

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT + 95 * + - COUNT( * ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4231
SELECT + 95 * + - COUNT ( * ) AS col2
----
-95

query I rowsort
SELECT - ( 60 ) + - + 37
----
-97

query II rowsort
SELECT + NULLIF ( + 80, + 97 * + + 52 / - 72 ) AS col1, 53 * 85 * + + 9 AS col1
----
80
40545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4234
SELECT ALL 67 * - 27 + - ( - 80 ) + - + NULLIF ( + CAST( NULL AS SIGNED ), - - 0 / - - NULLIF ( - - 63, - ( + ( - 49 ) ) * + COUNT( * ) / + 82 * 97 * + + NULLIF ( + + 59, + 99 + CAST( NULL AS DECIMAL ) ) + + 25 / + 67 * + COUNT( ALL + + 42 ) + + CAST( + + 85 AS SIGNED ) * + 91 / - 42 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL 67 * - 27 + - ( - 80 ) + - + NULLIF ( + CAST ( NULL AS INTEGER ), - - 0 / - - NULLIF ( - - 63, - ( + ( - 49 ) ) * + COUNT ( * ) / + 82 * 97 * + + NULLIF ( + + 59, + 99 + CAST ( NULL AS REAL ) ) + + 25 / + 67 * + COUNT ( ALL + + 42 ) + + CAST ( + + 85 AS INTEGER ) * + 91 / - 42 ) ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4235
SELECT ALL + - COALESCE ( - ( 17 ), + - 16 * + - 74 + + - 32 + - COUNT( * ) + CAST( 89 AS SIGNED ) + ( 5 ) * + 25 - - 31 + - 22 + - 85 + - 17 + 26 + + ( + + 43 ) * - 92 * 61 DIV - 98 - - 89 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL + - COALESCE ( - ( 17 ), + - 16 * + - 74 + + - 32 + - COUNT ( * ) + CAST ( 89 AS INTEGER ) + ( 5 ) * + 25 - - 31 + - 22 + - 85 + - 17 + 26 + + ( + + 43 ) * - 92 * 61 / - 98 - - 89 ) AS col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4236
SELECT DISTINCT + 41 * + - COUNT( * ) + - + 62 + - + 79 - - + 80 DIV + 66 + + 81 + + 27 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT + 41 * + - COUNT ( * ) + - + 62 + - + 79 - - + 80 / + 66 + + 81 + + 27 AS col1
----
-73

query I rowsort
SELECT - - 72 * - + 62 AS col2
----
-4464

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4238
SELECT + + CAST( - 77 AS SIGNED ) AS col1, 69
----
-77
69

skipif mysql # not compatible
query II rowsort label-4238
SELECT + + CAST ( - 77 AS INTEGER ) AS col1, 69
----
-77
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT ALL + 69 * 13 - COUNT( * ) AS col2
----
896

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL + 69 * 13 - COUNT ( * ) AS col2
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT - ( CASE + 46 WHEN - - 90 + - 78 / - 51 * - 62 + - + 81 + CASE + + 28 WHEN COALESCE ( + COALESCE ( + 85, - 83 + - 1 ), - - COUNT( * ) ) + - 92 + 47 / - + ( - 72 ) * + + ( SUM( DISTINCT - + 63 ) ) THEN - 40 - - - COALESCE ( - 94, - 81 ) + - 42 * 90 WHEN + 65 * + 50 + + - 51 + 11 * + 78 * - 64 THEN AVG ( - 87 ) * + 4 + 96 / 27 ELSE NULL END + 6 THEN MIN( ALL 33 ) WHEN + 11 + COUNT( * ) THEN COUNT( * ) ELSE NULL END ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT - ( CASE + 46 WHEN - - 90 + - 78 / - 51 * - 62 + - + 81 + CASE + + 28 WHEN COALESCE ( + COALESCE ( + 85, - 83 + - 1 ), - - COUNT ( * ) ) + - 92 + 47 / - + ( - 72 ) * + + ( SUM ( DISTINCT - + 63 ) ) THEN - 40 - - - COALESCE ( - 94, - 81 ) + - 42 * 90 WHEN + 65 * + 50 + + - 51 + 11 * + 78 * - 64 THEN AVG ( - 87 ) * + 4 + 96 / 27 ELSE NULL END + 6 THEN MIN ( ALL 33 ) WHEN + 11 + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END ) * + 52
----
NULL

query II rowsort
SELECT ALL - 73 * 93 * - ( 13 ), - 74 AS col1
----
88257
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL - - COUNT( * ) - - 1 + + + MAX( ALL + + 4 ) * 0 * 80 + - 43 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL - - COUNT ( * ) - - 1 + + + MAX ( ALL + + 4 ) * 0 * 80 + - 43 AS col2
----
-41

query I rowsort
SELECT - - 45 * - - 18 AS col2
----
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT - NULLIF ( 81, + CAST( NULL AS SIGNED ) ) * - 14 AS col0
----
1134

skipif mysql # not compatible
query I rowsort label-4244
SELECT - NULLIF ( 81, + CAST ( NULL AS INTEGER ) ) * - 14 AS col0
----
1134

query I rowsort
SELECT - 91 + + + 54
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4246
SELECT - 97 DIV - 29 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4246
SELECT - 97 / - 29 AS col1
----
3

query I rowsort
SELECT ALL ( + 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT - 9 * + MIN( + 16 )
----
-144

skipif mysql # not compatible
query I rowsort label-4248
SELECT - 9 * + MIN ( + 16 )
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT - MIN( ALL + 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4249
SELECT - MIN ( ALL + 41 ) AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4250
SELECT DISTINCT CAST( 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT CAST ( 91 AS INTEGER )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4251
SELECT ALL - 37 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL - 37 / - 97
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4252
SELECT - 61 DIV 43 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4252
SELECT - 61 / 43 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4253
SELECT + 67 DIV - 39 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4253
SELECT + 67 / - 39 AS col1
----
-1

query I rowsort
SELECT DISTINCT ( 33 ) AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT ALL - 37 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL - 37 / 47
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4256
SELECT - COUNT( * ) DIV + 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4256
SELECT - COUNT ( * ) / + 82 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4257
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT ALL - 65 + 2 AS col1
----
-63

query I rowsort
SELECT - 19 * + 3 * 33 * 12 AS col0
----
-22572

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT - ( - 60 ) DIV + 25 + + 45 - - 90 * 2
----
227

skipif mysql # not compatible
query I rowsort label-4260
SELECT - ( - 60 ) / + 25 + + 45 - - 90 * 2
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT + MIN( DISTINCT + 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4261
SELECT + MIN ( DISTINCT + 47 ) AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT CAST( - + 50 AS SIGNED ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-4262
SELECT CAST ( - + 50 AS INTEGER ) AS col1
----
-50

query I rowsort
SELECT + 77 * - 95
----
-7315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT CAST( + - NULLIF ( ( - - CAST( NULL AS SIGNED ) ), - 97 + - 95 * SUM( ALL + 97 ) * - 3 + + SUM( ALL 29 ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT CAST ( + - NULLIF ( ( - - CAST ( NULL AS INTEGER ) ), - 97 + - 95 * SUM ( ALL + 97 ) * - 3 + + SUM ( ALL 29 ) ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4265
SELECT DISTINCT 87 DIV 90 DIV + MAX( ALL + 35 ) + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT 87 / 90 / + MAX ( ALL + 35 ) + COUNT ( * ) AS col2
----
1

query II rowsort
SELECT ALL + 20 AS col0, - 5
----
20
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4267
SELECT + SUM( - 89 ) * - 53 - + + ( 68 ) - + COUNT( * ) * - CAST( 37 AS SIGNED )
----
4686

skipif mysql # not compatible
query I rowsort label-4267
SELECT + SUM ( - 89 ) * - 53 - + + ( 68 ) - + COUNT ( * ) * - CAST ( 37 AS INTEGER )
----
4686

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4268
SELECT ALL 28 DIV + 62 + - COALESCE ( + 28, - 91, + + 54 ) AS col0, + COALESCE ( 49, ( + + 22 ) + ( 84 ), + + COUNT( ALL 92 ) ) * - 81 - + 17 + + 19 * - 82 AS col1
----
-28
-5544

skipif mysql # not compatible
query II rowsort label-4268
SELECT ALL 28 / + 62 + - COALESCE ( + 28, - 91, + + 54 ) AS col0, + COALESCE ( 49, ( + + 22 ) + ( 84 ), + + COUNT ( ALL 92 ) ) * - 81 - + 17 + + 19 * - 82 AS col1
----
-28
-5544

onlyif mysql # aggregate syntax: 
query II rowsort label-4269
SELECT + 15, COUNT( * ) * 19 AS col0
----
15
19

skipif mysql # not compatible
query II rowsort label-4269
SELECT + 15, COUNT ( * ) * 19 AS col0
----
15
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4270
SELECT ALL - 51 DIV 22 * + 75 + + CAST( - 18 AS SIGNED ) + - - 43 AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL - 51 / 22 * + 75 + + CAST ( - 18 AS INTEGER ) + - - 43 AS col1
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT + - 36 * + COUNT( * ) - + 88 + 61 + - COUNT( * ) + 43
----
-21

skipif mysql # not compatible
query I rowsort label-4271
SELECT + - 36 * + COUNT ( * ) - + 88 + 61 + - COUNT ( * ) + 43
----
-21

query I rowsort
SELECT ( - 4 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4273
SELECT ALL + - 24 * 53 - COUNT( * ) AS col1, - 99 col0
----
-1273
-99

skipif mysql # not compatible
query II rowsort label-4273
SELECT ALL + - 24 * 53 - COUNT ( * ) AS col1, - 99 col0
----
-1273
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT + + 57 + + SUM( DISTINCT CASE - - COALESCE ( - 8, 94, - 78 ) WHEN - 6 THEN NULL ELSE 11 END ) + + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-4274
SELECT + + 57 + + SUM ( DISTINCT CASE - - COALESCE ( - 8, 94, - 78 ) WHEN - 6 THEN NULL ELSE 11 END ) + + COUNT ( * )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4275
SELECT ALL + - 25 * 59 - + 70 / COUNT( + 68 ) * - 84 + - CAST( NULL AS SIGNED ) / - + CASE 23 WHEN - 57 * + ( + - ( 92 ) ) THEN NULL ELSE CASE 36 WHEN - COUNT( * ) THEN + + 41 WHEN CASE - - MIN( CAST( NULL AS SIGNED ) ) WHEN - MAX( - + ( - CAST( NULL AS DECIMAL ) ) ) THEN - - 92 / - SUM( DISTINCT + 98 ) + COUNT( * ) * + 34 + - - 13 ELSE NULL END + + - MAX( + - 42 ) THEN NULL WHEN COUNT( * ) + - 56 + + + 56 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL + - 25 * 59 - + 70 / COUNT ( + 68 ) * - 84 + - CAST ( NULL AS INTEGER ) / - + CASE 23 WHEN - 57 * + ( + - ( 92 ) ) THEN NULL ELSE CASE 36 WHEN - COUNT ( * ) THEN + + 41 WHEN CASE - - MIN ( CAST ( NULL AS INTEGER ) ) WHEN - MAX ( - + ( - CAST ( NULL AS REAL ) ) ) THEN - - 92 / - SUM ( DISTINCT + 98 ) + COUNT ( * ) * + 34 + - - 13 ELSE NULL END + + - MAX ( + - 42 ) THEN NULL WHEN COUNT ( * ) + - 56 + + + 56 THEN NULL END END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4276
SELECT + 60 DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-4276
SELECT + 60 / - 40
----
-1

query II rowsort
SELECT 4, + 52 * + ( - ( - 83 ) ) AS col1
----
4
4316

query II rowsort
SELECT ALL + 25, - 43 + + 70 AS col0
----
25
27

query I rowsort
SELECT DISTINCT + 18 * 73 * + 45 AS col0
----
59130

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT 61 * - 52 * + MIN( DISTINCT + 69 ) + - 45 + - 28 + 70
----
-218871

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT 61 * - 52 * + MIN ( DISTINCT + 69 ) + - 45 + - 28 + 70
----
-218871

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL - + 64 - - COUNT( * ) + + 3 col1
----
-60

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL - + 64 - - COUNT ( * ) + + 3 col1
----
-60

query I rowsort
SELECT DISTINCT 17 col1
----
17

query I rowsort
SELECT + NULLIF ( 93, + 78 ) + - 94 AS col0
----
-1

query I rowsort
SELECT ALL + ( NULLIF ( - + 59, 6 ) ) AS col2
----
-59

query I rowsort
SELECT 58 + - 72 AS col0
----
-14

query I rowsort
SELECT 29 * - 65
----
-1885

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4287
SELECT 91 AS col2, 71 DIV + NULLIF ( - - ( - MIN( + 72 ) ), + 38 * + 33 * - + 95 * - 13 ) col0
----
91
0

skipif mysql # not compatible
query II rowsort label-4287
SELECT 91 AS col2, 71 / + NULLIF ( - - ( - MIN ( + 72 ) ), + 38 * + 33 * - + 95 * - 13 ) col0
----
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT 68 + - 28 + 18 * + 7 * + COUNT( * )
----
166

skipif mysql # not compatible
query I rowsort label-4288
SELECT 68 + - 28 + 18 * + 7 * + COUNT ( * )
----
166

onlyif mysql # aggregate syntax: 
query II rowsort label-4289
SELECT 96 AS col2, COALESCE ( + + 57, - + COUNT( - 80 ), - ( - 54 ) ) + - 88
----
96
-31

skipif mysql # not compatible
query II rowsort label-4289
SELECT 96 AS col2, COALESCE ( + + 57, - + COUNT ( - 80 ), - ( - 54 ) ) + - 88
----
96
-31

query II rowsort
SELECT ALL 26 + 43 AS col2, + 87
----
69
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL + 78 + + COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL + 78 + + COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4292
SELECT - 88 AS col1, - COUNT( * ) * - 45 col2
----
-88
45

skipif mysql # not compatible
query II rowsort label-4292
SELECT - 88 AS col1, - COUNT ( * ) * - 45 col2
----
-88
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT DISTINCT - CAST( 37 AS SIGNED ) * + 92 AS col0
----
-3404

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT - CAST ( 37 AS INTEGER ) * + 92 AS col0
----
-3404

onlyif mysql # DIV for integer division: 
query II rowsort label-4294
SELECT 67 * + 69 AS col2, - 23 DIV + ( + 46 )
----
4623
0

skipif mysql # not compatible
query II rowsort label-4294
SELECT 67 * + 69 AS col2, - 23 / + ( + 46 )
----
4623
0

query II rowsort
SELECT DISTINCT 95, 99 AS col0
----
95
99

query II rowsort
SELECT ALL - 33 + - 17 AS col1, 66
----
-50
66

query I rowsort
SELECT NULLIF ( 91, - 81 ) + 32
----
123

query I rowsort
SELECT 54 + - 9 AS col1
----
45

query II rowsort
SELECT 89 + + 39 AS col1, + 20
----
128
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT DISTINCT - 61 + - COUNT( DISTINCT + - 87 )
----
-62

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT - 61 + - COUNT ( DISTINCT + - 87 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT ALL - 43 + + 94 + + COUNT( * ) * + ( - + 23 )
----
28

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL - 43 + + 94 + + COUNT ( * ) * + ( - + 23 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4302
SELECT DISTINCT + 88 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT + 88 / - 45
----
-1

query I rowsort
SELECT DISTINCT + 16 + 15 AS col0
----
31

query I rowsort
SELECT ALL + 70 * - + 17 AS col1
----
-1190

query I rowsort
SELECT DISTINCT 94 + 20 col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL ( - COUNT( * ) ) - MIN( DISTINCT - 52 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL ( - COUNT ( * ) ) - MIN ( DISTINCT - 52 ) col2
----
51

query I rowsort
SELECT DISTINCT - 99 * + NULLIF ( - 95, - 84 + - CASE + + 9 WHEN 5 THEN NULL WHEN + 44 THEN - 60 + + 58 + - - 82 END ) * - 7 + + + 80 col1
----
-65755

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT DISTINCT - MIN( + 82 ) - - - SUM( 17 )
----
-99

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT - MIN ( + 82 ) - - - SUM ( 17 )
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4309
SELECT - 42 * - CAST( - ( + + CAST( NULL AS SIGNED ) ) AS SIGNED ) * SUM( - - 17 ) * - 33 + - + 98 + 95 + + - ( - + 76 ) - + NULLIF ( COUNT( * ), COUNT( + 56 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT - 42 * - CAST ( - ( + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * SUM ( - - 17 ) * - 33 + - + 98 + 95 + + - ( - + 76 ) - + NULLIF ( COUNT ( * ), COUNT ( + 56 ) )
----
NULL

query II rowsort
SELECT + 94 AS col0, - 59 col1
----
94
-59

query I rowsort
SELECT ALL - 50 - + 87
----
-137

query II rowsort
SELECT ALL - 60 AS col0, 31
----
-60
31

query II rowsort
SELECT + - 4, 9 + - ( - + 27 ) AS col2
----
-4
36

query I rowsort
SELECT - 5 + 76 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + + NULLIF ( COUNT( * ), + 39 )
----
1

skipif mysql # not compatible
query I rowsort label-4315
SELECT + + NULLIF ( COUNT ( * ), + 39 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT MIN( + + 26 ) * 61 + - + 33 * - 69 AS col2
----
3863

skipif mysql # not compatible
query I rowsort label-4316
SELECT MIN ( + + 26 ) * 61 + - + 33 * - 69 AS col2
----
3863

query I rowsort
SELECT ALL - 6 * - 57 AS col2
----
342

query II rowsort
SELECT DISTINCT - - 23, 78 AS col1
----
23
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4319
SELECT ALL - + 27 AS col0, + MIN( DISTINCT + 23 ) + - COUNT( * )
----
-27
22

skipif mysql # not compatible
query II rowsort label-4319
SELECT ALL - + 27 AS col0, + MIN ( DISTINCT + 23 ) + - COUNT ( * )
----
-27
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT ALL - CAST( - 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL - CAST ( - 16 AS INTEGER )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4321
SELECT DISTINCT - 1 col1, + ( 14 ) DIV + MAX( ALL 94 ) + + 66 AS col2
----
-1
66

skipif mysql # not compatible
query II rowsort label-4321
SELECT DISTINCT - 1 col1, + ( 14 ) / + MAX ( ALL 94 ) + + 66 AS col2
----
-1
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4322
SELECT 4 DIV - + 73 AS col0, + 62 * + 1 * - COUNT( 9 ) - + 35 col0, - 4 * + 68 * CASE + + ( 76 ) WHEN 70 THEN + COUNT( * ) WHEN - 37 * - 49 + - 48 DIV - 5 + - 41 THEN NULL END + + COUNT( * ) AS col0
----
0
-97
NULL

skipif mysql # not compatible
query III rowsort label-4322
SELECT 4 / - + 73 AS col0, + 62 * + 1 * - COUNT ( 9 ) - + 35 col0, - 4 * + 68 * CASE + + ( 76 ) WHEN 70 THEN + COUNT ( * ) WHEN - 37 * - 49 + - 48 / - 5 + - 41 THEN NULL END + + COUNT ( * ) AS col0
----
0
-97
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4323
SELECT DISTINCT MAX( - 62 ) DIV - + 68 * 37 - - 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT MAX ( - 62 ) / - + 68 * 37 - - 95 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ( NULLIF ( + - COUNT( ALL + - 86 ), + + COUNT( DISTINCT - 48 ) * - 0 + + 63 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4324
SELECT ( NULLIF ( + - COUNT ( ALL + - 86 ), + + COUNT ( DISTINCT - 48 ) * - 0 + + 63 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4325
SELECT + 12 DIV + + SUM( 39 ) * + CAST( MAX( - - 39 ) AS SIGNED ) col0, CAST( NULL AS SIGNED ) col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4325
SELECT + 12 / + + SUM ( 39 ) * + CAST ( MAX ( - - 39 ) AS INTEGER ) col0, CAST ( NULL AS INTEGER ) col2
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4326
SELECT 52 * + NULLIF ( - 94, - CASE - 97 WHEN + - COUNT( * ) - COUNT( ALL ( + + 5 ) ) + - 76 THEN + SUM( DISTINCT 42 ) * + 42 ELSE - CASE 28 WHEN + ( 87 ) * + 39 * - 62 + - - 77 * + 67 * + 84 + 74 + - - ( + - 56 ) THEN + - 90 / + ( + - AVG ( ALL - - 84 ) ) + + CAST( NULL AS SIGNED ) END END ) AS col0
----
-4888

skipif mysql # not compatible
query I rowsort label-4326
SELECT 52 * + NULLIF ( - 94, - CASE - 97 WHEN + - COUNT ( * ) - COUNT ( ALL ( + + 5 ) ) + - 76 THEN + SUM ( DISTINCT 42 ) * + 42 ELSE - CASE 28 WHEN + ( 87 ) * + 39 * - 62 + - - 77 * + 67 * + 84 + 74 + - - ( + - 56 ) THEN + - 90 / + ( + - AVG ( ALL - - 84 ) ) + + CAST ( NULL AS INTEGER ) END END ) AS col0
----
-4888

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT ALL SUM( + 14 ) * + 46
----
644

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL SUM ( + 14 ) * + 46
----
644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4328
SELECT NULLIF ( 33, COUNT( + + 53 ) ) DIV - 21 + - 66 + + + 32 * - COUNT( * ) * 23 - 89 + + 93
----
-799

skipif mysql # not compatible
query I rowsort label-4328
SELECT NULLIF ( 33, COUNT ( + + 53 ) ) / - 21 + - 66 + + + 32 * - COUNT ( * ) * 23 - 89 + + 93
----
-799

query I rowsort
SELECT ALL ( - 58 ) + + 66 + - - 80 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT DISTINCT 85 + - COUNT( * ) + 91
----
175

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT 85 + - COUNT ( * ) + 91
----
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4331
SELECT DISTINCT 67 + - 29 + + + COALESCE ( + - 41, + + 54 * + 20 + 78 + + 16, + - 78 - CAST( + + COUNT( * ) AS SIGNED ) DIV + 46 ) AS col1, - 82
----
-3
-82

skipif mysql # not compatible
query II rowsort label-4331
SELECT DISTINCT 67 + - 29 + + + COALESCE ( + - 41, + + 54 * + 20 + 78 + + 16, + - 78 - CAST ( + + COUNT ( * ) AS INTEGER ) / + 46 ) AS col1, - 82
----
-3
-82

query I rowsort
SELECT ALL 72 + + - 4 - - - 19 * - 35 * + - 43 * - 80
----
2287668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4333
SELECT COUNT( * ) + - COALESCE ( - 41, COALESCE ( + + ( + + ( - 32 ) ), + 38 DIV - CAST( - 4 AS SIGNED ) * - MAX( ALL + 16 ), + 31 DIV MAX( DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4333
SELECT COUNT ( * ) + - COALESCE ( - 41, COALESCE ( + + ( + + ( - 32 ) ), + 38 / - CAST ( - 4 AS INTEGER ) * - MAX ( ALL + 16 ), + 31 / MAX ( DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4334
SELECT CAST( - - 6 AS SIGNED ) + - 40 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4334
SELECT CAST ( - - 6 AS INTEGER ) + - 40 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT 92 - + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-4335
SELECT 92 - + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4336
SELECT - SUM( + 43 ) AS col1, + CASE 41 WHEN - - COUNT( * ) THEN 63 + 19 WHEN - 91 * - - 15 + + - 89 / 22 THEN NULL END + + + 9
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-4336
SELECT - SUM ( + 43 ) AS col1, + CASE 41 WHEN - - COUNT ( * ) THEN 63 + 19 WHEN - 91 * - - 15 + + - 89 / 22 THEN NULL END + + + 9
----
-43
NULL

query II rowsort
SELECT ALL + 2 * - 30 col2, 5 AS col0
----
-60
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4338
SELECT DISTINCT 71 + + 26 - - 11 + - + 84 * + - 33, CAST( NULL AS SIGNED ) col1
----
2880
NULL

skipif mysql # not compatible
query II rowsort label-4338
SELECT DISTINCT 71 + + 26 - - 11 + - + 84 * + - 33, CAST ( NULL AS INTEGER ) col1
----
2880
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4339
SELECT 92 + + COUNT( * ) AS col0, COUNT( * ) * - + 96
----
93
-96

skipif mysql # not compatible
query II rowsort label-4339
SELECT 92 + + COUNT ( * ) AS col0, COUNT ( * ) * - + 96
----
93
-96

query I rowsort
SELECT ALL 6 * + 64 col2
----
384

onlyif mysql # aggregate syntax: 
query II rowsort label-4341
SELECT ALL 24 * 0 AS col1, COUNT( * ) * + 71
----
0
71

skipif mysql # not compatible
query II rowsort label-4341
SELECT ALL 24 * 0 AS col1, COUNT ( * ) * + 71
----
0
71

query I rowsort
SELECT 80 + - + 61 * - 30 AS col2
----
1910

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT 96 DIV - + 9 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4343
SELECT 96 / - + 9 AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4344
SELECT + - SUM( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT + - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT COUNT( * ) * 17
----
17

skipif mysql # not compatible
query I rowsort label-4345
SELECT COUNT ( * ) * 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT DISTINCT - + MAX( 52 ) * - + COUNT( * ) + - + 73
----
-21

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT - + MAX ( 52 ) * - + COUNT ( * ) + - + 73
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT + + NULLIF ( 30, + - SUM( - 60 ) )
----
30

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT + + NULLIF ( 30, + - SUM ( - 60 ) )
----
30

query I rowsort
SELECT ALL + + 93 * + ( 83 ) AS col1
----
7719

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT - COUNT( 3 ) * - + 63 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4349
SELECT - COUNT ( 3 ) * - + 63 AS col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4350
SELECT ALL + 94 * - 81 * 96 + COUNT( * ) - - - 84 + + 93 * + + 25 * - NULLIF ( - 23, + 97 ) AS col1, + 80
----
-677552
80

skipif mysql # not compatible
query II rowsort label-4350
SELECT ALL + 94 * - 81 * 96 + COUNT ( * ) - - - 84 + + 93 * + + 25 * - NULLIF ( - 23, + 97 ) AS col1, + 80
----
-677552
80

query I rowsort
SELECT - + 83 - - + 41 * 52
----
2049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4352
SELECT 13 * + CAST( NULL AS SIGNED ) + - 35 + 43 + - + COALESCE ( + COUNT( * ), + 52 * CASE - + 54 WHEN + + ( - + CASE + 84 WHEN + 53 THEN + - 27 + COUNT( + 48 ) * + 86 WHEN 36 + - 77 * + - 61 THEN + + ( - + 77 ) WHEN + - 49 THEN NULL END ) + - - 71 THEN 81 - + 97 END, + + 70 * + - 13 + - 74 * + + 61 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT 13 * + CAST ( NULL AS INTEGER ) + - 35 + 43 + - + COALESCE ( + COUNT ( * ), + 52 * CASE - + 54 WHEN + + ( - + CASE + 84 WHEN + 53 THEN + - 27 + COUNT ( + 48 ) * + 86 WHEN 36 + - 77 * + - 61 THEN + + ( - + 77 ) WHEN + - 49 THEN NULL END ) + - - 71 THEN 81 - + 97 END, + + 70 * + - 13 + - 74 * + + 61 ) AS col0
----
NULL

query II rowsort
SELECT 8 * + 88 * + 61 - + ( + 59 ) AS col1, 14 AS col2
----
42885
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4354
SELECT + + MIN( DISTINCT 22 ) AS col1, 69
----
22
69

skipif mysql # not compatible
query II rowsort label-4354
SELECT + + MIN ( DISTINCT 22 ) AS col1, 69
----
22
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT - + COUNT( * ) + 69
----
68

skipif mysql # not compatible
query I rowsort label-4355
SELECT - + COUNT ( * ) + 69
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT - + ( + 76 ) + + 66 * + - MIN( - 16 )
----
980

skipif mysql # not compatible
query I rowsort label-4356
SELECT - + ( + 76 ) + + 66 * + - MIN ( - 16 )
----
980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4357
SELECT DISTINCT + 5 * - - 4 * - 34 + + 53 + + 24 / - 88 / CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + + 64 + + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT + 5 * - - 4 * - 34 + + 53 + + 24 / - 88 / CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 64 + + 69 AS col2
----
NULL

query I rowsort
SELECT ALL 18 * - 22 + 21 AS col1
----
-375

query I rowsort
SELECT ALL + ( 55 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4360
SELECT ALL 26 * - CAST( + - MIN( DISTINCT + ( CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL 26 * - CAST ( + - MIN ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT + SUM( + - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-4361
SELECT + SUM ( + - 2 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4362
SELECT DISTINCT + COUNT( * ) + + + 31 + + 43 AS col0, + 35 + - NULLIF ( 0, 73 * 87 ) AS col0
----
75
35

skipif mysql # not compatible
query II rowsort label-4362
SELECT DISTINCT + COUNT ( * ) + + + 31 + + 43 AS col0, + 35 + - NULLIF ( 0, 73 * 87 ) AS col0
----
75
35

query I rowsort
SELECT ALL - 78 + + + 9 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4364
SELECT - COUNT( * ) AS col1, 57 AS col2
----
-1
57

skipif mysql # not compatible
query II rowsort label-4364
SELECT - COUNT ( * ) AS col1, 57 AS col2
----
-1
57

query I rowsort
SELECT + ( 75 ) + + - 18 AS col1
----
57

query I rowsort
SELECT ALL 73 + 70 AS col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT - SUM( + + 48 ) * - ( 57 ) * + + 15
----
41040

skipif mysql # not compatible
query I rowsort label-4367
SELECT - SUM ( + + 48 ) * - ( 57 ) * + + 15
----
41040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4368
SELECT + SUM( DISTINCT - - 82 ) + 22 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4368
SELECT + SUM ( DISTINCT - - 82 ) + 22 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4369
SELECT - COUNT( * ) AS col2, - 62 * COALESCE ( + NULLIF ( 55, - 51 ), 75 * - 30 )
----
-1
-3410

skipif mysql # not compatible
query II rowsort label-4369
SELECT - COUNT ( * ) AS col2, - 62 * COALESCE ( + NULLIF ( 55, - 51 ), 75 * - 30 )
----
-1
-3410

query I rowsort
SELECT + 37 + 0 AS col1
----
37

query II rowsort
SELECT ALL 0, - 70 AS col1
----
0
-70

query I rowsort
SELECT ALL 19 - + - 42
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4373
SELECT 67 AS col2, 56 * - COUNT( * )
----
67
-56

skipif mysql # not compatible
query II rowsort label-4373
SELECT 67 AS col2, 56 * - COUNT ( * )
----
67
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT DISTINCT 89 * + + SUM( DISTINCT + + 93 ) col1
----
8277

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT 89 * + + SUM ( DISTINCT + + 93 ) col1
----
8277

onlyif mysql # DIV for integer division: 
query I rowsort label-4375
SELECT ALL 12 DIV - 75 * + 55
----
0

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL 12 / - 75 * + 55
----
0

query I rowsort
SELECT + 18 * - 77
----
-1386

query I rowsort
SELECT ALL 83 - 13 - 63 * - 14 + 72 AS col0
----
1024

query I rowsort
SELECT + 65 - + 80
----
-15

query I rowsort
SELECT ALL - ( 16 ) AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4380
SELECT - - 13 + + CAST( NULL AS SIGNED ) - ( - 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT - - 13 + + CAST ( NULL AS INTEGER ) - ( - 91 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL + MAX( DISTINCT + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL + MAX ( DISTINCT + 49 ) AS col0
----
49

query I rowsort
SELECT + + 44 * + 30 AS col2
----
1320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4383
SELECT DISTINCT + 15 AS col1, CAST( COALESCE ( - + 14, + - 2 + - 17, 83, + 57 + - 67 ) AS SIGNED ) AS col0
----
15
-14

skipif mysql # not compatible
query II rowsort label-4383
SELECT DISTINCT + 15 AS col1, CAST ( COALESCE ( - + 14, + - 2 + - 17, 83, + 57 + - 67 ) AS INTEGER ) AS col0
----
15
-14

query I rowsort
SELECT + 26 + + 21
----
47

query II rowsort
SELECT DISTINCT - 62 AS col0, ( + 33 ) AS col1
----
-62
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4386
SELECT ALL + - COALESCE ( 14, - 57 + 26, - - ( 47 ) + + 16 DIV - + COUNT( DISTINCT - + 7 ) ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL + - COALESCE ( 14, - 57 + 26, - - ( 47 ) + + 16 / - + COUNT ( DISTINCT - + 7 ) ) col0
----
-14

query I rowsort
SELECT DISTINCT + ( 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT DISTINCT + MAX( DISTINCT - 92 ) * + 91 col2
----
-8372

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT + MAX ( DISTINCT - 92 ) * + 91 col2
----
-8372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4389
SELECT DISTINCT - 56 * CAST( + ( 92 ) AS SIGNED )
----
-5152

skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT - 56 * CAST ( + ( 92 ) AS INTEGER )
----
-5152

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT DISTINCT NULLIF ( - 64, - COUNT( * ) ) * + + 40 AS col0
----
-2560

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT NULLIF ( - 64, - COUNT ( * ) ) * + + 40 AS col0
----
-2560

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT SUM( ALL - 73 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-4391
SELECT SUM ( ALL - 73 ) AS col1
----
-73

query I rowsort
SELECT - - 62 + + 29 * 30 AS col0
----
932

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4393
SELECT ALL + ( + 48 ) * - + COUNT( * ) + - - 40 * - + ( + ( 6 ) ) - COALESCE ( + COUNT( * ), ( + ( + + 17 ) ), - CASE - 44 WHEN SUM( - 2 ) THEN 22 WHEN - CAST( NULL AS DECIMAL ) + + MIN( DISTINCT + + 43 ) THEN NULL END ) DIV - ( + 96 ) AS col1
----
-288

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL + ( + 48 ) * - + COUNT ( * ) + - - 40 * - + ( + ( 6 ) ) - COALESCE ( + COUNT ( * ), ( + ( + + 17 ) ), - CASE - 44 WHEN SUM ( - 2 ) THEN 22 WHEN - CAST ( NULL AS REAL ) + + MIN ( DISTINCT + + 43 ) THEN NULL END ) / - ( + 96 ) AS col1
----
-288

onlyif mysql # DIV for integer division: 
query II rowsort label-4394
SELECT ALL - 13 DIV + 41 + - + 13 AS col1, - CASE 99 WHEN - 2 THEN + 79 ELSE NULL END AS col0
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-4394
SELECT ALL - 13 / + 41 + - + 13 AS col1, - CASE 99 WHEN - 2 THEN + 79 ELSE NULL END AS col0
----
-13
NULL

query I rowsort
SELECT ALL - 74 * + 12 * ( + 47 ) * 60 col2
----
-2504160

query I rowsort
SELECT ALL + 19 * 29
----
551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4397
SELECT - CASE - ( + - 39 ) WHEN + CAST( + COUNT( * ) AS SIGNED ) THEN NULL ELSE + SUM( ALL + - 84 ) END * - 39 + 33
----
-3243

skipif mysql # not compatible
query I rowsort label-4397
SELECT - CASE - ( + - 39 ) WHEN + CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL ELSE + SUM ( ALL + - 84 ) END * - 39 + 33
----
-3243

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL + 20 * - - COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL + 20 * - - COUNT ( * ) AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4399
SELECT COALESCE ( - 35, + - 51 + - ( 18 ) * ( + 45 ) * - 74 - - + 58 * + 86 * + + CAST( NULL AS SIGNED ) + - + COUNT( * ) ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4399
SELECT COALESCE ( - 35, + - 51 + - ( 18 ) * ( + 45 ) * - 74 - - + 58 * + 86 * + + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) ) AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4400
SELECT DISTINCT CAST( + 40 AS SIGNED ) col1
----
40

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT CAST ( + 40 AS INTEGER ) col1
----
40

query I rowsort
SELECT ALL ( + 73 ) AS col0
----
73

query I rowsort
SELECT ALL + 11 * - 28 * 87
----
-26796

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT MIN( ALL 37 )
----
37

skipif mysql # not compatible
query I rowsort label-4403
SELECT MIN ( ALL 37 )
----
37

query II rowsort
SELECT - 89 + + + 38 col2, 24 AS col1
----
-51
24

query I rowsort
SELECT + 95 * 57 AS col2
----
5415

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT - ( COUNT( DISTINCT - 56 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4406
SELECT - ( COUNT ( DISTINCT - 56 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT - COUNT( DISTINCT - - 36 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4407
SELECT - COUNT ( DISTINCT - - 36 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4408
SELECT + 47 - + 16 DIV + + 74 * - 66 + + - 39
----
8

skipif mysql # not compatible
query I rowsort label-4408
SELECT + 47 - + 16 / + + 74 * - 66 + + - 39
----
8

query I rowsort
SELECT - 59 * - 2
----
118

query I rowsort
SELECT + 57 * - - 39 * - - 70 * NULLIF ( + 93, 59 )
----
14471730

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL COUNT( * ) * + 45 col0
----
45

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL COUNT ( * ) * + 45 col0
----
45

query I rowsort
SELECT - 15 + - + ( - 84 )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4413
SELECT ALL - COUNT( * ) * 92, 14 AS col1
----
-92
14

skipif mysql # not compatible
query II rowsort label-4413
SELECT ALL - COUNT ( * ) * 92, 14 AS col1
----
-92
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT ALL + CAST( NULL AS SIGNED ) * + 26 * - COUNT( + 81 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL + CAST ( NULL AS INTEGER ) * + 26 * - COUNT ( + 81 ) AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( 65, - + 1 + - - 19, 7 )
----
-65

query I rowsort
SELECT ALL - 27 + + 30 AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4417
SELECT MIN( - 61 ) col0, - ( + 0 )
----
-61
0

skipif mysql # not compatible
query II rowsort label-4417
SELECT MIN ( - 61 ) col0, - ( + 0 )
----
-61
0

query I rowsort
SELECT 56 * - 51
----
-2856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4420
SELECT 58 * COUNT( * ) DIV + 14
----
4

skipif mysql # not compatible
query I rowsort label-4420
SELECT 58 * COUNT ( * ) / + 14
----
4

query I rowsort
SELECT - 73 * - 31 AS col2
----
2263

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT COUNT( * ) + + ( - 4 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4422
SELECT COUNT ( * ) + + ( - 4 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4423
SELECT DISTINCT + COUNT( * ) + ( 27 ) + 40 * 57 AS col0, - 26
----
2308
-26

skipif mysql # not compatible
query II rowsort label-4423
SELECT DISTINCT + COUNT ( * ) + ( 27 ) + 40 * 57 AS col0, - 26
----
2308
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4424
SELECT ALL CAST( 67 AS SIGNED ) + - COUNT( * ) * - + 14 AS col0, + CAST( - 10 AS SIGNED ) AS col2
----
81
-10

skipif mysql # not compatible
query II rowsort label-4424
SELECT ALL CAST ( 67 AS INTEGER ) + - COUNT ( * ) * - + 14 AS col0, + CAST ( - 10 AS INTEGER ) AS col2
----
81
-10

query I rowsort
SELECT 35 - - 36 col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4426
SELECT + 30 * + 7 * 81 + - - NULLIF ( + - ( - 97 ), - 40 - - 56 + + + 44 ) - - - CASE + CASE 14 WHEN - - NULLIF ( + + COALESCE ( - + 73, 72 + 4 + - 14 * + COUNT( * ) ), + 58 * - 85 + + + ( + - 95 ) ) + + 21 + + + 57 THEN - NULLIF ( - 38, - + 25 ) DIV 85 + - 15 DIV + 88 * + - 44 END WHEN - 44 * SUM( - 37 ) + + - 3 + - + 6 THEN NULL ELSE 66 END + - ( COUNT( * ) ) DIV + + 97 AS col0
----
17041

skipif mysql # not compatible
query I rowsort label-4426
SELECT + 30 * + 7 * 81 + - - NULLIF ( + - ( - 97 ), - 40 - - 56 + + + 44 ) - - - CASE + CASE 14 WHEN - - NULLIF ( + + COALESCE ( - + 73, 72 + 4 + - 14 * + COUNT ( * ) ), + 58 * - 85 + + + ( + - 95 ) ) + + 21 + + + 57 THEN - NULLIF ( - 38, - + 25 ) / 85 + - 15 / + 88 * + - 44 END WHEN - 44 * SUM ( - 37 ) + + - 3 + - + 6 THEN NULL ELSE 66 END + - ( COUNT ( * ) ) / + + 97 AS col0
----
17041

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4427
SELECT ALL - - CAST( + 84 AS SIGNED ), 96 AS col2
----
84
96

skipif mysql # not compatible
query II rowsort label-4427
SELECT ALL - - CAST ( + 84 AS INTEGER ), 96 AS col2
----
84
96

query I rowsort
SELECT ALL - 25 + - 46 col2
----
-71

query I rowsort
SELECT ALL + 50 + 27 AS col0
----
77

query I rowsort
SELECT 38 + + - 16 AS col1
----
22

query I rowsort
SELECT 74 * - 28 AS col0
----
-2072

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT - 93 * NULLIF ( - - 75, + 95 ) * + + 93 * + + COALESCE ( - - ( - 29 ), + CASE - 68 WHEN 34 * - + 52 + - 30 * + 31 THEN + 17 ELSE NULL END ) + 9 + + COUNT( * ) * - 89 col0
----
18811495

skipif mysql # not compatible
query I rowsort label-4432
SELECT - 93 * NULLIF ( - - 75, + 95 ) * + + 93 * + + COALESCE ( - - ( - 29 ), + CASE - 68 WHEN 34 * - + 52 + - 30 * + 31 THEN + 17 ELSE NULL END ) + 9 + + COUNT ( * ) * - 89 col0
----
18811495

onlyif mysql # DIV for integer division: 
query I rowsort label-4433
SELECT 83 - + - ( NULLIF ( - 78, - 75 ) ) DIV + 29 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4433
SELECT 83 - + - ( NULLIF ( - 78, - 75 ) ) / + 29 AS col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4434
SELECT ALL - COUNT( * ) AS col1, - SUM( + + 32 )
----
-1
-32

skipif mysql # not compatible
query II rowsort label-4434
SELECT ALL - COUNT ( * ) AS col1, - SUM ( + + 32 )
----
-1
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4435
SELECT COUNT( DISTINCT + 27 ) * + ( - + 61 ) + ( + + CAST( + + 51 AS SIGNED ) ) + - 32 + 33 + + + 23 * - 46 AS col1
----
-1067

skipif mysql # not compatible
query I rowsort label-4435
SELECT COUNT ( DISTINCT + 27 ) * + ( - + 61 ) + ( + + CAST ( + + 51 AS INTEGER ) ) + - 32 + 33 + + + 23 * - 46 AS col1
----
-1067

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ( + NULLIF ( - + 28, - 7 ) ) * + + 1 - + - MIN( + 88 )
----
60

skipif mysql # not compatible
query I rowsort label-4436
SELECT ( + NULLIF ( - + 28, - 7 ) ) * + + 1 - + - MIN ( + 88 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4437
SELECT ALL + 15 - + - CAST( - - ( 16 ) AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL + 15 - + - CAST ( - - ( 16 ) AS INTEGER )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4438
SELECT CAST( - NULLIF ( - 9, + 77 ) AS SIGNED ) + - 56 + - + CAST( 18 AS SIGNED ) + + - 40
----
-105

skipif mysql # not compatible
query I rowsort label-4438
SELECT CAST ( - NULLIF ( - 9, + 77 ) AS INTEGER ) + - 56 + - + CAST ( 18 AS INTEGER ) + + - 40
----
-105

query I rowsort
SELECT 83 + + 26
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ALL - 43 * - + COALESCE ( + COUNT( * ), CASE 26 WHEN + COUNT( * ) + + 79 + - 90 * + 37 THEN + COUNT( * ) WHEN - - 19 THEN NULL END, + - 38 * + - 34 )
----
43

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL - 43 * - + COALESCE ( + COUNT ( * ), CASE 26 WHEN + COUNT ( * ) + + 79 + - 90 * + 37 THEN + COUNT ( * ) WHEN - - 19 THEN NULL END, + - 38 * + - 34 )
----
43

query I rowsort
SELECT ALL - NULLIF ( NULLIF ( + 37, + 14 / 96 + - 72 + - 52 ), - + 85 * + 38 * - 24 )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4442
SELECT ALL + SUM( 48 ) DIV - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL + SUM ( 48 ) / - COUNT ( * )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT 8 / + + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT 8 / + + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 44 * - 24 * + ( - 1 ) AS col0
----
1056

query I rowsort
SELECT 17 + - ( - - 40 ) + - ( - 37 )
----
14

query II rowsort
SELECT - 63 AS col1, 12 + 73 + + 87
----
-63
172

query I rowsort
SELECT ALL - 81 * - + 93 AS col0
----
7533

query I rowsort
SELECT ALL + 81 + - ( - 29 ) + - - 88
----
198

query I rowsort
SELECT 81 + + 27 * ( - + 17 ) - - + 45
----
-333

onlyif mysql # DIV for integer division: 
query I rowsort label-4450
SELECT ALL - + 99 DIV - 82 + - 15 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL - + 99 / - 82 + - 15 AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-4451
SELECT - 88 DIV - 43 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4451
SELECT - 88 / - 43 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT + 90 + + - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT + 90 + + - COUNT ( * )
----
89

query I rowsort
SELECT ALL - 15 + + + 94 AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4454
SELECT DISTINCT - CAST( - - 68 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT - CAST ( - - 68 AS INTEGER )
----
-68

query I rowsort
SELECT - 29 - 2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL - SUM( ALL + - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - SUM ( ALL + - 86 )
----
86

query I rowsort
SELECT ALL + + 32 * - 7
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT + + ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4458
SELECT + + ( + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ( + 41 ) * + 91
----
3731

query II rowsort
SELECT ALL - 22 AS col0, 28 + - + 52 AS col1
----
-22
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT SUM( DISTINCT 99 ) col0
----
99

skipif mysql # not compatible
query I rowsort label-4461
SELECT SUM ( DISTINCT 99 ) col0
----
99

query II rowsort
SELECT + 26 AS col0, 69 + - 32 + + 91 * 56 + - 51 * 43 + + + 69 AS col1
----
26
3009

query II rowsort
SELECT ALL - 38, 77 AS col0
----
-38
77

query I rowsort
SELECT 73 * 27
----
1971

onlyif mysql # aggregate syntax: 
query II rowsort label-4465
SELECT COUNT( ALL - 94 ), 38 col2
----
1
38

skipif mysql # not compatible
query II rowsort label-4465
SELECT COUNT ( ALL - 94 ), 38 col2
----
1
38

query II rowsort
SELECT ALL - 12, + 73 AS col1
----
-12
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL - MAX( 86 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL - MAX ( 86 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT MAX( ALL - + 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-4468
SELECT MAX ( ALL - + 17 )
----
-17

query I rowsort
SELECT ALL 8 * + 78
----
624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4470
SELECT + CAST( NULL AS SIGNED ) * 66 - - + 1 * - - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4470
SELECT + CAST ( NULL AS INTEGER ) * 66 - - + 1 * - - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT SUM( - 36 ) - + - ( + + 20 ) * - 62
----
-1276

skipif mysql # not compatible
query I rowsort label-4471
SELECT SUM ( - 36 ) - + - ( + + 20 ) * - 62
----
-1276

query II rowsort
SELECT + 50, 63 AS col1
----
50
63

onlyif mysql # DIV for integer division: 
query II rowsort label-4473
SELECT ALL 60 AS col1, 55 DIV - 68
----
60
0

skipif mysql # not compatible
query II rowsort label-4473
SELECT ALL 60 AS col1, 55 / - 68
----
60
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4474
SELECT DISTINCT MIN( - 12 ) + 28 * + + 40 - - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT MIN ( - 12 ) + 28 * + + 40 - - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4475
SELECT - + CAST( NULL AS DECIMAL ) - - NULLIF ( - COUNT( * ), 31 ) * + - 74 * - - CASE - COUNT( - 54 ) WHEN - ( + 33 ) + - 92 THEN - 84 + + + 46 WHEN CASE + 10 WHEN - 41 THEN - - 45 WHEN - 73 THEN 62 * + + 73 / + 88 ELSE - - 44 - - COUNT( * ) / - - 49 + - - 66 END * - - 12 THEN NULL END * + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT - + CAST ( NULL AS REAL ) - - NULLIF ( - COUNT ( * ), 31 ) * + - 74 * - - CASE - COUNT ( - 54 ) WHEN - ( + 33 ) + - 92 THEN - 84 + + + 46 WHEN CASE + 10 WHEN - 41 THEN - - 45 WHEN - 73 THEN 62 * + + 73 / + 88 ELSE - - 44 - - COUNT ( * ) / - - 49 + - - 66 END * - - 12 THEN NULL END * + - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4476
SELECT + 50 + + - CAST( 19 AS SIGNED ) col0
----
31

skipif mysql # not compatible
query I rowsort label-4476
SELECT + 50 + + - CAST ( 19 AS INTEGER ) col0
----
31

query I rowsort
SELECT ( - + 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT - 33 - + - CASE - 52 WHEN + AVG ( DISTINCT + 78 ) * + - COALESCE ( + 27, 23 + + 95 / - 81 * - + COUNT( * ) ) + - ( + 43 ) THEN NULL WHEN + COUNT( * ) * 89 THEN - 65 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT - 33 - + - CASE - 52 WHEN + AVG ( DISTINCT + 78 ) * + - COALESCE ( + 27, 23 + + 95 / - 81 * - + COUNT ( * ) ) + - ( + 43 ) THEN NULL WHEN + COUNT ( * ) * 89 THEN - 65 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT MAX( DISTINCT - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-4479
SELECT MAX ( DISTINCT - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4480
SELECT COUNT( - 4 ), 5 AS col1
----
1
5

skipif mysql # not compatible
query II rowsort label-4480
SELECT COUNT ( - 4 ), 5 AS col1
----
1
5

query I rowsort
SELECT - + ( + ( 21 ) ) col2
----
-21

query I rowsort
SELECT ALL + 86 + - 24 AS col2
----
62

query II rowsort
SELECT DISTINCT - 36 AS col0, - 69 * + 30 * ( + 69 ) AS col0
----
-36
-142830

query I rowsort
SELECT - - 31 + 58 AS col1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4485
SELECT ALL - 25 - - COUNT( * ) DIV + COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL - 25 - - COUNT ( * ) / + COUNT ( * ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT - 79 * + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-4486
SELECT - 79 * + COUNT ( * )
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-4487
SELECT ALL + 0, + 67 DIV - - 97 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-4487
SELECT ALL + 0, + 67 / - - 97 AS col2
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4488
SELECT - 88 + + + CAST( + CASE - COUNT( * ) WHEN 55 THEN NULL ELSE 72 END AS SIGNED ) + - 58 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4488
SELECT - 88 + + + CAST ( + CASE - COUNT ( * ) WHEN 55 THEN NULL ELSE 72 END AS INTEGER ) + - 58 AS col0
----
-74

query II rowsort
SELECT - 66, 22 AS col1
----
-66
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4490
SELECT + + 34 AS col2, NULLIF ( - + COUNT( * ), - - 70 + - 90 - + + ( NULLIF ( - - 69, - + 56 ) ) * - NULLIF ( 69, - 69 ) / - 57 - + 61 )
----
34
-1

skipif mysql # not compatible
query II rowsort label-4490
SELECT + + 34 AS col2, NULLIF ( - + COUNT ( * ), - - 70 + - 90 - + + ( NULLIF ( - - 69, - + 56 ) ) * - NULLIF ( 69, - 69 ) / - 57 - + 61 )
----
34
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT ALL + 61 * - 40 * + CASE + 90 WHEN 19 THEN NULL WHEN 44 + - + 81 - + COUNT( * ) * + 96 - - - 9 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL + 61 * - 40 * + CASE + 90 WHEN 19 THEN NULL WHEN 44 + - + 81 - + COUNT ( * ) * + 96 - - - 9 THEN COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 70 * 51
----
3570

onlyif mysql # DIV for integer division: 
query I rowsort label-4493
SELECT + 9 DIV + + 62 * 61 * + ( + 20 ) + - 44
----
-44

skipif mysql # not compatible
query I rowsort label-4493
SELECT + 9 / + + 62 * 61 * + ( + 20 ) + - 44
----
-44

query I rowsort
SELECT ALL + 52 * - 23 col2
----
-1196

query I rowsort
SELECT - 90 + 38
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT + ( - 27 ) * - + 48 * + 83 + + NULLIF ( + 30, - 58 + - 94 + 72 + - - CAST( - 59 AS SIGNED ) - 54 ) * + - 52 * - 58 AS col2
----
198048

skipif mysql # not compatible
query I rowsort label-4496
SELECT + ( - 27 ) * - + 48 * + 83 + + NULLIF ( + 30, - 58 + - 94 + 72 + - - CAST ( - 59 AS INTEGER ) - 54 ) * + - 52 * - 58 AS col2
----
198048

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT + 72 - + ( + - 63 ) - + SUM( ALL 21 ) col0
----
114

skipif mysql # not compatible
query I rowsort label-4497
SELECT + 72 - + ( + - 63 ) - + SUM ( ALL 21 ) col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT 89 * + - 45 + + 66 * - 7 * - COUNT( * ) + - 20 AS col1
----
-3563

skipif mysql # not compatible
query I rowsort label-4498
SELECT 89 * + - 45 + + 66 * - 7 * - COUNT ( * ) + - 20 AS col1
----
-3563

onlyif mysql # aggregate syntax: 
query II rowsort label-4499
SELECT + COUNT( ALL + - 24 ) AS col2, - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-4499
SELECT + COUNT ( ALL + - 24 ) AS col2, - COUNT ( * ) AS col1
----
1
-1

query I rowsort
SELECT 26 * 49 + - 24
----
1250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4501
SELECT ALL + 42 * + 67 DIV + COUNT( * ) + + MAX( 21 ) + + 30 + 57 * COUNT( * ) DIV + 11 AS col0
----
2870

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL + 42 * + 67 / + COUNT ( * ) + + MAX ( 21 ) + + 30 + 57 * COUNT ( * ) / + 11 AS col0
----
2870

query I rowsort
SELECT + 34 * - + 75
----
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT ALL - + 0 * 50 * + + 41 + + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL - + 0 * 50 * + + 41 + + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT - - CAST( + 43 AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4504
SELECT - - CAST ( + 43 AS INTEGER ) AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4505
SELECT - - 95 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4505
SELECT - - 95 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4506
SELECT ALL - 90 + - + COUNT( * ) AS col0, COUNT( * ) + - 45 AS col0
----
-91
-44

skipif mysql # not compatible
query II rowsort label-4506
SELECT ALL - 90 + - + COUNT ( * ) AS col0, COUNT ( * ) + - 45 AS col0
----
-91
-44

query I rowsort
SELECT ALL 40 * - 30 * - + 65 * 8 AS col1
----
624000

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL + COUNT( * ) + + 1
----
2

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL + COUNT ( * ) + + 1
----
2

query I rowsort
SELECT + 6 + 71 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT + - COUNT( * ) + 18
----
17

skipif mysql # not compatible
query I rowsort label-4510
SELECT + - COUNT ( * ) + 18
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT + CASE 21 WHEN - - 3 THEN NULL WHEN - COUNT( * ) * - + 55 * 95 THEN - 96 END - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT + CASE 21 WHEN - - 3 THEN NULL WHEN - COUNT ( * ) * - + 55 * 95 THEN - 96 END - 7
----
NULL

query I rowsort
SELECT - + 69 * + 32
----
-2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4513
SELECT ALL + 63 * + CASE 66 WHEN + 46 THEN NULL WHEN + - 80 * + - CAST( 81 AS SIGNED ) + COUNT( * ) * - - CAST( NULL AS SIGNED ) THEN NULL ELSE - 76 - + - 63 END AS col2
----
-819

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL + 63 * + CASE 66 WHEN + 46 THEN NULL WHEN + - 80 * + - CAST ( 81 AS INTEGER ) + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 76 - + - 63 END AS col2
----
-819

query I rowsort
SELECT - - 52 + - + 71 + - 8
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT - + COUNT( ALL - 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-4515
SELECT - + COUNT ( ALL - 65 )
----
-1

query I rowsort
SELECT - + 77 + - 83
----
-160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT ALL + - 27 * + 23 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL + - 27 * + 23 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4518
SELECT - CAST( MAX( ALL - 97 ) AS SIGNED ) col0
----
97

skipif mysql # not compatible
query I rowsort label-4518
SELECT - CAST ( MAX ( ALL - 97 ) AS INTEGER ) col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT ALL NULLIF ( + NULLIF ( + - 82, CASE 94 WHEN - 99 THEN COUNT( * ) + + ( + 61 ) + + 58 END * - COUNT( * ) + - 47 ), + - 78 * - + ( 81 ) * + 38 ) col0
----
-82

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL NULLIF ( + NULLIF ( + - 82, CASE 94 WHEN - 99 THEN COUNT ( * ) + + ( + 61 ) + + 58 END * - COUNT ( * ) + - 47 ), + - 78 * - + ( 81 ) * + 38 ) col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT DISTINCT - COALESCE ( 2, - 13 + + ( - COUNT( * ) ), + 41 ) * + - 1 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT - COALESCE ( 2, - 13 + + ( - COUNT ( * ) ), + 41 ) * + - 1 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT ALL CAST( + 61 AS SIGNED ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL CAST ( + 61 AS INTEGER ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL 32 * - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL 32 * - COUNT ( * )
----
-32

query II rowsort
SELECT ALL + 21 AS col0, + 42
----
21
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4524
SELECT ALL + CAST( + 30 AS SIGNED ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL + CAST ( + 30 AS INTEGER ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL + SUM( DISTINCT - 91 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL + SUM ( DISTINCT - 91 ) AS col2
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4526
SELECT - CAST( NULL AS DECIMAL ) * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT - CAST ( NULL AS REAL ) * + 47
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT + 48 + - 47 * - - 78 DIV ( + 2 ) * - - COALESCE ( + + NULLIF ( - COUNT( * ), + 47 - - 7 ), + 1 ) AS col1
----
1881

skipif mysql # not compatible
query I rowsort label-4527
SELECT + 48 + - 47 * - - 78 / ( + 2 ) * - - COALESCE ( + + NULLIF ( - COUNT ( * ), + 47 - - 7 ), + 1 ) AS col1
----
1881

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4528
SELECT ALL + 25 DIV COUNT( * ) + + SUM( DISTINCT - 73 ) - + 91 + - 50 + 71 * + 34 * + 79 * 21 * + 90, 87 AS col0
----
360434151
87

skipif mysql # not compatible
query II rowsort label-4528
SELECT ALL + 25 / COUNT ( * ) + + SUM ( DISTINCT - 73 ) - + 91 + - 50 + 71 * + 34 * + 79 * 21 * + 90, 87 AS col0
----
360434151
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT DISTINCT + COUNT( * ) + - - 48 + + COUNT( * ) * - 50 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT + COUNT ( * ) + - - 48 + + COUNT ( * ) * - 50 AS col2
----
-1

query I rowsort
SELECT ALL 7 + 29 AS col2
----
36

query I rowsort
SELECT 17 * - ( - 59 ) col2
----
1003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4532
SELECT ALL - 22 + CAST( + ( - 29 ) AS SIGNED ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL - 22 + CAST ( + ( - 29 ) AS INTEGER ) AS col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4533
SELECT ALL - CASE + 2 WHEN + COALESCE ( + 99, COUNT( * ) - - - 0 + + COALESCE ( + CAST( NULL AS SIGNED ), - 93 + + 17 + + + 92 ) + - COUNT( * ) ) THEN NULL WHEN + + 84 THEN + 65 END + + - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL - CASE + 2 WHEN + COALESCE ( + 99, COUNT ( * ) - - - 0 + + COALESCE ( + CAST ( NULL AS INTEGER ), - 93 + + 17 + + + 92 ) + - COUNT ( * ) ) THEN NULL WHEN + + 84 THEN + 65 END + + - 37 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT 42 * - - 61 / 94 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT 42 * - - 61 / 94 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( + 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT + 32 + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-4536
SELECT + 32 + COUNT ( * )
----
33

query II rowsort
SELECT + + 45, + 23 col0
----
45
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL - SUM( DISTINCT + NULLIF ( 12, - - 99 * + - 78 + 97 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL - SUM ( DISTINCT + NULLIF ( 12, - - 99 * + - 78 + 97 ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT NULLIF ( + 41, - 23 * - - COUNT( * ) ) + - 21 col1
----
20

skipif mysql # not compatible
query I rowsort label-4539
SELECT NULLIF ( + 41, - 23 * - - COUNT ( * ) ) + - 21 col1
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4540
SELECT + ( + 40 ) DIV - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4540
SELECT + ( + 40 ) / - COUNT ( * ) AS col1
----
-40

query II rowsort
SELECT 15 AS col0, - 55 + - 32 + 37
----
15
-50

query I rowsort
SELECT DISTINCT - 91 - + 71 AS col2
----
-162

query I rowsort
SELECT - ( - - 44 ) - - - 39
----
-83

query I rowsort
SELECT - ( + - 27 ) AS col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4545
SELECT 17 + + + 17 DIV - 24 * - - ( - 2 ) * SUM( + NULLIF ( - 64, - 54 ) ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4545
SELECT 17 + + + 17 / - 24 * - - ( - 2 ) * SUM ( + NULLIF ( - 64, - 54 ) ) AS col2
----
17

query I rowsort
SELECT ALL + 78 * 2
----
156

query II rowsort
SELECT ALL - 7 AS col2, ( - 18 ) * + 50 AS col1
----
-7
-900

query I rowsort
SELECT - + 81 col1
----
-81

query I rowsort
SELECT CASE + 63 WHEN - - 89 / 17 / - 93 - 42 + 85 * 93 THEN - COALESCE ( - + 26, 32 ) WHEN + + COALESCE ( + + 83, - 53, - - 15 ) + 23 THEN NULL END + - 65 + - 24
----
NULL

query I rowsort
SELECT ALL + 17 * - 3 * - 15
----
765

query I rowsort
SELECT 27 * - 99
----
-2673

query I rowsort
SELECT 86 - - 85
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL SUM( + + 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL SUM ( + + 82 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT DISTINCT - ( - + MAX( - 35 ) ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT - ( - + MAX ( - 35 ) ) AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT + 6 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT + 6 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4556
SELECT 2 DIV + - 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4556
SELECT 2 / + - 49 AS col0
----
0

query I rowsort
SELECT ALL 85 + + 45 AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT 73 + 61 + + 66 / - + CASE 61 WHEN 65 / 38 + 59 THEN - COALESCE ( - 45, + COUNT( * ) * 99 - - + 87, + NULLIF ( ( + + NULLIF ( - 10, - - 88 ) ), 52 ) + COUNT( * ) ) ELSE NULL END + + 65 + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT 73 + 61 + + 66 / - + CASE 61 WHEN 65 / 38 + 59 THEN - COALESCE ( - 45, + COUNT ( * ) * 99 - - + 87, + NULLIF ( ( + + NULLIF ( - 10, - - 88 ) ), 52 ) + COUNT ( * ) ) ELSE NULL END + + 65 + + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT ( + - COUNT( * ) ) + + 31 col1
----
30

skipif mysql # not compatible
query I rowsort label-4559
SELECT ( + - COUNT ( * ) ) + + 31 col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT MIN( ALL 91 ) + - + 4 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4560
SELECT MIN ( ALL 91 ) + - + 4 AS col0
----
87

query I rowsort
SELECT ALL + 35 * + 44
----
1540

query I rowsort
SELECT ALL + 26 + + 2 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT ALL COUNT( * ) * + ( - 74 ) * ( 34 ) + + + 28 AS col1
----
-2488

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL COUNT ( * ) * + ( - 74 ) * ( 34 ) + + + 28 AS col1
----
-2488

query I rowsort
SELECT 26 * + 50 + - 0 AS col2
----
1300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4565
SELECT ALL - 90 + - COUNT( * ) * - 32 * + 53 - - - 73 AS col2, CAST( + 32 AS SIGNED ) AS col0
----
1533
32

skipif mysql # not compatible
query II rowsort label-4565
SELECT ALL - 90 + - COUNT ( * ) * - 32 * + 53 - - - 73 AS col2, CAST ( + 32 AS INTEGER ) AS col0
----
1533
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4566
SELECT 43 - + 70 DIV - 55 - - 7 + + + 80 + - 3
----
128

skipif mysql # not compatible
query I rowsort label-4566
SELECT 43 - + 70 / - 55 - - 7 + + + 80 + - 3
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT 63 * + - COUNT( * ) + 33
----
-30

skipif mysql # not compatible
query I rowsort label-4567
SELECT 63 * + - COUNT ( * ) + 33
----
-30

query I rowsort
SELECT 52 - 16 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT + + COUNT( * ) * - 63 + - COUNT( * ) * - - 48 AS col0
----
-111

skipif mysql # not compatible
query I rowsort label-4569
SELECT + + COUNT ( * ) * - 63 + - COUNT ( * ) * - - 48 AS col0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT - - ( + 47 ) * + MIN( - + 16 ) + 10 + - 79
----
-821

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT - - ( + 47 ) * + MIN ( - + 16 ) + 10 + - 79
----
-821

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL - + ( 25 ) - + + MAX( 63 ) + + - COUNT( * ) * - 81
----
-7

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL - + ( 25 ) - + + MAX ( 63 ) + + - COUNT ( * ) * - 81
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4572
SELECT ALL - 62 DIV 83 + + 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL - 62 / 83 + + 62 AS col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-4573
SELECT DISTINCT - + 98 * COUNT( ALL + ( - 22 ) ) col1, + COUNT( * )
----
-98
1

skipif mysql # not compatible
query II rowsort label-4573
SELECT DISTINCT - + 98 * COUNT ( ALL + ( - 22 ) ) col1, + COUNT ( * )
----
-98
1

query I rowsort
SELECT ( - + 10 ) * - ( - 4 ) + + 40
----
0

query I rowsort
SELECT + 88 * NULLIF ( 67, + 16 ) * - 9
----
-53064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4576
SELECT ALL - MIN( DISTINCT + - 11 ) * CAST( NULL AS SIGNED ) * + + NULLIF ( 51, 54 ) * + 71 + - - COUNT( * ) - - - 9 - + + 30 * + + 81 * 70 * - - 15 + + 4, CASE - ( 59 ) WHEN + CAST( NULL AS SIGNED ) + 29 THEN NULL WHEN + 93 * + - CASE 46 WHEN + + 48 THEN + COUNT( * ) WHEN - + 95 THEN NULL END + - CAST( NULL AS SIGNED ) THEN + 54 ELSE NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4576
SELECT ALL - MIN ( DISTINCT + - 11 ) * CAST ( NULL AS INTEGER ) * + + NULLIF ( 51, 54 ) * + 71 + - - COUNT ( * ) - - - 9 - + + 30 * + + 81 * 70 * - - 15 + + 4, CASE - ( 59 ) WHEN + CAST ( NULL AS INTEGER ) + 29 THEN NULL WHEN + 93 * + - CASE 46 WHEN + + 48 THEN + COUNT ( * ) WHEN - + 95 THEN NULL END + - CAST ( NULL AS INTEGER ) THEN + 54 ELSE NULL END AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4577
SELECT ALL - CASE + - 38 WHEN 95 + - + CASE + 16 WHEN ( + CAST( - - 36 AS SIGNED ) ) THEN - + 27 * - 23 WHEN + 58 * + CAST( NULL AS DECIMAL ) * - COUNT( * ) / + ( - + 44 ) + + + 34 * + 89 THEN + 65 ELSE + 83 / NULLIF ( 30, + COUNT( * ) * + + COUNT( * ) ) + - + 80 + 1 END + - MAX( 85 ) + 89 * + - 50 * + - 3 THEN + CASE + CAST( NULL AS SIGNED ) WHEN - 19 THEN + - ( - - 80 ) WHEN - + CASE - + 2 WHEN - + CASE WHEN NOT ( 97 ) NOT BETWEEN - 4 AND ( + - 8 ) THEN - 90 * - CASE - + NULLIF ( - + 40, CAST( 92 AS SIGNED ) * + COUNT( * ) ) WHEN 86 THEN 74 ELSE NULL END * COUNT( * ) + - 52 END * 71 THEN - 94 ELSE + 30 END * 62 THEN NULL ELSE + 67 * 25 END * 43 WHEN + 99 THEN + COUNT( * ) / + 78 WHEN - 42 THEN - 23 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - CASE + - 38 WHEN 95 + - + CASE + 16 WHEN ( + CAST ( - - 36 AS INTEGER ) ) THEN - + 27 * - 23 WHEN + 58 * + CAST ( NULL AS REAL ) * - COUNT ( * ) / + ( - + 44 ) + + + 34 * + 89 THEN + 65 ELSE + 83 / NULLIF ( 30, + COUNT ( * ) * + + COUNT ( * ) ) + - + 80 + 1 END + - MAX ( 85 ) + 89 * + - 50 * + - 3 THEN + CASE + CAST ( NULL AS INTEGER ) WHEN - 19 THEN + - ( - - 80 ) WHEN - + CASE - + 2 WHEN - + CASE WHEN NOT ( 97 ) NOT BETWEEN - 4 AND ( + - 8 ) THEN - 90 * - CASE - + NULLIF ( - + 40, CAST ( 92 AS INTEGER ) * + COUNT ( * ) ) WHEN 86 THEN 74 ELSE NULL END * COUNT ( * ) + - 52 END * 71 THEN - 94 ELSE + 30 END * 62 THEN NULL ELSE + 67 * 25 END * 43 WHEN + 99 THEN + COUNT ( * ) / + 78 WHEN - 42 THEN - 23 END AS col0
----
NULL

query I rowsort
SELECT 63 * + 48
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT - 41 + + + CASE - 83 WHEN - 39 * - 25 THEN NULL WHEN 14 * + 96 THEN + 39 + - COUNT( * ) - 0 - - 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT - 41 + + + CASE - 83 WHEN - 39 * - 25 THEN NULL WHEN 14 * + 96 THEN + 39 + - COUNT ( * ) - 0 - - 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4580
SELECT - 15 + + + COUNT( * ) * + - 46 * + 77 AS col0, + 77 AS col0
----
-3557
77

skipif mysql # not compatible
query II rowsort label-4580
SELECT - 15 + + + COUNT ( * ) * + - 46 * + 77 AS col0, + 77 AS col0
----
-3557
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT - 24 * + ( 28 ) * - + COUNT( * ) AS col0
----
672

skipif mysql # not compatible
query I rowsort label-4581
SELECT - 24 * + ( 28 ) * - + COUNT ( * ) AS col0
----
672

query I rowsort
SELECT 42 * + - 36 + - 10 AS col2
----
-1522

query I rowsort
SELECT DISTINCT + NULLIF ( + 62, NULLIF ( + 12, - + 31 * - 10 / - 64 ) )
----
62

query I rowsort
SELECT + 91 + + 37 + + ( + - 49 ) * - 26 + 24 * - - 29
----
2098

query I rowsort
SELECT ALL - 6 * + + 71
----
-426

query I rowsort
SELECT 76 - - 4 AS col0
----
80

query I rowsort
SELECT 18 + - 56 * 9 * + 93 AS col0
----
-46854

query I rowsort
SELECT DISTINCT 79 + - - 17
----
96

query I rowsort
SELECT DISTINCT 96 + + 3
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4590
SELECT + 37 + 76 + - 76 * - + COUNT( * ) + 60 DIV - COUNT( * ) - - - 85 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4590
SELECT + 37 + 76 + - 76 * - + COUNT ( * ) + 60 / - COUNT ( * ) - - - 85 AS col2
----
44

query I rowsort
SELECT DISTINCT 43 * + 44 AS col2
----
1892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4592
SELECT ALL SUM( DISTINCT - CAST( - 92 AS SIGNED ) ) DIV 89
----
1

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL SUM ( DISTINCT - CAST ( - 92 AS INTEGER ) ) / 89
----
1

query I rowsort
SELECT ALL + 10 * + 37 + + 66 + + 70
----
506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4594
SELECT CASE + + 5 WHEN - + 62 * - + COALESCE ( COUNT( * ), ( + MIN( + - 47 ) ) / - - 75 ) THEN 99 WHEN + + CASE - 87 WHEN + + COUNT( * ) * - 38 THEN NULL WHEN 43 THEN 49 / + - 44 + + + COUNT( * ) + - AVG ( 62 ) + - SUM( - - 48 ) + + 64 WHEN + - 73 + 44 THEN 25 + 65 WHEN + 30 + - 87 THEN + 46 END + + ( - 47 ) + + CAST( NULL AS SIGNED ) THEN + - 13 WHEN + ( + - CAST( NULL AS SIGNED ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT CASE + + 5 WHEN - + 62 * - + COALESCE ( COUNT ( * ), ( + MIN ( + - 47 ) ) / - - 75 ) THEN 99 WHEN + + CASE - 87 WHEN + + COUNT ( * ) * - 38 THEN NULL WHEN 43 THEN 49 / + - 44 + + + COUNT ( * ) + - AVG ( 62 ) + - SUM ( - - 48 ) + + 64 WHEN + - 73 + 44 THEN 25 + 65 WHEN + 30 + - 87 THEN + 46 END + + ( - 47 ) + + CAST ( NULL AS INTEGER ) THEN + - 13 WHEN + ( + - CAST ( NULL AS INTEGER ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT - 42 * - COUNT( 98 )
----
42

skipif mysql # not compatible
query I rowsort label-4595
SELECT - 42 * - COUNT ( 98 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT CASE 47 WHEN - 90 * + COUNT( * ) + + 66 THEN + ( + 6 ) + + 78 * + + 95 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT CASE 47 WHEN - 90 * + COUNT ( * ) + + 66 THEN + ( + 6 ) + + 78 * + + 95 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4597
SELECT + NULLIF ( + ( + 47 ), + COUNT( * ) ) DIV + - 14 + + 36 - + - 96
----
129

skipif mysql # not compatible
query I rowsort label-4597
SELECT + NULLIF ( + ( + 47 ), + COUNT ( * ) ) / + - 14 + + 36 - + - 96
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-4598
SELECT + NULLIF ( COUNT( * ), + 6 * + 62 + - 51 ), + 28 AS col2
----
1
28

skipif mysql # not compatible
query II rowsort label-4598
SELECT + NULLIF ( COUNT ( * ), + 6 * + 62 + - 51 ), + 28 AS col2
----
1
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT - 35 + - + COUNT( * ) - + 59
----
-95

skipif mysql # not compatible
query I rowsort label-4599
SELECT - 35 + - + COUNT ( * ) - + 59
----
-95

query I rowsort
SELECT DISTINCT + 0 * + 74 - 3
----
-3

query I rowsort
SELECT + 6 * 60
----
360

query I rowsort
SELECT ALL 88 * NULLIF ( 64, 79 )
----
5632

query I rowsort
SELECT NULLIF ( 29, - 16 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT COALESCE ( + 36, COUNT( DISTINCT + 90 ), + 58 * - 80 + 36, - 84 * - 22 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4604
SELECT COALESCE ( + 36, COUNT ( DISTINCT + 90 ), + 58 * - 80 + 36, - 84 * - 22 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT ALL + COUNT( 12 )
----
1

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL + COUNT ( 12 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4606
SELECT - CAST( NULL AS SIGNED ) * 22 - 22 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT - CAST ( NULL AS INTEGER ) * 22 - 22 col1
----
NULL

query I rowsort
SELECT + 63 - 61
----
2

query I rowsort
SELECT - 69 * - 86 AS col2
----
5934

onlyif mysql # DIV for integer division: 
query I rowsort label-4609
SELECT ALL + ( COALESCE ( + 72, - 34 DIV - 6 ) )
----
72

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL + ( COALESCE ( + 72, - 34 / - 6 ) )
----
72

query I rowsort
SELECT 6 * 43 + 3 AS col0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT DISTINCT + COUNT( - 28 )
----
1

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT + COUNT ( - 28 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT + 75 * COUNT( * ) - + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-4612
SELECT + 75 * COUNT ( * ) - + COUNT ( * )
----
74

query I rowsort
SELECT DISTINCT + 43 + 78
----
121

query I rowsort
SELECT ALL ( + 45 ) AS col0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT - COALESCE ( 3, 14 + 49 * 14 ) DIV - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4615
SELECT - COALESCE ( 3, 14 + 49 * 14 ) / - 98 AS col1
----
0

query I rowsort
SELECT ALL + 25 + + 85
----
110

query I rowsort
SELECT ALL + 7 + ( 14 ) AS col0
----
21

query I rowsort
SELECT ALL ( ( - 69 ) ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT - CASE 85 WHEN 60 - 71 THEN NULL WHEN + AVG ( 7 ) * COUNT( * ) THEN MAX( + 64 ) END / 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT - CASE 85 WHEN 60 - 71 THEN NULL WHEN + AVG ( 7 ) * COUNT ( * ) THEN MAX ( + 64 ) END / 92
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4620
SELECT + 73 DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-4620
SELECT + 73 / 57
----
1

query I rowsort
SELECT + 32 - 5 AS col0
----
27

query I rowsort
SELECT + 49 * + 38 AS col0
----
1862

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4623
SELECT ALL - COUNT( * ) + - 84 DIV COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL - COUNT ( * ) + - 84 / COUNT ( * )
----
-85

query I rowsort
SELECT DISTINCT NULLIF ( 77, + ( AVG ( 19 ) ) * 55 )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4625
SELECT - 37 DIV 36 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4625
SELECT - 37 / 36 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT DISTINCT ( - COALESCE ( CASE WHEN NOT 21 IS NULL THEN NULL ELSE - CASE 12 WHEN + COUNT( DISTINCT + 28 ) * COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + 39 WHEN 20 * COALESCE ( - ( SUM( ALL - 73 ) ) / 27, 31 ) THEN NULL ELSE + 78 END + 62 * + 11 END, + MAX( DISTINCT + 94 ) * 73 ) )
----
-6862

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT ( - COALESCE ( CASE WHEN NOT 21 IS NULL THEN NULL ELSE - CASE 12 WHEN + COUNT ( DISTINCT + 28 ) * COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + 39 WHEN 20 * COALESCE ( - ( SUM ( ALL - 73 ) ) / 27, 31 ) THEN NULL ELSE + 78 END + 62 * + 11 END, + MAX ( DISTINCT + 94 ) * 73 ) )
----
-6862

query I rowsort
SELECT - 72 + 69 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT DISTINCT COUNT( * ) * + 53
----
53

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT COUNT ( * ) * + 53
----
53

query I rowsort
SELECT + 83 * 5
----
415

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT DISTINCT COUNT( ALL - 58 ) * 35 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT COUNT ( ALL - 58 ) * 35 AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4631
SELECT - 54 + - CAST( 21 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-4631
SELECT - 54 + - CAST ( 21 AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT + COUNT( * ) * 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4632
SELECT + COUNT ( * ) * 67 AS col2
----
67

query I rowsort
SELECT + ( ( + 74 ) )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4634
SELECT DISTINCT + 55 DIV COUNT( * ) - + 89
----
-34

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT + 55 / COUNT ( * ) - + 89
----
-34

query I rowsort
SELECT 64 * 21 + + 28
----
1372

query I rowsort
SELECT ALL + ( + 4 ) AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4637
SELECT + 10 * + 89 + - CASE CAST( 80 AS DECIMAL ) WHEN 52 THEN 7 * + CAST( + 94 AS SIGNED ) END * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4637
SELECT + 10 * + 89 + - CASE CAST ( 80 AS REAL ) WHEN 52 THEN 7 * + CAST ( + 94 AS INTEGER ) END * + 2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4638
SELECT 76 DIV COALESCE ( ( - 21 ), 0 + 85, COUNT( * ) + 40 DIV 76, 21 + 59 * + 23 ) + ( + 9 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4638
SELECT 76 / COALESCE ( ( - 21 ), 0 + 85, COUNT ( * ) + 40 / 76, 21 + 59 * + 23 ) + ( + 9 ) AS col0
----
6

query I rowsort
SELECT - 87 + - 79 * + 13
----
-1114

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT + 92 DIV 64 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4640
SELECT + 92 / 64 AS col0
----
1

query I rowsort
SELECT + CASE + 16 WHEN - 38 THEN - 83 ELSE - 54 END + + 80 AS col1
----
26

query I rowsort
SELECT + + 85 - 87
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT ALL - 80 DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL - 80 / - 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT 16 * 65 + + COUNT( ALL - 52 ) AS col2
----
1041

skipif mysql # not compatible
query I rowsort label-4644
SELECT 16 * 65 + + COUNT ( ALL - 52 ) AS col2
----
1041

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT COUNT( * ) * 33 + 78 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-4645
SELECT COUNT ( * ) * 33 + 78 AS col0
----
111

query I rowsort
SELECT + + 99 * + 99
----
9801

query I rowsort
SELECT + + 41 * 69 AS col1
----
2829

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT + + 88 * 92 + CASE MIN( 41 ) - 52 WHEN + 31 - 97 / + 23 THEN + 94 * 31 + 18 END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT + + 88 * 92 + CASE MIN ( 41 ) - 52 WHEN + 31 - 97 / + 23 THEN + 94 * 31 + 18 END / COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 30 * 4 col0
----
-120

query I rowsort
SELECT - ( - ( ( + ( 47 ) ) ) ) AS col0
----
47

query I rowsort
SELECT ALL 6 * 90
----
540

query I rowsort
SELECT ALL + 24 * 45 + + 77
----
1157

query I rowsort
SELECT + 50 + - COALESCE ( + 58 - ( - 20 ), + 36 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT DISTINCT - MAX( 56 ) * 15 + 49 * + 58
----
2002

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT - MAX ( 56 ) * 15 + 49 * + 58
----
2002

query I rowsort
SELECT DISTINCT 76 * 89 + + 4
----
6768

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL - 95 * + COUNT( * ) + - COUNT( - 80 )
----
-96

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL - 95 * + COUNT ( * ) + - COUNT ( - 80 )
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4657
SELECT ALL + COALESCE ( 70, 6 DIV ( + NULLIF ( ( 77 ), - 35 - - 84 ) ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL + COALESCE ( 70, 6 / ( + NULLIF ( ( 77 ), - 35 - - 84 ) ) ) AS col2
----
70

query I rowsort
SELECT - - 34 + + 75
----
109

query I rowsort
SELECT ALL - 39 + - 65 * 53
----
-3484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4660
SELECT ALL + ( + + 97 ) + CASE + CAST( NULL AS SIGNED ) WHEN MAX( 56 ) THEN + 43 WHEN 10 * 43 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL + ( + + 97 ) + CASE + CAST ( NULL AS INTEGER ) WHEN MAX ( 56 ) THEN + 43 WHEN 10 * 43 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 11 * - - 35
----
385

query I rowsort
SELECT ALL + 67 * 70 AS col0
----
4690

query I rowsort
SELECT 17 + 37
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT DISTINCT + 94 - - + 42 * - COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT + 94 - - + 42 * - COUNT ( * ) AS col2
----
52

query I rowsort
SELECT 27 + - 4 * 48 AS col1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT ALL + MAX( 60 ) - + 62
----
-2

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL + MAX ( 60 ) - + 62
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT CAST( NULL AS SIGNED ) * - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT CAST ( NULL AS INTEGER ) * - 62 AS col2
----
NULL

query I rowsort
SELECT 36 * - 24
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT 10 - - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4669
SELECT 10 - - COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT 52 + - + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4670
SELECT 52 + - + COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT CASE - COALESCE ( ( - COUNT( * ) ), + 55 * 2 ) WHEN + 72 THEN - 61 END / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT CASE - COALESCE ( ( - COUNT ( * ) ), + 55 * 2 ) WHEN + 72 THEN - 61 END / COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 26 * - 4 AS col1
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4673
SELECT ALL + COUNT( * ) DIV 22 col2
----
0

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL + COUNT ( * ) / 22 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4674
SELECT DISTINCT - 14 DIV + - 81
----
0

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT - 14 / + - 81
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4675
SELECT 45 DIV + + 95 col1
----
0

skipif mysql # not compatible
query I rowsort label-4675
SELECT 45 / + + 95 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4676
SELECT ALL 70 * ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL 70 * ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT + - ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4677
SELECT + - ( - COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT - + 11 AS col0
----
-11

query I rowsort
SELECT + - CASE - - ( - 17 ) WHEN 98 THEN + 70 WHEN + 19 * 74 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + ( + 97 ) * + 83 AS col0
----
8051

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT ALL + - 78 * + 5 + 17 DIV 62 AS col1
----
-390

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL + - 78 * + 5 + 17 / 62 AS col1
----
-390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4682
SELECT CAST( - 13 AS SIGNED ) * + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-4682
SELECT CAST ( - 13 AS INTEGER ) * + COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT DISTINCT COUNT( * ) + ( + ( + 96 ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT COUNT ( * ) + ( + ( + 96 ) ) AS col0
----
97

query I rowsort
SELECT ALL 51 + - + 11 * - 8
----
139

query I rowsort
SELECT DISTINCT - ( + ( - 87 ) ) col0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT + ( + 87 ) DIV - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT + ( + 87 ) / - 89 AS col1
----
0

query I rowsort
SELECT ALL + 90 + 54 col0
----
144

query I rowsort
SELECT DISTINCT - NULLIF ( - + 0, + 71 ) + - 21
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT ALL - + SUM( DISTINCT - + 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL - + SUM ( DISTINCT - + 65 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT ALL ( - 91 ) + + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL ( - 91 ) + + COUNT ( * )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4691
SELECT ALL 92 DIV 21 * COALESCE ( NULLIF ( + 48, + 39 ), + 39 )
----
192

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL 92 / 21 * COALESCE ( NULLIF ( + 48, + 39 ), + 39 )
----
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4692
SELECT + - 83 * 2 - - 27 DIV COUNT( * ) + 99 DIV - 15
----
-145

skipif mysql # not compatible
query I rowsort label-4692
SELECT + - 83 * 2 - - 27 / COUNT ( * ) + 99 / - 15
----
-145

query I rowsort
SELECT ALL - + NULLIF ( + - 58, - 55 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4694
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) / + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) / + 1 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4695
SELECT ALL - 74 DIV - 40
----
1

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL - 74 / - 40
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT MAX( ALL - - 45 ) + 52 * - 54 col1
----
-2763

skipif mysql # not compatible
query I rowsort label-4696
SELECT MAX ( ALL - - 45 ) + 52 * - 54 col1
----
-2763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT COALESCE ( + 97, + 53 * - CAST( 10 AS SIGNED ) ) * 86
----
8342

skipif mysql # not compatible
query I rowsort label-4697
SELECT COALESCE ( + 97, + 53 * - CAST ( 10 AS INTEGER ) ) * 86
----
8342

query I rowsort
SELECT DISTINCT 76 + + + 34
----
110

query I rowsort
SELECT DISTINCT - 24 * + 1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4700
SELECT ( - 84 ) + + COUNT( * ) + - CASE CAST( 88 AS SIGNED ) WHEN - 3 + COUNT( * ) THEN NULL WHEN - 43 THEN NULL WHEN + 12 THEN 81 * - CASE 62 WHEN + COUNT( * ) THEN 29 * 97 + 61 ELSE - 74 * + 56 END ELSE NULL END / 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT ( - 84 ) + + COUNT ( * ) + - CASE CAST ( 88 AS INTEGER ) WHEN - 3 + COUNT ( * ) THEN NULL WHEN - 43 THEN NULL WHEN + 12 THEN 81 * - CASE 62 WHEN + COUNT ( * ) THEN 29 * 97 + 61 ELSE - 74 * + 56 END ELSE NULL END / 43
----
NULL

query II rowsort
SELECT 92 AS col1, 67 AS col2
----
92
67

query I rowsort
SELECT 30 + + ( 22 ) * 19
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ( + 55 ) + + + 88 + 59 * - COUNT( DISTINCT 25 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4703
SELECT ( + 55 ) + + + 88 + 59 * - COUNT ( DISTINCT 25 ) AS col1
----
84

query I rowsort
SELECT 46 * COALESCE ( 34, - 29 * + 72, 69 ) * 64 AS col2
----
100096

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT COUNT( * ) + - - 20 + 47 * 24 AS col1
----
1149

skipif mysql # not compatible
query I rowsort label-4705
SELECT COUNT ( * ) + - - 20 + 47 * 24 AS col1
----
1149

query I rowsort
SELECT 55 - - - 79 AS col0
----
-24

query I rowsort
SELECT ALL + 45 - - 26
----
71

query II rowsort
SELECT ALL 51, 43 col0
----
51
43

query I rowsort
SELECT DISTINCT - 18 * - 38
----
684

query I rowsort
SELECT 61 * + 98 AS col0
----
5978

query I rowsort
SELECT 32 + - + 40
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - MAX( - - ( - + 35 ) )
----
35

skipif mysql # not compatible
query I rowsort label-4712
SELECT - MAX ( - - ( - + 35 ) )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4713
SELECT 24 AS col0, + 93 * - COUNT( * )
----
24
-93

skipif mysql # not compatible
query II rowsort label-4713
SELECT 24 AS col0, + 93 * - COUNT ( * )
----
24
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT 37 - + COUNT( * ) + - 29 + - 85 * - 99
----
8422

skipif mysql # not compatible
query I rowsort label-4714
SELECT 37 - + COUNT ( * ) + - 29 + - 85 * - 99
----
8422

query I rowsort
SELECT - 83 + - 39 AS col2
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT 83 * + - 24 * COUNT( * )
----
-1992

skipif mysql # not compatible
query I rowsort label-4716
SELECT 83 * + - 24 * COUNT ( * )
----
-1992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4717
SELECT 86 + - 63 - 50 DIV + COUNT( * ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4717
SELECT 86 + - 63 - 50 / + COUNT ( * ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT 17 + - SUM( + 65 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-4718
SELECT 17 + - SUM ( + 65 ) AS col1
----
-48

query I rowsort
SELECT ALL + - 59 * - COALESCE ( 61, - 12, 8 ) + + 53 * - 22 AS col2
----
2433

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT + 42 DIV - - 51 + - 84 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-4720
SELECT + 42 / - - 51 + - 84 AS col2
----
-84

query I rowsort
SELECT 1 + - - 99 * - 57
----
-5642

query I rowsort
SELECT ALL 59 * - 92 + - - NULLIF ( 23, + 69 )
----
-5405

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT - CASE - SUM( + 96 ) WHEN 28 / NULLIF ( + 51 * - 51, 86 ) THEN - 20 ELSE NULL END * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT - CASE - SUM ( + 96 ) WHEN 28 / NULLIF ( + 51 * - 51, 86 ) THEN - 20 ELSE NULL END * + 57
----
NULL

query I rowsort
SELECT 32 + 24 + - - 77 + + 34 * 70 * 22 * + 32 AS col2
----
1675653

onlyif mysql # aggregate syntax: 
query II rowsort label-4725
SELECT + 38 AS col1, - 84 * - + COUNT( * )
----
38
84

skipif mysql # not compatible
query II rowsort label-4725
SELECT + 38 AS col1, - 84 * - + COUNT ( * )
----
38
84

query I rowsort
SELECT DISTINCT + + 74 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT DISTINCT - 7 * + 89 - COUNT( * ) AS col0
----
-624

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT - 7 * + 89 - COUNT ( * ) AS col0
----
-624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4728
SELECT ALL + COALESCE ( + + 68, + - 96 * - COUNT( * ), ( - ( + CAST( + COUNT( * ) AS SIGNED ) ) ) + + 47 * - 88 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL + COALESCE ( + + 68, + - 96 * - COUNT ( * ), ( - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) ) + + 47 * - 88 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4729
SELECT DISTINCT + ( - - 60 ) AS col2, - MIN( DISTINCT - 36 )
----
60
36

skipif mysql # not compatible
query II rowsort label-4729
SELECT DISTINCT + ( - - 60 ) AS col2, - MIN ( DISTINCT - 36 )
----
60
36

onlyif mysql # aggregate syntax: 
query II rowsort label-4730
SELECT SUM( + + 92 ) AS col2, - 59
----
92
-59

skipif mysql # not compatible
query II rowsort label-4730
SELECT SUM ( + + 92 ) AS col2, - 59
----
92
-59

query I rowsort
SELECT - 78 + + 78
----
0

query I rowsort
SELECT - 55 + 18
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4733
SELECT - MAX( CAST( + 85 AS SIGNED ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4733
SELECT - MAX ( CAST ( + 85 AS INTEGER ) ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT + NULLIF ( - - 66, - 80 + COUNT( * ) / - 99 ) + - 71 * 58 AS col2
----
-4052

skipif mysql # not compatible
query I rowsort label-4734
SELECT + NULLIF ( - - 66, - 80 + COUNT ( * ) / - 99 ) + - 71 * 58 AS col2
----
-4052

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT ALL 1 * + COALESCE ( - NULLIF ( - - 22, 20 / + 83 ), + COUNT( * ) + + 26, - 94 + + 8 ) * 84 AS col0
----
-1848

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL 1 * + COALESCE ( - NULLIF ( - - 22, 20 / + 83 ), + COUNT ( * ) + + 26, - 94 + + 8 ) * 84 AS col0
----
-1848

onlyif mysql # DIV for integer division: 
query I rowsort label-4736
SELECT + 7 DIV - - 88
----
0

skipif mysql # not compatible
query I rowsort label-4736
SELECT + 7 / - - 88
----
0

query I rowsort
SELECT ALL 19 * ( + 46 )
----
874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4738
SELECT 68 * + 78 + + - ( - CAST( 73 AS SIGNED ) )
----
5377

skipif mysql # not compatible
query I rowsort label-4738
SELECT 68 * + 78 + + - ( - CAST ( 73 AS INTEGER ) )
----
5377

query I rowsort
SELECT - COALESCE ( + - 96, + 32 ) AS col2
----
96

query I rowsort
SELECT + 53 * - - 34 AS col1
----
1802

onlyif mysql # DIV for integer division: 
query II rowsort label-4741
SELECT + 70 + - + 40, 72 + 6 * + ( - 73 DIV - 11 - - 69 ) AS col0
----
30
522

skipif mysql # not compatible
query II rowsort label-4741
SELECT + 70 + - + 40, 72 + 6 * + ( - 73 / - 11 - - 69 ) AS col0
----
30
522

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT - NULLIF ( - ( - 7 ), 91 + 78 ) + MAX( DISTINCT 48 )
----
41

skipif mysql # not compatible
query I rowsort label-4742
SELECT - NULLIF ( - ( - 7 ), 91 + 78 ) + MAX ( DISTINCT 48 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT - MIN( ALL - NULLIF ( - - 52, + - 62 / 57 ) )
----
52

skipif mysql # not compatible
query I rowsort label-4743
SELECT - MIN ( ALL - NULLIF ( - - 52, + - 62 / 57 ) )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4744
SELECT ALL + COALESCE ( + + 87, - + COALESCE ( - 88, + 44, 83 ) ) + + CAST( NULL AS SIGNED ) / - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL + COALESCE ( + + 87, - + COALESCE ( - 88, + 44, 83 ) ) + + CAST ( NULL AS INTEGER ) / - 57
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4745
SELECT DISTINCT - 1 * + 49 col1, SUM( DISTINCT - 97 ) * 85 AS col1
----
-49
-8245

skipif mysql # not compatible
query II rowsort label-4745
SELECT DISTINCT - 1 * + 49 col1, SUM ( DISTINCT - 97 ) * 85 AS col1
----
-49
-8245

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT ALL + COUNT( * ) + 57 * 74 AS col1
----
4219

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL + COUNT ( * ) + 57 * 74 AS col1
----
4219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT ALL - COALESCE ( 40, - 51 ) + - + NULLIF ( CASE - 38 WHEN CAST( + 62 AS SIGNED ) THEN - 95 * + 39 ELSE NULL END, - 58 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL - COALESCE ( 40, - 51 ) + - + NULLIF ( CASE - 38 WHEN CAST ( + 62 AS INTEGER ) THEN - 95 * + 39 ELSE NULL END, - 58 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL - - COUNT( * ) * + 44 + + 99 + + 59
----
202

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL - - COUNT ( * ) * + 44 + + 99 + + 59
----
202

query I rowsort
SELECT DISTINCT 95 * 68 + + + 51
----
6511

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4750
SELECT + CASE + + CASE 23 WHEN - NULLIF ( NULLIF ( 90, 13 + 97 ), - 27 * COUNT( * ) ) THEN - 32 ELSE - ( ( - 2 ) ) + - COUNT( * ) END WHEN ( 32 ) THEN COUNT( * ) * + MIN( 30 ) + 37 * 7 WHEN + 41 THEN NULL ELSE + 73 + + SUM( 32 ) END DIV COALESCE ( + 72, 42 * 46 ) - + 51 DIV + NULLIF ( + COUNT( * ) + + 70, + 81 + - 52 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4750
SELECT + CASE + + CASE 23 WHEN - NULLIF ( NULLIF ( 90, 13 + 97 ), - 27 * COUNT ( * ) ) THEN - 32 ELSE - ( ( - 2 ) ) + - COUNT ( * ) END WHEN ( 32 ) THEN COUNT ( * ) * + MIN ( 30 ) + 37 * 7 WHEN + 41 THEN NULL ELSE + 73 + + SUM ( 32 ) END / COALESCE ( + 72, 42 * 46 ) - + 51 / + NULLIF ( + COUNT ( * ) + + 70, + 81 + - 52 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4751
SELECT ( - NULLIF ( + ( - + 1 ), CAST( NULL AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4751
SELECT ( - NULLIF ( + ( - + 1 ), CAST ( NULL AS INTEGER ) ) )
----
1

query I rowsort
SELECT ALL - - 19 * 21 * - 47 * + 27 + 86 * - 98 AS col1
----
-514759

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4753
SELECT + 83 DIV - SUM( 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-4753
SELECT + 83 / - SUM ( 51 )
----
-1

query II rowsort
SELECT - 53 * - 74, 3 AS col1
----
3922
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT - MAX( + ( 30 ) ) * 50
----
-1500

skipif mysql # not compatible
query I rowsort label-4755
SELECT - MAX ( + ( 30 ) ) * 50
----
-1500

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT ALL - 46 DIV 65 - - 67 - ( 79 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - 46 / 65 - - 67 - ( 79 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT DISTINCT - ( + COUNT( * ) ) * + 6
----
-6

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT - ( + COUNT ( * ) ) * + 6
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4758
SELECT ALL - CAST( NULL AS SIGNED ) * 63 AS col1, - ( 10 ) AS col1
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-4758
SELECT ALL - CAST ( NULL AS INTEGER ) * 63 AS col1, - ( 10 ) AS col1
----
NULL
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT DISTINCT + + 94 DIV - 3
----
-31

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT + + 94 / - 3
----
-31

query I rowsort
SELECT ALL + + ( 45 )
----
45

query I rowsort
SELECT - + 61 * - 99
----
6039

onlyif mysql # aggregate syntax: 
query II rowsort label-4762
SELECT ALL + 91 * COUNT( * ) AS col0, NULLIF ( - 21, - 33 / - 15 + - 44 )
----
91
-21

skipif mysql # not compatible
query II rowsort label-4762
SELECT ALL + 91 * COUNT ( * ) AS col0, NULLIF ( - 21, - 33 / - 15 + - 44 )
----
91
-21

query II rowsort
SELECT ( 41 ) AS col0, ( + 86 ) AS col1
----
41
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4764
SELECT ( CAST( NULLIF ( - 6, 0 * 87 ) AS SIGNED ) )
----
-6

skipif mysql # not compatible
query I rowsort label-4764
SELECT ( CAST ( NULLIF ( - 6, 0 * 87 ) AS INTEGER ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT DISTINCT + COUNT( 14 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT + COUNT ( 14 ) AS col1
----
1

query I rowsort
SELECT 44 * 13 + 67
----
639

query I rowsort
SELECT - 37 + + 31 AS col2
----
-6

query I rowsort
SELECT - 38 * + + 44 - 40 AS col1
----
-1712

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4769
SELECT COALESCE ( - 66, + + 77 ) col1, CAST( NULL AS SIGNED ) AS col0
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-4769
SELECT COALESCE ( - 66, + + 77 ) col1, CAST ( NULL AS INTEGER ) AS col0
----
-66
NULL

query I rowsort
SELECT - 14 + 3 AS col0
----
-11

query I rowsort
SELECT - 31 * 72
----
-2232

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL - 72 * + COALESCE ( - - 4, COUNT( * ) )
----
-288

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL - 72 * + COALESCE ( - - 4, COUNT ( * ) )
----
-288

query I rowsort
SELECT ALL + CASE + - 84 WHEN - 18 THEN NULL ELSE + 93 END
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT + MAX( - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-4774
SELECT + MAX ( - 62 )
----
-62

query II rowsort
SELECT ALL + 10 AS col1, - 99 col0
----
10
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4776
SELECT ALL - CAST( NULL AS DECIMAL ) * - + MAX( DISTINCT - 51 ) * MIN( DISTINCT - - 9 ) * - ( - COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL - CAST ( NULL AS REAL ) * - + MAX ( DISTINCT - 51 ) * MIN ( DISTINCT - - 9 ) * - ( - COUNT ( * ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT - CASE + 19 WHEN + 83 / - + 45 + + - 0 + + 78 THEN NULL ELSE 68 * CASE MIN( - 95 ) WHEN 40 THEN - CASE 85 WHEN - 61 * COUNT( 87 ) THEN NULL WHEN - 40 THEN NULL ELSE 18 END * 9 END END + + 92 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT - CASE + 19 WHEN + 83 / - + 45 + + - 0 + + 78 THEN NULL ELSE 68 * CASE MIN ( - 95 ) WHEN 40 THEN - CASE 85 WHEN - 61 * COUNT ( 87 ) THEN NULL WHEN - 40 THEN NULL ELSE 18 END * 9 END END + + 92 * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + 47 * 45 + - 62 AS col1
----
2053

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT MIN( DISTINCT 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4779
SELECT MIN ( DISTINCT 21 ) AS col0
----
21

query I rowsort
SELECT - 65 * + 75 AS col2
----
-4875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4781
SELECT - 24 + CASE + 90 WHEN COUNT( * ) * CAST( 59 AS SIGNED ) + - 33 * + 13 THEN 55 / - 24 + + 76 / 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4781
SELECT - 24 + CASE + 90 WHEN COUNT ( * ) * CAST ( 59 AS INTEGER ) + - 33 * + 13 THEN 55 / - 24 + + 76 / 75 END
----
NULL

query I rowsort
SELECT - ( - 50 ) AS col1
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4783
SELECT + NULLIF ( - - 22, - + 30 * - 85 ) - 9 DIV - MIN( + 92 * 42 + 94 DIV 88 )
----
22

skipif mysql # not compatible
query I rowsort label-4783
SELECT + NULLIF ( - - 22, - + 30 * - 85 ) - 9 / - MIN ( + 92 * 42 + 94 / 88 )
----
22

query II rowsort
SELECT ALL 12 * + 3 * + 36 AS col0, 39
----
1296
39

query I rowsort
SELECT ALL + 10 + - + 14 AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4786
SELECT DISTINCT - CAST( - 17 AS SIGNED ) + - - 51 - - 16 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT - CAST ( - 17 AS INTEGER ) + - - 51 - - 16 AS col0
----
84

query I rowsort
SELECT ALL + 72 + + 56 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + 87 - - - 75 * 63 * COUNT( * ) col1
----
-4638

skipif mysql # not compatible
query I rowsort label-4788
SELECT + 87 - - - 75 * 63 * COUNT ( * ) col1
----
-4638

query I rowsort
SELECT DISTINCT - 61 + + ( + 52 ) * - + 57 AS col1
----
-3025

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL - COUNT( * ) * + 85
----
-85

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL - COUNT ( * ) * + 85
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT + 1 DIV + + 19 + - NULLIF ( + - 85, 92 * - 87 - - MIN( 57 ) )
----
85

skipif mysql # not compatible
query I rowsort label-4791
SELECT + 1 / + + 19 + - NULLIF ( + - 85, 92 * - 87 - - MIN ( 57 ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT DISTINCT 40 + 33 * - - 80 - ( COUNT( * ) ) + - 32
----
2647

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT 40 + 33 * - - 80 - ( COUNT ( * ) ) + - 32
----
2647

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT CASE + 6 WHEN - SUM( ALL 5 ) * - 74 * AVG ( - ( 89 ) ) + - 74 * - 30 THEN - COALESCE ( - 24, + 56 * COUNT( * ) ) WHEN - 33 - 58 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT CASE + 6 WHEN - SUM ( ALL 5 ) * - 74 * AVG ( - ( 89 ) ) + - 74 * - 30 THEN - COALESCE ( - 24, + 56 * COUNT ( * ) ) WHEN - 33 - 58 THEN NULL END
----
NULL

query I rowsort
SELECT - 54 + 82 AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4795
SELECT + - 0 * + 97 + 78 / - 16 + NULLIF ( - 0, - 51 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT + - 0 * + 97 + 78 / - 16 + NULLIF ( - 0, - 51 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT + NULLIF ( 41, - + MIN( + 60 ) * + COUNT( * ) ) - - 28 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4796
SELECT + NULLIF ( 41, - + MIN ( + 60 ) * + COUNT ( * ) ) - - 28 AS col1
----
69

query I rowsort
SELECT ALL - ( + 60 ) AS col0
----
-60

query I rowsort
SELECT 72 + - - 56 * 13 * + 93 * + 90 AS col1
----
6093432

onlyif mysql # DIV for integer division: 
query I rowsort label-4799
SELECT COALESCE ( 80, + + ( + 70 ) ) * - ( - 8 ) + 58 DIV 77
----
640

skipif mysql # not compatible
query I rowsort label-4799
SELECT COALESCE ( 80, + + ( + 70 ) ) * - ( - 8 ) + 58 / 77
----
640

onlyif mysql # DIV for integer division: 
query I rowsort label-4800
SELECT + 94 + - 43 DIV - + 23 - - + 82 + + 81 DIV - 42
----
176

skipif mysql # not compatible
query I rowsort label-4800
SELECT + 94 + - 43 / - + 23 - - + 82 + + 81 / - 42
----
176

query I rowsort
SELECT ALL - ( - + 51 ) AS col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4802
SELECT DISTINCT CAST( 13 AS SIGNED ) - - MAX( - 59 ) col1
----
-46

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT CAST ( 13 AS INTEGER ) - - MAX ( - 59 ) col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT 15 DIV - + NULLIF ( + 88, 59 ) + - 20 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-4803
SELECT 15 / - + NULLIF ( + 88, 59 ) + - 20 AS col0
----
-20

query II rowsort
SELECT ALL - - 70, 57 col1
----
70
57

query II rowsort
SELECT + - 71, + 55 + 70 AS col2
----
-71
125

query I rowsort
SELECT ALL 14 * + 72 AS col1
----
1008

onlyif mysql # aggregate syntax: 
query II rowsort label-4807
SELECT ALL - 81, - NULLIF ( + - 52, + + 39 / + - 51 ) * SUM( DISTINCT 52 ) AS col0
----
-81
2704

skipif mysql # not compatible
query II rowsort label-4807
SELECT ALL - 81, - NULLIF ( + - 52, + + 39 / + - 51 ) * SUM ( DISTINCT 52 ) AS col0
----
-81
2704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4808
SELECT ( - CAST( NULL AS SIGNED ) ) / - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT ( - CAST ( NULL AS INTEGER ) ) / - 66 AS col2
----
NULL

query II rowsort
SELECT 97, 3 AS col1
----
97
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4810
SELECT ALL 96 + + 77 DIV + 42 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL 96 + + 77 / + 42 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL - COUNT( - 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL - COUNT ( - 48 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4812
SELECT DISTINCT 48 + + 97 * + 57 + - 21 + + + 46 * + 80 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT 48 + + 97 * + 57 + - 21 + + + 46 * + 80 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT DISTINCT + 68 + + + 64 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT + 68 + + + 64 * - CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT + 38 col1, 19
----
38
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4815
SELECT ALL - CAST( NULL AS SIGNED ) + - 94 + - 60 * - + COUNT( * ), - 17 * 29 AS col2
----
NULL
-493

skipif mysql # not compatible
query II rowsort label-4815
SELECT ALL - CAST ( NULL AS INTEGER ) + - 94 + - 60 * - + COUNT ( * ), - 17 * 29 AS col2
----
NULL
-493

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT 42 + + - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-4816
SELECT 42 + + - COUNT ( * )
----
41

query I rowsort
SELECT DISTINCT + 69 + + - 77 AS col2
----
-8

query I rowsort
SELECT ALL - 14 * - COALESCE ( + 69, - + 43 ) AS col0
----
966

query II rowsort
SELECT - 3 AS col2, 48 AS col2
----
-3
48

query I rowsort
SELECT ALL - 42 + + - 97
----
-139

onlyif mysql # aggregate syntax: 
query II rowsort label-4821
SELECT DISTINCT 7, 0 * - CASE + + 66 WHEN 50 THEN - ( + 13 ) * - CASE + 86 + + COUNT( * ) WHEN 6 * 15 THEN NULL ELSE + 25 * - 86 END ELSE NULL END / 52 AS col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-4821
SELECT DISTINCT 7, 0 * - CASE + + 66 WHEN 50 THEN - ( + 13 ) * - CASE + 86 + + COUNT ( * ) WHEN 6 * 15 THEN NULL ELSE + 25 * - 86 END ELSE NULL END / 52 AS col1
----
7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT 77 + 60 + MIN( 6 ) + + + 65 + + SUM( DISTINCT 83 ) * - 97 AS col0
----
-7843

skipif mysql # not compatible
query I rowsort label-4822
SELECT 77 + 60 + MIN ( 6 ) + + + 65 + + SUM ( DISTINCT 83 ) * - 97 AS col0
----
-7843

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT DISTINCT + - SUM( ALL - + 64 ) * - ( 21 ) + - 18
----
-1362

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT + - SUM ( ALL - + 64 ) * - ( 21 ) + - 18
----
-1362

query I rowsort
SELECT DISTINCT - 9 - - + 21 col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4825
SELECT NULLIF ( + 22, - + 91 ) DIV - + 67 * 7 - 13
----
-13

skipif mysql # not compatible
query I rowsort label-4825
SELECT NULLIF ( + 22, - + 91 ) / - + 67 * 7 - 13
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT - SUM( - 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4826
SELECT - SUM ( - 10 ) AS col2
----
10

query I rowsort
SELECT + ( + 83 ) col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT COUNT( * ) + 36 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4828
SELECT COUNT ( * ) + 36 AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4829
SELECT DISTINCT - 81 AS col1, COUNT( * ) * + - 17 + - 76
----
-81
-93

skipif mysql # not compatible
query II rowsort label-4829
SELECT DISTINCT - 81 AS col1, COUNT ( * ) * + - 17 + - 76
----
-81
-93

query II rowsort
SELECT - 72, 34 col1
----
-72
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - ( + + COUNT( * ) ) + - 25 * - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4831
SELECT - ( + + COUNT ( * ) ) + - 25 * - COUNT ( * )
----
24

query I rowsort
SELECT DISTINCT - 66 * + - 28
----
1848

query II rowsort
SELECT ALL + 22 AS col2, + 32
----
22
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4834
SELECT CASE CAST( NULL AS SIGNED ) WHEN CAST( + 4 AS SIGNED ) THEN + CAST( 69 AS SIGNED ) WHEN + 80 * 43 THEN NULL WHEN - 47 THEN NULL ELSE 87 * ( NULLIF ( + 2, + 12 + + 59 ) ) END - - 23 DIV - 40 AS col1
----
174

skipif mysql # not compatible
query I rowsort label-4834
SELECT CASE CAST ( NULL AS INTEGER ) WHEN CAST ( + 4 AS INTEGER ) THEN + CAST ( 69 AS INTEGER ) WHEN + 80 * 43 THEN NULL WHEN - 47 THEN NULL ELSE 87 * ( NULLIF ( + 2, + 12 + + 59 ) ) END - - 23 / - 40 AS col1
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4835
SELECT - 58 DIV + + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4835
SELECT - 58 / + + COUNT ( * ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT + - MAX( ALL + + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-4836
SELECT + - MAX ( ALL + + 80 )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT + CAST( 89 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-4837
SELECT + CAST ( 89 AS INTEGER )
----
89

query I rowsort
SELECT COALESCE ( - 69, 63 ) * - 94
----
6486

query II rowsort
SELECT ALL 2 + 29, 4 AS col1
----
31
4

query I rowsort
SELECT - 30 * 59 - - 13 AS col1
----
-1757

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL 42 + 89 - - + 30 * COUNT( * ) + 47 * - + 4
----
-27

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL 42 + 89 - - + 30 * COUNT ( * ) + 47 * - + 4
----
-27

query I rowsort
SELECT + 92 * 91 - - - 16 AS col0
----
8356

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT + 29 * + + 63 * 82 + 79 * + + CASE + - 15 WHEN - 58 + 56 THEN NULL WHEN + 62 THEN NULL ELSE + ( COUNT( ALL - 79 ) ) * 88 END
----
156766

skipif mysql # not compatible
query I rowsort label-4843
SELECT + 29 * + + 63 * 82 + 79 * + + CASE + - 15 WHEN - 58 + 56 THEN NULL WHEN + 62 THEN NULL ELSE + ( COUNT ( ALL - 79 ) ) * 88 END
----
156766

query I rowsort
SELECT 70 * - 71
----
-4970

query I rowsort
SELECT 80 + + 68 * 70 + - 22 * 36 * 33 AS col1
----
-21296

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL MIN( DISTINCT + + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL MIN ( DISTINCT + + 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT ( + ( - 86 ) ) * + SUM( - + 76 ) AS col0
----
6536

skipif mysql # not compatible
query I rowsort label-4847
SELECT ( + ( - 86 ) ) * + SUM ( - + 76 ) AS col0
----
6536

query I rowsort
SELECT 16 - - 64
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT + - 6 * + COUNT( * ) + 66 * 0 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4849
SELECT + - 6 * + COUNT ( * ) + 66 * 0 AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4850
SELECT - CAST( + - 84 AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-4850
SELECT - CAST ( + - 84 AS INTEGER )
----
84

query I rowsort
SELECT - NULLIF ( + - 2, + 87 / + 29 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4852
SELECT DISTINCT + ( - 81 ) * COUNT( * ) AS col0, MIN( ALL - + 36 ) * + 57
----
-81
-2052

skipif mysql # not compatible
query II rowsort label-4852
SELECT DISTINCT + ( - 81 ) * COUNT ( * ) AS col0, MIN ( ALL - + 36 ) * + 57
----
-81
-2052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4853
SELECT - CASE + - ( 31 ) WHEN - - 58 - - + 87 THEN 39 WHEN + NULLIF ( ( - CAST( ( 10 ) AS SIGNED ) ), CASE 76 WHEN 99 - ( + MIN( ALL 25 ) ) * 81 THEN + 68 + 2 WHEN COUNT( * ) THEN COALESCE ( + COUNT( * ), 79 ) + 54 ELSE - 18 * + 17 + + 4 * 77 END ) THEN - 14 END * 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT - CASE + - ( 31 ) WHEN - - 58 - - + 87 THEN 39 WHEN + NULLIF ( ( - CAST ( ( 10 ) AS INTEGER ) ), CASE 76 WHEN 99 - ( + MIN ( ALL 25 ) ) * 81 THEN + 68 + 2 WHEN COUNT ( * ) THEN COALESCE ( + COUNT ( * ), 79 ) + 54 ELSE - 18 * + 17 + + 4 * 77 END ) THEN - 14 END * 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT ALL + 28 * SUM( ALL 43 ) AS col0
----
1204

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL + 28 * SUM ( ALL 43 ) AS col0
----
1204

query I rowsort
SELECT - - ( - 25 ) - - 1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4856
SELECT DISTINCT + 17 * + - 28 + - COUNT( * ) + - 25 * - ( MIN( ALL - 77 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT + 17 * + - 28 + - COUNT ( * ) + - 25 * - ( MIN ( ALL - 77 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 48 - - 88 + + + 69 AS col0
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4858
SELECT COALESCE ( NULLIF ( 44, + - COALESCE ( + 74, - CAST( + 47 AS SIGNED ) * - 73 ) ), - COUNT( * ), 31, - 9 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4858
SELECT COALESCE ( NULLIF ( 44, + - COALESCE ( + 74, - CAST ( + 47 AS INTEGER ) * - 73 ) ), - COUNT ( * ), 31, - 9 ) AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4859
SELECT - - CAST( 52 AS SIGNED ) * 37 DIV - - 13
----
148

skipif mysql # not compatible
query I rowsort label-4859
SELECT - - CAST ( 52 AS INTEGER ) * 37 / - - 13
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT ALL + 68 * CASE + NULLIF ( + 85, 19 * - 15 + + - 34 ) WHEN - 23 THEN 58 + 5 ELSE ( 90 ) DIV 49 + 31 END + 15 AS col1
----
2191

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL + 68 * CASE + NULLIF ( + 85, 19 * - 15 + + - 34 ) WHEN - 23 THEN 58 + 5 ELSE ( 90 ) / 49 + 31 END + 15 AS col1
----
2191

onlyif mysql # DIV for integer division: 
query I rowsort label-4861
SELECT - - 62 + 10 DIV + 9 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4861
SELECT - - 62 + 10 / + 9 AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4862
SELECT - COUNT( 73 ), - COALESCE ( + 37, - 75 + 87 + + CAST( - 1 AS SIGNED ) * - CAST( 83 AS SIGNED ) ) + 80 DIV 6 AS col2
----
-1
-24

skipif mysql # not compatible
query II rowsort label-4862
SELECT - COUNT ( 73 ), - COALESCE ( + 37, - 75 + 87 + + CAST ( - 1 AS INTEGER ) * - CAST ( 83 AS INTEGER ) ) + 80 / 6 AS col2
----
-1
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4863
SELECT - COALESCE ( + - COUNT( * ), - 1 ) - + COUNT( * ) + 95, 85 DIV + + ( + 24 ) AS col2
----
95
3

skipif mysql # not compatible
query II rowsort label-4863
SELECT - COALESCE ( + - COUNT ( * ), - 1 ) - + COUNT ( * ) + 95, 85 / + + ( + 24 ) AS col2
----
95
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4864
SELECT + - 24 DIV 69 - + 14 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4864
SELECT + - 24 / 69 - + 14 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-4865
SELECT + 35 - COUNT( * ), + 1 + + 51 + 43 AS col0
----
34
95

skipif mysql # not compatible
query II rowsort label-4865
SELECT + 35 - COUNT ( * ), + 1 + + 51 + 43 AS col0
----
34
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT - 79 + + - COUNT( * ) + 73
----
-7

skipif mysql # not compatible
query I rowsort label-4866
SELECT - 79 + + - COUNT ( * ) + 73
----
-7

query I rowsort
SELECT + NULLIF ( - 50, - 25 ) - + 38 + + 17 AS col0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4868
SELECT - 92 DIV - - 51 + - - MAX( - 1 ) * + + 17 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4868
SELECT - 92 / - - 51 + - - MAX ( - 1 ) * + + 17 AS col1
----
-18

query I rowsort
SELECT ALL 45 * - + 45 + + ( - 39 ) + 27 AS col1
----
-2037

onlyif mysql # DIV for integer division: 
query I rowsort label-4870
SELECT ALL - 13 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL - 13 / + 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL + 97 * + COUNT( * ) * - 74 + - 23 + 23 * - 60 + + - COALESCE ( - 9, 59 )
----
-8572

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL + 97 * + COUNT ( * ) * - 74 + - 23 + 23 * - 60 + + - COALESCE ( - 9, 59 )
----
-8572

query I rowsort
SELECT ALL 96 * - 1 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL MIN( 77 ) * + 32 * + ( + + 14 ) + + 3 AS col0
----
34499

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL MIN ( 77 ) * + 32 * + ( + + 14 ) + + 3 AS col0
----
34499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4874
SELECT COUNT( * ) / + - AVG ( ALL + 45 ) * + 3 * + ( + 53 ) + - CASE + + 40 WHEN + COUNT( * ) + 28 THEN 38 * + 81 + ( CASE WHEN NULL IN ( 35 ) THEN 70 * + 39 ELSE NULL END ) * 81 WHEN 47 + - CAST( NULL AS SIGNED ) * - 46 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT COUNT ( * ) / + - AVG ( ALL + 45 ) * + 3 * + ( + 53 ) + - CASE + + 40 WHEN + COUNT ( * ) + 28 THEN 38 * + 81 + ( CASE WHEN NULL IN ( 35 ) THEN 70 * + 39 ELSE NULL END ) * 81 WHEN 47 + - CAST ( NULL AS INTEGER ) * - 46 THEN NULL END
----
NULL

query I rowsort
SELECT - 72 * + 53 * - - NULLIF ( - 75, 47 + + 86 ) * 64
----
18316800

query I rowsort
SELECT COALESCE ( 5, + - 17 * + + 80 * + - 59 + + 11 )
----
5

query I rowsort
SELECT ALL 60 * 1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4878
SELECT ALL - 54 * - 22 * - CASE + 71 WHEN + - NULLIF ( + 42, - 61 ) - ( 11 ) + MAX( DISTINCT 66 ) * 98 * 29 THEN - 96 * CAST( + 12 * COALESCE ( 93, ( + 35 ) + 84 ) AS SIGNED ) + - 23 * + 61 ELSE 68 END + - 45 * 21 col0
----
-81729

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL - 54 * - 22 * - CASE + 71 WHEN + - NULLIF ( + 42, - 61 ) - ( 11 ) + MAX ( DISTINCT 66 ) * 98 * 29 THEN - 96 * CAST ( + 12 * COALESCE ( 93, ( + 35 ) + 84 ) AS INTEGER ) + - 23 * + 61 ELSE 68 END + - 45 * 21 col0
----
-81729

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT DISTINCT + SUM( DISTINCT - 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT + SUM ( DISTINCT - 55 ) AS col2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4880
SELECT ALL 44 * + ( - 63 ) * + 80 - - 33 * + COALESCE ( - 80, - 82 ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL 44 * + ( - 63 ) * + 80 - - 33 * + COALESCE ( - 80, - 82 ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4881
SELECT + CAST( + 23 AS SIGNED ) * - 22 + - 72 + - COUNT( - + 46 ) * 58
----
-636

skipif mysql # not compatible
query I rowsort label-4881
SELECT + CAST ( + 23 AS INTEGER ) * - 22 + - 72 + - COUNT ( - + 46 ) * 58
----
-636

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT + ( SUM( 4 ) )
----
4

skipif mysql # not compatible
query I rowsort label-4882
SELECT + ( SUM ( 4 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT + 35 - NULLIF ( - - 16, + 55 * COUNT( * ) - - - 27 + + + 35 * + - 91 * - 55 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-4883
SELECT + 35 - NULLIF ( - - 16, + 55 * COUNT ( * ) - - - 27 + + + 35 * + - 91 * - 55 ) col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT + 81 * + MAX( + 28 ) + - 19
----
2249

skipif mysql # not compatible
query I rowsort label-4884
SELECT + 81 * + MAX ( + 28 ) + - 19
----
2249

query I rowsort
SELECT ALL 50 * - 61
----
-3050

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT + 20 + - MIN( 12 )
----
8

skipif mysql # not compatible
query I rowsort label-4886
SELECT + 20 + - MIN ( 12 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT 18 col1, COUNT( * )
----
18
1

skipif mysql # not compatible
query II rowsort label-4887
SELECT 18 col1, COUNT ( * )
----
18
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT DISTINCT COALESCE ( + 51, + - 76 * + MIN( + 49 ) * + + ( + ( 30 ) ) + + 87 * + COUNT( * ), - COALESCE ( COUNT( * ), - 49, 71 * 67 + - COUNT( DISTINCT 92 ) ) + - SUM( 89 ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT COALESCE ( + 51, + - 76 * + MIN ( + 49 ) * + + ( + ( 30 ) ) + + 87 * + COUNT ( * ), - COALESCE ( COUNT ( * ), - 49, 71 * 67 + - COUNT ( DISTINCT 92 ) ) + - SUM ( 89 ) ) AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4889
SELECT + 47 * + COALESCE ( - 47, - 80, + SUM( DISTINCT + - 13 ) * 41 + - 51 ) DIV + COUNT( 11 )
----
-2209

skipif mysql # not compatible
query I rowsort label-4889
SELECT + 47 * + COALESCE ( - 47, - 80, + SUM ( DISTINCT + - 13 ) * 41 + - 51 ) / + COUNT ( 11 )
----
-2209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4890
SELECT + - 19 - + CAST( NULL AS SIGNED ) + - MAX( 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4890
SELECT + - 19 - + CAST ( NULL AS INTEGER ) + - MAX ( 72 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4891
SELECT ALL - - 85 DIV 16 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL - - 85 / 16 AS col2
----
5

query I rowsort
SELECT - 97 * NULLIF ( + - NULLIF ( 60, 93 ), - COALESCE ( - 39, 62 ) + - ( 62 ) ) + 89 AS col1
----
5909

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT - SUM( + - 76 ) col1
----
76

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT - SUM ( + - 76 ) col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL - + SUM( 32 ) + + + 49 + - 4 * - 89 * - 81 * + 52
----
-1499455

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL - + SUM ( 32 ) + + + 49 + - 4 * - 89 * - 81 * + 52
----
-1499455

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4895
SELECT - 19 + + CAST( + 5 AS SIGNED ) AS col1, CAST( + 1 AS SIGNED )
----
-14
1

skipif mysql # not compatible
query II rowsort label-4895
SELECT - 19 + + CAST ( + 5 AS INTEGER ) AS col1, CAST ( + 1 AS INTEGER )
----
-14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT - + 61 + + 44 - - COALESCE ( COALESCE ( 78, - 54 + + 8 ), - - 44 + - COALESCE ( 35, 81 * 67, - 65 ) ) + COUNT( * ) * - 22
----
39

skipif mysql # not compatible
query I rowsort label-4896
SELECT - + 61 + + 44 - - COALESCE ( COALESCE ( 78, - 54 + + 8 ), - - 44 + - COALESCE ( 35, 81 * 67, - 65 ) ) + COUNT ( * ) * - 22
----
39

query I rowsort
SELECT ALL - + 80 + - - 28 + + 7 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT DISTINCT MIN( + - 73 ) col0
----
-73

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT MIN ( + - 73 ) col0
----
-73

query II rowsort
SELECT - 25, + 94 AS col0
----
-25
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT ALL + 12 * 7 + + + SUM( + 25 ) * + COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL + 12 * 7 + + + SUM ( + 25 ) * + COUNT ( * )
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4901
SELECT ALL CAST( - + MAX( - - 91 ) AS SIGNED ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL CAST ( - + MAX ( - - 91 ) AS INTEGER ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4902
SELECT ALL + ( COALESCE ( - 55, - 7, + - MAX( + + 75 ) ) ) + + - 73, CASE - CASE WHEN NOT 37 NOT BETWEEN + 37 + 91 AND ( NULL ) THEN NULL ELSE - COUNT( ALL 72 ) / 7 END WHEN - 51 + - 49 THEN + CASE ( + ( COUNT( * ) ) ) WHEN 27 * COUNT( * ) THEN - 70 * - 5 ELSE NULL END * + 30 ELSE + 99 * + COALESCE ( 77, 59 ) END AS col0
----
-128
7623

skipif mysql # not compatible
query II rowsort label-4902
SELECT ALL + ( COALESCE ( - 55, - 7, + - MAX ( + + 75 ) ) ) + + - 73, CASE - CASE WHEN NOT 37 NOT BETWEEN + 37 + 91 AND ( NULL ) THEN NULL ELSE - COUNT ( ALL 72 ) / 7 END WHEN - 51 + - 49 THEN + CASE ( + ( COUNT ( * ) ) ) WHEN 27 * COUNT ( * ) THEN - 70 * - 5 ELSE NULL END * + 30 ELSE + 99 * + COALESCE ( 77, 59 ) END AS col0
----
-128
7623

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT + 73 - MIN( + 22 ) col1
----
51

skipif mysql # not compatible
query I rowsort label-4903
SELECT + 73 - MIN ( + 22 ) col1
----
51

query I rowsort
SELECT ALL + ( - 29 ) AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4905
SELECT - COUNT( * ) - - COUNT( DISTINCT + - CAST( + + 17 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4905
SELECT - COUNT ( * ) - - COUNT ( DISTINCT + - CAST ( + + 17 AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT + CASE - + 22 WHEN - 77 * + COALESCE ( + - ( - 73 ), - COUNT( * ) + - 52 ) THEN NULLIF ( + 16, - 19 ) ELSE ( + 14 ) + + 74 * 8 END AS col2
----
606

skipif mysql # not compatible
query I rowsort label-4906
SELECT + CASE - + 22 WHEN - 77 * + COALESCE ( + - ( - 73 ), - COUNT ( * ) + - 52 ) THEN NULLIF ( + 16, - 19 ) ELSE ( + 14 ) + + 74 * 8 END AS col2
----
606

query I rowsort
SELECT - 19 * - 97
----
1843

query I rowsort
SELECT DISTINCT + ( + 65 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT - COUNT( - 53 ) * + 64 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-4909
SELECT - COUNT ( - 53 ) * + 64 AS col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4910
SELECT - ( - ( + + 39 ) ) * ( - 9 ) * + COUNT( * ) + + 5 DIV - + 77 AS col2
----
-351

skipif mysql # not compatible
query I rowsort label-4910
SELECT - ( - ( + + 39 ) ) * ( - 9 ) * + COUNT ( * ) + + 5 / - + 77 AS col2
----
-351

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4911
SELECT + COUNT( * ) DIV + - 67 + 90 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-4911
SELECT + COUNT ( * ) / + - 67 + 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT 80 + + COALESCE ( 7, - ( + + 84 ), + COALESCE ( - 47, COUNT( * ) ) )
----
87

skipif mysql # not compatible
query I rowsort label-4912
SELECT 80 + + COALESCE ( 7, - ( + + 84 ), + COALESCE ( - 47, COUNT ( * ) ) )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4913
SELECT 93 * - 2 * + CAST( NULL AS SIGNED ) * + COALESCE ( - COUNT( * ), - 77, + - 48 ) - - AVG ( 76 ) + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT 93 * - 2 * + CAST ( NULL AS INTEGER ) * + COALESCE ( - COUNT ( * ), - 77, + - 48 ) - - AVG ( 76 ) + 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT 46 * - COUNT( * ) * + 17 AS col2
----
-782

skipif mysql # not compatible
query I rowsort label-4914
SELECT 46 * - COUNT ( * ) * + 17 AS col2
----
-782

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4915
SELECT + ( + 56 ), CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) + + - 91 * + 50 / 41 col2
----
56
NULL

skipif mysql # not compatible
query II rowsort label-4915
SELECT + ( + 56 ), CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) + + - 91 * + 50 / 41 col2
----
56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT - CASE - + 64 WHEN + 32 THEN NULL WHEN - + 29 THEN NULL ELSE - + AVG ( - + 24 ) - - + CASE COUNT( * ) WHEN + + MAX( 95 ) THEN 46 END * COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT - CASE - + 64 WHEN + 32 THEN NULL WHEN - + 29 THEN NULL ELSE - + AVG ( - + 24 ) - - + CASE COUNT ( * ) WHEN + + MAX ( 95 ) THEN 46 END * COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 80 col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT DISTINCT - CASE 65 WHEN - 80 THEN + 80 * - 0 WHEN 76 THEN NULL WHEN + - COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT - CASE 65 WHEN - 80 THEN + 80 * - 0 WHEN 76 THEN NULL WHEN + - COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT CAST( - 22 AS SIGNED ) + + 8
----
-14

skipif mysql # not compatible
query I rowsort label-4919
SELECT CAST ( - 22 AS INTEGER ) + + 8
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4920
SELECT MAX( ALL 52 ) + + 3 + - 93 * + CAST( 72 AS SIGNED ) * + 22 - + 77
----
-147334

skipif mysql # not compatible
query I rowsort label-4920
SELECT MAX ( ALL 52 ) + + 3 + - 93 * + CAST ( 72 AS INTEGER ) * + 22 - + 77
----
-147334

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4921
SELECT + COUNT( * ) DIV + + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4921
SELECT + COUNT ( * ) / + + 36 AS col2
----
0

query I rowsort
SELECT ALL - 85 + - ( + ( + 72 ) )
----
-157

query I rowsort
SELECT DISTINCT 26 * - 32 * 0 * + 34 AS col2
----
0

query II rowsort
SELECT ALL + 16 + + + 78 * 22 + - 19 AS col1, - 33
----
1713
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT DISTINCT + 57 + - - MAX( 1 ) * + + 68 AS col1, COUNT( * ) AS col1
----
125
1

skipif mysql # not compatible
query II rowsort label-4925
SELECT DISTINCT + 57 + - - MAX ( 1 ) * + + 68 AS col1, COUNT ( * ) AS col1
----
125
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4926
SELECT DISTINCT - CASE + 49 WHEN + + COUNT( * ) * CAST( - + 1 AS SIGNED ) + 64 + + 78 THEN 42 + + - 12 - COUNT( - 55 + + 10 * 65 ) WHEN + 72 THEN NULL WHEN 28 + 52 THEN - CASE 58 WHEN - 38 * + 91 THEN NULL WHEN - 66 * 1 THEN 47 WHEN + 15 - - 6 THEN NULL ELSE NULL END ELSE + 6 * + 11 END + 96
----
30

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT - CASE + 49 WHEN + + COUNT ( * ) * CAST ( - + 1 AS INTEGER ) + 64 + + 78 THEN 42 + + - 12 - COUNT ( - 55 + + 10 * 65 ) WHEN + 72 THEN NULL WHEN 28 + 52 THEN - CASE 58 WHEN - 38 * + 91 THEN NULL WHEN - 66 * 1 THEN 47 WHEN + 15 - - 6 THEN NULL ELSE NULL END ELSE + 6 * + 11 END + 96
----
30

query I rowsort
SELECT - + 10 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT 26 + - + 26 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4928
SELECT 26 + - + 26 * COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4929
SELECT NULLIF ( + 45, + 52 + + - ( - 13 ) ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT NULLIF ( + 45, + 52 + + - ( - 13 ) ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT NULLIF ( + ( - NULLIF ( + - 49, + COUNT( * ) ) ), - 73 ) + - - 99 - + MIN( DISTINCT - NULLIF ( 74, + 73 ) ) col2
----
222

skipif mysql # not compatible
query I rowsort label-4930
SELECT NULLIF ( + ( - NULLIF ( + - 49, + COUNT ( * ) ) ), - 73 ) + - - 99 - + MIN ( DISTINCT - NULLIF ( 74, + 73 ) ) col2
----
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4931
SELECT 71 - - 19 + - - 19 * - 64 + + - 52 + + ( + 89 ) * - 60 * 53 DIV 60 * + ( ( 43 ) ) + COUNT( * ) AS col1
----
-204008

skipif mysql # not compatible
query I rowsort label-4931
SELECT 71 - - 19 + - - 19 * - 64 + + - 52 + + ( + 89 ) * - 60 * 53 / 60 * + ( ( 43 ) ) + COUNT ( * ) AS col1
----
-204008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4932
SELECT 45 + - - COUNT( * ) + + NULLIF ( + 44, + - 17 ) + + + 67 DIV + 76
----
90

skipif mysql # not compatible
query I rowsort label-4932
SELECT 45 + - - COUNT ( * ) + + NULLIF ( + 44, + - 17 ) + + + 67 / + 76
----
90

query I rowsort
SELECT 81 - - + 64
----
145

query I rowsort
SELECT ( + 28 ) + - 6
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4935
SELECT ALL + 24 - - 2 DIV - COUNT( * ) + + MAX( ALL + - 83 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL + 24 - - 2 / - COUNT ( * ) + + MAX ( ALL + - 83 ) AS col1
----
-61

query I rowsort
SELECT DISTINCT - 69 * + + 68
----
-4692

query II rowsort
SELECT ALL 30, 63 * + + ( 96 ) AS col2
----
30
6048

query I rowsort
SELECT DISTINCT - 51 * - 53 AS col1
----
2703

query I rowsort
SELECT ALL - ( - 99 ) col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT + COALESCE ( + 20, - 4 * + 7, + 62 * - 35 + 63 * COUNT( * ) ) * 39 + 84 AS col2
----
864

skipif mysql # not compatible
query I rowsort label-4940
SELECT + COALESCE ( + 20, - 4 * + 7, + 62 * - 35 + 63 * COUNT ( * ) ) * 39 + 84 AS col2
----
864

query I rowsort
SELECT ALL 77 - - 23
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT MIN( - - 86 ) * 33 - + 60
----
2778

skipif mysql # not compatible
query I rowsort label-4942
SELECT MIN ( - - 86 ) * 33 - + 60
----
2778

query I rowsort
SELECT 96 * + + 89 AS col0
----
8544

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT 99 + NULLIF ( + 22, + + 59 ) + + COUNT( * ) - + + 96
----
26

skipif mysql # not compatible
query I rowsort label-4944
SELECT 99 + NULLIF ( + 22, + + 59 ) + + COUNT ( * ) - + + 96
----
26

query II rowsort
SELECT + 52 AS col1, + 69
----
52
69

query I rowsort
SELECT 86 * 36 AS col2
----
3096

query II rowsort
SELECT 14, 33 AS col2
----
14
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4948
SELECT DISTINCT + COUNT( * ) DIV + - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT + COUNT ( * ) / + - 86 AS col1
----
0

query I rowsort
SELECT ALL + - ( - 81 ) + 59 + - ( - + 58 ) * 68
----
4084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4950
SELECT DISTINCT - + AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT - + AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 38 + + - 8 AS col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4952
SELECT DISTINCT + 30 + + ( - 51 ) DIV + + 84 col1
----
30

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT + 30 + + ( - 51 ) / + + 84 col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4953
SELECT ALL - - COALESCE ( 76, + 10 ) AS col1, 77 + + 26 + - - 28 DIV 12 DIV + 11 * 63 + COALESCE ( + 52, NULLIF ( 70, COUNT( * ) ) + CAST( NULL AS SIGNED ) ) + 25
----
76
180

skipif mysql # not compatible
query II rowsort label-4953
SELECT ALL - - COALESCE ( 76, + 10 ) AS col1, 77 + + 26 + - - 28 / 12 / + 11 * 63 + COALESCE ( + 52, NULLIF ( 70, COUNT ( * ) ) + CAST ( NULL AS INTEGER ) ) + 25
----
76
180

query I rowsort
SELECT 99 * - - 37 * - 59 * + 52 * + 55 col0
----
-618094620

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4955
SELECT - COUNT( * ) col0, + 41 DIV + 25 AS col0, - - COUNT( ALL + CASE - 33 WHEN + 76 - - - 41 * + 15 THEN + 18 WHEN 4 THEN NULL WHEN 42 THEN NULL END ) AS col2
----
-1
1
0

skipif mysql # not compatible
query III rowsort label-4955
SELECT - COUNT ( * ) col0, + 41 / + 25 AS col0, - - COUNT ( ALL + CASE - 33 WHEN + 76 - - - 41 * + 15 THEN + 18 WHEN 4 THEN NULL WHEN 42 THEN NULL END ) AS col2
----
-1
1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4956
SELECT ALL + 80 + - + 69 + COUNT( * ), 46 AS col2
----
12
46

skipif mysql # not compatible
query II rowsort label-4956
SELECT ALL + 80 + - + 69 + COUNT ( * ), 46 AS col2
----
12
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4957
SELECT + 5 + + 81 - - - 87 + - - 58 DIV + + 25
----
1

skipif mysql # not compatible
query I rowsort label-4957
SELECT + 5 + + 81 - - - 87 + - - 58 / + + 25
----
1

query I rowsort
SELECT + 9 - + + 96 + + 82
----
-5

query II rowsort
SELECT + 18 * - 44 * 25 AS col0, + 45 AS col2
----
-19800
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4960
SELECT - 88 + + - ( 25 ) DIV - - MIN( + 31 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-4960
SELECT - 88 + + - ( 25 ) / - - MIN ( + 31 ) AS col0
----
-88

query I rowsort
SELECT ALL + + 9 + + - 27
----
-18

query II rowsort
SELECT DISTINCT 9, 72 AS col2
----
9
72

query I rowsort
SELECT DISTINCT + 87 + + 46
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4964
SELECT DISTINCT - 28 + + + COALESCE ( 99, + AVG ( 96 ), ( - - CASE + MIN( - 54 ) WHEN - 95 * - COALESCE ( + 35, 78 * + 11 ) THEN + 54 ELSE NULL END ) ) DIV ( + 11 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT - 28 + + + COALESCE ( 99, + AVG ( 96 ), ( - - CASE + MIN ( - 54 ) WHEN - 95 * - COALESCE ( + 35, 78 * + 11 ) THEN + 54 ELSE NULL END ) ) / ( + 11 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT - MIN( + 45 ) + CASE + 47 WHEN + 91 * 65 * - 19 THEN 55 + 2 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT - MIN ( + 45 ) + CASE + 47 WHEN + 91 * 65 * - 19 THEN 55 + 2 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4966
SELECT ALL + + 9 + - MAX( ALL + + 95 ), ( - 9 ) AS col0
----
-86
-9

skipif mysql # not compatible
query II rowsort label-4966
SELECT ALL + + 9 + - MAX ( ALL + + 95 ), ( - 9 ) AS col0
----
-86
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4967
SELECT DISTINCT + 53 col2, + COUNT( * ) * 83 col2
----
53
83

skipif mysql # not compatible
query II rowsort label-4967
SELECT DISTINCT + 53 col2, + COUNT ( * ) * 83 col2
----
53
83

query I rowsort
SELECT 71 + - 67
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4969
SELECT CASE + + 95 WHEN + 16 * + 79 + - - 78 - - CAST( NULL AS SIGNED ) THEN NULL WHEN - ( - COUNT( * ) ) * + 76 THEN NULL ELSE + - 81 END * - 27 AS col0
----
2187

skipif mysql # not compatible
query I rowsort label-4969
SELECT CASE + + 95 WHEN + 16 * + 79 + - - 78 - - CAST ( NULL AS INTEGER ) THEN NULL WHEN - ( - COUNT ( * ) ) * + 76 THEN NULL ELSE + - 81 END * - 27 AS col0
----
2187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT ALL COALESCE ( 53, ( - 12 ), - CAST( - 76 AS SIGNED ) )
----
53

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL COALESCE ( 53, ( - 12 ), - CAST ( - 76 AS INTEGER ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT CASE + - COUNT( * ) WHEN + 98 + + - 25 THEN NULLIF ( + 98, NULLIF ( - 33, - - 70 * - 70 ) - + 68 + - 77 * + 25 ) WHEN 53 THEN 77 WHEN - 20 THEN ( 98 ) * SUM( 73 + - 65 * 53 ) + - COUNT( * ) ELSE NULL END * ( + 11 * 81 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT CASE + - COUNT ( * ) WHEN + 98 + + - 25 THEN NULLIF ( + 98, NULLIF ( - 33, - - 70 * - 70 ) - + 68 + - 77 * + 25 ) WHEN 53 THEN 77 WHEN - 20 THEN ( 98 ) * SUM ( 73 + - 65 * 53 ) + - COUNT ( * ) ELSE NULL END * ( + 11 * 81 ) AS col1
----
NULL

query I rowsort
SELECT ALL 84 * - - 23 AS col2
----
1932

query II rowsort
SELECT ALL 29, - 32 * + 42 AS col1
----
29
-1344

onlyif mysql # DIV for integer division: 
query II rowsort label-4974
SELECT 81, + 23 DIV - - 97 AS col0
----
81
0

skipif mysql # not compatible
query II rowsort label-4974
SELECT 81, + 23 / - - 97 AS col0
----
81
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4975
SELECT CASE - CAST( 75 AS SIGNED ) WHEN - 22 * - 77 - - 58 THEN + COALESCE ( + 80, 78 ) ELSE NULL END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT CASE - CAST ( 75 AS INTEGER ) WHEN - 22 * - 77 - - 58 THEN + COALESCE ( + 80, 78 ) ELSE NULL END * COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4976
SELECT CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) * - 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4977
SELECT + CAST( - + CASE + SUM( ALL + NULLIF ( - - 52, 40 ) ) WHEN - 45 - - 13 * + COUNT( * ) THEN - + 80 * - + 71 ELSE NULL END AS SIGNED ) / + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4977
SELECT + CAST ( - + CASE + SUM ( ALL + NULLIF ( - - 52, 40 ) ) WHEN - 45 - - 13 * + COUNT ( * ) THEN - + 80 * - + 71 ELSE NULL END AS INTEGER ) / + 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4978
SELECT - COALESCE ( - 76, + COUNT( * ) * + 14 - + + 1 + 43 ) AS col1, + 66 AS col1
----
76
66

skipif mysql # not compatible
query II rowsort label-4978
SELECT - COALESCE ( - 76, + COUNT ( * ) * + 14 - + + 1 + 43 ) AS col1, + 66 AS col1
----
76
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT + COUNT( * ) - - 32 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4979
SELECT + COUNT ( * ) - - 32 AS col0
----
33

query I rowsort
SELECT ALL ( + 13 ) * + + 80 + - + 65
----
975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4981
SELECT + CASE + 37 WHEN + COUNT( * ) THEN NULL WHEN - COUNT( * ) * - COUNT( * ) * - COUNT( * ) THEN NULL ELSE 64 * + - 93 + + 50 - - 4 DIV 91 END
----
-5902

skipif mysql # not compatible
query I rowsort label-4981
SELECT + CASE + 37 WHEN + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) THEN NULL ELSE 64 * + - 93 + + 50 - - 4 / 91 END
----
-5902

query I rowsort
SELECT DISTINCT - 24 * - 48 + - 5 + + - 29 + 93 * 4 * + 8 * - - ( + 7 ) * + 21 + 8 * + 58
----
439054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4983
SELECT DISTINCT 81 * ( + + 28 ) + 74 * + 19 * + - 55, COUNT( * ) / CAST( NULL AS SIGNED ) AS col0
----
-75062
NULL

skipif mysql # not compatible
query II rowsort label-4983
SELECT DISTINCT 81 * ( + + 28 ) + 74 * + 19 * + - 55, COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0
----
-75062
NULL

query I rowsort
SELECT ALL + - 26 * - 67 + + 83
----
1825

query II rowsort
SELECT - 27 - - 89 AS col1, + 74 + + 24 * + + 79 AS col1
----
62
1970

query I rowsort
SELECT ALL - ( - - 60 ) * - 18
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT + 95 * - ( NULLIF ( - 27, + + 99 * - - 1 ) ) * - 84 * + CASE WHEN NOT ( 23 ) NOT IN ( + 81 * COUNT( * ) ) THEN SUM( ALL + 93 ) / - 37 END + + 25 * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT + 95 * - ( NULLIF ( - 27, + + 99 * - - 1 ) ) * - 84 * + CASE WHEN NOT ( 23 ) NOT IN ( + 81 * COUNT ( * ) ) THEN SUM ( ALL + 93 ) / - 37 END + + 25 * 63
----
NULL

query II rowsort
SELECT + 75 AS col2, + 32 - - 33 AS col1
----
75
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4989
SELECT ALL + 24 * + 52 + - 82 + CAST( NULL AS SIGNED ) * + COUNT( - 90 ) + + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL + 24 * + 52 + - 82 + CAST ( NULL AS INTEGER ) * + COUNT ( - 90 ) + + 77 AS col2
----
NULL

query I rowsort
SELECT + - 46 + + 4 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4991
SELECT + COUNT( * ), 61 * - 61 AS col1
----
1
-3721

skipif mysql # not compatible
query II rowsort label-4991
SELECT + COUNT ( * ), 61 * - 61 AS col1
----
1
-3721

query I rowsort
SELECT - + 71 + + - 52 AS col0
----
-123

onlyif mysql # aggregate syntax: 
query II rowsort label-4993
SELECT ALL + + 87 * 43 * - + 39 * 32 + + COUNT( * ) + - 66 AS col0, + 4 * - ( - 52 )
----
-4668833
208

skipif mysql # not compatible
query II rowsort label-4993
SELECT ALL + + 87 * 43 * - + 39 * 32 + + COUNT ( * ) + - 66 AS col0, + 4 * - ( - 52 )
----
-4668833
208

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT DISTINCT - COUNT( * ) * + 16 + - - 83
----
67

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT - COUNT ( * ) * + 16 + - - 83
----
67

query II rowsort
SELECT ALL + 14, - 51 AS col2
----
14
-51

onlyif mysql # aggregate syntax: 
query III rowsort label-4996
SELECT + + COUNT( * ) col1, + 45 * 39 * - 60 col1, - - 38 AS col1
----
1
-105300
38

skipif mysql # not compatible
query III rowsort label-4996
SELECT + + COUNT ( * ) col1, + 45 * 39 * - 60 col1, - - 38 AS col1
----
1
-105300
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4997
SELECT - 57 + + 38 + + + ( - CAST( + 73 AS SIGNED ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4997
SELECT - 57 + + 38 + + + ( - CAST ( + 73 AS INTEGER ) ) AS col1
----
-92

query I rowsort
SELECT + + 19 * - 18 AS col1
----
-342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4999
SELECT - COALESCE ( ( + ( - 46 ) ), NULLIF ( - - CAST( + CASE + ( - 66 ) WHEN + 14 * + - 59 + COALESCE ( - 32, 90 ) * + 61 THEN 79 END AS SIGNED ), MIN( + 70 ) * 43 ), - 59 - 84 )
----
46

skipif mysql # not compatible
query I rowsort label-4999
SELECT - COALESCE ( ( + ( - 46 ) ), NULLIF ( - - CAST ( + CASE + ( - 66 ) WHEN + 14 * + - 59 + COALESCE ( - 32, 90 ) * + 61 THEN 79 END AS INTEGER ), MIN ( + 70 ) * 43 ), - 59 - 84 )
----
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5000
SELECT - + 69 DIV + CAST( + 69 AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5000
SELECT - + 69 / + CAST ( + 69 AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT ALL ( - COALESCE ( + 9, + 42 ) )
----
-9

query I rowsort
SELECT ALL + 96 * 97
----
9312

query I rowsort
SELECT DISTINCT COALESCE ( - 32, + 48, 17 )
----
-32

query II rowsort
SELECT DISTINCT + 78 * - 8, - 76 * 56 AS col2
----
-624
-4256

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5005
SELECT ALL ( - 27 ) AS col1, COUNT( * ) DIV - - COUNT( * )
----
-27
1

skipif mysql # not compatible
query II rowsort label-5005
SELECT ALL ( - 27 ) AS col1, COUNT ( * ) / - - COUNT ( * )
----
-27
1

query I rowsort
SELECT + ( - - 47 ) + - 71 AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5007
SELECT + 48 + - CASE + 99 WHEN - 99 + + ( + - COUNT( * ) ) * + 92 * COUNT( * ) + + 63 + + CASE + 14 WHEN + 28 + - 1 THEN 51 END * CAST( NULL AS SIGNED ) * 45 THEN CAST( COUNT( * ) AS SIGNED ) + COUNT( * ) END + + 44 * + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT + 48 + - CASE + 99 WHEN - 99 + + ( + - COUNT ( * ) ) * + 92 * COUNT ( * ) + + 63 + + CASE + 14 WHEN + 28 + - 1 THEN 51 END * CAST ( NULL AS INTEGER ) * 45 THEN CAST ( COUNT ( * ) AS INTEGER ) + COUNT ( * ) END + + 44 * + 53 AS col2
----
NULL

query I rowsort
SELECT - 60 + - + 84
----
-144

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5009
SELECT + CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT + CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

query I rowsort
SELECT - ( + 83 ) + 33
----
-50

query I rowsort
SELECT + 42 - 19
----
23

query I rowsort
SELECT - ( - + 11 ) AS col1
----
11

query I rowsort
SELECT + 18 - + + 94 AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5014
SELECT + CAST( - 13 AS SIGNED ) * + 99 * + - CASE - + 51 WHEN 51 THEN NULL WHEN - - ( 42 ) * + 7 * - SUM( - 89 ) THEN - - 70 ELSE 27 + + 40 DIV 61 END
----
34749

skipif mysql # not compatible
query I rowsort label-5014
SELECT + CAST ( - 13 AS INTEGER ) * + 99 * + - CASE - + 51 WHEN 51 THEN NULL WHEN - - ( 42 ) * + 7 * - SUM ( - 89 ) THEN - - 70 ELSE 27 + + 40 / 61 END
----
34749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT - COALESCE ( - CAST( - 17 AS SIGNED ), + 99 )
----
-17

skipif mysql # not compatible
query I rowsort label-5015
SELECT - COALESCE ( - CAST ( - 17 AS INTEGER ), + 99 )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-5016
SELECT ALL + 97 DIV 93 + 80 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + 97 / 93 + 80 AS col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5017
SELECT ALL 45 DIV MIN( + 76 ) + - + 36
----
-36

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL 45 / MIN ( + 76 ) + - + 36
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5018
SELECT 35 DIV + 20 + - - 66
----
67

skipif mysql # not compatible
query I rowsort label-5018
SELECT 35 / + 20 + - - 66
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-5019
SELECT ALL 70 DIV + 35 AS col1, + 14 AS col0
----
2
14

skipif mysql # not compatible
query II rowsort label-5019
SELECT ALL 70 / + 35 AS col1, + 14 AS col0
----
2
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT + + SUM( ALL + 62 ) + + 59 * - 74 AS col0
----
-4304

skipif mysql # not compatible
query I rowsort label-5020
SELECT + + SUM ( ALL + 62 ) + + 59 * - 74 AS col0
----
-4304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5021
SELECT + 47 * - + CASE + 96 WHEN ( 91 ) THEN + + COUNT( * ) + + 31 WHEN - 23 THEN 21 DIV - 78 * - + COUNT( * ) + - ( 24 ) * 1 ELSE 32 END
----
-1504

skipif mysql # not compatible
query I rowsort label-5021
SELECT + 47 * - + CASE + 96 WHEN ( 91 ) THEN + + COUNT ( * ) + + 31 WHEN - 23 THEN 21 / - 78 * - + COUNT ( * ) + - ( 24 ) * 1 ELSE 32 END
----
-1504

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT 58 * + COUNT( * ) + COUNT( * ) col1
----
59

skipif mysql # not compatible
query I rowsort label-5022
SELECT 58 * + COUNT ( * ) + COUNT ( * ) col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT + 91 * - 42 + + 67 * COUNT( * ) + - - 97 * + + 71 * - COUNT( * )
----
-10642

skipif mysql # not compatible
query I rowsort label-5023
SELECT + 91 * - 42 + + 67 * COUNT ( * ) + - - 97 * + + 71 * - COUNT ( * )
----
-10642

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT + + NULLIF ( 94, - - ( + CASE - - 40 WHEN COUNT( * ) - + 60 THEN + 77 WHEN + COUNT( * ) * + + ( + MIN( + 26 ) ) * 78 THEN NULL END ) / COUNT( * ) ) * - COALESCE ( - 80 * COALESCE ( - 90, + 68 ), - COUNT( * ) ) + - 88 AS col0
----
-676888

skipif mysql # not compatible
query I rowsort label-5024
SELECT + + NULLIF ( 94, - - ( + CASE - - 40 WHEN COUNT ( * ) - + 60 THEN + 77 WHEN + COUNT ( * ) * + + ( + MIN ( + 26 ) ) * 78 THEN NULL END ) / COUNT ( * ) ) * - COALESCE ( - 80 * COALESCE ( - 90, + 68 ), - COUNT ( * ) ) + - 88 AS col0
----
-676888

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT + MIN( 3 )
----
3

skipif mysql # not compatible
query I rowsort label-5025
SELECT + MIN ( 3 )
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5026
SELECT ALL + - 10 DIV 8 + CAST( + ( - - 21 ) AS SIGNED ) * - COALESCE ( + 84, - 53 * + - 19 + - ( + 62 ), 38 * 74 ) AS col1
----
-1765

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL + - 10 / 8 + CAST ( + ( - - 21 ) AS INTEGER ) * - COALESCE ( + 84, - 53 * + - 19 + - ( + 62 ), 38 * 74 ) AS col1
----
-1765

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ALL + MIN( ALL - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL + MIN ( ALL - 68 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5028
SELECT + + 34 * + COALESCE ( + - 84, + ( + CAST( CASE - COUNT( * ) WHEN + 19 * 7 DIV - - 61 THEN + 37 WHEN - + 10 * - CAST( NULL AS SIGNED ) THEN NULL WHEN + 59 * 20 THEN NULL ELSE + 63 END AS SIGNED ) ) DIV + 26, + 48 * + CAST( NULL AS SIGNED ) + - 7 * 26 ) + 4
----
-2852

skipif mysql # not compatible
query I rowsort label-5028
SELECT + + 34 * + COALESCE ( + - 84, + ( + CAST ( CASE - COUNT ( * ) WHEN + 19 * 7 / - - 61 THEN + 37 WHEN - + 10 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 59 * 20 THEN NULL ELSE + 63 END AS INTEGER ) ) / + 26, + 48 * + CAST ( NULL AS INTEGER ) + - 7 * 26 ) + 4
----
-2852

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL + ( - - MAX( DISTINCT + + 50 ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL + ( - - MAX ( DISTINCT + + 50 ) ) AS col0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5030
SELECT + COALESCE ( + - 98, + + 62, - - 61 DIV - 41 + - + 82, 72 ) col2
----
-98

skipif mysql # not compatible
query I rowsort label-5030
SELECT + COALESCE ( + - 98, + + 62, - - 61 / - 41 + - + 82, 72 ) col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5031
SELECT + 7 - ( - 19 ) DIV ( NULLIF ( + 13, 53 * + 95 - - MAX( ALL CAST( NULL AS SIGNED ) ) ) ) * + 95 * + - 12 + + 61 * - 97
----
-7050

skipif mysql # not compatible
query I rowsort label-5031
SELECT + 7 - ( - 19 ) / ( NULLIF ( + 13, 53 * + 95 - - MAX ( ALL CAST ( NULL AS INTEGER ) ) ) ) * + 95 * + - 12 + + 61 * - 97
----
-7050

onlyif mysql # DIV for integer division: 
query I rowsort label-5032
SELECT - 90 DIV - 48 - - 57
----
58

skipif mysql # not compatible
query I rowsort label-5032
SELECT - 90 / - 48 - - 57
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5033
SELECT + 93 * - 79 + - - COUNT( * ), 17 AS col2, + ( - ( + ( + 65 ) ) ) + + - 67 DIV + COUNT( * ) AS col2
----
-7346
17
-132

skipif mysql # not compatible
query III rowsort label-5033
SELECT + 93 * - 79 + - - COUNT ( * ), 17 AS col2, + ( - ( + ( + 65 ) ) ) + + - 67 / + COUNT ( * ) AS col2
----
-7346
17
-132

query I rowsort
SELECT ALL NULLIF ( + 23, + - 45 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT DISTINCT CASE - - 22 WHEN - 57 * - 23 - - + COUNT( + 85 ) THEN NULL WHEN + 14 THEN - 79 - 77 + - 19 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT CASE - - 22 WHEN - 57 * - 23 - - + COUNT ( + 85 ) THEN NULL WHEN + 14 THEN - 79 - 77 + - 19 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5036
SELECT DISTINCT - CASE + 37 WHEN + 31 THEN + COUNT( * ) ELSE - 9 * - + 38 + CAST( NULL AS SIGNED ) + - ( - 83 ) * + + COUNT( * ) * + COUNT( * ) * 5 * - - 29 END * ( - 82 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT - CASE + 37 WHEN + 31 THEN + COUNT ( * ) ELSE - 9 * - + 38 + CAST ( NULL AS INTEGER ) + - ( - 83 ) * + + COUNT ( * ) * + COUNT ( * ) * 5 * - - 29 END * ( - 82 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5037
SELECT - 71 AS col2, NULLIF ( + COUNT( * ), + - 31 * + 38 + 65 ) AS col0
----
-71
1

skipif mysql # not compatible
query II rowsort label-5037
SELECT - 71 AS col2, NULLIF ( + COUNT ( * ), + - 31 * + 38 + 65 ) AS col0
----
-71
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5038
SELECT ALL 73, + CAST( - ( NULLIF ( - + CAST( NULL AS SIGNED ), - + 91 + + 15 ) ) AS DECIMAL ) * + 90 + + 60 + MIN( ALL - CAST( + + ( + 71 ) AS SIGNED ) ) AS col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-5038
SELECT ALL 73, + CAST ( - ( NULLIF ( - + CAST ( NULL AS INTEGER ), - + 91 + + 15 ) ) AS REAL ) * + 90 + + 60 + MIN ( ALL - CAST ( + + ( + 71 ) AS INTEGER ) ) AS col1
----
73
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT 99 DIV + ( - - 6 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-5039
SELECT 99 / + ( - - 6 ) AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5040
SELECT 6 + - 83 - - CAST( NULL AS SIGNED ) + + 17 * + COUNT( * ) * 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT 6 + - 83 - - CAST ( NULL AS INTEGER ) + + 17 * + COUNT ( * ) * 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT COUNT( * ) + - + MIN( COALESCE ( 9, - 91 ) ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-5041
SELECT COUNT ( * ) + - + MIN ( COALESCE ( 9, - 91 ) ) AS col2
----
-8

query II rowsort
SELECT ALL 36 col1, 36
----
36
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5043
SELECT 89 DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5043
SELECT 89 / - 91 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5044
SELECT DISTINCT + 48 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5044
SELECT DISTINCT + 48 + - CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT ALL 47, 27 * + 59 + - + 71 AS col0
----
47
1522

query II rowsort
SELECT - 2 AS col2, - 28 col0
----
-2
-28

query I rowsort
SELECT 24 * 44 col0
----
1056

query I rowsort
SELECT ALL - 3 + 38 - 21
----
14

query II rowsort
SELECT 95 - 3 - 16 * + 23 AS col1, + 8
----
-276
8

query I rowsort
SELECT 38 - + 34 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT + 23 * COUNT( * ) + + 35 * + - 71 AS col2
----
-2462

skipif mysql # not compatible
query I rowsort label-5051
SELECT + 23 * COUNT ( * ) + + 35 * + - 71 AS col2
----
-2462

onlyif mysql # aggregate syntax: 
query II rowsort label-5052
SELECT NULLIF ( - - 26, 8 * 34 + + MIN( - 73 ) + + 53 * + 78 ) * + 41 AS col0, - 64
----
1066
-64

skipif mysql # not compatible
query II rowsort label-5052
SELECT NULLIF ( - - 26, 8 * 34 + + MIN ( - 73 ) + + 53 * + 78 ) * + 41 AS col0, - 64
----
1066
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5053
SELECT DISTINCT 24 * - 3 * - + 49 * CAST( + - 3 AS SIGNED ) * + - 19
----
201096

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT 24 * - 3 * - + 49 * CAST ( + - 3 AS INTEGER ) * + - 19
----
201096

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT - + ( + 2 ) - CASE - 95 WHEN + 12 * + 6 + + - COALESCE ( + 9, + SUM( ALL 87 ), - - 27 ) + - 84 THEN NULL ELSE - - 77 END
----
-79

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - + ( + 2 ) - CASE - 95 WHEN + 12 * + 6 + + - COALESCE ( + 9, + SUM ( ALL 87 ), - - 27 ) + - 84 THEN NULL ELSE - - 77 END
----
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5055
SELECT 63 / ( + CAST( NULL AS DECIMAL ) ) - - - COUNT( ALL + + 52 ) + - 52 * + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5055
SELECT 63 / ( + CAST ( NULL AS REAL ) ) - - - COUNT ( ALL + + 52 ) + - 52 * + 51 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5056
SELECT DISTINCT CASE - 2 WHEN - 86 THEN - ( NULLIF ( CAST( NULL AS DECIMAL ), - + 31 ) ) WHEN + 82 THEN - - COUNT( * ) * - COUNT( - 96 ) * - - 46 * + CAST( NULL AS SIGNED ) END * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT CASE - 2 WHEN - 86 THEN - ( NULLIF ( CAST ( NULL AS REAL ), - + 31 ) ) WHEN + 82 THEN - - COUNT ( * ) * - COUNT ( - 96 ) * - - 46 * + CAST ( NULL AS INTEGER ) END * - COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT + + 41 AS col0, 46 * + - COALESCE ( - ( - 69 ), - 13, - 95 ) + - 5 * + 18 + - 49 AS col1
----
41
-3313

query II rowsort
SELECT + 5 AS col0, 15
----
5
15

query I rowsort
SELECT - 48 * - + 47 + 86 + - 68
----
2274

query I rowsort
SELECT + + COALESCE ( + 57, + 20 * - 32 - 10, + ( - 9 ) ) AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5061
SELECT COUNT( * ) + COUNT( * ) - + + COUNT( * ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5061
SELECT COUNT ( * ) + COUNT ( * ) - + + COUNT ( * ) / + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT 76 * - - ( + 67 ) * + + COUNT( * ) AS col2
----
5092

skipif mysql # not compatible
query I rowsort label-5062
SELECT 76 * - - ( + 67 ) * + + COUNT ( * ) AS col2
----
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT - COUNT( * ) + + 68 - - 29 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5063
SELECT - COUNT ( * ) + + 68 - - 29 AS col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5064
SELECT + 14 DIV - 54 * + - 34 DIV + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5064
SELECT + 14 / - 54 * + - 34 / + COUNT ( * )
----
0

query I rowsort
SELECT ALL 53 * 85
----
4505

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT 56 * + CASE - + ( + + 93 ) WHEN - NULLIF ( + 74, - COUNT( * ) ) * 1 THEN 86 + - + 56 WHEN 87 + + + 3 + + 75 * COUNT( * ) THEN - ( - CASE 92 WHEN 81 * + COUNT( * ) + + 90 * - CASE + 3 WHEN + 92 / + 99 THEN 44 ELSE NULL END THEN 70 - + 97 END ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT 56 * + CASE - + ( + + 93 ) WHEN - NULLIF ( + 74, - COUNT ( * ) ) * 1 THEN 86 + - + 56 WHEN 87 + + + 3 + + 75 * COUNT ( * ) THEN - ( - CASE 92 WHEN 81 * + COUNT ( * ) + + 90 * - CASE + 3 WHEN + 92 / + 99 THEN 44 ELSE NULL END THEN 70 - + 97 END ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5067
SELECT DISTINCT - 24 * 28, + COUNT( ALL + + 10 ) + 15 * - COUNT( * ) AS col0
----
-672
-14

skipif mysql # not compatible
query II rowsort label-5067
SELECT DISTINCT - 24 * 28, + COUNT ( ALL + + 10 ) + 15 * - COUNT ( * ) AS col0
----
-672
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT ALL 55 + - MIN( 73 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL 55 + - MIN ( 73 ) AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5069
SELECT 61 + - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * - - 90 AS col0, + 67 * - COUNT( * ) AS col0
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-5069
SELECT 61 + - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * - - 90 AS col0, + 67 * - COUNT ( * ) AS col0
----
NULL
-67

query I rowsort
SELECT ALL 7 + - 92 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-5071
SELECT 70 * + - 93 + + - 20 + - ( + COUNT( * ) ) * MIN( + ( - - 56 ) ) * + ( 65 ) + - 39 - - + 21 AS col2, 58
----
-10188
58

skipif mysql # not compatible
query II rowsort label-5071
SELECT 70 * + - 93 + + - 20 + - ( + COUNT ( * ) ) * MIN ( + ( - - 56 ) ) * + ( 65 ) + - 39 - - + 21 AS col2, 58
----
-10188
58

query I rowsort
SELECT 15 * 34
----
510

query I rowsort
SELECT ALL + 34 + + - 67
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5074
SELECT CAST( - 91 AS SIGNED ) - - 3 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-5074
SELECT CAST ( - 91 AS INTEGER ) - - 3 AS col1
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT 5 + - NULLIF ( + CAST( + 52 AS SIGNED ), + + 13 + + 8 )
----
-47

skipif mysql # not compatible
query I rowsort label-5075
SELECT 5 + - NULLIF ( + CAST ( + 52 AS INTEGER ), + + 13 + + 8 )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5076
SELECT DISTINCT 6 + 36 * - 73 + - 26 * + 30 * COALESCE ( - COUNT( * ), - 95 + 3, - - 34 * 22 * 45 ) DIV + COALESCE ( + COUNT( * ), + 89 + + 19 ) AS col1
----
-1842

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT 6 + 36 * - 73 + - 26 * + 30 * COALESCE ( - COUNT ( * ), - 95 + 3, - - 34 * 22 * 45 ) / + COALESCE ( + COUNT ( * ), + 89 + + 19 ) AS col1
----
-1842

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5077
SELECT 24 + + CASE 37 WHEN - 6 THEN - - CAST( NULL AS SIGNED ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5077
SELECT 24 + + CASE 37 WHEN - 6 THEN - - CAST ( NULL AS INTEGER ) ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL - 71 + - 2 AS col1
----
-73

query I rowsort
SELECT 31 * + 52 AS col0
----
1612

onlyif mysql # aggregate syntax: 
query II rowsort label-5080
SELECT DISTINCT + COUNT( ALL - 74 ) * - COUNT( * ) + + 34 AS col0, - 9 + - CASE + 25 WHEN - - 92 THEN NULL WHEN - + 95 THEN + + 29 WHEN - 16 THEN 31 END
----
33
NULL

skipif mysql # not compatible
query II rowsort label-5080
SELECT DISTINCT + COUNT ( ALL - 74 ) * - COUNT ( * ) + + 34 AS col0, - 9 + - CASE + 25 WHEN - - 92 THEN NULL WHEN - + 95 THEN + + 29 WHEN - 16 THEN 31 END
----
33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT 5 + + + MAX( DISTINCT + 90 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-5081
SELECT 5 + + + MAX ( DISTINCT + 90 ) AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5082
SELECT + COALESCE ( + COUNT( * ), - - CASE WHEN ( NULL ) BETWEEN COUNT( * ) AND 24 / + + 57 - + - 97 + AVG ( ALL + 41 ) + + 15 * + COUNT( * ) THEN - 78 + 35 WHEN NOT CAST( 66 AS SIGNED ) < ( + 37 + - 87 ) THEN NULL ELSE - 86 END + 69, 52 * + 75 + 5 * + ( - 31 * + 11 ) ) + 4
----
5

skipif mysql # not compatible
query I rowsort label-5082
SELECT + COALESCE ( + COUNT ( * ), - - CASE WHEN ( NULL ) BETWEEN COUNT ( * ) AND 24 / + + 57 - + - 97 + AVG ( ALL + 41 ) + + 15 * + COUNT ( * ) THEN - 78 + 35 WHEN NOT CAST ( 66 AS INTEGER ) < ( + 37 + - 87 ) THEN NULL ELSE - 86 END + 69, 52 * + 75 + 5 * + ( - 31 * + 11 ) ) + 4
----
5

query I rowsort
SELECT - ( ( - 24 ) ) * - 13 AS col2
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT COUNT( DISTINCT + 67 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5084
SELECT COUNT ( DISTINCT + 67 ) AS col2
----
1

query I rowsort
SELECT ALL - CASE + 25 WHEN 71 * 54 + - - 53 THEN - + 15 WHEN 89 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ALL + - 25 * + - 18 + + - COUNT( * ) * - + 36 - ( 64 ) + + + 75 + - 57 AS col1
----
440

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL + - 25 * + - 18 + + - COUNT ( * ) * - + 36 - ( 64 ) + + + 75 + - 57 AS col1
----
440

query I rowsort
SELECT DISTINCT - - 97 AS col1
----
97

query I rowsort
SELECT + 45 * + + 82
----
3690

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT DISTINCT + 59 * - 7 + + NULLIF ( - - 15, - - CASE - - 61 WHEN - COUNT( ALL + 0 ) THEN 72 WHEN - 23 / + COUNT( * ) * + 1 THEN + 15 END ) + + 84 * ( 96 ) col0
----
7666

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT + 59 * - 7 + + NULLIF ( - - 15, - - CASE - - 61 WHEN - COUNT ( ALL + 0 ) THEN 72 WHEN - 23 / + COUNT ( * ) * + 1 THEN + 15 END ) + + 84 * ( 96 ) col0
----
7666

query I rowsort
SELECT DISTINCT 83 * 98 + 5 + 49 * + 30 * - 98 * 31
----
-4457721

query I rowsort
SELECT ALL + + 20 * + + 84 AS col2
----
1680

query I rowsort
SELECT ALL 14 + + 41
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5093
SELECT + COUNT( * ) AS col1, 30 * - 34
----
1
-1020

skipif mysql # not compatible
query II rowsort label-5093
SELECT + COUNT ( * ) AS col1, 30 * - 34
----
1
-1020

query I rowsort
SELECT ALL 31 + - 43 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT SUM( + + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-5095
SELECT SUM ( + + 87 )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5096
SELECT + 19 + + + COUNT( * ) + - COUNT( * ) - + ( 10 ) DIV - - CAST( - 70 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-5096
SELECT + 19 + + + COUNT ( * ) + - COUNT ( * ) - + ( 10 ) / - - CAST ( - 70 AS INTEGER )
----
19

query I rowsort
SELECT ALL - 47 + - 69 * - + 64 AS col1
----
4369

query I rowsort
SELECT DISTINCT + ( + ( - + 16 ) )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT ALL 1 + + 24 + - COUNT( * ) + + 64 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL 1 + + 24 + - COUNT ( * ) + + 64 AS col2
----
88

query I rowsort
SELECT DISTINCT 30 + + + 25
----
55

query I rowsort
SELECT ALL 53 * - 68 AS col1
----
-3604

query I rowsort
SELECT ALL 65 + + 56 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT + SUM( ALL + + 97 ) - - 95 AS col0
----
192

skipif mysql # not compatible
query I rowsort label-5103
SELECT + SUM ( ALL + + 97 ) - - 95 AS col0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT - COUNT( 77 )
----
-1

skipif mysql # not compatible
query I rowsort label-5104
SELECT - COUNT ( 77 )
----
-1

query I rowsort
SELECT - ( + 9 ) AS col1
----
-9

query I rowsort
SELECT - ( 62 ) col2
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5107
SELECT ALL COUNT( * ) * + - NULLIF ( - 37, - ( - + 58 ) ) * 58 DIV - 69
----
-31

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL COUNT ( * ) * + - NULLIF ( - 37, - ( - + 58 ) ) * 58 / - 69
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5108
SELECT - 29 + - - SUM( + COALESCE ( - CAST( NULL AS SIGNED ), - 82, - 38 * + - 63 ) ) col2
----
-111

skipif mysql # not compatible
query I rowsort label-5108
SELECT - 29 + - - SUM ( + COALESCE ( - CAST ( NULL AS INTEGER ), - 82, - 38 * + - 63 ) ) col2
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT - NULLIF ( - 97, + 11 * 93 * + 14 + + 94 + 52 + MAX( ALL + - 80 ) + 68 + - - SUM( DISTINCT - + 30 ) )
----
97

skipif mysql # not compatible
query I rowsort label-5109
SELECT - NULLIF ( - 97, + 11 * 93 * + 14 + + 94 + 52 + MAX ( ALL + - 80 ) + 68 + - - SUM ( DISTINCT - + 30 ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT DISTINCT COUNT( ALL 60 ) * + 80
----
80

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT COUNT ( ALL 60 ) * + 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT - CASE + SUM( + 13 ) WHEN 43 + + NULLIF ( 71, + 43 / + + 58 + + 32 ) THEN + 67 WHEN - 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT - CASE + SUM ( + 13 ) WHEN 43 + + NULLIF ( 71, + 43 / + + 58 + + 32 ) THEN + 67 WHEN - 89 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + ( + - 6 ), 55 ) AS col0
----
-6

query I rowsort
SELECT DISTINCT COALESCE ( - - 47, - 86 + 70 ) AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5114
SELECT ALL + 41 DIV - 95 * + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL + 41 / - 95 * + 72 AS col1
----
0

query I rowsort
SELECT - - 30 * 6 * 28
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT - + 55 * COUNT( * ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5116
SELECT - + 55 * COUNT ( * ) AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5117
SELECT ALL + - CAST( + 61 AS SIGNED ) * + SUM( DISTINCT 39 ) AS col1
----
-2379

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL + - CAST ( + 61 AS INTEGER ) * + SUM ( DISTINCT 39 ) AS col1
----
-2379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5118
SELECT DISTINCT + COUNT( * ) * CASE + + COUNT( ALL + + 44 ) WHEN + NULLIF ( - 96, + 94 ) THEN + MAX( - - 37 ) * + 17 * 17 ELSE NULL END / - 43 + - 77 + 77 * NULLIF ( 99, 1 ) - + 73 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT + COUNT ( * ) * CASE + + COUNT ( ALL + + 44 ) WHEN + NULLIF ( - 96, + 94 ) THEN + MAX ( - - 37 ) * + 17 * 17 ELSE NULL END / - 43 + - 77 + 77 * NULLIF ( 99, 1 ) - + 73 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5119
SELECT DISTINCT + CASE 16 WHEN + 29 * COUNT( * ) / - CAST( - 36 AS SIGNED ) THEN 77 WHEN 26 * + NULLIF ( - 89, + 55 * 8 ) / - - 18 * + 93 + + 13 + 14 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT + CASE 16 WHEN + 29 * COUNT ( * ) / - CAST ( - 36 AS INTEGER ) THEN 77 WHEN 26 * + NULLIF ( - 89, + 55 * 8 ) / - - 18 * + 93 + + 13 + 14 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT DISTINCT + SUM( 37 ) * - 37 + MIN( + - 54 ) AS col2
----
-1423

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT + SUM ( 37 ) * - 37 + MIN ( + - 54 ) AS col2
----
-1423

query II rowsort
SELECT - - 28 * - + 44 + - 17 + - + 95 * 4 AS col1, 77 AS col0
----
-1629
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5122
SELECT DISTINCT 43 * + + 83 + + CAST( NULL AS SIGNED ) AS col0, 9 * - 8 + + SUM( DISTINCT - + 81 )
----
NULL
-153

skipif mysql # not compatible
query II rowsort label-5122
SELECT DISTINCT 43 * + + 83 + + CAST ( NULL AS INTEGER ) AS col0, 9 * - 8 + + SUM ( DISTINCT - + 81 )
----
NULL
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT + SUM( DISTINCT + - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-5123
SELECT + SUM ( DISTINCT + - 65 )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5124
SELECT + COUNT( * ) * - + 68 + + - CAST( - - 53 AS SIGNED ) + 22 AS col1, - 50 AS col0
----
-99
-50

skipif mysql # not compatible
query II rowsort label-5124
SELECT + COUNT ( * ) * - + 68 + + - CAST ( - - 53 AS INTEGER ) + 22 AS col1, - 50 AS col0
----
-99
-50

query I rowsort
SELECT + ( + 24 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT - 96 + + + NULLIF ( - + 89, + 49 * - + ( - 71 ) / - 16 * + + 30 + - CASE - - 6 WHEN + + 65 THEN NULL WHEN 8 + - 33 THEN CASE + COUNT( * ) WHEN + 50 THEN NULL WHEN 71 THEN COUNT( * ) * 30 END + - 43 END )
----
-185

skipif mysql # not compatible
query I rowsort label-5126
SELECT - 96 + + + NULLIF ( - + 89, + 49 * - + ( - 71 ) / - 16 * + + 30 + - CASE - - 6 WHEN + + 65 THEN NULL WHEN 8 + - 33 THEN CASE + COUNT ( * ) WHEN + 50 THEN NULL WHEN 71 THEN COUNT ( * ) * 30 END + - 43 END )
----
-185

query II rowsort
SELECT DISTINCT + 22, - 27 + + ( - 49 ) col2
----
22
-76

query I rowsort
SELECT ALL + COALESCE ( + 55, + + 92 )
----
55

query I rowsort
SELECT ALL + 87 * - 76 + - 56 col2
----
-6668

onlyif mysql # aggregate syntax: 
query II rowsort label-5130
SELECT + COUNT( * ) col1, 21 + + - ( + - 35 ) AS col0
----
1
56

skipif mysql # not compatible
query II rowsort label-5130
SELECT + COUNT ( * ) col1, 21 + + - ( + - 35 ) AS col0
----
1
56

query II rowsort
SELECT ALL + 34 AS col0, 37 AS col0
----
34
37

query I rowsort
SELECT DISTINCT 17 * + 55 + - 18
----
917

onlyif mysql # aggregate syntax: 
query II rowsort label-5133
SELECT DISTINCT MIN( ALL 28 ) * 79 + + - 51, - 53 AS col1
----
2161
-53

skipif mysql # not compatible
query II rowsort label-5133
SELECT DISTINCT MIN ( ALL 28 ) * 79 + + - 51, - 53 AS col1
----
2161
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT + CASE + + 89 WHEN - + 98 * + COUNT( * ) THEN 33 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5134
SELECT + CASE + + 89 WHEN - + 98 * + COUNT ( * ) THEN 33 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL + MAX( 2 )
----
2

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL + MAX ( 2 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT DISTINCT + CAST( - 24 AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT + CAST ( - 24 AS INTEGER )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT - COUNT( * ) + + 12 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5137
SELECT - COUNT ( * ) + + 12 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT + COUNT( * ) * + 21 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5138
SELECT + COUNT ( * ) * + 21 AS col1
----
21

query I rowsort
SELECT - 24 + - 64 col0
----
-88

query I rowsort
SELECT - 0 + + ( + 79 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5141
SELECT ALL - SUM( ALL + 96 ) * + COUNT( * ) * + 96 + + COUNT( * ) * + 1 - + + CAST( NULL AS DECIMAL ) - - 10 + + 16 AS col0, - 46 AS col1
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-5141
SELECT ALL - SUM ( ALL + 96 ) * + COUNT ( * ) * + 96 + + COUNT ( * ) * + 1 - + + CAST ( NULL AS REAL ) - - 10 + + 16 AS col0, - 46 AS col1
----
NULL
-46

query I rowsort
SELECT + 76 + 83 AS col0
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5143
SELECT ALL - NULLIF ( - MIN( ALL 20 ), - 24 ) DIV + - 35
----
0

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL - NULLIF ( - MIN ( ALL 20 ), - 24 ) / + - 35
----
0

query I rowsort
SELECT + + 50 + + - 83 AS col2
----
-33

query I rowsort
SELECT ALL - 45 - - + 91 AS col2
----
46

query I rowsort
SELECT - + 6 * 7 AS col1
----
-42

query I rowsort
SELECT + + 1 + + ( 2 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5148
SELECT + 44 + COUNT( * ), 18 * + 27 AS col2
----
45
486

skipif mysql # not compatible
query II rowsort label-5148
SELECT + 44 + COUNT ( * ), 18 * + 27 AS col2
----
45
486

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT + ( - - COUNT( * ) ) + - 89
----
-88

skipif mysql # not compatible
query I rowsort label-5149
SELECT + ( - - COUNT ( * ) ) + - 89
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT + 58 * - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-5150
SELECT + 58 * - COUNT ( * )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5151
SELECT + 63, CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-5151
SELECT + 63, CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT ALL COALESCE ( - - SUM( 45 ), - 57 ) + 34
----
79

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL COALESCE ( - - SUM ( 45 ), - 57 ) + 34
----
79

query I rowsort
SELECT DISTINCT 59 + 11 - 4 + + 14 + 17 * - 62 + 3
----
-971

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT ALL - CASE 12 WHEN 48 THEN 68 * + MIN( DISTINCT + - ( 38 ) ) - 81 ELSE + SUM( - 86 ) * - - 56 END
----
4816

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL - CASE 12 WHEN 48 THEN 68 * + MIN ( DISTINCT + - ( 38 ) ) - 81 ELSE + SUM ( - 86 ) * - - 56 END
----
4816

onlyif mysql # DIV for integer division: 
query I rowsort label-5155
SELECT 39 DIV 6
----
6

skipif mysql # not compatible
query I rowsort label-5155
SELECT 39 / 6
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5156
SELECT + 49 DIV + 7 + + 93 - - COALESCE ( + + 80, + ( + + 36 ) ) AS col2
----
180

skipif mysql # not compatible
query I rowsort label-5156
SELECT + 49 / + 7 + + 93 - - COALESCE ( + + 80, + ( + + 36 ) ) AS col2
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT ALL - CAST( + - ( + + 12 ) AS SIGNED ) + - 33 + + 43
----
22

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL - CAST ( + - ( + + 12 ) AS INTEGER ) + - 33 + + 43
----
22

query I rowsort
SELECT ALL 86 + 61
----
147

query I rowsort
SELECT DISTINCT - 86 + - 1 AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5160
SELECT DISTINCT - MIN( ALL + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT - MIN ( ALL + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL 54 + - 2 + + + NULLIF ( 14, - 84 + - 5 )
----
66

query I rowsort
SELECT 5 + + 83 - - + 82 + - 1 AS col1
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5163
SELECT 18 * 99 col0, + ( + + COALESCE ( 60, + 45 * NULLIF ( + 75, + 2 ) + + + 85 + + CAST( 73 AS SIGNED ) ) ) AS col1
----
1782
60

skipif mysql # not compatible
query II rowsort label-5163
SELECT 18 * 99 col0, + ( + + COALESCE ( 60, + 45 * NULLIF ( + 75, + 2 ) + + + 85 + + CAST ( 73 AS INTEGER ) ) ) AS col1
----
1782
60

query I rowsort
SELECT ALL + 85 - - 33 * - 22
----
-641

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT - 13 * + + 32 + + COUNT( * )
----
-415

skipif mysql # not compatible
query I rowsort label-5165
SELECT - 13 * + + 32 + + COUNT ( * )
----
-415

onlyif mysql # aggregate syntax: 
query II rowsort label-5166
SELECT DISTINCT - ( - + 15 ) col2, CASE + 20 WHEN - + COALESCE ( 7, 3 * + + 34 * - 46 ) * COUNT( * ) * AVG ( ALL 2 ) * + 90 + + - 1 + - + ( - 71 ) + + 12 THEN NULL WHEN + 69 * + 53 THEN 96 * 10 + 85 ELSE - 14 END col0
----
15
-14

skipif mysql # not compatible
query II rowsort label-5166
SELECT DISTINCT - ( - + 15 ) col2, CASE + 20 WHEN - + COALESCE ( 7, 3 * + + 34 * - 46 ) * COUNT ( * ) * AVG ( ALL 2 ) * + 90 + + - 1 + - + ( - 71 ) + + 12 THEN NULL WHEN + 69 * + 53 THEN 96 * 10 + 85 ELSE - 14 END col0
----
15
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT COUNT( * ) * + 28 * 28
----
784

skipif mysql # not compatible
query I rowsort label-5167
SELECT COUNT ( * ) * + 28 * 28
----
784

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL + 40 * - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL + 40 * - - COUNT ( * )
----
40

query I rowsort
SELECT DISTINCT + 31 * 76
----
2356

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5170
SELECT DISTINCT + 58 DIV COALESCE ( 21, + 15, + CAST( - 79 AS SIGNED ) )
----
2

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT + 58 / COALESCE ( 21, + 15, + CAST ( - 79 AS INTEGER ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT COUNT( * ) * + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5171
SELECT COUNT ( * ) * + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT ALL 64 * + 81
----
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL - ( + COUNT( * ) ) * - 91 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL - ( + COUNT ( * ) ) * - 91 AS col0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5174
SELECT + 6 DIV 60 + + - 8 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-5174
SELECT + 6 / 60 + + - 8 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT - MAX( DISTINCT - 59 ) * ( 8 ) AS col2
----
472

skipif mysql # not compatible
query I rowsort label-5175
SELECT - MAX ( DISTINCT - 59 ) * ( 8 ) AS col2
----
472

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT - SUM( - - 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5176
SELECT - SUM ( - - 45 ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT - CASE + - AVG ( + 37 ) WHEN 59 * - - COUNT( * ) + + + 88 * - 2 / 36 + - 64 - - 33 + - 39 / - 4 * + - 88 * + 70 THEN + 61 * - 51 - - COUNT( * ) WHEN 51 - - 64 * + 26 THEN NULL END + - 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT - CASE + - AVG ( + 37 ) WHEN 59 * - - COUNT ( * ) + + + 88 * - 2 / 36 + - 64 - - 33 + - 39 / - 4 * + - 88 * + 70 THEN + 61 * - 51 - - COUNT ( * ) WHEN 51 - - 64 * + 26 THEN NULL END + - 10 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + + 51 + + ( + NULLIF ( + + 54, - 19 * - 48 * ( + 26 ) ) ) col1, 17 + - - 65 + - - 78 * - 78
----
105
-6002

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT ALL + COUNT( DISTINCT + + 85 ) + - + 38 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL + COUNT ( DISTINCT + + 85 ) + - + 38 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT + 56 * - - 46 + - SUM( - 59 ) - 82 AS col0
----
2553

skipif mysql # not compatible
query I rowsort label-5180
SELECT + 56 * - - 46 + - SUM ( - 59 ) - 82 AS col0
----
2553

query II rowsort
SELECT ALL + 89 + + 9 + - COALESCE ( - 6, - 68 * + + 90, - 51 ) col0, - 98 - + 32 AS col1
----
104
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5182
SELECT DISTINCT - 31 + 31 + CAST( COUNT( * ) AS SIGNED ) + + 87 + + 67 + + - 85 * - 47 * + 57 * + MIN( DISTINCT 39 ) - - 15 AS col1
----
8881055

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT - 31 + 31 + CAST ( COUNT ( * ) AS INTEGER ) + + 87 + + 67 + + - 85 * - 47 * + 57 * + MIN ( DISTINCT 39 ) - - 15 AS col1
----
8881055

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT 76 * - + CASE 13 WHEN + COUNT( * ) THEN 55 * + 74 WHEN + - 68 + + 15 THEN NULL ELSE NULL END - - 82 + COUNT( * ) - + ( - + 78 ) + + ( 43 ) * - + 69 + + 37 / + 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5183
SELECT 76 * - + CASE 13 WHEN + COUNT ( * ) THEN 55 * + 74 WHEN + - 68 + + 15 THEN NULL ELSE NULL END - - 82 + COUNT ( * ) - + ( - + 78 ) + + ( 43 ) * - + 69 + + 37 / + 97 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5184
SELECT - 92 * + MAX( + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT - 92 * + MAX ( + CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 75 + - 54 + 58 AS col0
----
79

query I rowsort
SELECT 56 + + CASE + + 57 WHEN + - 83 THEN + - 61 - + 72 / + + 18 + + 8 * - 2 END AS col1
----
NULL

query I rowsort
SELECT - 58 + 55 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT NULLIF ( - - 16, - MAX( ALL - 29 ) * + 62 * + COUNT( * ) - - + 63 + + 40 * - + 79 * - + 0 + - COALESCE ( - + ( + 68 ), - 6 - - 61 ) + - MIN( ALL + - 58 ) - COUNT( * ) * 36 ) * + 39
----
624

skipif mysql # not compatible
query I rowsort label-5188
SELECT NULLIF ( - - 16, - MAX ( ALL - 29 ) * + 62 * + COUNT ( * ) - - + 63 + + 40 * - + 79 * - + 0 + - COALESCE ( - + ( + 68 ), - 6 - - 61 ) + - MIN ( ALL + - 58 ) - COUNT ( * ) * 36 ) * + 39
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT DISTINCT - COUNT( * ) * - - 18 col1
----
-18

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT - COUNT ( * ) * - - 18 col1
----
-18

query II rowsort
SELECT + ( - 15 ), + 14 AS col2
----
-15
14

query I rowsort
SELECT ALL 55 * + 30
----
1650

query I rowsort
SELECT DISTINCT 13 - 22 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT ALL - MAX( DISTINCT - 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL - MAX ( DISTINCT - 95 ) AS col2
----
95

query II rowsort
SELECT NULLIF ( + 63, - 8 + - 37 + 0 + + NULLIF ( 99, 27 + + + 92 ) ) - + - ( - 77 ) AS col0, - NULLIF ( + 82, 46 + - + 37 )
----
-14
-82

query I rowsort
SELECT 18 + 72 AS col0
----
90

query I rowsort
SELECT 89 * - 86
----
-7654

query I rowsort
SELECT 24 * 74 AS col0
----
1776

onlyif mysql # DIV for integer division: 
query I rowsort label-5198
SELECT ALL 42 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL 42 / 65
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT + 34 DIV + - 9 + 47
----
44

skipif mysql # not compatible
query I rowsort label-5199
SELECT + 34 / + - 9 + 47
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5200
SELECT 43 DIV + - CASE + 59 WHEN - 19 + - 81 THEN NULL WHEN + 41 DIV + 86 * + 89 + 72 + + + COUNT( * ) - + - 91 * - NULLIF ( + 31, + - 11 ) + 60 - + + COALESCE ( + 21, - 96 ) THEN NULL WHEN ( 61 ) THEN NULL ELSE - COUNT( * ) END
----
43

skipif mysql # not compatible
query I rowsort label-5200
SELECT 43 / + - CASE + 59 WHEN - 19 + - 81 THEN NULL WHEN + 41 / + 86 * + 89 + 72 + + + COUNT ( * ) - + - 91 * - NULLIF ( + 31, + - 11 ) + 60 - + + COALESCE ( + 21, - 96 ) THEN NULL WHEN ( 61 ) THEN NULL ELSE - COUNT ( * ) END
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5201
SELECT ALL - CAST( NULL AS SIGNED ) * - - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 46 AS col2
----
NULL

query I rowsort
SELECT 14 * + 56
----
784

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT ALL 6 DIV - 23 * 55
----
0

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL 6 / - 23 * 55
----
0

query II rowsort
SELECT DISTINCT - 92, 93 * - 36 AS col1
----
-92
-3348

query I rowsort
SELECT ALL - CASE + 9 WHEN - 92 * 43 / + 61 THEN NULL WHEN + - 59 THEN - ( - 2 ) - - 68 ELSE NULL END col0
----
NULL

query I rowsort
SELECT 40 * - 25
----
-1000

query I rowsort
SELECT 43 + - 34 AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5208
SELECT ALL CAST( NULL AS SIGNED ) * - ( - 11 ) AS col0, - ( + NULLIF ( + 84, + + 41 - 51 ) ) * - + 51 AS col0
----
NULL
4284

skipif mysql # not compatible
query II rowsort label-5208
SELECT ALL CAST ( NULL AS INTEGER ) * - ( - 11 ) AS col0, - ( + NULLIF ( + 84, + + 41 - 51 ) ) * - + 51 AS col0
----
NULL
4284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5209
SELECT CAST( NULL AS SIGNED ) * 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT CAST ( NULL AS INTEGER ) * 63 AS col2
----
NULL

query II rowsort
SELECT + 99, 73 + + + ( 25 ) AS col2
----
99
98

query I rowsort
SELECT ALL + 82 + - 9
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT 73 - - ( + COUNT( * ) ) - 36
----
38

skipif mysql # not compatible
query I rowsort label-5212
SELECT 73 - - ( + COUNT ( * ) ) - 36
----
38

query I rowsort
SELECT DISTINCT 91 + + + 96
----
187

query I rowsort
SELECT ALL - ( - - 57 ) + - NULLIF ( - 93, + 78 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL - - 78 * - + COUNT( * ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - - 78 * - + COUNT ( * ) col2
----
-78

query I rowsort
SELECT - 49 + 52 + - 85
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT ALL + 38 + - 0 * - COUNT( * ) * - 58 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL + 38 + - 0 * - COUNT ( * ) * - 58 AS col2
----
38

query I rowsort
SELECT ALL + + 49 + - 7 * + + 39 AS col0
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT - 76 + + CASE 86 WHEN + 24 THEN NULL ELSE 50 * COUNT( * ) END * ( + - COUNT( * ) ) col0
----
-126

skipif mysql # not compatible
query I rowsort label-5219
SELECT - 76 + + CASE 86 WHEN + 24 THEN NULL ELSE 50 * COUNT ( * ) END * ( + - COUNT ( * ) ) col0
----
-126

query I rowsort
SELECT - - 46 * - 86
----
-3956

onlyif mysql # aggregate syntax: 
query II rowsort label-5221
SELECT - - COUNT( * ) AS col1, 32 AS col2
----
1
32

skipif mysql # not compatible
query II rowsort label-5221
SELECT - - COUNT ( * ) AS col1, 32 AS col2
----
1
32

query I rowsort
SELECT DISTINCT - + 36 * - 17 AS col0
----
612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5223
SELECT - CASE - CAST( NULL AS SIGNED ) WHEN + + 9 / + MIN( - 83 ) + 68 / - 88 * + 6 + + - 81 THEN NULL ELSE + 28 END
----
-28

skipif mysql # not compatible
query I rowsort label-5223
SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN + + 9 / + MIN ( - 83 ) + 68 / - 88 * + 6 + + - 81 THEN NULL ELSE + 28 END
----
-28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5224
SELECT + - 91 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT + - 91 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT ALL + CASE - 33 WHEN 90 * COUNT( * ) + 49 THEN + - 6 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL + CASE - 33 WHEN 90 * COUNT ( * ) + 49 THEN + - 6 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5226
SELECT ALL + + 82 - + CASE + COALESCE ( - 19, 42, - 3 * 77 ) WHEN + MIN( + - CAST( - - 90 AS SIGNED ) ) + + COALESCE ( + 1, - CAST( - + 65 AS SIGNED ), - + NULLIF ( + MIN( + 43 ), - 48 ) ) THEN - 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL + + 82 - + CASE + COALESCE ( - 19, 42, - 3 * 77 ) WHEN + MIN ( + - CAST ( - - 90 AS INTEGER ) ) + + COALESCE ( + 1, - CAST ( - + 65 AS INTEGER ), - + NULLIF ( + MIN ( + 43 ), - 48 ) ) THEN - 85 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5227
SELECT DISTINCT - 53 / - CAST( NULL AS SIGNED ) * + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT - 53 / - CAST ( NULL AS INTEGER ) * + - 13
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5228
SELECT ALL + COUNT( * ), 63 col0
----
1
63

skipif mysql # not compatible
query II rowsort label-5228
SELECT ALL + COUNT ( * ), 63 col0
----
1
63

query I rowsort
SELECT ALL 9 - - - 78 + - + ( + 32 ) AS col1
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5230
SELECT - ( SUM( ALL - 33 ) ) DIV - 86 + 85 * - 82 + + + MIN( DISTINCT + 7 ) + + 31 - - - ( 66 )
----
-6998

skipif mysql # not compatible
query I rowsort label-5230
SELECT - ( SUM ( ALL - 33 ) ) / - 86 + 85 * - 82 + + + MIN ( DISTINCT + 7 ) + + 31 - - - ( 66 )
----
-6998

onlyif mysql # DIV for integer division: 
query I rowsort label-5231
SELECT ALL + - 69 DIV + 18
----
-3

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL + - 69 / + 18
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT ALL 37 * - + COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL 37 * - + COUNT ( * ) AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-5233
SELECT DISTINCT + 30 DIV - 55 * 76
----
0

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT + 30 / - 55 * 76
----
0

query I rowsort
SELECT ( 83 )
----
83

query I rowsort
SELECT ( + - 19 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-5236
SELECT ( 54 ), COUNT( * ) * - 78 AS col0
----
54
-78

skipif mysql # not compatible
query II rowsort label-5236
SELECT ( 54 ), COUNT ( * ) * - 78 AS col0
----
54
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-5237
SELECT ALL 1 * - 22 AS col2, NULLIF ( + ( + 1 ), + 47 * - + COALESCE ( + + 43, - + COUNT( * ) / - 32 + - AVG ( + 12 ), + 54, + 15 ) * - 95 * + - MAX( 99 ) )
----
-22
1

skipif mysql # not compatible
query II rowsort label-5237
SELECT ALL 1 * - 22 AS col2, NULLIF ( + ( + 1 ), + 47 * - + COALESCE ( + + 43, - + COUNT ( * ) / - 32 + - AVG ( + 12 ), + 54, + 15 ) * - 95 * + - MAX ( 99 ) )
----
-22
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5238
SELECT NULLIF ( CAST( 4 AS SIGNED ), + - CASE - 30 WHEN - CASE - ( 22 ) WHEN 13 + 4 THEN - + COUNT( * ) + - 50 END THEN 25 END / 99 / - 48 + - 35 )
----
4

skipif mysql # not compatible
query I rowsort label-5238
SELECT NULLIF ( CAST ( 4 AS INTEGER ), + - CASE - 30 WHEN - CASE - ( 22 ) WHEN 13 + 4 THEN - + COUNT ( * ) + - 50 END THEN 25 END / 99 / - 48 + - 35 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT + 13 * + - ( NULLIF ( + 96, - 0 + - ( + COUNT( * ) ) + - 43 * - 44 * + ( + + 22 ) + COUNT( * ) + - 66 / COALESCE ( 44, SUM( - 0 ) ) + - 84 - + - 32 ) ) AS col1
----
-1248

skipif mysql # not compatible
query I rowsort label-5239
SELECT + 13 * + - ( NULLIF ( + 96, - 0 + - ( + COUNT ( * ) ) + - 43 * - 44 * + ( + + 22 ) + COUNT ( * ) + - 66 / COALESCE ( 44, SUM ( - 0 ) ) + - 84 - + - 32 ) ) AS col1
----
-1248

query I rowsort
SELECT - 80 * 9 + + 98 AS col1
----
-622

query I rowsort
SELECT DISTINCT - 67 * 62
----
-4154

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT ALL - COUNT( DISTINCT + - 64 ) * - 97
----
97

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL - COUNT ( DISTINCT + - 64 ) * - 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT ALL + MIN( ALL 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL + MIN ( ALL 94 ) AS col0
----
94

query I rowsort
SELECT + NULLIF ( 54, 40 ) AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5245
SELECT - 41 DIV - - CAST( 78 AS SIGNED ) * + 53 + + 44
----
44

skipif mysql # not compatible
query I rowsort label-5245
SELECT - 41 / - - CAST ( 78 AS INTEGER ) * + 53 + + 44
----
44

query I rowsort
SELECT 49 * - 37 * - - 84 * - + 77 + - + 2 AS col0
----
11726482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT ALL + 19 * CAST( NULL AS SIGNED ) * - 89 * - 7 + + - CAST( NULL AS SIGNED ) * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL + 19 * CAST ( NULL AS INTEGER ) * - 89 * - 7 + + - CAST ( NULL AS INTEGER ) * - 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5248
SELECT CASE + - 99 WHEN - - 4 * - + 80 * + 88 THEN SUM( - 69 ) * - - CAST( - 95 AS SIGNED ) * + COUNT( ALL 62 ) + 94 * - 96 WHEN - 71 * COUNT( * ) THEN NULL WHEN - CAST( - 96 AS SIGNED ) THEN + + NULLIF ( + 92, 1 ) + 50 * + ( + 53 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5248
SELECT CASE + - 99 WHEN - - 4 * - + 80 * + 88 THEN SUM ( - 69 ) * - - CAST ( - 95 AS INTEGER ) * + COUNT ( ALL 62 ) + 94 * - 96 WHEN - 71 * COUNT ( * ) THEN NULL WHEN - CAST ( - 96 AS INTEGER ) THEN + + NULLIF ( + 92, 1 ) + 50 * + ( + 53 ) END AS col1
----
NULL

query I rowsort
SELECT + ( - - 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT CASE - + 82 WHEN COUNT( * ) THEN - 79 - + 39 WHEN - + 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT CASE - + 82 WHEN COUNT ( * ) THEN - 79 - + 39 WHEN - + 36 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5251
SELECT COALESCE ( + CAST( + 97 AS SIGNED ), 53 ), 15 - + 72 AS col0
----
97
-57

skipif mysql # not compatible
query II rowsort label-5251
SELECT COALESCE ( + CAST ( + 97 AS INTEGER ), 53 ), 15 - + 72 AS col0
----
97
-57

query I rowsort
SELECT + 11 * + 52
----
572

onlyif mysql # DIV for integer division: 
query I rowsort label-5253
SELECT + 10 * ( - 24 ) DIV 80 + - 91 DIV - + 38 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5253
SELECT + 10 * ( - 24 ) / 80 + - 91 / - + 38 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5254
SELECT DISTINCT MIN( + + CAST( + 62 AS SIGNED ) ) * 12 DIV 83 + - CASE 18 WHEN - 26 + + + 80 THEN - 31 + - 12 WHEN - 69 THEN - + 82 * - COUNT( * ) + - NULLIF ( 29, 40 ) ELSE + COALESCE ( 47, 68 * + 10 ) + + ( SUM( + 61 ) ) END AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT MIN ( + + CAST ( + 62 AS INTEGER ) ) * 12 / 83 + - CASE 18 WHEN - 26 + + + 80 THEN - 31 + - 12 WHEN - 69 THEN - + 82 * - COUNT ( * ) + - NULLIF ( 29, 40 ) ELSE + COALESCE ( 47, 68 * + 10 ) + + ( SUM ( + 61 ) ) END AS col0
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5255
SELECT DISTINCT + + MAX( DISTINCT 44 ) * CASE + + 29 WHEN + + 85 THEN NULL ELSE - - 21 END + - - 67 - - + 3 + + 87 DIV + 22 * + COUNT( * ) col0
----
997

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT + + MAX ( DISTINCT 44 ) * CASE + + 29 WHEN + + 85 THEN NULL ELSE - - 21 END + - - 67 - - + 3 + + 87 / + 22 * + COUNT ( * ) col0
----
997

onlyif mysql # DIV for integer division: 
query I rowsort label-5256
SELECT ALL 13 * 29 DIV - 84 + - 68 DIV + 69 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL 13 * 29 / - 84 + - 68 / + 69 AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5257
SELECT DISTINCT + 31 * - + 46 * - 20 DIV - COUNT( * ) AS col1, ( 67 ) AS col2
----
-28520
67

skipif mysql # not compatible
query II rowsort label-5257
SELECT DISTINCT + 31 * - + 46 * - 20 / - COUNT ( * ) AS col1, ( 67 ) AS col2
----
-28520
67

query I rowsort
SELECT + + 76 - - + 28 AS col1
----
104

query I rowsort
SELECT ALL ( 29 ) AS col1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5260
SELECT + CAST( - 25 AS SIGNED ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-5260
SELECT + CAST ( - 25 AS INTEGER ) AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5261
SELECT DISTINCT MIN( 60 ), + ( + ( + CAST( + 14 AS SIGNED ) ) ) col0
----
60
14

skipif mysql # not compatible
query II rowsort label-5261
SELECT DISTINCT MIN ( 60 ), + ( + ( + CAST ( + 14 AS INTEGER ) ) ) col0
----
60
14

query II rowsort
SELECT DISTINCT - - 9 * 64 AS col0, - 17
----
576
-17

query I rowsort
SELECT DISTINCT - 13 - - 31
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT DISTINCT - COUNT( * ) * + + 55 + 44 col1
----
-11

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT - COUNT ( * ) * + + 55 + 44 col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT ALL - - MIN( DISTINCT + 25 ) * 91 - + ( ( 36 ) )
----
2239

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL - - MIN ( DISTINCT + 25 ) * 91 - + ( ( 36 ) )
----
2239

query I rowsort
SELECT + + 74 * + 25
----
1850

query I rowsort
SELECT + 14 + + 20 AS col0
----
34

query I rowsort
SELECT ALL ( - ( 87 ) )
----
-87

query I rowsort
SELECT - 96 * + - 24 AS col2
----
2304

query I rowsort
SELECT ALL ( - 73 ) AS col1
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5271
SELECT - 13 DIV - + 14 col1
----
0

skipif mysql # not compatible
query I rowsort label-5271
SELECT - 13 / - + 14 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5272
SELECT ALL CAST( + AVG ( ALL - CAST( - - 65 AS DECIMAL ) ) AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL CAST ( + AVG ( ALL - CAST ( - - 65 AS REAL ) ) AS INTEGER )
----
-65

query I rowsort
SELECT - 25 * - 70 AS col0
----
1750

query I rowsort
SELECT - 83 + 69
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT + 89 - + COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5275
SELECT + 89 - + COUNT ( * ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT - COUNT( * ) * + COUNT( DISTINCT 87 ) + - 82 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-5276
SELECT - COUNT ( * ) * + COUNT ( DISTINCT 87 ) + - 82 AS col0
----
-83

query II rowsort
SELECT DISTINCT + 56, - 38 AS col1
----
56
-38

query I rowsort
SELECT DISTINCT 6 * - 15 col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5279
SELECT DISTINCT - 8 DIV 85 + - + 63
----
-63

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT - 8 / 85 + - + 63
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT - COUNT( * ) + 15 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-5280
SELECT - COUNT ( * ) + 15 AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5281
SELECT DISTINCT + 58 DIV + - 77 + - 99 AS col0, SUM( DISTINCT - 31 ) AS col0
----
-99
-31

skipif mysql # not compatible
query II rowsort label-5281
SELECT DISTINCT + 58 / + - 77 + - 99 AS col0, SUM ( DISTINCT - 31 ) AS col0
----
-99
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5282
SELECT CAST( ( - + 16 ) AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-5282
SELECT CAST ( ( - + 16 ) AS INTEGER )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT - MAX( DISTINCT - 66 ) + 23 + - 80
----
9

skipif mysql # not compatible
query I rowsort label-5283
SELECT - MAX ( DISTINCT - 66 ) + 23 + - 80
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5284
SELECT + ( - + ( CAST( + 53 AS SIGNED ) ) )
----
-53

skipif mysql # not compatible
query I rowsort label-5284
SELECT + ( - + ( CAST ( + 53 AS INTEGER ) ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT + MAX( ( + + 78 ) ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5285
SELECT + MAX ( ( + + 78 ) ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5286
SELECT + CAST( + + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5286
SELECT + CAST ( + + COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5287
SELECT DISTINCT 87 DIV ( 64 ) + - 22
----
-21

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT 87 / ( 64 ) + - 22
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5288
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) DIV 22 + - 93 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) / 22 + - 93 AS col1
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5289
SELECT ALL - CASE WHEN - 74 IS NOT NULL THEN + 4 WHEN NOT + 77 * + 1 * 45 IS NOT NULL THEN + - 27 * - COUNT( * ) END + + COUNT( * ) DIV - - 72 col2
----
-4

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL - CASE WHEN - 74 IS NOT NULL THEN + 4 WHEN NOT + 77 * + 1 * 45 IS NOT NULL THEN + - 27 * - COUNT ( * ) END + + COUNT ( * ) / - - 72 col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT + 17 - - 64 * 20 * - - MAX( 35 ) * + MAX( ALL + 48 )
----
2150417

skipif mysql # not compatible
query I rowsort label-5290
SELECT + 17 - - 64 * 20 * - - MAX ( 35 ) * + MAX ( ALL + 48 )
----
2150417

query II rowsort
SELECT + 37 AS col0, - 27 + 35 + + + 2
----
37
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5292
SELECT ALL - + CASE - COUNT( * ) WHEN - - COALESCE ( + ( - 90 ), - 52 ) + COUNT( DISTINCT + + 90 ) THEN NULL WHEN + 50 / 53 * + 25 THEN - - 61 + - COUNT( * ) * - - CASE - + 58 WHEN 78 * - 10 + 37 THEN NULL WHEN + + 52 + 6 * + 59 THEN + COALESCE ( CAST( + 80 AS SIGNED ), + MIN( 51 ) * 0, ( + ( 41 ) ) ) * COALESCE ( + 95, - 70 - + 57, + 50 ) WHEN + 70 THEN NULL END * 43 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL - + CASE - COUNT ( * ) WHEN - - COALESCE ( + ( - 90 ), - 52 ) + COUNT ( DISTINCT + + 90 ) THEN NULL WHEN + 50 / 53 * + 25 THEN - - 61 + - COUNT ( * ) * - - CASE - + 58 WHEN 78 * - 10 + 37 THEN NULL WHEN + + 52 + 6 * + 59 THEN + COALESCE ( CAST ( + 80 AS INTEGER ), + MIN ( 51 ) * 0, ( + ( 41 ) ) ) * COALESCE ( + 95, - 70 - + 57, + 50 ) WHEN + 70 THEN NULL END * 43 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT ( + 27 ) * + + ( - CAST( NULL AS SIGNED ) ) / + 85 + - MAX( 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT ( + 27 ) * + + ( - CAST ( NULL AS INTEGER ) ) / + 85 + - MAX ( 17 )
----
NULL

query I rowsort
SELECT - NULLIF ( - 38, + - 56 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL - 10 - - COUNT( * ) * - 48 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL - 10 - - COUNT ( * ) * - 48 AS col1
----
-58

query I rowsort
SELECT - 84 + - + 47 AS col0
----
-131

query I rowsort
SELECT COALESCE ( - 0, + - 65 ) * + - 71 * - 8 * + 21
----
0

query I rowsort
SELECT 62 + + 49
----
111

query I rowsort
SELECT DISTINCT 37 * 67 * + 69 + + 63 AS col1
----
171114

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT 55 * + COALESCE ( + + COUNT( * ), + - 97 + 64 ) + 75 + 62 + + + 27 + + + 92 * - 64 AS col1
----
-5669

skipif mysql # not compatible
query I rowsort label-5300
SELECT 55 * + COALESCE ( + + COUNT ( * ), + - 97 + 64 ) + 75 + 62 + + + 27 + + + 92 * - 64 AS col1
----
-5669

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5301
SELECT 51 - + + 37 * 79 + + CAST( + 47 AS SIGNED ) AS col2, - 81
----
-2825
-81

skipif mysql # not compatible
query II rowsort label-5301
SELECT 51 - + + 37 * 79 + + CAST ( + 47 AS INTEGER ) AS col2, - 81
----
-2825
-81

query I rowsort
SELECT ALL 55 * - - 81 AS col0
----
4455

query II rowsort
SELECT ( - + 27 ) + + - 61 col0, 39
----
-88
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5304
SELECT ALL + CAST( + 35 AS SIGNED ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL + CAST ( + 35 AS INTEGER ) AS col1
----
35

query I rowsort
SELECT ALL - 25 * - 36 * - ( - + 93 )
----
83700

query I rowsort
SELECT - 83 * 75 AS col0
----
-6225

query II rowsort
SELECT - 6 AS col0, + 57 AS col0
----
-6
57

query II rowsort
SELECT ALL 8 AS col1, 59 AS col2
----
8
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5309
SELECT ALL 59 AS col0, 29 * + CAST( NULL AS SIGNED ) * - COUNT( * )
----
59
NULL

skipif mysql # not compatible
query II rowsort label-5309
SELECT ALL 59 AS col0, 29 * + CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
59
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5310
SELECT - 60, + COUNT( * ) AS col1
----
-60
1

skipif mysql # not compatible
query II rowsort label-5310
SELECT - 60, + COUNT ( * ) AS col1
----
-60
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ( 31 ) * - MIN( + - 24 ) + + + 98 AS col2
----
842

skipif mysql # not compatible
query I rowsort label-5311
SELECT ( 31 ) * - MIN ( + - 24 ) + + + 98 AS col2
----
842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5312
SELECT DISTINCT + 12 + + CAST( NULL AS SIGNED ) * - ( + CASE + 40 WHEN - 24 THEN 90 END ) * + AVG ( - - ( - 84 ) ) + MIN( ALL + 36 ) AS col1, + 67 AS col2
----
NULL
67

skipif mysql # not compatible
query II rowsort label-5312
SELECT DISTINCT + 12 + + CAST ( NULL AS INTEGER ) * - ( + CASE + 40 WHEN - 24 THEN 90 END ) * + AVG ( - - ( - 84 ) ) + MIN ( ALL + 36 ) AS col1, + 67 AS col2
----
NULL
67

query II rowsort
SELECT ALL 17 AS col1, ( - 84 ) AS col2
----
17
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL + CASE COUNT( * ) WHEN - 55 THEN + ( + 70 ) ELSE NULL END + - 40 * + ( - ( 64 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL + CASE COUNT ( * ) WHEN - 55 THEN + ( + 70 ) ELSE NULL END + - 40 * + ( - ( 64 ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5315
SELECT 9 AS col1, - 63 AS col2, + COUNT( * ) - - NULLIF ( + MAX( + 6 ), - COUNT( * ) )
----
9
-63
7

skipif mysql # not compatible
query III rowsort label-5315
SELECT 9 AS col1, - 63 AS col2, + COUNT ( * ) - - NULLIF ( + MAX ( + 6 ), - COUNT ( * ) )
----
9
-63
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5316
SELECT ALL 73 AS col2, - ( - COUNT( * ) )
----
73
1

skipif mysql # not compatible
query II rowsort label-5316
SELECT ALL 73 AS col2, - ( - COUNT ( * ) )
----
73
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5317
SELECT DISTINCT ( + 61 ) + + CAST( + COUNT( * ) AS SIGNED ) col2
----
62

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT ( + 61 ) + + CAST ( + COUNT ( * ) AS INTEGER ) col2
----
62

query II rowsort
SELECT + 30, + ( - + 73 ) col2
----
30
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5319
SELECT DISTINCT - NULLIF ( 2, - CAST( - 89 AS SIGNED ) ) + - + 68 * + COUNT( * ) - + 73
----
-143

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT - NULLIF ( 2, - CAST ( - 89 AS INTEGER ) ) + - + 68 * + COUNT ( * ) - + 73
----
-143

query I rowsort
SELECT ALL + 95 + - 43 * + + 75
----
-3130

onlyif mysql # aggregate syntax: 
query II rowsort label-5321
SELECT DISTINCT - 91 AS col1, - ( - MIN( + 80 ) )
----
-91
80

skipif mysql # not compatible
query II rowsort label-5321
SELECT DISTINCT - 91 AS col1, - ( - MIN ( + 80 ) )
----
-91
80

query I rowsort
SELECT 86 * - + 96 + + 54 - ( + - 21 )
----
-8181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5323
SELECT ALL CAST( + ( - 34 ) AS SIGNED ) + - 5 + 73 * - COUNT( * ) - + - 11
----
-101

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL CAST ( + ( - 34 ) AS INTEGER ) + - 5 + 73 * - COUNT ( * ) - + - 11
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT DISTINCT + 50 + - COUNT( * ) AS col1, ( + + 71 ) * + + MAX( DISTINCT - - 15 ) + + - ( - COUNT( * ) ) AS col1
----
49
1066

skipif mysql # not compatible
query II rowsort label-5324
SELECT DISTINCT + 50 + - COUNT ( * ) AS col1, ( + + 71 ) * + + MAX ( DISTINCT - - 15 ) + + - ( - COUNT ( * ) ) AS col1
----
49
1066

onlyif mysql # aggregate syntax: 
query II rowsort label-5325
SELECT ALL - COALESCE ( - 45, + 43 + - 53 + + 44 * 13 * + COUNT( - 92 ) * - ( - 28 ) + 14, - + 78 ), NULLIF ( + 20, - 19 ) col1
----
45
20

skipif mysql # not compatible
query II rowsort label-5325
SELECT ALL - COALESCE ( - 45, + 43 + - 53 + + 44 * 13 * + COUNT ( - 92 ) * - ( - 28 ) + 14, - + 78 ), NULLIF ( + 20, - 19 ) col1
----
45
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5326
SELECT 25 AS col1, CAST( - + 27 AS SIGNED ) * + + 2 + + + 78 + - - 34 + - 12
----
25
46

skipif mysql # not compatible
query II rowsort label-5326
SELECT 25 AS col1, CAST ( - + 27 AS INTEGER ) * + + 2 + + + 78 + - - 34 + - 12
----
25
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT ALL - SUM( 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL - SUM ( 82 ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL - 32 + - 60 - 57 * + COUNT( * ) + - MIN( ALL - + 59 ) + - - 7
----
-83

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL - 32 + - 60 - 57 * + COUNT ( * ) + - MIN ( ALL - + 59 ) + - - 7
----
-83

query I rowsort
SELECT + 6 * + 46
----
276

onlyif mysql # DIV for integer division: 
query I rowsort label-5330
SELECT ALL - COALESCE ( 27, 63 ) DIV - 55 * 96 col2
----
0

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL - COALESCE ( 27, 63 ) / - 55 * 96 col2
----
0

query I rowsort
SELECT - 15 + - 0 AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5332
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 93 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT ALL - - MAX( - + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL - - MAX ( - + 20 )
----
-20

query I rowsort
SELECT - 73 * + - 53 AS col1
----
3869

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT - MAX( DISTINCT - + 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-5335
SELECT - MAX ( DISTINCT - + 87 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT + 38 * - - COUNT( * ) * - 78 * 3 + COUNT( * ) AS col2
----
-8891

skipif mysql # not compatible
query I rowsort label-5336
SELECT + 38 * - - COUNT ( * ) * - 78 * 3 + COUNT ( * ) AS col2
----
-8891

query I rowsort
SELECT DISTINCT - NULLIF ( + 96, - 20 )
----
-96

query I rowsort
SELECT ALL + - 67 * - ( + - 21 )
----
-1407

query I rowsort
SELECT + 65 + 51 * + 14
----
779

query II rowsort
SELECT DISTINCT - 97 AS col2, 7 AS col0
----
-97
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5341
SELECT ALL + 29 * + + 68 AS col2, - 10 - + SUM( DISTINCT - 80 ) AS col1
----
1972
70

skipif mysql # not compatible
query II rowsort label-5341
SELECT ALL + 29 * + + 68 AS col2, - 10 - + SUM ( DISTINCT - 80 ) AS col1
----
1972
70

onlyif mysql # DIV for integer division: 
query II rowsort label-5342
SELECT + 7, 98 DIV - 44 col1
----
7
-2

skipif mysql # not compatible
query II rowsort label-5342
SELECT + 7, 98 / - 44 col1
----
7
-2

query I rowsort
SELECT - 89 * + 51
----
-4539

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT - SUM( ALL + 86 ) * 79
----
-6794

skipif mysql # not compatible
query I rowsort label-5344
SELECT - SUM ( ALL + 86 ) * 79
----
-6794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5345
SELECT + 67 / + 59 + - + COUNT( ALL - - 80 ) + + 82 * - + NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT + 67 / + 59 + - + COUNT ( ALL - - 80 ) + + 82 * - + NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) )
----
NULL

query I rowsort
SELECT 25 - - + ( + 30 ) AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5347
SELECT - COALESCE ( + - 45, + 86, 68 DIV + COUNT( * ) + - 26 ), 1 AS col2
----
45
1

skipif mysql # not compatible
query II rowsort label-5347
SELECT - COALESCE ( + - 45, + 86, 68 / + COUNT ( * ) + - 26 ), 1 AS col2
----
45
1

query I rowsort
SELECT ALL 55 + + 54 AS col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT DISTINCT COUNT( * ) + - ( - - 65 ) + + 11 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT COUNT ( * ) + - ( - - 65 ) + + 11 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT - MAX( DISTINCT - + 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-5350
SELECT - MAX ( DISTINCT - + 77 ) AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5351
SELECT ALL 42 + 49 DIV + + 2 + - + COUNT( * ) - + + COUNT( * ) + 46 + - 72 col2, - COUNT( - 17 )
----
38
-1

skipif mysql # not compatible
query II rowsort label-5351
SELECT ALL 42 + 49 / + + 2 + - + COUNT ( * ) - + + COUNT ( * ) + 46 + - 72 col2, - COUNT ( - 17 )
----
38
-1

query I rowsort
SELECT 34 - + 71 + + 19
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT 17 + + + COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5353
SELECT 17 + + + COUNT ( * ) AS col0
----
18

query I rowsort
SELECT 62 * - 52 col2
----
-3224

query I rowsort
SELECT ( 98 ) + + - 41
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT - MAX( + + 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-5356
SELECT - MAX ( + + 84 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5357
SELECT COUNT( * ) + 88, CAST( NULL AS DECIMAL ) + + 54 AS col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-5357
SELECT COUNT ( * ) + 88, CAST ( NULL AS REAL ) + + 54 AS col1
----
89
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5358
SELECT ALL SUM( ALL 45 ) + - - 94 DIV - ( - 17 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL SUM ( ALL 45 ) + - - 94 / - ( - 17 ) AS col2
----
50

query I rowsort
SELECT + CASE - 94 WHEN + 49 / + 99 - + 25 THEN + 5 + - + AVG ( DISTINCT - - 75 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5360
SELECT DISTINCT + COUNT( * ) * + 37, 73 AS col1
----
37
73

skipif mysql # not compatible
query II rowsort label-5360
SELECT DISTINCT + COUNT ( * ) * + 37, 73 AS col1
----
37
73

query I rowsort
SELECT DISTINCT 5 * + + 98
----
490

query I rowsort
SELECT DISTINCT 47 * + + 50 * - 37 - + 93 AS col1
----
-87043

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5363
SELECT ALL 74 * - + 88 * - 75 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL 74 * - + 88 * - 75 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5364
SELECT + 43 * - ( - 14 ) + COUNT( * ) / + - MIN( ALL + - CAST( NULL AS SIGNED ) ) + + NULLIF ( + 91, - ( - + 52 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5364
SELECT + 43 * - ( - 14 ) + COUNT ( * ) / + - MIN ( ALL + - CAST ( NULL AS INTEGER ) ) + + NULLIF ( + 91, - ( - + 52 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5365
SELECT DISTINCT - - CASE - COUNT( - 0 ) WHEN - + 68 THEN NULL WHEN + - 43 * - + 73 - - 61 THEN + 69 DIV ( + - 49 ) ELSE - NULLIF ( + 26, + 89 + - 39 ) END * - - 47 - + 33 + - 12, CAST( NULLIF ( - 67, + + 59 * COUNT( * ) - 25 ) AS SIGNED ) AS col2
----
-1267
-67

skipif mysql # not compatible
query II rowsort label-5365
SELECT DISTINCT - - CASE - COUNT ( - 0 ) WHEN - + 68 THEN NULL WHEN + - 43 * - + 73 - - 61 THEN + 69 / ( + - 49 ) ELSE - NULLIF ( + 26, + 89 + - 39 ) END * - - 47 - + 33 + - 12, CAST ( NULLIF ( - 67, + + 59 * COUNT ( * ) - 25 ) AS INTEGER ) AS col2
----
-1267
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5366
SELECT + 70 DIV - 98 * + 17 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5366
SELECT + 70 / - 98 * + 17 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5367
SELECT - - 24 * + COALESCE ( - + COUNT( * ), + - 82 + - 30 + + - COUNT( * ) DIV AVG ( DISTINCT 99 ) * + CASE + + NULLIF ( + + COALESCE ( + CAST( + COALESCE ( 65, 31 * ( + + COUNT( * ) ), 93 ) AS SIGNED ), 9, + + 64 + - 83 ), - 66 * 15 + 43 ) WHEN 22 DIV + 43 THEN + CAST( - 46 AS SIGNED ) WHEN MAX( 54 ) DIV - 11 + COUNT( * ) THEN NULL WHEN 96 THEN - ( COUNT( * ) ) END * - 29, - 58 + - 60 ) + - 59 * + 73
----
-4331

skipif mysql # not compatible
query I rowsort label-5367
SELECT - - 24 * + COALESCE ( - + COUNT ( * ), + - 82 + - 30 + + - COUNT ( * ) / AVG ( DISTINCT 99 ) * + CASE + + NULLIF ( + + COALESCE ( + CAST ( + COALESCE ( 65, 31 * ( + + COUNT ( * ) ), 93 ) AS INTEGER ), 9, + + 64 + - 83 ), - 66 * 15 + 43 ) WHEN 22 / + 43 THEN + CAST ( - 46 AS INTEGER ) WHEN MAX ( 54 ) / - 11 + COUNT ( * ) THEN NULL WHEN 96 THEN - ( COUNT ( * ) ) END * - 29, - 58 + - 60 ) + - 59 * + 73
----
-4331

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5368
SELECT + + COALESCE ( - - 32, - 54, - NULLIF ( + CAST( CASE - + ( 58 ) WHEN CAST( + - ( - 21 ) AS SIGNED ) * - 6 THEN - 37 + + 28 + - CAST( NULL AS SIGNED ) END AS SIGNED ), 23 ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-5368
SELECT + + COALESCE ( - - 32, - 54, - NULLIF ( + CAST ( CASE - + ( 58 ) WHEN CAST ( + - ( - 21 ) AS INTEGER ) * - 6 THEN - 37 + + 28 + - CAST ( NULL AS INTEGER ) END AS INTEGER ), 23 ) ) AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5369
SELECT ALL + COALESCE ( 52, + 48 * + COALESCE ( + - 62, 88, - 34 + 81 ) DIV - SUM( ALL + 13 ) - + 63 * CASE + 27 WHEN + 48 THEN CASE WHEN NOT ( ( NOT ( NULL <> - MIN( ALL 36 ) ) ) ) THEN + 14 ELSE 10 * + 24 + 96 END WHEN + COALESCE ( + COUNT( * ), - COUNT( * ) * + 79 + + 12 ) THEN - 15 * COUNT( * ) + COUNT( * ) * + ( + CASE 5 WHEN 4 * 66 THEN NULL ELSE - COUNT( 36 ) END * 4 ) ELSE NULL END - - 21 * - 25, 8 * ( - COUNT( * ) * + 20 ) )
----
52

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL + COALESCE ( 52, + 48 * + COALESCE ( + - 62, 88, - 34 + 81 ) / - SUM ( ALL + 13 ) - + 63 * CASE + 27 WHEN + 48 THEN CASE WHEN NOT ( ( NOT ( NULL <> - MIN ( ALL 36 ) ) ) ) THEN + 14 ELSE 10 * + 24 + 96 END WHEN + COALESCE ( + COUNT ( * ), - COUNT ( * ) * + 79 + + 12 ) THEN - 15 * COUNT ( * ) + COUNT ( * ) * + ( + CASE 5 WHEN 4 * 66 THEN NULL ELSE - COUNT ( 36 ) END * 4 ) ELSE NULL END - - 21 * - 25, 8 * ( - COUNT ( * ) * + 20 ) )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5370
SELECT ALL - MIN( 22 ) DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL - MIN ( 22 ) / - 39
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT - + 64 DIV 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5371
SELECT - + 64 / 80 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5372
SELECT DISTINCT + + CAST( + 19 AS SIGNED ) AS col0, + 39 AS col2
----
19
39

skipif mysql # not compatible
query II rowsort label-5372
SELECT DISTINCT + + CAST ( + 19 AS INTEGER ) AS col0, + 39 AS col2
----
19
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT - - 89 * + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-5373
SELECT - - 89 * + + COUNT ( * )
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5374
SELECT DISTINCT - COUNT( * ) DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT - COUNT ( * ) / + 76
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5375
SELECT ALL - + 60 / - + NULLIF ( + + CAST( NULL AS DECIMAL ), - + 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL - + 60 / - + NULLIF ( + + CAST ( NULL AS REAL ), - + 46 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5376
SELECT - COALESCE ( 42, - - 33 DIV + 93 + + ( + + 69 ) ) * - + 95 * MAX( ALL + - 51 )
----
-203490

skipif mysql # not compatible
query I rowsort label-5376
SELECT - COALESCE ( 42, - - 33 / + 93 + + ( + + 69 ) ) * - + 95 * MAX ( ALL + - 51 )
----
-203490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5377
SELECT DISTINCT - 76 * 79 + 82 * - CAST( - 82 AS SIGNED )
----
720

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT - 76 * 79 + 82 * - CAST ( - 82 AS INTEGER )
----
720

query II rowsort
SELECT ALL + + 47 + 88, 36 * + 62 * - 19 * 97 col1
----
135
-4113576

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT ALL - COUNT( * ) + + 95
----
94

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL - COUNT ( * ) + + 95
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5380
SELECT DISTINCT + - 18 + + - ( - - 66 ), - 37 * + + 12 * - 82 * COALESCE ( + 56, - - CASE 3 WHEN 70 + - ( CAST( NULL AS SIGNED ) ) THEN + - 4 WHEN - COUNT( - + 96 ) THEN - - 81 ELSE NULL END ) AS col0
----
-84
2038848

skipif mysql # not compatible
query II rowsort label-5380
SELECT DISTINCT + - 18 + + - ( - - 66 ), - 37 * + + 12 * - 82 * COALESCE ( + 56, - - CASE 3 WHEN 70 + - ( CAST ( NULL AS INTEGER ) ) THEN + - 4 WHEN - COUNT ( - + 96 ) THEN - - 81 ELSE NULL END ) AS col0
----
-84
2038848

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT - MAX( + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-5381
SELECT - MAX ( + 66 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5382
SELECT ALL + 67 + - 85 + SUM( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL + 67 + - 85 + SUM ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 13 + - - 17
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT ALL 25 + + + NULLIF ( 26, - - 22 - - COALESCE ( COALESCE ( - ( 92 ), - 6, CAST( NULL AS SIGNED ) ), - 16 * - 42 * - - 95 - - 95 / + 11 ) )
----
51

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL 25 + + + NULLIF ( 26, - - 22 - - COALESCE ( COALESCE ( - ( 92 ), - 6, CAST ( NULL AS INTEGER ) ), - 16 * - 42 * - - 95 - - 95 / + 11 ) )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5385
SELECT + 30 + - + 4 + COUNT( * ) * + COUNT( * ) + + 51 DIV + - 29 AS col1, 26 + 30
----
26
56

skipif mysql # not compatible
query II rowsort label-5385
SELECT + 30 + - + 4 + COUNT ( * ) * + COUNT ( * ) + + 51 / + - 29 AS col1, 26 + 30
----
26
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT ALL - MIN( + ( + 11 ) ) + COUNT( DISTINCT 38 ) + 44 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL - MIN ( + ( + 11 ) ) + COUNT ( DISTINCT 38 ) + 44 AS col0
----
34

query I rowsort
SELECT DISTINCT ( + 46 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT + COUNT( * ) + COUNT( ALL - ( + ( + - 0 ) ) ) + - + 77
----
-75

skipif mysql # not compatible
query I rowsort label-5388
SELECT + COUNT ( * ) + COUNT ( ALL - ( + ( + - 0 ) ) ) + - + 77
----
-75

query II rowsort
SELECT 34 AS col2, - 48
----
34
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-5390
SELECT + 83 + - + MAX( - 69 ) + - + 56 * + 55 * + + 86, MIN( DISTINCT 36 ) AS col2
----
-264728
36

skipif mysql # not compatible
query II rowsort label-5390
SELECT + 83 + - + MAX ( - 69 ) + - + 56 * + 55 * + + 86, MIN ( DISTINCT 36 ) AS col2
----
-264728
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5391
SELECT ALL 89 + - CAST( + 74 AS SIGNED ) + + - 76 * 8 * - 66
----
40143

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL 89 + - CAST ( + 74 AS INTEGER ) + + - 76 * 8 * - 66
----
40143

query I rowsort
SELECT - 95 * 53 AS col2
----
-5035

query I rowsort
SELECT + 0 * + + 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT - MIN( DISTINCT - + ( - + ( + - 68 ) ) )
----
68

skipif mysql # not compatible
query I rowsort label-5394
SELECT - MIN ( DISTINCT - + ( - + ( + - 68 ) ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT - MIN( DISTINCT - 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-5395
SELECT - MIN ( DISTINCT - 56 ) AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5396
SELECT ALL 59 - 51 + 14 + 72 + - - ( 47 ) + - 3 DIV + CAST( + 67 AS SIGNED ) + - 2 DIV + CAST( + + 81 AS SIGNED ) * + 50 AS col2, CAST( NULL AS SIGNED ) + + 78 - - - 45 AS col2
----
141
NULL

skipif mysql # not compatible
query II rowsort label-5396
SELECT ALL 59 - 51 + 14 + 72 + - - ( 47 ) + - 3 / + CAST ( + 67 AS INTEGER ) + - 2 / + CAST ( + + 81 AS INTEGER ) * + 50 AS col2, CAST ( NULL AS INTEGER ) + + 78 - - - 45 AS col2
----
141
NULL

query I rowsort
SELECT + 64 * - ( 2 ) * 17
----
-2176

query I rowsort
SELECT ALL 76 * + 8
----
608

query I rowsort
SELECT DISTINCT 88 - 56 * + + 30 + + - 85 - 2 AS col0
----
-1679

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT ALL MAX( DISTINCT - 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL MAX ( DISTINCT - 75 ) AS col2
----
-75

query III rowsort
SELECT + ( + + 62 ) + 92 AS col1, ( + 15 ) + - 90 AS col1, - + 66 AS col0
----
154
-75
-66

query I rowsort
SELECT + 28 * + - 8
----
-224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5403
SELECT + COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5403
SELECT + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5404
SELECT CAST( 33 AS SIGNED ) col2
----
33

skipif mysql # not compatible
query I rowsort label-5404
SELECT CAST ( 33 AS INTEGER ) col2
----
33

query I rowsort
SELECT + 5 * 4
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-5406
SELECT + + COUNT( * ) + - 84 + - 65 * - - ( + SUM( - 23 ) ), 37 * + + 64 * - - 57 AS col2
----
1412
134976

skipif mysql # not compatible
query II rowsort label-5406
SELECT + + COUNT ( * ) + - 84 + - 65 * - - ( + SUM ( - 23 ) ), 37 * + + 64 * - - 57 AS col2
----
1412
134976

query I rowsort
SELECT + + 93 * + 92 - - 13 * 33 AS col2
----
8985

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT COUNT( - 91 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5408
SELECT COUNT ( - 91 ) col0
----
1

query II rowsort
SELECT ALL + - 47 AS col1, 87
----
-47
87

query II rowsort
SELECT + 12, + 54 col0
----
12
54

query I rowsort
SELECT + - 76 + + 46
----
-30

query I rowsort
SELECT ALL - - 0 * + 85 + + 95 AS col1
----
95

query I rowsort
SELECT - + 2 + 91 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT - - 92 * - - 56 - COUNT( * ) + + 17 * - 76 + + + 38 + + 7
----
3904

skipif mysql # not compatible
query I rowsort label-5414
SELECT - - 92 * - - 56 - COUNT ( * ) + + 17 * - 76 + + + 38 + + 7
----
3904

query II rowsort
SELECT - 35 AS col0, + 86 AS col2
----
-35
86

onlyif mysql # aggregate syntax: 
query II rowsort label-5416
SELECT + CASE + - COUNT( * ) WHEN - 37 THEN ( + - MAX( ALL - 55 ) ) END, 26 AS col1
----
NULL
26

skipif mysql # not compatible
query II rowsort label-5416
SELECT + CASE + - COUNT ( * ) WHEN - 37 THEN ( + - MAX ( ALL - 55 ) ) END, 26 AS col1
----
NULL
26

query I rowsort
SELECT ALL - 56 * - 23 + + - 92
----
1196

onlyif mysql # aggregate syntax: 
query II rowsort label-5418
SELECT + - COALESCE ( + - 50, + COALESCE ( + 97, + COUNT( * ) ) - - 86 - COUNT( * ) * - CASE + + 70 WHEN + + ( + - 17 ) THEN + 40 ELSE NULL END, - - 48 ) * - 60, 25 AS col0
----
-3000
25

skipif mysql # not compatible
query II rowsort label-5418
SELECT + - COALESCE ( + - 50, + COALESCE ( + 97, + COUNT ( * ) ) - - 86 - COUNT ( * ) * - CASE + + 70 WHEN + + ( + - 17 ) THEN + 40 ELSE NULL END, - - 48 ) * - 60, 25 AS col0
----
-3000
25

query I rowsort
SELECT 35 * - + 92 * 61 + + 86
----
-196334

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL + CASE + - 8 WHEN + 93 THEN - 3 WHEN - 34 / - 2 - - 20 + COUNT( * ) * - NULLIF ( - 28, 93 ) THEN + 95 * 16 WHEN - 9 * - 10 * - + 72 THEN NULL END * + ( 36 ) * - ( 44 ) + + COUNT( * ) + 19 + + ( - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL + CASE + - 8 WHEN + 93 THEN - 3 WHEN - 34 / - 2 - - 20 + COUNT ( * ) * - NULLIF ( - 28, 93 ) THEN + 95 * 16 WHEN - 9 * - 10 * - + 72 THEN NULL END * + ( 36 ) * - ( 44 ) + + COUNT ( * ) + 19 + + ( - 6 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5421
SELECT DISTINCT + + COUNT( ALL - 75 ) DIV - 17 * 53 * 9
----
0

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT + + COUNT ( ALL - 75 ) / - 17 * 53 * 9
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5422
SELECT DISTINCT + CASE + COUNT( * ) WHEN + 5 THEN NULL WHEN + COUNT( * ) THEN + + CAST( - 36 AS SIGNED ) END DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT + CASE + COUNT ( * ) WHEN + 5 THEN NULL WHEN + COUNT ( * ) THEN + + CAST ( - 36 AS INTEGER ) END / - 79
----
0

query I rowsort
SELECT 63 * - + 51 - + 78 + + + 74 AS col0
----
-3217

query I rowsort
SELECT - 95 - + - 44 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT ALL - 64 * + COUNT( * ) * + 26
----
-1664

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL - 64 * + COUNT ( * ) * + 26
----
-1664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5426
SELECT DISTINCT - CAST( + 76 AS SIGNED ) * + 62 AS col2
----
-4712

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT - CAST ( + 76 AS INTEGER ) * + 62 AS col2
----
-4712

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT 68 - + - MIN( 70 )
----
138

skipif mysql # not compatible
query I rowsort label-5427
SELECT 68 - + - MIN ( 70 )
----
138

query I rowsort
SELECT ALL - 64 * + 83 AS col1
----
-5312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5429
SELECT 42 + - NULLIF ( COALESCE ( - 61, CASE SUM( - + 23 ) WHEN - + 40 DIV 52 + - + CAST( NULL AS SIGNED ) THEN - - 55 * COUNT( 26 ) - + + 67 WHEN + NULLIF ( + 91, - COALESCE ( - 1, - ( 89 ) * - 47, 52 ) ) THEN - 16 + + 3 - COALESCE ( 80, + 26 - 58 ) * 73 END * ( 54 + 75 DIV + 62 ) + 84, - 59 ), + 7 * - 84 + 97 )
----
103

skipif mysql # not compatible
query I rowsort label-5429
SELECT 42 + - NULLIF ( COALESCE ( - 61, CASE SUM ( - + 23 ) WHEN - + 40 / 52 + - + CAST ( NULL AS INTEGER ) THEN - - 55 * COUNT ( 26 ) - + + 67 WHEN + NULLIF ( + 91, - COALESCE ( - 1, - ( 89 ) * - 47, 52 ) ) THEN - 16 + + 3 - COALESCE ( 80, + 26 - 58 ) * 73 END * ( 54 + 75 / + 62 ) + 84, - 59 ), + 7 * - 84 + 97 )
----
103

query II rowsort
SELECT 68 + - 69, + 22 AS col2
----
-1
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT - CAST( + - ( 10 ) AS SIGNED ) + - 83 * 51
----
-4223

skipif mysql # not compatible
query I rowsort label-5431
SELECT - CAST ( + - ( 10 ) AS INTEGER ) + - 83 * 51
----
-4223

query I rowsort
SELECT ALL 92 * ( + 41 )
----
3772

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT - 61 * + - 47 * - 9 + - - 23 + - 17 * - + COUNT( * )
----
-25763

skipif mysql # not compatible
query I rowsort label-5433
SELECT - 61 * + - 47 * - 9 + - - 23 + - 17 * - + COUNT ( * )
----
-25763

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT + - SUM( - 16 ) col1
----
16

skipif mysql # not compatible
query I rowsort label-5434
SELECT + - SUM ( - 16 ) col1
----
16

query II rowsort
SELECT ALL + 11 + - - 25 AS col0, 1 AS col1
----
36
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5436
SELECT - MIN( ALL + 39 ) / - - COALESCE ( - ( + 71 ), 42 ) + - 38 / - CAST( NULL AS SIGNED ) + - 73 + 30 * + + 61 * + SUM( ALL - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT - MIN ( ALL + 39 ) / - - COALESCE ( - ( + 71 ), 42 ) + - 38 / - CAST ( NULL AS INTEGER ) + - 73 + 30 * + + 61 * + SUM ( ALL - 26 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5437
SELECT CASE + - 14 WHEN - CAST( NULL AS SIGNED ) + + 63 * - 4 + - MIN( ALL - 80 ) THEN - 65 + - AVG ( + 35 ) - - 88 ELSE NULL END * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5437
SELECT CASE + - 14 WHEN - CAST ( NULL AS INTEGER ) + + 63 * - 4 + - MIN ( ALL - 80 ) THEN - 65 + - AVG ( + 35 ) - - 88 ELSE NULL END * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5438
SELECT + COALESCE ( - COUNT( * ), + COUNT( * ) * + + 28 + - 88, - 36 + + CASE + + 69 WHEN + 89 + - 27 THEN - 20 + 10 + ( + 7 ) DIV - - 67 ELSE 99 * 77 - 61 + - + CAST( NULL AS SIGNED ) * + COUNT( * ) END * - CASE COUNT( * ) WHEN - 52 THEN 21 WHEN 79 * 39 + + 45 THEN - 51 ELSE NULL END ) + - 77 DIV + ( - 8 - + MIN( 75 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5438
SELECT + COALESCE ( - COUNT ( * ), + COUNT ( * ) * + + 28 + - 88, - 36 + + CASE + + 69 WHEN + 89 + - 27 THEN - 20 + 10 + ( + 7 ) / - - 67 ELSE 99 * 77 - 61 + - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) END * - CASE COUNT ( * ) WHEN - 52 THEN 21 WHEN 79 * 39 + + 45 THEN - 51 ELSE NULL END ) + - 77 / + ( - 8 - + MIN ( 75 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT DISTINCT + 48 + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT + 48 + COUNT ( * )
----
49

query I rowsort
SELECT ALL - 84 + - 9 - + 32
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5441
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT ALL - 35 + + COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL - 35 + + COUNT ( * ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT ALL + COUNT( * ) + COUNT( * ) * 74 + 97
----
172

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL + COUNT ( * ) + COUNT ( * ) * 74 + 97
----
172

query II rowsort
SELECT 2 AS col0, 30 * 2 * 4 - - 93
----
2
333

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT ALL COALESCE ( + - COUNT( * ), + - 29 + + + 37 ) - 96
----
-97

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL COALESCE ( + - COUNT ( * ), + - 29 + + + 37 ) - 96
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT 69 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT 69 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT ( - CASE + COUNT( * ) WHEN 81 * + + 26 THEN - 74 END ) + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT ( - CASE + COUNT ( * ) WHEN 81 * + + 26 THEN - 74 END ) + - 98
----
NULL

query I rowsort
SELECT ALL + 32 - - - 32 AS col1
----
0

query I rowsort
SELECT DISTINCT ( + + 78 ) - + 77 + + - 14 * - 32 * + 95 AS col1
----
42561

query I rowsort
SELECT 62 * 31 * + 94
----
180668

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT ALL + 5 DIV - + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL + 5 / - + 65 AS col2
----
0

query I rowsort
SELECT ( + - 25 ) * + 76
----
-1900

query I rowsort
SELECT 78 + + 29
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT COUNT( * ) * + 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5454
SELECT COUNT ( * ) * + 49 AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5455
SELECT CAST( + 71 AS SIGNED ) * + - COUNT( * ) col0, 24 * + ( 54 ) + + ( + - 14 ) * 17 col0
----
-71
1058

skipif mysql # not compatible
query II rowsort label-5455
SELECT CAST ( + 71 AS INTEGER ) * + - COUNT ( * ) col0, 24 * + ( 54 ) + + ( + - 14 ) * 17 col0
----
-71
1058

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT 87 + + 63 * - + SUM( - 17 )
----
1158

skipif mysql # not compatible
query I rowsort label-5456
SELECT 87 + + 63 * - + SUM ( - 17 )
----
1158

query I rowsort
SELECT 97 + - 37 * - - 9 AS col2
----
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT ALL - COUNT( * ) * 15
----
-15

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL - COUNT ( * ) * 15
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-5459
SELECT - 50 * - 69 + + 94 AS col0, 99 * + 56 + - 22 + + 84 * - - COUNT( * ) * - - SUM( DISTINCT + 79 ) - - - 80 * + 14
----
3544
11038

skipif mysql # not compatible
query II rowsort label-5459
SELECT - 50 * - 69 + + 94 AS col0, 99 * + 56 + - 22 + + 84 * - - COUNT ( * ) * - - SUM ( DISTINCT + 79 ) - - - 80 * + 14
----
3544
11038

query I rowsort
SELECT + NULLIF ( - 34, + - 18 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL + COUNT( * ) + - 58 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL + COUNT ( * ) + - 58 AS col1
----
-57

query I rowsort
SELECT ALL - - 45 + 19 + - 43 + + 84 AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT ALL ( ( - MIN( - 1 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL ( ( - MIN ( - 1 ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5464
SELECT DISTINCT + 13 + - COUNT( ALL ( + 35 ) ) * - SUM( + 92 ) DIV 70 + 68 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT + 13 + - COUNT ( ALL ( + 35 ) ) * - SUM ( + 92 ) / 70 + 68 AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5465
SELECT + 17 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5465
SELECT + 17 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 66 * + - 93 AS col1
----
-6138

query I rowsort
SELECT ALL - + 79 * - 41 + + 91
----
3330

onlyif mysql # DIV for integer division: 
query I rowsort label-5468
SELECT - 57 * - - 84 - + 49 DIV + 91 * + 28
----
-4788

skipif mysql # not compatible
query I rowsort label-5468
SELECT - 57 * - - 84 - + 49 / + 91 * + 28
----
-4788

query I rowsort
SELECT + - COALESCE ( COALESCE ( - 33, + 96, + 35 ), - - 95 * - 96, 36 )
----
33

query I rowsort
SELECT DISTINCT 10 * + + 39 * - 66 AS col0
----
-25740

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL + 62 * + 9 + - 92 + + COUNT( * ) AS col2
----
467

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + 62 * + 9 + - 92 + + COUNT ( * ) AS col2
----
467

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT ( + + COUNT( 17 ) ) * 53 + + 70
----
123

skipif mysql # not compatible
query I rowsort label-5472
SELECT ( + + COUNT ( 17 ) ) * 53 + + 70
----
123

query I rowsort
SELECT - 98 + - - 64 + - + 18 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT 17 * - COUNT( DISTINCT - 85 ) * + 53 * 14 * + - 74 + + + CASE - - ( - 31 ) WHEN + 53 THEN 17 * + MIN( - 77 ) END * - - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT 17 * - COUNT ( DISTINCT - 85 ) * + 53 * 14 * + - 74 + + + CASE - - ( - 31 ) WHEN + 53 THEN 17 * + MIN ( - 77 ) END * - - 81
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5475
SELECT 24 DIV + 20 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5475
SELECT 24 / + 20 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT MIN( DISTINCT 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5476
SELECT MIN ( DISTINCT 32 ) AS col1
----
32

query I rowsort
SELECT + 64 * 18 + 79 AS col2
----
1231

query III rowsort
SELECT DISTINCT - 4, 10 AS col0, 59 + + 42 AS col2
----
-4
10
101

query II rowsort
SELECT ALL + 78 AS col1, - ( ( - + 29 ) )
----
78
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5480
SELECT + MIN( + 63 ), NULLIF ( - - CAST( NULL AS SIGNED ), 17 ) * - 82 AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-5480
SELECT + MIN ( + 63 ), NULLIF ( - - CAST ( NULL AS INTEGER ), 17 ) * - 82 AS col2
----
63
NULL

query II rowsort
SELECT ALL + 23 AS col0, 99 col2
----
23
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5482
SELECT ALL + 33, 9 + - CASE + + 49 WHEN + ( 25 ) THEN NULL WHEN - 11 * COUNT( * ) + SUM( DISTINCT - - 5 ) + - 53 THEN + + 70 END * 73 + + - 67 * + - 79 / 13 * + 33 - - 15 AS col2
----
33
NULL

skipif mysql # not compatible
query II rowsort label-5482
SELECT ALL + 33, 9 + - CASE + + 49 WHEN + ( 25 ) THEN NULL WHEN - 11 * COUNT ( * ) + SUM ( DISTINCT - - 5 ) + - 53 THEN + + 70 END * 73 + + - 67 * + - 79 / 13 * + 33 - - 15 AS col2
----
33
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5483
SELECT + COUNT( * ) * MAX( ALL - + 48 ) DIV - CAST( - NULLIF ( + + 42, + NULLIF ( - 72, + ( + 6 ) ) ) AS SIGNED ) + - + 77 + - COUNT( * ) + + 98 * 17 col0
----
1587

skipif mysql # not compatible
query I rowsort label-5483
SELECT + COUNT ( * ) * MAX ( ALL - + 48 ) / - CAST ( - NULLIF ( + + 42, + NULLIF ( - 72, + ( + 6 ) ) ) AS INTEGER ) + - + 77 + - COUNT ( * ) + + 98 * 17 col0
----
1587

query II rowsort
SELECT 60, - 74 AS col1
----
60
-74

query II rowsort
SELECT - COALESCE ( - 53, + 91 + 72 ) AS col1, 92 AS col2
----
53
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5486
SELECT - CAST( - 47 AS SIGNED ) * - ( COUNT( * ) ), + NULLIF ( + COUNT( * ), 95 ) AS col1
----
-47
1

skipif mysql # not compatible
query II rowsort label-5486
SELECT - CAST ( - 47 AS INTEGER ) * - ( COUNT ( * ) ), + NULLIF ( + COUNT ( * ), 95 ) AS col1
----
-47
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5487
SELECT + ( + 62 ) - + + 28 DIV - + 47 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5487
SELECT + ( + 62 ) - + + 28 / - + 47 AS col1
----
62

query II rowsort
SELECT - 88, + 28 AS col0
----
-88
28

query I rowsort
SELECT DISTINCT 5 + + 29 AS col0
----
34

query II rowsort
SELECT 87, + 25 col0
----
87
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5491
SELECT + CAST( NULL AS SIGNED ) * NULLIF ( - 39, CASE COUNT( * ) WHEN - COUNT( * ) * - + 86 THEN CAST( 27 AS SIGNED ) END + - - 98 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT + CAST ( NULL AS INTEGER ) * NULLIF ( - 39, CASE COUNT ( * ) WHEN - COUNT ( * ) * - + 86 THEN CAST ( 27 AS INTEGER ) END + - - 98 ) AS col1
----
NULL

query I rowsort
SELECT - 57 - 19
----
-76

query II rowsort
SELECT - 53, 99 * - + 55 col1
----
-53
-5445

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT - COUNT( DISTINCT - + 96 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5494
SELECT - COUNT ( DISTINCT - + 96 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 83 + 82
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT - 84 * - COUNT( * ) * - 52
----
-4368

skipif mysql # not compatible
query I rowsort label-5496
SELECT - 84 * - COUNT ( * ) * - 52
----
-4368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5497
SELECT + 23 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5497
SELECT + 23 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5498
SELECT - - COUNT( + - NULLIF ( + ( - 37 ), + - CAST( NULL AS SIGNED ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5498
SELECT - - COUNT ( + - NULLIF ( + ( - 37 ), + - CAST ( NULL AS INTEGER ) ) ) AS col2
----
1

query I rowsort
SELECT + + 28 * - + 32 AS col0
----
-896

query I rowsort
SELECT + 37 + - 60
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT DISTINCT + ( + + 83 ) * 52 * - COUNT( * ) * - - 91 AS col2
----
-392756

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT + ( + + 83 ) * 52 * - COUNT ( * ) * - - 91 AS col2
----
-392756

query I rowsort
SELECT - + 95 + NULLIF ( 10, 97 / + + 60 * + ( 59 ) * + + 11 )
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-5503
SELECT ALL + + 72 DIV - 53 + + 76 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL + + 72 / - 53 + + 76 AS col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5504
SELECT ALL - 72 DIV 95 + + ( 87 ) + - 46 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL - 72 / 95 + + ( 87 ) + - 46 AS col2
----
41

query I rowsort
SELECT ALL 38 * - + 51 - + 58 AS col2
----
-1996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5506
SELECT - 0 * CASE + 83 WHEN - - NULLIF ( - - 36, + + COUNT( * ) ) + 17 + CAST( NULL AS SIGNED ) THEN - 10 WHEN - + 24 * + 12 * - MIN( - 98 ) THEN ( + 3 ) ELSE NULL END * + 49 + + - 75 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT - 0 * CASE + 83 WHEN - - NULLIF ( - - 36, + + COUNT ( * ) ) + 17 + CAST ( NULL AS INTEGER ) THEN - 10 WHEN - + 24 * + 12 * - MIN ( - 98 ) THEN ( + 3 ) ELSE NULL END * + 49 + + - 75 + - + COUNT ( * )
----
NULL

query I rowsort
SELECT - 53 * - + ( - + 20 ) + - 60
----
-1120

onlyif mysql # aggregate syntax: 
query II rowsort label-5508
SELECT - - 63 * 92 col0, - MIN( - 38 ) + + 11 * 16 * + - 71
----
5796
-12458

skipif mysql # not compatible
query II rowsort label-5508
SELECT - - 63 * 92 col0, - MIN ( - 38 ) + + 11 * 16 * + - 71
----
5796
-12458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5509
SELECT - + 7 * + 75 + + 96 + - ( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) * - MIN( + 30 ) * + 21 + 46 * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT - + 7 * + 75 + + 96 + - ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * - MIN ( + 30 ) * + 21 + 46 * + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT ALL + COALESCE ( - - ( + 60 ), + 44 * - + ( - SUM( DISTINCT + 99 ) ) * + ( + + 5 ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL + COALESCE ( - - ( + 60 ), + 44 * - + ( - SUM ( DISTINCT + 99 ) ) * + ( + + 5 ) ) AS col2
----
60

query I rowsort
SELECT - 72 + + + 11 * + 26
----
214

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ALL + SUM( + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL + SUM ( + 63 )
----
63

query I rowsort
SELECT ALL 60 * - 20
----
-1200

onlyif mysql # DIV for integer division: 
query I rowsort label-5514
SELECT DISTINCT - ( - 67 ) DIV + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT - ( - 67 ) / + 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT + 34 * 24 + - - COALESCE ( - - 54, - 36 - MAX( DISTINCT - 74 ) ) + + 10 * - 90 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-5515
SELECT + 34 * 24 + - - COALESCE ( - - 54, - 36 - MAX ( DISTINCT - 74 ) ) + + 10 * - 90 AS col2
----
-30

query II rowsort
SELECT - 12 * - 27 AS col0, 73 * + 11 AS col0
----
324
803

query I rowsort
SELECT 41 * 95 + 85
----
3980

query I rowsort
SELECT NULLIF ( + 38, 87 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT - NULLIF ( - 1, - MAX( ALL - 84 ) * 11 ) + 29 + 24 + 59 * - 12 - - 18 * + 79 AS col2
----
768

skipif mysql # not compatible
query I rowsort label-5519
SELECT - NULLIF ( - 1, - MAX ( ALL - 84 ) * 11 ) + 29 + 24 + 59 * - 12 - - 18 * + 79 AS col2
----
768

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5520
SELECT COALESCE ( + 74, + 44, - - 18 ) * + 5 * 30 + ( + + CASE + + 65 WHEN - - 70 - + + 14 THEN NULL WHEN 71 + 79 * - 21 / 52 * + 23 THEN ( - - CAST( NULL AS DECIMAL ) ) + + 20 - - - 88 * ( 5 ) * - - MIN( - 83 ) / 43 * + 56 * - MIN( - 87 ) / 69 + + 60 + - COUNT( * ) WHEN + 76 * - 32 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5520
SELECT COALESCE ( + 74, + 44, - - 18 ) * + 5 * 30 + ( + + CASE + + 65 WHEN - - 70 - + + 14 THEN NULL WHEN 71 + 79 * - 21 / 52 * + 23 THEN ( - - CAST ( NULL AS REAL ) ) + + 20 - - - 88 * ( 5 ) * - - MIN ( - 83 ) / 43 * + 56 * - MIN ( - 87 ) / 69 + + 60 + - COUNT ( * ) WHEN + 76 * - 32 THEN NULL END ) AS col0
----
NULL

query I rowsort
SELECT + 88 - 70
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5522
SELECT ALL 71 * 95 + + + COUNT( * ) AS col1, 71
----
6746
71

skipif mysql # not compatible
query II rowsort label-5522
SELECT ALL 71 * 95 + + + COUNT ( * ) AS col1, 71
----
6746
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5523
SELECT + ( 61 ) + - 14 + - - 68 + + 66 DIV + 66 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-5523
SELECT + ( 61 ) + - 14 + - - 68 + + 66 / + 66 AS col1
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-5524
SELECT MIN( ALL 40 ) AS col1, 41 * + 29
----
40
1189

skipif mysql # not compatible
query II rowsort label-5524
SELECT MIN ( ALL 40 ) AS col1, 41 * + 29
----
40
1189

query I rowsort
SELECT ALL - 25 * + 58 + + 32 AS col1
----
-1418

query II rowsort
SELECT DISTINCT - 13 + + 47, + 68 + - + 49 AS col1
----
34
19

onlyif mysql # aggregate syntax: 
query III rowsort label-5527
SELECT ALL - 54 + - 83 AS col2, ( 59 ) + + 46 AS col0, - - COUNT( DISTINCT 76 )
----
-137
105
1

skipif mysql # not compatible
query III rowsort label-5527
SELECT ALL - 54 + - 83 AS col2, ( 59 ) + + 46 AS col0, - - COUNT ( DISTINCT 76 )
----
-137
105
1

query I rowsort
SELECT + - 74 * + 46 + + 98 * - 19 AS col1
----
-5266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5529
SELECT - + CASE + COUNT( * ) WHEN + - CAST( NULL AS SIGNED ) THEN + 45 + - 35 / - 52 * + - ( 52 ) * - + 8 + 49 + - 39 + - - 97 WHEN 77 * 53 THEN + - 40 - + COUNT( * ) * - 64 END AS col1, ( 60 )
----
NULL
60

skipif mysql # not compatible
query II rowsort label-5529
SELECT - + CASE + COUNT ( * ) WHEN + - CAST ( NULL AS INTEGER ) THEN + 45 + - 35 / - 52 * + - ( 52 ) * - + 8 + 49 + - 39 + - - 97 WHEN 77 * 53 THEN + - 40 - + COUNT ( * ) * - 64 END AS col1, ( 60 )
----
NULL
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5530
SELECT + CAST( NULL AS SIGNED ) + - 62 + - COUNT( * ) * + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5530
SELECT + CAST ( NULL AS INTEGER ) + - 62 + - COUNT ( * ) * + 73 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT + - COUNT( * ) / - CASE - 42 WHEN + 74 THEN 83 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT + - COUNT ( * ) / - CASE - 42 WHEN + 74 THEN 83 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT + 44 * - COUNT( * ) + - - 84 + - 19
----
21

skipif mysql # not compatible
query I rowsort label-5532
SELECT + 44 * - COUNT ( * ) + - - 84 + - 19
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5533
SELECT + + 47 * - ( - 13 ) + - COUNT( * ) + CASE + 13 WHEN - + 53 * + 21 + - SUM( ALL + 98 ) THEN MIN( + 82 ) * - + 88 ELSE - ( - - 47 ) END DIV 59 AS col1
----
610

skipif mysql # not compatible
query I rowsort label-5533
SELECT + + 47 * - ( - 13 ) + - COUNT ( * ) + CASE + 13 WHEN - + 53 * + 21 + - SUM ( ALL + 98 ) THEN MIN ( + 82 ) * - + 88 ELSE - ( - - 47 ) END / 59 AS col1
----
610

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT - + COUNT( * ) + 62 * 87 + - 95 col1
----
5298

skipif mysql # not compatible
query I rowsort label-5534
SELECT - + COUNT ( * ) + 62 * 87 + - 95 col1
----
5298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5535
SELECT ALL - 78 - + - 0 DIV + - COUNT( * ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL - 78 - + - 0 / + - COUNT ( * ) col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-5536
SELECT + + 98 DIV - 57
----
-1

skipif mysql # not compatible
query I rowsort label-5536
SELECT + + 98 / - 57
----
-1

query I rowsort
SELECT - + 92 * + - 18
----
1656

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT ALL - + ( COUNT( * ) ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL - + ( COUNT ( * ) ) * + COUNT ( * )
----
-1

query I rowsort
SELECT ( + + 88 )
----
88

query I rowsort
SELECT DISTINCT - - COALESCE ( + ( - 5 ), + 18, - ( - + 20 ), + 5 ) * 11
----
-55

query I rowsort
SELECT 62 * 67 * - 2 AS col0
----
-8308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5542
SELECT ALL 30 * - COALESCE ( - CAST( NULL AS SIGNED ), - + 6 * - + 61 * - 69 )
----
757620

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL 30 * - COALESCE ( - CAST ( NULL AS INTEGER ), - + 6 * - + 61 * - 69 )
----
757620

query I rowsort
SELECT 68 + + - 74
----
-6

query I rowsort
SELECT 52 * + - 9 col1
----
-468

query I rowsort
SELECT 87 * - - 77 AS col2
----
6699

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT ALL + 46 + MAX( + + 72 ) * MIN( - 50 ) col0
----
-3554

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL + 46 + MAX ( + + 72 ) * MIN ( - 50 ) col0
----
-3554

query I rowsort
SELECT 77 * - 16 * - 29 * + + 82
----
2929696

query I rowsort
SELECT ALL + 11 + - 47 * - - 53 AS col1
----
-2480

onlyif mysql # aggregate syntax: 
query II rowsort label-5549
SELECT + 87 AS col1, - ( + + COUNT( * ) )
----
87
-1

skipif mysql # not compatible
query II rowsort label-5549
SELECT + 87 AS col1, - ( + + COUNT ( * ) )
----
87
-1

query I rowsort
SELECT DISTINCT + 29 + 42
----
71

query II rowsort
SELECT 50 AS col1, 31 AS col2
----
50
31

query II rowsort
SELECT 23, + 17 AS col2
----
23
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT - + MIN( - + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-5553
SELECT - + MIN ( - + 79 )
----
79

query I rowsort
SELECT - 62 * - + 49
----
3038

query II rowsort
SELECT ALL 87 AS col0, - 13 + + 26
----
87
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5556
SELECT 21 + - 87 - - CAST( - 84 AS SIGNED ) DIV + + COUNT( * ) AS col0
----
-150

skipif mysql # not compatible
query I rowsort label-5556
SELECT 21 + - 87 - - CAST ( - 84 AS INTEGER ) / + + COUNT ( * ) AS col0
----
-150

query I rowsort
SELECT ALL 72 - + 65
----
7

query I rowsort
SELECT 44 * + 52 AS col2
----
2288

query II rowsort
SELECT 84, 71 AS col2
----
84
71

query I rowsort
SELECT + 69 - - - 83 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT ( COUNT( ALL + 25 ) ) * - 25 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-5561
SELECT ( COUNT ( ALL + 25 ) ) * - 25 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT - CASE - - 68 WHEN 80 THEN - 16 + + COUNT( * ) WHEN + 84 THEN NULL END * - AVG ( DISTINCT - - 22 ) + - 87 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5562
SELECT - CASE - - 68 WHEN 80 THEN - 16 + + COUNT ( * ) WHEN + 84 THEN NULL END * - AVG ( DISTINCT - - 22 ) + - 87 + COUNT ( * )
----
NULL

query I rowsort
SELECT 69 + + + 68
----
137

query II rowsort
SELECT ALL - + 62 * 67 * 75, + 5 col0
----
-311550
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5565
SELECT - 57 AS col1, + 20 * + COALESCE ( + COUNT( * ), - 60 + - + 73 + + - 47 - - + 66 + - 12 + - + 69 * - 93 )
----
-57
20

skipif mysql # not compatible
query II rowsort label-5565
SELECT - 57 AS col1, + 20 * + COALESCE ( + COUNT ( * ), - 60 + - + 73 + + - 47 - - + 66 + - 12 + - + 69 * - 93 )
----
-57
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT DISTINCT 90 + 38 + - - 28 * + COUNT( * ) * 70 AS col1
----
2088

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT 90 + 38 + - - 28 * + COUNT ( * ) * 70 AS col1
----
2088

query I rowsort
SELECT 71 + + 60 - + + 36 AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5568
SELECT 87 DIV - ( 98 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5568
SELECT 87 / - ( 98 ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5569
SELECT ALL 47 DIV - + COUNT( * ) AS col0, - COUNT( * )
----
-47
-1

skipif mysql # not compatible
query II rowsort label-5569
SELECT ALL 47 / - + COUNT ( * ) AS col0, - COUNT ( * )
----
-47
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5570
SELECT ( 88 ) + ( + + 74 ) DIV - + CAST( - 4 AS SIGNED ) + + 64 + + 14 AS col2
----
184

skipif mysql # not compatible
query I rowsort label-5570
SELECT ( 88 ) + ( + + 74 ) / - + CAST ( - 4 AS INTEGER ) + + 64 + + 14 AS col2
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT ALL + COUNT( * ) + + 96 * + 98 AS col2
----
9409

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL + COUNT ( * ) + + 96 * + 98 AS col2
----
9409

query I rowsort
SELECT ALL - 88 * - 62
----
5456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5573
SELECT ALL 41 + - 41, - CAST( NULL AS SIGNED ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5573
SELECT ALL 41 + - 41, - CAST ( NULL AS INTEGER ) AS col0
----
0
NULL

query I rowsort
SELECT 93 + - - 42
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL + 15 + + + SUM( 19 ) * - 91 AS col2
----
-1714

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL + 15 + + + SUM ( 19 ) * - 91 AS col2
----
-1714

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ALL COUNT( * ) + 97 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL COUNT ( * ) + 97 AS col2
----
98

query I rowsort
SELECT 22 + - 70 * 70 AS col0
----
-4878

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT - + ( - COUNT( * ) ) * COALESCE ( + + 12, + - ( - 0 ), 11 ) * - 19 + 99 + - 26 AS col0
----
-155

skipif mysql # not compatible
query I rowsort label-5578
SELECT - + ( - COUNT ( * ) ) * COALESCE ( + + 12, + - ( - 0 ), 11 ) * - 19 + 99 + - 26 AS col0
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT ALL 59 - - COUNT( * ) * + 93 * + 80 * - COUNT( * )
----
-7381

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL 59 - - COUNT ( * ) * + 93 * + 80 * - COUNT ( * )
----
-7381

query I rowsort
SELECT ALL - 72 - + - 8 AS col0
----
-64

query II rowsort
SELECT DISTINCT + - 32 * - 46 AS col2, 33 AS col2
----
1472
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT ALL MAX( ALL + + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL MAX ( ALL + + 48 )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5583
SELECT + 26 + - 46 + - + 41 DIV + + 4 - - COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-5583
SELECT + 26 + - 46 + - + 41 / + + 4 - - COUNT ( * ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT + ( CASE - 32 WHEN 63 THEN + + 75 WHEN - + 12 THEN NULL ELSE + 4 * + + 73 END ) * + 96 * + COUNT( * ) * - 34 AS col1
----
-953088

skipif mysql # not compatible
query I rowsort label-5584
SELECT + ( CASE - 32 WHEN 63 THEN + + 75 WHEN - + 12 THEN NULL ELSE + 4 * + + 73 END ) * + 96 * + COUNT ( * ) * - 34 AS col1
----
-953088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5585
SELECT 35 * - 88 + + CAST( 32 AS SIGNED ) + - - 31 * - + 18 * - COALESCE ( - 33, COUNT( * ), + COUNT( DISTINCT + 75 ) * - + COUNT( * ) ) AS col2, - 3 + COUNT( * )
----
-21462
-2

skipif mysql # not compatible
query II rowsort label-5585
SELECT 35 * - 88 + + CAST ( 32 AS INTEGER ) + - - 31 * - + 18 * - COALESCE ( - 33, COUNT ( * ), + COUNT ( DISTINCT + 75 ) * - + COUNT ( * ) ) AS col2, - 3 + COUNT ( * )
----
-21462
-2

query I rowsort
SELECT ALL + + 89 * - 91
----
-8099

query I rowsort
SELECT - - 39 + - - 79 * + - 6 col1
----
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT DISTINCT - - 60 * - COUNT( * ) + - + ( - COUNT( * ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT - - 60 * - COUNT ( * ) + - + ( - COUNT ( * ) ) AS col2
----
-59

query I rowsort
SELECT - - 90 * 86 AS col2
----
7740

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT ALL + 26 + 49 + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL + 26 + 49 + COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL NULLIF ( - 76, - 60 + + 89 * + 24 * - - COUNT( * ) )
----
-76

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL NULLIF ( - 76, - 60 + + 89 * + 24 * - - COUNT ( * ) )
----
-76

query I rowsort
SELECT - 13 * - 63 AS col0
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT + COUNT( * ) + 7 + 47
----
55

skipif mysql # not compatible
query I rowsort label-5593
SELECT + COUNT ( * ) + 7 + 47
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5594
SELECT - COUNT( * ) col2, + 34
----
-1
34

skipif mysql # not compatible
query II rowsort label-5594
SELECT - COUNT ( * ) col2, + 34
----
-1
34

query II rowsort
SELECT ( - COALESCE ( - ( - 75 ), - 57, 32 ) ), - 23 AS col2
----
-75
-23

query I rowsort
SELECT DISTINCT + 1 * + 32
----
32

query I rowsort
SELECT ALL 41 * + 48
----
1968

query I rowsort
SELECT DISTINCT 53 * - - 80 + 86 AS col2
----
4326

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT CASE - + 55 WHEN + - 14 THEN + 34 + COUNT( DISTINCT + 89 ) - - COUNT( * ) WHEN - 21 THEN NULL WHEN 68 THEN NULL ELSE SUM( ALL + - 14 ) END col2
----
-14

skipif mysql # not compatible
query I rowsort label-5599
SELECT CASE - + 55 WHEN + - 14 THEN + 34 + COUNT ( DISTINCT + 89 ) - - COUNT ( * ) WHEN - 21 THEN NULL WHEN 68 THEN NULL ELSE SUM ( ALL + - 14 ) END col2
----
-14

query II rowsort
SELECT ALL + 41 col2, + 15 * 80 col0
----
41
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT + SUM( ALL + + 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5601
SELECT + SUM ( ALL + + 80 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT + ( 81 ) * - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-5602
SELECT + ( 81 ) * - COUNT ( * )
----
-81

query II rowsort
SELECT ALL + 57 AS col1, + 92 * 22
----
57
2024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5604
SELECT + MIN( DISTINCT 18 ) * + 41, + ( CAST( NULL AS SIGNED ) ) * + CASE - ( + 58 ) WHEN - 23 * - COUNT( * ) * + 97 THEN + COUNT( * ) WHEN + 96 THEN + + COUNT( ALL + CASE - 24 WHEN 74 * 4 THEN - - 57 - + - 25 ELSE NULL END ) END - 2 + - - 93 + 90 + + 30 * + CASE ( - + 86 ) WHEN + 31 THEN NULL WHEN + ( - - 15 ) * COUNT( * ) THEN 78 * 84 ELSE NULL END AS col0
----
738
NULL

skipif mysql # not compatible
query II rowsort label-5604
SELECT + MIN ( DISTINCT 18 ) * + 41, + ( CAST ( NULL AS INTEGER ) ) * + CASE - ( + 58 ) WHEN - 23 * - COUNT ( * ) * + 97 THEN + COUNT ( * ) WHEN + 96 THEN + + COUNT ( ALL + CASE - 24 WHEN 74 * 4 THEN - - 57 - + - 25 ELSE NULL END ) END - 2 + - - 93 + 90 + + 30 * + CASE ( - + 86 ) WHEN + 31 THEN NULL WHEN + ( - - 15 ) * COUNT ( * ) THEN 78 * 84 ELSE NULL END AS col0
----
738
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT - MIN( - 30 ) * 50 AS col0
----
1500

skipif mysql # not compatible
query I rowsort label-5605
SELECT - MIN ( - 30 ) * 50 AS col0
----
1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5606
SELECT CASE + + 94 WHEN - - NULLIF ( + - CAST( NULL AS SIGNED ), - 51 ) THEN - + 27 WHEN - - ( + CAST( + 93 AS DECIMAL ) ) THEN + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5606
SELECT CASE + + 94 WHEN - - NULLIF ( + - CAST ( NULL AS INTEGER ), - 51 ) THEN - + 27 WHEN - - ( + CAST ( + 93 AS REAL ) ) THEN + - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT ALL ( - COUNT( * ) ) * - 26 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL ( - COUNT ( * ) ) * - 26 AS col0
----
26

query I rowsort
SELECT + 97 * - 31 AS col1
----
-3007

query I rowsort
SELECT + - 37 * + + 66 AS col2
----
-2442

query II rowsort
SELECT + 61 AS col1, 32 + - + COALESCE ( 87, 52 + - 9 ) + + + 58 AS col0
----
61
3

query I rowsort
SELECT DISTINCT + - ( + + 53 ) col2
----
-53

query I rowsort
SELECT + 54 + + - 41 * + 28
----
-1094

query I rowsort
SELECT ALL 93 * 52
----
4836

query I rowsort
SELECT + 63 * + 73 + + NULLIF ( + 91, + ( - 99 ) * 2 + + 60 - - ( - + 97 ) ) AS col1
----
4690

query II rowsort
SELECT ALL - 63, + 15 AS col0
----
-63
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT - - SUM( DISTINCT - 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-5616
SELECT - - SUM ( DISTINCT - 84 ) AS col0
----
-84

query II rowsort
SELECT ALL + 40, 91 AS col0
----
40
91

query I rowsort
SELECT DISTINCT 82 + + 27 * - - 36
----
1054

query I rowsort
SELECT DISTINCT + - 62 + - 22
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5620
SELECT ALL - COALESCE ( - COALESCE ( + ( + 86 ), - ( - - 69 ) ), - 11 * + + ( 98 ) * 67 ) + CAST( - 88 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL - COALESCE ( - COALESCE ( + ( + 86 ), - ( - - 69 ) ), - 11 * + + ( 98 ) * 67 ) + CAST ( - 88 AS INTEGER )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT - 53 - - COUNT( * ) col2
----
-52

skipif mysql # not compatible
query I rowsort label-5621
SELECT - 53 - - COUNT ( * ) col2
----
-52

query I rowsort
SELECT ALL + + 95 * 70
----
6650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5623
SELECT - - SUM( ALL - 53 ) DIV 47
----
-1

skipif mysql # not compatible
query I rowsort label-5623
SELECT - - SUM ( ALL - 53 ) / 47
----
-1

query I rowsort
SELECT - 67 + - + 75 AS col0
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5625
SELECT 42, + 19 DIV + 7 + + - 89 * + COUNT( * ) AS col2
----
42
-87

skipif mysql # not compatible
query II rowsort label-5625
SELECT 42, + 19 / + 7 + + - 89 * + COUNT ( * ) AS col2
----
42
-87

query I rowsort
SELECT ALL + 14 + + - 37 * + 47
----
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL - 60 + + + SUM( - - 10 )
----
-50

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL - 60 + + + SUM ( - - 10 )
----
-50

query II rowsort
SELECT - 66 + - 40 col1, + 28 * + - 60
----
-106
-1680

onlyif mysql # aggregate syntax: 
query II rowsort label-5629
SELECT 29 AS col1, - 27 * + - MIN( ALL + + 11 ) AS col0
----
29
297

skipif mysql # not compatible
query II rowsort label-5629
SELECT 29 AS col1, - 27 * + - MIN ( ALL + + 11 ) AS col0
----
29
297

query I rowsort
SELECT ALL + 15 + - 77
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5631
SELECT ALL 47 DIV COUNT( + 53 )
----
47

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL 47 / COUNT ( + 53 )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5632
SELECT DISTINCT 49 DIV + 49 + - 76
----
-75

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT 49 / + 49 + - 76
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT - COALESCE ( ( - 56 ), + - 25 * - 24 * + - 38 + + COUNT( DISTINCT + 60 ) + 43, - + 73 ) + + - 20 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5633
SELECT - COALESCE ( ( - 56 ), + - 25 * - 24 * + - 38 + + COUNT ( DISTINCT + 60 ) + 43, - + 73 ) + + - 20 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT + CASE + 41 WHEN + + ( - + COUNT( * ) ) THEN - 56 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5634
SELECT + CASE + 41 WHEN + + ( - + COUNT ( * ) ) THEN - 56 ELSE NULL END
----
NULL

query I rowsort
SELECT + 88 + ( - 83 ) AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5636
SELECT ALL + 41 AS col1, CAST( NULL AS SIGNED ) + - 22
----
41
NULL

skipif mysql # not compatible
query II rowsort label-5636
SELECT ALL + 41 AS col1, CAST ( NULL AS INTEGER ) + - 22
----
41
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5637
SELECT CAST( - + 23 AS SIGNED ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-5637
SELECT CAST ( - + 23 AS INTEGER ) AS col2
----
-23

query I rowsort
SELECT - 17 + - 14 + - 26 * + - 91 * - - 26 col2
----
61485

query I rowsort
SELECT - ( 36 ) * + + 9 AS col1
----
-324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5640
SELECT CAST( + 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-5640
SELECT CAST ( + 6 AS INTEGER )
----
6

query II rowsort
SELECT ALL + 57 AS col0, 68 + 86 + + 22
----
57
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5642
SELECT + 79 * 78 + - CAST( NULL AS SIGNED ) + + 92 * CASE - - COUNT( * ) WHEN + 27 THEN + 77 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5642
SELECT + 79 * 78 + - CAST ( NULL AS INTEGER ) + + 92 * CASE - - COUNT ( * ) WHEN + 27 THEN + 77 ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5643
SELECT + 99 - CAST( - COUNT( ALL - + CAST( NULL AS SIGNED ) ) AS SIGNED ) - - + 88 - 72 DIV + 63 + + + 46 AS col1
----
232

skipif mysql # not compatible
query I rowsort label-5643
SELECT + 99 - CAST ( - COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) - - + 88 - 72 / + 63 + + + 46 AS col1
----
232

query I rowsort
SELECT + ( - + 72 ) AS col1
----
-72

query I rowsort
SELECT DISTINCT + ( - + 70 )
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-5646
SELECT ALL + 5 DIV 61 - - + 2
----
2

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL + 5 / 61 - - + 2
----
2

query I rowsort
SELECT ALL ( 7 ) * + - 15 col2
----
-105

query I rowsort
SELECT ALL + 53 * 82 AS col0
----
4346

query I rowsort
SELECT + 63 * - 17
----
-1071

query I rowsort
SELECT + 94 + 23 AS col0
----
117

query I rowsort
SELECT + 99 * + 72
----
7128

onlyif mysql # aggregate syntax: 
query II rowsort label-5652
SELECT - COUNT( * ) * - - COUNT( * ) * 36 * COUNT( * ) AS col1, 77 AS col1
----
-36
77

skipif mysql # not compatible
query II rowsort label-5652
SELECT - COUNT ( * ) * - - COUNT ( * ) * 36 * COUNT ( * ) AS col1, 77 AS col1
----
-36
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5653
SELECT + 31 * 4 + 51 + + 32 + CAST( - + 59 AS SIGNED ) AS col1, 61 * - 36 + - 66
----
148
-2262

skipif mysql # not compatible
query II rowsort label-5653
SELECT + 31 * 4 + 51 + + 32 + CAST ( - + 59 AS INTEGER ) AS col1, 61 * - 36 + - 66
----
148
-2262

query II rowsort
SELECT 35, NULLIF ( - 96, - 0 ) * + 65 AS col2
----
35
-6240

query I rowsort
SELECT + 21 + - 21 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT MAX( 96 ) + + 27 AS col2
----
123

skipif mysql # not compatible
query I rowsort label-5656
SELECT MAX ( 96 ) + + 27 AS col2
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-5657
SELECT ALL + 20 DIV 10 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL + 20 / 10 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT + 39 * - 12 * + 46 + + COUNT( * ) + + 43 AS col2
----
-21484

skipif mysql # not compatible
query I rowsort label-5658
SELECT + 39 * - 12 * + 46 + + COUNT ( * ) + + 43 AS col2
----
-21484

query I rowsort
SELECT DISTINCT 53 + - - 34 AS col0
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5660
SELECT - MAX( - 18 ) * + + COUNT( * ) DIV + + SUM( ALL - - 53 )
----
0

skipif mysql # not compatible
query I rowsort label-5660
SELECT - MAX ( - 18 ) * + + COUNT ( * ) / + + SUM ( ALL - - 53 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT - COUNT( * ) + + - 69 + + 82 + 76 + COUNT( * ) * - 89 * + 64 - - COUNT( * )
----
-5607

skipif mysql # not compatible
query I rowsort label-5661
SELECT - COUNT ( * ) + + - 69 + + 82 + 76 + COUNT ( * ) * - 89 * + 64 - - COUNT ( * )
----
-5607

query II rowsort
SELECT ALL 86 col1, + 38
----
86
38

query II rowsort
SELECT 27, 74 + - 4 * + - 52 AS col0
----
27
282

query I rowsort
SELECT - 38 + + 6 * 39 + - 68 AS col1
----
128

query II rowsort
SELECT - 47 col1, - 94
----
-47
-94

query I rowsort
SELECT - ( 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT + MAX( ALL - 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-5667
SELECT + MAX ( ALL - 57 ) AS col1
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5668
SELECT + COUNT( * ) AS col2, COUNT( + 53 ) DIV + 69 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-5668
SELECT + COUNT ( * ) AS col2, COUNT ( + 53 ) / + 69 AS col1
----
1
0

query I rowsort
SELECT ALL - 43 + + - 88
----
-131

onlyif mysql # aggregate syntax: 
query II rowsort label-5670
SELECT DISTINCT 89 + - + 67, + 57 * + - COUNT( * ) * + + 76 * - + ( COUNT( * ) ) AS col2
----
22
4332

skipif mysql # not compatible
query II rowsort label-5670
SELECT DISTINCT 89 + - + 67, + 57 * + - COUNT ( * ) * + + 76 * - + ( COUNT ( * ) ) AS col2
----
22
4332

query II rowsort
SELECT ALL - 29 - + - 64 AS col1, 64 AS col1
----
35
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT 22 * + + 9 * + + SUM( ALL - 56 ) AS col2
----
-11088

skipif mysql # not compatible
query I rowsort label-5672
SELECT 22 * + + 9 * + + SUM ( ALL - 56 ) AS col2
----
-11088

query I rowsort
SELECT DISTINCT 17 * - 56 AS col0
----
-952

onlyif mysql # aggregate syntax: 
query II rowsort label-5674
SELECT ALL - MIN( ALL - 68 ) AS col2, - 2 + + - 87
----
68
-89

skipif mysql # not compatible
query II rowsort label-5674
SELECT ALL - MIN ( ALL - 68 ) AS col2, - 2 + + - 87
----
68
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT DISTINCT + 66 * ( + COUNT( * ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT + 66 * ( + COUNT ( * ) ) AS col1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5676
SELECT 21 * MAX( ALL + - ( - 12 ) ) * 36 DIV 72 col2
----
126

skipif mysql # not compatible
query I rowsort label-5676
SELECT 21 * MAX ( ALL + - ( - 12 ) ) * 36 / 72 col2
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-5677
SELECT 31 DIV - 65
----
0

skipif mysql # not compatible
query I rowsort label-5677
SELECT 31 / - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT + COUNT( * ) * + ( - + 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-5678
SELECT + COUNT ( * ) * + ( - + 26 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT + + NULLIF ( + - COUNT( * ), 85 + 31 )
----
-1

skipif mysql # not compatible
query I rowsort label-5679
SELECT + + NULLIF ( + - COUNT ( * ), 85 + 31 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5680
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + 44 * + COUNT( * ) + 48 + + + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + 44 * + COUNT ( * ) + 48 + + + 76 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT DISTINCT + 41 + + COUNT( * ) * ( + 81 ) - + 61 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT + 41 + + COUNT ( * ) * ( + 81 ) - + 61 AS col0
----
61

query I rowsort
SELECT + + CASE WHEN - 31 IS NOT NULL THEN - - 97 ELSE NULL END
----
97

query I rowsort
SELECT ALL 39 + 74 - + + 23 * + + 1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT 13 * - COUNT( * ) * + 37
----
-481

skipif mysql # not compatible
query I rowsort label-5684
SELECT 13 * - COUNT ( * ) * + 37
----
-481

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT - MIN( - - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-5685
SELECT - MIN ( - - 62 )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5686
SELECT ALL - 47 + - - 31 - - - CASE + 9 WHEN + NULLIF ( 72, - 14 ) THEN - 17 * - 66 + + - COUNT( * ) WHEN - 67 THEN + ( + + MAX( CAST( + 5 AS SIGNED ) ) ) END / - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL - 47 + - - 31 - - - CASE + 9 WHEN + NULLIF ( 72, - 14 ) THEN - 17 * - 66 + + - COUNT ( * ) WHEN - 67 THEN + ( + + MAX ( CAST ( + 5 AS INTEGER ) ) ) END / - + 56
----
NULL

query I rowsort
SELECT - 88 + + 30 AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5688
SELECT - COALESCE ( + - 31, 44 * COUNT( - + CAST( - 57 AS SIGNED ) ) + - COUNT( * ) ) + + NULLIF ( - 39, + + 27 * - + ( - - 40 ) ) + + 48 col1
----
40

skipif mysql # not compatible
query I rowsort label-5688
SELECT - COALESCE ( + - 31, 44 * COUNT ( - + CAST ( - 57 AS INTEGER ) ) + - COUNT ( * ) ) + + NULLIF ( - 39, + + 27 * - + ( - - 40 ) ) + + 48 col1
----
40

query I rowsort
SELECT ALL - - ( - 69 ) - + 99 AS col1
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5690
SELECT SUM( ALL 10 ) * - - 29 + + 32 + + 13 DIV - 28 DIV COUNT( * ) AS col1
----
322

skipif mysql # not compatible
query I rowsort label-5690
SELECT SUM ( ALL 10 ) * - - 29 + + 32 + + 13 / - 28 / COUNT ( * ) AS col1
----
322

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT ( - COUNT( * ) ) + - ( - + 61 ) - - + 83
----
143

skipif mysql # not compatible
query I rowsort label-5691
SELECT ( - COUNT ( * ) ) + - ( - + 61 ) - - + 83
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT ALL 25 - + NULLIF ( - 16, - - 36 ) + + + 48 + 92 - - MAX( ALL - ( 66 ) ) AS col1
----
115

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL 25 - + NULLIF ( - 16, - - 36 ) + + + 48 + 92 - - MAX ( ALL - ( 66 ) ) AS col1
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5693
SELECT DISTINCT 83 / CAST( 74 AS SIGNED ) / 43 + + 81 / CASE 83 WHEN - 70 * + - 5 THEN + + 19 + + COUNT( * ) END / + + COUNT( * ) * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT 83 / CAST ( 74 AS INTEGER ) / 43 + + 81 / CASE 83 WHEN - 70 * + - 5 THEN + + 19 + + COUNT ( * ) END / + + COUNT ( * ) * + 25
----
NULL

query I rowsort
SELECT ALL 18 * 25 AS col1
----
450

onlyif mysql # DIV for integer division: 
query I rowsort label-5695
SELECT 6 + + 67 DIV + 12 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5695
SELECT 6 + + 67 / + 12 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT 96 + MAX( ALL 47 ) * + + 47
----
2305

skipif mysql # not compatible
query I rowsort label-5696
SELECT 96 + MAX ( ALL 47 ) * + + 47
----
2305

query II rowsort
SELECT DISTINCT 30 AS col0, - 51 * ( - 47 ) + ( + - 9 )
----
30
2388

query II rowsort
SELECT ALL 81 AS col2, - 5 AS col0
----
81
-5

query II rowsort
SELECT DISTINCT 83 col2, - 42 AS col0
----
83
-42

query II rowsort
SELECT + 88, - 27 * ( + - 69 ) * 61 AS col0
----
88
113643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5701
SELECT COUNT( * ) DIV + + NULLIF ( 54, - 81 * CASE + CAST( + 33 AS SIGNED ) WHEN + 27 * 54 * - 1 THEN + - 70 + - COUNT( * ) WHEN 43 - - CASE + 47 WHEN + MAX( ALL - 10 ) THEN - CAST( + 55 AS SIGNED ) * + + 62 ELSE NULL END + - COUNT( * ) THEN 56 * - ( + 33 ) + + 4 END * - + 6 * - 61 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5701
SELECT COUNT ( * ) / + + NULLIF ( 54, - 81 * CASE + CAST ( + 33 AS INTEGER ) WHEN + 27 * 54 * - 1 THEN + - 70 + - COUNT ( * ) WHEN 43 - - CASE + 47 WHEN + MAX ( ALL - 10 ) THEN - CAST ( + 55 AS INTEGER ) * + + 62 ELSE NULL END + - COUNT ( * ) THEN 56 * - ( + 33 ) + + 4 END * - + 6 * - 61 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT 47 * - CASE - 86 WHEN - 83 * + - COUNT( DISTINCT - 60 ) + + + COUNT( * ) THEN 87 WHEN + - 7 / + - 71 THEN 87 + + + 10 END / - - COALESCE ( 85, - - 4 + - 70 - + + 19 * - - 52, + COUNT( * ) ) * + 12 * - ( + 55 ) / - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-5702
SELECT 47 * - CASE - 86 WHEN - 83 * + - COUNT ( DISTINCT - 60 ) + + + COUNT ( * ) THEN 87 WHEN + - 7 / + - 71 THEN 87 + + + 10 END / - - COALESCE ( 85, - - 4 + - 70 - + + 19 * - - 52, + COUNT ( * ) ) * + 12 * - ( + 55 ) / - 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT + 47 * 25 + 45 + - 99 * + 75 + ( + 5 ) * + + MIN( 47 ) AS col1
----
-5970

skipif mysql # not compatible
query I rowsort label-5703
SELECT + 47 * 25 + 45 + - 99 * + 75 + ( + 5 ) * + + MIN ( 47 ) AS col1
----
-5970

query I rowsort
SELECT + + ( - 4 ) AS col0
----
-4

query I rowsort
SELECT 72 * - + 44 + + + 48 * - 99 col2
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT - 13 - + 94 * COUNT( * ) + - 15
----
-122

skipif mysql # not compatible
query I rowsort label-5706
SELECT - 13 - + 94 * COUNT ( * ) + - 15
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5707
SELECT ALL 80 * + 65 * + SUM( ALL CAST( NULL AS SIGNED ) ) + - - 88 / + + 52, 25 * - - 77 AS col0
----
NULL
1925

skipif mysql # not compatible
query II rowsort label-5707
SELECT ALL 80 * + 65 * + SUM ( ALL CAST ( NULL AS INTEGER ) ) + - - 88 / + + 52, 25 * - - 77 AS col0
----
NULL
1925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5708
SELECT - COUNT( DISTINCT - 97 ) + + 19 + + 51 / + 61 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5708
SELECT - COUNT ( DISTINCT - 97 ) + + 19 + + 51 / + 61 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 70 + - + 88 col0
----
-158

query I rowsort
SELECT ALL - 70 * COALESCE ( + 19, 38 + - 56, - 0 * 70 * - 52 ) * - 10 + 49 + 14 + + + 34 + - 27 AS col1
----
13370

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT + NULLIF ( COUNT( ALL 4 ), + - 50 )
----
1

skipif mysql # not compatible
query I rowsort label-5711
SELECT + NULLIF ( COUNT ( ALL 4 ), + - 50 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT DISTINCT - COUNT( * ) * + + 50
----
-50

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT - COUNT ( * ) * + + 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT + + 6 * COUNT( * ) + - 20 * + - ( + NULLIF ( - COUNT( * ), - 16 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-5713
SELECT + + 6 * COUNT ( * ) + - 20 * + - ( + NULLIF ( - COUNT ( * ), - 16 ) )
----
-14

query II rowsort
SELECT 19 AS col1, 86 AS col2
----
19
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT - ( + 45 ) + - 10 + + 10 + - - COUNT( * ) * - - 46 - 71 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-5715
SELECT - ( + 45 ) + - 10 + + 10 + - - COUNT ( * ) * - - 46 - 71 AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5716
SELECT ALL ( - 16 ) * - - MAX( DISTINCT + 35 ) + COUNT( * ) - + 73 * CAST( + + 9 AS SIGNED ) * + + 38 * - + 78
----
1946789

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL ( - 16 ) * - - MAX ( DISTINCT + 35 ) + COUNT ( * ) - + 73 * CAST ( + + 9 AS INTEGER ) * + + 38 * - + 78
----
1946789

query II rowsort
SELECT + 10 AS col2, 40 * + 62 - - + 11 * + + 33
----
10
2843

onlyif mysql # aggregate syntax: 
query II rowsort label-5718
SELECT + 33 + - COUNT( + + ( + 24 ) ) AS col2, SUM( 8 ) + - - SUM( 90 )
----
32
98

skipif mysql # not compatible
query II rowsort label-5718
SELECT + 33 + - COUNT ( + + ( + 24 ) ) AS col2, SUM ( 8 ) + - - SUM ( 90 )
----
32
98

query II rowsort
SELECT + 10 AS col0, 36 AS col2
----
10
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT ALL + COUNT( * ) - - + 39
----
40

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL + COUNT ( * ) - - + 39
----
40

query I rowsort
SELECT - + 30 * + + NULLIF ( 56, + 51 * + 81 ) * 99 + - 68 AS col1
----
-166388

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT ALL - 56 * - MIN( + - ( 4 ) )
----
-224

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL - 56 * - MIN ( + - ( 4 ) )
----
-224

query I rowsort
SELECT + 6 * - + 4 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT - COUNT( DISTINCT - 62 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5724
SELECT - COUNT ( DISTINCT - 62 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5725
SELECT DISTINCT ( + - NULLIF ( - CASE - 71 WHEN + + 86 THEN 33 END, - 65 * + COUNT( * ) * 11 * - 74 ) ) AS col2, CASE + 99 WHEN - 78 THEN NULL WHEN COUNT( * ) + CAST( NULL AS SIGNED ) + - 94 THEN - COUNT( * ) + + 87 + + CAST( NULL AS SIGNED ) * 44 WHEN COUNT( * ) * + + 49 THEN + MIN( - 66 ) ELSE 52 * - + COUNT( * ) END DIV 34 - 5 DIV + 72 * - MAX( DISTINCT + COALESCE ( + + 9, - ( - - 9 ) * + ( - 16 * - 92 ) ) ) + COALESCE ( + COUNT( * ), 79 + - MAX( DISTINCT ( + 76 ) ), - 60 + COUNT( * ) )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5725
SELECT DISTINCT ( + - NULLIF ( - CASE - 71 WHEN + + 86 THEN 33 END, - 65 * + COUNT ( * ) * 11 * - 74 ) ) AS col2, CASE + 99 WHEN - 78 THEN NULL WHEN COUNT ( * ) + CAST ( NULL AS INTEGER ) + - 94 THEN - COUNT ( * ) + + 87 + + CAST ( NULL AS INTEGER ) * 44 WHEN COUNT ( * ) * + + 49 THEN + MIN ( - 66 ) ELSE 52 * - + COUNT ( * ) END / 34 - 5 / + 72 * - MAX ( DISTINCT + COALESCE ( + + 9, - ( - - 9 ) * + ( - 16 * - 92 ) ) ) + COALESCE ( + COUNT ( * ), 79 + - MAX ( DISTINCT ( + 76 ) ), - 60 + COUNT ( * ) )
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5726
SELECT DISTINCT ( - - COUNT( * ) ), + 95 * + 10 * + COUNT( * ) + - 48 + 36 * COUNT( * ) * 54 AS col2
----
1
2846

skipif mysql # not compatible
query II rowsort label-5726
SELECT DISTINCT ( - - COUNT ( * ) ), + 95 * + 10 * + COUNT ( * ) + - 48 + 36 * COUNT ( * ) * 54 AS col2
----
1
2846

query I rowsort
SELECT ALL ( + + 64 ) * - NULLIF ( - 78, - NULLIF ( - 20, ( - + 90 ) ) )
----
4992

onlyif mysql # DIV for integer division: 
query I rowsort label-5728
SELECT + 23 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-5728
SELECT + 23 / - 54
----
0

query I rowsort
SELECT - 11 * - + 30 * 63 col0
----
20790

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5730
SELECT + 17 + + COALESCE ( + 24, - 3 ) AS col2, 34 + + 98 * CAST( 77 AS SIGNED ) * - 90 + + 96 * + 76 AS col2
----
41
-671810

skipif mysql # not compatible
query II rowsort label-5730
SELECT + 17 + + COALESCE ( + 24, - 3 ) AS col2, 34 + + 98 * CAST ( 77 AS INTEGER ) * - 90 + + 96 * + 76 AS col2
----
41
-671810

query II rowsort
SELECT DISTINCT 22 + 11, 7 AS col0
----
33
7

query I rowsort
SELECT - CASE - + 16 WHEN - - 62 / 14 THEN 6 END
----
NULL

query I rowsort
SELECT + 81 * + 3
----
243

query II rowsort
SELECT ALL + CASE + + 57 WHEN + - 96 THEN - - 79 ELSE NULL END AS col2, - 85 * + - 42
----
NULL
3570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5735
SELECT DISTINCT + ( - - 52 ) / 55 * + CASE - 22 WHEN - 54 * - ( - - 87 ) THEN 60 + + 46 + 79 * - CAST( + + 39 AS SIGNED ) + - + 39 - - 26 - + - 83 * - COUNT( * ) * + 69 END + COUNT( DISTINCT - + 26 ) * - - 92 + 41 * - 81 / - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5735
SELECT DISTINCT + ( - - 52 ) / 55 * + CASE - 22 WHEN - 54 * - ( - - 87 ) THEN 60 + + 46 + 79 * - CAST ( + + 39 AS INTEGER ) + - + 39 - - 26 - + - 83 * - COUNT ( * ) * + 69 END + COUNT ( DISTINCT - + 26 ) * - - 92 + 41 * - 81 / - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT ALL COUNT( * ) * + 70 * 91 + NULLIF ( + 11, - 45 ) AS col0
----
6381

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL COUNT ( * ) * + 70 * 91 + NULLIF ( + 11, - 45 ) AS col0
----
6381

onlyif mysql # DIV for integer division: 
query I rowsort label-5737
SELECT ALL + 16 DIV - 36 + 89 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL + 16 / - 36 + 89 AS col0
----
89

query I rowsort
SELECT + 63 * - 41
----
-2583

query I rowsort
SELECT - NULLIF ( - 73, - ( + 26 ) * + 91 + + 39 )
----
73

query I rowsort
SELECT DISTINCT + ( + - 31 )
----
-31

query I rowsort
SELECT + 30 * - ( 7 ) AS col1
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT NULLIF ( + SUM( DISTINCT - 51 ), + 61 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-5742
SELECT NULLIF ( + SUM ( DISTINCT - 51 ), + 61 ) AS col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5743
SELECT + - CASE - + 45 WHEN - CASE - COALESCE ( - 4, MAX( ALL 29 ) * COALESCE ( CAST( + - 36 AS SIGNED ), COUNT( ALL + + 87 ), - 62 ) - 85 - 3 * 74 * - 20 - - 80 * - 92 * + CAST( NULL AS SIGNED ) ) WHEN 66 + + 19 + + CAST( NULL AS SIGNED ) + - 3 + - - CASE - + 75 WHEN + - 86 THEN + + ( + - 26 ) * + 89 + - ( + - 8 ) * 69 WHEN CASE ( 94 ) WHEN + CASE SUM( - ( + CAST( NULL AS SIGNED ) ) ) WHEN 35 THEN 84 * + 8 ELSE NULL END THEN NULL WHEN + 82 * COUNT( * ) THEN + 41 * CAST( + COUNT( * ) AS SIGNED ) + SUM( DISTINCT 63 ) END THEN + CASE - 5 WHEN - 29 - 75 * 41 THEN + 44 / 98 ELSE NULL END - COUNT( * ) END THEN ( + 1 ) * - NULLIF ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * 35, CAST( + 9 AS DECIMAL ) ) WHEN + COUNT( * ) THEN - ( - COUNT( * ) ) * - 89 - + COALESCE ( + CASE - COUNT( * ) WHEN COUNT( * ) * 91 + 30 THEN NULLIF ( NULLIF ( + ( 5 ), - COUNT( * ) ), 99 ) END + 43 / COUNT( * ), 43 ) WHEN - 40 + + 11 THEN - 61 / - COUNT( * ) ELSE NULL END THEN - COUNT( * ) WHEN - 56 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT + - CASE - + 45 WHEN - CASE - COALESCE ( - 4, MAX ( ALL 29 ) * COALESCE ( CAST ( + - 36 AS INTEGER ), COUNT ( ALL + + 87 ), - 62 ) - 85 - 3 * 74 * - 20 - - 80 * - 92 * + CAST ( NULL AS INTEGER ) ) WHEN 66 + + 19 + + CAST ( NULL AS INTEGER ) + - 3 + - - CASE - + 75 WHEN + - 86 THEN + + ( + - 26 ) * + 89 + - ( + - 8 ) * 69 WHEN CASE ( 94 ) WHEN + CASE SUM ( - ( + CAST ( NULL AS INTEGER ) ) ) WHEN 35 THEN 84 * + 8 ELSE NULL END THEN NULL WHEN + 82 * COUNT ( * ) THEN + 41 * CAST ( + COUNT ( * ) AS INTEGER ) + SUM ( DISTINCT 63 ) END THEN + CASE - 5 WHEN - 29 - 75 * 41 THEN + 44 / 98 ELSE NULL END - COUNT ( * ) END THEN ( + 1 ) * - NULLIF ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * 35, CAST ( + 9 AS REAL ) ) WHEN + COUNT ( * ) THEN - ( - COUNT ( * ) ) * - 89 - + COALESCE ( + CASE - COUNT ( * ) WHEN COUNT ( * ) * 91 + 30 THEN NULLIF ( NULLIF ( + ( 5 ), - COUNT ( * ) ), 99 ) END + 43 / COUNT ( * ), 43 ) WHEN - 40 + + 11 THEN - 61 / - COUNT ( * ) ELSE NULL END THEN - COUNT ( * ) WHEN - 56 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5744
SELECT + - COALESCE ( 71, + - 45 + 53 + 2 * - 26 ) DIV 68
----
-1

skipif mysql # not compatible
query I rowsort label-5744
SELECT + - COALESCE ( 71, + - 45 + 53 + 2 * - 26 ) / 68
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5745
SELECT ALL + 58 * + CAST( NULL AS SIGNED ) * - 38 - 0, 40 * + + COUNT( * ) * + 43 AS col0
----
NULL
1720

skipif mysql # not compatible
query II rowsort label-5745
SELECT ALL + 58 * + CAST ( NULL AS INTEGER ) * - 38 - 0, 40 * + + COUNT ( * ) * + 43 AS col0
----
NULL
1720

onlyif mysql # aggregate syntax: 
query II rowsort label-5746
SELECT ALL + + COALESCE ( + 15, + 32 * - + COUNT( * ) ) AS col2, 35 AS col2
----
15
35

skipif mysql # not compatible
query II rowsort label-5746
SELECT ALL + + COALESCE ( + 15, + 32 * - + COUNT ( * ) ) AS col2, 35 AS col2
----
15
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5747
SELECT ALL - 51 * - 96 - - CAST( + 7 AS SIGNED ) * MIN( + - 47 ) * + 47 * COUNT( * ) + + 55
----
-10512

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL - 51 * - 96 - - CAST ( + 7 AS INTEGER ) * MIN ( + - 47 ) * + 47 * COUNT ( * ) + + 55
----
-10512

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5748
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 32 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT CAST ( NULL AS REAL ) * 32 * COUNT ( * )
----
NULL

query I rowsort
SELECT + COALESCE ( - + 57, - 8 ) AS col0
----
-57

query I rowsort
SELECT ALL + + 23 col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5751
SELECT - CASE 22 WHEN + COUNT( * ) THEN 26 + - - 20 WHEN + - 91 THEN NULL ELSE + 82 END DIV + 8 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-5751
SELECT - CASE 22 WHEN + COUNT ( * ) THEN 26 + - - 20 WHEN + - 91 THEN NULL ELSE + 82 END / + 8 AS col2
----
-10

query I rowsort
SELECT ALL - + ( 12 ) * - + 47
----
564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT + ( + CAST( NULL AS SIGNED ) ) * AVG ( - 57 ) + - COALESCE ( + 11, - 8 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT + ( + CAST ( NULL AS INTEGER ) ) * AVG ( - 57 ) + - COALESCE ( + 11, - 8 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT COALESCE ( - - ( + 86 ), - COUNT( DISTINCT + - CASE - 35 WHEN + - 49 THEN NULL ELSE 98 * - 93 * + 17 END ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-5754
SELECT COALESCE ( - - ( + 86 ), - COUNT ( DISTINCT + - CASE - 35 WHEN + - 49 THEN NULL ELSE 98 * - 93 * + 17 END ) ) AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5755
SELECT - 1 DIV - - COUNT( * ) * - COUNT( ALL + NULLIF ( - 1, + CAST( NULL AS DECIMAL ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5755
SELECT - 1 / - - COUNT ( * ) * - COUNT ( ALL + NULLIF ( - 1, + CAST ( NULL AS REAL ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT + CAST( + 39 AS SIGNED ) * 79 + 40 * - 26 * + + 98
----
-98839

skipif mysql # not compatible
query I rowsort label-5756
SELECT + CAST ( + 39 AS INTEGER ) * 79 + 40 * - 26 * + + 98
----
-98839

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5757
SELECT ALL CAST( 18 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL CAST ( 18 AS INTEGER )
----
18

query I rowsort
SELECT ALL NULLIF ( - + 12, + 16 ) AS col0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5759
SELECT DISTINCT ( + + SUM( + COALESCE ( - 65, + + 89 DIV 79 ) ) ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-5759
SELECT DISTINCT ( + + SUM ( + COALESCE ( - 65, + + 89 / 79 ) ) ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT DISTINCT + COALESCE ( + 54, 22 ) + - - NULLIF ( + 22, - - 89 - + COUNT( * ) ) * - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-5760
SELECT DISTINCT + COALESCE ( + 54, 22 ) + - - NULLIF ( + 22, - - 89 - + COUNT ( * ) ) * - COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT + COUNT( * ) * + 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-5761
SELECT + COUNT ( * ) * + 39 AS col0
----
39

query I rowsort
SELECT DISTINCT + 89 + - 16
----
73

query II rowsort
SELECT DISTINCT 37 AS col0, 51 * - + 5 + - 74 * 64
----
37
-4991

query I rowsort
SELECT DISTINCT + CASE - - 47 WHEN 71 THEN + 29 + + + 5 END + + - 90 AS col0
----
NULL

query II rowsort
SELECT 37 * + + ( - 12 ), 23 AS col2
----
-444
23

query II rowsort
SELECT - 65 AS col0, - 83 + - 44
----
-65
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT 21 + COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-5767
SELECT 21 + COUNT ( * ) AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5768
SELECT ALL + 9 - CAST( NULL AS SIGNED ) + - 68 * - COUNT( - NULLIF ( + + 87, 69 * + + ( CAST( ( 42 ) AS SIGNED ) ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL + 9 - CAST ( NULL AS INTEGER ) + - 68 * - COUNT ( - NULLIF ( + + 87, 69 * + + ( CAST ( ( 42 ) AS INTEGER ) ) ) ) AS col1
----
NULL

query I rowsort
SELECT + - 69 * 53 + 28 col0
----
-3629

query I rowsort
SELECT ALL - COALESCE ( + 74, + + 87, + - 98 )
----
-74

query I rowsort
SELECT ALL - + 5 - 57 + + - 71 + 37
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT ALL + 90 * + 59 + - MAX( - - 96 ) AS col2
----
5214

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL + 90 * + 59 + - MAX ( - - 96 ) AS col2
----
5214

query I rowsort
SELECT 90 + 18 * + + 11 AS col1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT DISTINCT COALESCE ( - 63, - + 44, - 30 - - COUNT( * ) ) * + + SUM( - NULLIF ( 72, 59 ) ) * - 18 * - 83 col0
----
6776784

skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT COALESCE ( - 63, - + 44, - 30 - - COUNT ( * ) ) * + + SUM ( - NULLIF ( 72, 59 ) ) * - 18 * - 83 col0
----
6776784

query I rowsort
SELECT - 82 * 46 AS col2
----
-3772

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT + 25 * - 38 + 37 * - 89 * + + 21 * - 12 + + COUNT( * ) * 19
----
828905

skipif mysql # not compatible
query I rowsort label-5776
SELECT + 25 * - 38 + 37 * - 89 * + + 21 * - 12 + + COUNT ( * ) * 19
----
828905

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT ALL - SUM( 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL - SUM ( 24 ) AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5778
SELECT 38 * - 64 * + - ( + - 82 ) + 29 + CAST( NULL AS SIGNED ) * 4 * + + ( + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT 38 * - 64 * + - ( + - 82 ) + 29 + CAST ( NULL AS INTEGER ) * 4 * + + ( + 94 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5779
SELECT DISTINCT 78 DIV + 68
----
1

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT 78 / + 68
----
1

query I rowsort
SELECT ( - + 15 ) * + ( + 85 ) * 23
----
-29325

query II rowsort
SELECT 16 + + - NULLIF ( + + 6, + 74 ) col0, 40
----
10
40

query II rowsort
SELECT 78 col1, COALESCE ( 68, 9 + - + 70, 34 ) * 52
----
78
3536

onlyif mysql # DIV for integer division: 
query I rowsort label-5783
SELECT 22 DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5783
SELECT 22 / - 74 AS col0
----
0

query I rowsort
SELECT ALL 89 * - - 77 * ( + - 86 ) * 18 AS col2
----
-10608444

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5785
SELECT DISTINCT 18 / 51 * CAST( NULL AS SIGNED ) * - 84 * COALESCE ( + 94, + 68 + + + 83 * + 40 ), ( - 12 ) col0
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-5785
SELECT DISTINCT 18 / 51 * CAST ( NULL AS INTEGER ) * - 84 * COALESCE ( + 94, + 68 + + + 83 * + 40 ), ( - 12 ) col0
----
NULL
-12

query II rowsort
SELECT DISTINCT - 44 AS col0, + 47 AS col1
----
-44
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5787
SELECT 96 * - ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT 96 * - ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 31 * 38 AS col0
----
1178

onlyif mysql # DIV for integer division: 
query I rowsort label-5789
SELECT 37 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-5789
SELECT 37 / 66
----
0

query I rowsort
SELECT ALL + ( + + 83 ) + 13 col1
----
96

query II rowsort
SELECT 93 AS col2, - 9
----
93
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5792
SELECT 50 DIV + + 22
----
2

skipif mysql # not compatible
query I rowsort label-5792
SELECT 50 / + + 22
----
2

query II rowsort
SELECT ALL 32 AS col0, 50 + + + 47 AS col1
----
32
97

query I rowsort
SELECT DISTINCT 87 + + 67 + 76
----
230

onlyif mysql # aggregate syntax: 
query II rowsort label-5795
SELECT ALL 85 AS col2, MAX( + 39 )
----
85
39

skipif mysql # not compatible
query II rowsort label-5795
SELECT ALL 85 AS col2, MAX ( + 39 )
----
85
39

query II rowsort
SELECT DISTINCT 91 col2, + 38 AS col2
----
91
38

onlyif mysql # aggregate syntax: 
query II rowsort label-5797
SELECT ALL 43 AS col1, + 47 * + COALESCE ( + - MAX( + - 90 ), + 42 ) + - 68 AS col0
----
43
4162

skipif mysql # not compatible
query II rowsort label-5797
SELECT ALL 43 AS col1, + 47 * + COALESCE ( + - MAX ( + - 90 ), + 42 ) + - 68 AS col0
----
43
4162

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT + NULLIF ( + + 25, + ( - - ( + 19 ) ) * - - COUNT( * ) * COUNT( * ) * + + COUNT( * ) / + 23 + - 46 - 33 / 91 * 12 ) + 97
----
122

skipif mysql # not compatible
query I rowsort label-5798
SELECT + NULLIF ( + + 25, + ( - - ( + 19 ) ) * - - COUNT ( * ) * COUNT ( * ) * + + COUNT ( * ) / + 23 + - 46 - 33 / 91 * 12 ) + 97
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5799
SELECT DISTINCT - - 44 - + 60 * AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2, 65 * + CAST( - 34 AS SIGNED ) * - 15
----
NULL
33150

skipif mysql # not compatible
query II rowsort label-5799
SELECT DISTINCT - - 44 - + 60 * AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, 65 * + CAST ( - 34 AS INTEGER ) * - 15
----
NULL
33150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5800
SELECT ALL - NULLIF ( + + 79, ( + CAST( NULL AS SIGNED ) ) * 96 * - COALESCE ( + - 36, - - COUNT( * ) ) )
----
-79

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL - NULLIF ( + + 79, ( + CAST ( NULL AS INTEGER ) ) * 96 * - COALESCE ( + - 36, - - COUNT ( * ) ) )
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-5801
SELECT - + ( - COUNT( * ) ), 90 + + 47 * + - 34 * - - COUNT( * ) AS col1
----
1
-1508

skipif mysql # not compatible
query II rowsort label-5801
SELECT - + ( - COUNT ( * ) ), 90 + + 47 * + - 34 * - - COUNT ( * ) AS col1
----
1
-1508

query I rowsort
SELECT 33 + - + 38 + - 70 AS col2
----
-75

query I rowsort
SELECT - 63 * - 95 AS col0
----
5985

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT ALL - COUNT( - - 66 ) * - 31 * 36 AS col0
----
1116

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL - COUNT ( - - 66 ) * - 31 * 36 AS col0
----
1116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5805
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) + - + MIN( DISTINCT - ( 66 ) ) - 11 + MAX( DISTINCT + 83 ) * 45 * + + 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5805
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) + - + MIN ( DISTINCT - ( 66 ) ) - 11 + MAX ( DISTINCT + 83 ) * 45 * + + 86 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT + COUNT( + 26 )
----
1

skipif mysql # not compatible
query I rowsort label-5806
SELECT + COUNT ( + 26 )
----
1

query II rowsort
SELECT ALL - - 95 AS col1, + 89 + - 25 + + - 81 + - 38
----
95
-55

query II rowsort
SELECT DISTINCT - + ( + 61 ) AS col0, 34 col1
----
-61
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5809
SELECT ALL - 61 AS col1, + COUNT( * ) AS col2
----
-61
1

skipif mysql # not compatible
query II rowsort label-5809
SELECT ALL - 61 AS col1, + COUNT ( * ) AS col2
----
-61
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5810
SELECT 51 DIV + 4
----
12

skipif mysql # not compatible
query I rowsort label-5810
SELECT 51 / + 4
----
12

query I rowsort
SELECT + 5 * + 89 - - 25 AS col1
----
470

onlyif mysql # DIV for integer division: 
query II rowsort label-5812
SELECT ALL - 37 DIV + 65 AS col1, + ( + 94 ) AS col2
----
0
94

skipif mysql # not compatible
query II rowsort label-5812
SELECT ALL - 37 / + 65 AS col1, + ( + 94 ) AS col2
----
0
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5813
SELECT + - AVG ( ALL - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5813
SELECT + - AVG ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ( - 17 ) AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5815
SELECT DISTINCT + NULLIF ( - - COUNT( * ), ( 28 ) ) * 18 * - + COALESCE ( - 30, NULLIF ( - COALESCE ( + 19, SUM( - 98 ) ), + + 43 + - 40 ) ) * CASE - 61 WHEN + 97 THEN + - 58 END + + ( + 36 ) * - CAST( NULL AS SIGNED ) + 81 + + + 49 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT + NULLIF ( - - COUNT ( * ), ( 28 ) ) * 18 * - + COALESCE ( - 30, NULLIF ( - COALESCE ( + 19, SUM ( - 98 ) ), + + 43 + - 40 ) ) * CASE - 61 WHEN + 97 THEN + - 58 END + + ( + 36 ) * - CAST ( NULL AS INTEGER ) + 81 + + + 49 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5816
SELECT 30 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-5816
SELECT 30 / - 72
----
0

query I rowsort
SELECT 74 * 97 AS col1
----
7178

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5818
SELECT + + 5, + CAST( ( + 70 ) AS SIGNED ) AS col2
----
5
70

skipif mysql # not compatible
query II rowsort label-5818
SELECT + + 5, + CAST ( ( + 70 ) AS INTEGER ) AS col2
----
5
70

query I rowsort
SELECT ALL ( - + 37 ) + + 66
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT ALL + 34 * - COALESCE ( + + 56, + + COUNT( ALL + 67 ) + + COUNT( * ) )
----
-1904

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL + 34 * - COALESCE ( + + 56, + + COUNT ( ALL + 67 ) + + COUNT ( * ) )
----
-1904

query I rowsort
SELECT DISTINCT - NULLIF ( 17, 69 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT DISTINCT - COUNT( * ) + - - 52 + 61 col0
----
112

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT - COUNT ( * ) + - - 52 + 61 col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT MIN( - - 92 )
----
92

skipif mysql # not compatible
query I rowsort label-5823
SELECT MIN ( - - 92 )
----
92

query I rowsort
SELECT DISTINCT 53 + - 63 * + 65
----
-4042

query I rowsort
SELECT ALL 12 + - 81
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT DISTINCT MIN( - 69 ) + + 46
----
-23

skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT MIN ( - 69 ) + + 46
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT DISTINCT 35 + COUNT( * ) * 60 col1
----
95

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT 35 + COUNT ( * ) * 60 col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT COUNT( 39 ) + + + 57
----
58

skipif mysql # not compatible
query I rowsort label-5828
SELECT COUNT ( 39 ) + + + 57
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5829
SELECT NULLIF ( - 57, + - 34 ) - - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5829
SELECT NULLIF ( - 57, + - 34 ) - - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT + 76 * - ( - MIN( DISTINCT - + 64 ) )
----
-4864

skipif mysql # not compatible
query I rowsort label-5830
SELECT + 76 * - ( - MIN ( DISTINCT - + 64 ) )
----
-4864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5831
SELECT ALL 34 + - CAST( - 89 AS SIGNED ) * + - 80 - + - SUM( ALL 64 ) + + 24 * 22
----
-6494

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL 34 + - CAST ( - 89 AS INTEGER ) * + - 80 - + - SUM ( ALL 64 ) + + 24 * 22
----
-6494

query I rowsort
SELECT + 40 + 78 AS col1
----
118

query I rowsort
SELECT DISTINCT 64 * + 10 col2
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT + MIN( ALL 30 ) * - 84 AS col2
----
-2520

skipif mysql # not compatible
query I rowsort label-5834
SELECT + MIN ( ALL 30 ) * - 84 AS col2
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT - - 90 + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-5835
SELECT - - 90 + COUNT ( * )
----
91

query I rowsort
SELECT - + 15 + 98
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5837
SELECT + - 4 * 68 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5837
SELECT + - 4 * 68 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT - 57 * - + COUNT( * ) * + 7 * - 52 AS col1
----
-20748

skipif mysql # not compatible
query I rowsort label-5838
SELECT - 57 * - + COUNT ( * ) * + 7 * - 52 AS col1
----
-20748

onlyif mysql # DIV for integer division: 
query I rowsort label-5839
SELECT ALL + 93 DIV ( + 79 )
----
1

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL + 93 / ( + 79 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5840
SELECT + 0 * + 45, + 50 * + CASE 30 WHEN - - 75 + - + CASE AVG ( ALL 72 ) WHEN + + ( - - 6 ) * NULLIF ( COUNT( * ), + SUM( ALL - 68 ) ) - 12 - - + 34 THEN + 41 ELSE - 45 * 46 + + 81 + + - 30 END THEN - 9 WHEN - AVG ( 84 ) THEN NULL ELSE NULL END * + MAX( + 91 ) + + AVG ( + 77 ) / - COUNT( * ) - 46 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5840
SELECT + 0 * + 45, + 50 * + CASE 30 WHEN - - 75 + - + CASE AVG ( ALL 72 ) WHEN + + ( - - 6 ) * NULLIF ( COUNT ( * ), + SUM ( ALL - 68 ) ) - 12 - - + 34 THEN + 41 ELSE - 45 * 46 + + 81 + + - 30 END THEN - 9 WHEN - AVG ( 84 ) THEN NULL ELSE NULL END * + MAX ( + 91 ) + + AVG ( + 77 ) / - COUNT ( * ) - 46 AS col1
----
0
NULL

query I rowsort
SELECT - ( - - 38 ) + 56 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT - + 63 * - - MIN( - 68 )
----
4284

skipif mysql # not compatible
query I rowsort label-5842
SELECT - + 63 * - - MIN ( - 68 )
----
4284

query I rowsort
SELECT - - 46 - - 19 AS col0
----
65

query I rowsort
SELECT + + 77 + - + 32
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5845
SELECT + + MIN( CAST( + 13 AS SIGNED ) ) * + MIN( ALL + 51 ) + + - CAST( NULL AS SIGNED ) - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5845
SELECT + + MIN ( CAST ( + 13 AS INTEGER ) ) * + MIN ( ALL + 51 ) + + - CAST ( NULL AS INTEGER ) - 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT COUNT( DISTINCT + 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5846
SELECT COUNT ( DISTINCT + 92 ) AS col0
----
1

query I rowsort
SELECT ALL - - 75 * + - 84 * + ( 69 ) AS col0
----
-434700

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT - COUNT( * ) + - + 52 * 57
----
-2965

skipif mysql # not compatible
query I rowsort label-5848
SELECT - COUNT ( * ) + - + 52 * 57
----
-2965

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT COALESCE ( - + COUNT( * ), + 51 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5849
SELECT COALESCE ( - + COUNT ( * ), + 51 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5850
SELECT ALL + - COALESCE ( - 6, + 34 ) * - 12 + + 54, - 93 + 6 * CAST( NULL AS SIGNED ) * - ( + ( 73 ) ) AS col2
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-5850
SELECT ALL + - COALESCE ( - 6, + 34 ) * - 12 + + 54, - 93 + 6 * CAST ( NULL AS INTEGER ) * - ( + ( 73 ) ) AS col2
----
-18
NULL

query I rowsort
SELECT + 54 * - 44 + 17 AS col1
----
-2359

query I rowsort
SELECT NULLIF ( 29, - - 48 / + 71 ) AS col1
----
29

onlyif mysql # DIV for integer division: 
query II rowsort label-5853
SELECT + 0 DIV 14, + 7 col0
----
0
7

skipif mysql # not compatible
query II rowsort label-5853
SELECT + 0 / 14, + 7 col0
----
0
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT ALL 58 * 92 * COUNT( * ) + - + 24 + + + 0 AS col2
----
5312

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL 58 * 92 * COUNT ( * ) + - + 24 + + + 0 AS col2
----
5312

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5855
SELECT ALL + 66 DIV + COUNT( DISTINCT + 87 ), 48 * - + 13 AS col0
----
66
-624

skipif mysql # not compatible
query II rowsort label-5855
SELECT ALL + 66 / + COUNT ( DISTINCT + 87 ), 48 * - + 13 AS col0
----
66
-624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5856
SELECT NULLIF ( 37, + NULLIF ( + - CAST( 38 AS SIGNED ), 55 * 20 * + + 92 / - MAX( ALL + - 45 ) + 68 - + 5 ) / - + 34 + - 87 + 7 + + 3 * 80 / - - 5 )
----
37

skipif mysql # not compatible
query I rowsort label-5856
SELECT NULLIF ( 37, + NULLIF ( + - CAST ( 38 AS INTEGER ), 55 * 20 * + + 92 / - MAX ( ALL + - 45 ) + 68 - + 5 ) / - + 34 + - 87 + 7 + + 3 * 80 / - - 5 )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5857
SELECT COALESCE ( 89, + + 64 DIV + + 44, + 41 + - ( - COUNT( * ) ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5857
SELECT COALESCE ( 89, + + 64 / + + 44, + 41 + - ( - COUNT ( * ) ) ) AS col1
----
89

query I rowsort
SELECT - ( - NULLIF ( - 21, - 35 ) ) * + + 15 + + ( + + 11 ) AS col2
----
-304

query I rowsort
SELECT - 88 * 81
----
-7128

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT + CASE 49 WHEN + + 92 THEN - 91 WHEN 60 + + 3 + - ( - 66 ) * + COUNT( * ) * + 98 + - 93 THEN - - 74 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5860
SELECT + CASE 49 WHEN + + 92 THEN - 91 WHEN 60 + + 3 + - ( - 66 ) * + COUNT ( * ) * + 98 + - 93 THEN - - 74 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5861
SELECT DISTINCT - 85 * CAST( NULL AS SIGNED ) * + 44 * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT - 85 * CAST ( NULL AS INTEGER ) * + 44 * - 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5862
SELECT DISTINCT + ( CAST( CAST( - 10 AS SIGNED ) AS SIGNED ) ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT + ( CAST ( CAST ( - 10 AS INTEGER ) AS INTEGER ) ) AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5863
SELECT ALL - CASE - AVG ( - 5 ) WHEN 77 THEN + COALESCE ( + 7, + + CAST( NULL AS DECIMAL ) ) * - + 58 + + 9 WHEN - COUNT( * ) THEN NULL END * - - COUNT( * ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL - CASE - AVG ( - 5 ) WHEN 77 THEN + COALESCE ( + 7, + + CAST ( NULL AS REAL ) ) * - + 58 + + 9 WHEN - COUNT ( * ) THEN NULL END * - - COUNT ( * ) - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT COUNT( DISTINCT 65 )
----
1

skipif mysql # not compatible
query I rowsort label-5864
SELECT COUNT ( DISTINCT 65 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5865
SELECT ALL CAST( + 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL CAST ( + 19 AS INTEGER )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5866
SELECT DISTINCT + 27 * + 83 * - 58 - - COALESCE ( + ( - + 85 ), + 67 * 72 DIV - COUNT( * ) ) DIV + 91
----
-129978

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT + 27 * + 83 * - 58 - - COALESCE ( + ( - + 85 ), + 67 * 72 / - COUNT ( * ) ) / + 91
----
-129978

query I rowsort
SELECT + 87 * + 32
----
2784

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5868
SELECT - 98 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5868
SELECT - 98 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT + COUNT( * ) + 4 col0
----
5

skipif mysql # not compatible
query I rowsort label-5869
SELECT + COUNT ( * ) + 4 col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5870
SELECT - CAST( - 90 AS SIGNED ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-5870
SELECT - CAST ( - 90 AS INTEGER ) AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5871
SELECT ALL CAST( NULL AS SIGNED ) * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL CAST ( NULL AS INTEGER ) * 74
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5872
SELECT + 85 DIV - + 99 * + + MAX( ALL + - 52 ) DIV + ( - 2 )
----
0

skipif mysql # not compatible
query I rowsort label-5872
SELECT + 85 / - + 99 * + + MAX ( ALL + - 52 ) / + ( - 2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT + COUNT( - 27 ) - + + 30 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-5873
SELECT + COUNT ( - 27 ) - + + 30 AS col0
----
-29

query II rowsort
SELECT ALL + 40 col1, 29 AS col1
----
40
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5875
SELECT + - 92 DIV - ( - 18 )
----
-5

skipif mysql # not compatible
query I rowsort label-5875
SELECT + - 92 / - ( - 18 )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-5876
SELECT ALL 62, 97 * + - 43 * ( + COUNT( * ) ) * 23 * - - 59 AS col2
----
62
-5660047

skipif mysql # not compatible
query II rowsort label-5876
SELECT ALL 62, 97 * + - 43 * ( + COUNT ( * ) ) * 23 * - - 59 AS col2
----
62
-5660047

query I rowsort
SELECT ALL - 12 * 96 AS col1
----
-1152

query II rowsort
SELECT - 13 AS col0, + 48
----
-13
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT + 43 + 60 + COUNT( + 77 ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-5879
SELECT + 43 + 60 + COUNT ( + 77 ) AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT - - 42 - ( - 24 ) - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-5880
SELECT - - 42 - ( - 24 ) - COUNT ( * )
----
65

query I rowsort
SELECT ALL 27 + 23 + + 52 * - 81 + + 50 + - 1 AS col1
----
-4113

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5882
SELECT + 13 AS col1, 21 DIV ( + MIN( + 58 ) ) AS col2
----
13
0

skipif mysql # not compatible
query II rowsort label-5882
SELECT + 13 AS col1, 21 / ( + MIN ( + 58 ) ) AS col2
----
13
0

query I rowsort
SELECT ALL - 46 + + 30
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5884
SELECT ALL + + 67 AS col1, + COUNT( * ) + 49
----
67
50

skipif mysql # not compatible
query II rowsort label-5884
SELECT ALL + + 67 AS col1, + COUNT ( * ) + 49
----
67
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5885
SELECT ALL 30 DIV - 30 + + MIN( - 55 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL 30 / - 30 + + MIN ( - 55 ) AS col0
----
-56

query II rowsort
SELECT + ( + ( 9 ) ) AS col2, - 49 AS col1
----
9
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5887
SELECT ALL - 20 DIV 87 + - - SUM( - + 52 ) DIV + - MAX( ALL - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL - 20 / 87 + - - SUM ( - + 52 ) / + - MAX ( ALL - 86 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5888
SELECT CASE COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN - - 24 * - ( - 77 ) ELSE COUNT( * ) END * 27
----
27

skipif mysql # not compatible
query I rowsort label-5888
SELECT CASE COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN - - 24 * - ( - 77 ) ELSE COUNT ( * ) END * 27
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT 31 * - COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-5889
SELECT 31 * - COUNT ( * ) AS col0
----
-31

query II rowsort
SELECT DISTINCT + 62 * - 63, + 97 AS col0
----
-3906
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL - ( + COUNT( * ) ) + - 77
----
-78

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL - ( + COUNT ( * ) ) + - 77
----
-78

query I rowsort
SELECT ALL + NULLIF ( 37, - - 39 ) - + + 43 - - + 96
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT DISTINCT + CASE + + 52 WHEN - + 15 THEN + 19 * - + COUNT( * ) * + 78 END * + - 1 * - + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT + CASE + + 52 WHEN - + 15 THEN + 19 * - + COUNT ( * ) * + 78 END * + - 1 * - + 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5894
SELECT ALL - ( 51 ) AS col2, 34 * + SUM( + - 64 ) * - - 95 * + ( 44 ) AS col1
----
-51
-9095680

skipif mysql # not compatible
query II rowsort label-5894
SELECT ALL - ( 51 ) AS col2, 34 * + SUM ( + - 64 ) * - - 95 * + ( 44 ) AS col1
----
-51
-9095680

query I rowsort
SELECT 47 * + 75
----
3525

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT DISTINCT + COALESCE ( - 61, - - COUNT( * ) ) - + 20 - + 92 + + + 60
----
-113

skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT + COALESCE ( - 61, - - COUNT ( * ) ) - + 20 - + 92 + + + 60
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5897
SELECT ALL + CAST( NULL AS SIGNED ) / COUNT( * ) * - + CASE + + 54 WHEN + 24 THEN + 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL + CAST ( NULL AS INTEGER ) / COUNT ( * ) * - + CASE + + 54 WHEN + 24 THEN + 51 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5898
SELECT 30 + - - 46 + - + 25 DIV + - ( + 29 ) + - + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5898
SELECT 30 + - - 46 + - + 25 / + - ( + 29 ) + - + COUNT ( * ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT COUNT( - + 86 ) - + 40 col0
----
-39

skipif mysql # not compatible
query I rowsort label-5899
SELECT COUNT ( - + 86 ) - + 40 col0
----
-39

query I rowsort
SELECT 36 * + 65 * - 49 col1
----
-114660

query I rowsort
SELECT DISTINCT + 0 * + 25 AS col2
----
0

query I rowsort
SELECT 46 * - + 49 AS col1
----
-2254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5903
SELECT ALL + 82 * + 89 DIV - COUNT( * )
----
-7298

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL + 82 * + 89 / - COUNT ( * )
----
-7298

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT MIN( - - 21 ) + + NULLIF ( 39, + COUNT( ALL 36 ) - 23 + + + COUNT( * ) / 86 - 68 / ( - 36 ) - - 46 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-5904
SELECT MIN ( - - 21 ) + + NULLIF ( 39, + COUNT ( ALL 36 ) - 23 + + + COUNT ( * ) / 86 - 68 / ( - 36 ) - - 46 ) col2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5905
SELECT ALL + - MIN( 57 ) * 89 - 60 - + - COUNT( * ) DIV - 28 AS col2
----
-5133

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL + - MIN ( 57 ) * 89 - 60 - + - COUNT ( * ) / - 28 AS col2
----
-5133

onlyif mysql # DIV for integer division: 
query I rowsort label-5906
SELECT ALL + ( - COALESCE ( - 27, - 61 * 23 DIV 26 ) ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL + ( - COALESCE ( - 27, - 61 * 23 / 26 ) ) AS col2
----
27

query I rowsort
SELECT + 83 + + 69 + - 63 AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5908
SELECT - COUNT( ALL - + 2 ) * + CAST( NULL AS SIGNED ) * - ( + 58 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT - COUNT ( ALL - + 2 ) * + CAST ( NULL AS INTEGER ) * - ( + 58 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5909
SELECT DISTINCT + - NULLIF ( - 50, + 59 + 52 ) * + 80 + - 8 + + 13 DIV + - 92
----
3992

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT + - NULLIF ( - 50, + 59 + 52 ) * + 80 + - 8 + + 13 / + - 92
----
3992

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT ALL 44 + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL 44 + COUNT ( * )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5911
SELECT - MAX( ALL + CAST( NULL AS SIGNED ) ) + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5911
SELECT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + - 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5912
SELECT MAX( + CAST( NULL AS DECIMAL ) ) * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT MAX ( + CAST ( NULL AS REAL ) ) * - 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT - 32 + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-5913
SELECT - 32 + COUNT ( * )
----
-31

query I rowsort
SELECT DISTINCT 6 + - 19
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT ALL COALESCE ( + 94, - + 31 * ( - + CASE + 37 WHEN - ( + ( 73 ) ) + COUNT( * ) THEN NULL WHEN - 34 THEN + CASE COUNT( * ) WHEN + 23 THEN NULL WHEN - + 1 THEN 7 WHEN + COUNT( * ) - + + 45 THEN NULL END - + - COUNT( * ) END ) ) + 45
----
139

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL COALESCE ( + 94, - + 31 * ( - + CASE + 37 WHEN - ( + ( 73 ) ) + COUNT ( * ) THEN NULL WHEN - 34 THEN + CASE COUNT ( * ) WHEN + 23 THEN NULL WHEN - + 1 THEN 7 WHEN + COUNT ( * ) - + + 45 THEN NULL END - + - COUNT ( * ) END ) ) + 45
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT DISTINCT + COUNT( * ) + 16 * + - ( MIN( DISTINCT 53 ) ) AS col1
----
-847

skipif mysql # not compatible
query I rowsort label-5916
SELECT DISTINCT + COUNT ( * ) + 16 * + - ( MIN ( DISTINCT 53 ) ) AS col1
----
-847

query I rowsort
SELECT ALL - + ( - + 48 ) + 42
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT ALL + 25 * + COUNT( * ) * - 61 + + + 74 AS col2
----
-1451

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL + 25 * + COUNT ( * ) * - 61 + + + 74 AS col2
----
-1451

query I rowsort
SELECT DISTINCT - 67 + 22
----
-45

query I rowsort
SELECT ALL ( - 60 ) + - + 56
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5921
SELECT - 48 * - + 47 - + + NULLIF ( - CAST( - ( - + 90 ) AS SIGNED ), 89 / - + 46 * COUNT( * ) ) + SUM( DISTINCT - + 14 )
----
2332

skipif mysql # not compatible
query I rowsort label-5921
SELECT - 48 * - + 47 - + + NULLIF ( - CAST ( - ( - + 90 ) AS INTEGER ), 89 / - + 46 * COUNT ( * ) ) + SUM ( DISTINCT - + 14 )
----
2332

query I rowsort
SELECT 39 + + 61 * - 95
----
-5756

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT DISTINCT - MAX( + 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT - MAX ( + 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT ALL SUM( DISTINCT 68 ) - + COUNT( * ) * + + NULLIF ( - COUNT( * ), - 88 ) col2
----
69

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL SUM ( DISTINCT 68 ) - + COUNT ( * ) * + + NULLIF ( - COUNT ( * ), - 88 ) col2
----
69

query I rowsort
SELECT 15 * 64 col1
----
960

onlyif mysql # DIV for integer division: 
query I rowsort label-5926
SELECT 57 DIV - + 39 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5926
SELECT 57 / - + 39 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5927
SELECT DISTINCT 77 DIV + 6
----
12

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT 77 / + 6
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT ALL - MAX( 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL - MAX ( 16 )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5929
SELECT - 93 DIV - COUNT( * ) + - 80 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-5929
SELECT - 93 / - COUNT ( * ) + - 80 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT ALL COUNT( * ) - 79
----
-78

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL COUNT ( * ) - 79
----
-78

onlyif mysql # DIV for integer division: 
query II rowsort label-5931
SELECT ALL - 5, 96 + - 14 DIV + 94 * - + 44 AS col1
----
-5
96

skipif mysql # not compatible
query II rowsort label-5931
SELECT ALL - 5, 96 + - 14 / + 94 * - + 44 AS col1
----
-5
96

query I rowsort
SELECT 40 + + - 54
----
-14

query I rowsort
SELECT ALL + 13 * 18 AS col0
----
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5934
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 51 * - CASE + + 74 WHEN + + 76 + - 8 * + 76 THEN NULL WHEN 43 THEN NULL ELSE + COUNT( * ) + + - 4 END * + + 26 * - COUNT( * ) - + - ( + 7 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5934
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 51 * - CASE + + 74 WHEN + + 76 + - 8 * + 76 THEN NULL WHEN 43 THEN NULL ELSE + COUNT ( * ) + + - 4 END * + + 26 * - COUNT ( * ) - + - ( + 7 ) AS col1
----
NULL

query I rowsort
SELECT ( - 56 ) * - 60 col0
----
3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5936
SELECT 75 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5936
SELECT 75 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 14 * + - 97 * ( 71 ) AS col0
----
-96418

query I rowsort
SELECT 82 * - - 95 AS col1
----
7790

query I rowsort
SELECT 85 + - + ( + 85 ) * + 36 AS col2
----
-2975

query II rowsort
SELECT DISTINCT - ( ( - - 84 ) ) AS col2, - 20 AS col0
----
-84
-20

query I rowsort
SELECT ALL - ( + + 17 )
----
-17

query I rowsort
SELECT 33 * - 15 col1
----
-495

query I rowsort
SELECT ALL - - 50 col2
----
50

query II rowsort
SELECT DISTINCT - + 55, 73 col2
----
-55
73

query I rowsort
SELECT ALL - + 60 + - + 45
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-5946
SELECT 13 DIV - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5946
SELECT 13 / - 84 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT - 47 - COUNT( * ) + - + ( - 3 )
----
-45

skipif mysql # not compatible
query I rowsort label-5947
SELECT - 47 - COUNT ( * ) + - + ( - 3 )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5948
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - + 73 - 65 * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5948
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - + 73 - 65 * 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT + MIN( ALL - 64 ) - + - 31 * - - 25
----
711

skipif mysql # not compatible
query I rowsort label-5949
SELECT + MIN ( ALL - 64 ) - + - 31 * - - 25
----
711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5950
SELECT 82 * - COUNT( * ) DIV COUNT( * ) DIV - - 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5950
SELECT 82 * - COUNT ( * ) / COUNT ( * ) / - - 84 AS col1
----
0

query I rowsort
SELECT DISTINCT + 18 + + - 5 AS col2
----
13

query I rowsort
SELECT ALL - 60 * + 23
----
-1380

query I rowsort
SELECT DISTINCT + NULLIF ( 38, ( + + ( - 33 ) ) + - 95 ) AS col1
----
38

query I rowsort
SELECT ALL + 38 + - - ( - - 86 )
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL + 68 * + - 12 * - + COUNT( * ) + 7 AS col1
----
823

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL + 68 * + - 12 * - + COUNT ( * ) + 7 AS col1
----
823

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT COUNT( * ) + CASE - 44 WHEN + 97 + - 34 THEN + 70 + AVG ( ALL + 82 ) ELSE NULL END + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5956
SELECT COUNT ( * ) + CASE - 44 WHEN + 97 + - 34 THEN + 70 + AVG ( ALL + 82 ) ELSE NULL END + 10 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5957
SELECT COALESCE ( 80, - CAST( - ( + 54 ) AS SIGNED ) * 16 + + + 38 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5957
SELECT COALESCE ( 80, - CAST ( - ( + 54 ) AS INTEGER ) * 16 + + + 38 ) AS col1
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5958
SELECT ALL - AVG ( DISTINCT CASE - 88 WHEN 14 * + + CAST( NULL AS DECIMAL ) THEN - 9 * + 94 + - 58 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL - AVG ( DISTINCT CASE - 88 WHEN 14 * + + CAST ( NULL AS REAL ) THEN - 9 * + 94 + - 58 END ) AS col0
----
NULL

query I rowsort
SELECT + + 83 + 82 * + - COALESCE ( - 3, + + 18 ) AS col2
----
329

query I rowsort
SELECT ALL - 77 - + + 90
----
-167

query II rowsort
SELECT DISTINCT 95 AS col1, 47
----
95
47

query I rowsort
SELECT + 24 * + 51
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT ALL 36 * + CASE 81 WHEN - + 30 THEN - COUNT( + 19 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL 36 * + CASE 81 WHEN - + 30 THEN - COUNT ( + 19 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT DISTINCT 71 * + CASE - + 7 WHEN + 74 / + 4 * - 17 THEN NULL WHEN + 21 * COUNT( * ) + + 55 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT 71 * + CASE - + 7 WHEN + 74 / + 4 * - 17 THEN NULL WHEN + 21 * COUNT ( * ) + + 55 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL 0 * + 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT + COALESCE ( + 11, - MIN( - + COALESCE ( + - 47, + 42 ) ) + 79 + 66 * 59 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5966
SELECT + COALESCE ( + 11, - MIN ( - + COALESCE ( + - 47, + 42 ) ) + 79 + 66 * 59 ) AS col0
----
11

query I rowsort
SELECT - 63 * - 63 + 75
----
4044

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5968
SELECT ALL + 1 AS col1, + CAST( - + 60 AS SIGNED )
----
1
-60

skipif mysql # not compatible
query II rowsort label-5968
SELECT ALL + 1 AS col1, + CAST ( - + 60 AS INTEGER )
----
1
-60

query I rowsort
SELECT + 99 * + 2
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-5970
SELECT + 64 * 70 DIV 59 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-5970
SELECT + 64 * 70 / 59 AS col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5971
SELECT ALL 6 * - COUNT( * ) + + 89 DIV - 86 + - MIN( + 56 ) DIV 40
----
-8

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL 6 * - COUNT ( * ) + + 89 / - 86 + - MIN ( + 56 ) / 40
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT CASE + - 6 WHEN - 61 THEN - + 97 WHEN + - 82 * 67 + + 96 + - - NULLIF ( + 85, - + CASE + 50 WHEN - + ( - 67 ) THEN COUNT( * ) + + 89 WHEN + + 91 THEN + 42 / - + 57 * + COUNT( * ) * - - COUNT( * ) END ) * + COUNT( * ) - COUNT( * ) * - + NULLIF ( + + 64, COUNT( - 43 ) + - + 35 * COALESCE ( - 45, 15, - - 91 + + + 74 ) + - ( - + ( + ( + COUNT( * ) ) ) ) ) THEN + 9 ELSE + + 73 END
----
73

skipif mysql # not compatible
query I rowsort label-5972
SELECT CASE + - 6 WHEN - 61 THEN - + 97 WHEN + - 82 * 67 + + 96 + - - NULLIF ( + 85, - + CASE + 50 WHEN - + ( - 67 ) THEN COUNT ( * ) + + 89 WHEN + + 91 THEN + 42 / - + 57 * + COUNT ( * ) * - - COUNT ( * ) END ) * + COUNT ( * ) - COUNT ( * ) * - + NULLIF ( + + 64, COUNT ( - 43 ) + - + 35 * COALESCE ( - 45, 15, - - 91 + + + 74 ) + - ( - + ( + ( + COUNT ( * ) ) ) ) ) THEN + 9 ELSE + + 73 END
----
73

query I rowsort
SELECT ALL + 83 * + + 76
----
6308

onlyif mysql # aggregate syntax: 
query III rowsort label-5974
SELECT ALL + 92, + 1 * - ( - COUNT( * ) ) * MAX( ALL + - 46 ) - ( - + MAX( ALL - 75 ) ) AS col2, - ( + NULLIF ( NULLIF ( - COUNT( * ), 50 ), - 36 * - - 96 ) ) + - ( - 61 ) AS col2
----
92
-121
62

skipif mysql # not compatible
query III rowsort label-5974
SELECT ALL + 92, + 1 * - ( - COUNT ( * ) ) * MAX ( ALL + - 46 ) - ( - + MAX ( ALL - 75 ) ) AS col2, - ( + NULLIF ( NULLIF ( - COUNT ( * ), 50 ), - 36 * - - 96 ) ) + - ( - 61 ) AS col2
----
92
-121
62

query I rowsort
SELECT ALL 29 * 78 - 11 + + - 19 col0
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT + 12 * + 94 - - NULLIF ( + SUM( 48 ), MAX( ALL - + 12 ) + + COALESCE ( + - 90, MAX( + 87 ), 55 - - 24 ) )
----
1176

skipif mysql # not compatible
query I rowsort label-5976
SELECT + 12 * + 94 - - NULLIF ( + SUM ( 48 ), MAX ( ALL - + 12 ) + + COALESCE ( + - 90, MAX ( + 87 ), 55 - - 24 ) )
----
1176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5977
SELECT - - 30 - - + 97 + + CAST( NULL AS SIGNED ) / - ( 18 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT - - 30 - - + 97 + + CAST ( NULL AS INTEGER ) / - ( 18 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT + NULLIF ( - 24, + + SUM( ALL 96 ) * - 95 )
----
-24

skipif mysql # not compatible
query I rowsort label-5978
SELECT + NULLIF ( - 24, + + SUM ( ALL 96 ) * - 95 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT + 45 * + - COUNT( * ) + + 33 - - ( + - 18 )
----
-30

skipif mysql # not compatible
query I rowsort label-5979
SELECT + 45 * + - COUNT ( * ) + + 33 - - ( + - 18 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT - + 55 - - COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-5980
SELECT - + 55 - - COUNT ( * ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-5981
SELECT + + 74 AS col2, ( - COUNT( * ) ) + + 55 AS col2
----
74
54

skipif mysql # not compatible
query II rowsort label-5981
SELECT + + 74 AS col2, ( - COUNT ( * ) ) + + 55 AS col2
----
74
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT DISTINCT 86 * - COUNT( * ) * - + 76 + + 85 AS col1
----
6621

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT 86 * - COUNT ( * ) * - + 76 + + 85 AS col1
----
6621

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT - - SUM( ALL - 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5983
SELECT - - SUM ( ALL - 47 ) AS col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5984
SELECT DISTINCT + COALESCE ( - 30, + 63 * + 32 DIV - 40 + + + 0 + - - 53 + 25 DIV 31 + - COUNT( * ) + - NULLIF ( + + 18, + 81 ) ) + - + 54 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT + COALESCE ( - 30, + 63 * + 32 / - 40 + + + 0 + - - 53 + 25 / 31 + - COUNT ( * ) + - NULLIF ( + + 18, + 81 ) ) + - + 54 AS col1
----
-84

query I rowsort
SELECT DISTINCT - - 90 + 10
----
100

query I rowsort
SELECT DISTINCT + 67 - 20
----
47

query I rowsort
SELECT - + 3 * + 53
----
-159

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5988
SELECT DISTINCT + + 11 - CAST( NULL AS DECIMAL ) + - - 98 * + 30 * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT + + 11 - CAST ( NULL AS REAL ) + - - 98 * + 30 * + 75
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT ALL - + 48 DIV + 83 col0
----
0

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL - + 48 / + 83 col0
----
0

query I rowsort
SELECT - + 42 * 76 AS col2
----
-3192

query I rowsort
SELECT ALL + 73 - 66 AS col2
----
7

query I rowsort
SELECT DISTINCT - 15 * + 17 AS col0
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT DISTINCT + MIN( ALL + + 93 ) - - ( + 87 ) AS col0
----
180

skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT + MIN ( ALL + + 93 ) - - ( + 87 ) AS col0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT ALL - MAX( + + 78 ) * + 34
----
-2652

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL - MAX ( + + 78 ) * + 34
----
-2652

query I rowsort
SELECT - 42 + + 7 col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT ALL - COUNT( * ) * - 60
----
60

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL - COUNT ( * ) * - 60
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5997
SELECT DISTINCT - 76 - + 86, + MAX( DISTINCT + 28 ) / CAST( NULL AS SIGNED ) + CASE - 25 WHEN - 58 + - - 0 + 22 THEN NULL ELSE - 45 END + - + 49 * + SUM( + 39 ) + - + 99 AS col1
----
-162
NULL

skipif mysql # not compatible
query II rowsort label-5997
SELECT DISTINCT - 76 - + 86, + MAX ( DISTINCT + 28 ) / CAST ( NULL AS INTEGER ) + CASE - 25 WHEN - 58 + - - 0 + 22 THEN NULL ELSE - 45 END + - + 49 * + SUM ( + 39 ) + - + 99 AS col1
----
-162
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5998
SELECT DISTINCT - COUNT( * ) * 62 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT - COUNT ( * ) * 62 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT + 70 * + + SUM( DISTINCT - 2 )
----
-140

skipif mysql # not compatible
query I rowsort label-5999
SELECT + 70 * + + SUM ( DISTINCT - 2 )
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT - 82 * + + COUNT( * ) * - 16
----
1312

skipif mysql # not compatible
query I rowsort label-6000
SELECT - 82 * + + COUNT ( * ) * - 16
----
1312

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT + 88 + - SUM( 60 )
----
28

skipif mysql # not compatible
query I rowsort label-6001
SELECT + 88 + - SUM ( 60 )
----
28

query II rowsort
SELECT ALL + ( - 23 ), 15 AS col2
----
-23
15

query I rowsort
SELECT - 34 * - 20 + 87 + + 2 + 83 + - 83
----
769

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT - 35 * - - COALESCE ( - ( + COUNT( * ) ), 44 - - COUNT( * ) + 36 + 18 * 89 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6004
SELECT - 35 * - - COALESCE ( - ( + COUNT ( * ) ), 44 - - COUNT ( * ) + 36 + 18 * 89 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT + 40 * + MIN( ALL + 44 ) AS col0
----
1760

skipif mysql # not compatible
query I rowsort label-6005
SELECT + 40 * + MIN ( ALL + 44 ) AS col0
----
1760

onlyif mysql # DIV for integer division: 
query I rowsort label-6006
SELECT ALL 34 DIV + 25 + - - 46 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL 34 / + 25 + - - 46 AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6007
SELECT ALL 59 DIV + 82 * + 11 + - + 53
----
-53

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL 59 / + 82 * + 11 + - + 53
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6008
SELECT DISTINCT 96 DIV NULLIF ( + - 41, - 61 ) + - + 42 DIV - 79
----
-2

skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT 96 / NULLIF ( + - 41, - 61 ) + - + 42 / - 79
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-6009
SELECT ALL 77 DIV + 79 + 8 + + 90 - - 30 AS col2, + 6 * - - 37 DIV 37 * 93
----
128
558

skipif mysql # not compatible
query II rowsort label-6009
SELECT ALL 77 / + 79 + 8 + + 90 - - 30 AS col2, + 6 * - - 37 / 37 * 93
----
128
558

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6010
SELECT ALL - 78 * - CASE - - CAST( NULL AS DECIMAL ) WHEN + 44 + - 30 THEN NULLIF ( - + 78, + 83 ) * 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL - 78 * - CASE - - CAST ( NULL AS REAL ) WHEN + 44 + - 30 THEN NULLIF ( - + 78, + 83 ) * 93 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6011
SELECT DISTINCT - 86 / - 95 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT - 86 / - 95 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT + MIN( DISTINCT - - ( ( - 3 ) ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6012
SELECT + MIN ( DISTINCT - - ( ( - 3 ) ) ) AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6013
SELECT - + 64 DIV - + COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-6013
SELECT - + 64 / - + COUNT ( * ) AS col2
----
64

query I rowsort
SELECT DISTINCT + + ( + 5 ) AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6015
SELECT + 98 + + COUNT( * ) DIV 33
----
98

skipif mysql # not compatible
query I rowsort label-6015
SELECT + 98 + + COUNT ( * ) / 33
----
98

query I rowsort
SELECT + 12 + - 77
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6017
SELECT ALL - - 88 * - 8 * COUNT( * ) + + + 42 + + 4 + + + 53 + + 33 * + ( + 27 ) * - 2 / - - 19 + - CASE - 76 WHEN 70 THEN + COUNT( * ) * 41 * - - 16 - - - 65 + 72 WHEN + + 22 * SUM( - ( - 8 ) ) THEN NULL WHEN - ( + 28 ) * ( + - CAST( - 11 AS DECIMAL ) ) + - COALESCE ( + + CAST( NULL AS SIGNED ), + + 53 + + 95 ) THEN + 32 ELSE NULL END AS col1, + 72 AS col0
----
NULL
72

skipif mysql # not compatible
query II rowsort label-6017
SELECT ALL - - 88 * - 8 * COUNT ( * ) + + + 42 + + 4 + + + 53 + + 33 * + ( + 27 ) * - 2 / - - 19 + - CASE - 76 WHEN 70 THEN + COUNT ( * ) * 41 * - - 16 - - - 65 + 72 WHEN + + 22 * SUM ( - ( - 8 ) ) THEN NULL WHEN - ( + 28 ) * ( + - CAST ( - 11 AS REAL ) ) + - COALESCE ( + + CAST ( NULL AS INTEGER ), + + 53 + + 95 ) THEN + 32 ELSE NULL END AS col1, + 72 AS col0
----
NULL
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6018
SELECT + CAST( + 84 AS SIGNED ) * COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-6018
SELECT + CAST ( + 84 AS INTEGER ) * COUNT ( * ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT + - 82 + + COUNT( * ) + - - 6 * 2
----
-69

skipif mysql # not compatible
query I rowsort label-6019
SELECT + - 82 + + COUNT ( * ) + - - 6 * 2
----
-69

query II rowsort
SELECT DISTINCT - 79 * 10 + + + 31, + ( - 50 ) AS col1
----
-759
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ALL + SUM( ALL + + 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL + SUM ( ALL + + 51 ) AS col0
----
51

query I rowsort
SELECT - 13 * + + 58 - - - 67 - - + 72 * - - ( + 29 ) AS col2
----
1267

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT + COUNT( * ) * - + 25 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-6023
SELECT + COUNT ( * ) * - + 25 AS col1
----
-25

query I rowsort
SELECT - 10 + - 6
----
-16

query I rowsort
SELECT DISTINCT 80 * 29 AS col2
----
2320

query II rowsort
SELECT ALL - 86 * + - 56 AS col2, - 21 * 18
----
4816
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT CASE 47 WHEN - 44 + + COUNT( * ) THEN NULL ELSE - 55 * - 78 * 0 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6027
SELECT CASE 47 WHEN - 44 + + COUNT ( * ) THEN NULL ELSE - 55 * - 78 * 0 END AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT COUNT( * ) - 12
----
-11

skipif mysql # not compatible
query I rowsort label-6028
SELECT COUNT ( * ) - 12
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT ALL COUNT( * ) * 45 * + ( + MAX( + 40 ) )
----
1800

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL COUNT ( * ) * 45 * + ( + MAX ( + 40 ) )
----
1800

query I rowsort
SELECT 40 * 15 AS col1
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT ALL COUNT( * ) * 87 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL COUNT ( * ) * 87 AS col1
----
87

query II rowsort
SELECT 11 AS col2, 77 col2
----
11
77

onlyif mysql # DIV for integer division: 
query II rowsort label-6033
SELECT ALL 0 AS col2, 2 DIV - + 68 * - - 36 col1
----
0
0

skipif mysql # not compatible
query II rowsort label-6033
SELECT ALL 0 AS col2, 2 / - + 68 * - - 36 col1
----
0
0

query I rowsort
SELECT 56 + 21 AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6035
SELECT COALESCE ( - + 11, CASE - CASE + - MIN( 26 ) WHEN + COUNT( * ) + + 22 THEN NULL ELSE - ( - NULLIF ( + 83, + COUNT( * ) ) ) * - - 24 END WHEN - 64 * - 29 THEN + COUNT( * ) / - 30 + + COUNT( * ) + + + 9 / - CAST( NULL AS SIGNED ) * + AVG ( + 36 ) ELSE + 90 + - 60 + + 26 / - 22 END + - COUNT( - 5 ) + + 94 * + - NULLIF ( MAX( - 13 ), + 52 * 7 * - - 59 + + - 19 ) ) * + CAST( NULL AS SIGNED ) * + NULLIF ( + COUNT( * ), + CAST( - + COUNT( * ) AS SIGNED ) ) + + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT COALESCE ( - + 11, CASE - CASE + - MIN ( 26 ) WHEN + COUNT ( * ) + + 22 THEN NULL ELSE - ( - NULLIF ( + 83, + COUNT ( * ) ) ) * - - 24 END WHEN - 64 * - 29 THEN + COUNT ( * ) / - 30 + + COUNT ( * ) + + + 9 / - CAST ( NULL AS INTEGER ) * + AVG ( + 36 ) ELSE + 90 + - 60 + + 26 / - 22 END + - COUNT ( - 5 ) + + 94 * + - NULLIF ( MAX ( - 13 ), + 52 * 7 * - - 59 + + - 19 ) ) * + CAST ( NULL AS INTEGER ) * + NULLIF ( + COUNT ( * ), + CAST ( - + COUNT ( * ) AS INTEGER ) ) + + 72 AS col0
----
NULL

query I rowsort
SELECT 56 * - 48 col0
----
-2688

query I rowsort
SELECT ALL - 82 + 64 * CASE 53 WHEN - 11 THEN NULL WHEN - COALESCE ( - 23, - 39 ) + - + 61 THEN + 80 END / 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6038
SELECT ALL - ( - MIN( DISTINCT - - CAST( ( - 82 ) AS SIGNED ) ) )
----
-82

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL - ( - MIN ( DISTINCT - - CAST ( ( - 82 ) AS INTEGER ) ) )
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6039
SELECT ALL + 55 + + 13 DIV - COALESCE ( + 76, 83 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL + 55 + + 13 / - COALESCE ( + 76, 83 ) AS col2
----
55

query II rowsort
SELECT DISTINCT - 49 AS col0, 59 AS col1
----
-49
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6041
SELECT 35, + 28 * COALESCE ( + 69, - 16 * + 56 - + 90 + + 86, 78 - - COUNT( * ) * + SUM( ALL - 49 ) ) AS col2
----
35
1932

skipif mysql # not compatible
query II rowsort label-6041
SELECT 35, + 28 * COALESCE ( + 69, - 16 * + 56 - + 90 + + 86, 78 - - COUNT ( * ) * + SUM ( ALL - 49 ) ) AS col2
----
35
1932

query I rowsort
SELECT ALL - 83 * 48 AS col0
----
-3984

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT + ( + COUNT( * ) ) * - - 82 * 33 + + + 67
----
2773

skipif mysql # not compatible
query I rowsort label-6043
SELECT + ( + COUNT ( * ) ) * - - 82 * 33 + + + 67
----
2773

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT ALL + COUNT( * ) + MIN( ALL - - 34 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL + COUNT ( * ) + MIN ( ALL - - 34 ) AS col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6045
SELECT - 40 DIV + 64 * + COUNT( * ) - 68 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-6045
SELECT - 40 / + 64 * + COUNT ( * ) - 68 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-6046
SELECT + + 54 AS col0, - COUNT( DISTINCT NULLIF ( COALESCE ( ( - 80 ), - 11 * - CASE 48 WHEN - 53 THEN - 72 END + - - 76 ), + 38 * - NULLIF ( - 85, - 37 ) ) ) AS col1
----
54
-1

skipif mysql # not compatible
query II rowsort label-6046
SELECT + + 54 AS col0, - COUNT ( DISTINCT NULLIF ( COALESCE ( ( - 80 ), - 11 * - CASE 48 WHEN - 53 THEN - 72 END + - - 76 ), + 38 * - NULLIF ( - 85, - 37 ) ) ) AS col1
----
54
-1

query I rowsort
SELECT + 36 - - 83 AS col0
----
119

query II rowsort
SELECT ALL - NULLIF ( + + 19, + + 31 ) AS col2, 76
----
-19
76

query II rowsort
SELECT DISTINCT - - 10 col0, - 87 AS col0
----
10
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6050
SELECT ALL - CAST( NULL AS SIGNED ) * + 14 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL - CAST ( NULL AS INTEGER ) * + 14 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6051
SELECT - 58 * MAX( DISTINCT - CAST( - 80 AS SIGNED ) ) + + 84 AS col0
----
-4556

skipif mysql # not compatible
query I rowsort label-6051
SELECT - 58 * MAX ( DISTINCT - CAST ( - 80 AS INTEGER ) ) + + 84 AS col0
----
-4556

query I rowsort
SELECT ALL - + COALESCE ( + - 13, + 58, 20 ) AS col2
----
13

query II rowsort
SELECT + 77 AS col1, 50
----
77
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6054
SELECT - 16 + + - 95 DIV - COUNT( DISTINCT 84 ) AS col0, 65 AS col0
----
79
65

skipif mysql # not compatible
query II rowsort label-6054
SELECT - 16 + + - 95 / - COUNT ( DISTINCT 84 ) AS col0, 65 AS col0
----
79
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT - 85 - 84 * - SUM( ALL + 97 ) AS col1
----
8063

skipif mysql # not compatible
query I rowsort label-6055
SELECT - 85 - 84 * - SUM ( ALL + 97 ) AS col1
----
8063

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT ALL + MIN( 40 ) * - + 44
----
-1760

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL + MIN ( 40 ) * - + 44
----
-1760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6057
SELECT - 25 * - COUNT( DISTINCT + NULLIF ( - 19, - + 27 ) ) * COALESCE ( + 13, - - ( + 95 ) DIV + 40 * + 79 + + - 67 )
----
325

skipif mysql # not compatible
query I rowsort label-6057
SELECT - 25 * - COUNT ( DISTINCT + NULLIF ( - 19, - + 27 ) ) * COALESCE ( + 13, - - ( + 95 ) / + 40 * + 79 + + - 67 )
----
325

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6058
SELECT - 90 * + + 14 + + 44 - - CAST( NULL AS SIGNED ) + CASE + ( - 2 ) WHEN + 44 THEN - 63 - - 47 ELSE - 12 * ( 69 ) + - COALESCE ( + 51, + + 93 ) END - CAST( + 38 AS SIGNED ) + + + 38 * + 94 + - - CAST( NULL AS SIGNED ) AS col1, ( - + 15 ) col0
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-6058
SELECT - 90 * + + 14 + + 44 - - CAST ( NULL AS INTEGER ) + CASE + ( - 2 ) WHEN + 44 THEN - 63 - - 47 ELSE - 12 * ( 69 ) + - COALESCE ( + 51, + + 93 ) END - CAST ( + 38 AS INTEGER ) + + + 38 * + 94 + - - CAST ( NULL AS INTEGER ) AS col1, ( - + 15 ) col0
----
NULL
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6059
SELECT + 52 / 35 + ( - CAST( NULL AS DECIMAL ) ) + + - ( COUNT( + 7 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6059
SELECT + 52 / 35 + ( - CAST ( NULL AS REAL ) ) + + - ( COUNT ( + 7 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT ALL - COUNT( * ) * + - 89 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL - COUNT ( * ) * + - 89 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT SUM( DISTINCT + 26 ) + COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-6061
SELECT SUM ( DISTINCT + 26 ) + COUNT ( * ) AS col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6062
SELECT 28 DIV + MAX( 73 ) * + 39 * - - 90 + - + 48
----
-48

skipif mysql # not compatible
query I rowsort label-6062
SELECT 28 / + MAX ( 73 ) * + 39 * - - 90 + - + 48
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT COUNT( ALL - 24 ) * 14 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6063
SELECT COUNT ( ALL - 24 ) * 14 AS col2
----
14

query I rowsort
SELECT 21 + 19 + - - 14 * 48 + + + 30 - - - 35 AS col1
----
707

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT - MIN( DISTINCT - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-6065
SELECT - MIN ( DISTINCT - 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT ( 72 ) + SUM( DISTINCT - + ( + 74 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-6066
SELECT ( 72 ) + SUM ( DISTINCT - + ( + 74 ) )
----
-2

query I rowsort
SELECT ALL 53 * - 72 AS col1
----
-3816

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT DISTINCT 12 + - CASE - 45 WHEN 11 THEN - - 73 WHEN 43 - - - ( + 18 ) + + SUM( ALL - NULLIF ( + 0, + - 97 * + 79 ) ) * - 85 THEN + - ( 79 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT 12 + - CASE - 45 WHEN 11 THEN - - 73 WHEN 43 - - - ( + 18 ) + + SUM ( ALL - NULLIF ( + 0, + - 97 * + 79 ) ) * - 85 THEN + - ( 79 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT ALL 71 + + 28 * - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL 71 + + 28 * - COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT COUNT( * ) + + 94 * + - 74
----
-6955

skipif mysql # not compatible
query I rowsort label-6070
SELECT COUNT ( * ) + + 94 * + - 74
----
-6955

query I rowsort
SELECT ALL 47 + ( - 12 )
----
35

query I rowsort
SELECT 56 + - ( 26 ) * 48 col1
----
-1192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6073
SELECT ALL + 50 + - 80 + + - CASE + - 41 WHEN + 7 + - 68 THEN - COALESCE ( 9, - - 15 + + - 51 ) WHEN - 32 THEN 21 * - + CASE - 98 WHEN - CAST( + 62 AS SIGNED ) THEN + 88 + 4 + 46 END + - + 90 - 73 - + 51 * + 54 END * 71 AS col0, 57 AS col1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-6073
SELECT ALL + 50 + - 80 + + - CASE + - 41 WHEN + 7 + - 68 THEN - COALESCE ( 9, - - 15 + + - 51 ) WHEN - 32 THEN 21 * - + CASE - 98 WHEN - CAST ( + 62 AS INTEGER ) THEN + 88 + 4 + 46 END + - + 90 - 73 - + 51 * + 54 END * 71 AS col0, 57 AS col1
----
NULL
57

query I rowsort
SELECT DISTINCT + 41 + + - 95
----
-54

query I rowsort
SELECT ( + - 41 ) + - 31 + - 78 AS col2
----
-150

query II rowsort
SELECT 0 + + 18 AS col1, - 49 AS col1
----
18
-49

query I rowsort
SELECT 10 + - - 85 + - 62
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT ALL 75 * - 43 - ( COALESCE ( - 75, + + 62 + - 68 + - 52 + + 81 + 97 * - - 8 ) ) + + 2 AS col2, 71 * - CASE - ( - + 93 ) WHEN 18 THEN SUM( DISTINCT - 80 ) WHEN + - ( 1 ) THEN NULL END
----
-3148
NULL

skipif mysql # not compatible
query II rowsort label-6078
SELECT ALL 75 * - 43 - ( COALESCE ( - 75, + + 62 + - 68 + - 52 + + 81 + 97 * - - 8 ) ) + + 2 AS col2, 71 * - CASE - ( - + 93 ) WHEN 18 THEN SUM ( DISTINCT - 80 ) WHEN + - ( 1 ) THEN NULL END
----
-3148
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT + CASE + 90 WHEN COUNT( * ) * - 29 THEN NULL WHEN + 2 THEN + - 36 END * 49 + - - MIN( ALL + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT + CASE + 90 WHEN COUNT ( * ) * - 29 THEN NULL WHEN + 2 THEN + - 36 END * 49 + - - MIN ( ALL + 24 )
----
NULL

query I rowsort
SELECT 16 * + ( + - 92 ) AS col0
----
-1472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6081
SELECT ALL - + CAST( - CASE WHEN NOT 38 <= NULL THEN - 70 * - 0 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL - + CAST ( - CASE WHEN NOT 38 <= NULL THEN - 70 * - 0 END AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT - 13 DIV 28 * + 85 + 12 + 51 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-6082
SELECT - 13 / 28 * + 85 + 12 + 51 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT ALL - 46 * - COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL - 46 * - COUNT ( * ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT ALL - - SUM( 74 )
----
74

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL - - SUM ( 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT - 42 * - 89 * + MIN( - + 82 ) + - 81 * - COALESCE ( + + 45, - 62 )
----
-302871

skipif mysql # not compatible
query I rowsort label-6085
SELECT - 42 * - 89 * + MIN ( - + 82 ) + - 81 * - COALESCE ( + + 45, - 62 )
----
-302871

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT DISTINCT - - 92 * + - ( + 21 ) + + 94 + + 53 + COUNT( * )
----
-1784

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT - - 92 * + - ( + 21 ) + + 94 + + 53 + COUNT ( * )
----
-1784

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6087
SELECT ALL + 1 * 68 * + ( 73 ) col2, 97 DIV - - COUNT( * ) AS col1
----
4964
97

skipif mysql # not compatible
query II rowsort label-6087
SELECT ALL + 1 * 68 * + ( 73 ) col2, 97 / - - COUNT ( * ) AS col1
----
4964
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT DISTINCT - COUNT( * ) * + 63 + - + 11 - + 91
----
-165

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT - COUNT ( * ) * + 63 + - + 11 - + 91
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT - COUNT( * ) * 88 + + 80
----
-8

skipif mysql # not compatible
query I rowsort label-6089
SELECT - COUNT ( * ) * 88 + + 80
----
-8

query I rowsort
SELECT - + 30 * 69
----
-2070

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6091
SELECT + + CAST( + 12 AS SIGNED ) + - NULLIF ( + 43, 25 * + 29 )
----
-31

skipif mysql # not compatible
query I rowsort label-6091
SELECT + + CAST ( + 12 AS INTEGER ) + - NULLIF ( + 43, 25 * + 29 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL + + SUM( - 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL + + SUM ( - 82 ) AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6093
SELECT - + 14 * CAST( COALESCE ( + + COUNT( * ), - + 62 ) AS SIGNED ) + 70
----
56

skipif mysql # not compatible
query I rowsort label-6093
SELECT - + 14 * CAST ( COALESCE ( + + COUNT ( * ), - + 62 ) AS INTEGER ) + 70
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT DISTINCT - 36 * - + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-6094
SELECT DISTINCT - 36 * - + COUNT ( * )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT DISTINCT + CAST( 57 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT + CAST ( 57 AS INTEGER )
----
57

query I rowsort
SELECT - - 3 * 90
----
270

query II rowsort
SELECT ALL COALESCE ( - + 54, 88 ) AS col0, + ( - COALESCE ( + 36, - 59 ) ) col2
----
-54
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-6098
SELECT + MIN( DISTINCT 97 ) + + 54 AS col1, 10 + SUM( DISTINCT + 12 ) AS col0
----
151
22

skipif mysql # not compatible
query II rowsort label-6098
SELECT + MIN ( DISTINCT 97 ) + + 54 AS col1, 10 + SUM ( DISTINCT + 12 ) AS col0
----
151
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6099
SELECT + ( - 88 ) * NULLIF ( 75, - 23 + + 46 + - + CAST( + NULLIF ( - 72, - + 73 * 91 - + 32 ) AS SIGNED ) * COALESCE ( - 32, - - 95 * - 19 - + + 30 - + 23 * CAST( NULL AS SIGNED ) * - - 76 + + 76 ) )
----
-6600

skipif mysql # not compatible
query I rowsort label-6099
SELECT + ( - 88 ) * NULLIF ( 75, - 23 + + 46 + - + CAST ( + NULLIF ( - 72, - + 73 * 91 - + 32 ) AS INTEGER ) * COALESCE ( - 32, - - 95 * - 19 - + + 30 - + 23 * CAST ( NULL AS INTEGER ) * - - 76 + + 76 ) )
----
-6600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6100
SELECT + CAST( 62 AS SIGNED ) + + 39 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-6100
SELECT + CAST ( 62 AS INTEGER ) + + 39 AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT ALL 71 + - COUNT( * ) col0
----
70

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL 71 + - COUNT ( * ) col0
----
70

query I rowsort
SELECT ALL 30 + - + ( - - 96 ) - 25
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6103
SELECT 79 AS col0, - 84 + + CAST( NULL AS SIGNED ) + + COALESCE ( 47, - - NULLIF ( COUNT( 44 ), - COUNT( * ) + 25 + 94 ) ) / - + COUNT( * ) * 12 col1
----
79
NULL

skipif mysql # not compatible
query II rowsort label-6103
SELECT 79 AS col0, - 84 + + CAST ( NULL AS INTEGER ) + + COALESCE ( 47, - - NULLIF ( COUNT ( 44 ), - COUNT ( * ) + 25 + 94 ) ) / - + COUNT ( * ) * 12 col1
----
79
NULL

query I rowsort
SELECT DISTINCT 6 + 42
----
48

query I rowsort
SELECT + 12 - - 32
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6106
SELECT ALL 23 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL 23 / + 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT ALL - 55 + + MIN( + 60 ) + + 43
----
48

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL - 55 + + MIN ( + 60 ) + + 43
----
48

query II rowsort
SELECT ALL 62, 18 AS col1
----
62
18

query I rowsort
SELECT ALL 11 + - + 75 * 79 AS col2
----
-5914

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT ALL COUNT( * ) + + 88
----
89

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL COUNT ( * ) + + 88
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT + 81 * - + COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-6111
SELECT + 81 * - + COUNT ( * )
----
-81

query I rowsort
SELECT DISTINCT 5 + - - 0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT - SUM( ALL - + 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-6113
SELECT - SUM ( ALL - + 33 ) AS col0
----
33

query II rowsort
SELECT ALL 30, 49 * + 16 AS col0
----
30
784

onlyif mysql # aggregate syntax: 
query II rowsort label-6115
SELECT - COALESCE ( + - 96, COUNT( * ) ), + 96 AS col0
----
96
96

skipif mysql # not compatible
query II rowsort label-6115
SELECT - COALESCE ( + - 96, COUNT ( * ) ), + 96 AS col0
----
96
96

query I rowsort
SELECT DISTINCT 92 - 15 * - 65 * - 37 AS col2
----
-35983

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT DISTINCT CASE 28 WHEN 89 THEN NULL ELSE - 53 * + MAX( - 86 ) END * + 27 - + 72
----
122994

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT CASE 28 WHEN 89 THEN NULL ELSE - 53 * + MAX ( - 86 ) END * + 27 - + 72
----
122994

query II rowsort
SELECT + 62 AS col2, - 43
----
62
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6119
SELECT + CAST( NULL AS SIGNED ) / 2 + + 54 AS col0, + 34 * - 87 + + + 86 + - 67 + - CAST( - 16 AS SIGNED ) * - COALESCE ( - COUNT( * ), - 58 ) * - + 71
----
NULL
-4075

skipif mysql # not compatible
query II rowsort label-6119
SELECT + CAST ( NULL AS INTEGER ) / 2 + + 54 AS col0, + 34 * - 87 + + + 86 + - 67 + - CAST ( - 16 AS INTEGER ) * - COALESCE ( - COUNT ( * ), - 58 ) * - + 71
----
NULL
-4075

onlyif mysql # aggregate syntax: 
query II rowsort label-6120
SELECT 82 AS col2, NULLIF ( - CASE + - 6 WHEN + + 72 THEN + - COUNT( DISTINCT + + 32 ) * 82 * + 50 ELSE NULL END, - SUM( - - 53 ) + - 38 * + 98 ) * 62
----
82
NULL

skipif mysql # not compatible
query II rowsort label-6120
SELECT 82 AS col2, NULLIF ( - CASE + - 6 WHEN + + 72 THEN + - COUNT ( DISTINCT + + 32 ) * 82 * + 50 ELSE NULL END, - SUM ( - - 53 ) + - 38 * + 98 ) * 62
----
82
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6121
SELECT DISTINCT - COUNT( * ) DIV - CAST( - - 12 AS SIGNED ) + MAX( DISTINCT 46 ) - + ( - - NULLIF ( + 38, + NULLIF ( + - 40, - 15 ) ) ) * + 85
----
-3184

skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT - COUNT ( * ) / - CAST ( - - 12 AS INTEGER ) + MAX ( DISTINCT 46 ) - + ( - - NULLIF ( + 38, + NULLIF ( + - 40, - 15 ) ) ) * + 85
----
-3184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6122
SELECT - ( COUNT( * ) ) * + - 2 * 58 DIV - + 35
----
-3

skipif mysql # not compatible
query I rowsort label-6122
SELECT - ( COUNT ( * ) ) * + - 2 * 58 / - + 35
----
-3

query II rowsort
SELECT + 34 + + ( - + 76 ) + - 27 * - 4, 2 * + 6 AS col0
----
66
12

onlyif mysql # DIV for integer division: 
query I rowsort label-6124
SELECT - - 93 DIV + 86
----
1

skipif mysql # not compatible
query I rowsort label-6124
SELECT - - 93 / + 86
----
1

query I rowsort
SELECT DISTINCT - ( - 67 ) * + 33 + - 91 AS col1
----
2120

onlyif mysql # aggregate syntax: 
query II rowsort label-6126
SELECT 63 AS col0, CASE - 34 WHEN + 81 * 1 THEN + 94 + + 6 + + 66 ELSE NULL END + + COUNT( * ) AS col1
----
63
NULL

skipif mysql # not compatible
query II rowsort label-6126
SELECT 63 AS col0, CASE - 34 WHEN + 81 * 1 THEN + 94 + + 6 + + 66 ELSE NULL END + + COUNT ( * ) AS col1
----
63
NULL

query I rowsort
SELECT ALL + 60 * - 53 * 31 + + 36 + + + 43 col1
----
-98501

query I rowsort
SELECT ALL - 3 * + - 57 + + 61
----
232

query I rowsort
SELECT ALL - + 97 * + - ( + 48 ) AS col0
----
4656

query I rowsort
SELECT NULLIF ( 47, - - 3 * + - 10 + - + 69 ) AS col2
----
47

query I rowsort
SELECT - 92 * + - 14
----
1288

onlyif mysql # aggregate syntax: 
query II rowsort label-6132
SELECT + 40, + 95 + - - 76 + 73 * + COUNT( DISTINCT 20 ) * - 98 AS col1
----
40
-6983

skipif mysql # not compatible
query II rowsort label-6132
SELECT + 40, + 95 + - - 76 + 73 * + COUNT ( DISTINCT 20 ) * - 98 AS col1
----
40
-6983

query I rowsort
SELECT NULLIF ( 31, + + ( + 89 ) ) AS col0
----
31

query I rowsort
SELECT ALL 31 * + 31 + 63
----
1024

query I rowsort
SELECT ALL 0 * + 82 + - 15 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT DISTINCT - COUNT( * ) * - - 66 + 53
----
-13

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT - COUNT ( * ) * - - 66 + 53
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT - COUNT( * ) + + - 88
----
-89

skipif mysql # not compatible
query I rowsort label-6137
SELECT - COUNT ( * ) + + - 88
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-6138
SELECT DISTINCT - 41 * + 18 AS col0, + ( + COUNT( * ) ) * - - 4 AS col0
----
-738
4

skipif mysql # not compatible
query II rowsort label-6138
SELECT DISTINCT - 41 * + 18 AS col0, + ( + COUNT ( * ) ) * - - 4 AS col0
----
-738
4

query I rowsort
SELECT - 88 + + 88 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6140
SELECT ALL ( - COALESCE ( COUNT( * ), CASE - 19 WHEN - 29 DIV COUNT( - + 2 ) * - - 3 THEN - + 50 WHEN + 93 THEN CASE - - 72 WHEN - NULLIF ( - COUNT( * ), + COUNT( * ) + + + 38 ) - + NULLIF ( - 42, - - 90 + - - 24 ) THEN + COUNT( * ) WHEN 23 * + ( - AVG ( - 59 ) ) + - - 61 + - 12 * - - CAST( - 7 AS SIGNED ) + + 25 * 81 THEN NULL ELSE NULL END * - + ( + - 54 ) END + - 44 * + COUNT( * ) ) ) * - + ( + 75 ) + - 43 DIV - ( + + 33 ) + - ( + + COUNT( * ) ) * + 44 + - COUNT( * ) + + 23 - 41
----
13

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL ( - COALESCE ( COUNT ( * ), CASE - 19 WHEN - 29 / COUNT ( - + 2 ) * - - 3 THEN - + 50 WHEN + 93 THEN CASE - - 72 WHEN - NULLIF ( - COUNT ( * ), + COUNT ( * ) + + + 38 ) - + NULLIF ( - 42, - - 90 + - - 24 ) THEN + COUNT ( * ) WHEN 23 * + ( - AVG ( - 59 ) ) + - - 61 + - 12 * - - CAST ( - 7 AS INTEGER ) + + 25 * 81 THEN NULL ELSE NULL END * - + ( + - 54 ) END + - 44 * + COUNT ( * ) ) ) * - + ( + 75 ) + - 43 / - ( + + 33 ) + - ( + + COUNT ( * ) ) * + 44 + - COUNT ( * ) + + 23 - 41
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT - COUNT( ALL 70 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6141
SELECT - COUNT ( ALL 70 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6142
SELECT + 58 * + - 9 col1, SUM( + 55 ) + 31 + CAST( 60 AS SIGNED )
----
-522
146

skipif mysql # not compatible
query II rowsort label-6142
SELECT + 58 * + - 9 col1, SUM ( + 55 ) + 31 + CAST ( 60 AS INTEGER )
----
-522
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6143
SELECT - 70 + + + 89 DIV COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-6143
SELECT - 70 + + + 89 / COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT - SUM( - ( + + 44 ) )
----
44

skipif mysql # not compatible
query I rowsort label-6144
SELECT - SUM ( - ( + + 44 ) )
----
44

query I rowsort
SELECT - 22 * - + 39
----
858

query I rowsort
SELECT ALL - 33 * - 69
----
2277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6147
SELECT - CAST( + - AVG ( + - ( - - 95 ) ) AS SIGNED ) * + ( + COALESCE ( ( + - 80 ), SUM( ALL - - COALESCE ( - NULLIF ( - + 30, ( + 17 ) ), + 2 - + 82 ) ) DIV ( 76 ) * + COUNT( * ) + + + COUNT( * ), - 93 ) ) AS col1, 40 * + - 43 + + - COALESCE ( - COALESCE ( - ( - + 6 ), - 83 ), - 64 ) * + 77 + + COUNT( * ) * + + 18
----
7600
-1240

skipif mysql # not compatible
query II rowsort label-6147
SELECT - CAST ( + - AVG ( + - ( - - 95 ) ) AS INTEGER ) * + ( + COALESCE ( ( + - 80 ), SUM ( ALL - - COALESCE ( - NULLIF ( - + 30, ( + 17 ) ), + 2 - + 82 ) ) / ( 76 ) * + COUNT ( * ) + + + COUNT ( * ), - 93 ) ) AS col1, 40 * + - 43 + + - COALESCE ( - COALESCE ( - ( - + 6 ), - 83 ), - 64 ) * + 77 + + COUNT ( * ) * + + 18
----
7600
-1240

onlyif mysql # DIV for integer division: 
query II rowsort label-6148
SELECT ALL 83 AS col1, - 86 DIV ( 2 )
----
83
-43

skipif mysql # not compatible
query II rowsort label-6148
SELECT ALL 83 AS col1, - 86 / ( 2 )
----
83
-43

query I rowsort
SELECT + 16 + - 70 * - 46 AS col2
----
3236

query I rowsort
SELECT 9 + - + 7 AS col0
----
2

query I rowsort
SELECT ALL - 54 * - 24 + 34
----
1330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6152
SELECT DISTINCT - - COUNT( * ) DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT - - COUNT ( * ) / - 94
----
0

query I rowsort
SELECT ALL - ( - - 99 )
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6154
SELECT - + CAST( + 8 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-6154
SELECT - + CAST ( + 8 AS INTEGER )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT - COUNT( ALL 5 ) + + 52 * - 83
----
-4317

skipif mysql # not compatible
query I rowsort label-6155
SELECT - COUNT ( ALL 5 ) + + 52 * - 83
----
-4317

query II rowsort
SELECT 35 col2, 42 * + 80 AS col1
----
35
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT - ( - MAX( DISTINCT ( 96 ) ) ) * + 72 AS col2
----
6912

skipif mysql # not compatible
query I rowsort label-6157
SELECT - ( - MAX ( DISTINCT ( 96 ) ) ) * + 72 AS col2
----
6912

query I rowsort
SELECT 24 + - + 90 + - - 36
----
-30

query I rowsort
SELECT ALL 35 * + 94 AS col2
----
3290

query I rowsort
SELECT DISTINCT - NULLIF ( 34, + 61 ) * - 8 AS col1
----
272

query I rowsort
SELECT ALL 62 + - 72 * 40 AS col0
----
-2818

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT 4 * + COUNT( + 15 ) + - - ( - + 93 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-6162
SELECT 4 * + COUNT ( + 15 ) + - - ( - + 93 ) AS col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6163
SELECT ALL - 58 + + CAST( + + 51 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL - 58 + + CAST ( + + 51 AS INTEGER )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6164
SELECT ALL + - ( AVG ( 16 ) ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL + - ( AVG ( 16 ) ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + ( + - 4 ) AS col0
----
-4

query II rowsort
SELECT ALL - 24, 14 AS col0
----
-24
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT COUNT( - + 18 ) * - 94
----
-94

skipif mysql # not compatible
query I rowsort label-6167
SELECT COUNT ( - + 18 ) * - 94
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6168
SELECT + + 77 DIV - + 66 + + + 8 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6168
SELECT + + 77 / - + 66 + + + 8 AS col0
----
7

query I rowsort
SELECT ALL 51 + 28 col2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-6170
SELECT + - 3 AS col0, - ( + - 9 ) * 89 + - - COUNT( * )
----
-3
802

skipif mysql # not compatible
query II rowsort label-6170
SELECT + - 3 AS col0, - ( + - 9 ) * 89 + - - COUNT ( * )
----
-3
802

query I rowsort
SELECT - 95 + + + ( 10 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL MIN( ALL + + 21 ) + 55 - - SUM( - 46 )
----
30

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL MIN ( ALL + + 21 ) + 55 - - SUM ( - 46 )
----
30

query I rowsort
SELECT ALL - 27 * + 28 col1
----
-756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6174
SELECT + 83 * + 46 * - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + - + 35 * - COUNT( * ) + + MAX( DISTINCT ( 3 ) ) + + + COUNT( * ) * + - 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6174
SELECT + 83 * + 46 * - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - + 35 * - COUNT ( * ) + + MAX ( DISTINCT ( 3 ) ) + + + COUNT ( * ) * + - 26 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6175
SELECT CASE WHEN NOT ( - 99 IS NULL ) THEN NULL WHEN NOT ( NULL ) IS NULL THEN 52 / - CAST( - 72 AS SIGNED ) + NULLIF ( - 75, - CASE + + CAST( NULL AS SIGNED ) WHEN - 35 * 72 * 96 + - - 11 THEN NULL ELSE - + COUNT( * ) + 53 END * MAX( + + 7 ) + 35 ) + - 65 + - 24 * - - 98 END / 33 - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6175
SELECT CASE WHEN NOT ( - 99 IS NULL ) THEN NULL WHEN NOT ( NULL ) IS NULL THEN 52 / - CAST ( - 72 AS INTEGER ) + NULLIF ( - 75, - CASE + + CAST ( NULL AS INTEGER ) WHEN - 35 * 72 * 96 + - - 11 THEN NULL ELSE - + COUNT ( * ) + 53 END * MAX ( + + 7 ) + 35 ) + - 65 + - 24 * - - 98 END / 33 - 70
----
NULL

query I rowsort
SELECT ALL 94 - - + ( - 22 )
----
72

query I rowsort
SELECT 75 * + ( + 9 )
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT ALL - COUNT( * ) - - 83 * 18 + - 68
----
1425

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL - COUNT ( * ) - - 83 * 18 + - 68
----
1425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6179
SELECT + COUNT( ALL + 86 ) * + 24 DIV + 37 + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6179
SELECT + COUNT ( ALL + 86 ) * + 24 / + 37 + + COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6180
SELECT 94 DIV - 43 col1
----
-2

skipif mysql # not compatible
query I rowsort label-6180
SELECT 94 / - 43 col1
----
-2

query I rowsort
SELECT DISTINCT - 46 * - + 49
----
2254

query I rowsort
SELECT 4 * 0 * + 41
----
0

query I rowsort
SELECT 74 * 35 * + 25 AS col2
----
64750

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT 10 + - COUNT( * ) * - 70
----
80

skipif mysql # not compatible
query I rowsort label-6184
SELECT 10 + - COUNT ( * ) * - 70
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6185
SELECT 93 - 54 - + + 24 DIV 35 DIV 73 DIV 55
----
39

skipif mysql # not compatible
query I rowsort label-6185
SELECT 93 - 54 - + + 24 / 35 / 73 / 55
----
39

query II rowsort
SELECT 19 * - 94 AS col1, - 28 AS col0
----
-1786
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT ALL - COUNT( * ) * ( 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL - COUNT ( * ) * ( 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT - 53 * + 41 * - - COUNT( * )
----
-2173

skipif mysql # not compatible
query I rowsort label-6188
SELECT - 53 * + 41 * - - COUNT ( * )
----
-2173

query I rowsort
SELECT ALL - 64 * + 20 + - 49 AS col1
----
-1329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6190
SELECT ALL - CASE - + CAST( NULL AS SIGNED ) WHEN 4 / 91 * - + ( - ( - 89 ) ) THEN - 5 END + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL - CASE - + CAST ( NULL AS INTEGER ) WHEN 4 / 91 * - + ( - ( - 89 ) ) THEN - 5 END + - 22
----
NULL

query I rowsort
SELECT ALL ( 75 ) + 66 col2
----
141

query I rowsort
SELECT ALL 35 * - 80 + + 84 AS col1
----
-2716

query I rowsort
SELECT + ( - 92 ) col0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6194
SELECT ALL + 45 * CAST( NULL AS SIGNED ) * + 38 * - CAST( NULL AS SIGNED ) + + 50 + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL + 45 * CAST ( NULL AS INTEGER ) * + 38 * - CAST ( NULL AS INTEGER ) + + 50 + + 2
----
NULL

query I rowsort
SELECT - 52 * ( + 7 )
----
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT ALL ( - 0 ) + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL ( - 0 ) + + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT + - NULLIF ( - 20, - ( 84 ) ) AS col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6198
SELECT + 18 + 71 + COUNT( * ) DIV - - 3 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6198
SELECT + 18 + 71 + COUNT ( * ) / - - 3 AS col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-6199
SELECT ALL - + MIN( - 78 ) col2, + 20 - - - 31
----
78
-11

skipif mysql # not compatible
query II rowsort label-6199
SELECT ALL - + MIN ( - 78 ) col2, + 20 - - - 31
----
78
-11

query I rowsort
SELECT ALL + CASE + 12 WHEN + + 87 THEN - 53 END * + NULLIF ( - - ( 60 ), + 66 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT MAX( ALL - 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-6201
SELECT MAX ( ALL - 67 ) AS col0
----
-67

query I rowsort
SELECT DISTINCT 53 * + 33 AS col0
----
1749

query I rowsort
SELECT 49 + + 74
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6204
SELECT COUNT( ALL 58 ) * + CAST( NULL AS SIGNED ) / - 53 * + + 95 + - 45 + - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6204
SELECT COUNT ( ALL 58 ) * + CAST ( NULL AS INTEGER ) / - 53 * + + 95 + - 45 + - 58 AS col1
----
NULL

query I rowsort
SELECT 59 + + 60
----
119

query I rowsort
SELECT 94 + + 22 + 52 + - + 47 AS col0
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-6207
SELECT DISTINCT - 36 AS col0, CASE 83 WHEN + 40 + - - 23 * MAX( ALL - - 85 ) THEN + ( - 35 ) WHEN - - 95 THEN NULL END AS col0
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-6207
SELECT DISTINCT - 36 AS col0, CASE 83 WHEN + 40 + - - 23 * MAX ( ALL - - 85 ) THEN + ( - 35 ) WHEN - - 95 THEN NULL END AS col0
----
-36
NULL

query I rowsort
SELECT ALL 41 - 57 + 43 AS col1
----
27

query I rowsort
SELECT 10 * - + 81 AS col0
----
-810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6210
SELECT DISTINCT COUNT( + 46 ) DIV - - 11
----
0

skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT COUNT ( + 46 ) / - - 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT DISTINCT SUM( ALL + - 37 ) * - + 2 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT SUM ( ALL + - 37 ) * - + 2 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT ( 59 ) + - + COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-6212
SELECT ( 59 ) + - + COUNT ( * ) AS col2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6213
SELECT ALL 5 DIV 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL 5 / 37 AS col0
----
0

query I rowsort
SELECT + 16 * + 23 AS col2
----
368

query I rowsort
SELECT ALL - ( - 17 ) * - 92
----
-1564

query I rowsort
SELECT - 86 * + - 56 col2
----
4816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6217
SELECT - 96, 2 * COUNT( * ) - + + 1 + + CAST( NULL AS SIGNED ) AS col0
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-6217
SELECT - 96, 2 * COUNT ( * ) - + + 1 + + CAST ( NULL AS INTEGER ) AS col0
----
-96
NULL

query II rowsort
SELECT 64, 24 + + - 33 AS col0
----
64
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT ALL - + 95 + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL - + 95 + COUNT ( * )
----
-94

query II rowsort
SELECT ALL - 54 AS col2, + 68
----
-54
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6221
SELECT - 0 + + + COUNT( * ) + + MAX( ALL - 30 ) + ( - 59 ) + - 23 * + - 10 * + - COUNT( * ) * + - 29 * - + 86 - + COUNT( * ) + 97 + + - 4 * - - SUM( + 68 ) / - CAST( NULL AS DECIMAL ) + + 5 + + 59 * - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6221
SELECT - 0 + + + COUNT ( * ) + + MAX ( ALL - 30 ) + ( - 59 ) + - 23 * + - 10 * + - COUNT ( * ) * + - 29 * - + 86 - + COUNT ( * ) + 97 + + - 4 * - - SUM ( + 68 ) / - CAST ( NULL AS REAL ) + + 5 + + 59 * - 26 AS col2
----
NULL

query I rowsort
SELECT ALL - - 83 + - 49 AS col2
----
34

query I rowsort
SELECT ALL + - 20 * 5 AS col2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT ALL + - COUNT( * ) + 61 * - + 13 AS col2
----
-794

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL + - COUNT ( * ) + 61 * - + 13 AS col2
----
-794

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT + 53 * + NULLIF ( - - COUNT( * ), 60 + - 33 ) + + 42 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6225
SELECT + 53 * + NULLIF ( - - COUNT ( * ), 60 + - 33 ) + + 42 AS col0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6226
SELECT - - 31 + 44 DIV 44 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6226
SELECT - - 31 + 44 / 44 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT COALESCE ( MAX( - 65 ), + + COALESCE ( - - COUNT( * ), - 70 ), + 48 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-6227
SELECT COALESCE ( MAX ( - 65 ), + + COALESCE ( - - COUNT ( * ), - 70 ), + 48 ) AS col2
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-6228
SELECT - + 56 + ( + 79 ) DIV - 37 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-6228
SELECT - + 56 + ( + 79 ) / - 37 AS col1
----
-58

query I rowsort
SELECT ALL + NULLIF ( 40, 1 + + - 86 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6230
SELECT - - 81 + COUNT( + 23 ) col2, 85 AS col0
----
82
85

skipif mysql # not compatible
query II rowsort label-6230
SELECT - - 81 + COUNT ( + 23 ) col2, 85 AS col0
----
82
85

query I rowsort
SELECT ALL + 75 + 50
----
125

query I rowsort
SELECT + + 41 col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT DISTINCT + + 78 * 13 + + - SUM( 14 ) + + COUNT( * ) + + COALESCE ( + 35, - - 86 * + 3 * - COUNT( DISTINCT CASE WHEN + 61 IS NULL THEN - - 99 ELSE NULL END ) * COUNT( * ) * - - 75, 1 ) + + 62
----
1098

skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT + + 78 * 13 + + - SUM ( 14 ) + + COUNT ( * ) + + COALESCE ( + 35, - - 86 * + 3 * - COUNT ( DISTINCT CASE WHEN + 61 IS NULL THEN - - 99 ELSE NULL END ) * COUNT ( * ) * - - 75, 1 ) + + 62
----
1098

query I rowsort
SELECT DISTINCT + - 73 * - 75 + - - 13 - 62 - - - 75
----
5351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6235
SELECT DISTINCT + 93 DIV + 97 + COUNT( * ), - CAST( NULL AS SIGNED ) * - 28 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6235
SELECT DISTINCT + 93 / + 97 + COUNT ( * ), - CAST ( NULL AS INTEGER ) * - 28 AS col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6236
SELECT ALL 15 * - 19 / 16 * - 56 - - + CAST( NULL AS SIGNED ) - + 67 + + CASE 27 WHEN + + 35 + - + 25 + - + 5 THEN COALESCE ( + 13, 71 + 73 / + - MAX( + 41 ) ) WHEN COUNT( * ) * COUNT( * ) - 58 + 14 * + ( 18 ) * - 71 * - - 15 THEN + COUNT( * ) * + 9 END + 61 + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL 15 * - 19 / 16 * - 56 - - + CAST ( NULL AS INTEGER ) - + 67 + + CASE 27 WHEN + + 35 + - + 25 + - + 5 THEN COALESCE ( + 13, 71 + 73 / + - MAX ( + 41 ) ) WHEN COUNT ( * ) * COUNT ( * ) - 58 + 14 * + ( 18 ) * - 71 * - - 15 THEN + COUNT ( * ) * + 9 END + 61 + + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT ( NULLIF ( CASE + - 74 WHEN + - COUNT( 2 ) THEN - + 73 ELSE + MIN( 80 ) END, 2 ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6237
SELECT ( NULLIF ( CASE + - 74 WHEN + - COUNT ( 2 ) THEN - + 73 ELSE + MIN ( 80 ) END, 2 ) ) AS col1
----
80

query I rowsort
SELECT - ( 28 ) * - 33
----
924

query I rowsort
SELECT NULLIF ( NULLIF ( + 41, + - 95 ), - - 1 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ALL + COALESCE ( - MIN( DISTINCT - 43 ), - 60 )
----
43

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL + COALESCE ( - MIN ( DISTINCT - 43 ), - 60 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6241
SELECT + NULLIF ( - + 28, + CASE - + 46 WHEN - + 3 THEN - 19 WHEN ( + 90 ) * - + CAST( NULL AS SIGNED ) + 75 THEN NULL END ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-6241
SELECT + NULLIF ( - + 28, + CASE - + 46 WHEN - + 3 THEN - 19 WHEN ( + 90 ) * - + CAST ( NULL AS INTEGER ) + 75 THEN NULL END ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT ALL COUNT( * ) * 48
----
48

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL COUNT ( * ) * 48
----
48

query I rowsort
SELECT DISTINCT + 20 * - - 81 * + + 33 AS col1
----
53460

query I rowsort
SELECT + 93 * 71 * + 85 * 2
----
1122510

query I rowsort
SELECT ALL 55 * - 16 + - 69
----
-949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6246
SELECT DISTINCT + COUNT( DISTINCT - 40 ) * - + CAST( - 42 AS SIGNED ) + + - ( 99 ) + + + COUNT( DISTINCT + 68 ) * 26 * + AVG ( - - NULLIF ( - - 29, - 60 ) ) + - CASE 32 WHEN - + 40 - + - 59 THEN + + 81 + 24 + - 72 + - 11 * - - 63 WHEN 27 THEN 54 * - + COUNT( * ) + - 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT + COUNT ( DISTINCT - 40 ) * - + CAST ( - 42 AS INTEGER ) + + - ( 99 ) + + + COUNT ( DISTINCT + 68 ) * 26 * + AVG ( - - NULLIF ( - - 29, - 60 ) ) + - CASE 32 WHEN - + 40 - + - 59 THEN + + 81 + 24 + - 72 + - 11 * - - 63 WHEN 27 THEN 54 * - + COUNT ( * ) + - 96 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6247
SELECT + CAST( - AVG ( ALL - 7 ) AS SIGNED ) DIV - COUNT( * ), 75 + - COUNT( * ) * 40 col2
----
-7
35

skipif mysql # not compatible
query II rowsort label-6247
SELECT + CAST ( - AVG ( ALL - 7 ) AS INTEGER ) / - COUNT ( * ), 75 + - COUNT ( * ) * 40 col2
----
-7
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT MAX( + 31 ) col1
----
31

skipif mysql # not compatible
query I rowsort label-6248
SELECT MAX ( + 31 ) col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT ALL COUNT( * ) + + + COUNT( DISTINCT + 25 )
----
2

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL COUNT ( * ) + + + COUNT ( DISTINCT + 25 )
----
2

query I rowsort
SELECT DISTINCT ( 74 ) + - 99 AS col1
----
-25

query I rowsort
SELECT ALL 1 + - 30 col0
----
-29

query I rowsort
SELECT + + ( + 66 ) - + 3
----
63

query I rowsort
SELECT DISTINCT + 4 / + CASE + 59 WHEN - 49 THEN - - CASE 76 WHEN - + 22 + - 41 THEN 99 * 26 + ( 15 ) - + 25 WHEN + 97 - - 11 THEN NULL END END + 8 AS col0
----
NULL

query I rowsort
SELECT ALL - 40 + 4 - 89 * - NULLIF ( - 97, + 0 )
----
-8669

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT ALL - 82 * + + SUM( - + 96 )
----
7872

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL - 82 * + + SUM ( - + 96 )
----
7872

query I rowsort
SELECT ( - COALESCE ( + + 57, + 72 + - 80 ) ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT ALL - ( - + NULLIF ( - 72, + 79 * - ( 80 ) + - AVG ( 6 ) + - ( COALESCE ( + 41, + COUNT( * ) ) ) ) ) * + 15 AS col2
----
-1080

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL - ( - + NULLIF ( - 72, + 79 * - ( 80 ) + - AVG ( 6 ) + - ( COALESCE ( + 41, + COUNT ( * ) ) ) ) ) * + 15 AS col2
----
-1080

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6258
SELECT + + 65 DIV + - CAST( 20 AS SIGNED ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6258
SELECT + + 65 / + - CAST ( 20 AS INTEGER ) AS col2
----
-3

query I rowsort
SELECT + + 60 * 8
----
480

query I rowsort
SELECT - - 89 col2
----
89

query I rowsort
SELECT - - 85 * - + 58 + + + 61
----
-4869

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT ALL - ( 66 ) + - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL - ( 66 ) + - COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6263
SELECT - SUM( - 8 ) AS col1, - 40 AS col1
----
8
-40

skipif mysql # not compatible
query II rowsort label-6263
SELECT - SUM ( - 8 ) AS col1, - 40 AS col1
----
8
-40

query I rowsort
SELECT - + 66 col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT ALL + + SUM( - 2 ) - - 51 * - 7
----
-359

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL + + SUM ( - 2 ) - - 51 * - 7
----
-359

query I rowsort
SELECT - + 58 * - 60 AS col1
----
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT + - 89 + + + 62 * - + MAX( - 7 ) + ( 99 ) AS col1
----
444

skipif mysql # not compatible
query I rowsort label-6267
SELECT + - 89 + + + 62 * - + MAX ( - 7 ) + ( 99 ) AS col1
----
444

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6268
SELECT SUM( ALL - + 69 ) DIV 9 - COUNT( * ) + + 1 AS col0, + 20 * 73
----
-7
1460

skipif mysql # not compatible
query II rowsort label-6268
SELECT SUM ( ALL - + 69 ) / 9 - COUNT ( * ) + + 1 AS col0, + 20 * 73
----
-7
1460

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT + SUM( DISTINCT + 94 ) * 15 * - + COUNT( * ) + 79 + 13 + + 74 AS col2
----
-1244

skipif mysql # not compatible
query I rowsort label-6269
SELECT + SUM ( DISTINCT + 94 ) * 15 * - + COUNT ( * ) + 79 + 13 + + 74 AS col2
----
-1244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6270
SELECT - CAST( - CASE + MIN( - 27 ) WHEN + - 14 * - 76 THEN NULL WHEN + 43 THEN NULL WHEN 67 * COUNT( * ) + + 47 THEN + + 6 END AS SIGNED ) - + + 33 * + 95 * + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6270
SELECT - CAST ( - CASE + MIN ( - 27 ) WHEN + - 14 * - 76 THEN NULL WHEN + 43 THEN NULL WHEN 67 * COUNT ( * ) + + 47 THEN + + 6 END AS INTEGER ) - + + 33 * + 95 * + + 55
----
NULL

query I rowsort
SELECT ALL + 5 * + 0
----
0

query I rowsort
SELECT + ( + 48 ) * + 63
----
3024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6273
SELECT 14 DIV - 26 + - COUNT( * ) * COUNT( * ) * 6 + 14 - - 59 DIV 74 DIV - 42 * - 23
----
8

skipif mysql # not compatible
query I rowsort label-6273
SELECT 14 / - 26 + - COUNT ( * ) * COUNT ( * ) * 6 + 14 - - 59 / 74 / - 42 * - 23
----
8

query I rowsort
SELECT - 12 * - 39
----
468

query I rowsort
SELECT ALL - 78 * 6 AS col1
----
-468

query I rowsort
SELECT - 23 + + 12
----
-11

query I rowsort
SELECT ALL - 6 * - 81 * + + 14 AS col0
----
6804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6278
SELECT 28 AS col2, 12 * + 63 * - 36 * - + SUM( ALL + 65 ) * + 19 + CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL )
----
28
NULL

skipif mysql # not compatible
query II rowsort label-6278
SELECT 28 AS col2, 12 * + 63 * - 36 * - + SUM ( ALL + 65 ) * + 19 + CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL )
----
28
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6279
SELECT DISTINCT + 33 + + - 36 DIV + 77 * + + 10
----
33

skipif mysql # not compatible
query I rowsort label-6279
SELECT DISTINCT + 33 + + - 36 / + 77 * + + 10
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6280
SELECT ALL 87 DIV 32 DIV 84 * + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL 87 / 32 / 84 * + - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL + 16 + - + 72
----
-56

query I rowsort
SELECT 90 * + + 23
----
2070

query I rowsort
SELECT 93 * 19 AS col0
----
1767

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT 29 + + 1 * + 84 * - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-6284
SELECT 29 + + 1 * + 84 * - COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6285
SELECT ALL - COUNT( * ) DIV - MAX( ALL + 31 ), - 67 AS col1
----
0
-67

skipif mysql # not compatible
query II rowsort label-6285
SELECT ALL - COUNT ( * ) / - MAX ( ALL + 31 ), - 67 AS col1
----
0
-67

query II rowsort
SELECT 22, 26 AS col0
----
22
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT ALL ( - 38 ) + + SUM( DISTINCT - - 82 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL ( - 38 ) + + SUM ( DISTINCT - - 82 ) AS col1
----
44

query I rowsort
SELECT - 50 * - 79 - + 74 * - - 25
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT DISTINCT + SUM( ALL - 20 ) + + 51
----
31

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT + SUM ( ALL - 20 ) + + 51
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT COUNT( * ) * - 47 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-6290
SELECT COUNT ( * ) * - 47 AS col0
----
-47

query I rowsort
SELECT ALL + 71 + - 7 * + 19 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT 72 * - 94 + + COUNT( * ) AS col2
----
-6767

skipif mysql # not compatible
query I rowsort label-6292
SELECT 72 * - 94 + + COUNT ( * ) AS col2
----
-6767

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT COUNT( ( 41 ) ) - + 53 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-6293
SELECT COUNT ( ( 41 ) ) - + 53 AS col0
----
-52

query I rowsort
SELECT ( + 39 ) * 89 AS col2
----
3471

query I rowsort
SELECT 43 * 66 AS col1
----
2838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6296
SELECT 50 + CAST( COUNT( * ) AS SIGNED ) col2
----
51

skipif mysql # not compatible
query I rowsort label-6296
SELECT 50 + CAST ( COUNT ( * ) AS INTEGER ) col2
----
51

query I rowsort
SELECT ALL 84 * - 28
----
-2352

query I rowsort
SELECT 69 + + 24 * - 81 col1
----
-1875

onlyif mysql # DIV for integer division: 
query I rowsort label-6299
SELECT ALL 95 DIV 16 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL 95 / 16 AS col2
----
5

query I rowsort
SELECT DISTINCT 30 * - ( - 34 )
----
1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6301
SELECT MIN( - 71 ) DIV 52
----
-1

skipif mysql # not compatible
query I rowsort label-6301
SELECT MIN ( - 71 ) / 52
----
-1

query I rowsort
SELECT 59 * - 52 AS col2
----
-3068

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT SUM( - 61 ) + - 71
----
-132

skipif mysql # not compatible
query I rowsort label-6303
SELECT SUM ( - 61 ) + - 71
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-6304
SELECT 65 DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6304
SELECT 65 / - 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT 4 + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6305
SELECT 4 + COUNT ( * ) AS col1
----
5

query I rowsort
SELECT 10 * - 73 AS col1
----
-730

query I rowsort
SELECT ALL 88 * 34 AS col0
----
2992

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT DISTINCT + COUNT( * ) + - 23 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6308
SELECT DISTINCT + COUNT ( * ) + - 23 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT 0 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6309
SELECT 0 * COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6310
SELECT DISTINCT 23 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT 23 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT ALL 82 + - COUNT( * ) * 94 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL 82 + - COUNT ( * ) * 94 AS col1
----
-12

query I rowsort
SELECT 90 * - 31 AS col0
----
-2790

query I rowsort
SELECT DISTINCT - 57 * - 97
----
5529

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT DISTINCT + COALESCE ( - 29, COUNT( * ), 6, - 42 + COUNT( * ) ) + NULLIF ( - 84, + 31 ) AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT + COALESCE ( - 29, COUNT ( * ), 6, - 42 + COUNT ( * ) ) + NULLIF ( - 84, + 31 ) AS col1
----
-113

query I rowsort
SELECT ALL + 84 + 1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6316
SELECT - 46 * 1 - - 95 DIV - 74 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-6316
SELECT - 46 * 1 - - 95 / - 74 AS col0
----
-47

query I rowsort
SELECT DISTINCT 74 * - 4
----
-296

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT 28 * + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-6318
SELECT 28 * + COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT ALL - COUNT( + 99 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL - COUNT ( + 99 ) AS col0
----
-1

query I rowsort
SELECT ALL - 39 * 23
----
-897

query I rowsort
SELECT ALL + 45 - + 45 AS col2
----
0

query I rowsort
SELECT 39 * + 38
----
1482

query I rowsort
SELECT 70 + 94 * 75 AS col0
----
7120

query I rowsort
SELECT + + 78 * 45 - + 73
----
3437

onlyif mysql # DIV for integer division: 
query I rowsort label-6325
SELECT DISTINCT + - 46 DIV + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT + - 46 / + 96 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6326
SELECT ALL - CASE 53 WHEN 80 THEN - 13 / + COUNT( + 73 ) WHEN + COUNT( * ) * 78 + 2 * CASE 90 WHEN COALESCE ( + 97, - 82, + 0 * - 63 + + 82 ) THEN NULL ELSE - 68 + + CAST( - 54 + + 30 AS SIGNED ) END THEN + 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL - CASE 53 WHEN 80 THEN - 13 / + COUNT ( + 73 ) WHEN + COUNT ( * ) * 78 + 2 * CASE 90 WHEN COALESCE ( + 97, - 82, + 0 * - 63 + + 82 ) THEN NULL ELSE - 68 + + CAST ( - 54 + + 30 AS INTEGER ) END THEN + 33 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT - MIN( DISTINCT 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-6327
SELECT - MIN ( DISTINCT 53 ) AS col0
----
-53

query I rowsort
SELECT - ( + 52 ) AS col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6329
SELECT ALL + AVG ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL + AVG ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - - COALESCE ( - 18, + 93 + 83, 50 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT DISTINCT - - COUNT( * ) * - 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT - - COUNT ( * ) * - 56 AS col2
----
-56

query I rowsort
SELECT - 35 - 36 AS col1
----
-71

query I rowsort
SELECT DISTINCT - + 92 * 96 col2
----
-8832

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT + SUM( - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-6334
SELECT + SUM ( - 38 )
----
-38

query I rowsort
SELECT - 62 * - 25
----
1550

query I rowsort
SELECT 10 * 76 AS col1
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT ALL NULLIF ( - 94, COUNT( * ) )
----
-94

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL NULLIF ( - 94, COUNT ( * ) )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT DISTINCT + 33 + 81 + + COUNT( DISTINCT + 76 + + 4 * 26 ) AS col0
----
115

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT + 33 + 81 + + COUNT ( DISTINCT + 76 + + 4 * 26 ) AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT ALL COUNT( * ) * 17 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL COUNT ( * ) * 17 AS col1
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6340
SELECT ALL ( - 78 ) + 16 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL ( - 78 ) + 16 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT DISTINCT COUNT( * ) + + 73
----
74

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT COUNT ( * ) + + 73
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6342
SELECT + 52 DIV + - 38 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6342
SELECT + 52 / + - 38 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6343
SELECT + 18 * + CAST( - 42 AS SIGNED ) + + 44
----
-712

skipif mysql # not compatible
query I rowsort label-6343
SELECT + 18 * + CAST ( - 42 AS INTEGER ) + + 44
----
-712

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT MAX( - 71 ) * 18 + 9
----
-1269

skipif mysql # not compatible
query I rowsort label-6344
SELECT MAX ( - 71 ) * 18 + 9
----
-1269

query I rowsort
SELECT + 46 - - 30
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ALL COUNT( * ) * - ( + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL COUNT ( * ) * - ( + 48 )
----
-48

query I rowsort
SELECT + 10 + - + 99 AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT DISTINCT - 15 * COUNT( * ) + + 60 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT - 15 * COUNT ( * ) + + 60 AS col2
----
45

query I rowsort
SELECT 89 * + - 84 * - 1 + - 93 AS col0
----
7383

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6350
SELECT CASE + + COUNT( * ) WHEN CAST( 93 AS SIGNED ) THEN NULL ELSE COUNT( * ) * 8 END AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6350
SELECT CASE + + COUNT ( * ) WHEN CAST ( 93 AS INTEGER ) THEN NULL ELSE COUNT ( * ) * 8 END AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT SUM( ALL + 61 ) col1
----
61

skipif mysql # not compatible
query I rowsort label-6351
SELECT SUM ( ALL + 61 ) col1
----
61

query I rowsort
SELECT + - ( + 16 )
----
-16

query I rowsort
SELECT - 78 + + 51 AS col0
----
-27

query I rowsort
SELECT + - 3 * - 18
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-6355
SELECT ALL - - COALESCE ( + 66, - 35 DIV 88 ) * 75
----
4950

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL - - COALESCE ( + 66, - 35 / 88 ) * 75
----
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL 82 * + - 96 - COUNT( * ) - - 60
----
-7813

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL 82 * + - 96 - COUNT ( * ) - - 60
----
-7813

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT 12 * COUNT( ALL 61 ) + 65 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6357
SELECT 12 * COUNT ( ALL 61 ) + 65 AS col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6358
SELECT - - 53 DIV + - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6358
SELECT - - 53 / + - 86 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT DISTINCT + + COALESCE ( + 75, + 70, + COUNT( ( 81 ) ) ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT + + COALESCE ( + 75, + 70, + COUNT ( ( 81 ) ) ) AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6360
SELECT ALL 23 * - CAST( NULL AS SIGNED ) + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL 23 * - CAST ( NULL AS INTEGER ) + 90 AS col1
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - 55, 43 + 93 * + 37 ) AS col2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6362
SELECT - + CAST( + 31 AS SIGNED ) - ( - NULLIF ( 12, 62 ) ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-6362
SELECT - + CAST ( + 31 AS INTEGER ) - ( - NULLIF ( 12, 62 ) ) AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6363
SELECT - - COUNT( * ) + + CAST( NULL AS SIGNED ) / - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6363
SELECT - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) / - 39 AS col1
----
NULL

query I rowsort
SELECT - - 96 + + + 0 AS col0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6365
SELECT - + 27 DIV + 89 * + 5 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6365
SELECT - + 27 / + 89 * + 5 AS col0
----
0

query I rowsort
SELECT - + 21 * - + 87 + - 50
----
1777

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT - - COUNT( * ) + - + 69 + + 67 * + 41 AS col0
----
2679

skipif mysql # not compatible
query I rowsort label-6367
SELECT - - COUNT ( * ) + - + 69 + + 67 * + 41 AS col0
----
2679

query I rowsort
SELECT ALL - 46 + + 52 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT - 69 + COUNT( * ) col0
----
-68

skipif mysql # not compatible
query I rowsort label-6369
SELECT - 69 + COUNT ( * ) col0
----
-68

query I rowsort
SELECT ALL + 47 + + ( + 70 ) AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT ALL 71 * - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL 71 * - COUNT ( * )
----
-71

query I rowsort
SELECT - 77 + - 60 - - 53 + 38
----
-46

query I rowsort
SELECT DISTINCT - 74 * - + 58 * 78 col0
----
334776

query I rowsort
SELECT + 70 + + 80
----
150

query I rowsort
SELECT ALL + 57 * 92
----
5244

query I rowsort
SELECT - NULLIF ( 37, - 86 ) * 53
----
-1961

query I rowsort
SELECT + 46 + 92 * + - 92 * + 32
----
-270802

query I rowsort
SELECT + 23 + + 85 AS col0
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-6379
SELECT ALL 28 + - 38 DIV - - 67 * + 45
----
28

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL 28 + - 38 / - - 67 * + 45
----
28

query I rowsort
SELECT ALL ( - 87 ) col2
----
-87

query I rowsort
SELECT - 11 * - 39 * - - 9
----
3861

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6382
SELECT ALL ( SUM( ALL + - 73 ) ) DIV + 30
----
-2

skipif mysql # not compatible
query I rowsort label-6382
SELECT ALL ( SUM ( ALL + - 73 ) ) / + 30
----
-2

query I rowsort
SELECT DISTINCT + ( + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT ALL + 88 / + CASE + - 27 WHEN 91 THEN 85 WHEN - 1 THEN + 78 + + 42 END - + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL + 88 / + CASE + - 27 WHEN 91 THEN 85 WHEN - 1 THEN + 78 + + 42 END - + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT + NULLIF ( - 55, SUM( DISTINCT + 60 ) * 48 ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-6385
SELECT + NULLIF ( - 55, SUM ( DISTINCT + 60 ) * 48 ) col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6386
SELECT CAST( - 44 AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-6386
SELECT CAST ( - 44 AS INTEGER )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6387
SELECT ALL ( SUM( 25 ) ) / - 42 - CAST( NULL AS SIGNED ) * 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL ( SUM ( 25 ) ) / - 42 - CAST ( NULL AS INTEGER ) * 50 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT + MIN( DISTINCT + + 52 ) * ( + 74 )
----
3848

skipif mysql # not compatible
query I rowsort label-6388
SELECT + MIN ( DISTINCT + + 52 ) * ( + 74 )
----
3848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6389
SELECT 22 DIV COUNT( * ) - 42 * - 78 AS col1
----
3298

skipif mysql # not compatible
query I rowsort label-6389
SELECT 22 / COUNT ( * ) - 42 * - 78 AS col1
----
3298

query I rowsort
SELECT + ( + ( + 34 ) ) AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6391
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 49
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6392
SELECT + CAST( + COUNT( * ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6392
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT + + 32 * 42 * - 34 + - 93 * MIN( ALL + 36 ) col2
----
-49044

skipif mysql # not compatible
query I rowsort label-6393
SELECT + + 32 * 42 * - 34 + - 93 * MIN ( ALL + 36 ) col2
----
-49044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6394
SELECT + CASE + 15 WHEN + 20 THEN + 91 / 2 - ( 53 + 61 * - 28 ) * + COUNT( ALL 66 ) WHEN - 0 + 29 THEN + 6 END * ( - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6394
SELECT + CASE + 15 WHEN + 20 THEN + 91 / 2 - ( 53 + 61 * - 28 ) * + COUNT ( ALL 66 ) WHEN - 0 + 29 THEN + 6 END * ( - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6395
SELECT - COUNT( * ) col1, ( COUNT( * ) ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-6395
SELECT - COUNT ( * ) col1, ( COUNT ( * ) ) AS col2
----
-1
1

query I rowsort
SELECT ALL - 63 * 54 * 68 AS col1
----
-231336

query I rowsort
SELECT + - 57 * 60 AS col0
----
-3420

query II rowsort
SELECT ALL + 99 AS col2, 16 AS col0
----
99
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6399
SELECT DISTINCT + 94 * + + 4 * COUNT( * ) - 15 * - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT + 94 * + + 4 * COUNT ( * ) - 15 * - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT + 46 * 13 * 77 - 79
----
45967

onlyif mysql # aggregate syntax: 
query II rowsort label-6401
SELECT ALL + - 68 AS col1, + COUNT( * ) + + 85 - 44
----
-68
42

skipif mysql # not compatible
query II rowsort label-6401
SELECT ALL + - 68 AS col1, + COUNT ( * ) + + 85 - 44
----
-68
42

query II rowsort
SELECT DISTINCT + + 72, 62 AS col2
----
72
62

query I rowsort
SELECT + 42 - + 4
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT ALL COUNT( * ) * + SUM( + 72 ) + ( ( - 77 ) ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL COUNT ( * ) * + SUM ( + 72 ) + ( ( - 77 ) ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT + CASE - 9 WHEN - COUNT( * ) THEN 2 ELSE NULL END * + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT + CASE - 9 WHEN - COUNT ( * ) THEN 2 ELSE NULL END * + 58
----
NULL

query I rowsort
SELECT ALL + + ( - - 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT + + COUNT( * ) + - 67
----
-66

skipif mysql # not compatible
query I rowsort label-6407
SELECT + + COUNT ( * ) + - 67
----
-66

query I rowsort
SELECT + + 31 * 81 AS col0
----
2511

query I rowsort
SELECT - - 25 + 79 AS col2
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6410
SELECT - CAST( NULL AS SIGNED ) AS col0, 46 + 83
----
NULL
129

skipif mysql # not compatible
query II rowsort label-6410
SELECT - CAST ( NULL AS INTEGER ) AS col0, 46 + 83
----
NULL
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT ALL ( + ( + 31 ) ) * COUNT( * ) + 79 col0
----
110

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL ( + ( + 31 ) ) * COUNT ( * ) + 79 col0
----
110

query I rowsort
SELECT DISTINCT - COALESCE ( - 61, - 38 * 89 + - 94 ) AS col0
----
61

query I rowsort
SELECT DISTINCT - 17 + 63 + - - 47 + + 94 AS col2
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT - + MIN( + 30 ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-6414
SELECT - + MIN ( + 30 ) col2
----
-30

query I rowsort
SELECT ALL 41 * 8 + + 80 AS col1
----
408

onlyif mysql # aggregate syntax: 
query II rowsort label-6416
SELECT - + 73 AS col0, + 7 * - - MIN( DISTINCT 76 ) AS col1
----
-73
532

skipif mysql # not compatible
query II rowsort label-6416
SELECT - + 73 AS col0, + 7 * - - MIN ( DISTINCT 76 ) AS col1
----
-73
532

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT ALL + ( - COUNT( * ) ) + + 62 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL + ( - COUNT ( * ) ) + + 62 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT 10 * + - MAX( - 81 ) AS col1
----
810

skipif mysql # not compatible
query I rowsort label-6418
SELECT 10 * + - MAX ( - 81 ) AS col1
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT SUM( DISTINCT 5 ) + - + 60
----
-55

skipif mysql # not compatible
query I rowsort label-6419
SELECT SUM ( DISTINCT 5 ) + - + 60
----
-55

query I rowsort
SELECT 22 * ( - + 59 ) AS col2
----
-1298

query I rowsort
SELECT DISTINCT - ( 49 ) + 35 + 8 * 15
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT ALL + COUNT( * ) + 36 + + + 7 + - 2 + - 86
----
-44

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL + COUNT ( * ) + 36 + + + 7 + - 2 + - 86
----
-44

query I rowsort
SELECT 0 * + 54 * - 0 col1
----
0

query I rowsort
SELECT 9 - - 39 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT 12 * + + 40 * COUNT( + - 45 ) * NULLIF ( + 90, 5 - + 61 )
----
43200

skipif mysql # not compatible
query I rowsort label-6425
SELECT 12 * + + 40 * COUNT ( + - 45 ) * NULLIF ( + 90, 5 - + 61 )
----
43200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6426
SELECT ALL 99 DIV 64 * + MAX( - + 23 ) * - 53 AS col1
----
1219

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL 99 / 64 * + MAX ( - + 23 ) * - 53 AS col1
----
1219

query I rowsort
SELECT 19 - 41 + - 49
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6428
SELECT ALL + CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6429
SELECT 28 + 94 DIV SUM( DISTINCT + 28 )
----
31

skipif mysql # not compatible
query I rowsort label-6429
SELECT 28 + 94 / SUM ( DISTINCT + 28 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT ALL + ( ( - + ( + COUNT( ALL + 39 ) ) ) ) - 64 * + 14 col2
----
-897

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL + ( ( - + ( + COUNT ( ALL + 39 ) ) ) ) - 64 * + 14 col2
----
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT ALL 75 - + COALESCE ( - - 15, + + 96, + 86 * + COUNT( * ) ) * COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL 75 - + COALESCE ( - - 15, + + 96, + 86 * + COUNT ( * ) ) * COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT ALL + COUNT( * ) * - 10
----
-10

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL + COUNT ( * ) * - 10
----
-10

query I rowsort
SELECT 25 * + 84 AS col1
----
2100

onlyif mysql # DIV for integer division: 
query I rowsort label-6434
SELECT 26 DIV - - 53 + - + 14 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-6434
SELECT 26 / - - 53 + - + 14 AS col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6435
SELECT DISTINCT - CAST( 19 AS SIGNED ) AS col2, + 22 AS col1
----
-19
22

skipif mysql # not compatible
query II rowsort label-6435
SELECT DISTINCT - CAST ( 19 AS INTEGER ) AS col2, + 22 AS col1
----
-19
22

query I rowsort
SELECT ALL - - 38 col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT - 13 + + + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-6437
SELECT - 13 + + + COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6438
SELECT - CASE + 0 WHEN - ( 46 ) THEN NULL WHEN 61 * + 48 THEN 12 * - 58 + 47 ELSE ( COUNT( DISTINCT 49 ) ) DIV 65 END
----
0

skipif mysql # not compatible
query I rowsort label-6438
SELECT - CASE + 0 WHEN - ( 46 ) THEN NULL WHEN 61 * + 48 THEN 12 * - 58 + 47 ELSE ( COUNT ( DISTINCT 49 ) ) / 65 END
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6439
SELECT + 19 * + 39 + + + ( + + 77 ) + CAST( - 89 AS SIGNED ) AS col0
----
729

skipif mysql # not compatible
query I rowsort label-6439
SELECT + 19 * + 39 + + + ( + + 77 ) + CAST ( - 89 AS INTEGER ) AS col0
----
729

onlyif mysql # DIV for integer division: 
query I rowsort label-6440
SELECT 47 DIV 36 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6440
SELECT 47 / 36 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT CASE - + 35 WHEN - ( + 73 ) THEN NULL ELSE - 37 + - COUNT( * ) END
----
-38

skipif mysql # not compatible
query I rowsort label-6441
SELECT CASE - + 35 WHEN - ( + 73 ) THEN NULL ELSE - 37 + - COUNT ( * ) END
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-6442
SELECT 26 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-6442
SELECT 26 / + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT - MIN( ALL - + 86 ) * - 19
----
-1634

skipif mysql # not compatible
query I rowsort label-6443
SELECT - MIN ( ALL - + 86 ) * - 19
----
-1634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6444
SELECT DISTINCT 41 + + ( - MIN( - CAST( + 45 AS SIGNED ) ) ) * - 59
----
-2614

skipif mysql # not compatible
query I rowsort label-6444
SELECT DISTINCT 41 + + ( - MIN ( - CAST ( + 45 AS INTEGER ) ) ) * - 59
----
-2614

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL 45 * - + 1 * COUNT( DISTINCT + 96 ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL 45 * - + 1 * COUNT ( DISTINCT + 96 ) col2
----
-45

query I rowsort
SELECT ALL 68 + - 65 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6447
SELECT - COUNT( * ) * - + 77 + + 34 + + 36 + COUNT( * ) DIV - 75 + NULLIF ( 36, + 79 * - 82 )
----
183

skipif mysql # not compatible
query I rowsort label-6447
SELECT - COUNT ( * ) * - + 77 + + 34 + + 36 + COUNT ( * ) / - 75 + NULLIF ( 36, + 79 * - 82 )
----
183

query I rowsort
SELECT 96 + - 77
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6449
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + 25 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT + CAST ( NULL AS REAL ) + + 25 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6450
SELECT CASE - - 5 WHEN + - NULLIF ( + + 66, 76 ) + + MAX( ALL ( 53 ) ) THEN CAST( NULLIF ( + AVG ( ALL - 70 ), ( COUNT( * ) ) * 91 ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT CASE - - 5 WHEN + - NULLIF ( + + 66, 76 ) + + MAX ( ALL ( 53 ) ) THEN CAST ( NULLIF ( + AVG ( ALL - 70 ), ( COUNT ( * ) ) * 91 ) AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 0 * + - ( - 35 ) + - 76 AS col1
----
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6452
SELECT CAST( NULL AS DECIMAL ) - + 34 + - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6452
SELECT CAST ( NULL AS REAL ) - + 34 + - 54 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT ALL 53 - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL 53 - COUNT ( * )
----
52

query I rowsort
SELECT ALL ( - ( + + 49 ) ) * + + 31 * - 83 AS col1
----
126077

query II rowsort
SELECT 38 + ( + 97 ) AS col1, 63 + + ( + 17 ) + 82 * 76
----
135
6312

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT DISTINCT 82 - - ( + COALESCE ( + + 5, - 43 * COUNT( * ) ) )
----
87

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT 82 - - ( + COALESCE ( + + 5, - 43 * COUNT ( * ) ) )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6457
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CASE - 39 WHEN 72 - + 82 - 16 THEN 58 * ( + 52 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CASE - 39 WHEN 72 - + 82 - 16 THEN 58 * ( + 52 ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT DISTINCT 58 DIV + 93 col2
----
0

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT 58 / + 93 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL COUNT( * ) - - 62 * 19
----
1179

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL COUNT ( * ) - - 62 * 19
----
1179

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT 28 + + 65 * - - 27 * COUNT( ALL 83 ) AS col2
----
1783

skipif mysql # not compatible
query I rowsort label-6460
SELECT 28 + + 65 * - - 27 * COUNT ( ALL 83 ) AS col2
----
1783

query I rowsort
SELECT 35 * - 26
----
-910

query I rowsort
SELECT DISTINCT 11 * 20 * - - 3
----
660

query I rowsort
SELECT 54 + 40 AS col2
----
94

query I rowsort
SELECT 25 * - - 75
----
1875

query I rowsort
SELECT ( 57 ) * + - 20 + - 56
----
-1196

query I rowsort
SELECT 37 * - 41 AS col2
----
-1517

query I rowsort
SELECT 73 + + 31
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-6468
SELECT ALL - 49 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL - 49 / + 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT + - 61 * + NULLIF ( - 54, - SUM( + - 28 ) ) + - 37 + 90 * + 76
----
10097

skipif mysql # not compatible
query I rowsort label-6469
SELECT + - 61 * + NULLIF ( - 54, - SUM ( + - 28 ) ) + - 37 + 90 * + 76
----
10097

query II rowsort
SELECT + ( ( - 9 ) ) col2, - 49 + - - 90 * 30 AS col1
----
-9
2651

query I rowsort
SELECT ALL + 96 * + 91 * 85 + - + 99
----
742461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6472
SELECT - CASE - CAST( NULL AS SIGNED ) WHEN - 2 + - + ( - 5 ) THEN + 18 * 22 END * 32 - - CASE CAST( NULL AS SIGNED ) - 58 WHEN 66 * - MIN( ALL - 7 ) - 34 THEN CAST( NULL AS SIGNED ) + + 51 / COUNT( * ) WHEN - 87 + 76 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN - 2 + - + ( - 5 ) THEN + 18 * 22 END * 32 - - CASE CAST ( NULL AS INTEGER ) - 58 WHEN 66 * - MIN ( ALL - 7 ) - 34 THEN CAST ( NULL AS INTEGER ) + + 51 / COUNT ( * ) WHEN - 87 + 76 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + + 95 col0
----
95

query I rowsort
SELECT - 60 * 32 AS col2
----
-1920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6475
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 40 * 39 - + MIN( - + ( 92 ) ) + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 40 * 39 - + MIN ( - + ( 92 ) ) + 55
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6476
SELECT - - 23 + CASE - MAX( DISTINCT - - 14 ) WHEN + COUNT( * ) * + 1 THEN NULL WHEN + 62 THEN - NULLIF ( CAST( NULL AS SIGNED ), - 54 * 58 ) + 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6476
SELECT - - 23 + CASE - MAX ( DISTINCT - - 14 ) WHEN + COUNT ( * ) * + 1 THEN NULL WHEN + 62 THEN - NULLIF ( CAST ( NULL AS INTEGER ), - 54 * 58 ) + 58 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6477
SELECT + CAST( - CASE - - 10 WHEN + 89 THEN + - 46 * + 37 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6477
SELECT + CAST ( - CASE - - 10 WHEN + 89 THEN + - 46 * + 37 ELSE NULL END AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + + 79 col1, 83 AS col2
----
79
83

onlyif mysql # aggregate syntax: 
query II rowsort label-6479
SELECT + - COUNT( * ), 50 AS col2
----
-1
50

skipif mysql # not compatible
query II rowsort label-6479
SELECT + - COUNT ( * ), 50 AS col2
----
-1
50

query II rowsort
SELECT + + 44, - 88 + + + 33 AS col2
----
44
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT DISTINCT - 76 - COALESCE ( + COUNT( * ), + + 78 ) + - - 36 * 71 * 60 AS col0
----
153283

skipif mysql # not compatible
query I rowsort label-6481
SELECT DISTINCT - 76 - COALESCE ( + COUNT ( * ), + + 78 ) + - - 36 * 71 * 60 AS col0
----
153283

query I rowsort
SELECT + 47 + - - 48 * + - 91
----
-4321

query I rowsort
SELECT ALL 12 * - 31
----
-372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6484
SELECT DISTINCT CASE - SUM( ALL + - ( + 84 ) ) WHEN + - CAST( NULL AS SIGNED ) * + - ( 81 ) + + 75 * - COUNT( * ) THEN + AVG ( ALL 21 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT CASE - SUM ( ALL + - ( + 84 ) ) WHEN + - CAST ( NULL AS INTEGER ) * + - ( 81 ) + + 75 * - COUNT ( * ) THEN + AVG ( ALL 21 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT DISTINCT - 16 * + + MIN( DISTINCT + ( + + ( + + 64 ) ) ) AS col2
----
-1024

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT - 16 * + + MIN ( DISTINCT + ( + + ( + + 64 ) ) ) AS col2
----
-1024

query II rowsort
SELECT ALL 93 AS col2, + 21 * 25
----
93
525

query II rowsort
SELECT 54 AS col2, NULLIF ( - ( 92 ), - 72 ) + + 97
----
54
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6488
SELECT ALL + 53 - - 67 + - 16 + - + SUM( + 15 ) * + 73 - - COUNT( * ) DIV 66
----
-991

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL + 53 - - 67 + - 16 + - + SUM ( + 15 ) * + 73 - - COUNT ( * ) / 66
----
-991

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6489
SELECT ALL - CASE COUNT( * ) WHEN 30 THEN NULL ELSE 94 / + + 65 + - - SUM( ALL 77 ) - - CAST( NULL AS SIGNED ) END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL - CASE COUNT ( * ) WHEN 30 THEN NULL ELSE 94 / + + 65 + - - SUM ( ALL 77 ) - - CAST ( NULL AS INTEGER ) END * COUNT ( * )
----
NULL

query I rowsort
SELECT + 88 * 90 * + 41 AS col1
----
324720

query I rowsort
SELECT - NULLIF ( + + 14, - 98 ) AS col0
----
-14

query I rowsort
SELECT - 75 - + 53
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6493
SELECT - NULLIF ( + + CAST( + COUNT( * ) AS SIGNED ), + - 34 * - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6493
SELECT - NULLIF ( + + CAST ( + COUNT ( * ) AS INTEGER ), + - 34 * - COUNT ( * ) )
----
-1

query I rowsort
SELECT - 52 + - + 0
----
-52

query II rowsort
SELECT 84 AS col2, 61
----
84
61

query I rowsort
SELECT + 28 + - CASE + + 12 WHEN + + ( + - 75 ) * + 57 * - 91 THEN - 27 ELSE NULL END + + 34
----
NULL

query II rowsort
SELECT 65 AS col2, 98 * + 99 * - 0 col2
----
65
0

query II rowsort
SELECT - 70 AS col1, 68
----
-70
68

query II rowsort
SELECT DISTINCT 21 AS col0, 99 + - 89
----
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT + 98 - - + 35 + - 76 - - 29 * - + COALESCE ( ( - 28 ), - ( - NULLIF ( - COUNT( * ), COUNT( * ) * MIN( ALL 89 ) ) ) * + 65 ) AS col2
----
869

skipif mysql # not compatible
query I rowsort label-6500
SELECT + 98 - - + 35 + - 76 - - 29 * - + COALESCE ( ( - 28 ), - ( - NULLIF ( - COUNT ( * ), COUNT ( * ) * MIN ( ALL 89 ) ) ) * + 65 ) AS col2
----
869

onlyif mysql # DIV for integer division: 
query I rowsort label-6501
SELECT ALL 4 DIV + 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL 4 / + 32 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT + CASE WHEN NOT AVG ( + 16 ) BETWEEN - 36 AND - 16 + - 58 THEN + 75 + - 58 END + MAX( + 8 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6502
SELECT + CASE WHEN NOT AVG ( + 16 ) BETWEEN - 36 AND - 16 + - 58 THEN + 75 + - 58 END + MAX ( + 8 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT ALL MAX( DISTINCT 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL MAX ( DISTINCT 54 ) AS col2
----
54

query I rowsort
SELECT DISTINCT 73 + - 15 + + 26 + + - 67 AS col0
----
17

query I rowsort
SELECT ALL 78 + 34 col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT + ( COUNT( * ) ) + - 95 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-6506
SELECT + ( COUNT ( * ) ) + - 95 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT + SUM( ALL 47 )
----
47

skipif mysql # not compatible
query I rowsort label-6507
SELECT + SUM ( ALL 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT + CASE 85 WHEN - 73 THEN - CASE - + ( - 30 ) WHEN - 8 * - 67 THEN NULL WHEN - ( - MIN( 84 ) ) + 7 THEN + MIN( + 81 ) / 23 - 2 END ELSE - 86 * 21 END / COUNT( * ) + + CASE + 29 WHEN - 58 * 84 + COUNT( * ) / 28 THEN - 14 END * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6508
SELECT + CASE 85 WHEN - 73 THEN - CASE - + ( - 30 ) WHEN - 8 * - 67 THEN NULL WHEN - ( - MIN ( 84 ) ) + 7 THEN + MIN ( + 81 ) / 23 - 2 END ELSE - 86 * 21 END / COUNT ( * ) + + CASE + 29 WHEN - 58 * 84 + COUNT ( * ) / 28 THEN - 14 END * - 97
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6509
SELECT - 51 * - - 26 - COALESCE ( + 75, ( - ( CASE + AVG ( 71 ) WHEN 82 - COUNT( * ) DIV 73 THEN 93 ELSE NULL END ) ), + 80 * - ( 51 ) ) - ( 73 ) - 2 DIV 17
----
-1474

skipif mysql # not compatible
query I rowsort label-6509
SELECT - 51 * - - 26 - COALESCE ( + 75, ( - ( CASE + AVG ( 71 ) WHEN 82 - COUNT ( * ) / 73 THEN 93 ELSE NULL END ) ), + 80 * - ( 51 ) ) - ( 73 ) - 2 / 17
----
-1474

query I rowsort
SELECT DISTINCT + - 19 col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6511
SELECT DISTINCT - 49 DIV + + 1 + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT - 49 / + + 1 + COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-6512
SELECT ALL + + 67 AS col2, + COUNT( * )
----
67
1

skipif mysql # not compatible
query II rowsort label-6512
SELECT ALL + + 67 AS col2, + COUNT ( * )
----
67
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT ALL + ( - - MAX( 56 ) ) * - + NULLIF ( - 8, - 66 ) * - 35 + 33 col2
----
-15647

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL + ( - - MAX ( 56 ) ) * - + NULLIF ( - 8, - 66 ) * - 35 + 33 col2
----
-15647

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT - - 94 + - COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-6514
SELECT - - 94 + - COUNT ( * ) AS col0
----
93

query I rowsort
SELECT - 72 * 53 + 31
----
-3785

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT ALL - - 55 * SUM( ALL - 86 ) * - 83 + - + 94 + 53 AS col2
----
392549

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL - - 55 * SUM ( ALL - 86 ) * - 83 + - + 94 + 53 AS col2
----
392549

query I rowsort
SELECT + + 16 + - 24 + + - 68 * + + 59 + + 70 col2
----
-3950

query I rowsort
SELECT ALL - 47 * + 30
----
-1410

query I rowsort
SELECT - - 42 + + 43 AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6520
SELECT + COUNT( * ), ( - CAST( + COUNT( * ) AS SIGNED ) ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-6520
SELECT + COUNT ( * ), ( - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col1
----
1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6521
SELECT - 74 + 68 + 41 * - + 52 * + 97 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT - 74 + 68 + 41 * - + 52 * + 97 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6522
SELECT ALL + + CAST( + + 1 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL + + CAST ( + + 1 AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6523
SELECT COALESCE ( - + 40, + 29 DIV - CASE + 89 WHEN 30 THEN 81 WHEN 40 + NULLIF ( 42, - 3 + 32 * 77 ) * + 73 THEN NULL END - - COUNT( * ) * COUNT( * ) )
----
-40

skipif mysql # not compatible
query I rowsort label-6523
SELECT COALESCE ( - + 40, + 29 / - CASE + 89 WHEN 30 THEN 81 WHEN 40 + NULLIF ( 42, - 3 + 32 * 77 ) * + 73 THEN NULL END - - COUNT ( * ) * COUNT ( * ) )
----
-40

query I rowsort
SELECT - 88 + 81
----
-7

query I rowsort
SELECT ALL 58 * - + 36 AS col0
----
-2088

query I rowsort
SELECT - 64 * 66 * + 83
----
-350592

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6527
SELECT 58 * - 26 + + 31 + + CAST( NULL AS DECIMAL ) * - - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6527
SELECT 58 * - 26 + + 31 + + CAST ( NULL AS REAL ) * - - 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT - 82 - - + MIN( 45 )
----
-37

skipif mysql # not compatible
query I rowsort label-6528
SELECT - 82 - - + MIN ( 45 )
----
-37

query I rowsort
SELECT - 52 + 63 * + + 23
----
1397

onlyif mysql # aggregate syntax: 
query II rowsort label-6530
SELECT MIN( ALL - - 29 ) AS col1, 58 + 93 AS col0
----
29
151

skipif mysql # not compatible
query II rowsort label-6530
SELECT MIN ( ALL - - 29 ) AS col1, 58 + 93 AS col0
----
29
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6531
SELECT - 4 * + - 12 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6531
SELECT - 4 * + - 12 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ALL 16 + + COUNT( * ) - 13 / 82 + - 58 + - CASE + COALESCE ( COUNT( * ), 54 ) WHEN 9 THEN + 76 ELSE NULL END / 71
----
NULL

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL 16 + + COUNT ( * ) - 13 / 82 + - 58 + - CASE + COALESCE ( COUNT ( * ), 54 ) WHEN 9 THEN + 76 ELSE NULL END / 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6533
SELECT - 22 + - - CAST( 28 AS SIGNED ) + + - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-6533
SELECT - 22 + - - CAST ( 28 AS INTEGER ) + + - COUNT ( * )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6534
SELECT ALL + CAST( - 77 AS SIGNED ) + + 75
----
-2

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL + CAST ( - 77 AS INTEGER ) + + 75
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6535
SELECT - COUNT( - 62 ) + 81 + + 19 + + NULLIF ( + 12, + - 19 * CASE CAST( CAST( 99 AS SIGNED ) AS SIGNED ) * 33 WHEN + 15 * 88 THEN 52 + 11 ELSE NULL END ) - 29
----
82

skipif mysql # not compatible
query I rowsort label-6535
SELECT - COUNT ( - 62 ) + 81 + + 19 + + NULLIF ( + 12, + - 19 * CASE CAST ( CAST ( 99 AS INTEGER ) AS INTEGER ) * 33 WHEN + 15 * 88 THEN 52 + 11 ELSE NULL END ) - 29
----
82

query I rowsort
SELECT DISTINCT + 50 + - - 51 + - - 5 AS col2
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6537
SELECT ALL - CAST( + 45 AS SIGNED ) + - COALESCE ( - 67, 26 * + 47 + - + 57 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL - CAST ( + 45 AS INTEGER ) + - COALESCE ( - 67, 26 * + 47 + - + 57 ) AS col0
----
22

query I rowsort
SELECT ALL + 32 + 74 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT - MIN( DISTINCT + 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-6539
SELECT - MIN ( DISTINCT + 55 ) AS col1
----
-55

query I rowsort
SELECT - + 64 * + 83 * - 25
----
132800

onlyif mysql # aggregate syntax: 
query II rowsort label-6541
SELECT + + 58 + + COUNT( * ), MIN( DISTINCT - 39 ) col0
----
59
-39

skipif mysql # not compatible
query II rowsort label-6541
SELECT + + 58 + + COUNT ( * ), MIN ( DISTINCT - 39 ) col0
----
59
-39

query I rowsort
SELECT + - 83 + 94 + - 28 + + 1 * + 74 + + - 17
----
40

query I rowsort
SELECT ALL - 3 + 15
----
12

query I rowsort
SELECT - 81 * - + 67 * - - 8
----
43416

query I rowsort
SELECT DISTINCT + 70 - - - 39 AS col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6546
SELECT - 95 DIV 51 + - 7 col0
----
-8

skipif mysql # not compatible
query I rowsort label-6546
SELECT - 95 / 51 + - 7 col0
----
-8

query I rowsort
SELECT ALL 78 - + 80 - - + 46
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6548
SELECT + COUNT( * ) * + - 85 DIV 91 - - 90 col2
----
90

skipif mysql # not compatible
query I rowsort label-6548
SELECT + COUNT ( * ) * + - 85 / 91 - - 90 col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6549
SELECT CASE WHEN + AVG ( + 25 ) > + 42 THEN - 20 * + CAST( + 60 AS SIGNED ) WHEN NOT 49 * CASE 53 WHEN - 56 THEN NULL WHEN + 97 THEN + 31 ELSE - 74 / + 4 - 82 * - 86 END BETWEEN NULL AND NULL THEN 94 * + COALESCE ( + 22 * + ( + 82 * + ( 69 * 33 ) ), 9 ) + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6549
SELECT CASE WHEN + AVG ( + 25 ) > + 42 THEN - 20 * + CAST ( + 60 AS INTEGER ) WHEN NOT 49 * CASE 53 WHEN - 56 THEN NULL WHEN + 97 THEN + 31 ELSE - 74 / + 4 - 82 * - 86 END BETWEEN NULL AND NULL THEN 94 * + COALESCE ( + 22 * + ( + 82 * + ( 69 * 33 ) ), 9 ) + COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT + COUNT( - - 95 ) - - MIN( + 71 ) * MAX( - 78 )
----
-5537

skipif mysql # not compatible
query I rowsort label-6550
SELECT + COUNT ( - - 95 ) - - MIN ( + 71 ) * MAX ( - 78 )
----
-5537

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6551
SELECT COUNT( * ) DIV COUNT( * ) col2, 23 AS col2
----
1
23

skipif mysql # not compatible
query II rowsort label-6551
SELECT COUNT ( * ) / COUNT ( * ) col2, 23 AS col2
----
1
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6552
SELECT ALL - + COALESCE ( - 93, 48, + COALESCE ( COUNT( * ), + 31, - CASE - 94 WHEN - 36 * 26 THEN 13 * CAST( + 58 AS SIGNED ) + MAX( 85 ) ELSE NULL END * - ( 73 ) ) )
----
93

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL - + COALESCE ( - 93, 48, + COALESCE ( COUNT ( * ), + 31, - CASE - 94 WHEN - 36 * 26 THEN 13 * CAST ( + 58 AS INTEGER ) + MAX ( 85 ) ELSE NULL END * - ( 73 ) ) )
----
93

query I rowsort
SELECT - + 29 * 41 + - 68 AS col2
----
-1257

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT + COALESCE ( CASE - ( - 80 ) WHEN + COUNT( * ) * - - 66 + 57 + 59 * 89 THEN 31 WHEN COUNT( * ) THEN NULL END, - 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-6554
SELECT + COALESCE ( CASE - ( - 80 ) WHEN + COUNT ( * ) * - - 66 + 57 + 59 * 89 THEN 31 WHEN COUNT ( * ) THEN NULL END, - 40 ) AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6555
SELECT 90 * + 60 + + CAST( NULL AS SIGNED ) AS col0, - 89
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-6555
SELECT 90 * + 60 + + CAST ( NULL AS INTEGER ) AS col0, - 89
----
NULL
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6556
SELECT 38 DIV + - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6556
SELECT 38 / + - 69 AS col0
----
0

query I rowsort
SELECT DISTINCT - CASE + 76 WHEN 87 * 25 * 7 * - 96 + + 13 + - 43 / ( - 87 * 61 ) THEN CASE 26 WHEN - 44 THEN 90 * - 88 ELSE NULL END WHEN 69 THEN + 82 * + 8 - AVG ( 89 + + 0 * 36 ) * 70 WHEN 36 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT COUNT( * ) * + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-6558
SELECT COUNT ( * ) * + - 8
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6559
SELECT 54 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT 54 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 4 AS col1, 76 AS col1
----
4
76

query I rowsort
SELECT ALL + 63 + + - 8 AS col0
----
55

query II rowsort
SELECT - 10, 58 AS col1
----
-10
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT DISTINCT COALESCE ( 88, COUNT( * ) - + 34, + 20 ) + + - 37 + - 39 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT COALESCE ( 88, COUNT ( * ) - + 34, + 20 ) + + - 37 + - 39 AS col1
----
12

query I rowsort
SELECT DISTINCT - 18 + ( - 82 ) AS col0
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6565
SELECT ALL + CAST( - + MIN( - 62 ) AS SIGNED ) + NULLIF ( - COALESCE ( - 88, - COUNT( * ) ), + + 95 / + COALESCE ( + ( 57 ), - 8 ) )
----
150

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL + CAST ( - + MIN ( - 62 ) AS INTEGER ) + NULLIF ( - COALESCE ( - 88, - COUNT ( * ) ), + + 95 / + COALESCE ( + ( 57 ), - 8 ) )
----
150

query II rowsort
SELECT - 25 AS col2, + 17 + - 94
----
-25
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-6567
SELECT ALL 26, COUNT( * ) AS col1
----
26
1

skipif mysql # not compatible
query II rowsort label-6567
SELECT ALL 26, COUNT ( * ) AS col1
----
26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT 53 + - MAX( ALL + 97 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-6568
SELECT 53 + - MAX ( ALL + 97 ) AS col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6569
SELECT CAST( NULL AS SIGNED ) + + - 8 + 49, 8 col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-6569
SELECT CAST ( NULL AS INTEGER ) + + - 8 + 49, 8 col1
----
NULL
8

query II rowsort
SELECT - 98 AS col2, ( - - 98 )
----
-98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT - ( - - 46 ) - + - COUNT( - - NULLIF ( + 81, - 73 ) )
----
-45

skipif mysql # not compatible
query I rowsort label-6571
SELECT - ( - - 46 ) - + - COUNT ( - - NULLIF ( + 81, - 73 ) )
----
-45

query I rowsort
SELECT ALL + - 59 * - 20 AS col0
----
1180

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT DISTINCT + COUNT( * ) * 74 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT + COUNT ( * ) * 74 AS col1
----
74

query I rowsort
SELECT - ( + 73 ) AS col2
----
-73

query I rowsort
SELECT DISTINCT - - 47 * + 44 + + 93 AS col1
----
2161

query I rowsort
SELECT DISTINCT + - 21 * 58
----
-1218

query I rowsort
SELECT - 6 + COALESCE ( + 49, + 80 * 5, - + 62 * + 10 + + - 68 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT COUNT( * ) + ( NULLIF ( - 23, + 6 + + 31 ) ) * - ( + 67 ) + - COALESCE ( + 33, + 78 - + 17, COALESCE ( 70, - ( + 20 ) ) + + ( - 1 ) )
----
1509

skipif mysql # not compatible
query I rowsort label-6578
SELECT COUNT ( * ) + ( NULLIF ( - 23, + 6 + + 31 ) ) * - ( + 67 ) + - COALESCE ( + 33, + 78 - + 17, COALESCE ( 70, - ( + 20 ) ) + + ( - 1 ) )
----
1509

onlyif mysql # aggregate syntax: 
query II rowsort label-6579
SELECT + COUNT( * ) * + - 91 * - 70 AS col0, + COUNT( * ) * + 30 AS col2
----
6370
30

skipif mysql # not compatible
query II rowsort label-6579
SELECT + COUNT ( * ) * + - 91 * - 70 AS col0, + COUNT ( * ) * + 30 AS col2
----
6370
30

query I rowsort
SELECT + 0 * 55 + + + 78 AS col2
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6581
SELECT 8 - - - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6581
SELECT 8 - - - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6582
SELECT DISTINCT - - COUNT( * ) AS col1, 16
----
1
16

skipif mysql # not compatible
query II rowsort label-6582
SELECT DISTINCT - - COUNT ( * ) AS col1, 16
----
1
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT - MAX( ALL 31 ) * - 81 + - + 85 AS col2
----
2426

skipif mysql # not compatible
query I rowsort label-6583
SELECT - MAX ( ALL 31 ) * - 81 + - + 85 AS col2
----
2426

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL - MIN( + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL - MIN ( + 60 )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6585
SELECT 28, + CAST( NULL AS SIGNED ) AS col0
----
28
NULL

skipif mysql # not compatible
query II rowsort label-6585
SELECT 28, + CAST ( NULL AS INTEGER ) AS col0
----
28
NULL

query II rowsort
SELECT ALL - - 65, 81 AS col2
----
65
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6587
SELECT DISTINCT - + CASE - COUNT( * ) WHEN + 73 THEN + COUNT( ALL + 81 ) + - CASE + NULLIF ( - + 26, CAST( NULL AS SIGNED ) + + 46 ) WHEN ( 54 ) * CAST( NULL AS SIGNED ) THEN NULL WHEN 75 THEN ( 95 ) / 22 - - 17 ELSE 53 END + NULLIF ( + 41, + 69 ) WHEN + 57 - + COALESCE ( - 59, 80 - 85 / - ( 14 * 7 ), 2 + COUNT( CAST( NULL AS SIGNED ) ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT - + CASE - COUNT ( * ) WHEN + 73 THEN + COUNT ( ALL + 81 ) + - CASE + NULLIF ( - + 26, CAST ( NULL AS INTEGER ) + + 46 ) WHEN ( 54 ) * CAST ( NULL AS INTEGER ) THEN NULL WHEN 75 THEN ( 95 ) / 22 - - 17 ELSE 53 END + NULLIF ( + 41, + 69 ) WHEN + 57 - + COALESCE ( - 59, 80 - 85 / - ( 14 * 7 ), 2 + COUNT ( CAST ( NULL AS INTEGER ) ) ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 64 * + 45 + - 79 + 47
----
-2912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6589
SELECT 65 * 24 + CAST( NULL AS SIGNED ) / AVG ( DISTINCT 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6589
SELECT 65 * 24 + CAST ( NULL AS INTEGER ) / AVG ( DISTINCT 20 )
----
NULL

query I rowsort
SELECT 94 * 62 * 80 + - 46 * + - 57 AS col1
----
468862

onlyif mysql # aggregate syntax: 
query II rowsort label-6591
SELECT COUNT( - 24 ) AS col1, 11 col1
----
1
11

skipif mysql # not compatible
query II rowsort label-6591
SELECT COUNT ( - 24 ) AS col1, 11 col1
----
1
11

onlyif mysql # aggregate syntax: 
query II rowsort label-6592
SELECT + MIN( 48 ) AS col0, - 8 col0
----
48
-8

skipif mysql # not compatible
query II rowsort label-6592
SELECT + MIN ( 48 ) AS col0, - 8 col0
----
48
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6593
SELECT ALL CAST( NULL AS DECIMAL ) * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6593
SELECT ALL CAST ( NULL AS REAL ) * - 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6594
SELECT CAST( + 21 AS SIGNED ) * - 29 - - - 46 + + 24 * - 57 + 6 * - COUNT( * )
----
-2029

skipif mysql # not compatible
query I rowsort label-6594
SELECT CAST ( + 21 AS INTEGER ) * - 29 - - - 46 + + 24 * - 57 + 6 * - COUNT ( * )
----
-2029

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6595
SELECT COUNT( * ) + ( 22 ) - - - NULLIF ( + + 64, + 89 ) DIV - 12 + + + 83 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-6595
SELECT COUNT ( * ) + ( 22 ) - - - NULLIF ( + + 64, + 89 ) / - 12 + + + 83 AS col1
----
111

query I rowsort
SELECT ALL 11 + + 41 + + + 36 + - 21 AS col1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6597
SELECT DISTINCT 34 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT 34 / 78
----
0

query I rowsort
SELECT DISTINCT 46 + + 88 + - 83 AS col1
----
51

query I rowsort
SELECT 63 + - 72 * + 75 AS col2
----
-5337

query I rowsort
SELECT ALL 81 + - + 33
----
48

query I rowsort
SELECT DISTINCT 39 + - 21 * - 31
----
690

query II rowsort
SELECT 72 + - 9 AS col2, 75 AS col0
----
63
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT - 1 * + SUM( 42 ) + CASE 61 WHEN + - 43 THEN NULL WHEN 97 THEN - 3 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6603
SELECT - 1 * + SUM ( 42 ) + CASE 61 WHEN + - 43 THEN NULL WHEN 97 THEN - 3 END AS col0
----
NULL

query I rowsort
SELECT 88 + 14 AS col0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6605
SELECT - CAST( NULL AS SIGNED ) + - + NULLIF ( - CAST( NULL AS SIGNED ), + - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT - CAST ( NULL AS INTEGER ) + - + NULLIF ( - CAST ( NULL AS INTEGER ), + - 8 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT ALL + 32 - + + MAX( ALL + 66 )
----
-34

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL + 32 - + + MAX ( ALL + 66 )
----
-34

query I rowsort
SELECT DISTINCT 38 * + 20 col1
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT - - MAX( DISTINCT + 60 ) + 24 + SUM( ALL - 96 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-6608
SELECT - - MAX ( DISTINCT + 60 ) + 24 + SUM ( ALL - 96 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT DISTINCT NULLIF ( + 67, - ( ( + 92 ) ) * COUNT( * ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT NULLIF ( + 67, - ( ( + 92 ) ) * COUNT ( * ) ) AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6610
SELECT - + 31 * + 73 * + - COUNT( * ) * - 0 * + 89 * - CAST( 58 AS SIGNED ) + - 51 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-6610
SELECT - + 31 * + 73 * + - COUNT ( * ) * - 0 * + 89 * - CAST ( 58 AS INTEGER ) + - 51 AS col2
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-6611
SELECT - 0 DIV + 34 AS col1, 26
----
0
26

skipif mysql # not compatible
query II rowsort label-6611
SELECT - 0 / + 34 AS col1, 26
----
0
26

query I rowsort
SELECT - NULLIF ( + 52, - 5 ) + + - 22 AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6613
SELECT - 27 + - - 76 * CASE COUNT( * ) WHEN - CASE 72 WHEN - - 91 * + - 99 + - 87 + 57 THEN NULL ELSE CAST( 53 AS SIGNED ) * - 6 END THEN - 54 END * - COUNT( DISTINCT 41 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6613
SELECT - 27 + - - 76 * CASE COUNT ( * ) WHEN - CASE 72 WHEN - - 91 * + - 99 + - 87 + 57 THEN NULL ELSE CAST ( 53 AS INTEGER ) * - 6 END THEN - 54 END * - COUNT ( DISTINCT 41 ) col2
----
NULL

query I rowsort
SELECT ALL - ( - 68 ) * 94 AS col1
----
6392

onlyif mysql # DIV for integer division: 
query I rowsort label-6615
SELECT ALL - 49 DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL - 49 / 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT ALL + 68 * SUM( + 95 ) + + NULLIF ( + 10, + + 66 ) * + - COUNT( * ) + + + 97 AS col1
----
6547

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL + 68 * SUM ( + 95 ) + + NULLIF ( + 10, + + 66 ) * + - COUNT ( * ) + + + 97 AS col1
----
6547

onlyif mysql # DIV for integer division: 
query I rowsort label-6617
SELECT - 48 DIV + + 36 + - + 37
----
-38

skipif mysql # not compatible
query I rowsort label-6617
SELECT - 48 / + + 36 + - + 37
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6618
SELECT DISTINCT - 70 * + - NULLIF ( - - 85, - COUNT( * ) ) + 48 + - ( - COUNT( * ) ), - NULLIF ( + 31, NULLIF ( 43, + 52 * + ( NULLIF ( + 44, CAST( NULL AS SIGNED ) - - 35 ) ) - ( - 12 + + 91 / + 39 ) * ( - 2 ) ) ) AS col0
----
5999
-31

skipif mysql # not compatible
query II rowsort label-6618
SELECT DISTINCT - 70 * + - NULLIF ( - - 85, - COUNT ( * ) ) + 48 + - ( - COUNT ( * ) ), - NULLIF ( + 31, NULLIF ( 43, + 52 * + ( NULLIF ( + 44, CAST ( NULL AS INTEGER ) - - 35 ) ) - ( - 12 + + 91 / + 39 ) * ( - 2 ) ) ) AS col0
----
5999
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT ALL + MIN( - - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL + MIN ( - - 79 )
----
79

query I rowsort
SELECT + 59 + - 18
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT + MIN( + 11 ) * + 32 * + - 92 + COUNT( ALL + + 78 ) * - COUNT( * ) * + - 98
----
-32286

skipif mysql # not compatible
query I rowsort label-6621
SELECT + MIN ( + 11 ) * + 32 * + - 92 + COUNT ( ALL + + 78 ) * - COUNT ( * ) * + - 98
----
-32286

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT ALL - MIN( 19 ) * 26 + - 8 + - - 50 AS col0
----
-452

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL - MIN ( 19 ) * 26 + - 8 + - - 50 AS col0
----
-452

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT + MIN( ALL - - 12 ) col2
----
12

skipif mysql # not compatible
query I rowsort label-6623
SELECT + MIN ( ALL - - 12 ) col2
----
12

query I rowsort
SELECT ALL 93 * + 11 AS col2
----
1023

query I rowsort
SELECT + 99 * + + 29 AS col1
----
2871

query I rowsort
SELECT ALL - 87 * 77 + - 7 AS col1
----
-6706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6627
SELECT ALL NULLIF ( COUNT( * ), - 83 ) * - + 22 * + 93 + - 23 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL NULLIF ( COUNT ( * ), - 83 ) * - + 22 * + 93 + - 23 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 46 * 37
----
-1702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6629
SELECT ALL 57 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL 57 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6630
SELECT - 63 DIV 59 * - + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6630
SELECT - 63 / 59 * - + COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6631
SELECT + 69 * - + CAST( - 42 AS SIGNED )
----
2898

skipif mysql # not compatible
query I rowsort label-6631
SELECT + 69 * - + CAST ( - 42 AS INTEGER )
----
2898

query I rowsort
SELECT DISTINCT 92 * - 59
----
-5428

query I rowsort
SELECT + 4 * 70 * + - COALESCE ( 99, ( 9 ) )
----
-27720

query I rowsort
SELECT 64 * - 64 * + 67 * - ( 0 ) * - 87 - + 93 - + 44
----
-137

query I rowsort
SELECT DISTINCT - 28 * - + 94 * - + NULLIF ( ( + 58 ), + - 16 ) * 88
----
-13433728

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT + ( 38 ) * - COUNT( * ) + - 81
----
-119

skipif mysql # not compatible
query I rowsort label-6636
SELECT + ( 38 ) * - COUNT ( * ) + - 81
----
-119

query I rowsort
SELECT + 68 * 8
----
544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6638
SELECT ALL - 16 DIV 56 * - COUNT( * ) - + 16 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL - 16 / 56 * - COUNT ( * ) - + 16 AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6639
SELECT ALL - NULLIF ( - 62, - - COALESCE ( - 79, - 64 * CAST( + - 35 AS SIGNED ), + 14 * - 77 / + - 25 + 60 / + ( + 66 ) ) )
----
62

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL - NULLIF ( - 62, - - COALESCE ( - 79, - 64 * CAST ( + - 35 AS INTEGER ), + 14 * - 77 / + - 25 + 60 / + ( + 66 ) ) )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6640
SELECT DISTINCT - + CAST( - COUNT( * ) AS SIGNED ) * - 13 - + 54 + - + 31 - + + ( + COUNT( * ) ) + - - 89 + 24 * 8
----
182

skipif mysql # not compatible
query I rowsort label-6640
SELECT DISTINCT - + CAST ( - COUNT ( * ) AS INTEGER ) * - 13 - + 54 + - + 31 - + + ( + COUNT ( * ) ) + - - 89 + 24 * 8
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6641
SELECT DISTINCT - MIN( + 81 ) DIV 42 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT - MIN ( + 81 ) / 42 AS col2
----
-1

query I rowsort
SELECT + 75 * - 10 AS col1
----
-750

onlyif mysql # DIV for integer division: 
query I rowsort label-6643
SELECT ALL 45 DIV - 39 + - ( 22 )
----
-23

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL 45 / - 39 + - ( 22 )
----
-23

query I rowsort
SELECT - 88 * - - ( 86 )
----
-7568

query I rowsort
SELECT + 28 + + 6
----
34

query I rowsort
SELECT + 41 + + 28 - - 59 AS col1
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6647
SELECT - COUNT( NULLIF ( + 74, CAST( NULL AS SIGNED ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6647
SELECT - COUNT ( NULLIF ( + 74, CAST ( NULL AS INTEGER ) ) )
----
-1

query I rowsort
SELECT DISTINCT - + 54 * 69 AS col2
----
-3726

query I rowsort
SELECT ALL - 19 + - 79
----
-98

query II rowsort
SELECT DISTINCT 35 AS col2, 86 AS col1
----
35
86

query I rowsort
SELECT ALL + - 41 + 43
----
2

query I rowsort
SELECT - + NULLIF ( + 65, - 41 + + 79 - + 61 / + 80 ) + + + 75
----
10

query I rowsort
SELECT DISTINCT - 70 * - + 97 + - 18
----
6772

query II rowsort
SELECT - - 59 + 14 * + + 78 AS col2, 67 * - 74 AS col2
----
1151
-4958

query I rowsort
SELECT ALL - + 12 + + 39 * - - 28 * - 51 AS col2
----
-55704

query I rowsort
SELECT ALL + 79 + + 42 + - - 89
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT + 44 + - - 34 + 15 * + ( + + MAX( + + 33 ) ) * 98
----
48588

skipif mysql # not compatible
query I rowsort label-6657
SELECT + 44 + - - 34 + 15 * + ( + + MAX ( + + 33 ) ) * 98
----
48588

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT DISTINCT - + 62 + - + 75 + - + NULLIF ( - - 93, + SUM( - 39 ) ) * 58 + + COALESCE ( - 23, + 91 ) AS col2
----
-5554

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT - + 62 + - + 75 + - + NULLIF ( - - 93, + SUM ( - 39 ) ) * 58 + + COALESCE ( - 23, + 91 ) AS col2
----
-5554

onlyif mysql # aggregate syntax: 
query II rowsort label-6659
SELECT - COUNT( * ) - 90 - 9 - 48 * + ( - 44 ) AS col2, 48 AS col1
----
2012
48

skipif mysql # not compatible
query II rowsort label-6659
SELECT - COUNT ( * ) - 90 - 9 - 48 * + ( - 44 ) AS col2, 48 AS col1
----
2012
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6660
SELECT ALL - 40 DIV + + 72
----
0

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL - 40 / + + 72
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6661
SELECT - 35 DIV + 15 AS col2, - 56 DIV 34 * + - 66
----
-2
66

skipif mysql # not compatible
query II rowsort label-6661
SELECT - 35 / + 15 AS col2, - 56 / 34 * + - 66
----
-2
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6662
SELECT + 50 * 83 + - 53 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6662
SELECT + 50 * 83 + - 53 - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6663
SELECT ALL 62 / CAST( NULL AS SIGNED ) + + NULLIF ( + - 28, + 53 ) + + 43 AS col1, 96 + ( 3 ) * COUNT( 75 ) AS col1
----
NULL
99

skipif mysql # not compatible
query II rowsort label-6663
SELECT ALL 62 / CAST ( NULL AS INTEGER ) + + NULLIF ( + - 28, + 53 ) + + 43 AS col1, 96 + ( 3 ) * COUNT ( 75 ) AS col1
----
NULL
99

query I rowsort
SELECT DISTINCT - 22 * - 9 col1
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-6665
SELECT DISTINCT - 92 DIV 28 + 34 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT - 92 / 28 + 34 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT ALL - 4 * COUNT( DISTINCT 61 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL - 4 * COUNT ( DISTINCT 61 ) AS col0
----
-4

query I rowsort
SELECT + 87 * - 52 * - 41 + + 58 - + 69 col2
----
185473

onlyif mysql # DIV for integer division: 
query II rowsort label-6668
SELECT DISTINCT 49 DIV - ( - 40 ) - - 46 AS col1, 2 AS col2
----
47
2

skipif mysql # not compatible
query II rowsort label-6668
SELECT DISTINCT 49 / - ( - 40 ) - - 46 AS col1, 2 AS col2
----
47
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT - 46 * - + COALESCE ( + 42, + COUNT( * ) + - - 87 ) * - 3 * + 31 + - + 72 AS col1
----
-179748

skipif mysql # not compatible
query I rowsort label-6669
SELECT - 46 * - + COALESCE ( + 42, + COUNT ( * ) + - - 87 ) * - 3 * + 31 + - + 72 AS col1
----
-179748

onlyif mysql # aggregate syntax: 
query II rowsort label-6670
SELECT ALL + COUNT( * ) AS col1, - 91 AS col2
----
1
-91

skipif mysql # not compatible
query II rowsort label-6670
SELECT ALL + COUNT ( * ) AS col1, - 91 AS col2
----
1
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT - CASE - 18 WHEN - + 85 THEN + + 27 - + NULLIF ( + 14, - - COUNT( * ) ) WHEN + ( 31 ) THEN - 65 + - COUNT( 73 ) WHEN COUNT( * ) * 34 + 83 THEN NULL ELSE NULL END / + 74 + + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6671
SELECT - CASE - 18 WHEN - + 85 THEN + + 27 - + NULLIF ( + 14, - - COUNT ( * ) ) WHEN + ( 31 ) THEN - 65 + - COUNT ( 73 ) WHEN COUNT ( * ) * 34 + 83 THEN NULL ELSE NULL END / + 74 + + 67 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6672
SELECT + COALESCE ( + 45, - CASE COUNT( * ) WHEN + 48 * + + 32 / + - 9 THEN NULL WHEN + ( - 48 ) / CAST( NULL AS DECIMAL ) + + COUNT( * ) * - 12 THEN - COUNT( * ) END * - 26, + 73 * ( 4 ) )
----
45

skipif mysql # not compatible
query I rowsort label-6672
SELECT + COALESCE ( + 45, - CASE COUNT ( * ) WHEN + 48 * + + 32 / + - 9 THEN NULL WHEN + ( - 48 ) / CAST ( NULL AS REAL ) + + COUNT ( * ) * - 12 THEN - COUNT ( * ) END * - 26, + 73 * ( 4 ) )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6673
SELECT - 40 + 70 + - 73 DIV 29
----
28

skipif mysql # not compatible
query I rowsort label-6673
SELECT - 40 + 70 + - 73 / 29
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT ALL - ( - CAST( - 8 AS SIGNED ) ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL - ( - CAST ( - 8 AS INTEGER ) ) AS col2
----
-8

query II rowsort
SELECT 63 AS col0, + 78 AS col2
----
63
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT DISTINCT - COALESCE ( - + 84, + + COALESCE ( - - 16, + 82 ) * + ( SUM( + 19 ) ) + - 57, - 33 ) col0
----
84

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT - COALESCE ( - + 84, + + COALESCE ( - - 16, + 82 ) * + ( SUM ( + 19 ) ) + - 57, - 33 ) col0
----
84

query I rowsort
SELECT DISTINCT - 32 - + 63
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT COUNT( + - 23 ) + ( COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-6678
SELECT COUNT ( + - 23 ) + ( COUNT ( * ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT ALL - ( - - COUNT( ALL + 2 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL - ( - - COUNT ( ALL + 2 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT + + COUNT( DISTINCT + + 8 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6680
SELECT + + COUNT ( DISTINCT + + 8 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - + 40 * 45 + 43 + - 26 AS col0
----
-1783

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT + 68 + + MAX( DISTINCT 23 ) * + - 5 col0
----
-47

skipif mysql # not compatible
query I rowsort label-6682
SELECT + 68 + + MAX ( DISTINCT 23 ) * + - 5 col0
----
-47

query I rowsort
SELECT 84 * - 70 + - + 55
----
-5935

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT ALL + SUM( + 15 ) * + 22 AS col2
----
330

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL + SUM ( + 15 ) * + 22 AS col2
----
330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6685
SELECT - NULLIF ( + 54, - 37 + + - 84 / - COALESCE ( - - 67, - 83 * CAST( NULL AS SIGNED ) * + - 0 * + 82 ) * + + COUNT( * ) + 13 )
----
-54

skipif mysql # not compatible
query I rowsort label-6685
SELECT - NULLIF ( + 54, - 37 + + - 84 / - COALESCE ( - - 67, - 83 * CAST ( NULL AS INTEGER ) * + - 0 * + 82 ) * + + COUNT ( * ) + 13 )
----
-54

query I rowsort
SELECT 60 + + + 9
----
69

query I rowsort
SELECT ALL + - 98 + - 36 * - 47
----
1594

query I rowsort
SELECT DISTINCT - - 35 + - 12
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-6689
SELECT ALL SUM( - 72 ) + + 19 + + ( + 1 ) * 92 * + SUM( DISTINCT - - 89 ) + - 0 AS col0, 70 AS col2
----
8135
70

skipif mysql # not compatible
query II rowsort label-6689
SELECT ALL SUM ( - 72 ) + + 19 + + ( + 1 ) * 92 * + SUM ( DISTINCT - - 89 ) + - 0 AS col0, 70 AS col2
----
8135
70

query I rowsort
SELECT DISTINCT + 41 + 84 AS col2
----
125

query I rowsort
SELECT ALL CASE 43 WHEN 66 / + 52 THEN + - 9 WHEN - + 41 THEN 62 * + 0 * - 71 * + 68 + ( - 89 ) END + + 22 * 44 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6692
SELECT DISTINCT ( - 98 ) + 32 * + 50 + - CAST( - 20 AS SIGNED ) + + + 55 + - + COALESCE ( + - 12, + 28 ) col0
----
1589

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT ( - 98 ) + 32 * + 50 + - CAST ( - 20 AS INTEGER ) + + + 55 + - + COALESCE ( + - 12, + 28 ) col0
----
1589

query II rowsort
SELECT - - 50, - 32 AS col0
----
50
-32

query II rowsort
SELECT 59, + 57 AS col1
----
59
57

query II rowsort
SELECT 96 AS col0, 10 + 94
----
96
104

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6696
SELECT ALL - 35 * - CASE + + 58 WHEN - - 3 THEN - 74 / - 12 WHEN - NULLIF ( 19, + ( + + 75 ) ) * 18 + + ( 15 ) - + CAST( NULL AS DECIMAL ) / 90 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL - 35 * - CASE + + 58 WHEN - - 3 THEN - 74 / - 12 WHEN - NULLIF ( 19, + ( + + 75 ) ) * 18 + + ( 15 ) - + CAST ( NULL AS REAL ) / 90 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6697
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + SUM( + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6697
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + SUM ( + 25 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ALL MIN( + 50 ) - - - 26 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL MIN ( + 50 ) - - - 26 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT DISTINCT - MAX( DISTINCT 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT - MAX ( DISTINCT 8 ) AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6700
SELECT ALL - COALESCE ( - + 82, CAST( + + 56 AS SIGNED ), - + ( - 32 ) * - MAX( DISTINCT - 14 ) * CAST( NULL AS SIGNED ) * ( - - CAST( NULL AS SIGNED ) ) ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL - COALESCE ( - + 82, CAST ( + + 56 AS INTEGER ), - + ( - 32 ) * - MAX ( DISTINCT - 14 ) * CAST ( NULL AS INTEGER ) * ( - - CAST ( NULL AS INTEGER ) ) ) AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6701
SELECT - 51 DIV + 39 - 63 * 99
----
-6238

skipif mysql # not compatible
query I rowsort label-6701
SELECT - 51 / + 39 - 63 * 99
----
-6238

query I rowsort
SELECT 82 * 32 AS col1
----
2624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6703
SELECT 88 + 42 + - COUNT( * ) DIV + 35 * + + 76 + - 99 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6703
SELECT 88 + 42 + - COUNT ( * ) / + 35 * + + 76 + - 99 AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6704
SELECT DISTINCT + 0 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT + 0 / - 85
----
0

query I rowsort
SELECT ALL + 73 * 24 AS col0
----
1752

query I rowsort
SELECT DISTINCT - ( + 71 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT ALL + 83 * - MIN( ALL - 59 )
----
4897

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL + 83 * - MIN ( ALL - 59 )
----
4897

query I rowsort
SELECT 97 * - - 99 AS col1
----
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6709
SELECT CAST( + 13 AS SIGNED ) - - 68
----
81

skipif mysql # not compatible
query I rowsort label-6709
SELECT CAST ( + 13 AS INTEGER ) - - 68
----
81

query I rowsort
SELECT 7 * 9
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT 39 * - - ( + + COUNT( * ) ) * 71 * 46 * 75 + - MAX( DISTINCT - + 74 ) + - COALESCE ( - - 89, + 24 ) + - 3 + 68
----
9553100

skipif mysql # not compatible
query I rowsort label-6711
SELECT 39 * - - ( + + COUNT ( * ) ) * 71 * 46 * 75 + - MAX ( DISTINCT - + 74 ) + - COALESCE ( - - 89, + 24 ) + - 3 + 68
----
9553100

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT ( + 84 ) * + - CASE 87 WHEN 12 / + 52 - - - 48 THEN NULLIF ( + - 50, + + COALESCE ( - 41, + - COUNT( * ) ) ) + + 74 ELSE 42 END
----
-3528

skipif mysql # not compatible
query I rowsort label-6712
SELECT ( + 84 ) * + - CASE 87 WHEN 12 / + 52 - - - 48 THEN NULLIF ( + - 50, + + COALESCE ( - 41, + - COUNT ( * ) ) ) + + 74 ELSE 42 END
----
-3528

query II rowsort
SELECT 29 * + 18 AS col1, - ( 51 ) * - 96 * + 12 + + 1 AS col2
----
522
58753

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT ( + MIN( DISTINCT - 60 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-6714
SELECT ( + MIN ( DISTINCT - 60 ) )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-6715
SELECT ALL + 72 + + - 84, + COUNT( * ) * + 98 AS col1
----
-12
98

skipif mysql # not compatible
query II rowsort label-6715
SELECT ALL + 72 + + - 84, + COUNT ( * ) * + 98 AS col1
----
-12
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6716
SELECT 8 * CAST( 52 AS SIGNED ) + - ( - + 56 ) * - 26
----
-1040

skipif mysql # not compatible
query I rowsort label-6716
SELECT 8 * CAST ( 52 AS INTEGER ) + - ( - + 56 ) * - 26
----
-1040

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6717
SELECT DISTINCT + 70 + + 96, - 44 * + CAST( NULL AS SIGNED ) AS col2
----
166
NULL

skipif mysql # not compatible
query II rowsort label-6717
SELECT DISTINCT + 70 + + 96, - 44 * + CAST ( NULL AS INTEGER ) AS col2
----
166
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6718
SELECT + AVG ( + - CAST( NULL AS SIGNED ) ) + + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6718
SELECT + AVG ( + - CAST ( NULL AS INTEGER ) ) + + + 70
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6719
SELECT - - CAST( - 91 AS SIGNED ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-6719
SELECT - - CAST ( - 91 AS INTEGER ) AS col1
----
-91

query I rowsort
SELECT ALL + 37 + - - 62
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT 88 + + + 70 + + - 9 + COUNT( * ) + - 0 + - ( 94 ) * + COALESCE ( 42, 80, + 91 ) + 62 * - 16
----
-4790

skipif mysql # not compatible
query I rowsort label-6721
SELECT 88 + + + 70 + + - 9 + COUNT ( * ) + - 0 + - ( 94 ) * + COALESCE ( 42, 80, + 91 ) + 62 * - 16
----
-4790

query II rowsort
SELECT + 82 - 97, 67 + - 51 * - 7 * 46 + - 47 AS col0
----
-15
16442

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT ALL + COUNT( * ) * 31
----
31

skipif mysql # not compatible
query I rowsort label-6723
SELECT ALL + COUNT ( * ) * 31
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6724
SELECT ( - - 57 ) + 64 DIV 90 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-6724
SELECT ( - - 57 ) + 64 / 90 AS col1
----
57

query I rowsort
SELECT DISTINCT - 36 col0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-6726
SELECT + 39 + - 44 DIV 25 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-6726
SELECT + 39 + - 44 / 25 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT ALL COALESCE ( - 32, + + 19 * + + MAX( + 61 ) + SUM( - - 65 ), - - 0 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL COALESCE ( - 32, + + 19 * + + MAX ( + 61 ) + SUM ( - - 65 ), - - 0 ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT CASE + CASE - 15 WHEN AVG ( DISTINCT - - 13 ) THEN - + 91 + - ( - 19 ) END WHEN - 36 / + - 74 + - + 45 THEN 91 * + 75 + - 77 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT CASE + CASE - 15 WHEN AVG ( DISTINCT - - 13 ) THEN - + 91 + - ( - 19 ) END WHEN - 36 / + - 74 + - + 45 THEN 91 * + 75 + - 77 END + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6729
SELECT ALL 70 DIV + - 55
----
-1

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL 70 / + - 55
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6730
SELECT ( - COUNT( * ) ) * 20 * + 17 * - - CASE - NULLIF ( - 2, + 96 + + 96 * + 10 + - 75 + + - 41 * 38 ) WHEN 31 + CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) + ( MIN( DISTINCT - 63 ) + 23 ) * 33 THEN 53 WHEN 24 THEN NULL END * 73 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6730
SELECT ( - COUNT ( * ) ) * 20 * + 17 * - - CASE - NULLIF ( - 2, + 96 + + 96 * + 10 + - 75 + + - 41 * 38 ) WHEN 31 + CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) + ( MIN ( DISTINCT - 63 ) + 23 ) * 33 THEN 53 WHEN 24 THEN NULL END * 73 col1
----
NULL

query I rowsort
SELECT 66 + + 80 AS col1
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6732
SELECT ALL 41 - - CAST( + CASE 26 WHEN - 35 THEN + ( - COUNT( + 27 ) ) WHEN - ( + 90 ) * + AVG ( - 82 ) THEN NULL END AS SIGNED ) + 26 * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL 41 - - CAST ( + CASE 26 WHEN - 35 THEN + ( - COUNT ( + 27 ) ) WHEN - ( + 90 ) * + AVG ( - 82 ) THEN NULL END AS INTEGER ) + 26 * 35
----
NULL

query I rowsort
SELECT 37 * 42
----
1554

onlyif mysql # aggregate syntax: 
query II rowsort label-6734
SELECT - COUNT( * ) AS col2, 69 * + 12 * - + 49 * + 96 * 90 + + + 83
----
-1
-350541997

skipif mysql # not compatible
query II rowsort label-6734
SELECT - COUNT ( * ) AS col2, 69 * + 12 * - + 49 * + 96 * 90 + + + 83
----
-1
-350541997

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT NULLIF ( + 80, + ( 87 ) ) + + + ( + COUNT( * ) )
----
81

skipif mysql # not compatible
query I rowsort label-6735
SELECT NULLIF ( + 80, + ( 87 ) ) + + + ( + COUNT ( * ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT ALL 34 * - + COUNT( * ) * - 19 col0
----
646

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL 34 * - + COUNT ( * ) * - 19 col0
----
646

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT + NULLIF ( + - COUNT( ALL - 77 ), + 58 ) * 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-6737
SELECT + NULLIF ( + - COUNT ( ALL - 77 ), + 58 ) * 98 AS col1
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6738
SELECT + COALESCE ( + - 3, + CASE - 13 WHEN + COUNT( DISTINCT - - 15 ) * + 52 / + COUNT( * ) THEN NULL WHEN + + 26 THEN NULL ELSE - + 28 - - + 35 END, ( ( NULLIF ( - SUM( ALL + 30 ), 42 ) ) ) * 65 + + 90 ) + + 52 / SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6738
SELECT + COALESCE ( + - 3, + CASE - 13 WHEN + COUNT ( DISTINCT - - 15 ) * + 52 / + COUNT ( * ) THEN NULL WHEN + + 26 THEN NULL ELSE - + 28 - - + 35 END, ( ( NULLIF ( - SUM ( ALL + 30 ), 42 ) ) ) * 65 + + 90 ) + + 52 / SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 11 * + 97 AS col1
----
1067

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT + COUNT( * ) * - + 72 * - + MAX( + - 87 ) * - 76 AS col2
----
476064

skipif mysql # not compatible
query I rowsort label-6740
SELECT + COUNT ( * ) * - + 72 * - + MAX ( + - 87 ) * - 76 AS col2
----
476064

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT COALESCE ( - COUNT( * ), MAX( DISTINCT + - 87 ) * 1 * + 74 * + 14 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6741
SELECT COALESCE ( - COUNT ( * ), MAX ( DISTINCT + - 87 ) * 1 * + 74 * + 14 ) AS col1
----
-1

query I rowsort
SELECT ALL 28 * + 99 col0
----
2772

query I rowsort
SELECT ALL 75 * + 2 * - 99 AS col0
----
-14850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6744
SELECT MIN( + - 5 ) * - AVG ( - CAST( NULL AS SIGNED ) ) * 37 + + 87 - + COUNT( ALL + - 15 ) * - 62 + + 20 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT MIN ( + - 5 ) * - AVG ( - CAST ( NULL AS INTEGER ) ) * 37 + + 87 - + COUNT ( ALL + - 15 ) * - 62 + + 20 col2
----
NULL

query II rowsort
SELECT ALL + 62 AS col1, - 63 AS col1
----
62
-63

query I rowsort
SELECT - 39 * 46 AS col1
----
-1794

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT - 21 * - 10 - + MAX( 36 ) AS col2
----
174

skipif mysql # not compatible
query I rowsort label-6747
SELECT - 21 * - 10 - + MAX ( 36 ) AS col2
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT NULLIF ( 61, + 93 + 17 + - MIN( + + 25 ) + - 4 )
----
61

skipif mysql # not compatible
query I rowsort label-6748
SELECT NULLIF ( 61, + 93 + 17 + - MIN ( + + 25 ) + - 4 )
----
61

query I rowsort
SELECT + 27 + - + NULLIF ( - 47, + 52 * + 93 ) + + + 39 * + 63
----
2531

onlyif mysql # aggregate syntax: 
query II rowsort label-6750
SELECT - - MAX( - 11 ) + - - COUNT( * ) col2, 87 * + 73 AS col1
----
-10
6351

skipif mysql # not compatible
query II rowsort label-6750
SELECT - - MAX ( - 11 ) + - - COUNT ( * ) col2, 87 * + 73 AS col1
----
-10
6351

onlyif mysql # DIV for integer division: 
query I rowsort label-6751
SELECT ALL + 93 DIV 86 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL + 93 / 86 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6752
SELECT + 94 DIV - 4 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-6752
SELECT + 94 / - 4 AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6753
SELECT - COUNT( + 19 ) * + 96 + + 77 DIV CASE COALESCE ( - - 1, - 45 * - 16 DIV + 67 DIV - 39 * - + CAST( NULL AS SIGNED ) * - 54 + 79 ) WHEN + 97 * NULLIF ( 89, - 51 ) THEN NULL ELSE 83 + COALESCE ( + COUNT( * ), 8 DIV - CAST( - 73 AS SIGNED ) ) END AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6753
SELECT - COUNT ( + 19 ) * + 96 + + 77 / CASE COALESCE ( - - 1, - 45 * - 16 / + 67 / - 39 * - + CAST ( NULL AS INTEGER ) * - 54 + 79 ) WHEN + 97 * NULLIF ( 89, - 51 ) THEN NULL ELSE 83 + COALESCE ( + COUNT ( * ), 8 / - CAST ( - 73 AS INTEGER ) ) END AS col2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6754
SELECT ALL - CAST( NULL AS SIGNED ) * + 12 + 39 + - + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL - CAST ( NULL AS INTEGER ) * + 12 + 39 + - + 63 AS col1
----
NULL

query I rowsort
SELECT ALL + 4 * - 39 + + 66 + - - 46 AS col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6756
SELECT ALL + CAST( 46 AS SIGNED ) * ( - 62 ) + - 0
----
-2852

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL + CAST ( 46 AS INTEGER ) * ( - 62 ) + - 0
----
-2852

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6757
SELECT DISTINCT - + 52 * - 83 + + - 83 DIV - 25 * - COUNT( * ) + - 17 AS col2
----
4296

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT - + 52 * - 83 + + - 83 / - 25 * - COUNT ( * ) + - 17 AS col2
----
4296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6758
SELECT ALL + CAST( + + 15 AS SIGNED ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL + CAST ( + + 15 AS INTEGER ) AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6759
SELECT ALL + + CAST( + NULLIF ( - ( + - 91 ), - NULLIF ( - + 71, + + ( - + 69 ) ) * 69 + - - 80 * - 1 * + CASE 57 WHEN - 47 THEN NULL WHEN + ( - 60 ) THEN 83 * 65 ELSE NULL END ) AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL + + CAST ( + NULLIF ( - ( + - 91 ), - NULLIF ( - + 71, + + ( - + 69 ) ) * 69 + - - 80 * - 1 * + CASE 57 WHEN - 47 THEN NULL WHEN + ( - 60 ) THEN 83 * 65 ELSE NULL END ) AS INTEGER )
----
91

query I rowsort
SELECT - - 46 + - 9 AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6761
SELECT + - 77 * CASE - - 56 WHEN + COUNT( * ) THEN NULL ELSE - ( - 57 ) + CAST( NULL AS SIGNED ) + + 70 * + 65 / COUNT( ALL + - 72 ) + 71 END * - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6761
SELECT + - 77 * CASE - - 56 WHEN + COUNT ( * ) THEN NULL ELSE - ( - 57 ) + CAST ( NULL AS INTEGER ) + + 70 * + 65 / COUNT ( ALL + - 72 ) + 71 END * - 41 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6762
SELECT - CASE - - COALESCE ( + + 67, - - 41 + - 6 - SUM( DISTINCT + ( - + 75 ) ) / + - 18 * CAST( - 98 AS DECIMAL ) + - - 93 + 20 / + 49 ) WHEN CAST( NULL AS SIGNED ) * + 41 - 92 THEN 21 / + 51 + + CAST( NULL AS DECIMAL ) * 16 WHEN COUNT( - 11 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT - CASE - - COALESCE ( + + 67, - - 41 + - 6 - SUM ( DISTINCT + ( - + 75 ) ) / + - 18 * CAST ( - 98 AS REAL ) + - - 93 + 20 / + 49 ) WHEN CAST ( NULL AS INTEGER ) * + 41 - 92 THEN 21 / + 51 + + CAST ( NULL AS REAL ) * 16 WHEN COUNT ( - 11 ) THEN NULL END
----
NULL

query II rowsort
SELECT ALL 20 AS col1, + 49 * + 10
----
20
490

onlyif mysql # DIV for integer division: 
query II rowsort label-6764
SELECT DISTINCT 87, + 24 DIV - 79 AS col2
----
87
0

skipif mysql # not compatible
query II rowsort label-6764
SELECT DISTINCT 87, + 24 / - 79 AS col2
----
87
0

query II rowsort
SELECT ALL - 0 - - ( + 39 ) AS col1, 97 + 65
----
39
162

query I rowsort
SELECT - + 19 * - 87 AS col0
----
1653

query I rowsort
SELECT ALL - ( - 76 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT ALL COUNT( 52 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL COUNT ( 52 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 29 * + + 40 AS col2
----
1160

query I rowsort
SELECT ALL + 18 * + 1 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT - COUNT( * ) - - 93
----
92

skipif mysql # not compatible
query I rowsort label-6771
SELECT - COUNT ( * ) - - 93
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT - ( + + COUNT( * ) ) * - 24 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-6772
SELECT - ( + + COUNT ( * ) ) * - 24 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6773
SELECT DISTINCT + 0 * - CASE - 89 WHEN - 3 + CAST( NULL AS SIGNED ) THEN 66 WHEN + + COUNT( * ) * - 61 - 65 - + 12 THEN NULL ELSE + - 52 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT + 0 * - CASE - 89 WHEN - 3 + CAST ( NULL AS INTEGER ) THEN 66 WHEN + + COUNT ( * ) * - 61 - 65 - + 12 THEN NULL ELSE + - 52 END AS col2
----
0

query I rowsort
SELECT ALL ( - NULLIF ( + + 97, 28 ) )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT DISTINCT + 91 * - COUNT( ALL + 69 )
----
-91

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT + 91 * - COUNT ( ALL + 69 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT - CASE 78 WHEN + - 92 * + + COUNT( * ) THEN - 92 + - + MAX( - - 72 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6776
SELECT - CASE 78 WHEN + - 92 * + + COUNT ( * ) THEN - 92 + - + MAX ( - - 72 ) END
----
NULL

query I rowsort
SELECT ALL ( + 51 ) AS col2
----
51

query I rowsort
SELECT DISTINCT + 0 * + + 2 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6779
SELECT DISTINCT CAST( + COALESCE ( 95, + 9, MIN( - + 87 ) ) AS SIGNED ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT CAST ( + COALESCE ( 95, + 9, MIN ( - + 87 ) ) AS INTEGER ) AS col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6780
SELECT CAST( + 57 AS SIGNED ) col1
----
57

skipif mysql # not compatible
query I rowsort label-6780
SELECT CAST ( + 57 AS INTEGER ) col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6781
SELECT ALL 18 DIV + 59 + - COUNT( * ) - 6 + + - 67 - - 97 + 26 * + 5 * + + ( + - COUNT( * ) ) * + 82 * + 90 AS col1, ( - - 15 ) * COUNT( * ) AS col2
----
-959377
15

skipif mysql # not compatible
query II rowsort label-6781
SELECT ALL 18 / + 59 + - COUNT ( * ) - 6 + + - 67 - - 97 + 26 * + 5 * + + ( + - COUNT ( * ) ) * + 82 * + 90 AS col1, ( - - 15 ) * COUNT ( * ) AS col2
----
-959377
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6782
SELECT ALL 27 DIV + - 95 * + + 27 col1
----
0

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL 27 / + - 95 * + + 27 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6783
SELECT CAST( - + 17 AS SIGNED ) AS col1, 21 AS col0
----
-17
21

skipif mysql # not compatible
query II rowsort label-6783
SELECT CAST ( - + 17 AS INTEGER ) AS col1, 21 AS col0
----
-17
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT - 51 * + COUNT( - 58 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-6784
SELECT - 51 * + COUNT ( - 58 ) AS col1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6785
SELECT + 5 DIV - + 97 * 30 + + + 21 + - - 88
----
109

skipif mysql # not compatible
query I rowsort label-6785
SELECT + 5 / - + 97 * 30 + + + 21 + - - 88
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6786
SELECT + ( + + 52 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6786
SELECT + ( + + 52 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT - 55 * + CASE + 55 WHEN COUNT( 59 ) THEN + + 90 * + 9 END * + 85 + - COUNT( * ) + + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6787
SELECT - 55 * + CASE + 55 WHEN COUNT ( 59 ) THEN + + 90 * + 9 END * + 85 + - COUNT ( * ) + + 78 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6788
SELECT ALL - 57 DIV + 67 + 53 + - 3 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL - 57 / + 67 + 53 + - 3 AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6789
SELECT ALL + COALESCE ( - - 89, + + 74 DIV + + 53 * - CAST( NULLIF ( + - COALESCE ( 13, + COUNT( * ) ), - + 79 ) AS SIGNED ) * + 45 * - - 54 ) DIV NULLIF ( + - 63, + COUNT( ALL 46 ) * 41 ) + 40 * COALESCE ( CAST( NULL AS SIGNED ) + CASE + 76 + 6 WHEN 48 * - ( 32 ) THEN NULL WHEN - 57 + 18 THEN 45 WHEN + 51 DIV 84 + MAX( ALL + 45 ) * 37 THEN + 51 ELSE NULL END, 97, 27 ) + 97 AS col0
----
3976

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL + COALESCE ( - - 89, + + 74 / + + 53 * - CAST ( NULLIF ( + - COALESCE ( 13, + COUNT ( * ) ), - + 79 ) AS INTEGER ) * + 45 * - - 54 ) / NULLIF ( + - 63, + COUNT ( ALL 46 ) * 41 ) + 40 * COALESCE ( CAST ( NULL AS INTEGER ) + CASE + 76 + 6 WHEN 48 * - ( 32 ) THEN NULL WHEN - 57 + 18 THEN 45 WHEN + 51 / 84 + MAX ( ALL + 45 ) * 37 THEN + 51 ELSE NULL END, 97, 27 ) + 97 AS col0
----
3976

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT + + 25 * + SUM( + 58 )
----
1450

skipif mysql # not compatible
query I rowsort label-6790
SELECT + + 25 * + SUM ( + 58 )
----
1450

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT + + NULLIF ( ( ( + + COUNT( * ) ) ), + 64 * - 49 )
----
1

skipif mysql # not compatible
query I rowsort label-6791
SELECT + + NULLIF ( ( ( + + COUNT ( * ) ) ), + 64 * - 49 )
----
1

query I rowsort
SELECT ALL + ( - ( + + ( + + 44 ) ) ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT DISTINCT 80 * - COUNT( * ) * + - 26
----
2080

skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT 80 * - COUNT ( * ) * + - 26
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT ALL + - 8 * - - COUNT( + 73 ) + + ( + + 11 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL + - 8 * - - COUNT ( + 73 ) + + ( + + 11 ) AS col2
----
3

query I rowsort
SELECT ALL + COALESCE ( + 39, - 84 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6796
SELECT ALL + + 9 * - 44 + + - 4 DIV CASE - - 70 WHEN + COUNT( + + 50 ) DIV + 20 * 99 THEN NULL WHEN 20 + - CAST( + CAST( - + NULLIF ( 64, + 69 * COUNT( * ) + + 35 * 75 ) AS SIGNED ) AS SIGNED ) THEN + 7 * - 21 WHEN + COUNT( * ) * 95 THEN NULL ELSE 87 END * + 86 + + ( + COUNT( * ) - + NULLIF ( 57, - ( 47 ) ) ) + + 19 AS col1
----
-433

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL + + 9 * - 44 + + - 4 / CASE - - 70 WHEN + COUNT ( + + 50 ) / + 20 * 99 THEN NULL WHEN 20 + - CAST ( + CAST ( - + NULLIF ( 64, + 69 * COUNT ( * ) + + 35 * 75 ) AS INTEGER ) AS INTEGER ) THEN + 7 * - 21 WHEN + COUNT ( * ) * 95 THEN NULL ELSE 87 END * + 86 + + ( + COUNT ( * ) - + NULLIF ( 57, - ( 47 ) ) ) + + 19 AS col1
----
-433

query I rowsort
SELECT DISTINCT + + 20 AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6798
SELECT - + 9 DIV + + 18 * + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6798
SELECT - + 9 / + + 18 * + 88 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT - 82 * + + 47 - - 99 + + COUNT( + 10 )
----
-3754

skipif mysql # not compatible
query I rowsort label-6799
SELECT - 82 * + + 47 - - 99 + + COUNT ( + 10 )
----
-3754

query I rowsort
SELECT ALL - ( - 40 ) col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT + - COUNT( * ) - + + 20 * + 24 AS col0
----
-481

skipif mysql # not compatible
query I rowsort label-6801
SELECT + - COUNT ( * ) - + + 20 * + 24 AS col0
----
-481

query I rowsort
SELECT ALL - ( + + 45 ) * + 60 AS col1
----
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT - + ( + COUNT( + 16 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6803
SELECT - + ( + COUNT ( + 16 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT - 58 * - SUM( - 71 ) * - - 30 * - 79 + - COUNT( * )
----
9759659

skipif mysql # not compatible
query I rowsort label-6804
SELECT - 58 * - SUM ( - 71 ) * - - 30 * - 79 + - COUNT ( * )
----
9759659

query I rowsort
SELECT ALL 27 * - - 23 + + 28 * + 74
----
2693

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT + COUNT( + + 20 ) + + + 49
----
50

skipif mysql # not compatible
query I rowsort label-6806
SELECT + COUNT ( + + 20 ) + + + 49
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6807
SELECT CAST( NULL AS SIGNED ) + - 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6807
SELECT CAST ( NULL AS INTEGER ) + - 42 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT 82 - MAX( - 87 )
----
169

skipif mysql # not compatible
query I rowsort label-6808
SELECT 82 - MAX ( - 87 )
----
169

onlyif mysql # aggregate syntax: 
query II rowsort label-6809
SELECT ALL 35, + COUNT( * ) AS col0
----
35
1

skipif mysql # not compatible
query II rowsort label-6809
SELECT ALL 35, + COUNT ( * ) AS col0
----
35
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT COUNT( 25 ) + + + ( + 64 ) - + COUNT( * ) * - 74 * + 74 + + 64 + + 94 + - 47 AS col1
----
5652

skipif mysql # not compatible
query I rowsort label-6810
SELECT COUNT ( 25 ) + + + ( + 64 ) - + COUNT ( * ) * - 74 * + 74 + + 64 + + 94 + - 47 AS col1
----
5652

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT 66 + - SUM( - 32 ) * + 1 - 13 * 26 * + - 68 AS col1
----
23082

skipif mysql # not compatible
query I rowsort label-6811
SELECT 66 + - SUM ( - 32 ) * + 1 - 13 * 26 * + - 68 AS col1
----
23082

query I rowsort
SELECT 82 + + 49 * + 7 AS col2
----
425

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT ALL - 60 + - - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL - 60 + - - COUNT ( * )
----
-59

query I rowsort
SELECT 91 + - 37 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT 98 * - + 61 * 16 * - NULLIF ( + COUNT( * ), + SUM( ALL - + 93 ) ) * 50 * + 26
----
124342400

skipif mysql # not compatible
query I rowsort label-6815
SELECT 98 * - + 61 * 16 * - NULLIF ( + COUNT ( * ), + SUM ( ALL - + 93 ) ) * 50 * + 26
----
124342400

query I rowsort
SELECT ALL + 24 + 13 AS col2
----
37

query I rowsort
SELECT ALL + 15 + + 42
----
57

query I rowsort
SELECT 81 * 97
----
7857

query I rowsort
SELECT ALL - 51 * + + 67
----
-3417

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT 87 DIV 77 * + - 24 DIV - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6820
SELECT 87 / 77 * + - 24 / - 68 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6821
SELECT 23 * COUNT( * ) DIV + - 66
----
0

skipif mysql # not compatible
query I rowsort label-6821
SELECT 23 * COUNT ( * ) / + - 66
----
0

query I rowsort
SELECT DISTINCT - 42 + 69 AS col1
----
27

query I rowsort
SELECT ALL + 79 + - 74
----
5

query II rowsort
SELECT + 25, - 26 * + 73 * - 28 AS col0
----
25
53144

query I rowsort
SELECT DISTINCT + 97 + + + 37 AS col2
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6826
SELECT DISTINCT + COUNT( * ) + + 0 * + 16 * + COUNT( * ) * + - 80 + + CAST( 89 AS SIGNED ) + - - 4 + + 79 AS col2
----
173

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT + COUNT ( * ) + + 0 * + 16 * + COUNT ( * ) * + - 80 + + CAST ( 89 AS INTEGER ) + - - 4 + + 79 AS col2
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT ALL - + MAX( DISTINCT 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL - + MAX ( DISTINCT 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ( COUNT( * ) ) + + 18 * - 50
----
-899

skipif mysql # not compatible
query I rowsort label-6828
SELECT ( COUNT ( * ) ) + + 18 * - 50
----
-899

query I rowsort
SELECT - 34 * 70 - - ( - + 21 )
----
-2401

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT 53 * - 64 + + CASE + COUNT( * ) WHEN + + 84 THEN - 31 * - 17 + - NULLIF ( 6, 22 ) + - COUNT( * ) * - 25 * COALESCE ( 18, - 32 * 58, - 41 * - COALESCE ( - 52, + ( + 85 ) * 59 + ( 51 - NULLIF ( - 20, 83 + 38 ) * COUNT( * ) ) * MIN( DISTINCT 61 - + 85 ) ) + - 96, 85 + - 5 ) - - 4 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT 53 * - 64 + + CASE + COUNT ( * ) WHEN + + 84 THEN - 31 * - 17 + - NULLIF ( 6, 22 ) + - COUNT ( * ) * - 25 * COALESCE ( 18, - 32 * 58, - 41 * - COALESCE ( - 52, + ( + 85 ) * 59 + ( 51 - NULLIF ( - 20, 83 + 38 ) * COUNT ( * ) ) * MIN ( DISTINCT 61 - + 85 ) ) + - 96, 85 + - 5 ) - - 4 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 79 + - + 4
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6832
SELECT + 47 DIV + COALESCE ( + 56, - 23 ) * 68 DIV 72 + + 17 + 45 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-6832
SELECT + 47 / + COALESCE ( + 56, - 23 ) * 68 / 72 + + 17 + 45 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL + 33 - + 62 + + + SUM( + 29 ) + 59 * - 55 * 31 * 82 - 84 + 60 * + - NULLIF ( ( + 16 ), - 55 ) + + COUNT( * ) * 2
----
-8249832

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL + 33 - + 62 + + + SUM ( + 29 ) + 59 * - 55 * 31 * 82 - 84 + 60 * + - NULLIF ( ( + 16 ), - 55 ) + + COUNT ( * ) * 2
----
-8249832

query I rowsort
SELECT + + ( 86 )
----
86

query I rowsort
SELECT 53 * 41 * - + 90 + 82
----
-195488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6836
SELECT ALL - + COUNT( ALL CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL - + COUNT ( ALL CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT - CASE - ( 67 ) WHEN + + 6 - - 43 THEN + 24 WHEN 60 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6838
SELECT DISTINCT - 50 AS col2, - COUNT( * ) AS col0
----
-50
-1

skipif mysql # not compatible
query II rowsort label-6838
SELECT DISTINCT - 50 AS col2, - COUNT ( * ) AS col0
----
-50
-1

query I rowsort
SELECT DISTINCT - + 93 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT ALL 98 * + + 37 * + + COALESCE ( - - 29, MAX( ALL - 41 ) ) + - 10 AS col1
----
105144

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL 98 * + + 37 * + + COALESCE ( - - 29, MAX ( ALL - 41 ) ) + - 10 AS col1
----
105144

onlyif mysql # aggregate syntax: 
query II rowsort label-6841
SELECT - NULLIF ( - 19, + MIN( - + 83 ) ) + + 92 AS col2, + 9
----
111
9

skipif mysql # not compatible
query II rowsort label-6841
SELECT - NULLIF ( - 19, + MIN ( - + 83 ) ) + + 92 AS col2, + 9
----
111
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT + COALESCE ( - COUNT( * ), 44 * - - MAX( - + 16 ) + - 44 - + 46, 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-6842
SELECT + COALESCE ( - COUNT ( * ), 44 * - - MAX ( - + 16 ) + - 44 - + 46, 15 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6843
SELECT 1 * + + 71 - + - COALESCE ( ( 87 ), + + 62 * 49 DIV - 65 )
----
158

skipif mysql # not compatible
query I rowsort label-6843
SELECT 1 * + + 71 - + - COALESCE ( ( 87 ), + + 62 * 49 / - 65 )
----
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6844
SELECT COALESCE ( - 48, + ( COUNT( * ) ) DIV + 79 + - 26 ) + + 75
----
27

skipif mysql # not compatible
query I rowsort label-6844
SELECT COALESCE ( - 48, + ( COUNT ( * ) ) / + 79 + - 26 ) + + 75
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT 66 * - - COALESCE ( - 22, SUM( 17 ), - 32 * 22 * 70 ) AS col1
----
-1452

skipif mysql # not compatible
query I rowsort label-6845
SELECT 66 * - - COALESCE ( - 22, SUM ( 17 ), - 32 * 22 * 70 ) AS col1
----
-1452

query I rowsort
SELECT ALL 88 * + - 77 * + - 86 AS col1
----
582736

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT DISTINCT - 46 * 59 * + SUM( DISTINCT 79 )
----
-214406

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT - 46 * 59 * + SUM ( DISTINCT 79 )
----
-214406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6848
SELECT DISTINCT 17 + + COALESCE ( 45, ( + 75 ) - - 85 + - 61 ) * 59 * + CAST( NULL AS SIGNED ) + CASE + AVG ( DISTINCT - 67 ) WHEN + 18 - - COUNT( * ) + - + CAST( NULL AS SIGNED ) - + 2 THEN - 18 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT 17 + + COALESCE ( 45, ( + 75 ) - - 85 + - 61 ) * 59 * + CAST ( NULL AS INTEGER ) + CASE + AVG ( DISTINCT - 67 ) WHEN + 18 - - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) - + 2 THEN - 18 END AS col0
----
NULL

query II rowsort
SELECT ALL 93 col1, 56 + 6
----
93
62

query I rowsort
SELECT ALL - 28 + + ( + - 29 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT CASE + 79 WHEN + 51 + + COUNT( * ) * + 63 THEN NULL WHEN + + COALESCE ( + - ( + MIN( 24 ) ), 75 ) THEN 78 / 44 * + 41 ELSE NULL END * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT CASE + 79 WHEN + 51 + + COUNT ( * ) * + 63 THEN NULL WHEN + + COALESCE ( + - ( + MIN ( 24 ) ), 75 ) THEN 78 / 44 * + 41 ELSE NULL END * 85
----
NULL

query II rowsort
SELECT 4, - 18 col0
----
4
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT 72 - + - COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-6853
SELECT 72 - + - COUNT ( * ) AS col0
----
73

query I rowsort
SELECT ALL 45 * + - 33
----
-1485

query I rowsort
SELECT ALL 4 + - ( - + 70 ) + 25 + + + 5 AS col0
----
104

query I rowsort
SELECT 91 * - - 57
----
5187

query II rowsort
SELECT - 12, - 22 AS col0
----
-12
-22

query I rowsort
SELECT ALL 9 * - - 64
----
576

query II rowsort
SELECT - 68, + 76 col1
----
-68
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT ALL SUM( DISTINCT - 4 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL SUM ( DISTINCT - 4 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT 22 + + + 17 * 26
----
464

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT + - COALESCE ( + 3, + - COUNT( * ) + 29, + 95 + - 18 * - - 71 * - 77 ) col1
----
-3

skipif mysql # not compatible
query I rowsort label-6863
SELECT + - COALESCE ( + 3, + - COUNT ( * ) + 29, + 95 + - 18 * - - 71 * - 77 ) col1
----
-3

query I rowsort
SELECT + 40 * - 63
----
-2520

query I rowsort
SELECT + 10 * - + 67 * + 46 + - 87 AS col2
----
-30907

query I rowsort
SELECT ALL - 53 * - 75 * + 82 AS col1
----
325950

onlyif mysql # DIV for integer division: 
query II rowsort label-6867
SELECT DISTINCT - - 84 AS col2, ( + 93 ) DIV + - 58 + 56 + - + 63 DIV - 7 AS col2
----
84
64

skipif mysql # not compatible
query II rowsort label-6867
SELECT DISTINCT - - 84 AS col2, ( + 93 ) / + - 58 + 56 + - + 63 / - 7 AS col2
----
84
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6868
SELECT ALL - 4 * + 88 + + + ( 93 ) - - 10 * - - 63 * + COALESCE ( + 27, COUNT( * ) * + COUNT( * ) * 58 DIV + 40 ) + - - 51 * 32 * 31 * - - 75 AS col2
----
3811151

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL - 4 * + 88 + + + ( 93 ) - - 10 * - - 63 * + COALESCE ( + 27, COUNT ( * ) * + COUNT ( * ) * 58 / + 40 ) + - - 51 * 32 * 31 * - - 75 AS col2
----
3811151

query II rowsort
SELECT - 76 * - 83 AS col1, 69
----
6308
69

query I rowsort
SELECT + 52 * 55 + 64 * - 13 AS col2
----
2028

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6871
SELECT ALL - COUNT( * ) DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL - COUNT ( * ) / 39
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6872
SELECT COUNT( * ), 67 AS col0
----
1
67

skipif mysql # not compatible
query II rowsort label-6872
SELECT COUNT ( * ), 67 AS col0
----
1
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6873
SELECT - + 46 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6873
SELECT - + 46 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - ( - 6 ) AS col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6875
SELECT + + 82 DIV - 3
----
-27

skipif mysql # not compatible
query I rowsort label-6875
SELECT + + 82 / - 3
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-6876
SELECT ALL + - 44 DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL + - 44 / - 91 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6877
SELECT - + 18 * + + AVG ( - + 42 ) + + 1 * + + 31 + + - 80 + - + NULLIF ( CAST( NULL AS SIGNED ), + 12 / 32 ) * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT - + 18 * + + AVG ( - + 42 ) + + 1 * + + 31 + + - 80 + - + NULLIF ( CAST ( NULL AS INTEGER ), + 12 / 32 ) * - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT + CASE - + 42 WHEN - - 22 THEN NULL WHEN COUNT( * ) * + ( - - 91 ) * + 54 THEN NULL ELSE - 19 END
----
-19

skipif mysql # not compatible
query I rowsort label-6878
SELECT + CASE - + 42 WHEN - - 22 THEN NULL WHEN COUNT ( * ) * + ( - - 91 ) * + 54 THEN NULL ELSE - 19 END
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT ALL - 96 + - MAX( - 78 ) + - 47
----
-65

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL - 96 + - MAX ( - 78 ) + - 47
----
-65

query I rowsort
SELECT ALL 64 + + - 15 col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6881
SELECT + MAX( - 79 ) - + 75 - + + 45 DIV 68 * + + 65 + + 61 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-6881
SELECT + MAX ( - 79 ) - + 75 - + + 45 / 68 * + + 65 + + 61 AS col1
----
-93

query I rowsort
SELECT ALL - 87 + + + 45
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6883
SELECT - COUNT( + + CAST( - + 50 AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6883
SELECT - COUNT ( + + CAST ( - + 50 AS INTEGER ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT ALL 52 + - + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL 52 + - + COUNT ( * )
----
51

query I rowsort
SELECT + 22 * + + 25 * + 40 AS col0
----
22000

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT - COUNT( * ) + - 19
----
-20

skipif mysql # not compatible
query I rowsort label-6886
SELECT - COUNT ( * ) + - 19
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6887
SELECT ALL COALESCE ( - - NULLIF ( - 13, - 41 ), - 64 * - COUNT( * ) - + - COALESCE ( ( + 38 ), 98 ) DIV - 89 ) + ( - 4 ) + - SUM( ALL - 30 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL COALESCE ( - - NULLIF ( - 13, - 41 ), - 64 * - COUNT ( * ) - + - COALESCE ( ( + 38 ), 98 ) / - 89 ) + ( - 4 ) + - SUM ( ALL - 30 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT + 16 - + + ( CASE AVG ( 16 ) WHEN SUM( DISTINCT + - 65 ) * CASE - 37 WHEN - - 74 * + - 27 THEN 26 WHEN + COALESCE ( - NULLIF ( ( + 12 ), - + 98 / - 84 + 44 ), - 3 ) THEN NULL END THEN + 2 * 94 WHEN - 32 THEN + 87 ELSE 14 * 26 END ) - - 42 AS col2
----
-306

skipif mysql # not compatible
query I rowsort label-6888
SELECT + 16 - + + ( CASE AVG ( 16 ) WHEN SUM ( DISTINCT + - 65 ) * CASE - 37 WHEN - - 74 * + - 27 THEN 26 WHEN + COALESCE ( - NULLIF ( ( + 12 ), - + 98 / - 84 + 44 ), - 3 ) THEN NULL END THEN + 2 * 94 WHEN - 32 THEN + 87 ELSE 14 * 26 END ) - - 42 AS col2
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL MAX( - - 99 ) + - - 69 col2
----
168

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL MAX ( - - 99 ) + - - 69 col2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT - COUNT( 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-6890
SELECT - COUNT ( 82 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6891
SELECT ALL 68 + + 77, ( - 42 ) + 29 * 82 * + - 50 * + 11 * - COUNT( ALL - 86 ) AS col0
----
145
1307858

skipif mysql # not compatible
query II rowsort label-6891
SELECT ALL 68 + + 77, ( - 42 ) + 29 * 82 * + - 50 * + 11 * - COUNT ( ALL - 86 ) AS col0
----
145
1307858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6892
SELECT ALL CASE - + 12 WHEN - COALESCE ( 71, - + 13 ) + + 66 THEN NULL WHEN + 83 + + + 15 THEN - 23 ELSE - + CAST( NULL AS SIGNED ) * + + 7 + COUNT( * ) + + 10 END - 94 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL CASE - + 12 WHEN - COALESCE ( 71, - + 13 ) + + 66 THEN NULL WHEN + 83 + + + 15 THEN - 23 ELSE - + CAST ( NULL AS INTEGER ) * + + 7 + COUNT ( * ) + + 10 END - 94 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6893
SELECT + + 93 DIV + + COUNT( * ) AS col0, - 85 AS col1
----
93
-85

skipif mysql # not compatible
query II rowsort label-6893
SELECT + + 93 / + + COUNT ( * ) AS col0, - 85 AS col1
----
93
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6894
SELECT - + COUNT( - 19 ) * - 5 DIV 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6894
SELECT - + COUNT ( - 19 ) * - 5 / 56 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT + 34 + - ( + 88 ) * - + COUNT( * ) AS col2
----
122

skipif mysql # not compatible
query I rowsort label-6895
SELECT + 34 + - ( + 88 ) * - + COUNT ( * ) AS col2
----
122

query I rowsort
SELECT DISTINCT 78 col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6897
SELECT + 61 / CASE - 8 WHEN 65 * CAST( SUM( 42 ) AS SIGNED ) THEN NULL ELSE + CASE + + 27 WHEN - + ( + - 54 ) THEN + - ( + + 35 ) - 14 + + 88 + MAX( ALL 20 ) * COALESCE ( + CAST( - 69 AS DECIMAL ) * ( + 8 ) + 90, 23 ) END END * ( 11 ) - + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6897
SELECT + 61 / CASE - 8 WHEN 65 * CAST ( SUM ( 42 ) AS INTEGER ) THEN NULL ELSE + CASE + + 27 WHEN - + ( + - 54 ) THEN + - ( + + 35 ) - 14 + + 88 + MAX ( ALL 20 ) * COALESCE ( + CAST ( - 69 AS REAL ) * ( + 8 ) + 90, 23 ) END END * ( 11 ) - + 6 AS col0
----
NULL

query II rowsort
SELECT ALL + + NULLIF ( - CASE 16 WHEN + 62 THEN NULL ELSE 67 END, 95 + + 50 ) AS col1, + 54 + + 72
----
-67
126

onlyif mysql # aggregate syntax: 
query II rowsort label-6899
SELECT + ( - - 63 ) AS col2, - COUNT( * ) AS col0
----
63
-1

skipif mysql # not compatible
query II rowsort label-6899
SELECT + ( - - 63 ) AS col2, - COUNT ( * ) AS col0
----
63
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6900
SELECT + + 92 * ( + + CAST( + 87 AS SIGNED ) ) col0
----
8004

skipif mysql # not compatible
query I rowsort label-6900
SELECT + + 92 * ( + + CAST ( + 87 AS INTEGER ) ) col0
----
8004

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT + ( - + MIN( 31 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-6901
SELECT + ( - + MIN ( 31 ) )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6902
SELECT + 63 + - - ( - + 24 ) + + 12 + - 29 * - CASE - 52 WHEN - 67 THEN NULL WHEN - 35 * + + CAST( NULL AS SIGNED ) + + NULLIF ( 73, - + 41 + - COALESCE ( - COUNT( * ), + 4 + - 78 + - CASE + ( - 32 ) WHEN 73 * - 8 + + 61 THEN NULL WHEN 16 THEN - 13 END ) + COALESCE ( 57 + - 92 / + 89, COUNT( * ) / - 63 ) ) THEN NULL ELSE MIN( + 96 ) * - 3 END * + COUNT( * )
----
-8301

skipif mysql # not compatible
query I rowsort label-6902
SELECT + 63 + - - ( - + 24 ) + + 12 + - 29 * - CASE - 52 WHEN - 67 THEN NULL WHEN - 35 * + + CAST ( NULL AS INTEGER ) + + NULLIF ( 73, - + 41 + - COALESCE ( - COUNT ( * ), + 4 + - 78 + - CASE + ( - 32 ) WHEN 73 * - 8 + + 61 THEN NULL WHEN 16 THEN - 13 END ) + COALESCE ( 57 + - 92 / + 89, COUNT ( * ) / - 63 ) ) THEN NULL ELSE MIN ( + 96 ) * - 3 END * + COUNT ( * )
----
-8301

query I rowsort
SELECT - 46 + - 79 col1
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6904
SELECT ALL - 43 * + + 68 + + 35 + 57 DIV - 63 * + ( - - 88 ) AS col0, + 25 DIV - - COUNT( * ) AS col2
----
-2889
25

skipif mysql # not compatible
query II rowsort label-6904
SELECT ALL - 43 * + + 68 + + 35 + 57 / - 63 * + ( - - 88 ) AS col0, + 25 / - - COUNT ( * ) AS col2
----
-2889
25

query I rowsort
SELECT + + 18 AS col1
----
18

query I rowsort
SELECT ALL + 92 * - 60 + - 88
----
-5608

query I rowsort
SELECT ALL 59 * 93 + - ( - 97 )
----
5584

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT + ( COUNT( * ) ) * - 44 + + - 14 + + - MAX( + 80 ) AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-6908
SELECT + ( COUNT ( * ) ) * - 44 + + - 14 + + - MAX ( + 80 ) AS col2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT NULLIF ( - COALESCE ( - 88, + 1 ), + NULLIF ( - 70, 12 * COALESCE ( 12, + 2 ) + - + 21 + + 88 + + COALESCE ( + 40, - 1 + + + 88, - + 31 ) * + 89 + - 40 * + COUNT( * ) ) + + 52 * 42 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-6909
SELECT NULLIF ( - COALESCE ( - 88, + 1 ), + NULLIF ( - 70, 12 * COALESCE ( 12, + 2 ) + - + 21 + + 88 + + COALESCE ( + 40, - 1 + + + 88, - + 31 ) * + 89 + - 40 * + COUNT ( * ) ) + + 52 * 42 ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6910
SELECT NULLIF ( - + ( - - CAST( NULL AS SIGNED ) ), + COUNT( * ) * - + 15 + + + 19 - - - 93 + 93 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6910
SELECT NULLIF ( - + ( - - CAST ( NULL AS INTEGER ) ), + COUNT ( * ) * - + 15 + + + 19 - - - 93 + 93 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6911
SELECT - 23 + + 98 * CAST( - MAX( DISTINCT - - 24 ) AS SIGNED ) + + COUNT( * ) + - COALESCE ( - 51, - 95 ) col1
----
-2323

skipif mysql # not compatible
query I rowsort label-6911
SELECT - 23 + + 98 * CAST ( - MAX ( DISTINCT - - 24 ) AS INTEGER ) + + COUNT ( * ) + - COALESCE ( - 51, - 95 ) col1
----
-2323

query II rowsort
SELECT ALL 96 * - - 50 + + 59 AS col2, - 30 * + - 28 * + 84 AS col0
----
4859
70560

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT - ( + - 39 ) * COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6913
SELECT - ( + - 39 ) * COUNT ( * ) AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6914
SELECT + NULLIF ( - + MAX( DISTINCT - 11 ), 18 ) AS col0, + CAST( NULL AS SIGNED )
----
11
NULL

skipif mysql # not compatible
query II rowsort label-6914
SELECT + NULLIF ( - + MAX ( DISTINCT - 11 ), 18 ) AS col0, + CAST ( NULL AS INTEGER )
----
11
NULL

query II rowsort
SELECT + 93 + - - 22 + - - 17 AS col2, + 95
----
132
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6916
SELECT ALL + MIN( - - 55 ) * + 58 + 76 * COALESCE ( + 60, - COUNT( * ) + + - COALESCE ( + CAST( + COUNT( * ) AS SIGNED ), + 85 ) + 98, - - 55 + + 45, + 9 ) + - - 81
----
7831

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL + MIN ( - - 55 ) * + 58 + 76 * COALESCE ( + 60, - COUNT ( * ) + + - COALESCE ( + CAST ( + COUNT ( * ) AS INTEGER ), + 85 ) + 98, - - 55 + + 45, + 9 ) + - - 81
----
7831

query I rowsort
SELECT - 4 * + 17
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6918
SELECT DISTINCT 7 * CAST( NULL AS SIGNED ) - - CAST( + ( 12 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT 7 * CAST ( NULL AS INTEGER ) - - CAST ( + ( 12 ) AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 9 AS col1, 80 + 31 AS col0
----
9
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT - NULLIF ( MIN( - + 37 ), 83 + 18 * - 75 ) col0
----
37

skipif mysql # not compatible
query I rowsort label-6920
SELECT - NULLIF ( MIN ( - + 37 ), 83 + 18 * - 75 ) col0
----
37

query II rowsort
SELECT 61 AS col1, ( - 35 ) AS col0
----
61
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT + 50 * - 88 * + 79 * MAX( + + 83 ) AS col1
----
-28850800

skipif mysql # not compatible
query I rowsort label-6922
SELECT + 50 * - 88 * + 79 * MAX ( + + 83 ) AS col1
----
-28850800

query I rowsort
SELECT - 21 - 16
----
-37

query I rowsort
SELECT - 97 - - 93
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT + - 26 + - - ( + COUNT( * ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-6925
SELECT + - 26 + - - ( + COUNT ( * ) ) AS col0
----
-25

query II rowsort
SELECT DISTINCT 6 AS col0, - 18
----
6
-18

query I rowsort
SELECT ALL - 71 * 64
----
-4544

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6928
SELECT + SUM( + CASE + ( 26 ) WHEN 0 * - 85 THEN 7 ELSE NULL END ) + + COUNT( * ) - - + 84 / + - 50 / 8 + - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col2, 30
----
NULL
30

skipif mysql # not compatible
query II rowsort label-6928
SELECT + SUM ( + CASE + ( 26 ) WHEN 0 * - 85 THEN 7 ELSE NULL END ) + + COUNT ( * ) - - + 84 / + - 50 / 8 + - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col2, 30
----
NULL
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6929
SELECT - 95 DIV COUNT( * ) * - 20 AS col0, - COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
1900
0

skipif mysql # not compatible
query II rowsort label-6929
SELECT - 95 / COUNT ( * ) * - 20 AS col0, - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
1900
0

query I rowsort
SELECT ALL 64 + + + 61 AS col0
----
125

query I rowsort
SELECT 48 * 23
----
1104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6932
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 8
----
NULL

query II rowsort
SELECT ALL - 97 AS col1, NULLIF ( - - 61, - 32 ) AS col0
----
-97
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6934
SELECT - 61 DIV + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-6934
SELECT - 61 / + COUNT ( * )
----
-61

query II rowsort
SELECT + 19 col2, 65 AS col1
----
19
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6936
SELECT ALL + 69 + + + 17 + + 62 * 4 * - 12 DIV + COUNT( * ) - + 81 AS col0
----
-2971

skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL + 69 + + + 17 + + 62 * 4 * - 12 / + COUNT ( * ) - + 81 AS col0
----
-2971

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT DISTINCT MIN( - + 73 ) * 99 AS col0
----
-7227

skipif mysql # not compatible
query I rowsort label-6937
SELECT DISTINCT MIN ( - + 73 ) * 99 AS col0
----
-7227

onlyif mysql # DIV for integer division: 
query I rowsort label-6938
SELECT + 97 DIV + 68 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6938
SELECT + 97 / + 68 AS col2
----
1

query II rowsort
SELECT DISTINCT - - 36 AS col2, 89
----
36
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT + 41 * + MIN( DISTINCT + 85 ) / - 47 + CASE 87 WHEN - ( + + 4 ) THEN NULL WHEN - - MIN( ALL + + 55 ) THEN - 84 * 62 END * - COUNT( 83 ) / + 11 * + 61 + 78 + + COUNT( * ) + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6940
SELECT + 41 * + MIN ( DISTINCT + 85 ) / - 47 + CASE 87 WHEN - ( + + 4 ) THEN NULL WHEN - - MIN ( ALL + + 55 ) THEN - 84 * 62 END * - COUNT ( 83 ) / + 11 * + 61 + 78 + + COUNT ( * ) + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT 17 * COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-6941
SELECT 17 * COUNT ( * ) AS col2
----
17

query I rowsort
SELECT ALL + 24 * + + 79 AS col0
----
1896

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT DISTINCT + COUNT( * ) * 29 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT + COUNT ( * ) * 29 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6944
SELECT ALL 87 * COUNT( * ) * - 68 * + 80 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL 87 * COUNT ( * ) * - 68 * + 80 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6945
SELECT 16 - - 56 * COALESCE ( + - NULLIF ( + 29, 39 + 40 ), 84 DIV + + COUNT( * ) * - ( + COUNT( * ) ), 25 ) AS col0
----
-1608

skipif mysql # not compatible
query I rowsort label-6945
SELECT 16 - - 56 * COALESCE ( + - NULLIF ( + 29, 39 + 40 ), 84 / + + COUNT ( * ) * - ( + COUNT ( * ) ), 25 ) AS col0
----
-1608

query I rowsort
SELECT DISTINCT - 7 * + + 88
----
-616

onlyif mysql # DIV for integer division: 
query I rowsort label-6947
SELECT 97 DIV - ( 77 )
----
-1

skipif mysql # not compatible
query I rowsort label-6947
SELECT 97 / - ( 77 )
----
-1

query I rowsort
SELECT 6 + 45
----
51

query I rowsort
SELECT 51 - - - 96 AS col0
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6950
SELECT ALL - 62 DIV + 52 AS col2, COUNT( * ) * - 70 AS col1
----
-1
-70

skipif mysql # not compatible
query II rowsort label-6950
SELECT ALL - 62 / + 52 AS col2, COUNT ( * ) * - 70 AS col1
----
-1
-70

query I rowsort
SELECT 22 * ( - 79 ) col0
----
-1738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6952
SELECT + 29 * - + 48 * CASE + CAST( 53 AS SIGNED ) WHEN AVG ( + 28 ) THEN + 68 WHEN + + 89 THEN NULL WHEN + 65 THEN + COUNT( * ) / + 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6952
SELECT + 29 * - + 48 * CASE + CAST ( 53 AS INTEGER ) WHEN AVG ( + 28 ) THEN + 68 WHEN + + 89 THEN NULL WHEN + 65 THEN + COUNT ( * ) / + 79 END
----
NULL

query I rowsort
SELECT + 43 + - 9 AS col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6954
SELECT ALL - + 13 DIV + ( + ( 69 ) ) AS col0, COUNT( * ) * 15 col1
----
0
15

skipif mysql # not compatible
query II rowsort label-6954
SELECT ALL - + 13 / + ( + ( 69 ) ) AS col0, COUNT ( * ) * 15 col1
----
0
15

query I rowsort
SELECT ALL - 41 + - 4 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT 53 + - COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6956
SELECT 53 + - COUNT ( * ) AS col0
----
52

query I rowsort
SELECT 83 * - + 47 * 21
----
-81921

query I rowsort
SELECT ALL + - 0 + 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT ALL - COUNT( * ) + - - 22
----
21

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL - COUNT ( * ) + - - 22
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT + 1 * - - NULLIF ( + 81, - + COUNT( * ) ) + 19 + - 32
----
68

skipif mysql # not compatible
query I rowsort label-6960
SELECT + 1 * - - NULLIF ( + 81, - + COUNT ( * ) ) + 19 + - 32
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6961
SELECT - NULLIF ( - COUNT( * ), + CASE + - 39 WHEN 81 + - - 35 + 2 * - - NULLIF ( + + 43, 14 * 59 * + 59 - + 76 ) * + - 50 + - COALESCE ( + - 59, - 6 * + 87 * - + SUM( DISTINCT 6 ) - 4, + 90 ) - 1 * ( 7 ) * - 18 THEN + 37 END + - 58 * CAST( 93 + - COALESCE ( + 36, 90, + 17 + - 98 ) * + CASE - 51 * 5 + + 37 * - 84 WHEN + COUNT( * ) THEN ( - 24 ) - + 42 * - 47 ELSE + 38 END AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-6961
SELECT - NULLIF ( - COUNT ( * ), + CASE + - 39 WHEN 81 + - - 35 + 2 * - - NULLIF ( + + 43, 14 * 59 * + 59 - + 76 ) * + - 50 + - COALESCE ( + - 59, - 6 * + 87 * - + SUM ( DISTINCT 6 ) - 4, + 90 ) - 1 * ( 7 ) * - 18 THEN + 37 END + - 58 * CAST ( 93 + - COALESCE ( + 36, 90, + 17 + - 98 ) * + CASE - 51 * 5 + + 37 * - 84 WHEN + COUNT ( * ) THEN ( - 24 ) - + 42 * - 47 ELSE + 38 END AS INTEGER ) )
----
1

query I rowsort
SELECT ALL - + 58 + + + 59 * CASE + 10 WHEN + 73 THEN - - 70 END * 83 + - + 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT + - ( - + MAX( ALL ( 97 ) ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-6963
SELECT + - ( - + MAX ( ALL ( 97 ) ) ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6964
SELECT ALL COUNT( - 93 ) + + CASE 39 WHEN + + 53 + + 7 THEN NULL WHEN - AVG ( ALL 71 ) * - 99 / 94 - - - 13 THEN - + 28 END, SUM( DISTINCT 6 ) col0
----
NULL
6

skipif mysql # not compatible
query II rowsort label-6964
SELECT ALL COUNT ( - 93 ) + + CASE 39 WHEN + + 53 + + 7 THEN NULL WHEN - AVG ( ALL 71 ) * - 99 / 94 - - - 13 THEN - + 28 END, SUM ( DISTINCT 6 ) col0
----
NULL
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT ( - 3 ) * + - COUNT( - - 46 ) + + 55 + + + 61 + 72 + - 14
----
177

skipif mysql # not compatible
query I rowsort label-6965
SELECT ( - 3 ) * + - COUNT ( - - 46 ) + + 55 + + + 61 + 72 + - 14
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-6966
SELECT + 28 DIV - + NULLIF ( + 16, 56 ) + + 51 col1
----
50

skipif mysql # not compatible
query I rowsort label-6966
SELECT + 28 / - + NULLIF ( + 16, 56 ) + + 51 col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT - 95 + - + COUNT( 36 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-6967
SELECT - 95 + - + COUNT ( 36 ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT ALL 65 + - - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL 65 + - - COUNT ( * ) AS col0
----
66

query I rowsort
SELECT 32 * + 2 + - 74
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-6970
SELECT + 63 DIV - 28 + + 22 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-6970
SELECT + 63 / - 28 + + 22 AS col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6971
SELECT - COUNT( ALL - 70 ) * + 89 DIV + + 6 - 28 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6971
SELECT - COUNT ( ALL - 70 ) * + 89 / + + 6 - 28 AS col0
----
-42

query I rowsort
SELECT 10 * ( + + 89 ) col2
----
890

query I rowsort
SELECT 28 * - - 81 + - - NULLIF ( - 98, + - 50 ) * - 30 AS col1
----
5208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6974
SELECT ALL 23 - ( + + COUNT( * ) ) DIV + 81
----
23

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL 23 - ( + + COUNT ( * ) ) / + 81
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT ALL - COUNT( + 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL - COUNT ( + 15 )
----
-1

query I rowsort
SELECT DISTINCT 52 - 30 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT COUNT( * ) * - 91 * + + COUNT( ALL - - 26 )
----
-91

skipif mysql # not compatible
query I rowsort label-6977
SELECT COUNT ( * ) * - 91 * + + COUNT ( ALL - - 26 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT 29 * COUNT( ALL - 69 ) + + 13 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-6978
SELECT 29 * COUNT ( ALL - 69 ) + + 13 AS col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6979
SELECT 86 AS col2, 51 * 60 + + 24 * - COUNT( * )
----
86
3036

skipif mysql # not compatible
query II rowsort label-6979
SELECT 86 AS col2, 51 * 60 + + 24 * - COUNT ( * )
----
86
3036

query I rowsort
SELECT ALL NULLIF ( - - 36, + ( + - 75 ) ) * - + 22
----
-792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6981
SELECT - COUNT( * ) * CAST( 91 AS SIGNED ) + - 25
----
-116

skipif mysql # not compatible
query I rowsort label-6981
SELECT - COUNT ( * ) * CAST ( 91 AS INTEGER ) + - 25
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT ALL - MAX( + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL - MAX ( + 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT + COUNT( + - 30 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6983
SELECT + COUNT ( + - 30 ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6984
SELECT 0 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6984
SELECT 0 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 77, - 23 * - ( 12 ) AS col0
----
-77
276

onlyif mysql # DIV for integer division: 
query II rowsort label-6986
SELECT 86 AS col0, + 91 DIV 19 * - + 6
----
86
-24

skipif mysql # not compatible
query II rowsort label-6986
SELECT 86 AS col0, + 91 / 19 * - + 6
----
86
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT DISTINCT - ( COUNT( * ) ) * + 26 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-6987
SELECT DISTINCT - ( COUNT ( * ) ) * + 26 AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6988
SELECT 25 * - CAST( + ( - + 94 ) AS SIGNED )
----
2350

skipif mysql # not compatible
query I rowsort label-6988
SELECT 25 * - CAST ( + ( - + 94 ) AS INTEGER )
----
2350

query I rowsort
SELECT DISTINCT - 58 * - 17 AS col1
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT DISTINCT + 76 + - + 28 + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT + 76 + - + 28 + COUNT ( * ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT ALL - COALESCE ( + - 78, COUNT( * ) * - - 10 )
----
78

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL - COALESCE ( + - 78, COUNT ( * ) * - - 10 )
----
78

query I rowsort
SELECT - - 49 + 82 AS col2
----
131

query II rowsort
SELECT DISTINCT - 43 + 62 * 46, 69 AS col2
----
2809
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT ALL + 85 + NULLIF ( + 99, + 99 - + + 91 ) * + + 47 * + - COUNT( * ) * + COALESCE ( NULLIF ( + + 45, + 49 ), - - 78, + 72 )
----
-209300

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL + 85 + NULLIF ( + 99, + 99 - + + 91 ) * + + 47 * + - COUNT ( * ) * + COALESCE ( NULLIF ( + + 45, + 49 ), - - 78, + 72 )
----
-209300

query I rowsort
SELECT ALL - + 10 + - COALESCE ( - 91, + 80 ) AS col1
----
81

query I rowsort
SELECT - + 4 - 19 + 91 * COALESCE ( - 2, - - 50 )
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT - NULLIF ( + - 53, - - MIN( DISTINCT ( + + 60 ) ) + COUNT( * ) )
----
53

skipif mysql # not compatible
query I rowsort label-6997
SELECT - NULLIF ( + - 53, - - MIN ( DISTINCT ( + + 60 ) ) + COUNT ( * ) )
----
53

query II rowsort
SELECT ALL 19 AS col2, 16 + 23 * + 45
----
19
1051

onlyif mysql # DIV for integer division: 
query I rowsort label-6999
SELECT - - 88 DIV - 93 - 39 + - - 32 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6999
SELECT - - 88 / - 93 - 39 + - - 32 AS col0
----
-7

query II rowsort
SELECT - 81 AS col2, 31
----
-81
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT DISTINCT + COALESCE ( COUNT( * ), + 54 ) + + 67 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-7001
SELECT DISTINCT + COALESCE ( COUNT ( * ), + 54 ) + + 67 AS col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7002
SELECT DISTINCT COALESCE ( + 64, + - 96, + ( 5 ) * 9 DIV + 97 * - + 10 * + 86 + COUNT( * ) DIV + SUM( + 21 ) )
----
64

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT COALESCE ( + 64, + - 96, + ( 5 ) * 9 / + 97 * - + 10 * + 86 + COUNT ( * ) / + SUM ( + 21 ) )
----
64

query I rowsort
SELECT ALL + - 85 + + 67 * - 36 col0
----
-2497

onlyif mysql # DIV for integer division: 
query II rowsort label-7004
SELECT - - 70 AS col2, 93 + - 66 * 97 + + 95 - 24 DIV - 55 * - 10 * - 12 AS col0
----
70
-6214

skipif mysql # not compatible
query II rowsort label-7004
SELECT - - 70 AS col2, 93 + - 66 * 97 + + 95 - 24 / - 55 * - 10 * - 12 AS col0
----
70
-6214

onlyif mysql # DIV for integer division: 
query I rowsort label-7005
SELECT DISTINCT + 0 DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT + 0 / - 90 AS col0
----
0

query I rowsort
SELECT - 70 - + 48
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7007
SELECT ALL - - 30 - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL - - 30 - - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7008
SELECT 65, + 96 + + COUNT( * ) AS col2
----
65
97

skipif mysql # not compatible
query II rowsort label-7008
SELECT 65, + 96 + + COUNT ( * ) AS col2
----
65
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT DISTINCT + 1 * + + 80 - - - 18 - - COUNT( * ) + - 88 + + 40 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7009
SELECT DISTINCT + 1 * + + 80 - - - 18 - - COUNT ( * ) + - 88 + + 40 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT ALL + + ( + COUNT( + 78 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL + + ( + COUNT ( + 78 ) ) AS col0
----
1

query I rowsort
SELECT + 17 + + 84
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7012
SELECT + 76 * AVG ( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7012
SELECT + 76 * AVG ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT ALL + 55 AS col0, 36 * + + ( + - ( - 36 ) )
----
55
1296

query I rowsort
SELECT NULLIF ( + + 40, + ( - - 14 ) )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7015
SELECT ALL + 62 AS col1, - CAST( NULL AS SIGNED ) * 78 AS col1
----
62
NULL

skipif mysql # not compatible
query II rowsort label-7015
SELECT ALL + 62 AS col1, - CAST ( NULL AS INTEGER ) * 78 AS col1
----
62
NULL

query I rowsort
SELECT DISTINCT - 24 * + 16
----
-384

query I rowsort
SELECT CASE - + 33 WHEN 26 THEN - + 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT DISTINCT SUM( DISTINCT + - 9 ) * - 42 + - 62 * 79 * - - 3 AS col1
----
-14316

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT SUM ( DISTINCT + - 9 ) * - 42 + - 62 * 79 * - - 3 AS col1
----
-14316

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT + 10 * COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7019
SELECT + 10 * COUNT ( * ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT ALL COUNT( * ) * - 37
----
-37

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL COUNT ( * ) * - 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT 71 * - 72 + - COUNT( * ) + - 4 - 77 AS col1
----
-5194

skipif mysql # not compatible
query I rowsort label-7021
SELECT 71 * - 72 + - COUNT ( * ) + - 4 - 77 AS col1
----
-5194

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT + 15 * - COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-7022
SELECT + 15 * - COUNT ( * ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT ALL COALESCE ( - 66, + 70 * + ( + COUNT( * ) ) ) * + - 70 * - MAX( + 12 ) + - 79 * + COUNT( * ) * + - COUNT( * ) + + 18 * 99 * + - 65
----
-171191

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL COALESCE ( - 66, + 70 * + ( + COUNT ( * ) ) ) * + - 70 * - MAX ( + 12 ) + - 79 * + COUNT ( * ) * + - COUNT ( * ) + + 18 * 99 * + - 65
----
-171191

query I rowsort
SELECT + 68 - - - 60 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT ALL - 7 * + 65 * + MAX( DISTINCT - - 75 ) + + SUM( + 65 ) AS col0
----
-34060

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL - 7 * + 65 * + MAX ( DISTINCT - - 75 ) + + SUM ( + 65 ) AS col0
----
-34060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7026
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 93 + - COALESCE ( + + COALESCE ( + - 18, 82 ), CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) + SUM( 84 ) * + + 50 - + 55 - - COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 93 + - COALESCE ( + + COALESCE ( + - 18, 82 ), CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) + SUM ( 84 ) * + + 50 - + 55 - - COUNT ( * ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7027
SELECT - 66 * ( + 53 ) + - 70, - 25 + 98 + COUNT( - 57 ) * - 92 AS col0
----
-3568
-19

skipif mysql # not compatible
query II rowsort label-7027
SELECT - 66 * ( + 53 ) + - 70, - 25 + 98 + COUNT ( - 57 ) * - 92 AS col0
----
-3568
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT + - 8 + - COUNT( * ) + MAX( ALL + 4 )
----
-5

skipif mysql # not compatible
query I rowsort label-7028
SELECT + - 8 + - COUNT ( * ) + MAX ( ALL + 4 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT + + ( COALESCE ( - - 28, 55, + 21 ) ) + + 18 + - COUNT( 20 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7029
SELECT + + ( COALESCE ( - - 28, 55, + 21 ) ) + + 18 + - COUNT ( 20 ) AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7030
SELECT ALL + 64 + + 69 * - CAST( NULL AS SIGNED ) * + - 40 + + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL + 64 + + 69 * - CAST ( NULL AS INTEGER ) * + - 40 + + - 26
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7031
SELECT + - 59 + 80 AS col1, - 79 DIV + 46
----
21
-1

skipif mysql # not compatible
query II rowsort label-7031
SELECT + - 59 + 80 AS col1, - 79 / + 46
----
21
-1

query I rowsort
SELECT - 74 - 20 * + 74
----
-1554

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7033
SELECT DISTINCT + COUNT( * ), + 32 DIV + + COUNT( * ) AS col0
----
1
32

skipif mysql # not compatible
query II rowsort label-7033
SELECT DISTINCT + COUNT ( * ), + 32 / + + COUNT ( * ) AS col0
----
1
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7034
SELECT + COUNT( * ) + - - 58 + 81 DIV 93 * - - 64
----
59

skipif mysql # not compatible
query I rowsort label-7034
SELECT + COUNT ( * ) + - - 58 + 81 / 93 * - - 64
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT ALL + - COUNT( 57 ) + - 38
----
-39

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL + - COUNT ( 57 ) + - 38
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT - - MAX( DISTINCT 27 )
----
27

skipif mysql # not compatible
query I rowsort label-7036
SELECT - - MAX ( DISTINCT 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT ALL - COALESCE ( 52, - + COALESCE ( MIN( + 90 ), + 39 * + 67 - + + 55 ) ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL - COALESCE ( 52, - + COALESCE ( MIN ( + 90 ), + 39 * + 67 - + + 55 ) ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT ALL - ( - 72 ) + - - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL - ( - 72 ) + - - COUNT ( * )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7039
SELECT - 41 + + - 64 DIV + 18 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-7039
SELECT - 41 + + - 64 / + 18 AS col1
----
-44

query I rowsort
SELECT + CASE - - 21 WHEN 56 - - 80 THEN NULL WHEN - - 40 THEN + 39 * - + 73 * + 22 / + + 10 END col2
----
NULL

query I rowsort
SELECT ALL + 38 - - - 9 * 46
----
-376

query I rowsort
SELECT + + 32 * + - 35 AS col0
----
-1120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7043
SELECT - + COALESCE ( 34, + - ( - - 17 ), - 55 DIV COUNT( * ) + - + 84 + 27 ) * - - 17 + 35
----
-543

skipif mysql # not compatible
query I rowsort label-7043
SELECT - + COALESCE ( 34, + - ( - - 17 ), - 55 / COUNT ( * ) + - + 84 + 27 ) * - - 17 + 35
----
-543

query I rowsort
SELECT + NULLIF ( - 59, ( + + 60 ) ) + + 26
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-7045
SELECT + 10 AS col2, - MIN( 2 ) + - 61 + + ( MIN( ALL - 59 ) ) + - ( + 70 ) AS col2
----
10
-192

skipif mysql # not compatible
query II rowsort label-7045
SELECT + 10 AS col2, - MIN ( 2 ) + - 61 + + ( MIN ( ALL - 59 ) ) + - ( + 70 ) AS col2
----
10
-192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7046
SELECT - CAST( NULL AS SIGNED ) AS col2, 91 col0
----
NULL
91

skipif mysql # not compatible
query II rowsort label-7046
SELECT - CAST ( NULL AS INTEGER ) AS col2, 91 col0
----
NULL
91

onlyif mysql # aggregate syntax: 
query II rowsort label-7047
SELECT ALL 33 AS col2, - 46 - 54 - + SUM( ALL 5 )
----
33
-105

skipif mysql # not compatible
query II rowsort label-7047
SELECT ALL 33 AS col2, - 46 - 54 - + SUM ( ALL 5 )
----
33
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT DISTINCT + SUM( ALL - - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT + SUM ( ALL - - 42 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7049
SELECT - - NULLIF ( - CAST( NULL AS SIGNED ), + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7049
SELECT - - NULLIF ( - CAST ( NULL AS INTEGER ), + 63 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7050
SELECT - COUNT( * ) + - 47 + - 37 * + 57 + + - 3 DIV + + 58 DIV COUNT( DISTINCT - 98 ) + + - 24 + + ( + + 18 ) * + 83 AS col1
----
-687

skipif mysql # not compatible
query I rowsort label-7050
SELECT - COUNT ( * ) + - 47 + - 37 * + 57 + + - 3 / + + 58 / COUNT ( DISTINCT - 98 ) + + - 24 + + ( + + 18 ) * + 83 AS col1
----
-687

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT - COUNT( * ) + + 72 + + 55 + - + ( - 19 ) + - 33 + + 84 * - 77 AS col2
----
-6356

skipif mysql # not compatible
query I rowsort label-7051
SELECT - COUNT ( * ) + + 72 + + 55 + - + ( - 19 ) + - 33 + + 84 * - 77 AS col2
----
-6356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7052
SELECT 65 DIV + ( - 16 ) * - NULLIF ( + ( + + COUNT( * ) ), + - ( - - ( + 30 ) ) ) + - + 46 + + 25 * - ( - COUNT( * ) ) * 56 + - - MAX( 82 ) + + 76
----
1516

skipif mysql # not compatible
query I rowsort label-7052
SELECT 65 / + ( - 16 ) * - NULLIF ( + ( + + COUNT ( * ) ), + - ( - - ( + 30 ) ) ) + - + 46 + + 25 * - ( - COUNT ( * ) ) * 56 + - - MAX ( 82 ) + + 76
----
1516

onlyif mysql # DIV for integer division: 
query II rowsort label-7053
SELECT - 40 DIV 66, + 49 - 40 * - 40 AS col1
----
0
1649

skipif mysql # not compatible
query II rowsort label-7053
SELECT - 40 / 66, + 49 - 40 * - 40 AS col1
----
0
1649

onlyif mysql # aggregate syntax: 
query II rowsort label-7054
SELECT ALL + COUNT( * ) * - - 45 AS col1, 93 AS col2
----
45
93

skipif mysql # not compatible
query II rowsort label-7054
SELECT ALL + COUNT ( * ) * - - 45 AS col1, 93 AS col2
----
45
93

query I rowsort
SELECT - 58 + 47 + + 1 * + + 93
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL + COUNT( 61 ) * - 20
----
-20

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL + COUNT ( 61 ) * - 20
----
-20

query I rowsort
SELECT - 34 + - 98
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7058
SELECT - 16 / - + 48 / - + 5 * - + CAST( NULL AS SIGNED ) + + + MAX( ALL + - 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7058
SELECT - 16 / - + 48 / - + 5 * - + CAST ( NULL AS INTEGER ) + + + MAX ( ALL + - 92 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT - 29 * + 52 - - COUNT( * ) * COUNT( * ) + 7
----
-1500

skipif mysql # not compatible
query I rowsort label-7059
SELECT - 29 * + 52 - - COUNT ( * ) * COUNT ( * ) + 7
----
-1500

query I rowsort
SELECT + 86 * - 49
----
-4214

query I rowsort
SELECT + 35 * + 43 * 50 + + 72 AS col2
----
75322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7062
SELECT DISTINCT - CASE 37 WHEN - 54 THEN + COUNT( DISTINCT + + 24 ) + 53 + + - 6 * 31 ELSE + 94 END DIV - - 99 + + 59 + - + 58 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT - CASE 37 WHEN - 54 THEN + COUNT ( DISTINCT + + 24 ) + 53 + + - 6 * 31 ELSE + 94 END / - - 99 + + 59 + - + 58 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7063
SELECT ALL + COUNT( * ) DIV COUNT( * ) + - 97
----
-96

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL + COUNT ( * ) / COUNT ( * ) + - 97
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7064
SELECT - 72 * CAST( NULL AS SIGNED ) + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7064
SELECT - 72 * CAST ( NULL AS INTEGER ) + - 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL SUM( 7 ) * - - 63 + - ( + 53 ) AS col1
----
388

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL SUM ( 7 ) * - - 63 + - ( + 53 ) AS col1
----
388

onlyif mysql # aggregate syntax: 
query II rowsort label-7066
SELECT 51 + + + 63 AS col0, 8 * + COUNT( DISTINCT 78 )
----
114
8

skipif mysql # not compatible
query II rowsort label-7066
SELECT 51 + + + 63 AS col0, 8 * + COUNT ( DISTINCT 78 )
----
114
8

query I rowsort
SELECT ALL - COALESCE ( + 82, - - 77 ) + + 99
----
17

query I rowsort
SELECT DISTINCT ( - - 53 ) * + 82
----
4346

query I rowsort
SELECT + NULLIF ( + 44, - + ( + 4 ) ) * + + 81 + + 41 * - 98
----
-454

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT ALL 86 * - 65 + COUNT( * )
----
-5589

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL 86 * - 65 + COUNT ( * )
----
-5589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7071
SELECT ( - 81 ) / - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7071
SELECT ( - 81 ) / - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7072
SELECT ALL - ( 74 ) DIV + + COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL - ( 74 ) / + + COUNT ( * ) AS col0
----
-74

query I rowsort
SELECT + 39 * + 19
----
741

query I rowsort
SELECT ALL + 41 - - 44 AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7075
SELECT - 5 - 14 * - 29 + + NULLIF ( + 81, - - 0 * + 72 ) + + 0 DIV 76 - + 94
----
388

skipif mysql # not compatible
query I rowsort label-7075
SELECT - 5 - 14 * - 29 + + NULLIF ( + 81, - - 0 * + 72 ) + + 0 / 76 - + 94
----
388

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT 76 * + - COUNT( * ) + + - 32 AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-7076
SELECT 76 * + - COUNT ( * ) + + - 32 AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT 7 + + + MIN( + 26 ) * + + 67
----
1749

skipif mysql # not compatible
query I rowsort label-7077
SELECT 7 + + + MIN ( + 26 ) * + + 67
----
1749

query II rowsort
SELECT ALL 27 AS col2, - 26 * 66 AS col0
----
27
-1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7079
SELECT ALL COALESCE ( + + 24, - CAST( NULL AS SIGNED ), - COUNT( * ) + - COUNT( 45 ), - + 96 * + 46 + - - 73 ) * - 77 AS col2
----
-1848

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL COALESCE ( + + 24, - CAST ( NULL AS INTEGER ), - COUNT ( * ) + - COUNT ( 45 ), - + 96 * + 46 + - - 73 ) * - 77 AS col2
----
-1848

query I rowsort
SELECT ( + 24 ) * - + 92
----
-2208

onlyif mysql # aggregate syntax: 
query II rowsort label-7081
SELECT 26 * + MAX( + - 74 ) col2, - 27
----
-1924
-27

skipif mysql # not compatible
query II rowsort label-7081
SELECT 26 * + MAX ( + - 74 ) col2, - 27
----
-1924
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT DISTINCT - MIN( DISTINCT 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT - MIN ( DISTINCT 62 )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7083
SELECT ALL - 7 + + - CASE - + 56 WHEN 83 THEN NULL WHEN 51 THEN NULL ELSE - - 56 END + + CAST( + AVG ( + 27 ) AS SIGNED ) * 55 AS col1
----
1422

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL - 7 + + - CASE - + 56 WHEN 83 THEN NULL WHEN 51 THEN NULL ELSE - - 56 END + + CAST ( + AVG ( + 27 ) AS INTEGER ) * 55 AS col1
----
1422

query I rowsort
SELECT 42 + - - 55
----
97

query I rowsort
SELECT + 62 * - - 80 * - + 75 + - 62 - 18 - 89 + 11 * - + COALESCE ( - 71, + ( + + 22 ) )
----
-371388

onlyif mysql # aggregate syntax: 
query II rowsort label-7086
SELECT ALL + 34 + - 98 * 63 AS col2, 60 * - MIN( DISTINCT + 70 ) * - 27 - - 3
----
-6140
113403

skipif mysql # not compatible
query II rowsort label-7086
SELECT ALL + 34 + - 98 * 63 AS col2, 60 * - MIN ( DISTINCT + 70 ) * - 27 - - 3
----
-6140
113403

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT DISTINCT - MAX( DISTINCT 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT - MAX ( DISTINCT 81 ) AS col1
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7088
SELECT ALL + CAST( - + 82 AS SIGNED ) + + 45 * 2 AS col2, NULLIF ( - 9, - ( 75 ) ) AS col2
----
8
-9

skipif mysql # not compatible
query II rowsort label-7088
SELECT ALL + CAST ( - + 82 AS INTEGER ) + + 45 * 2 AS col2, NULLIF ( - 9, - ( 75 ) ) AS col2
----
8
-9

query I rowsort
SELECT ALL 57 + + 13 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT DISTINCT - 99 * COUNT( * ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT - 99 * COUNT ( * ) AS col0
----
-99

query I rowsort
SELECT ALL + 44 + - - 65 + + 22 + - + 51
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT 51 * + COUNT( * ) col1
----
51

skipif mysql # not compatible
query I rowsort label-7092
SELECT 51 * + COUNT ( * ) col1
----
51

query I rowsort
SELECT ALL - 17 * + 24
----
-408

query I rowsort
SELECT 31 + - 44
----
-13

query I rowsort
SELECT 41 + - 30 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT COUNT( * ) * - 94 + - ( - ( 96 ) )
----
2

skipif mysql # not compatible
query I rowsort label-7096
SELECT COUNT ( * ) * - 94 + - ( - ( 96 ) )
----
2

query II rowsort
SELECT + 26 AS col2, + 48 * + 15 AS col1
----
26
720

onlyif mysql # DIV for integer division: 
query I rowsort label-7098
SELECT ALL - 6 + - 17 DIV - 25 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-7098
SELECT ALL - 6 + - 17 / - 25 AS col2
----
-6

query I rowsort
SELECT DISTINCT - ( - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT ALL + + 91 - - + 74 + + 42 * - - 28 * - + 80 * + COUNT( * ) * + - NULLIF ( - 73, - - 29 / 28 ) AS col1
----
-6867675

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL + + 91 - - + 74 + + 42 * - - 28 * - + 80 * + COUNT ( * ) * + - NULLIF ( - 73, - - 29 / 28 ) AS col1
----
-6867675

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT + MAX( ALL + + ( + 59 ) ) * COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-7101
SELECT + MAX ( ALL + + ( + 59 ) ) * COUNT ( * )
----
59

query I rowsort
SELECT DISTINCT + 4 - - 40 * - 2
----
-76

query I rowsort
SELECT 22 + - 22 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT ALL + ( + ( MAX( + 68 ) ) ) - + + 96 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL + ( + ( MAX ( + 68 ) ) ) - + + 96 AS col2
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-7105
SELECT - 62 * + + 35 + - - 97 DIV - - 87 + - 23
----
-2192

skipif mysql # not compatible
query I rowsort label-7105
SELECT - 62 * + + 35 + - - 97 / - - 87 + - 23
----
-2192

query II rowsort
SELECT 52 * + 9 + + - 84 + 7 col0, + 3 AS col1
----
391
3

query I rowsort
SELECT ALL - 21 * - 12
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT 1 + + COUNT( * ) + + NULLIF ( 93, - + 14 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-7108
SELECT 1 + + COUNT ( * ) + + NULLIF ( 93, - + 14 ) AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7109
SELECT 45 DIV - COUNT( * ) col0
----
-45

skipif mysql # not compatible
query I rowsort label-7109
SELECT 45 / - COUNT ( * ) col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT - COUNT( * ) + - COUNT( * ) + 88 + - - 24 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-7110
SELECT - COUNT ( * ) + - COUNT ( * ) + 88 + - - 24 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT ALL - ( + SUM( ALL 16 ) ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL - ( + SUM ( ALL 16 ) ) AS col0
----
-16

query II rowsort
SELECT ALL - 22 AS col1, ( 5 ) AS col2
----
-22
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT ALL - MIN( ALL - - ( + 85 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL - MIN ( ALL - - ( + 85 ) )
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7114
SELECT NULLIF ( + 13, + - 19 + - CASE COUNT( * ) WHEN + 99 + ( + + 34 ) THEN - ( 26 ) DIV 98 + 89 ELSE NULL END + + 44 DIV - - MAX( 78 ) ) DIV - COUNT( 54 )
----
-13

skipif mysql # not compatible
query I rowsort label-7114
SELECT NULLIF ( + 13, + - 19 + - CASE COUNT ( * ) WHEN + 99 + ( + + 34 ) THEN - ( 26 ) / 98 + 89 ELSE NULL END + + 44 / - - MAX ( 78 ) ) / - COUNT ( 54 )
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7115
SELECT DISTINCT - 27 * + CASE - COALESCE ( - ( + COALESCE ( 77, - 37 + + - 86 ) ), + + 62 ) WHEN ( - 90 ) THEN COUNT( DISTINCT - ( + 76 ) ) * + 91 + - - 51 ELSE + 37 + MIN( ALL - - 1 ) END * - COUNT( * ) + - 45 DIV - 9 col0
----
1031

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT - 27 * + CASE - COALESCE ( - ( + COALESCE ( 77, - 37 + + - 86 ) ), + + 62 ) WHEN ( - 90 ) THEN COUNT ( DISTINCT - ( + 76 ) ) * + 91 + - - 51 ELSE + 37 + MIN ( ALL - - 1 ) END * - COUNT ( * ) + - 45 / - 9 col0
----
1031

query I rowsort
SELECT 20 + 96
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT 26 DIV 99 * 51 * + + 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7117
SELECT 26 / 99 * 51 * + + 3 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT - MAX( + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-7118
SELECT - MAX ( + 73 )
----
-73

query I rowsort
SELECT NULLIF ( - - 76, + 72 ) + 31 * - 88 + 0 AS col0
----
-2652

onlyif mysql # DIV for integer division: 
query I rowsort label-7120
SELECT 16 + - 20 DIV + 99 + 78 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-7120
SELECT 16 + - 20 / + 99 + 78 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT DISTINCT COUNT( * ) + - 11
----
-10

skipif mysql # not compatible
query I rowsort label-7121
SELECT DISTINCT COUNT ( * ) + - 11
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT - MAX( ALL + ( 36 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-7122
SELECT - MAX ( ALL + ( 36 ) )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7123
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), - 47 ) * COUNT( - 73 ) + - - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), - 47 ) * COUNT ( - 73 ) + - - 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7124
SELECT COUNT( * ) DIV 17 * - 85 + NULLIF ( - 79, + 3 * - MIN( ALL ( + 59 ) ) ) - 33
----
-112

skipif mysql # not compatible
query I rowsort label-7124
SELECT COUNT ( * ) / 17 * - 85 + NULLIF ( - 79, + 3 * - MIN ( ALL ( + 59 ) ) ) - 33
----
-112

query I rowsort
SELECT DISTINCT + 58 * - 13 + + 16 + + - 84 - + 99
----
-921

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT + 45 + + + 95 + + - 75 + - 62 * + 45 + 18 + - - SUM( DISTINCT + 94 ) * + + 15 + 57
----
-1240

skipif mysql # not compatible
query I rowsort label-7126
SELECT + 45 + + + 95 + + - 75 + - 62 * + 45 + 18 + - - SUM ( DISTINCT + 94 ) * + + 15 + 57
----
-1240

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT + MAX( - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-7127
SELECT + MAX ( - 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT + 91 * - - COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-7128
SELECT + 91 * - - COUNT ( * ) AS col1
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-7129
SELECT + 9 DIV + 98, 73 AS col2
----
0
73

skipif mysql # not compatible
query II rowsort label-7129
SELECT + 9 / + 98, 73 AS col2
----
0
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT COALESCE ( COUNT( * ), - + 47 * ( + 33 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7130
SELECT COALESCE ( COUNT ( * ), - + 47 * ( + 33 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7131
SELECT + ( 97 ) DIV 78 + - COUNT( * ) AS col2, 92 AS col0
----
0
92

skipif mysql # not compatible
query II rowsort label-7131
SELECT + ( 97 ) / 78 + - COUNT ( * ) AS col2, 92 AS col0
----
0
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7132
SELECT ALL COUNT( * ) * - - 93 - - 14 + 4 + 53 + - 82 + - 1 col1, - 26 * + 36 + - 65 + - + 61
----
81
-1062

skipif mysql # not compatible
query II rowsort label-7132
SELECT ALL COUNT ( * ) * - - 93 - - 14 + 4 + 53 + - 82 + - 1 col1, - 26 * + 36 + - 65 + - + 61
----
81
-1062

query I rowsort
SELECT + COALESCE ( 82, + NULLIF ( 55, + 1 * 40 ) ) * - 0 * + 57 + 77 - - 23 AS col2
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7134
SELECT DISTINCT + NULLIF ( - + 20, 83 ) DIV - ( - - COALESCE ( - 35, 51 + + ( - COUNT( ALL 37 ) ) ) ) col2, - 2 + + + 19
----
0
17

skipif mysql # not compatible
query II rowsort label-7134
SELECT DISTINCT + NULLIF ( - + 20, 83 ) / - ( - - COALESCE ( - 35, 51 + + ( - COUNT ( ALL 37 ) ) ) ) col2, - 2 + + + 19
----
0
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT ALL - 11 * - + 89 + + 43 * - 59 + - 35 * - COUNT( * )
----
-1523

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL - 11 * - + 89 + + 43 * - 59 + - 35 * - COUNT ( * )
----
-1523

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT - NULLIF ( + + COUNT( * ), 21 * - - COUNT( * ) ) + - COUNT( * ) * 16 + - - 90 + 82
----
155

skipif mysql # not compatible
query I rowsort label-7136
SELECT - NULLIF ( + + COUNT ( * ), 21 * - - COUNT ( * ) ) + - COUNT ( * ) * 16 + - - 90 + 82
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7137
SELECT + + MIN( 0 ) DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-7137
SELECT + + MIN ( 0 ) / 56
----
0

query I rowsort
SELECT - + 89 * 22 * 42 * + + 69 + CASE COALESCE ( - 89, 46 ) WHEN + 76 * + - 7 * 55 + NULLIF ( - 76, - 62 ) - + - 87 * - 40 + - 8 + + 7 + 87 THEN + 0 * + 96 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7139
SELECT DISTINCT - CASE + MIN( - CAST( NULL AS SIGNED ) ) WHEN + + 24 THEN - - 91 END * MIN( + ( + + 86 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7139
SELECT DISTINCT - CASE + MIN ( - CAST ( NULL AS INTEGER ) ) WHEN + + 24 THEN - - 91 END * MIN ( + ( + + 86 ) ) AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( + - 83, ( 48 ) )
----
-83

query I rowsort
SELECT - - 14 * + 81
----
1134

query I rowsort
SELECT ALL + + 4 col2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7143
SELECT SUM( DISTINCT - 41 ) * + 85 + - 70 * - + 9 AS col2, 48 + 22
----
-2855
70

skipif mysql # not compatible
query II rowsort label-7143
SELECT SUM ( DISTINCT - 41 ) * + 85 + - 70 * - + 9 AS col2, 48 + 22
----
-2855
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7144
SELECT - MIN( ALL - - ( + 95 ) ) * - + 99, 6 * ( + 97 ) AS col1
----
9405
582

skipif mysql # not compatible
query II rowsort label-7144
SELECT - MIN ( ALL - - ( + 95 ) ) * - + 99, 6 * ( + 97 ) AS col1
----
9405
582

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT ALL - + COUNT( - 6 ) * + ( + ( - 17 ) ) + 6 + COUNT( * ) + CASE + + COUNT( * ) WHEN + 71 THEN - COUNT( * ) + 36 / - - 14 END + + COALESCE ( - COUNT( * ), - + 97 ) + - COUNT( * ) * COALESCE ( + 84, - 90 ) * - 22 - COUNT( * ) + - CASE - 40 WHEN 44 THEN - 68 END * + ( + 25 + 12 ) + 9 * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL - + COUNT ( - 6 ) * + ( + ( - 17 ) ) + 6 + COUNT ( * ) + CASE + + COUNT ( * ) WHEN + 71 THEN - COUNT ( * ) + 36 / - - 14 END + + COALESCE ( - COUNT ( * ), - + 97 ) + - COUNT ( * ) * COALESCE ( + 84, - 90 ) * - 22 - COUNT ( * ) + - CASE - 40 WHEN 44 THEN - 68 END * + ( + 25 + 12 ) + 9 * + 20
----
NULL

query I rowsort
SELECT NULLIF ( 44, - 81 + - CASE + 4 WHEN - 25 THEN + + 39 - 32 ELSE NULL END + + 9 + + 99 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT DISTINCT - COUNT( ALL - 88 )
----
-1

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT - COUNT ( ALL - 88 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT ALL COUNT( DISTINCT - 55 )
----
1

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL COUNT ( DISTINCT - 55 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT - + 87 + COUNT( DISTINCT 29 ) * 75 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7149
SELECT - + 87 + COUNT ( DISTINCT 29 ) * 75 AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7150
SELECT ALL + + 66 + - 66 + + - CASE - 65 WHEN + - 95 THEN + MAX( - - 34 ) WHEN - + 46 THEN NULL END / NULLIF ( COUNT( * ), 32 - + 90 * + + 38 * - 18 ) * 92 * CASE COUNT( * ) WHEN - CASE - 30 WHEN + CASE + 86 WHEN + 92 THEN + 0 END + 47 THEN - 6 WHEN - CAST( 34 AS DECIMAL ) * 74 THEN NULL END THEN 76 * - CAST( NULL AS SIGNED ) WHEN + 8 * + MIN( DISTINCT + ( + 12 ) ) + + 56 THEN 73 END - - COUNT( + 1 + + 75 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL + + 66 + - 66 + + - CASE - 65 WHEN + - 95 THEN + MAX ( - - 34 ) WHEN - + 46 THEN NULL END / NULLIF ( COUNT ( * ), 32 - + 90 * + + 38 * - 18 ) * 92 * CASE COUNT ( * ) WHEN - CASE - 30 WHEN + CASE + 86 WHEN + 92 THEN + 0 END + 47 THEN - 6 WHEN - CAST ( 34 AS REAL ) * 74 THEN NULL END THEN 76 * - CAST ( NULL AS INTEGER ) WHEN + 8 * + MIN ( DISTINCT + ( + 12 ) ) + + 56 THEN 73 END - - COUNT ( + 1 + + 75 ) col2
----
NULL

query I rowsort
SELECT - 23 * 49 * - + 99
----
111573

onlyif mysql # aggregate syntax: 
query II rowsort label-7152
SELECT - 82 - 0 * - COUNT( * ) * - + COUNT( * ) * - + 56 + - MIN( DISTINCT 16 ) + - 77 AS col0, 55 AS col0
----
-175
55

skipif mysql # not compatible
query II rowsort label-7152
SELECT - 82 - 0 * - COUNT ( * ) * - + COUNT ( * ) * - + 56 + - MIN ( DISTINCT 16 ) + - 77 AS col0, 55 AS col0
----
-175
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7153
SELECT - CASE - 87 WHEN 49 * + 67 + + - 79 + 32 + + + 14 THEN - 67 - + NULLIF ( 83, - - 68 * - + MIN( ALL + 34 ) * 14 * 23 / ( - 82 ) + - + 62 * + CAST( 53 AS SIGNED ) ) * - 47 + + + ( + + COUNT( * ) ) + - - 63 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7153
SELECT - CASE - 87 WHEN 49 * + 67 + + - 79 + 32 + + + 14 THEN - 67 - + NULLIF ( 83, - - 68 * - + MIN ( ALL + 34 ) * 14 * 23 / ( - 82 ) + - + 62 * + CAST ( 53 AS INTEGER ) ) * - 47 + + + ( + + COUNT ( * ) ) + - - 63 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT ALL + 89 + 63 * + - 93 * + + COUNT( * ) - - ( - 63 ) * - COALESCE ( 48, + + ( 27 ), 29, - COUNT( * ) * - 63 )
----
-2746

skipif mysql # not compatible
query I rowsort label-7154
SELECT ALL + 89 + 63 * + - 93 * + + COUNT ( * ) - - ( - 63 ) * - COALESCE ( 48, + + ( 27 ), 29, - COUNT ( * ) * - 63 )
----
-2746

query I rowsort
SELECT + 28 - 90 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT ALL - 17 * MAX( DISTINCT - 86 ) AS col1
----
1462

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL - 17 * MAX ( DISTINCT - 86 ) AS col1
----
1462

query I rowsort
SELECT - 33 * 33 AS col2
----
-1089

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT + MIN( - + 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-7158
SELECT + MIN ( - + 96 )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7159
SELECT CAST( + 79 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-7159
SELECT CAST ( + 79 AS INTEGER )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT + COALESCE ( + 74, - COUNT( * ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7160
SELECT + COALESCE ( + 74, - COUNT ( * ) ) AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7161
SELECT CAST( 26 AS SIGNED ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7161
SELECT CAST ( 26 AS INTEGER ) AS col0
----
26

query II rowsort
SELECT ALL + 24 col1, - 28
----
24
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-7163
SELECT ALL - 52 DIV + 41 - - 91
----
90

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL - 52 / + 41 - - 91
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT ALL + - ( + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL + - ( + COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT + + 65 * MIN( - - 36 )
----
2340

skipif mysql # not compatible
query I rowsort label-7165
SELECT + + 65 * MIN ( - - 36 )
----
2340

query I rowsort
SELECT + + 60 * 94 AS col0
----
5640

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT ALL + MAX( 84 ) * - 88 + - 47 * + + 52 AS col0
----
-9836

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL + MAX ( 84 ) * - 88 + - 47 * + + 52 AS col0
----
-9836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7168
SELECT + + COUNT( * ) + - - 65 + + - 72 * + + COALESCE ( 53, + ( + ( - CAST( - 71 AS SIGNED ) ) ), + CASE + 77 WHEN 99 THEN NULL ELSE - 91 * - 69 + 64 + COALESCE ( - + 39, + COUNT( + + 98 ) * - 78 ) * + 81 END * + 8 + 56 )
----
-3750

skipif mysql # not compatible
query I rowsort label-7168
SELECT + + COUNT ( * ) + - - 65 + + - 72 * + + COALESCE ( 53, + ( + ( - CAST ( - 71 AS INTEGER ) ) ), + CASE + 77 WHEN 99 THEN NULL ELSE - 91 * - 69 + 64 + COALESCE ( - + 39, + COUNT ( + + 98 ) * - 78 ) * + 81 END * + 8 + 56 )
----
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT CASE + 98 WHEN 56 THEN NULL WHEN CASE 90 WHEN + + ( - 48 ) THEN + 70 * - - 12 END + + COUNT( * ) THEN - 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT CASE + 98 WHEN 56 THEN NULL WHEN CASE 90 WHEN + + ( - 48 ) THEN + 70 * - - 12 END + + COUNT ( * ) THEN - 4 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT + COALESCE ( - - 44, 90 ) * - 71 + ( 35 ) + + 64 + - - COUNT( * ) + - 88 - - 79 AS col0
----
-3033

skipif mysql # not compatible
query I rowsort label-7170
SELECT + COALESCE ( - - 44, 90 ) * - 71 + ( 35 ) + + 64 + - - COUNT ( * ) + - 88 - - 79 AS col0
----
-3033

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7171
SELECT + CAST( NULL AS DECIMAL ) * 46 * - - 87 + + + 66 * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT + CAST ( NULL AS REAL ) * 46 * - - 87 + + + 66 * + 25
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7172
SELECT + 85 + + ( + + 51 ), COUNT( * ) + 24 - 31 AS col0
----
136
-6

skipif mysql # not compatible
query II rowsort label-7172
SELECT + 85 + + ( + + 51 ), COUNT ( * ) + 24 - 31 AS col0
----
136
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7173
SELECT ALL - 37 * + + NULLIF ( - + COUNT( * ), + + 70 ) + + 90 * COUNT( * ) + 67 * + 42 AS col0, + COALESCE ( + 15, 17, NULLIF ( 98, + NULLIF ( + COUNT( * ), CASE + 41 WHEN 18 * 16 * 59 - CAST( NULL AS SIGNED ) / + - 19 - - 9 + 46 * 86 + 6 / + 66 + + 16 * - 5 THEN 80 * + 98 ELSE NULL END ) + COUNT( 81 ) * - 30 ) * 55 ) AS col2
----
2941
15

skipif mysql # not compatible
query II rowsort label-7173
SELECT ALL - 37 * + + NULLIF ( - + COUNT ( * ), + + 70 ) + + 90 * COUNT ( * ) + 67 * + 42 AS col0, + COALESCE ( + 15, 17, NULLIF ( 98, + NULLIF ( + COUNT ( * ), CASE + 41 WHEN 18 * 16 * 59 - CAST ( NULL AS INTEGER ) / + - 19 - - 9 + 46 * 86 + 6 / + 66 + + 16 * - 5 THEN 80 * + 98 ELSE NULL END ) + COUNT ( 81 ) * - 30 ) * 55 ) AS col2
----
2941
15

query II rowsort
SELECT - - 33 + + 49 * + 79, - 53 + + 65 col0
----
3904
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7175
SELECT ALL - COUNT( * ) DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-7175
SELECT ALL - COUNT ( * ) / + 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT DISTINCT + - SUM( DISTINCT + 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT + - SUM ( DISTINCT + 39 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT - MIN( ALL 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-7177
SELECT - MIN ( ALL 97 )
----
-97

query I rowsort
SELECT ALL - NULLIF ( - + 85, + 86 ) * - 38 + - 91 + + 11
----
-3310

onlyif mysql # aggregate syntax: 
query II rowsort label-7179
SELECT COUNT( * ), COUNT( * ) * COUNT( * ) * + + 92 AS col2
----
1
92

skipif mysql # not compatible
query II rowsort label-7179
SELECT COUNT ( * ), COUNT ( * ) * COUNT ( * ) * + + 92 AS col2
----
1
92

query I rowsort
SELECT - 5 * - + 8 * + + 28
----
1120

query I rowsort
SELECT DISTINCT + ( - + 36 ) + NULLIF ( 73, - 11 * - 22 + - - 92 - - + 98 + 97 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-7182
SELECT 45 + + 80 AS col0, - 69 * - - COALESCE ( - ( - - 61 ), + COUNT( * ) - COUNT( * ) + - 23 * 43 )
----
125
4209

skipif mysql # not compatible
query II rowsort label-7182
SELECT 45 + + 80 AS col0, - 69 * - - COALESCE ( - ( - - 61 ), + COUNT ( * ) - COUNT ( * ) + - 23 * 43 )
----
125
4209

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7183
SELECT ALL 89 AS col1, 10 - - ( - + 53 ) - - COALESCE ( - 12, CAST( NULL AS SIGNED ) ) * - 22 * + + 24 * - 96
----
89
-608299

skipif mysql # not compatible
query II rowsort label-7183
SELECT ALL 89 AS col1, 10 - - ( - + 53 ) - - COALESCE ( - 12, CAST ( NULL AS INTEGER ) ) * - 22 * + + 24 * - 96
----
89
-608299

query I rowsort
SELECT 25 * + 88
----
2200

query II rowsort
SELECT - 45 AS col2, 48 + - 59 AS col1
----
-45
-11

query I rowsort
SELECT 31 + + 50 + 40
----
121

query II rowsort
SELECT 12 AS col0, - 0 - - 24 AS col1
----
12
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7188
SELECT 41 + - COUNT( * ) AS col1, COUNT( * ) * 52 * - 9 * + COUNT( * ) * 87 AS col0
----
40
-40716

skipif mysql # not compatible
query II rowsort label-7188
SELECT 41 + - COUNT ( * ) AS col1, COUNT ( * ) * 52 * - 9 * + COUNT ( * ) * 87 AS col0
----
40
-40716

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT SUM( + + 86 ) * 72
----
6192

skipif mysql # not compatible
query I rowsort label-7189
SELECT SUM ( + + 86 ) * 72
----
6192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7190
SELECT ALL + 86 * + ( COUNT( ALL - NULLIF ( 26, + + 51 * + 47 + - CASE - + 12 WHEN CAST( - 57 AS SIGNED ) THEN NULL ELSE + 62 END + 32 ) ) )
----
86

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL + 86 * + ( COUNT ( ALL - NULLIF ( 26, + + 51 * + 47 + - CASE - + 12 WHEN CAST ( - 57 AS INTEGER ) THEN NULL ELSE + 62 END + 32 ) ) )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7191
SELECT 61 col0, COUNT( + 25 ) - - 63 - - - 44 + 95 AS col0
----
61
115

skipif mysql # not compatible
query II rowsort label-7191
SELECT 61 col0, COUNT ( + 25 ) - - 63 - - - 44 + 95 AS col0
----
61
115

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT DISTINCT 15 * + COUNT( * ) * 25 AS col1
----
375

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT 15 * + COUNT ( * ) * 25 AS col1
----
375

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT + 95 * COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT + 95 * COUNT ( * ) AS col0
----
95

query II rowsort
SELECT DISTINCT 15, 91 AS col2
----
15
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7195
SELECT + 80 DIV - COUNT( * ) + - 97
----
-177

skipif mysql # not compatible
query I rowsort label-7195
SELECT + 80 / - COUNT ( * ) + - 97
----
-177

query I rowsort
SELECT 79 * + 61 AS col0
----
4819

query I rowsort
SELECT ALL - 23 * - + 92 AS col1
----
2116

query I rowsort
SELECT DISTINCT + + 42 * - 16
----
-672

onlyif mysql # DIV for integer division: 
query I rowsort label-7199
SELECT 30 DIV 7 * 38 AS col0
----
152

skipif mysql # not compatible
query I rowsort label-7199
SELECT 30 / 7 * 38 AS col0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT + + 41 * - 71 * + 68 / + + 26 * 23 / + CASE + 47 WHEN - 25 * 40 + + 95 THEN - - 54 WHEN COUNT( * ) THEN NULL ELSE NULL END + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT + + 41 * - 71 * + 68 / + + 26 * 23 / + CASE + 47 WHEN - 25 * 40 + + 95 THEN - - 54 WHEN COUNT ( * ) THEN NULL ELSE NULL END + - 52
----
NULL

query II rowsort
SELECT 29 AS col2, + 62
----
29
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7202
SELECT ( 24 ) * - 70 * + - ( CASE 33 WHEN - NULLIF ( 24, - CAST( CASE 22 WHEN 58 * - 7 THEN + + 93 WHEN + - CAST( - 17 AS SIGNED ) THEN NULL ELSE + 61 * 26 / - 83 + + CASE + - 85 WHEN + 39 - - 17 + + 46 THEN - MAX( DISTINCT - CAST( - 44 AS SIGNED ) ) WHEN 68 * 18 THEN NULL END / - 4 END AS SIGNED ) + 74 / 81 ) + 36 THEN - COUNT( * ) END ) / + ( + 4 * + 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7202
SELECT ( 24 ) * - 70 * + - ( CASE 33 WHEN - NULLIF ( 24, - CAST ( CASE 22 WHEN 58 * - 7 THEN + + 93 WHEN + - CAST ( - 17 AS INTEGER ) THEN NULL ELSE + 61 * 26 / - 83 + + CASE + - 85 WHEN + 39 - - 17 + + 46 THEN - MAX ( DISTINCT - CAST ( - 44 AS INTEGER ) ) WHEN 68 * 18 THEN NULL END / - 4 END AS INTEGER ) + 74 / 81 ) + 36 THEN - COUNT ( * ) END ) / + ( + 4 * + 10 )
----
NULL

query I rowsort
SELECT 97 * + - 49 - + 14 + 87 col0
----
-4680

query I rowsort
SELECT ALL - - 81 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT SUM( ALL - 86 ) * COUNT( * ) + 69 col1
----
-17

skipif mysql # not compatible
query I rowsort label-7205
SELECT SUM ( ALL - 86 ) * COUNT ( * ) + 69 col1
----
-17

query I rowsort
SELECT ALL - 42 + + 78
----
36

query II rowsort
SELECT ALL - + 48, + 70 * - 47 * - - 18 col1
----
-48
-59220

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT + SUM( DISTINCT + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-7208
SELECT + SUM ( DISTINCT + 14 )
----
14

query I rowsort
SELECT DISTINCT - 98 * 92 AS col2
----
-9016

query I rowsort
SELECT DISTINCT 70 + - 37 AS col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7211
SELECT - 47, + COUNT( * ) + + COUNT( * ) AS col0
----
-47
2

skipif mysql # not compatible
query II rowsort label-7211
SELECT - 47, + COUNT ( * ) + + COUNT ( * ) AS col0
----
-47
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7212
SELECT COUNT( * ) AS col2, - 38
----
1
-38

skipif mysql # not compatible
query II rowsort label-7212
SELECT COUNT ( * ) AS col2, - 38
----
1
-38

query I rowsort
SELECT ALL 89 + + - 11
----
78

query II rowsort
SELECT + 97 AS col0, - NULLIF ( - 53, + - 89 ) + - ( - 77 ) AS col2
----
97
130

query I rowsort
SELECT - 72 * 44 * 79
----
-250272

query II rowsort
SELECT 28 AS col1, 81 AS col2
----
28
81

query I rowsort
SELECT ALL 55 + - 83
----
-28

query I rowsort
SELECT ALL + 89 + - 32 * + 86 * - - 74
----
-203559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7219
SELECT ( CAST( NULL AS SIGNED ) ) * + - ( 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT ( CAST ( NULL AS INTEGER ) ) * + - ( 91 )
----
NULL

query I rowsort
SELECT DISTINCT + 71 - - 65
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7221
SELECT COUNT( * ) - + 5 DIV - 40 + ( + - 7 ) DIV + - COUNT( DISTINCT + 98 ) + + + 7
----
15

skipif mysql # not compatible
query I rowsort label-7221
SELECT COUNT ( * ) - + 5 / - 40 + ( + - 7 ) / + - COUNT ( DISTINCT + 98 ) + + + 7
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7222
SELECT 80 DIV + 2
----
40

skipif mysql # not compatible
query I rowsort label-7222
SELECT 80 / + 2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT ALL CASE - 3 WHEN + - 34 / - NULLIF ( + 75, - COUNT( * ) ) THEN + 40 END * + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL CASE - 3 WHEN + - 34 / - NULLIF ( + 75, - COUNT ( * ) ) THEN + 40 END * + - 71
----
NULL

query I rowsort
SELECT 60 * + - ( - 90 ) AS col0
----
5400

query II rowsort
SELECT DISTINCT 85 * 38, 39 AS col0
----
3230
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT ALL MIN( + - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL MIN ( + - 58 )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7227
SELECT 85 * + CASE + + 52 WHEN CAST( - COUNT( * ) AS SIGNED ) THEN + + 73 ELSE 29 + + 83 END
----
9520

skipif mysql # not compatible
query I rowsort label-7227
SELECT 85 * + CASE + + 52 WHEN CAST ( - COUNT ( * ) AS INTEGER ) THEN + + 73 ELSE 29 + + 83 END
----
9520

query I rowsort
SELECT - 87 * 49 + + 12 * - + 98
----
-5439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7229
SELECT 76 * + 11 AS col2, - 45 * - NULLIF ( + CASE + AVG ( DISTINCT - NULLIF ( ( + 24 ), - 60 ) ) WHEN COUNT( * ) THEN - + 25 END, 7 - + CASE - 68 WHEN - COUNT( * ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END + + 75 * 98 ) * + ( CAST( NULL AS SIGNED ) ) / - - ( + + 84 ) + - 52 / - 69 * + 78 + + 23 * - 68
----
836
NULL

skipif mysql # not compatible
query II rowsort label-7229
SELECT 76 * + 11 AS col2, - 45 * - NULLIF ( + CASE + AVG ( DISTINCT - NULLIF ( ( + 24 ), - 60 ) ) WHEN COUNT ( * ) THEN - + 25 END, 7 - + CASE - 68 WHEN - COUNT ( * ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END + + 75 * 98 ) * + ( CAST ( NULL AS INTEGER ) ) / - - ( + + 84 ) + - 52 / - 69 * + 78 + + 23 * - 68
----
836
NULL

query I rowsort
SELECT ALL - - ( 35 )
----
35

query I rowsort
SELECT + + NULLIF ( - NULLIF ( 37, - - 55 ), + CASE + - 93 WHEN + + 19 THEN - 15 END ) AS col1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7232
SELECT DISTINCT + 93 DIV + 98 * - + 11 + - 29
----
-29

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT + 93 / + 98 * - + 11 + - 29
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7233
SELECT + COUNT( DISTINCT 77 ) DIV 47 AS col0, + 55 * 68
----
0
3740

skipif mysql # not compatible
query II rowsort label-7233
SELECT + COUNT ( DISTINCT 77 ) / 47 AS col0, + 55 * 68
----
0
3740

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT - 29 * ( - - 97 ) * - COUNT( * )
----
2813

skipif mysql # not compatible
query I rowsort label-7234
SELECT - 29 * ( - - 97 ) * - COUNT ( * )
----
2813

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT 24 + - + 43 + COUNT( * ) + + - 24 + - 97 AS col1
----
-139

skipif mysql # not compatible
query I rowsort label-7235
SELECT 24 + - + 43 + COUNT ( * ) + + - 24 + - 97 AS col1
----
-139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7236
SELECT COUNT( + + CAST( NULL AS SIGNED ) ) * + 85 * + 1 * - 58 + - 47 / - CAST( NULL AS SIGNED ) AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7236
SELECT COUNT ( + + CAST ( NULL AS INTEGER ) ) * + 85 * + 1 * - 58 + - 47 / - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7237
SELECT ALL + + SUM( ALL + 73 ) + + NULLIF ( - ( 65 ), - 7 ) + COUNT( * ) DIV 63 * 16
----
8

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL + + SUM ( ALL + 73 ) + + NULLIF ( - ( 65 ), - 7 ) + COUNT ( * ) / 63 * 16
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT DISTINCT - MIN( 40 ) col0
----
-40

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT - MIN ( 40 ) col0
----
-40

query I rowsort
SELECT 62 + 26 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT ALL - 95 - + + COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL - 95 - + + COUNT ( * )
----
-96

query I rowsort
SELECT ALL + ( + 76 ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT + COUNT( * ) + - + CASE + 4 WHEN + 86 * - ( COUNT( - 75 ) ) / 32 + 89 THEN + 12 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7242
SELECT + COUNT ( * ) + - + CASE + 4 WHEN + 86 * - ( COUNT ( - 75 ) ) / 32 + 89 THEN + 12 END AS col2
----
NULL

query I rowsort
SELECT ALL 40 * - - 21 AS col0
----
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7244
SELECT DISTINCT ( + + 37 ) * + AVG ( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT ( + + 37 ) * + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT ALL 11 - - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL 11 - - COUNT ( * )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT + CASE 25 WHEN - 87 THEN NULL WHEN + - 68 THEN NULL ELSE + 33 + - 54 * CAST( + + 73 AS SIGNED ) + + 65 END + - 1 AS col1
----
-3845

skipif mysql # not compatible
query I rowsort label-7246
SELECT + CASE 25 WHEN - 87 THEN NULL WHEN + - 68 THEN NULL ELSE + 33 + - 54 * CAST ( + + 73 AS INTEGER ) + + 65 END + - 1 AS col1
----
-3845

query I rowsort
SELECT ALL 4 * + + 51 col0
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7248
SELECT 56 AS col1, CAST( 42 AS SIGNED )
----
56
42

skipif mysql # not compatible
query II rowsort label-7248
SELECT 56 AS col1, CAST ( 42 AS INTEGER )
----
56
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT + 69 + + - COUNT( * ) * + - 25 * - 45 AS col1
----
-1056

skipif mysql # not compatible
query I rowsort label-7249
SELECT + 69 + + - COUNT ( * ) * + - 25 * - 45 AS col1
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT - MIN( + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-7250
SELECT - MIN ( + 30 )
----
-30

query II rowsort
SELECT 80 AS col1, 75 AS col2
----
80
75

query I rowsort
SELECT + 15 + 23 AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7253
SELECT ALL - 23 * CAST( - 45 AS SIGNED )
----
1035

skipif mysql # not compatible
query I rowsort label-7253
SELECT ALL - 23 * CAST ( - 45 AS INTEGER )
----
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT + 32 * - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-7254
SELECT + 32 * - COUNT ( * )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-7255
SELECT + COALESCE ( - 17, ( + 67 ) ) + 32 + 34 + 53 * 62 DIV + + 51 col1
----
113

skipif mysql # not compatible
query I rowsort label-7255
SELECT + COALESCE ( - 17, ( + 67 ) ) + 32 + 34 + 53 * 62 / + + 51 col1
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-7256
SELECT - 19, 82 + - MIN( - 0 ) AS col2
----
-19
82

skipif mysql # not compatible
query II rowsort label-7256
SELECT - 19, 82 + - MIN ( - 0 ) AS col2
----
-19
82

query I rowsort
SELECT ALL 91 + - - 43
----
134

query I rowsort
SELECT + - 61 + + ( 75 )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7259
SELECT - - ( - 83 ) - - - SUM( + 81 ) + + - 63 DIV - 23 + + 86 + + 80 * - 36 * + - 16 AS col1
----
46004

skipif mysql # not compatible
query I rowsort label-7259
SELECT - - ( - 83 ) - - - SUM ( + 81 ) + + - 63 / - 23 + + 86 + + 80 * - 36 * + - 16 AS col1
----
46004

query I rowsort
SELECT + + 86 + + + 80 AS col1
----
166

query I rowsort
SELECT - 47 + 46 AS col2
----
-1

query II rowsort
SELECT 96 AS col1, 82 + + 19 AS col1
----
96
101

query I rowsort
SELECT ALL 21 * CASE 26 WHEN + + 0 + 53 THEN NULL ELSE - 14 END col2
----
-294

query I rowsort
SELECT - 74 + + 50
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT ALL - 53 * 35 + - + 30 + - + 98 - 2 * NULLIF ( - 49, - + COUNT( * ) ) * - 39
----
-5805

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL - 53 * 35 + - + 30 + - + 98 - 2 * NULLIF ( - 49, - + COUNT ( * ) ) * - 39
----
-5805

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT + MIN( - 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-7266
SELECT + MIN ( - 5 ) AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7267
SELECT + + 62, - COUNT( ALL + - 6 ) DIV - + 68 * + - 40 AS col0
----
62
0

skipif mysql # not compatible
query II rowsort label-7267
SELECT + + 62, - COUNT ( ALL + - 6 ) / - + 68 * + - 40 AS col0
----
62
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT - ( + CASE + - 79 WHEN - 10 THEN NULL WHEN - - 55 + + 33 * 0 THEN - - 78 * - 76 + + - 9 ELSE - + 40 END ) * + 20 * 32 + + MAX( DISTINCT - 69 ) AS col0
----
25531

skipif mysql # not compatible
query I rowsort label-7268
SELECT - ( + CASE + - 79 WHEN - 10 THEN NULL WHEN - - 55 + + 33 * 0 THEN - - 78 * - 76 + + - 9 ELSE - + 40 END ) * + 20 * 32 + + MAX ( DISTINCT - 69 ) AS col0
----
25531

query I rowsort
SELECT + - 60 * + 46
----
-2760

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT DISTINCT + SUM( - + 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT + SUM ( - + 80 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-7271
SELECT 76 AS col2, - MAX( DISTINCT - 82 ) AS col2
----
76
82

skipif mysql # not compatible
query II rowsort label-7271
SELECT 76 AS col2, - MAX ( DISTINCT - 82 ) AS col2
----
76
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT - - COUNT( * ) * + COUNT( * ) + + 34 + - COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-7272
SELECT - - COUNT ( * ) * + COUNT ( * ) + + 34 + - COUNT ( * ) AS col0
----
34

query II rowsort
SELECT DISTINCT + 57 AS col2, + 65 + - - 77 + + + 95 * + 98 col1
----
57
9452

query I rowsort
SELECT - 63 * - - 94
----
-5922

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7275
SELECT DISTINCT - + COUNT( * ) DIV - 8 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT - + COUNT ( * ) / - 8 AS col2
----
0

query I rowsort
SELECT DISTINCT - - 95 * 39
----
3705

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT COALESCE ( - 36, COUNT( * ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-7277
SELECT COALESCE ( - 36, COUNT ( * ) ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-7278
SELECT ALL + ( + 97 ) col1, COUNT( * ) AS col2
----
97
1

skipif mysql # not compatible
query II rowsort label-7278
SELECT ALL + ( + 97 ) col1, COUNT ( * ) AS col2
----
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7279
SELECT COALESCE ( - - 36, + + CAST( NULL AS SIGNED ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-7279
SELECT COALESCE ( - - 36, + + CAST ( NULL AS INTEGER ) ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT + 81 * - + COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-7280
SELECT + 81 * - + COUNT ( * ) AS col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7281
SELECT COUNT( * ) * + + COUNT( ALL - + 64 ) * + COUNT( * ) - - 73 * - COUNT( * ) * - 22 col0, 53 DIV + - ( 6 ) AS col1
----
1607
-8

skipif mysql # not compatible
query II rowsort label-7281
SELECT COUNT ( * ) * + + COUNT ( ALL - + 64 ) * + COUNT ( * ) - - 73 * - COUNT ( * ) * - 22 col0, 53 / + - ( 6 ) AS col1
----
1607
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7282
SELECT + 99 DIV + - 12 col0
----
-8

skipif mysql # not compatible
query I rowsort label-7282
SELECT + 99 / + - 12 col0
----
-8

query I rowsort
SELECT COALESCE ( + 7, + - 20 )
----
7

query I rowsort
SELECT - 45 * + - ( 38 )
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT DISTINCT ( - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7285
SELECT DISTINCT ( - + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT - SUM( 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-7286
SELECT - SUM ( 24 ) AS col1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7287
SELECT + CAST( 98 AS SIGNED ) + 25 + - - 46 * ( - 2 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7287
SELECT + CAST ( 98 AS INTEGER ) + 25 + - - 46 * ( - 2 ) AS col2
----
31

query I rowsort
SELECT + COALESCE ( + + 64, 12 * + 39 ) + 27 AS col0
----
91

query II rowsort
SELECT ALL 97 * - + 28 AS col2, COALESCE ( - - COALESCE ( + 57, 98 ), - 79 * 22 ) + + + 57
----
-2716
114

query I rowsort
SELECT + 9 * + + 88 AS col0
----
792

query I rowsort
SELECT - 21 * + 55 * + 32
----
-36960

query I rowsort
SELECT + 3 + + - 55 + 23 AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7293
SELECT DISTINCT CAST( + 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-7293
SELECT DISTINCT CAST ( + 12 AS INTEGER )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT ALL 48 + - COUNT( * ) + - 25 - - 18 * - - 99 * COUNT( * ) * + 49 * + 27
----
2357608

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL 48 + - COUNT ( * ) + - 25 - - 18 * - - 99 * COUNT ( * ) * + 49 * + 27
----
2357608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7295
SELECT DISTINCT - - CAST( + COUNT( * ) AS SIGNED ) * + + COUNT( * ) + + 57
----
58

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT - - CAST ( + COUNT ( * ) AS INTEGER ) * + + COUNT ( * ) + + 57
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT DISTINCT + ( + COUNT( * ) ) + - 7
----
-6

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT + ( + COUNT ( * ) ) + - 7
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7297
SELECT ALL 75 DIV + - 87 * - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL 75 / + - 87 * - 98 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7298
SELECT + - COUNT( * ) DIV + 44 * - 74
----
0

skipif mysql # not compatible
query I rowsort label-7298
SELECT + - COUNT ( * ) / + 44 * - 74
----
0

query I rowsort
SELECT ALL + 44 + 87
----
131

query II rowsort
SELECT - ( - 85 ) col0, 30
----
85
30

query I rowsort
SELECT + - 5 * + ( + + 3 ) col2
----
-15

query I rowsort
SELECT - - ( 53 ) * - 82 - + - 21 + + 57 AS col1
----
-4268

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT ALL + - 5 - COUNT( + - 50 )
----
-6

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL + - 5 - COUNT ( + - 50 )
----
-6

query I rowsort
SELECT + 61 - - 41 col0
----
102

query I rowsort
SELECT ALL - 67 - + 27 + - 31 + 22 * 70 AS col0
----
1415

query II rowsort
SELECT + 27 + ( - 95 ) + + ( + 9 ), 27 AS col0
----
-59
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7307
SELECT 61 * COUNT( * ) * ( + 39 ) * - - 31 * - + CASE - 84 WHEN 43 THEN - 3 + + 17 WHEN - 1 / 34 * + + NULLIF ( - ( - 16 ), - COUNT( * ) * ( - - COUNT( DISTINCT - 13 ) ) ) + + - COUNT( * ) * + - 82 * CAST( - 49 AS SIGNED ) THEN + COALESCE ( + 98, 54, - 68 ) * + + ( + COUNT( * ) ) + + 26 WHEN + 41 * 65 THEN + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7307
SELECT 61 * COUNT ( * ) * ( + 39 ) * - - 31 * - + CASE - 84 WHEN 43 THEN - 3 + + 17 WHEN - 1 / 34 * + + NULLIF ( - ( - 16 ), - COUNT ( * ) * ( - - COUNT ( DISTINCT - 13 ) ) ) + + - COUNT ( * ) * + - 82 * CAST ( - 49 AS INTEGER ) THEN + COALESCE ( + 98, 54, - 68 ) * + + ( + COUNT ( * ) ) + + 26 WHEN + 41 * 65 THEN + 97 END
----
NULL

query II rowsort
SELECT ALL - 9 col1, + 44 + + 31 AS col2
----
-9
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7309
SELECT COUNT( * ) * CAST( + ( 53 ) AS SIGNED ) + + MAX( - 10 )
----
43

skipif mysql # not compatible
query I rowsort label-7309
SELECT COUNT ( * ) * CAST ( + ( 53 ) AS INTEGER ) + + MAX ( - 10 )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7310
SELECT 80 - - COUNT( * ) DIV - 89 AS col1, - COUNT( * ) + + 72 + + + 23 AS col0, - 54 * + 47 + + 81
----
80
94
-2457

skipif mysql # not compatible
query III rowsort label-7310
SELECT 80 - - COUNT ( * ) / - 89 AS col1, - COUNT ( * ) + + 72 + + + 23 AS col0, - 54 * + 47 + + 81
----
80
94
-2457

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT DISTINCT - MAX( - 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7311
SELECT DISTINCT - MAX ( - 68 ) AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7312
SELECT + COUNT( * ) * - COALESCE ( - 96, - + 88 ) * + CAST( NULL AS SIGNED ) + + 27 - - 11 * SUM( 70 ) + COUNT( * ) * - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT + COUNT ( * ) * - COALESCE ( - 96, - + 88 ) * + CAST ( NULL AS INTEGER ) + + 27 - - 11 * SUM ( 70 ) + COUNT ( * ) * - 54 AS col1
----
NULL

query I rowsort
SELECT ALL - ( - 68 ) AS col2
----
68

query I rowsort
SELECT DISTINCT - 40 * - 98
----
3920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7315
SELECT ALL COUNT( * ) + - - 92 + 62 - - 45 + COUNT( * ) DIV + 2 * + NULLIF ( + 56, AVG ( ALL - - 10 ) ) * - NULLIF ( - 51, 5 )
----
200

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL COUNT ( * ) + - - 92 + 62 - - 45 + COUNT ( * ) / + 2 * + NULLIF ( + 56, AVG ( ALL - - 10 ) ) * - NULLIF ( - 51, 5 )
----
200

query I rowsort
SELECT DISTINCT - COALESCE ( - 20, - - 8 ) AS col1
----
20

query I rowsort
SELECT ALL + 68 + - 16
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-7318
SELECT 79 + + NULLIF ( - MAX( ALL + - 4 ), - + 81 ), 8 - COUNT( DISTINCT 29 ) - + 32 AS col2
----
83
-25

skipif mysql # not compatible
query II rowsort label-7318
SELECT 79 + + NULLIF ( - MAX ( ALL + - 4 ), - + 81 ), 8 - COUNT ( DISTINCT 29 ) - + 32 AS col2
----
83
-25

query II rowsort
SELECT 32 AS col0, + 15 col1
----
32
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7320
SELECT 13, 11 * - 12 + 41 * - - COUNT( * ) + + 5 - + 78 AS col1
----
13
-164

skipif mysql # not compatible
query II rowsort label-7320
SELECT 13, 11 * - 12 + 41 * - - COUNT ( * ) + + 5 - + 78 AS col1
----
13
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT COUNT( * ) + - 49 col0
----
-48

skipif mysql # not compatible
query I rowsort label-7321
SELECT COUNT ( * ) + - 49 col0
----
-48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7322
SELECT DISTINCT + 6 + - CAST( - 7 AS SIGNED ) DIV - + 38 + NULLIF ( - - 18, + 7 ) - - 32 * 61 - - 33 DIV - 59 AS col0
----
1976

skipif mysql # not compatible
query I rowsort label-7322
SELECT DISTINCT + 6 + - CAST ( - 7 AS INTEGER ) / - + 38 + NULLIF ( - - 18, + 7 ) - - 32 * 61 - - 33 / - 59 AS col0
----
1976

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT DISTINCT - - COUNT( * ) + 58 * + 97 + - CASE + 83 WHEN COUNT( * ) THEN NULL WHEN + MIN( + 75 ) + MIN( ALL - 49 ) + - + 88 + - COUNT( ( - ( - 98 ) ) ) / - MAX( 51 ) THEN - + 95 * 17 + - + 47 + - SUM( 44 ) WHEN - ( 63 ) * + + 76 + - 7 + 25 * - + 62 * - 36 * - 38 + 94 THEN 35 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT - - COUNT ( * ) + 58 * + 97 + - CASE + 83 WHEN COUNT ( * ) THEN NULL WHEN + MIN ( + 75 ) + MIN ( ALL - 49 ) + - + 88 + - COUNT ( ( - ( - 98 ) ) ) / - MAX ( 51 ) THEN - + 95 * 17 + - + 47 + - SUM ( 44 ) WHEN - ( 63 ) * + + 76 + - 7 + 25 * - + 62 * - 36 * - 38 + 94 THEN 35 END AS col0
----
NULL

query I rowsort
SELECT 30 + + - 22 + + - 24 * + 31 AS col0
----
-736

query I rowsort
SELECT + 0 * + + 41 + + 52 AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-7326
SELECT 89 * + - 86 - + 91 DIV + - 61 AS col0
----
-7653

skipif mysql # not compatible
query I rowsort label-7326
SELECT 89 * + - 86 - + 91 / + - 61 AS col0
----
-7653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7327
SELECT - NULLIF ( - 51, + 97 * - CAST( 27 AS SIGNED ) ) + + ( MAX( DISTINCT - 34 ) ) + 42 + - 46 * - - ( + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT - NULLIF ( - 51, + 97 * - CAST ( 27 AS INTEGER ) ) + + ( MAX ( DISTINCT - 34 ) ) + 42 + - 46 * - - ( + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT COUNT( * ) - - ( + 63 )
----
64

skipif mysql # not compatible
query I rowsort label-7328
SELECT COUNT ( * ) - - ( + 63 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7329
SELECT DISTINCT + COUNT( * ) - ( + ( - CAST( + 27 AS SIGNED ) ) )
----
28

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT + COUNT ( * ) - ( + ( - CAST ( + 27 AS INTEGER ) ) )
----
28

query II rowsort
SELECT ALL 61, + 36 AS col1
----
61
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7331
SELECT MAX( DISTINCT 64 ) * - CAST( 78 AS SIGNED ) AS col2
----
-4992

skipif mysql # not compatible
query I rowsort label-7331
SELECT MAX ( DISTINCT 64 ) * - CAST ( 78 AS INTEGER ) AS col2
----
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT ALL + - 86 * - COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL + - 86 * - COUNT ( * ) AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7333
SELECT 99 + + 8 + COUNT( * ) * + COUNT( * ) + 24 DIV 11
----
110

skipif mysql # not compatible
query I rowsort label-7333
SELECT 99 + + 8 + COUNT ( * ) * + COUNT ( * ) + 24 / 11
----
110

query I rowsort
SELECT + 58 + - 59
----
-1

query I rowsort
SELECT + 72 + - - 8 AS col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7336
SELECT - 81 DIV 51 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7336
SELECT - 81 / 51 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7337
SELECT + NULLIF ( - + ( + - 90 ), + - ( ( - 58 ) ) ) DIV 50 + + + 97 * + 28 * NULLIF ( + + COUNT( ALL CAST( + 88 AS SIGNED ) ), - CASE + CAST( NULL AS SIGNED ) WHEN - 43 * 48 THEN + 35 * + 12 + + 65 + + COUNT( * ) ELSE AVG ( ALL - - 14 ) * - - ( + 21 ) + - 77 END * - 78 - - 55 + + + 98 ) * 22 + - 79 * - 61 AS col2
----
64572

skipif mysql # not compatible
query I rowsort label-7337
SELECT + NULLIF ( - + ( + - 90 ), + - ( ( - 58 ) ) ) / 50 + + + 97 * + 28 * NULLIF ( + + COUNT ( ALL CAST ( + 88 AS INTEGER ) ), - CASE + CAST ( NULL AS INTEGER ) WHEN - 43 * 48 THEN + 35 * + 12 + + 65 + + COUNT ( * ) ELSE AVG ( ALL - - 14 ) * - - ( + 21 ) + - 77 END * - 78 - - 55 + + + 98 ) * 22 + - 79 * - 61 AS col2
----
64572

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT ALL 81 * ( - 94 ) * 39 * + 3 * COUNT( * ) * 57
----
-50777766

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL 81 * ( - 94 ) * 39 * + 3 * COUNT ( * ) * 57
----
-50777766

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7339
SELECT DISTINCT ( MIN( 98 ) ) DIV + 19 + + 46 col2
----
51

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT ( MIN ( 98 ) ) / + 19 + + 46 col2
----
51

query I rowsort
SELECT ALL 52 + ( + COALESCE ( + ( - ( - - 20 ) ), 3 + 8 ) ) * - 59 + - 42
----
1190

query II rowsort
SELECT 80, + 92 * + - 17 col0
----
80
-1564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7342
SELECT ALL CAST( NULL AS SIGNED ) + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL CAST ( NULL AS INTEGER ) + 45 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 87 + - 3
----
84

query II rowsort
SELECT ALL - 5, 64 + + - 81 AS col0
----
-5
-17

query I rowsort
SELECT ALL - 36 + - + 75
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7346
SELECT DISTINCT - COUNT( * ) AS col1, + 92 * - - 39 + - - NULLIF ( + 87, 13 * + 12 ) DIV - COUNT( * ) AS col2
----
-1
3501

skipif mysql # not compatible
query II rowsort label-7346
SELECT DISTINCT - COUNT ( * ) AS col1, + 92 * - - 39 + - - NULLIF ( + 87, 13 * + 12 ) / - COUNT ( * ) AS col2
----
-1
3501

query II rowsort
SELECT 4 col1, + 60
----
4
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT + SUM( 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7348
SELECT + SUM ( 8 ) AS col1
----
8

query I rowsort
SELECT ALL 74 + 51 + - + 75 + - 8 * - 31
----
298

onlyif mysql # aggregate syntax: 
query II rowsort label-7350
SELECT + 50, - COUNT( * ) col0
----
50
-1

skipif mysql # not compatible
query II rowsort label-7350
SELECT + 50, - COUNT ( * ) col0
----
50
-1

query II rowsort
SELECT 91, - 87 + + ( 17 ) AS col2
----
91
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-7352
SELECT ( - 61 ) DIV - - 73 + - 46 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-7352
SELECT ( - 61 ) / - - 73 + - 46 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT ALL 38 + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL 38 + COUNT ( * )
----
39

query II rowsort
SELECT 4 AS col1, 44 AS col1
----
4
44

query I rowsort
SELECT DISTINCT 73 + ( + 84 ) AS col1
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT 10 + - COALESCE ( - - 84, + COUNT( * ) ) * + 5
----
-410

skipif mysql # not compatible
query I rowsort label-7356
SELECT 10 + - COALESCE ( - - 84, + COUNT ( * ) ) * + 5
----
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT ( - 48 ) - + 86 + - COUNT( * )
----
-135

skipif mysql # not compatible
query I rowsort label-7357
SELECT ( - 48 ) - + 86 + - COUNT ( * )
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT ALL + + COUNT( * ) * - 29 - COUNT( * ) * 10 + - - ( 84 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL + + COUNT ( * ) * - 29 - COUNT ( * ) * 10 + - - ( 84 ) AS col1
----
45

query I rowsort
SELECT - 57 * 30 AS col1
----
-1710

onlyif mysql # aggregate syntax: 
query II rowsort label-7360
SELECT - 4 AS col0, 99 * NULLIF ( - 30, COUNT( * ) ) AS col1
----
-4
-2970

skipif mysql # not compatible
query II rowsort label-7360
SELECT - 4 AS col0, 99 * NULLIF ( - 30, COUNT ( * ) ) AS col1
----
-4
-2970

query II rowsort
SELECT ( - - 83 ) AS col0, 69 AS col2
----
83
69

query I rowsort
SELECT 58 * + 74
----
4292

query II rowsort
SELECT - - 45 AS col0, - 37 AS col2
----
45
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT DISTINCT + 61 - - MIN( + 3 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7364
SELECT DISTINCT + 61 - - MIN ( + 3 ) AS col0
----
64

query II rowsort
SELECT DISTINCT 72, - 31 AS col2
----
72
-31

query I rowsort
SELECT ALL - ( - - 31 ) AS col0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-7367
SELECT - - 23 DIV - + 50 * - 3 * 45 * + 89 + + 51 + - 81 + + 74 * + 18 * + 77 * + - 90 * + 82 AS col0
----
-756922350

skipif mysql # not compatible
query I rowsort label-7367
SELECT - - 23 / - + 50 * - 3 * 45 * + 89 + + 51 + - 81 + + 74 * + 18 * + 77 * + - 90 * + 82 AS col0
----
-756922350

query I rowsort
SELECT ALL + - 38 * + + 73
----
-2774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7369
SELECT COALESCE ( 11, + 60 + - 60 + MAX( - 92 ) DIV 72, + COUNT( * ) * - 44 * - - MIN( 64 ) - - CAST( NULL AS SIGNED ) + - - 59 )
----
11

skipif mysql # not compatible
query I rowsort label-7369
SELECT COALESCE ( 11, + 60 + - 60 + MAX ( - 92 ) / 72, + COUNT ( * ) * - 44 * - - MIN ( 64 ) - - CAST ( NULL AS INTEGER ) + - - 59 )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7370
SELECT DISTINCT + - 21 - CAST( - 8 AS SIGNED ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT + - 21 - CAST ( - 8 AS INTEGER ) AS col1
----
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-7371
SELECT 7 AS col1, ( - - COALESCE ( 66, 2 DIV + 62, 30 ) ) * + 21 + ( + ( + 82 ) ) AS col1
----
7
1468

skipif mysql # not compatible
query II rowsort label-7371
SELECT 7 AS col1, ( - - COALESCE ( 66, 2 / + 62, 30 ) ) * + 21 + ( + ( + 82 ) ) AS col1
----
7
1468

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT - MIN( + 82 ) - - 30 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-7372
SELECT - MIN ( + 82 ) - - 30 AS col0
----
-52

query I rowsort
SELECT ALL + 76 * + - 44
----
-3344

query I rowsort
SELECT + + NULLIF ( 98, + 70 ) AS col1
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-7375
SELECT ALL + + 62 AS col0, + 21 DIV 2 * 81 * - + 10
----
62
-8100

skipif mysql # not compatible
query II rowsort label-7375
SELECT ALL + + 62 AS col0, + 21 / 2 * 81 * - + 10
----
62
-8100

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT - COUNT( * ) * ( + 69 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-7376
SELECT - COUNT ( * ) * ( + 69 ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT + SUM( DISTINCT - - 49 )
----
49

skipif mysql # not compatible
query I rowsort label-7377
SELECT + SUM ( DISTINCT - - 49 )
----
49

query I rowsort
SELECT DISTINCT + 18 col2
----
18

query I rowsort
SELECT + COALESCE ( + + 55, 64 ) AS col1
----
55

query I rowsort
SELECT ALL 37 * - - 15 + - ( + - 46 )
----
601

onlyif mysql # aggregate syntax: 
query II rowsort label-7381
SELECT + ( - 26 ) + + - 70 * + + 4 - - 34 AS col2, + COUNT( * ) col2
----
-272
1

skipif mysql # not compatible
query II rowsort label-7381
SELECT + ( - 26 ) + + - 70 * + + 4 - - 34 AS col2, + COUNT ( * ) col2
----
-272
1

query I rowsort
SELECT + 86 * + 51
----
4386

query I rowsort
SELECT + 33 + + + 25
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL 74 * - 70 * + + 32 * - SUM( - 4 ) + + 16
----
-663024

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL 74 * - 70 * + + 32 * - SUM ( - 4 ) + + 16
----
-663024

query I rowsort
SELECT + 50 * ( + 47 ) AS col2
----
2350

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT ALL - 65 * - 21 - + COUNT( * )
----
1364

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL - 65 * - 21 - + COUNT ( * )
----
1364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7387
SELECT + 26 + + + ( 84 ) + - + CAST( NULL AS SIGNED ) - ( - 18 ) * - + ( 32 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7387
SELECT + 26 + + + ( 84 ) + - + CAST ( NULL AS INTEGER ) - ( - 18 ) * - + ( 32 ) AS col1
----
NULL

query I rowsort
SELECT ALL 32 * 38 col1
----
1216

query I rowsort
SELECT DISTINCT + 43 col0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7390
SELECT + 2 + + 26 AS col2, + COALESCE ( - 51, + 1 * - 23 ) * + 53 * - 16 + - - 29 - - COUNT( * )
----
28
43278

skipif mysql # not compatible
query II rowsort label-7390
SELECT + 2 + + 26 AS col2, + COALESCE ( - 51, + 1 * - 23 ) * + 53 * - 16 + - - 29 - - COUNT ( * )
----
28
43278

onlyif mysql # aggregate syntax: 
query II rowsort label-7391
SELECT - COUNT( * ) * - - 31 + - 25 * - - 42 * - COUNT( * ) AS col0, - 40 * - NULLIF ( 48, ( - + 33 ) ) - + - CASE 76 WHEN + - 15 + - 54 THEN - - 38 WHEN + - 77 + + 77 THEN - ( - 19 ) / 2 + - 22 ELSE NULL END * - + 88 + - 67
----
1019
NULL

skipif mysql # not compatible
query II rowsort label-7391
SELECT - COUNT ( * ) * - - 31 + - 25 * - - 42 * - COUNT ( * ) AS col0, - 40 * - NULLIF ( 48, ( - + 33 ) ) - + - CASE 76 WHEN + - 15 + - 54 THEN - - 38 WHEN + - 77 + + 77 THEN - ( - 19 ) / 2 + - 22 ELSE NULL END * - + 88 + - 67
----
1019
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT + COUNT( - - 80 ) * 61
----
61

skipif mysql # not compatible
query I rowsort label-7392
SELECT + COUNT ( - - 80 ) * 61
----
61

query I rowsort
SELECT - - 87 * + ( + COALESCE ( - 22, - + ( + 11 ) ) )
----
-1914

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT - + ( + 77 ) * - - 25 + - ( - NULLIF ( - - 8, + + ( + 91 ) - - 99 * - - COUNT( * ) * 93 ) ) + + 23 AS col0
----
-1894

skipif mysql # not compatible
query I rowsort label-7394
SELECT - + ( + 77 ) * - - 25 + - ( - NULLIF ( - - 8, + + ( + 91 ) - - 99 * - - COUNT ( * ) * 93 ) ) + + 23 AS col0
----
-1894

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT CASE - COUNT( * ) WHEN - 96 THEN + 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7395
SELECT CASE - COUNT ( * ) WHEN - 96 THEN + 96 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7396
SELECT + + 1 + - CASE + - 5 WHEN - - MIN( ALL + CAST( NULL AS SIGNED ) ) THEN - AVG ( ALL + + 18 ) END * + + 17 - + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT + + 1 + - CASE + - 5 WHEN - - MIN ( ALL + CAST ( NULL AS INTEGER ) ) THEN - AVG ( ALL + + 18 ) END * + + 17 - + 36
----
NULL

query I rowsort
SELECT ALL + 32 * - 43
----
-1376

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT - ( - COUNT( + - 3 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7398
SELECT - ( - COUNT ( + - 3 ) ) AS col0
----
1

query I rowsort
SELECT - 13 + + - 64 col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT ALL CASE + 63 WHEN 19 * - 92 + - 61 THEN + + COUNT( ALL + 3 ) * + + 51 + 81 - + AVG ( - - 24 ) + 0 * - 93 * - 36 * 30 END * COUNT( ALL + - 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL CASE + 63 WHEN 19 * - 92 + - 61 THEN + + COUNT ( ALL + 3 ) * + + 51 + 81 - + AVG ( - - 24 ) + 0 * - 93 * - 36 * 30 END * COUNT ( ALL + - 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT DISTINCT + 38 * - - COUNT( ALL + 61 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT + 38 * - - COUNT ( ALL + 61 ) AS col0
----
38

query I rowsort
SELECT + + ( ( + ( + 34 ) ) ) + - 51 AS col1
----
-17

query I rowsort
SELECT - - 94 - - 46 + - 6 + + 50
----
184

query I rowsort
SELECT - - 25 + - 3
----
22

query I rowsort
SELECT DISTINCT + 86 + + 2 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT ALL + 36 + + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL + 36 + + COUNT ( * )
----
37

query I rowsort
SELECT - COALESCE ( + 68, + 45 ) + - 57
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT ALL NULLIF ( - 66, - COUNT( * ) - - + 31 - - 19 )
----
-66

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL NULLIF ( - 66, - COUNT ( * ) - - + 31 - - 19 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7409
SELECT CAST( NULL AS SIGNED ), + 20 * - 4 * - COUNT( * ) - - 53 + - - NULLIF ( + + COUNT( * ), - COUNT( * ) ) * CASE 31 WHEN - COUNT( * ) THEN NULL WHEN + + 9 THEN 25 * - + 81 / + 19 END col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7409
SELECT CAST ( NULL AS INTEGER ), + 20 * - 4 * - COUNT ( * ) - - 53 + - - NULLIF ( + + COUNT ( * ), - COUNT ( * ) ) * CASE 31 WHEN - COUNT ( * ) THEN NULL WHEN + + 9 THEN 25 * - + 81 / + 19 END col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7410
SELECT + 78 AS col1, + 47 + - COUNT( * ) * + CAST( NULL AS SIGNED )
----
78
NULL

skipif mysql # not compatible
query II rowsort label-7410
SELECT + 78 AS col1, + 47 + - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
78
NULL

query I rowsort
SELECT - NULLIF ( + 87, 51 ) * - + 42
----
3654

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7412
SELECT DISTINCT 33 DIV - ( + 27 ) + + - MIN( + 45 ) col1
----
-46

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT 33 / - ( + 27 ) + + - MIN ( + 45 ) col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7413
SELECT ALL 95 / COUNT( * ) - + COUNT( * ) - + + 92 * + CASE - 46 WHEN + - NULLIF ( + CASE + + NULLIF ( - - 56, 80 * + 32 / + COUNT( * ) - 80 + + 93 ) WHEN + - ( + - 15 ) + - COALESCE ( + 21, + COALESCE ( - 40, - COALESCE ( - ( + - 17 ), - 41 ) * 71 ) ) + - MIN( 85 ) + - - COUNT( * ) + - COALESCE ( + 42, 63 * + COUNT( * ) + + 71 / SUM( ALL 41 / + 51 ) + - COUNT( DISTINCT 92 - 61 ) ) * 60 THEN 55 * + 38 + + CAST( NULL AS SIGNED ) WHEN AVG ( DISTINCT - 29 ) THEN 46 - + 76 END, + ( - 73 ) * + 49 - 9 ) THEN 13 WHEN 78 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL 95 / COUNT ( * ) - + COUNT ( * ) - + + 92 * + CASE - 46 WHEN + - NULLIF ( + CASE + + NULLIF ( - - 56, 80 * + 32 / + COUNT ( * ) - 80 + + 93 ) WHEN + - ( + - 15 ) + - COALESCE ( + 21, + COALESCE ( - 40, - COALESCE ( - ( + - 17 ), - 41 ) * 71 ) ) + - MIN ( 85 ) + - - COUNT ( * ) + - COALESCE ( + 42, 63 * + COUNT ( * ) + + 71 / SUM ( ALL 41 / + 51 ) + - COUNT ( DISTINCT 92 - 61 ) ) * 60 THEN 55 * + 38 + + CAST ( NULL AS INTEGER ) WHEN AVG ( DISTINCT - 29 ) THEN 46 - + 76 END, + ( - 73 ) * + 49 - 9 ) THEN 13 WHEN 78 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + 27 * + 75 AS col1
----
2025

query I rowsort
SELECT ( - ( + - 46 ) )
----
46

query I rowsort
SELECT ( - + 30 )
----
-30

query I rowsort
SELECT DISTINCT + ( 31 ) col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7418
SELECT ALL + 59 AS col1, + CAST( 39 AS SIGNED )
----
59
39

skipif mysql # not compatible
query II rowsort label-7418
SELECT ALL + 59 AS col1, + CAST ( 39 AS INTEGER )
----
59
39

query I rowsort
SELECT + 96 * 41 AS col2
----
3936

query II rowsort
SELECT 82 col2, - 73 * 78 + 7 col1
----
82
-5687

onlyif mysql # DIV for integer division: 
query I rowsort label-7421
SELECT ALL - - 80 DIV - 59 + - - 42 * 61 AS col0
----
2561

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL - - 80 / - 59 + - - 42 * 61 AS col0
----
2561

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT 28 / + CASE - ( - 91 ) WHEN + CASE COUNT( * ) WHEN MAX( ALL 82 ) THEN - 71 END THEN - 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT 28 / + CASE - ( - 91 ) WHEN + CASE COUNT ( * ) WHEN MAX ( ALL 82 ) THEN - 71 END THEN - 11 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 14 * - 14 + + - 81
----
-277

query II rowsort
SELECT ALL 51, + 11 AS col1
----
51
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7425
SELECT - 88 * - 49 / + NULLIF ( - 53, - 81 * - + COUNT( * ) * - 53 ) - + ( - - CAST( NULL AS SIGNED ) ) + - COUNT( * ) * + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT - 88 * - 49 / + NULLIF ( - 53, - 81 * - + COUNT ( * ) * - 53 ) - + ( - - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) * + 43
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7426
SELECT ALL 72 * NULLIF ( + + 55, - + CAST( NULL AS SIGNED ) + - - 23 ) AS col1
----
3960

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL 72 * NULLIF ( + + 55, - + CAST ( NULL AS INTEGER ) + - - 23 ) AS col1
----
3960

query I rowsort
SELECT DISTINCT 76 * 29
----
2204

query II rowsort
SELECT DISTINCT 34 col1, + 5 + 25
----
34
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7429
SELECT DISTINCT 18 AS col1, 22 + COUNT( * ) AS col2
----
18
23

skipif mysql # not compatible
query II rowsort label-7429
SELECT DISTINCT 18 AS col1, 22 + COUNT ( * ) AS col2
----
18
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7430
SELECT COALESCE ( 26, - COUNT( * ) DIV - 61 ) + 87
----
113

skipif mysql # not compatible
query I rowsort label-7430
SELECT COALESCE ( 26, - COUNT ( * ) / - 61 ) + 87
----
113

query I rowsort
SELECT - + ( - + 35 ) AS col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7432
SELECT ALL 61 + - + 99 + 71 + 76 DIV - + 86 * 39 * + 3 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL 61 + - + 99 + 71 + 76 / - + 86 * 39 * + 3 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT ALL - 90 + + - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL - 90 + + - COUNT ( * )
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7434
SELECT DISTINCT - + 41 + 14 + + 8 AS col1, CAST( NULL AS DECIMAL ) * + ( + 45 ) col2
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-7434
SELECT DISTINCT - + 41 + 14 + + 8 AS col1, CAST ( NULL AS REAL ) * + ( + 45 ) col2
----
-19
NULL

query I rowsort
SELECT DISTINCT + ( + 72 ) AS col0
----
72

query I rowsort
SELECT + 27 * + - 57 * - 38 + + 71 + + 19
----
58572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7437
SELECT DISTINCT - + CASE - + 98 WHEN 61 THEN + ( 95 ) * - - 18 END * + COALESCE ( + 0, CAST( NULL AS SIGNED ), COUNT( DISTINCT + - 92 ) * - MAX( - - NULLIF ( + - 40, + - 11 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT - + CASE - + 98 WHEN 61 THEN + ( 95 ) * - - 18 END * + COALESCE ( + 0, CAST ( NULL AS INTEGER ), COUNT ( DISTINCT + - 92 ) * - MAX ( - - NULLIF ( + - 40, + - 11 ) ) )
----
NULL

query I rowsort
SELECT DISTINCT 64 + + + 2
----
66

query I rowsort
SELECT ALL 23 + + 97 * + ( - 75 ) + + 42
----
-7210

query I rowsort
SELECT ALL 99 + 80 AS col1
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT 60 - + 29 - + COUNT( * ) * ( + 42 ) * 18 + 58 + 51 AS col2
----
-616

skipif mysql # not compatible
query I rowsort label-7441
SELECT 60 - + 29 - + COUNT ( * ) * ( + 42 ) * 18 + 58 + 51 AS col2
----
-616

query I rowsort
SELECT 95 * - 12
----
-1140

query I rowsort
SELECT DISTINCT - 95 * + 70 AS col2
----
-6650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7444
SELECT CAST( 3 AS SIGNED ) + - 19 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-7444
SELECT CAST ( 3 AS INTEGER ) + - 19 AS col1
----
-16

query I rowsort
SELECT 8 * + 46
----
368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7446
SELECT NULLIF ( - 3, 40 ) / + CASE + - 36 WHEN - CASE + - 54 WHEN 80 * ( + 1 ) - - 42 THEN NULL WHEN + MAX( ( - 39 ) ) * COUNT( * ) THEN NULLIF ( + 96, - 50 * - 45 ) - 8 + COUNT( * ) * ( - ( - - 64 ) ) WHEN 50 / - - COUNT( ALL - + 0 ) THEN + + COALESCE ( - 65, 2, + + ( - + 81 ) ) + + MIN( + 31 ) + 28 ELSE + 14 END + + CAST( - NULLIF ( + 60, 56 ) AS SIGNED ) / - CAST( - ( - 31 ) - - 98 * + 48 AS DECIMAL ) THEN NULL WHEN 30 + + 39 THEN NULL WHEN 48 THEN + 7 * COUNT( ALL 38 ) + 29 END + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7446
SELECT NULLIF ( - 3, 40 ) / + CASE + - 36 WHEN - CASE + - 54 WHEN 80 * ( + 1 ) - - 42 THEN NULL WHEN + MAX ( ( - 39 ) ) * COUNT ( * ) THEN NULLIF ( + 96, - 50 * - 45 ) - 8 + COUNT ( * ) * ( - ( - - 64 ) ) WHEN 50 / - - COUNT ( ALL - + 0 ) THEN + + COALESCE ( - 65, 2, + + ( - + 81 ) ) + + MIN ( + 31 ) + 28 ELSE + 14 END + + CAST ( - NULLIF ( + 60, 56 ) AS INTEGER ) / - CAST ( - ( - 31 ) - - 98 * + 48 AS REAL ) THEN NULL WHEN 30 + + 39 THEN NULL WHEN 48 THEN + 7 * COUNT ( ALL 38 ) + 29 END + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT ALL 63 - - COUNT( * ) + - 11
----
53

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL 63 - - COUNT ( * ) + - 11
----
53

query I rowsort
SELECT DISTINCT 22 * + 13
----
286

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT ALL + 5 - 10 - + MAX( - 19 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL + 5 - 10 - + MAX ( - 19 ) AS col1
----
14

query I rowsort
SELECT 95 * + - ( - 0 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7451
SELECT ALL - COALESCE ( + ( + COALESCE ( + - 66, + 17 * COUNT( * ) + NULLIF ( + 44, - 98 * + 83 DIV + + 52 ) ) ), 22 + CASE 70 WHEN - 26 THEN NULL WHEN - - 78 + - ( - ( - 30 ) ) DIV + 3 * + - 88 THEN NULL ELSE + 85 END, 45 DIV - 75 ), + 63 * + NULLIF ( - + 18, - + 46 * - 60 - - 36 + + CAST( - + 24 AS SIGNED ) ) AS col0
----
66
-1134

skipif mysql # not compatible
query II rowsort label-7451
SELECT ALL - COALESCE ( + ( + COALESCE ( + - 66, + 17 * COUNT ( * ) + NULLIF ( + 44, - 98 * + 83 / + + 52 ) ) ), 22 + CASE 70 WHEN - 26 THEN NULL WHEN - - 78 + - ( - ( - 30 ) ) / + 3 * + - 88 THEN NULL ELSE + 85 END, 45 / - 75 ), + 63 * + NULLIF ( - + 18, - + 46 * - 60 - - 36 + + CAST ( - + 24 AS INTEGER ) ) AS col0
----
66
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ALL - COUNT( * ) * - + 81
----
81

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL - COUNT ( * ) * - + 81
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7453
SELECT + CAST( 39 AS SIGNED ) DIV + 8 + COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7453
SELECT + CAST ( 39 AS INTEGER ) / + 8 + COUNT ( * ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT ALL - 6 - - COUNT( * ) * + 18
----
12

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL - 6 - - COUNT ( * ) * + 18
----
12

query I rowsort
SELECT 85 * 42 col1
----
3570

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT ALL - COUNT( - 77 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL - COUNT ( - 77 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7457
SELECT 94 + - CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT 94 + - CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT 43 * 0 + - + CASE - 86 WHEN + 65 * + 54 THEN 31 WHEN 76 * + COUNT( * ) THEN NULL ELSE - 91 END
----
91

skipif mysql # not compatible
query I rowsort label-7458
SELECT 43 * 0 + - + CASE - 86 WHEN + 65 * + 54 THEN 31 WHEN 76 * + COUNT ( * ) THEN NULL ELSE - 91 END
----
91

query I rowsort
SELECT 10 * - - 3
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT DISTINCT - MIN( 81 ) * 63
----
-5103

skipif mysql # not compatible
query I rowsort label-7460
SELECT DISTINCT - MIN ( 81 ) * 63
----
-5103

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT DISTINCT - 37 * - + COALESCE ( - 46, MIN( DISTINCT 18 ) )
----
-1702

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT - 37 * - + COALESCE ( - 46, MIN ( DISTINCT 18 ) )
----
-1702

onlyif mysql # aggregate syntax: 
query II rowsort label-7462
SELECT 12 + - COUNT( * ), + 48 AS col1
----
11
48

skipif mysql # not compatible
query II rowsort label-7462
SELECT 12 + - COUNT ( * ), + 48 AS col1
----
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT ALL - COUNT( * ) * COUNT( * ) * - 70
----
70

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL - COUNT ( * ) * COUNT ( * ) * - 70
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7464
SELECT ALL + 46 + + + COUNT( * ) + + 47 DIV COUNT( * ) * - - 71 + - + 99
----
3285

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL + 46 + + + COUNT ( * ) + + 47 / COUNT ( * ) * - - 71 + - + 99
----
3285

query I rowsort
SELECT ALL - + NULLIF ( + + 29, + 38 * - 60 ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT - 60 * 74 * - 82 * COUNT( ALL 49 ) * - 12 + - + 35 - - + COUNT( * ) - + + 87 AS col2
----
-4369081

skipif mysql # not compatible
query I rowsort label-7466
SELECT - 60 * 74 * - 82 * COUNT ( ALL 49 ) * - 12 + - + 35 - - + COUNT ( * ) - + + 87 AS col2
----
-4369081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7467
SELECT + - ( - NULLIF ( 21, + 38 + - 15 + + + CAST( NULL AS SIGNED ) ) ) * + COUNT( * ) * + ( - COUNT( * ) ) + - 96 DIV 53 * - 13
----
-8

skipif mysql # not compatible
query I rowsort label-7467
SELECT + - ( - NULLIF ( 21, + 38 + - 15 + + + CAST ( NULL AS INTEGER ) ) ) * + COUNT ( * ) * + ( - COUNT ( * ) ) + - 96 / 53 * - 13
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT 99 + + - 91 * SUM( ALL + 81 ) * + + 87 * 93 + + - 49 AS col0
----
-59638711

skipif mysql # not compatible
query I rowsort label-7468
SELECT 99 + + - 91 * SUM ( ALL + 81 ) * + + 87 * 93 + + - 49 AS col0
----
-59638711

query I rowsort
SELECT - 66 * 15 - - 51 AS col1
----
-939

onlyif mysql # DIV for integer division: 
query I rowsort label-7470
SELECT ALL 6 * + - 15 DIV + + 99
----
0

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL 6 * + - 15 / + + 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL - + COUNT( * ) + + ( - - ( - 94 ) ) * 67
----
-6299

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL - + COUNT ( * ) + + ( - - ( - 94 ) ) * 67
----
-6299

query I rowsort
SELECT ALL + - 73 + 65
----
-8

query I rowsort
SELECT ALL - 97 + - - ( + + 20 ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL + + 60 * + CASE - COUNT( * ) WHEN + 6 THEN + - 85 * - + 38 * 38 + 89 * + + 32 * 13 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL + + 60 * + CASE - COUNT ( * ) WHEN + 6 THEN + - 85 * - + 38 * 38 + 89 * + + 32 * 13 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 95 + + - 49 + + 26 AS col0
----
72

query I rowsort
SELECT - - ( - 12 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7477
SELECT CASE - + 3 WHEN + 75 + - 96 THEN CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * - + 56 END + - 73, - 5 * - 13 AS col1
----
NULL
65

skipif mysql # not compatible
query II rowsort label-7477
SELECT CASE - + 3 WHEN + 75 + - 96 THEN CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * - + 56 END + - 73, - 5 * - 13 AS col1
----
NULL
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT 69 + + ( - 77 ) + + MIN( DISTINCT - 40 ) * - 17 AS col1
----
672

skipif mysql # not compatible
query I rowsort label-7478
SELECT 69 + + ( - 77 ) + + MIN ( DISTINCT - 40 ) * - 17 AS col1
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT 5 - - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-7479
SELECT 5 - - COUNT ( * )
----
6

query I rowsort
SELECT ALL 45 * + + 17
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT - COUNT( - + 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-7481
SELECT - COUNT ( - + 92 )
----
-1

query II rowsort
SELECT DISTINCT 39, + ( 70 ) AS col0
----
39
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT 78 * - - ( - - COUNT( ALL - - 89 ) ) * - 23
----
-1794

skipif mysql # not compatible
query I rowsort label-7483
SELECT 78 * - - ( - - COUNT ( ALL - - 89 ) ) * - 23
----
-1794

query I rowsort
SELECT ALL 9 * - - 47
----
423

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT + COUNT( DISTINCT + 11 )
----
1

skipif mysql # not compatible
query I rowsort label-7485
SELECT + COUNT ( DISTINCT + 11 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT - MIN( DISTINCT 13 ) * + 10 + + COUNT( * )
----
-129

skipif mysql # not compatible
query I rowsort label-7486
SELECT - MIN ( DISTINCT 13 ) * + 10 + + COUNT ( * )
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT DISTINCT COUNT( * ) * + 9
----
9

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT COUNT ( * ) * + 9
----
9

query I rowsort
SELECT 33 * + 20
----
660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7489
SELECT CASE - 81 WHEN - + 28 THEN - COUNT( * ) + + 92 / + + COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) ELSE - - 23 END AS col1, - 30 * - COUNT( * )
----
23
30

skipif mysql # not compatible
query II rowsort label-7489
SELECT CASE - 81 WHEN - + 28 THEN - COUNT ( * ) + + 92 / + + COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ELSE - - 23 END AS col1, - 30 * - COUNT ( * )
----
23
30

query I rowsort
SELECT ALL 49 * 89 col1
----
4361

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT DISTINCT COUNT( * ) * - 51 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT COUNT ( * ) * - 51 AS col1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7492
SELECT ALL + COUNT( * ) DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL + COUNT ( * ) / - 78
----
0

query I rowsort
SELECT + ( + + 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT ALL + ( + + NULLIF ( + - 21, - + COUNT( * ) * 3 / - + SUM( DISTINCT - 18 ) + - 97 - - 19 ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL + ( + + NULLIF ( + - 21, - + COUNT ( * ) * 3 / - + SUM ( DISTINCT - 18 ) + - 97 - - 19 ) ) AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7495
SELECT ALL - 94 * + CAST( + 82 AS SIGNED ) + + + 63 + - 12 + - COUNT( * ) + - 86 - 90 * - 9 * - 12 + - 81
----
-17545

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL - 94 * + CAST ( + 82 AS INTEGER ) + + + 63 + - 12 + - COUNT ( * ) + - 86 - 90 * - 9 * - 12 + - 81
----
-17545

query I rowsort
SELECT DISTINCT + 59 * 48 * - - 85 + 28 AS col2
----
240748

onlyif mysql # DIV for integer division: 
query I rowsort label-7497
SELECT + - 95 DIV - 58 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7497
SELECT + - 95 / - 58 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7498
SELECT ALL - 93 * + CAST( NULL AS SIGNED ) * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL - 93 * + CAST ( NULL AS INTEGER ) * + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT - + COUNT( ALL - 89 ) * 0 * - 36 + - - 27
----
27

skipif mysql # not compatible
query I rowsort label-7499
SELECT - + COUNT ( ALL - 89 ) * 0 * - 36 + - - 27
----
27

query I rowsort
SELECT - ( 35 ) - 94 * - 76
----
7109

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT DISTINCT + SUM( DISTINCT + 85 ) * + + 77 + SUM( DISTINCT - 46 ) * + 21 + 92
----
5671

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT + SUM ( DISTINCT + 85 ) * + + 77 + SUM ( DISTINCT - 46 ) * + 21 + 92
----
5671

query I rowsort
SELECT - 64 - 87 AS col0
----
-151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7503
SELECT DISTINCT + - COALESCE ( + COUNT( * ), 84 + + 43, + - CAST( NULL AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7503
SELECT DISTINCT + - COALESCE ( + COUNT ( * ), 84 + + 43, + - CAST ( NULL AS INTEGER ) ) AS col1
----
-1

query I rowsort
SELECT ALL - - 8 * - 20 col1
----
-160

query I rowsort
SELECT ALL + + 37 + - 70 col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT DISTINCT + MIN( ALL 29 ) * + CASE + + 43 WHEN - COUNT( * ) THEN - 90 + + 66 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT DISTINCT + MIN ( ALL 29 ) * + CASE + + 43 WHEN - COUNT ( * ) THEN - 90 + + 66 END col0
----
NULL

query I rowsort
SELECT DISTINCT - + 95 + - 44 + - 77 + - 91 * 52 AS col2
----
-4948

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7508
SELECT - 93 AS col0, + CAST( - 13 AS SIGNED ) DIV - - 64 AS col2
----
-93
0

skipif mysql # not compatible
query II rowsort label-7508
SELECT - 93 AS col0, + CAST ( - 13 AS INTEGER ) / - - 64 AS col2
----
-93
0

query I rowsort
SELECT ALL + 66 - - 54 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT - 67 * - COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-7510
SELECT - 67 * - COUNT ( * ) AS col1
----
67

query I rowsort
SELECT + ( - - 20 ) * - 87 * - 92 AS col2
----
160080

onlyif mysql # DIV for integer division: 
query I rowsort label-7512
SELECT ALL + 16 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL + 16 / 80
----
0

query I rowsort
SELECT DISTINCT ( - 76 ) AS col0
----
-76

query I rowsort
SELECT - 40 + + 44 + 65
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7515
SELECT - NULLIF ( - ( + - 34 ), - - COUNT( * ) + - 98 * + 26 ), 22 * COUNT( * ) col0
----
-34
22

skipif mysql # not compatible
query II rowsort label-7515
SELECT - NULLIF ( - ( + - 34 ), - - COUNT ( * ) + - 98 * + 26 ), 22 * COUNT ( * ) col0
----
-34
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT DISTINCT COUNT( * ) * - + 27
----
-27

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT COUNT ( * ) * - + 27
----
-27

query I rowsort
SELECT ALL 69 - + 80
----
-11

query I rowsort
SELECT DISTINCT NULLIF ( - + 54, + 41 ) AS col0
----
-54

query I rowsort
SELECT ALL 4 * + - 93 * - 10 * - 98 AS col0
----
-364560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7520
SELECT DISTINCT 81 AS col1, - CAST( 56 AS SIGNED )
----
81
-56

skipif mysql # not compatible
query II rowsort label-7520
SELECT DISTINCT 81 AS col1, - CAST ( 56 AS INTEGER )
----
81
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT - ( - - 64 ) + - NULLIF ( + COUNT( * ), + 80 * - - 63 ) + - 75 + + + 62 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-7521
SELECT - ( - - 64 ) + - NULLIF ( + COUNT ( * ), + 80 * - - 63 ) + - 75 + + + 62 AS col0
----
-78

query II rowsort
SELECT - 89 AS col1, - 19
----
-89
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT - MIN( + 74 ) * - 58
----
4292

skipif mysql # not compatible
query I rowsort label-7523
SELECT - MIN ( + 74 ) * - 58
----
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT - MIN( ALL - 40 ) - 31 * - 0 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-7524
SELECT - MIN ( ALL - 40 ) - 31 * - 0 AS col1
----
40

query I rowsort
SELECT - ( - 92 ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT + 68 + - COUNT( * ) * + NULLIF ( COALESCE ( + + 8, + 62, - - COUNT( - 56 ) * - 47 * + 54 * 0 - + 95 ), + - 50 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-7526
SELECT + 68 + - COUNT ( * ) * + NULLIF ( COALESCE ( + + 8, + 62, - - COUNT ( - 56 ) * - 47 * + 54 * 0 - + 95 ), + - 50 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-7527
SELECT 88 AS col1, COUNT( * ) AS col2
----
88
1

skipif mysql # not compatible
query II rowsort label-7527
SELECT 88 AS col1, COUNT ( * ) AS col2
----
88
1

query I rowsort
SELECT ALL + 88 * 95 * 59 AS col2
----
493240

query I rowsort
SELECT + 44 + 23 col2
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-7530
SELECT ALL + 84 AS col1, 64 DIV - + 72 AS col0
----
84
0

skipif mysql # not compatible
query II rowsort label-7530
SELECT ALL + 84 AS col1, 64 / - + 72 AS col0
----
84
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT + CASE MAX( + 46 ) WHEN + 53 + + COALESCE ( + COUNT( * ), MIN( ALL 75 ) + - 86 - + - 62, + + 23 ) THEN - 39 + + + ( + 16 ) * - - 59 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7531
SELECT + CASE MAX ( + 46 ) WHEN + 53 + + COALESCE ( + COUNT ( * ), MIN ( ALL 75 ) + - 86 - + - 62, + + 23 ) THEN - 39 + + + ( + 16 ) * - - 59 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7532
SELECT DISTINCT + 55 AS col2, - 81 + 85 + - CAST( NULL AS SIGNED ) + 4 + + COUNT( * ) - + 20 * - 45 * + 40 * + 16 AS col0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-7532
SELECT DISTINCT + 55 AS col2, - 81 + 85 + - CAST ( NULL AS INTEGER ) + 4 + + COUNT ( * ) - + 20 * - 45 * + 40 * + 16 AS col0
----
55
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7533
SELECT ALL - 85 DIV - 93 + + 89 * 43 + + - 28
----
3799

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL - 85 / - 93 + + 89 * 43 + + - 28
----
3799

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT + 38 - + 32 + - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-7534
SELECT + 38 - + 32 + - COUNT ( * )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7535
SELECT DISTINCT COUNT( * ) DIV 59 + - 62 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-7535
SELECT DISTINCT COUNT ( * ) / 59 + - 62 AS col1
----
-62

query II rowsort
SELECT ALL + 70, 0 AS col1
----
70
0

query II rowsort
SELECT + 80, 56 AS col2
----
80
56

query I rowsort
SELECT + 99 + - 12 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT COALESCE ( + ( + - 75 ), 39 ) * - 49 + SUM( 47 ) - 61 * + 61 * + 49
----
-178607

skipif mysql # not compatible
query I rowsort label-7539
SELECT COALESCE ( + ( + - 75 ), 39 ) * - 49 + SUM ( 47 ) - 61 * + 61 * + 49
----
-178607

onlyif mysql # DIV for integer division: 
query I rowsort label-7540
SELECT ALL + 61 DIV - - 4 + - 88 + 82 + 98 * - 0
----
9

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL + 61 / - - 4 + - 88 + 82 + 98 * - 0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT DISTINCT 43 * - - 36 * + - COUNT( * ) AS col2
----
-1548

skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT 43 * - - 36 * + - COUNT ( * ) AS col2
----
-1548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7542
SELECT + + 33 + COUNT( * ) DIV ( + 84 ) + - + 80
----
-47

skipif mysql # not compatible
query I rowsort label-7542
SELECT + + 33 + COUNT ( * ) / ( + 84 ) + - + 80
----
-47

query I rowsort
SELECT + - ( + 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT ALL - COALESCE ( - 30, - 27, - COUNT( * ) ) * - 33
----
-990

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL - COALESCE ( - 30, - 27, - COUNT ( * ) ) * - 33
----
-990

query I rowsort
SELECT 58 * + 98 + - 9
----
5675

query I rowsort
SELECT - - 52 - + - 14 AS col2
----
66

query II rowsort
SELECT ALL + + 88 col1, - 81
----
88
-81

query II rowsort
SELECT ALL + 72, - NULLIF ( 23, 14 ) AS col2
----
72
-23

query I rowsort
SELECT + 24 * - 5 - - 14 + + + 88 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT + + 89 * 18 + + 59 * - - COUNT( * ) * - 32
----
-286

skipif mysql # not compatible
query I rowsort label-7550
SELECT + + 89 * 18 + + 59 * - - COUNT ( * ) * - 32
----
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT + + MAX( - + 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-7551
SELECT + + MAX ( - + 59 )
----
-59

query I rowsort
SELECT + - CASE + 31 WHEN - - 23 THEN + CASE - 67 WHEN 40 + 38 * - 24 THEN 79 WHEN 40 THEN NULL END WHEN + ( - 59 ) / - 21 + + - 39 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7553
SELECT + 38, COUNT( * ) col1
----
38
1

skipif mysql # not compatible
query II rowsort label-7553
SELECT + 38, COUNT ( * ) col1
----
38
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7554
SELECT + + 40 + - 40 DIV 29 * - 28 * 9 * - MAX( - 6 ) * COUNT( * ) * - ( COUNT( * ) ) AS col0
----
-1472

skipif mysql # not compatible
query I rowsort label-7554
SELECT + + 40 + - 40 / 29 * - 28 * 9 * - MAX ( - 6 ) * COUNT ( * ) * - ( COUNT ( * ) ) AS col0
----
-1472

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT - MIN( DISTINCT + + 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-7555
SELECT - MIN ( DISTINCT + + 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT - - ( + ( - MIN( - + 41 ) ) ) + - COUNT( * ) * - 78 AS col1
----
119

skipif mysql # not compatible
query I rowsort label-7556
SELECT - - ( + ( - MIN ( - + 41 ) ) ) + - COUNT ( * ) * - 78 AS col1
----
119

query I rowsort
SELECT DISTINCT + AVG ( - CASE 44 WHEN 10 + 69 THEN - 76 END ) * AVG ( 37 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT DISTINCT + 91 * - - COUNT( 0 )
----
91

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT + 91 * - - COUNT ( 0 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT DISTINCT + 74 * + - CASE 84 WHEN - + COALESCE ( - 38, + - 39 ) * 95 + - 61 THEN + + COUNT( * ) END / + + 12 + - COALESCE ( - COUNT( * ), + 2 ) + 1 - + + ( + 6 ) * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT + 74 * + - CASE 84 WHEN - + COALESCE ( - 38, + - 39 ) * 95 + - 61 THEN + + COUNT ( * ) END / + + 12 + - COALESCE ( - COUNT ( * ), + 2 ) + 1 - + + ( + 6 ) * - 62
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7560
SELECT ALL ( + + 54 ) col1, - 91 + COALESCE ( + - 6, 1 ) * - - 30 * - + 12 + + CAST( + COUNT( DISTINCT - 78 ) AS SIGNED ) + + - ( - + 42 ) + + 5 + 6 + CAST( + - ( - - AVG ( DISTINCT - - ( 77 ) ) ) AS SIGNED ) * 86 + - 88 * + CAST( NULL AS DECIMAL ) - ( + 58 )
----
54
NULL

skipif mysql # not compatible
query II rowsort label-7560
SELECT ALL ( + + 54 ) col1, - 91 + COALESCE ( + - 6, 1 ) * - - 30 * - + 12 + + CAST ( + COUNT ( DISTINCT - 78 ) AS INTEGER ) + + - ( - + 42 ) + + 5 + 6 + CAST ( + - ( - - AVG ( DISTINCT - - ( 77 ) ) ) AS INTEGER ) * 86 + - 88 * + CAST ( NULL AS REAL ) - ( + 58 )
----
54
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7561
SELECT ALL CAST( + 28 AS SIGNED ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL CAST ( + 28 AS INTEGER ) AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT - CAST( ( - + 78 ) AS SIGNED ) + + 2 * + - 42 * + - 85
----
7218

skipif mysql # not compatible
query I rowsort label-7562
SELECT - CAST ( ( - + 78 ) AS INTEGER ) + + 2 * + - 42 * + - 85
----
7218

query I rowsort
SELECT 4 + - - 47
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT 39 + - 7 + - COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7564
SELECT 39 + - 7 + - COUNT ( * ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT DISTINCT - COUNT( * ) + 49 col2
----
48

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT - COUNT ( * ) + 49 col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7566
SELECT DISTINCT - COUNT( * ) DIV 2 * + - 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT - COUNT ( * ) / 2 * + - 49 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7567
SELECT DISTINCT - COALESCE ( + 25, - CAST( NULL AS SIGNED ) ) + - 38 * + 63 AS col2, - 58 AS col2
----
-2419
-58

skipif mysql # not compatible
query II rowsort label-7567
SELECT DISTINCT - COALESCE ( + 25, - CAST ( NULL AS INTEGER ) ) + - 38 * + 63 AS col2, - 58 AS col2
----
-2419
-58

query I rowsort
SELECT DISTINCT 50 * - ( + - 62 ) AS col0
----
3100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7569
SELECT ALL 8 + - 25 + + COUNT( * ) * + CAST( + ( - + COUNT( * ) ) AS SIGNED ) DIV + + 65 + CAST( + 14 AS SIGNED ) * + - COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL 8 + - 25 + + COUNT ( * ) * + CAST ( + ( - + COUNT ( * ) ) AS INTEGER ) / + + 65 + CAST ( + 14 AS INTEGER ) * + - COUNT ( * ) AS col0
----
-31

query I rowsort
SELECT 39 + 49 AS col1
----
88

query II rowsort
SELECT ALL - 11 + 7, 44 AS col0
----
-4
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT ALL + ( + - COUNT( * ) ) * + 12
----
-12

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL + ( + - COUNT ( * ) ) * + 12
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7573
SELECT COUNT( * ) + MAX( 52 ) DIV + 40
----
2

skipif mysql # not compatible
query I rowsort label-7573
SELECT COUNT ( * ) + MAX ( 52 ) / + 40
----
2

query I rowsort
SELECT DISTINCT - - 27 col1
----
27

query I rowsort
SELECT DISTINCT - 26 * + 86 AS col2
----
-2236

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT + + COUNT( ALL + 59 ) * ( + 58 ) + + 70 + + 94 AS col2
----
222

skipif mysql # not compatible
query I rowsort label-7576
SELECT + + COUNT ( ALL + 59 ) * ( + 58 ) + + 70 + + 94 AS col2
----
222

query I rowsort
SELECT DISTINCT - 74 - - 30 + 26 * 85
----
2166

onlyif mysql # aggregate syntax: 
query II rowsort label-7578
SELECT ALL - COUNT( * ) * + 95 AS col0, - 41 AS col1
----
-95
-41

skipif mysql # not compatible
query II rowsort label-7578
SELECT ALL - COUNT ( * ) * + 95 AS col0, - 41 AS col1
----
-95
-41

query I rowsort
SELECT DISTINCT + 99 - - 93 + + 79 AS col0
----
271

query I rowsort
SELECT ALL - NULLIF ( - + 35, + + ( - 99 ) + - 68 ) AS col2
----
35

query I rowsort
SELECT - - ( ( 20 ) ) * + 46 - - 66 + 15 * + 27 + + 20
----
1411

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT + 22 * + 23 * COUNT( * )
----
506

skipif mysql # not compatible
query I rowsort label-7582
SELECT + 22 * + 23 * COUNT ( * )
----
506

query I rowsort
SELECT ALL + 49 * + 29 * - 87 AS col2
----
-123627

query I rowsort
SELECT ALL - COALESCE ( 0, 97 * 6, - 73 ) AS col0
----
0

query I rowsort
SELECT + - ( + 26 ) * - ( 74 ) - - - 39 + 48 AS col0
----
1933

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7586
SELECT + NULLIF ( ( + CAST( + - 96 AS SIGNED ) ), 78 ) col0
----
-96

skipif mysql # not compatible
query I rowsort label-7586
SELECT + NULLIF ( ( + CAST ( + - 96 AS INTEGER ) ), 78 ) col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT ALL - ( - ( - COUNT( * ) ) ) * + 1 + - - 90 + - + 25
----
64

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL - ( - ( - COUNT ( * ) ) ) * + 1 + - - 90 + - + 25
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7588
SELECT COUNT( * ) - - + 88, - COUNT( * ) AS col1
----
89
-1

skipif mysql # not compatible
query II rowsort label-7588
SELECT COUNT ( * ) - - + 88, - COUNT ( * ) AS col1
----
89
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7589
SELECT ALL CAST( NULL AS SIGNED ) * - 28 / + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL CAST ( NULL AS INTEGER ) * - 28 / + 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT ALL - MIN( DISTINCT 43 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL - MIN ( DISTINCT 43 ) AS col2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7591
SELECT DISTINCT - 30 AS col2, + 33 - + CAST( NULL AS SIGNED ) AS col0
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-7591
SELECT DISTINCT - 30 AS col2, + 33 - + CAST ( NULL AS INTEGER ) AS col0
----
-30
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7592
SELECT ALL - 14 DIV - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL - 14 / - 73 AS col1
----
0

query I rowsort
SELECT 4 * - 85 AS col1
----
-340

onlyif mysql # aggregate syntax: 
query II rowsort label-7594
SELECT ALL 73, 17 * ( + + COUNT( * ) ) * - - COUNT( * ) * + 25 - + 27 AS col2
----
73
398

skipif mysql # not compatible
query II rowsort label-7594
SELECT ALL 73, 17 * ( + + COUNT ( * ) ) * - - COUNT ( * ) * + 25 - + 27 AS col2
----
73
398

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7595
SELECT 23 DIV + + SUM( ALL + - 17 ), + CAST( 23 AS SIGNED ) - + 12 col1
----
-1
11

skipif mysql # not compatible
query II rowsort label-7595
SELECT 23 / + + SUM ( ALL + - 17 ), + CAST ( 23 AS INTEGER ) - + 12 col1
----
-1
11

query I rowsort
SELECT ALL 86 + + 97 AS col1
----
183

onlyif mysql # aggregate syntax: 
query II rowsort label-7597
SELECT 84, - COUNT( * ) * + - 80 AS col2
----
84
80

skipif mysql # not compatible
query II rowsort label-7597
SELECT 84, - COUNT ( * ) * + - 80 AS col2
----
84
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7598
SELECT 22 AS col2, + NULLIF ( + MIN( + 77 ), + - 44 ) AS col1
----
22
77

skipif mysql # not compatible
query II rowsort label-7598
SELECT 22 AS col2, + NULLIF ( + MIN ( + 77 ), + - 44 ) AS col1
----
22
77

query II rowsort
SELECT DISTINCT + ( + - 10 ) * - 22, - 92 AS col1
----
220
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-7600
SELECT DISTINCT SUM( ALL - 43 ) + + - 62 AS col1, - COUNT( * ) * - 98
----
-105
98

skipif mysql # not compatible
query II rowsort label-7600
SELECT DISTINCT SUM ( ALL - 43 ) + + - 62 AS col1, - COUNT ( * ) * - 98
----
-105
98

query I rowsort
SELECT ALL + 52 + 8 AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7602
SELECT 21 AS col0, 48 + - CAST( + 0 AS SIGNED ) DIV - NULLIF ( - COUNT( * ), - 41 ) * + 55 + 29 AS col1
----
21
77

skipif mysql # not compatible
query II rowsort label-7602
SELECT 21 AS col0, 48 + - CAST ( + 0 AS INTEGER ) / - NULLIF ( - COUNT ( * ), - 41 ) * + 55 + 29 AS col1
----
21
77

query I rowsort
SELECT ALL + 80 + - 70 + + 70 + + ( 50 ) * + + 51 * - + 99
----
-252370

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT ALL - ( - + 3 ) * + COUNT( * ) * 23 / - 37 * SUM( ( - ( - 11 ) ) ) + CASE - 64 WHEN + - COUNT( * ) + + + ( - AVG ( + - ( + + 94 ) ) ) THEN - + 46 END + + COALESCE ( - COUNT( DISTINCT + 56 ), + 64 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL - ( - + 3 ) * + COUNT ( * ) * 23 / - 37 * SUM ( ( - ( - 11 ) ) ) + CASE - 64 WHEN + - COUNT ( * ) + + + ( - AVG ( + - ( + + 94 ) ) ) THEN - + 46 END + + COALESCE ( - COUNT ( DISTINCT + 56 ), + 64 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7605
SELECT 13 + + - 42 DIV 53 * + + 1 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-7605
SELECT 13 + + - 42 / 53 * + + 1 AS col0
----
13

query I rowsort
SELECT 48 * + - 32 col2
----
-1536

query II rowsort
SELECT 2 AS col0, - 2 AS col1
----
2
-2

query II rowsort
SELECT 38 AS col2, 65
----
38
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL + ( - 31 ) + + - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL + ( - 31 ) + + - COUNT ( * )
----
-32

query I rowsort
SELECT 29 + ( 15 ) + 8 * + 74 AS col2
----
636

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7611
SELECT ALL - + 93 DIV + MIN( + 51 ) * COUNT( * ) + - 75 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL - + 93 / + MIN ( + 51 ) * COUNT ( * ) + - 75 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL - - 9 * ( + COUNT( - 93 ) ) - + 64 - - - 78 * 39 AS col0
----
-3097

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL - - 9 * ( + COUNT ( - 93 ) ) - + 64 - - - 78 * 39 AS col0
----
-3097

query I rowsort
SELECT + COALESCE ( + 70, 90 * - 77 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT 81 + - COALESCE ( + - 35, - 24 - - ( - 73 ), CASE - COUNT( * ) WHEN - 81 + - 59 + + + 3 THEN - - CASE + - ( + 8 ) WHEN + + 75 THEN - 82 WHEN - COALESCE ( + - 99, + 18 * + 19 ) + + - 77 + 97 THEN 53 ELSE - 36 + 0 + - - COALESCE ( - 49, - + CASE 43 WHEN CASE - 91 WHEN - 47 + + + NULLIF ( - 40, ( + - 55 ) + - + 77 ) THEN + 96 ELSE + 40 * 67 END / 77 THEN 91 WHEN SUM( ALL 98 ) THEN NULL END * + 96 ) * COALESCE ( 80 + ( - 15 ) * - COUNT( * ), 18 ) END + 48 ELSE - 42 * - 47 + + 93 END, 79 + + 54 ) AS col2
----
116

skipif mysql # not compatible
query I rowsort label-7614
SELECT 81 + - COALESCE ( + - 35, - 24 - - ( - 73 ), CASE - COUNT ( * ) WHEN - 81 + - 59 + + + 3 THEN - - CASE + - ( + 8 ) WHEN + + 75 THEN - 82 WHEN - COALESCE ( + - 99, + 18 * + 19 ) + + - 77 + 97 THEN 53 ELSE - 36 + 0 + - - COALESCE ( - 49, - + CASE 43 WHEN CASE - 91 WHEN - 47 + + + NULLIF ( - 40, ( + - 55 ) + - + 77 ) THEN + 96 ELSE + 40 * 67 END / 77 THEN 91 WHEN SUM ( ALL 98 ) THEN NULL END * + 96 ) * COALESCE ( 80 + ( - 15 ) * - COUNT ( * ), 18 ) END + 48 ELSE - 42 * - 47 + + 93 END, 79 + + 54 ) AS col2
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7615
SELECT ALL - - 26 DIV COUNT( * ) * 70
----
1820

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL - - 26 / COUNT ( * ) * 70
----
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT ALL + 52 * - MIN( ALL - + 25 ) - + ( - 56 ) + 2
----
1358

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL + 52 * - MIN ( ALL - + 25 ) - + ( - 56 ) + 2
----
1358

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT NULLIF ( 57, - 43 * - COUNT( * ) * + 36 ) - SUM( DISTINCT + 30 ) + - COUNT( + 80 ) * COUNT( * ) col0
----
26

skipif mysql # not compatible
query I rowsort label-7617
SELECT NULLIF ( 57, - 43 * - COUNT ( * ) * + 36 ) - SUM ( DISTINCT + 30 ) + - COUNT ( + 80 ) * COUNT ( * ) col0
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-7618
SELECT ALL - + 1 DIV + 65 + 11 * + 89, - NULLIF ( - - 40, + 70 ) col1
----
979
-40

skipif mysql # not compatible
query II rowsort label-7618
SELECT ALL - + 1 / + 65 + 11 * + 89, - NULLIF ( - - 40, + 70 ) col1
----
979
-40

query I rowsort
SELECT ALL - 81 * 16 AS col1
----
-1296

query I rowsort
SELECT DISTINCT - - 51 * - + 21
----
-1071

query I rowsort
SELECT - 76 * - - 77
----
-5852

query I rowsort
SELECT 50 + ( + 19 ) - + ( 43 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT ALL + NULLIF ( - 34, + 37 * 44 * - 1 ) * + 99 * - + 39 - + + 1 + + + COUNT( * ) * + + 73
----
131346

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL + NULLIF ( - 34, + 37 * 44 * - 1 ) * + 99 * - + 39 - + + 1 + + + COUNT ( * ) * + + 73
----
131346

query I rowsort
SELECT - 19 + + - 55
----
-74

query I rowsort
SELECT 40 * 24 + 98 + + 86 + - ( 92 ) AS col1
----
1052

query II rowsort
SELECT ALL - 71 AS col1, 60 * + + 90 AS col2
----
-71
5400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7627
SELECT - MIN( ALL - + 95 ) DIV - 80 + + - 51 AS col1, 29 + 31 AS col2
----
-52
60

skipif mysql # not compatible
query II rowsort label-7627
SELECT - MIN ( ALL - + 95 ) / - 80 + + - 51 AS col1, 29 + 31 AS col2
----
-52
60

query I rowsort
SELECT ALL - - COALESCE ( - 71, - 43, - + 84 + - 79 ) AS col2
----
-71

query II rowsort
SELECT ALL - - 99 AS col1, - 11
----
99
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL - MAX( ALL 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL - MAX ( ALL 65 ) AS col1
----
-65

query I rowsort
SELECT ALL 81 + - + 59
----
22

query I rowsort
SELECT 79 * - - 83
----
6557

query I rowsort
SELECT 14 * + 9 AS col0
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-7634
SELECT ALL 10 + 9, 48 + 47 * COUNT( * ) AS col0
----
19
95

skipif mysql # not compatible
query II rowsort label-7634
SELECT ALL 10 + 9, 48 + 47 * COUNT ( * ) AS col0
----
19
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT ALL CASE 34 WHEN COUNT( * ) THEN 45 WHEN - COUNT( * ) THEN + + 70 END + + - 24 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL CASE 34 WHEN COUNT ( * ) THEN 45 WHEN - COUNT ( * ) THEN + + 70 END + + - 24 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7636
SELECT + COALESCE ( + + 35, COUNT( * ) * 67 DIV - + CAST( NULL AS SIGNED ) + CASE 88 WHEN + NULLIF ( - 23, - 41 - + 54 * + 13 ) * - + 79 + - - 41 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN 5 * + - 29 THEN 88 DIV 12 + - - 28 WHEN + 22 THEN 24 END + - 70 ) * + COUNT( * ) + 36 + + + 41 + + COUNT( * ) + CASE 55 WHEN - + 10 THEN 22 WHEN 57 THEN + - 32 ELSE + COUNT( * ) + - - 47 END * - 97
----
-4543

skipif mysql # not compatible
query I rowsort label-7636
SELECT + COALESCE ( + + 35, COUNT ( * ) * 67 / - + CAST ( NULL AS INTEGER ) + CASE 88 WHEN + NULLIF ( - 23, - 41 - + 54 * + 13 ) * - + 79 + - - 41 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN 5 * + - 29 THEN 88 / 12 + - - 28 WHEN + 22 THEN 24 END + - 70 ) * + COUNT ( * ) + 36 + + + 41 + + COUNT ( * ) + CASE 55 WHEN - + 10 THEN 22 WHEN 57 THEN + - 32 ELSE + COUNT ( * ) + - - 47 END * - 97
----
-4543

query I rowsort
SELECT + NULLIF ( - 63, 26 * 6 + + NULLIF ( + - 92, + - 16 ) + - COALESCE ( 4, - 79 / ( - 90 ) ) )
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-7638
SELECT + 69 + - COUNT( * ) * - - COUNT( ALL - + 99 ), SUM( - - 76 ) AS col0
----
68
76

skipif mysql # not compatible
query II rowsort label-7638
SELECT + 69 + - COUNT ( * ) * - - COUNT ( ALL - + 99 ), SUM ( - - 76 ) AS col0
----
68
76

onlyif mysql # aggregate syntax: 
query II rowsort label-7639
SELECT + 74 * 78 AS col1, + ( + SUM( DISTINCT 95 ) ) * + + 94 AS col0
----
5772
8930

skipif mysql # not compatible
query II rowsort label-7639
SELECT + 74 * 78 AS col1, + ( + SUM ( DISTINCT 95 ) ) * + + 94 AS col0
----
5772
8930

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT DISTINCT 80 + + - SUM( - NULLIF ( - 28, 64 ) ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT 80 + + - SUM ( - NULLIF ( - 28, 64 ) ) AS col1
----
52

query I rowsort
SELECT DISTINCT 92 * 46 AS col0
----
4232

query I rowsort
SELECT DISTINCT 98 + + 55 AS col2
----
153

query I rowsort
SELECT ALL 9 + - 56
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT ALL COUNT( * ) + 45 * + - 41
----
-1844

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL COUNT ( * ) + 45 * + - 41
----
-1844

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT + 38 + + + 97 * - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-7645
SELECT + 38 + + + 97 * - COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7646
SELECT + COUNT( * ) + CASE - 84 WHEN + 9 THEN + CASE - 96 WHEN 68 THEN - ( - 93 ) - 84 + - COUNT( * ) * 50 END ELSE 65 + 48 END + - COUNT( * ) DIV 53 * - - ( - + COUNT( * ) ) * - MIN( - 58 ) col2
----
114

skipif mysql # not compatible
query I rowsort label-7646
SELECT + COUNT ( * ) + CASE - 84 WHEN + 9 THEN + CASE - 96 WHEN 68 THEN - ( - 93 ) - 84 + - COUNT ( * ) * 50 END ELSE 65 + 48 END + - COUNT ( * ) / 53 * - - ( - + COUNT ( * ) ) * - MIN ( - 58 ) col2
----
114

query I rowsort
SELECT + 73 * 94
----
6862

query I rowsort
SELECT + 91 + + - 55
----
36

query I rowsort
SELECT - 67 + 26
----
-41

query I rowsort
SELECT + 79 * - - 86
----
6794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7651
SELECT ALL - 76 * + 22 + + CASE - 79 WHEN 33 THEN - 1 * - MIN( DISTINCT + + 31 ) + 21 * + - 32 DIV + COALESCE ( + 20, - CASE + 36 WHEN - 90 - + - COUNT( * ) DIV + + 54 DIV 43 * - CASE 78 WHEN - + COUNT( * ) - 83 THEN ( 59 ) * + + 55 + - 46 + - 64 * - 89 DIV + CASE 31 WHEN - 58 + - 17 - - - 3 THEN ( + ( - 28 ) ) + + 68 WHEN - - 91 THEN NULL ELSE NULL END + + + COUNT( + 16 ) + 6 * - COALESCE ( - 43, - 73, 19 ) WHEN - 32 + - 30 THEN + 50 END * - COUNT( - 65 + - CAST( NULL AS SIGNED ) ) + - 91 THEN NULL ELSE - 47 END, 20 * 38 ) * 87 + - 44 * ( 25 ) ELSE - COUNT( * ) * 57 END + + 16 * 90 * 45
----
63071

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL - 76 * + 22 + + CASE - 79 WHEN 33 THEN - 1 * - MIN ( DISTINCT + + 31 ) + 21 * + - 32 / + COALESCE ( + 20, - CASE + 36 WHEN - 90 - + - COUNT ( * ) / + + 54 / 43 * - CASE 78 WHEN - + COUNT ( * ) - 83 THEN ( 59 ) * + + 55 + - 46 + - 64 * - 89 / + CASE 31 WHEN - 58 + - 17 - - - 3 THEN ( + ( - 28 ) ) + + 68 WHEN - - 91 THEN NULL ELSE NULL END + + + COUNT ( + 16 ) + 6 * - COALESCE ( - 43, - 73, 19 ) WHEN - 32 + - 30 THEN + 50 END * - COUNT ( - 65 + - CAST ( NULL AS INTEGER ) ) + - 91 THEN NULL ELSE - 47 END, 20 * 38 ) * 87 + - 44 * ( 25 ) ELSE - COUNT ( * ) * 57 END + + 16 * 90 * 45
----
63071

query I rowsort
SELECT DISTINCT 89 * - 74 AS col0
----
-6586

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT ALL + COUNT( * ) * - 42 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL + COUNT ( * ) * - 42 AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7654
SELECT - + 4 + 41 AS col2, - CASE + 41 WHEN 14 * - 67 + - 23 THEN - 29 END * - ( - + SUM( 43 ) ) - + 68 + 32 - 69 * CAST( - 45 AS SIGNED ) * - 1 AS col0
----
37
NULL

skipif mysql # not compatible
query II rowsort label-7654
SELECT - + 4 + 41 AS col2, - CASE + 41 WHEN 14 * - 67 + - 23 THEN - 29 END * - ( - + SUM ( 43 ) ) - + 68 + 32 - 69 * CAST ( - 45 AS INTEGER ) * - 1 AS col0
----
37
NULL

query I rowsort
SELECT + 77 * + COALESCE ( - - 28, 4 ) AS col2
----
2156

query I rowsort
SELECT - 64 * - - 76 * 52 AS col0
----
-252928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7657
SELECT ALL + - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL + - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7658
SELECT - 73 DIV - MIN( DISTINCT - 52 ) + + - 49 AS col1, COUNT( * ) AS col0, - 59 AS col2
----
-50
1
-59

skipif mysql # not compatible
query III rowsort label-7658
SELECT - 73 / - MIN ( DISTINCT - 52 ) + + - 49 AS col1, COUNT ( * ) AS col0, - 59 AS col2
----
-50
1
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT ALL + + MIN( DISTINCT - 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL + + MIN ( DISTINCT - 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT - 31 * - 41 - COUNT( * )
----
1270

skipif mysql # not compatible
query I rowsort label-7660
SELECT - 31 * - 41 - COUNT ( * )
----
1270

query I rowsort
SELECT - ( 67 ) AS col2
----
-67

query I rowsort
SELECT DISTINCT - + 40 * + ( - + 18 ) + - 84 AS col1
----
636

onlyif mysql # DIV for integer division: 
query I rowsort label-7663
SELECT DISTINCT + - 56 DIV - - 43 * - 58 DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT + - 56 / - - 43 * - 58 / + 46
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7664
SELECT DISTINCT 31 * + 70 * + + 7 * - CAST( NULL AS SIGNED ) - 60 + + 93 + + 27 * - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT 31 * + 70 * + + 7 * - CAST ( NULL AS INTEGER ) - 60 + + 93 + + 27 * - 66 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7665
SELECT - - CAST( NULL AS SIGNED ) + 83 * - - 44 / - 29 col1, + 34 * 67
----
NULL
2278

skipif mysql # not compatible
query II rowsort label-7665
SELECT - - CAST ( NULL AS INTEGER ) + 83 * - - 44 / - 29 col1, + 34 * 67
----
NULL
2278

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7666
SELECT ALL + 2 * + 19 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL + 2 * + 19 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + COUNT( * ) * - 54 - - + 95 * + - 32 AS col2
----
-3094

skipif mysql # not compatible
query I rowsort label-7667
SELECT + COUNT ( * ) * - 54 - - + 95 * + - 32 AS col2
----
-3094

query I rowsort
SELECT DISTINCT 79 * 99 * - + 97 + ( - 77 ) * 26 col0
----
-760639

query I rowsort
SELECT NULLIF ( + + 29, - 21 ) AS col2
----
29

query II rowsort
SELECT ALL - 20 * - 9 + + 42 AS col2, - 95 * - 76 AS col1
----
222
7220

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7671
SELECT ALL + CAST( NULL AS SIGNED ) * 25 + + 40 AS col0, 39 AS col0
----
NULL
39

skipif mysql # not compatible
query II rowsort label-7671
SELECT ALL + CAST ( NULL AS INTEGER ) * 25 + + 40 AS col0, 39 AS col0
----
NULL
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT + NULLIF ( - - SUM( 12 ), + 46 ) col0
----
12

skipif mysql # not compatible
query I rowsort label-7672
SELECT + NULLIF ( - - SUM ( 12 ), + 46 ) col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7673
SELECT ALL CAST( NULL AS SIGNED ), + 74 AS col1
----
NULL
74

skipif mysql # not compatible
query II rowsort label-7673
SELECT ALL CAST ( NULL AS INTEGER ), + 74 AS col1
----
NULL
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7674
SELECT - CAST( - 83 AS SIGNED ) * 62 - + - 0 + + + 13 * + SUM( + + 51 )
----
5809

skipif mysql # not compatible
query I rowsort label-7674
SELECT - CAST ( - 83 AS INTEGER ) * 62 - + - 0 + + + 13 * + SUM ( + + 51 )
----
5809

onlyif mysql # aggregate syntax: 
query II rowsort label-7675
SELECT - CASE 82 WHEN - - COUNT( * ) THEN NULLIF ( - 69, - 2 ) + - + 62 + - + 9 WHEN - 86 + + 29 * + 70 THEN - NULLIF ( 91, 42 * - 12 + 12 ) END AS col1, + 81 AS col1
----
NULL
81

skipif mysql # not compatible
query II rowsort label-7675
SELECT - CASE 82 WHEN - - COUNT ( * ) THEN NULLIF ( - 69, - 2 ) + - + 62 + - + 9 WHEN - 86 + + 29 * + 70 THEN - NULLIF ( 91, 42 * - 12 + 12 ) END AS col1, + 81 AS col1
----
NULL
81

query I rowsort
SELECT - 62 * - COALESCE ( - ( 21 ), 85 )
----
-1302

query I rowsort
SELECT DISTINCT 91 * + 22 * 41 AS col1
----
82082

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7678
SELECT + COUNT( * ) DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7678
SELECT + COUNT ( * ) / - COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT ( + - 50 ) * + + 71 * + 43 col2
----
-152650

query I rowsort
SELECT DISTINCT + 56 - + 69 AS col1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-7681
SELECT + - 50 DIV + 5
----
-10

skipif mysql # not compatible
query I rowsort label-7681
SELECT + - 50 / + 5
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7682
SELECT + - COUNT( * ) * 14 * - 11, + 63 DIV 74 AS col1
----
154
0

skipif mysql # not compatible
query II rowsort label-7682
SELECT + - COUNT ( * ) * 14 * - 11, + 63 / 74 AS col1
----
154
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT - COUNT( * ) * + COUNT( * ) * 91
----
-91

skipif mysql # not compatible
query I rowsort label-7683
SELECT - COUNT ( * ) * + COUNT ( * ) * 91
----
-91

query I rowsort
SELECT + + ( 87 ) + + 34
----
121

query I rowsort
SELECT ALL + 62 * + 93 * 76 + + 9 * + 0 - - - 48 AS col0
----
438168

query I rowsort
SELECT ALL ( - + 87 ) col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7687
SELECT + + 23 + + COALESCE ( - + 62, - - 70 + + 78, 56 DIV - 47 + + 7 DIV + COALESCE ( CAST( 35 AS SIGNED ), - MAX( DISTINCT + 89 ) + - - 89 - + 39 ) * - - 35 * 30 * - 88 * 77 - - COUNT( * ) * - 1 DIV COUNT( * ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-7687
SELECT + + 23 + + COALESCE ( - + 62, - - 70 + + 78, 56 / - 47 + + 7 / + COALESCE ( CAST ( 35 AS INTEGER ), - MAX ( DISTINCT + 89 ) + - - 89 - + 39 ) * - - 35 * 30 * - 88 * 77 - - COUNT ( * ) * - 1 / COUNT ( * ) ) AS col2
----
-39

query II rowsort
SELECT + 96 AS col1, 68 + - - 60 AS col2
----
96
128

query I rowsort
SELECT + - 48 + + 0 - + - 22 AS col2
----
-26

query I rowsort
SELECT - 38 + + 14
----
-24

query I rowsort
SELECT ALL NULLIF ( - + 60, 58 ) * - - 98 * - 76 AS col0
----
446880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7692
SELECT ALL 92 DIV - COUNT( * ) + + - 0 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL 92 / - COUNT ( * ) + + - 0 AS col0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-7693
SELECT DISTINCT 29 DIV 55 + 65 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT 29 / 55 + 65 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT + COUNT( DISTINCT 45 ) * + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7694
SELECT + COUNT ( DISTINCT 45 ) * + + COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7695
SELECT ALL + + 79 + + 39 + + CAST( 90 AS SIGNED ) - + 88 * 14 + - - 69 * 49 - 73 + + + CAST( NULL AS SIGNED ) + + 29 + COALESCE ( - + 99, + 46, 59 * 61 + 80 * COUNT( * ) / - - 2 ) * + 79 AS col0, ( - - 20 ) AS col0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-7695
SELECT ALL + + 79 + + 39 + + CAST ( 90 AS INTEGER ) - + 88 * 14 + - - 69 * 49 - 73 + + + CAST ( NULL AS INTEGER ) + + 29 + COALESCE ( - + 99, + 46, 59 * 61 + 80 * COUNT ( * ) / - - 2 ) * + 79 AS col0, ( - - 20 ) AS col0
----
NULL
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7696
SELECT SUM( + 94 ) + - - 24 + - ( + - CAST( COUNT( * ) AS SIGNED ) ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-7696
SELECT SUM ( + 94 ) + - - 24 + - ( + - CAST ( COUNT ( * ) AS INTEGER ) ) AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT 98 + - COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-7697
SELECT 98 + - COUNT ( * ) AS col2
----
97

query II rowsort
SELECT ALL - 69 AS col1, 2 * + - 98 AS col2
----
-69
-196

query I rowsort
SELECT ALL + 1 + + + 89
----
90

query I rowsort
SELECT - 63 * - + 93 + - 12 col1
----
5847

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT ALL COUNT( * ) + + - 54
----
-53

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL COUNT ( * ) + + - 54
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT 17 + - SUM( DISTINCT - 62 ) col2
----
79

skipif mysql # not compatible
query I rowsort label-7702
SELECT 17 + - SUM ( DISTINCT - 62 ) col2
----
79

query I rowsort
SELECT 33 * - + 61
----
-2013

onlyif mysql # DIV for integer division: 
query I rowsort label-7704
SELECT ALL + 93 DIV + 76
----
1

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL + 93 / + 76
----
1

query I rowsort
SELECT ALL + 57 * - 6
----
-342

query II rowsort
SELECT + 36, ( - - 93 ) * - 19 * - 96 AS col1
----
36
169632

query II rowsort
SELECT 37, 70 * - 75 AS col2
----
37
-5250

onlyif mysql # aggregate syntax: 
query II rowsort label-7708
SELECT ALL - 84 AS col2, - MIN( + 11 ) - + - ( 5 ) AS col2
----
-84
-6

skipif mysql # not compatible
query II rowsort label-7708
SELECT ALL - 84 AS col2, - MIN ( + 11 ) - + - ( 5 ) AS col2
----
-84
-6

query II rowsort
SELECT 23 * - - 3 AS col2, - 90 * + ( NULLIF ( 58, + 5 ) )
----
69
-5220

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT SUM( DISTINCT - 56 ) * + 5 * - + 23 * 66 AS col1
----
425040

skipif mysql # not compatible
query I rowsort label-7710
SELECT SUM ( DISTINCT - 56 ) * + 5 * - + 23 * 66 AS col1
----
425040

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT ALL - NULLIF ( + COUNT( - - 14 ), + 20 + - + 43 + 27 * - 51 + + 46 * - 86 * - 78 + + + 99 ) * + + 80
----
-80

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL - NULLIF ( + COUNT ( - - 14 ), + 20 + - + 43 + 27 * - 51 + + 46 * - 86 * - 78 + + + 99 ) * + + 80
----
-80

query I rowsort
SELECT 48 + + 37
----
85

query I rowsort
SELECT 57 * + 89
----
5073

query I rowsort
SELECT 64 + - 13 AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7715
SELECT 48, - 77 DIV + 89 * - CAST( - COUNT( DISTINCT - 47 ) AS SIGNED ) AS col2
----
48
0

skipif mysql # not compatible
query II rowsort label-7715
SELECT 48, - 77 / + 89 * - CAST ( - COUNT ( DISTINCT - 47 ) AS INTEGER ) AS col2
----
48
0

query II rowsort
SELECT ALL - 77 AS col1, 50
----
-77
50

query I rowsort
SELECT DISTINCT ( 18 ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT 66 * + + COUNT( * ) * - NULLIF ( + + COUNT( * ), 90 )
----
-66

skipif mysql # not compatible
query I rowsort label-7718
SELECT 66 * + + COUNT ( * ) * - NULLIF ( + + COUNT ( * ), 90 )
----
-66

query I rowsort
SELECT + 19 + 63 AS col2
----
82

query II rowsort
SELECT - + 43 AS col2, 45
----
-43
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT MIN( ALL + 74 ) + + + 73 * + + 61 * - + 86 AS col2
----
-382884

skipif mysql # not compatible
query I rowsort label-7721
SELECT MIN ( ALL + 74 ) + + + 73 * + + 61 * - + 86 AS col2
----
-382884

query I rowsort
SELECT ALL + 33 + - 17 - CASE + 92 WHEN 95 THEN NULL WHEN - - 11 * - 26 + + - 76 THEN + - 54 END * - ( + + 97 ) / NULLIF ( + 64, + 82 )
----
NULL

query I rowsort
SELECT + ( - - 9 ) * + 7 + 27 AS col2
----
90

query II rowsort
SELECT DISTINCT 96, - 42 col2
----
96
-42

query I rowsort
SELECT ALL 39 + - - 85
----
124

query I rowsort
SELECT DISTINCT - NULLIF ( + 44, - - AVG ( - - 60 ) ) AS col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7727
SELECT - COALESCE ( + + 18, + - 10, + 12 ) DIV ( + NULLIF ( 62, + + COALESCE ( + COUNT( * ), + 40 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7727
SELECT - COALESCE ( + + 18, + - 10, + 12 ) / ( + NULLIF ( 62, + + COALESCE ( + COUNT ( * ), + 40 ) ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7728
SELECT - 22 * - - 48 * - NULLIF ( 73, NULLIF ( + MIN( ALL 54 ), + CASE + COUNT( ALL - + CAST( NULL AS SIGNED ) ) WHEN - 93 THEN 82 END ) ) AS col2, + 62 * - - ( + COUNT( * ) ) + - 12
----
77088
50

skipif mysql # not compatible
query II rowsort label-7728
SELECT - 22 * - - 48 * - NULLIF ( 73, NULLIF ( + MIN ( ALL 54 ), + CASE + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) WHEN - 93 THEN 82 END ) ) AS col2, + 62 * - - ( + COUNT ( * ) ) + - 12
----
77088
50

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7729
SELECT + 41, - CAST( NULL AS DECIMAL ) AS col2
----
41
NULL

skipif mysql # not compatible
query II rowsort label-7729
SELECT + 41, - CAST ( NULL AS REAL ) AS col2
----
41
NULL

query I rowsort
SELECT ALL + 81 + + 67 + - 7
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT - + SUM( 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-7731
SELECT - + SUM ( 47 )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-7732
SELECT 5 DIV - 3 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7732
SELECT 5 / - 3 AS col1
----
-1

query I rowsort
SELECT ALL - 6 + 81 + + ( + + 18 ) - 32 col2
----
61

query I rowsort
SELECT + 88 * 52
----
4576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7735
SELECT DISTINCT COUNT( * ) DIV - 55 + 97 + + - 72
----
25

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT COUNT ( * ) / - 55 + 97 + + - 72
----
25

query I rowsort
SELECT + + ( - 82 ) AS col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7737
SELECT + + CAST( - + AVG ( 77 ) AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-7737
SELECT + + CAST ( - + AVG ( 77 ) AS INTEGER )
----
-77

query I rowsort
SELECT ALL - 56 * - - ( - + 79 )
----
4424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7739
SELECT ALL 34 + CAST( NULL AS SIGNED ) AS col1, COUNT( * ), + 68 col0
----
NULL
1
68

skipif mysql # not compatible
query III rowsort label-7739
SELECT ALL 34 + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ), + 68 col0
----
NULL
1
68

query II rowsort
SELECT DISTINCT 57 + - 15 col1, 47 AS col0
----
42
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7741
SELECT ALL + 97 - AVG ( - + CAST( NULL AS SIGNED ) ) + - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL + 97 - AVG ( - + CAST ( NULL AS INTEGER ) ) + - 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT DISTINCT CASE + + ( - - 79 ) WHEN - 61 * + 41 / - - 76 - SUM( - 11 ) THEN NULL WHEN + 72 / + 46 THEN + 4 * + MAX( - 1 ) * - + 74 ELSE - 38 END * - 36
----
1368

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT CASE + + ( - - 79 ) WHEN - 61 * + 41 / - - 76 - SUM ( - 11 ) THEN NULL WHEN + 72 / + 46 THEN + 4 * + MAX ( - 1 ) * - + 74 ELSE - 38 END * - 36
----
1368

query I rowsort
SELECT COALESCE ( + 81, + - 5, + - 37 ) + + 71 * 34
----
2495

query I rowsort
SELECT 42 * - + 71 * - - 50 * + 9 AS col2
----
-1341900

query I rowsort
SELECT ( ( + 48 ) ) * + 41 AS col0
----
1968

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ALL MAX( DISTINCT - 41 ) - COUNT( + 62 ) + + 62 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL MAX ( DISTINCT - 41 ) - COUNT ( + 62 ) + + 62 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT COUNT( * ) + + - 53 + - - COUNT( ALL + 70 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-7747
SELECT COUNT ( * ) + + - 53 + - - COUNT ( ALL + 70 ) AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7748
SELECT DISTINCT - SUM( DISTINCT + 84 ), CAST( + + 15 AS SIGNED ) AS col1
----
-84
15

skipif mysql # not compatible
query II rowsort label-7748
SELECT DISTINCT - SUM ( DISTINCT + 84 ), CAST ( + + 15 AS INTEGER ) AS col1
----
-84
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7749
SELECT ALL - 35 * 84 DIV 44 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL - 35 * 84 / 44 AS col1
----
-66

query I rowsort
SELECT 58 * + 13 * + - 37 AS col0
----
-27898

onlyif mysql # aggregate syntax: 
query II rowsort label-7751
SELECT - MAX( DISTINCT - + 61 ), 47 AS col2
----
61
47

skipif mysql # not compatible
query II rowsort label-7751
SELECT - MAX ( DISTINCT - + 61 ), 47 AS col2
----
61
47

query I rowsort
SELECT 77 - 89 * + 10 * - 35
----
31227

onlyif mysql # aggregate syntax: 
query II rowsort label-7753
SELECT ALL - 36 * + - 90 AS col2, 67 * + 56 * 43 * + 20 + + 65 + + MAX( + 92 ) col1
----
3240
3226877

skipif mysql # not compatible
query II rowsort label-7753
SELECT ALL - 36 * + - 90 AS col2, 67 * + 56 * 43 * + 20 + + 65 + + MAX ( + 92 ) col1
----
3240
3226877

query I rowsort
SELECT - 43 - + 99 AS col0
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7755
SELECT - 70 DIV + + 74 AS col1, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-7755
SELECT - 70 / + + 74 AS col1, COUNT ( * )
----
0
1

query I rowsort
SELECT DISTINCT - - 50 + 27 AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7757
SELECT ALL - ( - 64 ) + - + COUNT( * ) * - COALESCE ( - COUNT( * ), + 30 * 96 ) * + CAST( + 33 AS SIGNED ) * - 82 + + - CAST( 76 AS SIGNED ) - + - COUNT( * )
----
2695

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL - ( - 64 ) + - + COUNT ( * ) * - COALESCE ( - COUNT ( * ), + 30 * 96 ) * + CAST ( + 33 AS INTEGER ) * - 82 + + - CAST ( 76 AS INTEGER ) - + - COUNT ( * )
----
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT DISTINCT + - COUNT( * ) + + 71 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT + - COUNT ( * ) + + 71 AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7759
SELECT ( - ( + 96 ) ) + - 68 DIV - 2
----
-62

skipif mysql # not compatible
query I rowsort label-7759
SELECT ( - ( + 96 ) ) + - 68 / - 2
----
-62

query I rowsort
SELECT + 20 * - 67 + 68
----
-1272

query I rowsort
SELECT ALL + ( + - 65 ) + 11
----
-54

query II rowsort
SELECT ALL - 60 + 18 AS col2, + 14
----
-42
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT - 86 + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-7763
SELECT - 86 + COUNT ( * )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7764
SELECT + 56 - - + 14 * + 40 * + CASE 72 WHEN - - 14 * - 52 * + COUNT( * ) THEN CASE 86 WHEN 87 * + COUNT( * ) THEN - 38 ELSE - 71 END WHEN - NULLIF ( - 36, + CAST( 50 AS SIGNED ) + - ( - 65 ) ) * - 86 * + - 38 + 42 + - CASE 16 WHEN + + COUNT( * ) THEN NULL ELSE + + COUNT( * ) END * - 63 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT + 56 - - + 14 * + 40 * + CASE 72 WHEN - - 14 * - 52 * + COUNT ( * ) THEN CASE 86 WHEN 87 * + COUNT ( * ) THEN - 38 ELSE - 71 END WHEN - NULLIF ( - 36, + CAST ( 50 AS INTEGER ) + - ( - 65 ) ) * - 86 * + - 38 + 42 + - CASE 16 WHEN + + COUNT ( * ) THEN NULL ELSE + + COUNT ( * ) END * - 63 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7765
SELECT DISTINCT - 16 * 98 DIV + 91, + MIN( DISTINCT 6 ) AS col2
----
-17
6

skipif mysql # not compatible
query II rowsort label-7765
SELECT DISTINCT - 16 * 98 / + 91, + MIN ( DISTINCT 6 ) AS col2
----
-17
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT - COUNT( * ) + - - COALESCE ( - MAX( ALL + + 65 ), COALESCE ( - 14, - - 37 + + COUNT( * ) ) + - - COUNT( * ) ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-7766
SELECT - COUNT ( * ) + - - COALESCE ( - MAX ( ALL + + 65 ), COALESCE ( - 14, - - 37 + + COUNT ( * ) ) + - - COUNT ( * ) ) AS col0
----
-66

query I rowsort
SELECT + 22 * - 14
----
-308

query II rowsort
SELECT DISTINCT + 94, 11 + - + 23 AS col1
----
94
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-7769
SELECT COUNT( * ) * + 12 + - + 53 AS col2, - 48 AS col1
----
-41
-48

skipif mysql # not compatible
query II rowsort label-7769
SELECT COUNT ( * ) * + 12 + - + 53 AS col2, - 48 AS col1
----
-41
-48

query I rowsort
SELECT - 86 * 63 col1
----
-5418

query I rowsort
SELECT + 92 * - 24
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT + CASE - 67 WHEN + CASE + - ( - + ( - 19 ) ) WHEN - 47 THEN 88 + - 60 ELSE - ( - 70 ) * + + 93 END * - + COUNT( * ) + + + ( + 30 ) * + 23 * + - 83 * 91 - + 73 + - 19 / + COUNT( * ) - 59 - + - 63 * COUNT( * ) * - 7 / + AVG ( ALL 69 ) THEN NULL WHEN 16 THEN - 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7772
SELECT + CASE - 67 WHEN + CASE + - ( - + ( - 19 ) ) WHEN - 47 THEN 88 + - 60 ELSE - ( - 70 ) * + + 93 END * - + COUNT ( * ) + + + ( + 30 ) * + 23 * + - 83 * 91 - + 73 + - 19 / + COUNT ( * ) - 59 - + - 63 * COUNT ( * ) * - 7 / + AVG ( ALL 69 ) THEN NULL WHEN 16 THEN - 35 END
----
NULL

query I rowsort
SELECT + 56 * - 67
----
-3752

query I rowsort
SELECT DISTINCT 68 * + 2 AS col2
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7775
SELECT DISTINCT MIN( DISTINCT - + 23 ) DIV + ( - 89 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT MIN ( DISTINCT - + 23 ) / + ( - 89 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT + COALESCE ( - 44, - 73, + + NULLIF ( - COUNT( * ), + - 15 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-7776
SELECT + COALESCE ( - 44, - 73, + + NULLIF ( - COUNT ( * ), + - 15 ) )
----
-44

query II rowsort
SELECT ALL + 28, 88 col1
----
28
88

query I rowsort
SELECT + 2 * - 80 AS col2
----
-160

query I rowsort
SELECT DISTINCT 8 * - NULLIF ( + 63, - 55 ) AS col1
----
-504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7780
SELECT + CASE - - 17 WHEN - 62 + 28 THEN CAST( - + 48 AS SIGNED ) + - 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT + CASE - - 17 WHEN - 62 + 28 THEN CAST ( - + 48 AS INTEGER ) + - 8 END
----
NULL

query I rowsort
SELECT - 55 * - 88
----
4840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7782
SELECT + 41 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7782
SELECT + 41 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7783
SELECT - COUNT( * ) AS col1, 87 * COUNT( * ) AS col0
----
-1
87

skipif mysql # not compatible
query II rowsort label-7783
SELECT - COUNT ( * ) AS col1, 87 * COUNT ( * ) AS col0
----
-1
87

query I rowsort
SELECT - + 94 + - 20 + - 42
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7785
SELECT - - COALESCE ( - - 44, - 6 - - + CAST( 37 AS SIGNED ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7785
SELECT - - COALESCE ( - - 44, - 6 - - + CAST ( 37 AS INTEGER ) ) AS col2
----
44

query I rowsort
SELECT ALL + 25 + + + 44 AS col1
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7787
SELECT - ( + 39 ) + SUM( ALL - 46 ) AS col0, 86 AS col2
----
-85
86

skipif mysql # not compatible
query II rowsort label-7787
SELECT - ( + 39 ) + SUM ( ALL - 46 ) AS col0, 86 AS col2
----
-85
86

query I rowsort
SELECT - 17 + + 26 * 89 AS col0
----
2297

query I rowsort
SELECT NULLIF ( - 1, 86 ) col2
----
-1

query I rowsort
SELECT DISTINCT + - COALESCE ( + 46, + 77 - - + 34 - + 31 ) * - + 10 * + 18
----
8280

query I rowsort
SELECT ALL - - 72 * 84 AS col2
----
6048

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7792
SELECT - ( + 29 ) DIV + COUNT( * ) col0, 49 AS col1
----
-29
49

skipif mysql # not compatible
query II rowsort label-7792
SELECT - ( + 29 ) / + COUNT ( * ) col0, 49 AS col1
----
-29
49

query I rowsort
SELECT - + 78 + + 7
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT ALL - - 60 - + ( + + COUNT( DISTINCT ( 42 ) ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL - - 60 - + ( + + COUNT ( DISTINCT ( 42 ) ) ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT SUM( DISTINCT + 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-7795
SELECT SUM ( DISTINCT + 98 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT ALL CASE + - 1 WHEN - + 48 THEN NULL ELSE - ( COUNT( * ) ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL CASE + - 1 WHEN - + 48 THEN NULL ELSE - ( COUNT ( * ) ) END AS col0
----
-1

query II rowsort
SELECT DISTINCT 44 AS col1, 52 + - 97 AS col2
----
44
-45

query I rowsort
SELECT ALL + COALESCE ( - + 71, ( - - 59 ), - 58 + + + 17 )
----
-71

query I rowsort
SELECT - + 43 * + ( - - 71 )
----
-3053

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT ALL COALESCE ( - 5, - COUNT( - 75 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL COALESCE ( - 5, - COUNT ( - 75 ) )
----
-5

query I rowsort
SELECT - 10 * - + 77
----
770

query I rowsort
SELECT DISTINCT ( - 28 )
----
-28

query I rowsort
SELECT DISTINCT ( + + 35 )
----
35

query I rowsort
SELECT + 69 * - - 48 * + 12 AS col2
----
39744

query I rowsort
SELECT ALL - ( + 17 ) * 53 + 13
----
-888

query I rowsort
SELECT ALL + ( + 1 ) AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7807
SELECT DISTINCT - 53 * + - CAST( NULL AS DECIMAL ) AS col1, + 57
----
NULL
57

skipif mysql # not compatible
query II rowsort label-7807
SELECT DISTINCT - 53 * + - CAST ( NULL AS REAL ) AS col1, + 57
----
NULL
57

query I rowsort
SELECT ALL 27 * 67 AS col1
----
1809

query I rowsort
SELECT - 33 * + - 8
----
264

query I rowsort
SELECT 63 * + 69 + 45 AS col0
----
4392

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT ALL 55 * - 50 + - + 8 + + ( - + 36 ) + + + SUM( - 7 ) * 0 * + + 59 AS col1
----
-2794

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL 55 * - 50 + - + 8 + + ( - + 36 ) + + + SUM ( - 7 ) * 0 * + + 59 AS col1
----
-2794

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT 9 * COUNT( * ) + ( ( CASE WHEN - 88 IN ( COALESCE ( + - 17, + 3, - 13 ) ) THEN + 44 + - 98 ELSE - - 35 + - 18 + - 82 END ) ) + - 48 * + + 75 * - 54 + - 10 AS col0
----
194334

skipif mysql # not compatible
query I rowsort label-7812
SELECT 9 * COUNT ( * ) + ( ( CASE WHEN - 88 IN ( COALESCE ( + - 17, + 3, - 13 ) ) THEN + 44 + - 98 ELSE - - 35 + - 18 + - 82 END ) ) + - 48 * + + 75 * - 54 + - 10 AS col0
----
194334

onlyif mysql # DIV for integer division: 
query I rowsort label-7813
SELECT DISTINCT + COALESCE ( + + 92, - - 43 DIV + 46, + 57 )
----
92

skipif mysql # not compatible
query I rowsort label-7813
SELECT DISTINCT + COALESCE ( + + 92, - - 43 / + 46, + 57 )
----
92

query I rowsort
SELECT DISTINCT + 12 * - 82 + 70 AS col1
----
-914

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7815
SELECT ALL + CAST( NULL AS SIGNED ) * + 17 col0, 81 AS col0
----
NULL
81

skipif mysql # not compatible
query II rowsort label-7815
SELECT ALL + CAST ( NULL AS INTEGER ) * + 17 col0, 81 AS col0
----
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT - MIN( ALL + + ( - - 38 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-7816
SELECT - MIN ( ALL + + ( - - 38 ) )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT ALL - 62 * + 31 + + COUNT( * ) * + COUNT( * ) * ( + COUNT( 96 ) )
----
-1921

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL - 62 * + 31 + + COUNT ( * ) * + COUNT ( * ) * ( + COUNT ( 96 ) )
----
-1921

query I rowsort
SELECT DISTINCT 45 * 59 + - 5
----
2650

query I rowsort
SELECT + ( ( + NULLIF ( + 2, - 98 * 45 ) ) ) AS col1
----
2

query I rowsort
SELECT + 75 * 56
----
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT DISTINCT - SUM( DISTINCT 95 ) * + - COUNT( + + 20 ) + + + 55 * 48
----
2735

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT - SUM ( DISTINCT 95 ) * + - COUNT ( + + 20 ) + + + 55 * 48
----
2735

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT COUNT( * ) - + 4 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7822
SELECT COUNT ( * ) - + 4 AS col2
----
-3

query I rowsort
SELECT DISTINCT - ( 43 ) col2
----
-43

query I rowsort
SELECT ALL - 27 - - 5 AS col2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-7825
SELECT DISTINCT - 11 DIV - + 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7825
SELECT DISTINCT - 11 / - + 81 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7826
SELECT CAST( - 17 AS SIGNED ) * - - COUNT( * ) * + - 90, - NULLIF ( - 79, - - CASE - + 35 WHEN - + COUNT( * ) + - - 14 + - 31 THEN NULL WHEN - 71 * + - COALESCE ( + - 71, - + ( + + 58 ) * + + COUNT( * ), + + 59 ) + - ( + 84 ) / + COUNT( * ) - 21 / - + 36 THEN - + 96 * + 12 ELSE NULL END ) + MAX( - 95 ) AS col0
----
1530
-16

skipif mysql # not compatible
query II rowsort label-7826
SELECT CAST ( - 17 AS INTEGER ) * - - COUNT ( * ) * + - 90, - NULLIF ( - 79, - - CASE - + 35 WHEN - + COUNT ( * ) + - - 14 + - 31 THEN NULL WHEN - 71 * + - COALESCE ( + - 71, - + ( + + 58 ) * + + COUNT ( * ), + + 59 ) + - ( + 84 ) / + COUNT ( * ) - 21 / - + 36 THEN - + 96 * + 12 ELSE NULL END ) + MAX ( - 95 ) AS col0
----
1530
-16

query I rowsort
SELECT ALL + 78 * 91
----
7098

query I rowsort
SELECT - 48 + - + ( - 32 ) AS col0
----
-16

query II rowsort
SELECT - 11, - 81 AS col2
----
-11
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT 52 * + ( + + COALESCE ( + 29, - - 4 * - + 82 + - - 58 * + ( - COUNT( * ) ) + - + COUNT( * ), 95 * + COUNT( * ) * - - 32 ) )
----
1508

skipif mysql # not compatible
query I rowsort label-7830
SELECT 52 * + ( + + COALESCE ( + 29, - - 4 * - + 82 + - - 58 * + ( - COUNT ( * ) ) + - + COUNT ( * ), 95 * + COUNT ( * ) * - - 32 ) )
----
1508

query I rowsort
SELECT ALL + NULLIF ( + 26, - 38 * 12 + + 82 ) * - 80
----
-2080

query I rowsort
SELECT ( + 51 ) + - 82
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-7833
SELECT 58 DIV + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7833
SELECT 58 / + 99 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ALL - MIN( DISTINCT + 10 ) * + 69 AS col2
----
-690

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL - MIN ( DISTINCT + 10 ) * + 69 AS col2
----
-690

query I rowsort
SELECT 32 + - - 86
----
118

query I rowsort
SELECT 42 + + 0 - ( 41 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7837
SELECT 48 DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7837
SELECT 48 / 95 AS col1
----
0

query I rowsort
SELECT 51 + - - 91 col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT DISTINCT - MIN( 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT - MIN ( 4 )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT ALL - 31 + CAST( NULL AS SIGNED ) + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL - 31 + CAST ( NULL AS INTEGER ) + 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT ALL + 76 + + - SUM( CASE - 3 WHEN + 86 THEN NULL WHEN + 1 THEN NULL ELSE + 4 END ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL + 76 + + - SUM ( CASE - 3 WHEN + 86 THEN NULL WHEN + 1 THEN NULL ELSE + 4 END ) AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7842
SELECT 67 + - COUNT( * ) * + 76 + - - CAST( 31 AS DECIMAL ) + + + 13 * - 2 * + 33 + - - CAST( NULL AS SIGNED ) * 40 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7842
SELECT 67 + - COUNT ( * ) * + 76 + - - CAST ( 31 AS REAL ) + + + 13 * - 2 * + 33 + - - CAST ( NULL AS INTEGER ) * 40 / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT ALL - COALESCE ( + COUNT( * ), + - 30 * COALESCE ( + 10, + - 40 ) * + MAX( + - 38 ) + + 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL - COALESCE ( + COUNT ( * ), + - 30 * COALESCE ( + 10, + - 40 ) * + MAX ( + - 38 ) + + 5 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT COUNT( * ) * - 93 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-7844
SELECT COUNT ( * ) * - 93 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT CASE - - 91 WHEN COUNT( * ) THEN - 0 - - 17 WHEN + 7 + - - 37 + SUM( DISTINCT - 70 ) / - 86 THEN - + 80 ELSE NULL END * + - 12 + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT CASE - - 91 WHEN COUNT ( * ) THEN - 0 - - 17 WHEN + 7 + - - 37 + SUM ( DISTINCT - 70 ) / - 86 THEN - + 80 ELSE NULL END * + - 12 + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + 77 + + 79 * - 41 + 25 AS col0
----
-3137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7847
SELECT 63 + - - CAST( - - 10 AS SIGNED ) AS col2, - 68 * - 78
----
73
5304

skipif mysql # not compatible
query II rowsort label-7847
SELECT 63 + - - CAST ( - - 10 AS INTEGER ) AS col2, - 68 * - 78
----
73
5304

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT 67 * COALESCE ( + + 97, COUNT( * ) + + 56 )
----
6499

skipif mysql # not compatible
query I rowsort label-7848
SELECT 67 * COALESCE ( + + 97, COUNT ( * ) + + 56 )
----
6499

query I rowsort
SELECT ALL + 4 * + 99 * - 87 * + - 6 * - + 12 AS col2
----
-2480544

query I rowsort
SELECT ALL + 32 + 46 + + 28 * 98 - - 87 AS col2
----
2909

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7851
SELECT + + CASE + COUNT( * ) WHEN 13 THEN NULL ELSE - 33 * 95 - COUNT( * ) END * - + 36 + - 79 * + - 63 * + - CAST( NULL AS DECIMAL ) * + + 14 * + - MIN( + ( - 83 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT + + CASE + COUNT ( * ) WHEN 13 THEN NULL ELSE - 33 * 95 - COUNT ( * ) END * - + 36 + - 79 * + - 63 * + - CAST ( NULL AS REAL ) * + + 14 * + - MIN ( + ( - 83 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7852
SELECT NULLIF ( CAST( NULL AS SIGNED ), + 78 + - 82 + + - 92 ) AS col0, 80 AS col2
----
NULL
80

skipif mysql # not compatible
query II rowsort label-7852
SELECT NULLIF ( CAST ( NULL AS INTEGER ), + 78 + - 82 + + - 92 ) AS col0, 80 AS col2
----
NULL
80

query I rowsort
SELECT ( + + 73 ) AS col0
----
73

query I rowsort
SELECT 35 * 80
----
2800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7855
SELECT ALL - 73 DIV COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL - 73 / COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT 58 + - ( + MIN( + 9 ) ) * COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-7856
SELECT 58 + - ( + MIN ( + 9 ) ) * COUNT ( * )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7857
SELECT - + 56 * + 97 * - ( + 37 ) + - CAST( 82 AS SIGNED ) AS col2
----
200902

skipif mysql # not compatible
query I rowsort label-7857
SELECT - + 56 * + 97 * - ( + 37 ) + - CAST ( 82 AS INTEGER ) AS col2
----
200902

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT 97 * - NULLIF ( MAX( DISTINCT + 48 ), + NULLIF ( + - 87, + 17 ) * - + MIN( DISTINCT - 26 ) ) * - 46
----
214176

skipif mysql # not compatible
query I rowsort label-7858
SELECT 97 * - NULLIF ( MAX ( DISTINCT + 48 ), + NULLIF ( + - 87, + 17 ) * - + MIN ( DISTINCT - 26 ) ) * - 46
----
214176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7859
SELECT ALL 63 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL 63 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 28 + - 5 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT MIN( - + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-7861
SELECT MIN ( - + 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT - MAX( + 33 ) col1
----
-33

skipif mysql # not compatible
query I rowsort label-7862
SELECT - MAX ( + 33 ) col1
----
-33

query I rowsort
SELECT ALL - ( 61 ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT DISTINCT 90 * + 12 * + 56 * - 56 + + COUNT( * ) + - COUNT( * ) - - 13
----
-3386867

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT 90 * + 12 * + 56 * - 56 + + COUNT ( * ) + - COUNT ( * ) - - 13
----
-3386867

query II rowsort
SELECT 65 AS col0, 89
----
65
89

query I rowsort
SELECT ALL 22 + - 8 + - NULLIF ( + 63, - 99 ) AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7867
SELECT ( + CAST( NULL AS SIGNED ) ) * + - CAST( - 97 AS DECIMAL ) * + + 78 * 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7867
SELECT ( + CAST ( NULL AS INTEGER ) ) * + - CAST ( - 97 AS REAL ) * + + 78 * 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT - MIN( + 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-7868
SELECT - MIN ( + 44 ) AS col1
----
-44

query I rowsort
SELECT ALL - 44 + 48
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7870
SELECT - COUNT( * ) AS col1, - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7870
SELECT - COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER )
----
-1
NULL

query II rowsort
SELECT 65, - 17 + - 87 col2
----
65
-104

onlyif mysql # DIV for integer division: 
query II rowsort label-7872
SELECT COALESCE ( + 91, + + COALESCE ( 84, + + 99 ) ) DIV + 18 AS col0, - 5
----
5
-5

skipif mysql # not compatible
query II rowsort label-7872
SELECT COALESCE ( + 91, + + COALESCE ( 84, + + 99 ) ) / + 18 AS col0, - 5
----
5
-5

query I rowsort
SELECT 77 * - - 17
----
1309

query II rowsort
SELECT - 39 AS col1, 97 AS col1
----
-39
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT ALL 44 + - + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL 44 + - + COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT NULLIF ( + 27, - ( + COUNT( * ) ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-7876
SELECT NULLIF ( + 27, - ( + COUNT ( * ) ) ) AS col1
----
27

query I rowsort
SELECT ALL 9 * + - CASE 66 WHEN + 63 + + 41 THEN + 55 WHEN - 76 THEN - 95 / - 59 ELSE NULL END + 31 * + 47 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7878
SELECT COUNT( * ) AS col2, 88 * - CASE + - 76 WHEN - COALESCE ( + + 27, - CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ), + - 99 - + 83 ) THEN 92 ELSE NULL END * + ( CASE - + 2 WHEN SUM( DISTINCT - 41 ) THEN + 79 * - COUNT( 50 ) + + + CASE WHEN NOT 15 <= NULL THEN + 88 + 3 END WHEN + 54 THEN MIN( DISTINCT + 11 ) + - 25 + + 14 + 7 * + 99 + 3 * - - 91 * + 79 ELSE - 6 END ) + 65 + + - 88 + - 21 * - - 34 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7878
SELECT COUNT ( * ) AS col2, 88 * - CASE + - 76 WHEN - COALESCE ( + + 27, - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ), + - 99 - + 83 ) THEN 92 ELSE NULL END * + ( CASE - + 2 WHEN SUM ( DISTINCT - 41 ) THEN + 79 * - COUNT ( 50 ) + + + CASE WHEN NOT 15 <= NULL THEN + 88 + 3 END WHEN + 54 THEN MIN ( DISTINCT + 11 ) + - 25 + + 14 + 7 * + 99 + 3 * - - 91 * + 79 ELSE - 6 END ) + 65 + + - 88 + - 21 * - - 34 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT ALL + 37 * + 12 * + + MIN( 50 ) - + 53 + 85
----
22232

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL + 37 * + 12 * + + MIN ( 50 ) - + 53 + 85
----
22232

query I rowsort
SELECT 92 * - 55 AS col2
----
-5060

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT + COALESCE ( 69, + ( COUNT( * ) ) )
----
69

skipif mysql # not compatible
query I rowsort label-7881
SELECT + COALESCE ( 69, + ( COUNT ( * ) ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT MIN( - - NULLIF ( - 14, - 77 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-7882
SELECT MIN ( - - NULLIF ( - 14, - 77 ) )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7883
SELECT - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT - + 13 + + ( + + COUNT( + + 69 ) ) * + SUM( ALL - 43 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-7884
SELECT - + 13 + + ( + + COUNT ( + + 69 ) ) * + SUM ( ALL - 43 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-7885
SELECT + 5, + COUNT( * ) AS col2
----
5
1

skipif mysql # not compatible
query II rowsort label-7885
SELECT + 5, + COUNT ( * ) AS col2
----
5
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7886
SELECT ALL - MAX( DISTINCT 29 ) * + CAST( - 81 AS SIGNED ) - - CAST( - 64 AS SIGNED ) + - - 49 col1
----
2334

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL - MAX ( DISTINCT 29 ) * + CAST ( - 81 AS INTEGER ) - - CAST ( - 64 AS INTEGER ) + - - 49 col1
----
2334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7887
SELECT ALL + + 53 * + + NULLIF ( CAST( 63 AS SIGNED ), ( + ( 14 ) ) ) * + - COUNT( * ) + + + COUNT( * ) * - - 77
----
-3262

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL + + 53 * + + NULLIF ( CAST ( 63 AS INTEGER ), ( + ( 14 ) ) ) * + - COUNT ( * ) + + + COUNT ( * ) * - - 77
----
-3262

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT - + 61 * + SUM( + 74 ) + + 65 + - 56 AS col0
----
-4505

skipif mysql # not compatible
query I rowsort label-7888
SELECT - + 61 * + SUM ( + 74 ) + + 65 + - 56 AS col0
----
-4505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7889
SELECT - 39 - - ( 68 ) * - - CAST( + + COUNT( * ) AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-7889
SELECT - 39 - - ( 68 ) * - - CAST ( + + COUNT ( * ) AS INTEGER )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7890
SELECT - 53 + - + 90 + 42 DIV + 79 + - + ( 97 ) * 12 - - MAX( ALL - - ( 1 ) )
----
-1306

skipif mysql # not compatible
query I rowsort label-7890
SELECT - 53 + - + 90 + 42 / + 79 + - + ( 97 ) * 12 - - MAX ( ALL - - ( 1 ) )
----
-1306

onlyif mysql # DIV for integer division: 
query I rowsort label-7891
SELECT DISTINCT - ( - + COALESCE ( - 25, - + 18 + - + 65 DIV + 46, 19 ) ) DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT - ( - + COALESCE ( - 25, - + 18 + - + 65 / + 46, 19 ) ) / 99
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7892
SELECT ALL 4 + COUNT( * ) * + 41 AS col0, 46 * + MIN( 64 ) AS col1
----
45
2944

skipif mysql # not compatible
query II rowsort label-7892
SELECT ALL 4 + COUNT ( * ) * + 41 AS col0, 46 * + MIN ( 64 ) AS col1
----
45
2944

onlyif mysql # DIV for integer division: 
query II rowsort label-7893
SELECT ALL - 3 DIV + 95 AS col2, + 69 DIV 89 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-7893
SELECT ALL - 3 / + 95 AS col2, + 69 / 89 AS col1
----
0
0

query I rowsort
SELECT - 80 + - 51 AS col0
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT ALL 68 + + - 58 / - CASE 4 WHEN COUNT( * ) + + 8 THEN NULL WHEN - - 96 THEN - + 42 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL 68 + + - 58 / - CASE 4 WHEN COUNT ( * ) + + 8 THEN NULL WHEN - - 96 THEN - + 42 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - ( + 58 ) AS col2, - 26 + - + 10 AS col1
----
-58
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-7897
SELECT ALL 62 * + 69, - COUNT( * ) AS col2
----
4278
-1

skipif mysql # not compatible
query II rowsort label-7897
SELECT ALL 62 * + 69, - COUNT ( * ) AS col2
----
4278
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7898
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 43 * 45 + - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 43 * 45 + - 5 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7899
SELECT + CAST( NULL AS SIGNED ) + - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-7899
SELECT + CAST ( NULL AS INTEGER ) + - + 24
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7900
SELECT CAST( + 16 AS SIGNED ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-7900
SELECT CAST ( + 16 AS INTEGER ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT 14 * + COUNT( * ) + 40 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-7901
SELECT 14 * + COUNT ( * ) + 40 AS col0
----
54

query I rowsort
SELECT + 84 * - 87 AS col1
----
-7308

onlyif mysql # DIV for integer division: 
query I rowsort label-7903
SELECT DISTINCT 11 DIV + + 88
----
0

skipif mysql # not compatible
query I rowsort label-7903
SELECT DISTINCT 11 / + + 88
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7904
SELECT ALL 26 DIV + MIN( + 70 ) - 23 DIV + - ( - - 92 )
----
0

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL 26 / + MIN ( + 70 ) - 23 / + - ( - - 92 )
----
0

query I rowsort
SELECT ALL 38 * 34 AS col0
----
1292

query I rowsort
SELECT + 7 + + 78 AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7907
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) DIV + + MAX( DISTINCT 74 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) / + + MAX ( DISTINCT 74 ) AS col0
----
0

query II rowsort
SELECT ALL + + 26 * - + 37, - 99 AS col1
----
-962
-99

query I rowsort
SELECT DISTINCT + + ( 8 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-7910
SELECT DISTINCT 0 * - COUNT( * ) * COUNT( * ) AS col1, 68 AS col1
----
0
68

skipif mysql # not compatible
query II rowsort label-7910
SELECT DISTINCT 0 * - COUNT ( * ) * COUNT ( * ) AS col1, 68 AS col1
----
0
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT ALL + 70 * MIN( - + 59 )
----
-4130

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL + 70 * MIN ( - + 59 )
----
-4130

query II rowsort
SELECT + + ( + 78 ) + + 85 AS col0, 24 + 90
----
163
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT - COUNT( - 62 ) + + - 82 * - 70 AS col0
----
5739

skipif mysql # not compatible
query I rowsort label-7913
SELECT - COUNT ( - 62 ) + + - 82 * - 70 AS col0
----
5739

query I rowsort
SELECT + ( - 86 ) * + 72 * 15 AS col0
----
-92880

onlyif mysql # aggregate syntax: 
query II rowsort label-7915
SELECT - 84 * 31 AS col2, - MIN( - 18 )
----
-2604
18

skipif mysql # not compatible
query II rowsort label-7915
SELECT - 84 * 31 AS col2, - MIN ( - 18 )
----
-2604
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7916
SELECT - - 19 * + 81 * - ( 88 ) + 0 DIV NULLIF ( - + 12, - 82 ) DIV - 6 * + + 32 * 55 - + COUNT( * )
----
-135433

skipif mysql # not compatible
query I rowsort label-7916
SELECT - - 19 * + 81 * - ( 88 ) + 0 / NULLIF ( - + 12, - 82 ) / - 6 * + + 32 * 55 - + COUNT ( * )
----
-135433

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT - COUNT( * ) + - 98 + + NULLIF ( + 52, - 99 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-7917
SELECT - COUNT ( * ) + - 98 + + NULLIF ( + 52, - 99 ) AS col2
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-7918
SELECT ALL - 55 * - + 33 * - 24 + + 68 DIV - 28 AS col0
----
-43562

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL - 55 * - + 33 * - 24 + + 68 / - 28 AS col0
----
-43562

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT ALL - MIN( DISTINCT + + ( 35 ) ) * - 63
----
2205

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL - MIN ( DISTINCT + + ( 35 ) ) * - 63
----
2205

query I rowsort
SELECT ALL + 90 * + 31 + 39
----
2829

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT DISTINCT - COUNT( * ) * 30
----
-30

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT - COUNT ( * ) * 30
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT - COUNT( * ) + + 33 + + 42 - - 24 * 59
----
1490

skipif mysql # not compatible
query I rowsort label-7922
SELECT - COUNT ( * ) + + 33 + + 42 - - 24 * 59
----
1490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7923
SELECT ALL - CAST( NULL AS SIGNED ) * - NULLIF ( + 59, - 89 + - 37 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL - CAST ( NULL AS INTEGER ) * - NULLIF ( + 59, - 89 + - 37 ) AS col0
----
NULL

query I rowsort
SELECT + 80 * + + 10 AS col2
----
800

query I rowsort
SELECT ALL + 44 + 7 col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7926
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + 98
----
NULL
98

skipif mysql # not compatible
query II rowsort label-7926
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + 98
----
NULL
98

query I rowsort
SELECT - 39 + - + 72
----
-111

query I rowsort
SELECT + 56 * 19 AS col1
----
1064

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7929
SELECT DISTINCT ( + CAST( - 0 AS SIGNED ) ) AS col1, 44
----
0
44

skipif mysql # not compatible
query II rowsort label-7929
SELECT DISTINCT ( + CAST ( - 0 AS INTEGER ) ) AS col1, 44
----
0
44

query I rowsort
SELECT ALL + 45 - - + 45 AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7931
SELECT DISTINCT - 73 DIV SUM( DISTINCT - NULLIF ( - 93, + 99 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT - 73 / SUM ( DISTINCT - NULLIF ( - 93, + 99 ) )
----
0

query I rowsort
SELECT 66 + + 72 AS col1
----
138

query II rowsort
SELECT - 49, - 72 col1
----
-49
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7934
SELECT COUNT( * ) + - ( + 78 ) DIV - 58 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7934
SELECT COUNT ( * ) + - ( + 78 ) / - 58 AS col2
----
2

query I rowsort
SELECT ALL 55 * - - 18
----
990

query I rowsort
SELECT + + COALESCE ( - 39, + + 67 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7937
SELECT 64 * 13 + - COUNT( * ) + - - CAST( NULL AS SIGNED ) * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7937
SELECT 64 * 13 + - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * + 23
----
NULL

query I rowsort
SELECT DISTINCT - - 44 * - + 56 AS col0
----
-2464

query I rowsort
SELECT DISTINCT - + 67 AS col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7940
SELECT 44 * + - 32 + + COALESCE ( + + CAST( - COALESCE ( + 20, + MAX( 70 ) ) AS SIGNED ), + + 4 + 84 ) - + 79 - + ( - + CAST( - + COALESCE ( + 8, + COUNT( * ) ) AS SIGNED ) ) AS col1
----
-1515

skipif mysql # not compatible
query I rowsort label-7940
SELECT 44 * + - 32 + + COALESCE ( + + CAST ( - COALESCE ( + 20, + MAX ( 70 ) ) AS INTEGER ), + + 4 + 84 ) - + 79 - + ( - + CAST ( - + COALESCE ( + 8, + COUNT ( * ) ) AS INTEGER ) ) AS col1
----
-1515

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT + COUNT( 82 ) * + 36 + + 3
----
39

skipif mysql # not compatible
query I rowsort label-7941
SELECT + COUNT ( 82 ) * + 36 + + 3
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7942
SELECT COUNT( * ) col0, - 26 AS col2
----
1
-26

skipif mysql # not compatible
query II rowsort label-7942
SELECT COUNT ( * ) col0, - 26 AS col2
----
1
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7943
SELECT 80 DIV - COUNT( DISTINCT 80 ) col1
----
-80

skipif mysql # not compatible
query I rowsort label-7943
SELECT 80 / - COUNT ( DISTINCT 80 ) col1
----
-80

query I rowsort
SELECT + NULLIF ( - 50, COALESCE ( 27, + + 41, + 20 ) + NULLIF ( - CASE - - 85 WHEN + - 26 - - 6 / + + 7 * - 45 * - + 82 THEN NULL WHEN - + 13 THEN + ( - 3 ) ELSE - + 77 END, 93 ) ) * + - 3 + + + 84
----
234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7945
SELECT ALL - AVG ( + + CAST( NULL AS SIGNED ) ) + 42 + ( - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL - AVG ( + + CAST ( NULL AS INTEGER ) ) + 42 + ( - 90 )
----
NULL

query I rowsort
SELECT DISTINCT 56 + - + 76 + 5 AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7947
SELECT ALL + ( 95 ) * - 41 - ( CAST( - + 45 AS SIGNED ) )
----
-3850

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL + ( 95 ) * - 41 - ( CAST ( - + 45 AS INTEGER ) )
----
-3850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7948
SELECT ( + 51 ) DIV 77 AS col2, - 64 + + 50 + + NULLIF ( COUNT( * ), 90 - - 74 + - 23 + ( + 70 ) DIV + + ( COALESCE ( - 86, - 10 * + + 1 ) ) + - 2 + - + CAST( NULL AS SIGNED ) * + 31 ) DIV 12 + - 64 + 70 * 40 * + 41
----
0
114722

skipif mysql # not compatible
query II rowsort label-7948
SELECT ( + 51 ) / 77 AS col2, - 64 + + 50 + + NULLIF ( COUNT ( * ), 90 - - 74 + - 23 + ( + 70 ) / + + ( COALESCE ( - 86, - 10 * + + 1 ) ) + - 2 + - + CAST ( NULL AS INTEGER ) * + 31 ) / 12 + - 64 + 70 * 40 * + 41
----
0
114722

onlyif mysql # aggregate syntax: 
query II rowsort label-7949
SELECT DISTINCT 14 * + + MIN( ALL 64 ), 93 AS col1
----
896
93

skipif mysql # not compatible
query II rowsort label-7949
SELECT DISTINCT 14 * + + MIN ( ALL 64 ), 93 AS col1
----
896
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7950
SELECT ALL - 98 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL - 98 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7951
SELECT - 58, COUNT( * ) AS col2
----
-58
1

skipif mysql # not compatible
query II rowsort label-7951
SELECT - 58, COUNT ( * ) AS col2
----
-58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT ( + COUNT( DISTINCT 33 ) ) * + ( 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-7952
SELECT ( + COUNT ( DISTINCT 33 ) ) * + ( 45 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT - COUNT( * ) * - + 26 + + - COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7953
SELECT - COUNT ( * ) * - + 26 + + - COUNT ( * ) AS col1
----
25

query I rowsort
SELECT ALL 92 + 61 AS col1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT ( - + COUNT( * ) ) - + - 12 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-7955
SELECT ( - + COUNT ( * ) ) - + - 12 AS col2
----
11

query I rowsort
SELECT 67 + + NULLIF ( + + NULLIF ( + 90, + - 36 ), + 36 ) AS col2
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-7957
SELECT ALL 33 - + COALESCE ( - + 56, - 23 * + + 65 - 81 DIV 26 )
----
89

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL 33 - + COALESCE ( - + 56, - 23 * + + 65 - 81 / 26 )
----
89

query I rowsort
SELECT ALL 85 * + 70
----
5950

query I rowsort
SELECT 92 - 5
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7960
SELECT CAST( CASE + 52 WHEN 50 THEN NULL WHEN + 11 THEN NULL ELSE 47 * + 64 END AS SIGNED ) + - COUNT( * ) AS col2
----
3007

skipif mysql # not compatible
query I rowsort label-7960
SELECT CAST ( CASE + 52 WHEN 50 THEN NULL WHEN + 11 THEN NULL ELSE 47 * + 64 END AS INTEGER ) + - COUNT ( * ) AS col2
----
3007

onlyif mysql # DIV for integer division: 
query I rowsort label-7961
SELECT 82 DIV - - 47
----
1

skipif mysql # not compatible
query I rowsort label-7961
SELECT 82 / - - 47
----
1

query I rowsort
SELECT 18 * + 93
----
1674

query II rowsort
SELECT 1 + - - 33 col1, 72
----
34
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT DISTINCT + MIN( - - 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT + MIN ( - - 25 ) AS col0
----
25

query I rowsort
SELECT COALESCE ( + 75, - 63 * + 22 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT + 46 * + 67 + + + COUNT( * ) + 64 + + 39 * - 45 AS col2
----
1392

skipif mysql # not compatible
query I rowsort label-7966
SELECT + 46 * + 67 + + + COUNT ( * ) + 64 + + 39 * - 45 AS col2
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT DISTINCT - - 32 * 34 + - + 87 + + - ( + + SUM( + - 78 ) )
----
1079

skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT - - 32 * 34 + - + 87 + + - ( + + SUM ( + - 78 ) )
----
1079

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7968
SELECT - COUNT( DISTINCT + + 28 ) DIV - COUNT( * ) + + - COUNT( + 45 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7968
SELECT - COUNT ( DISTINCT + + 28 ) / - COUNT ( * ) + + - COUNT ( + 45 ) AS col0
----
0

query I rowsort
SELECT DISTINCT - 21 * - 86 col2
----
1806

onlyif mysql # aggregate syntax: 
query II rowsort label-7970
SELECT ALL + 63 + - 61 * CASE + COUNT( * ) WHEN + MIN( DISTINCT + 18 ) THEN + 62 WHEN 46 THEN - 39 ELSE NULL END col2, + 95
----
NULL
95

skipif mysql # not compatible
query II rowsort label-7970
SELECT ALL + 63 + - 61 * CASE + COUNT ( * ) WHEN + MIN ( DISTINCT + 18 ) THEN + 62 WHEN 46 THEN - 39 ELSE NULL END col2, + 95
----
NULL
95

onlyif mysql # aggregate syntax: 
query II rowsort label-7971
SELECT + COUNT( DISTINCT - - 96 ), COUNT( * ) + - + 29 * - COUNT( * ) - - 76 AS col2
----
1
106

skipif mysql # not compatible
query II rowsort label-7971
SELECT + COUNT ( DISTINCT - - 96 ), COUNT ( * ) + - + 29 * - COUNT ( * ) - - 76 AS col2
----
1
106

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7972
SELECT - ( ( - CAST( NULL AS SIGNED ) ) ) + - 66 AS col1, - ( - + 52 ) AS col0
----
NULL
52

skipif mysql # not compatible
query II rowsort label-7972
SELECT - ( ( - CAST ( NULL AS INTEGER ) ) ) + - 66 AS col1, - ( - + 52 ) AS col0
----
NULL
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT 45 + - COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT 45 + - COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT DISTINCT - CASE - - ( + NULLIF ( + - SUM( DISTINCT + 37 ), - + 97 * - + 50 + + - 8 * - 56 ) ) WHEN - - COUNT( * ) THEN + + 56 * - 21 + 28 ELSE NULL END * - ( + - 9 ) * + COUNT( * ) * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT - CASE - - ( + NULLIF ( + - SUM ( DISTINCT + 37 ), - + 97 * - + 50 + + - 8 * - 56 ) ) WHEN - - COUNT ( * ) THEN + + 56 * - 21 + 28 ELSE NULL END * - ( + - 9 ) * + COUNT ( * ) * 45
----
NULL

query I rowsort
SELECT DISTINCT - ( + 71 ) AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7976
SELECT DISTINCT + 69 + - CAST( NULL AS SIGNED ) + + COUNT( * ) - + + 60 / - - COALESCE ( + 6, + COUNT( * ) + 63 ) + COALESCE ( - + 85, + 96 ) / - - MAX( ALL + - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT + 69 + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) - + + 60 / - - COALESCE ( + 6, + COUNT ( * ) + 63 ) + COALESCE ( - + 85, + 96 ) / - - MAX ( ALL + - 41 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7977
SELECT DISTINCT + 36 + + - 44 AS col1, - 87 DIV + ( 76 ) AS col2
----
-8
-1

skipif mysql # not compatible
query II rowsort label-7977
SELECT DISTINCT + 36 + + - 44 AS col1, - 87 / + ( 76 ) AS col2
----
-8
-1

query I rowsort
SELECT CASE - 98 WHEN + 66 THEN + 73 - 11 + + 27 END + + 54 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7979
SELECT DISTINCT 86 DIV - COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT 86 / - COUNT ( * )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7980
SELECT COUNT( ALL + 26 ) * - - CAST( NULL AS SIGNED ) + + - 48 + 38 - + 10 * + ( 62 ) * - 95 + + 4 + 42 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT COUNT ( ALL + 26 ) * - - CAST ( NULL AS INTEGER ) + + - 48 + 38 - + 10 * + ( 62 ) * - 95 + + 4 + 42 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7981
SELECT CASE + - 91 WHEN - + CAST( NULL AS DECIMAL ) + + NULLIF ( - 59, MAX( DISTINCT - 81 ) ) THEN - 39 WHEN - + 2 / + COUNT( * ) * - 84 THEN + - 7 END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT CASE + - 91 WHEN - + CAST ( NULL AS REAL ) + + NULLIF ( - 59, MAX ( DISTINCT - 81 ) ) THEN - 39 WHEN - + 2 / + COUNT ( * ) * - 84 THEN + - 7 END + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 39 * + 20 * 7 * + + 69
----
376740

query I rowsort
SELECT DISTINCT 50 * + - 57
----
-2850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7984
SELECT ( + - 56 ) * + COUNT( * ) DIV - - ( CAST( + COUNT( * ) AS SIGNED ) ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-7984
SELECT ( + - 56 ) * + COUNT ( * ) / - - ( CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0
----
-56

query I rowsort
SELECT ALL 85 * - 48
----
-4080

query I rowsort
SELECT DISTINCT 44 * - 50
----
-2200

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT + MAX( + NULLIF ( + 58, - ( - - 60 ) ) ) * + 70 * + ( - - ( 59 ) ) AS col2
----
239540

skipif mysql # not compatible
query I rowsort label-7987
SELECT + MAX ( + NULLIF ( + 58, - ( - - 60 ) ) ) * + 70 * + ( - - ( 59 ) ) AS col2
----
239540

query I rowsort
SELECT + 73 + + 89 + + 23 AS col2
----
185

query I rowsort
SELECT + 85 * + 22
----
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT - SUM( - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7990
SELECT - SUM ( - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT - 49 + + - COUNT( * ) * + 25 * + MIN( ALL - 4 ) - 27
----
24

skipif mysql # not compatible
query I rowsort label-7991
SELECT - 49 + + - COUNT ( * ) * + 25 * + MIN ( ALL - 4 ) - 27
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT + COUNT( * ) * 24 * + - COUNT( * ) * - + AVG ( DISTINCT - CASE + + 5 WHEN 64 THEN NULL WHEN - 68 THEN 21 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7992
SELECT + COUNT ( * ) * 24 * + - COUNT ( * ) * - + AVG ( DISTINCT - CASE + + 5 WHEN 64 THEN NULL WHEN - 68 THEN 21 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7993
SELECT - COALESCE ( - ( - + 73 ), 66 DIV + COALESCE ( 92, + MIN( ALL - COALESCE ( + + 78, + 7, 16 ) ) ), COUNT( * ) + + - 56, - + 71 )
----
-73

skipif mysql # not compatible
query I rowsort label-7993
SELECT - COALESCE ( - ( - + 73 ), 66 / + COALESCE ( 92, + MIN ( ALL - COALESCE ( + + 78, + 7, 16 ) ) ), COUNT ( * ) + + - 56, - + 71 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT DISTINCT SUM( ALL + + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT SUM ( ALL + + 54 )
----
54

query I rowsort
SELECT DISTINCT 37 + 19
----
56

query I rowsort
SELECT DISTINCT + 10 + 94 col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT + 54 + COUNT( * ) * 95 AS col1
----
149

skipif mysql # not compatible
query I rowsort label-7997
SELECT + 54 + COUNT ( * ) * 95 AS col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT - 60 * + COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-7998
SELECT - 60 * + COUNT ( * ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ALL - NULLIF ( 50, + 44 * 63 ) + 25 * - COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL - NULLIF ( 50, + 44 * 63 ) + 25 * - COUNT ( * ) AS col2
----
-75

query I rowsort
SELECT - 24 - - 80 * + 40
----
3176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8001
SELECT ALL NULLIF ( CASE COUNT( + 89 ) WHEN COUNT( * ) THEN + CAST( NULL AS SIGNED ) / + 3 ELSE 86 * + 67 - 69 END, 50 ) * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL NULLIF ( CASE COUNT ( + 89 ) WHEN COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) / + 3 ELSE 86 * + 67 - 69 END, 50 ) * 88
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8002
SELECT - 41 DIV 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8002
SELECT - 41 / 50 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT DISTINCT + CASE - 86 WHEN 33 + - COUNT( * ) * + 5 THEN COUNT( * ) WHEN - 54 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT + CASE - 86 WHEN 33 + - COUNT ( * ) * + 5 THEN COUNT ( * ) WHEN - 54 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 48 * + 51
----
2448

query I rowsort
SELECT DISTINCT - ( 56 ) * 17 + + 40 AS col0
----
-912

query I rowsort
SELECT - ( 20 ) - 52
----
-72

query I rowsort
SELECT ALL - 58 * - 7 AS col2
----
406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8008
SELECT - 58 * COALESCE ( - 45, - MIN( NULLIF ( - 43, 97 ) ) + + 35, + CASE - 95 WHEN - 90 * 35 - - ( + COALESCE ( 41, + NULLIF ( - 24, + COALESCE ( - COALESCE ( + 48, COUNT( + 36 ) * 42 ), 47 + MIN( + CAST( + 36 AS SIGNED ) ) ) * + COUNT( * ) ) + + 53 ) ) THEN NULL WHEN 76 * - COUNT( * ) THEN - 63 - NULLIF ( 48, 6 ) END + + 1 )
----
2610

skipif mysql # not compatible
query I rowsort label-8008
SELECT - 58 * COALESCE ( - 45, - MIN ( NULLIF ( - 43, 97 ) ) + + 35, + CASE - 95 WHEN - 90 * 35 - - ( + COALESCE ( 41, + NULLIF ( - 24, + COALESCE ( - COALESCE ( + 48, COUNT ( + 36 ) * 42 ), 47 + MIN ( + CAST ( + 36 AS INTEGER ) ) ) * + COUNT ( * ) ) + + 53 ) ) THEN NULL WHEN 76 * - COUNT ( * ) THEN - 63 - NULLIF ( 48, 6 ) END + + 1 )
----
2610

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8009
SELECT CASE - 20 WHEN CASE AVG ( 98 ) WHEN 87 + - 76 THEN NULL ELSE + 87 * + 36 END + NULLIF ( 39 + + 76, 50 / 23 ) * CAST( NULL AS DECIMAL ) THEN AVG ( DISTINCT + 25 ) WHEN 51 THEN + ( 5 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT CASE - 20 WHEN CASE AVG ( 98 ) WHEN 87 + - 76 THEN NULL ELSE + 87 * + 36 END + NULLIF ( 39 + + 76, 50 / 23 ) * CAST ( NULL AS REAL ) THEN AVG ( DISTINCT + 25 ) WHEN 51 THEN + ( 5 ) END AS col2
----
NULL

query I rowsort
SELECT ALL + 85 * 36
----
3060

query I rowsort
SELECT DISTINCT 53 * 24 - + 82
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT COALESCE ( - COUNT( * ), - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-8012
SELECT COALESCE ( - COUNT ( * ), - 57 )
----
-1

query I rowsort
SELECT ALL + 86 * 3 AS col2
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT CASE ( 70 ) WHEN COUNT( * ) * 15 THEN + 49 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT CASE ( 70 ) WHEN COUNT ( * ) * 15 THEN + 49 ELSE NULL END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8015
SELECT + 71 * + 71 + - 8 DIV 69 AS col0
----
5041

skipif mysql # not compatible
query I rowsort label-8015
SELECT + 71 * + 71 + - 8 / 69 AS col0
----
5041

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT - MIN( 19 ) - + ( 61 )
----
-80

skipif mysql # not compatible
query I rowsort label-8016
SELECT - MIN ( 19 ) - + ( 61 )
----
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8017
SELECT - CAST( NULL AS DECIMAL ) / + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8017
SELECT - CAST ( NULL AS REAL ) / + 96 AS col0
----
NULL

query I rowsort
SELECT + 26 * + 96
----
2496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8019
SELECT + CAST( NULL AS SIGNED ) + 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT + CAST ( NULL AS INTEGER ) + 97 AS col2
----
NULL

query I rowsort
SELECT ALL ( 28 ) AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8021
SELECT ALL CAST( - 48 AS SIGNED ) * 88
----
-4224

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL CAST ( - 48 AS INTEGER ) * 88
----
-4224

query I rowsort
SELECT ALL 96 + 78 AS col2
----
174

query I rowsort
SELECT - ( 67 ) AS col0
----
-67

query I rowsort
SELECT + 66 * - 76
----
-5016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8025
SELECT + + CASE + ( 31 ) WHEN - ( - 56 ) THEN - 34 WHEN - ( 90 ) THEN COUNT( * ) * 88 ELSE NULL END - + 23 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT + + CASE + ( 31 ) WHEN - ( - 56 ) THEN - 34 WHEN - ( 90 ) THEN COUNT ( * ) * 88 ELSE NULL END - + 23 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + 87 * - 80
----
-6960

query I rowsort
SELECT + - 23 + 98 AS col1
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8028
SELECT + - 18 - 29 DIV + 88
----
-18

skipif mysql # not compatible
query I rowsort label-8028
SELECT + - 18 - 29 / + 88
----
-18

query I rowsort
SELECT + + 48 * 62 AS col1
----
2976

query I rowsort
SELECT + + 43 + 51 AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8031
SELECT NULLIF ( CASE 29 WHEN 88 THEN NULL WHEN + NULLIF ( 93, 86 ) THEN + COALESCE ( 63, - 94 ) ELSE 40 END, CAST( NULL AS SIGNED ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-8031
SELECT NULLIF ( CASE 29 WHEN 88 THEN NULL WHEN + NULLIF ( 93, 86 ) THEN + COALESCE ( 63, - 94 ) ELSE 40 END, CAST ( NULL AS INTEGER ) ) AS col2
----
40

query I rowsort
SELECT ALL 95 + 36
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT + 79 + - SUM( ALL - 84 + + 28 )
----
135

skipif mysql # not compatible
query I rowsort label-8033
SELECT + 79 + - SUM ( ALL - 84 + + 28 )
----
135

query I rowsort
SELECT ALL + 71 * - 11 AS col2
----
-781

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT ALL 62 - + COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL 62 - + COUNT ( * ) AS col2
----
61

query I rowsort
SELECT - + ( + 21 ) AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8037
SELECT ALL + 22 - - NULLIF ( - CAST( NULL AS SIGNED ), - 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL + 22 - - NULLIF ( - CAST ( NULL AS INTEGER ), - 59 )
----
NULL

query I rowsort
SELECT - - 16 * CASE + 73 WHEN 69 THEN + ( 22 ) WHEN - 97 THEN NULL ELSE 41 END AS col1
----
656

query I rowsort
SELECT ALL + 11 * 49
----
539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8040
SELECT - 99 * + 65 + + CASE - 21 + 75 WHEN - COUNT( * ) + COALESCE ( COUNT( * ), 83 DIV + COALESCE ( 2, 93 ), 3 + 39 ) THEN NULL WHEN + 90 THEN - 90 + + 24 ELSE 48 - 83 DIV - 50 END
----
-6386

skipif mysql # not compatible
query I rowsort label-8040
SELECT - 99 * + 65 + + CASE - 21 + 75 WHEN - COUNT ( * ) + COALESCE ( COUNT ( * ), 83 / + COALESCE ( 2, 93 ), 3 + 39 ) THEN NULL WHEN + 90 THEN - 90 + + 24 ELSE 48 - 83 / - 50 END
----
-6386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8041
SELECT - 28 * + CAST( NULL AS SIGNED ) + - NULLIF ( + 1, + MIN( 11 ) ) * - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT - 28 * + CAST ( NULL AS INTEGER ) + - NULLIF ( + 1, + MIN ( 11 ) ) * - 62 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 78 * + COALESCE ( - 57, 52 ) AS col1
----
-4446

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8043
SELECT + 41 / + CAST( 67 * + CASE + CAST( NULL AS SIGNED ) WHEN + 49 THEN - 79 WHEN ( - MAX( DISTINCT - 37 ) ) * + 81 THEN - COALESCE ( MAX( 36 ), 29 ) + + 49 ELSE NULL END AS SIGNED ) + 84 * 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8043
SELECT + 41 / + CAST ( 67 * + CASE + CAST ( NULL AS INTEGER ) WHEN + 49 THEN - 79 WHEN ( - MAX ( DISTINCT - 37 ) ) * + 81 THEN - COALESCE ( MAX ( 36 ), 29 ) + + 49 ELSE NULL END AS INTEGER ) + 84 * 84 AS col2
----
NULL

query I rowsort
SELECT + 81 * - 24
----
-1944

query I rowsort
SELECT - ( + 43 ) * + 63 col1
----
-2709

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8046
SELECT + SUM( 65 ) DIV + 7 + + 48 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8046
SELECT + SUM ( 65 ) / + 7 + + 48 AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8047
SELECT DISTINCT - COUNT( * ) * - CAST( 76 - + 91 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-8047
SELECT DISTINCT - COUNT ( * ) * - CAST ( 76 - + 91 AS INTEGER )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8048
SELECT ALL - COUNT( * ) DIV CASE 31 WHEN 12 * - 9 THEN NULL ELSE - 46 * ( - COALESCE ( SUM( 31 ), 55, - CAST( - 1 AS SIGNED ) * - 98 + 36 DIV ( 99 * 13 + + SUM( DISTINCT 7 ) ) ) ) END * + 28
----
0

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL - COUNT ( * ) / CASE 31 WHEN 12 * - 9 THEN NULL ELSE - 46 * ( - COALESCE ( SUM ( 31 ), 55, - CAST ( - 1 AS INTEGER ) * - 98 + 36 / ( 99 * 13 + + SUM ( DISTINCT 7 ) ) ) ) END * + 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT 90 * - - 77 + + COUNT( 73 )
----
6931

skipif mysql # not compatible
query I rowsort label-8049
SELECT 90 * - - 77 + + COUNT ( 73 )
----
6931

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL - ( + - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL - ( + - COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT DISTINCT - NULLIF ( - 34, 98 ) AS col1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8052
SELECT ALL - 27 DIV - - 82
----
0

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL - 27 / - - 82
----
0

query I rowsort
SELECT 66 * + 3 AS col2
----
198

query I rowsort
SELECT 76 * 80 * 40 AS col0
----
243200

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT COUNT( * ) + - 4 * + 68
----
-271

skipif mysql # not compatible
query I rowsort label-8055
SELECT COUNT ( * ) + - 4 * + 68
----
-271

query I rowsort
SELECT + 42 * + 37 + 82 AS col1
----
1636

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT DISTINCT - MIN( DISTINCT 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT - MIN ( DISTINCT 5 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT DISTINCT - 10 + SUM( ALL 6 ) + ( COUNT( + 18 ) ) * 42 col1
----
38

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT - 10 + SUM ( ALL 6 ) + ( COUNT ( + 18 ) ) * 42 col1
----
38

query I rowsort
SELECT ALL + 55 + - - 58
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8060
SELECT DISTINCT + 38 + - 10 * CAST( 1 * 30 + 67 AS SIGNED ) AS col2
----
-932

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT + 38 + - 10 * CAST ( 1 * 30 + 67 AS INTEGER ) AS col2
----
-932

query I rowsort
SELECT 56 * 0 + 76
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT 23 + 67 DIV - 43
----
22

skipif mysql # not compatible
query I rowsort label-8062
SELECT 23 + 67 / - 43
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL SUM( DISTINCT + - 57 ) + + COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL SUM ( DISTINCT + - 57 ) + + COUNT ( * ) AS col2
----
-56

query I rowsort
SELECT - 36 * + + 95
----
-3420

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT DISTINCT CASE - - 62 WHEN - 16 THEN 59 * - 56 + 94 WHEN COUNT( * ) * - 92 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT CASE - - 62 WHEN - 16 THEN 59 * - 56 + 94 WHEN COUNT ( * ) * - 92 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - - 68 - + 80 + - ( ( + 19 ) ) AS col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8067
SELECT DISTINCT - 73 * + CAST( 89 AS SIGNED ) AS col0
----
-6497

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT - 73 * + CAST ( 89 AS INTEGER ) AS col0
----
-6497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8068
SELECT CAST( + - COUNT( * ) AS SIGNED ) + - ( + COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-8068
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) + - ( + COUNT ( * ) )
----
-2

query I rowsort
SELECT ALL 69 * 33 + - 85
----
2192

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT + 43 + + - SUM( DISTINCT + 35 ) / + NULLIF ( - CASE 25 WHEN + ( + COUNT( * ) ) * 11 + 67 THEN - 39 WHEN - 2 THEN NULL ELSE NULL END, 28 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT + 43 + + - SUM ( DISTINCT + 35 ) / + NULLIF ( - CASE 25 WHEN + ( + COUNT ( * ) ) * 11 + 67 THEN - 39 WHEN - 2 THEN NULL ELSE NULL END, 28 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT DISTINCT + COALESCE ( 10, 70 * COUNT( * ) + 68, 75 - 54 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT + COALESCE ( 10, 70 * COUNT ( * ) + 68, 75 - 54 ) AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8072
SELECT - 65 DIV + + 28 - + NULLIF ( 83 + 17, - NULLIF ( CAST( NULL AS SIGNED ), - 50 ) DIV - 36 ) AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-8072
SELECT - 65 / + + 28 - + NULLIF ( 83 + 17, - NULLIF ( CAST ( NULL AS INTEGER ), - 50 ) / - 36 ) AS col2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT SUM( 90 ) - - 92
----
182

skipif mysql # not compatible
query I rowsort label-8073
SELECT SUM ( 90 ) - - 92
----
182

query I rowsort
SELECT + 92 - + + 41 AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8075
SELECT - CASE + - 7 WHEN COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) + + 96 THEN - COUNT( * ) WHEN + 1 * - SUM( 69 ) THEN NULL WHEN CAST( NULL AS SIGNED ) * - 40 THEN - 37 + COUNT( * ) * 67 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8075
SELECT - CASE + - 7 WHEN COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 96 THEN - COUNT ( * ) WHEN + 1 * - SUM ( 69 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) * - 40 THEN - 37 + COUNT ( * ) * 67 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL - 15 AS col2, 55 AS col1
----
-15
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT MIN( DISTINCT + 59 ) + - 55
----
4

skipif mysql # not compatible
query I rowsort label-8077
SELECT MIN ( DISTINCT + 59 ) + - 55
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-8078
SELECT ALL - 31 AS col2, ( COALESCE ( 4, - 3 ) ) DIV 24
----
-31
0

skipif mysql # not compatible
query II rowsort label-8078
SELECT ALL - 31 AS col2, ( COALESCE ( 4, - 3 ) ) / 24
----
-31
0

query I rowsort
SELECT DISTINCT 21 + + 0 * 21 col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT 5 - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-8080
SELECT 5 - COUNT ( * )
----
4

query I rowsort
SELECT 76 * + 27 AS col0
----
2052

query I rowsort
SELECT 11 * + 39 * - ( - 88 )
----
37752

query II rowsort
SELECT 20 AS col2, 42 col1
----
20
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT ALL - 96 + COUNT( ALL 82 ) * 86
----
-10

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL - 96 + COUNT ( ALL 82 ) * 86
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8085
SELECT COUNT( * ) * CAST( + COUNT( * ) AS SIGNED ) * + 4 col2
----
4

skipif mysql # not compatible
query I rowsort label-8085
SELECT COUNT ( * ) * CAST ( + COUNT ( * ) AS INTEGER ) * + 4 col2
----
4

query I rowsort
SELECT ALL 20 + - - 0
----
20

query I rowsort
SELECT 11 * + 98 col0
----
1078

query I rowsort
SELECT ALL + 24 + - 35
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT 17 - - COALESCE ( + ( 16 ), 67 * - ( 2 ) - COUNT( * ) )
----
33

skipif mysql # not compatible
query I rowsort label-8089
SELECT 17 - - COALESCE ( + ( 16 ), 67 * - ( 2 ) - COUNT ( * ) )
----
33

query I rowsort
SELECT 27 * - - ( 4 )
----
108

query I rowsort
SELECT ALL - CASE 78 WHEN + - 96 THEN - ( 98 ) * 76 ELSE NULL END
----
NULL

query I rowsort
SELECT 36 * + - ( + 61 )
----
-2196

onlyif mysql # aggregate syntax: 
query II rowsort label-8093
SELECT + COUNT( * ), - 5 AS col0
----
1
-5

skipif mysql # not compatible
query II rowsort label-8093
SELECT + COUNT ( * ), - 5 AS col0
----
1
-5

query II rowsort
SELECT + 53, - 28 * 2 - + 49 * + 20 AS col0
----
53
-1036

query I rowsort
SELECT 17 + - - 58
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT DISTINCT SUM( ALL - + 39 ) - - + 56
----
17

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT SUM ( ALL - + 39 ) - - + 56
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT ALL - - 8 * COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL - - 8 * COUNT ( * )
----
8

query II rowsort
SELECT ALL - 28 AS col0, + 41 AS col1
----
-28
41

query I rowsort
SELECT - - 51 * 18 * 20 + - 95
----
18265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT ALL + 35 - - 41 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL + 35 - - 41 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT DISTINCT - 77 * + - 85 * - COALESCE ( COALESCE ( 68, - SUM( DISTINCT - 65 ) ), 67 + + 7 ) - + 25
----
-445085

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT - 77 * + - 85 * - COALESCE ( COALESCE ( 68, - SUM ( DISTINCT - 65 ) ), 67 + + 7 ) - + 25
----
-445085

query I rowsort
SELECT ( - - 5 ) + + CASE WHEN NOT ( 36 ) IS NULL THEN NULL ELSE - 0 END + 24
----
NULL

query I rowsort
SELECT ALL 0 - + 91 AS col1
----
-91

query I rowsort
SELECT 48 * - 6
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT ALL - COUNT( * ) * 55
----
-55

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL - COUNT ( * ) * 55
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8106
SELECT - 14 + + - CASE - 36 WHEN + 75 THEN NULL ELSE 96 DIV 14 END + 84 * - 27
----
-2288

skipif mysql # not compatible
query I rowsort label-8106
SELECT - 14 + + - CASE - 36 WHEN + 75 THEN NULL ELSE 96 / 14 END + 84 * - 27
----
-2288

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT - CASE 4 WHEN - - 35 + - 68 THEN 80 WHEN ( 36 ) THEN COUNT( * ) + - COALESCE ( - 41 + + 98, 17, AVG ( 31 ) + 27 / + 66 ) END - - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT - CASE 4 WHEN - - 35 + - 68 THEN 80 WHEN ( 36 ) THEN COUNT ( * ) + - COALESCE ( - 41 + + 98, 17, AVG ( 31 ) + 27 / + 66 ) END - - 77 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT - + MAX( ALL - 22 ) col2
----
22

skipif mysql # not compatible
query I rowsort label-8108
SELECT - + MAX ( ALL - 22 ) col2
----
22

query I rowsort
SELECT 97 + - 47 col0
----
50

query I rowsort
SELECT - 97 + - - 15 + + 77 AS col2
----
-5

query I rowsort
SELECT 28 * 38 * + 53
----
56392

query I rowsort
SELECT + 6 * - + ( 20 ) - - 14
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT 87 + + + NULLIF ( - - 57, - COUNT( * ) * 94 )
----
144

skipif mysql # not compatible
query I rowsort label-8113
SELECT 87 + + + NULLIF ( - - 57, - COUNT ( * ) * 94 )
----
144

query I rowsort
SELECT ALL CASE + 71 WHEN - - 8 THEN NULL ELSE - 50 END AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT - SUM( ALL + - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-8115
SELECT - SUM ( ALL + - 73 )
----
73

query I rowsort
SELECT - 24 + - 78 * 32 + ( 41 )
----
-2479

query I rowsort
SELECT + 63 + + 76 AS col2
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL + 28 * COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL + 28 * COUNT ( * ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT - MAX( + 0 ) * 53 - 18 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-8119
SELECT - MAX ( + 0 ) * 53 - 18 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT ( + CASE WHEN COUNT( * ) = NULL THEN NULL WHEN NULL IS NOT NULL THEN NULL WHEN 2 NOT BETWEEN - COALESCE ( - 76, + 20 ) * + 13 AND 30 THEN 55 END ) + - SUM( DISTINCT 27 )
----
28

skipif mysql # not compatible
query I rowsort label-8120
SELECT ( + CASE WHEN COUNT ( * ) = NULL THEN NULL WHEN NULL IS NOT NULL THEN NULL WHEN 2 NOT BETWEEN - COALESCE ( - 76, + 20 ) * + 13 AND 30 THEN 55 END ) + - SUM ( DISTINCT 27 )
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8121
SELECT DISTINCT - 0 DIV - + SUM( DISTINCT - 68 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT - 0 / - + SUM ( DISTINCT - 68 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT + - 89 + - CASE + + 12 WHEN + ( 88 ) THEN 1 + + 55 * COUNT( * ) END - 6 * 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT + - 89 + - CASE + + 12 WHEN + ( 88 ) THEN 1 + + 55 * COUNT ( * ) END - 6 * 37 AS col1
----
NULL

query II rowsort
SELECT ALL - 99, - 96 AS col2
----
-99
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8124
SELECT + 62, COUNT( + 15 ) - + 57 AS col2
----
62
-56

skipif mysql # not compatible
query II rowsort label-8124
SELECT + 62, COUNT ( + 15 ) - + 57 AS col2
----
62
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT ALL + + COALESCE ( 35, - + 73 * 8, COUNT( * ) ) * + 7
----
245

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL + + COALESCE ( 35, - + 73 * 8, COUNT ( * ) ) * + 7
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT COALESCE ( + COUNT( * ), ( - 82 ) ) * 52 + 18 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-8126
SELECT COALESCE ( + COUNT ( * ), ( - 82 ) ) * 52 + 18 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT CASE MAX( ALL + + 21 ) WHEN - 14 * - ( 49 * - 89 ) THEN + 93 * + SUM( + 1 / 26 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8127
SELECT CASE MAX ( ALL + + 21 ) WHEN - 14 * - ( 49 * - 89 ) THEN + 93 * + SUM ( + 1 / 26 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8128
SELECT ALL - 24 * + CAST( 89 AS SIGNED ) * + ( + 65 ) + - 62 * 56
----
-142312

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL - 24 * + CAST ( 89 AS INTEGER ) * + ( + 65 ) + - 62 * 56
----
-142312

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT CASE - + 6 WHEN - MIN( + 77 ) THEN + 40 WHEN - ( + COUNT( * ) ) THEN + 63 * 46 WHEN 98 + + 84 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8129
SELECT CASE - + 6 WHEN - MIN ( + 77 ) THEN + 40 WHEN - ( + COUNT ( * ) ) THEN + 63 * 46 WHEN 98 + + 84 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( 6, + - 19 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT DISTINCT 46 * - - 98 + - + CASE + - 30 WHEN AVG ( ALL + 82 ) + + ( 32 ) THEN + COUNT( DISTINCT 63 ) * + 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT DISTINCT 46 * - - 98 + - + CASE + - 30 WHEN AVG ( ALL + 82 ) + + ( 32 ) THEN + COUNT ( DISTINCT 63 ) * + 6 ELSE NULL END
----
NULL

query I rowsort
SELECT + 15 + 61
----
76

query I rowsort
SELECT ALL 21 * - 48 + - 94 * - 65 AS col1
----
5102

query I rowsort
SELECT 65 * - 46 + - NULLIF ( + 48, 16 )
----
-3038

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT + CASE + + 72 WHEN - 73 * 7 + 35 THEN AVG ( ALL - 62 ) + - COUNT( 46 ) * 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8135
SELECT + CASE + + 72 WHEN - 73 * 7 + 35 THEN AVG ( ALL - 62 ) + - COUNT ( 46 ) * 40 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8136
SELECT - CAST( 59 AS SIGNED ) * - + COUNT( * ) + 5 + - COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-8136
SELECT - CAST ( 59 AS INTEGER ) * - + COUNT ( * ) + 5 + - COUNT ( * ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT + 61 + NULLIF ( + - COALESCE ( + NULLIF ( 47, + 10 ), + 23, 43 - 15 * + CASE + 81 WHEN + 31 THEN 35 END ), + COUNT( * ) )
----
14

skipif mysql # not compatible
query I rowsort label-8137
SELECT + 61 + NULLIF ( + - COALESCE ( + NULLIF ( 47, + 10 ), + 23, 43 - 15 * + CASE + 81 WHEN + 31 THEN 35 END ), + COUNT ( * ) )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8138
SELECT ALL + CAST( NULL AS SIGNED ) * 26 + - CAST( - - 92 AS SIGNED ) * + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8138
SELECT ALL + CAST ( NULL AS INTEGER ) * 26 + - CAST ( - - 92 AS INTEGER ) * + 33 AS col2
----
NULL

query I rowsort
SELECT + CASE + 10 WHEN - 60 * ( + 76 ) * + 35 + 49 THEN 39 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8140
SELECT - COALESCE ( - + 38, + 67 ) + + CASE 10 WHEN ( - CAST( NULL AS SIGNED ) ) THEN NULL WHEN + 82 * - CAST( - NULLIF ( 24, 99 * 65 + 15 ) AS SIGNED ) THEN NULLIF ( 47, COUNT( DISTINCT 54 ) ) END + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8140
SELECT - COALESCE ( - + 38, + 67 ) + + CASE 10 WHEN ( - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + 82 * - CAST ( - NULLIF ( 24, 99 * 65 + 15 ) AS INTEGER ) THEN NULLIF ( 47, COUNT ( DISTINCT 54 ) ) END + 15
----
NULL

query I rowsort
SELECT + 7 * - 1
----
-7

query I rowsort
SELECT + 76 * ( - 1 ) + 1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8143
SELECT + 25 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-8143
SELECT + 25 / 70
----
0

query I rowsort
SELECT ALL + ( - 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT DISTINCT - 6 * CASE + COUNT( * ) WHEN - - 14 * - 54 THEN 61 END * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8145
SELECT DISTINCT - 6 * CASE + COUNT ( * ) WHEN - - 14 * - 54 THEN 61 END * - 1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8146
SELECT ALL + ( - 32 ) DIV + 78 * 86 * ( + SUM( ALL 14 ) ) - - 11
----
11

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL + ( - 32 ) / + 78 * 86 * ( + SUM ( ALL 14 ) ) - - 11
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT DISTINCT SUM( 65 )
----
65

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT SUM ( 65 )
----
65

query I rowsort
SELECT NULLIF ( + 13, + 33 - 4 ) col2
----
13

query I rowsort
SELECT + + 34 * 14
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT - + 29 + - CASE + 34 WHEN + 18 / 38 - COUNT( * ) * 75 THEN NULL WHEN - 76 + - COUNT( * ) THEN NULLIF ( 73, COUNT( * ) ) + + 10 / - 46 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8150
SELECT - + 29 + - CASE + 34 WHEN + 18 / 38 - COUNT ( * ) * 75 THEN NULL WHEN - 76 + - COUNT ( * ) THEN NULLIF ( 73, COUNT ( * ) ) + + 10 / - 46 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8151
SELECT ALL + + 1 DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL + + 1 / 97 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8152
SELECT + + 18 DIV + - 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8152
SELECT + + 18 / + - 46 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8153
SELECT DISTINCT + 90 * - + CAST( NULL AS SIGNED ) * + 0 / + + 57 + - ( 7 + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT + 90 * - + CAST ( NULL AS INTEGER ) * + 0 / + + 57 + - ( 7 + - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8154
SELECT ALL - CAST( - - 32 AS SIGNED ) * 41 AS col2
----
-1312

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL - CAST ( - - 32 AS INTEGER ) * 41 AS col2
----
-1312

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT DISTINCT NULLIF ( 88, + COUNT( * ) ) col2
----
88

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT NULLIF ( 88, + COUNT ( * ) ) col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL - - MAX( ALL - - 18 ) * + 45
----
810

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL - - MAX ( ALL - - 18 ) * + 45
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT - + COUNT( - - 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-8157
SELECT - + COUNT ( - - 18 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT - + 16 * + 13 * - COUNT( ALL - 48 ) + + 12
----
220

skipif mysql # not compatible
query I rowsort label-8158
SELECT - + 16 * + 13 * - COUNT ( ALL - 48 ) + + 12
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT - - 11 + + - NULLIF ( - MAX( DISTINCT + + 37 ), 65 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-8159
SELECT - - 11 + + - NULLIF ( - MAX ( DISTINCT + + 37 ), 65 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT DISTINCT + COUNT( * ) + - ( 58 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT + COUNT ( * ) + - ( 58 ) AS col1
----
-57

query I rowsort
SELECT + 10 * + ( - ( - 55 ) )
----
550

onlyif mysql # DIV for integer division: 
query I rowsort label-8162
SELECT ALL + 96 DIV 55
----
1

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL + 96 / 55
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT - ( + + CASE 98 WHEN + 2 THEN - - MIN( 36 ) + 10 * 89 ELSE NULL END ) * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT - ( + + CASE 98 WHEN + 2 THEN - - MIN ( 36 ) + 10 * 89 ELSE NULL END ) * COUNT ( * ) col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 58, + - 96 / - + 57 + ( + 7 ) ) col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8165
SELECT DISTINCT + CAST( + + 62 AS SIGNED ) DIV - COALESCE ( - 97, + 39, 55 ) * + MAX( 40 * - 50 ) + + 0 + 54
----
54

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT + CAST ( + + 62 AS INTEGER ) / - COALESCE ( - 97, + 39, 55 ) * + MAX ( 40 * - 50 ) + + 0 + 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT - COUNT( * ) * - - 58 + - + 12 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-8166
SELECT - COUNT ( * ) * - - 58 + - + 12 AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8167
SELECT ALL 17 / + CAST( NULL AS SIGNED ) + 77 - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL 17 / + CAST ( NULL AS INTEGER ) + 77 - 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8168
SELECT ALL + 64 DIV - + COUNT( * ) + + - 81 AS col0
----
-145

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL + 64 / - + COUNT ( * ) + + - 81 AS col0
----
-145

query I rowsort
SELECT + NULLIF ( 15, - 31 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8170
SELECT + 30 col2, + MAX( + ( + + CASE - 57 WHEN + 12 * 52 THEN + 4 / 68 - 80 WHEN 24 / 11 THEN 31 WHEN ( - 22 ) THEN NULL ELSE 71 END ) )
----
30
71

skipif mysql # not compatible
query II rowsort label-8170
SELECT + 30 col2, + MAX ( + ( + + CASE - 57 WHEN + 12 * 52 THEN + 4 / 68 - 80 WHEN 24 / 11 THEN 31 WHEN ( - 22 ) THEN NULL ELSE 71 END ) )
----
30
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8171
SELECT CAST( - 57 AS SIGNED ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-8171
SELECT CAST ( - 57 AS INTEGER ) AS col2
----
-57

query I rowsort
SELECT + 44 * + 37
----
1628

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL + 71 / 10 - + 65 + - - CASE - - ( + 71 ) WHEN + 95 THEN NULL WHEN + 30 THEN 90 * - ( 96 ) END * - COALESCE ( COUNT( * ) * COUNT( * ), + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL + 71 / 10 - + 65 + - - CASE - - ( + 71 ) WHEN + 95 THEN NULL WHEN + 30 THEN 90 * - ( 96 ) END * - COALESCE ( COUNT ( * ) * COUNT ( * ), + 34 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8174
SELECT CAST( NULL AS SIGNED ), + CAST( NULL AS DECIMAL ) + - 36
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8174
SELECT CAST ( NULL AS INTEGER ), + CAST ( NULL AS REAL ) + - 36
----
NULL
NULL

query I rowsort
SELECT - 8 * + 80
----
-640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8176
SELECT + COALESCE ( + MIN( - - 5 ), - 34 DIV AVG ( ALL + 92 ) + + 62, - ( 40 ) DIV - 62 ) * COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8176
SELECT + COALESCE ( + MIN ( - - 5 ), - 34 / AVG ( ALL + 92 ) + + 62, - ( 40 ) / - 62 ) * COUNT ( * ) AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8177
SELECT ALL - 93 DIV - 97 * - 69 * + 2 * COUNT( DISTINCT + 62 ) * MAX( DISTINCT + 20 + 33 ) - + COUNT( DISTINCT - 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL - 93 / - 97 * - 69 * + 2 * COUNT ( DISTINCT + 62 ) * MAX ( DISTINCT + 20 + 33 ) - + COUNT ( DISTINCT - 20 )
----
-1

query I rowsort
SELECT + CASE + - NULLIF ( - 40, + 46 ) WHEN + 56 * - 19 + 25 THEN 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL 59 * + - NULLIF ( + 47, + 76 / - 82 + 73 * - 89 ) - + SUM( DISTINCT - ( + ( 89 ) ) ) AS col2
----
-2684

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL 59 * + - NULLIF ( + 47, + 76 / - 82 + 73 * - 89 ) - + SUM ( DISTINCT - ( + ( 89 ) ) ) AS col2
----
-2684

query I rowsort
SELECT DISTINCT + + ( - 4 ) col1
----
-4

query II rowsort
SELECT ALL + + 12, 91 AS col2
----
12
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT + CAST( + + 70 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-8182
SELECT + CAST ( + + 70 AS INTEGER )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT + - SUM( 29 ) + COUNT( * ) + - 9 * + - 76 * 54 AS col1
----
36908

skipif mysql # not compatible
query I rowsort label-8183
SELECT + - SUM ( 29 ) + COUNT ( * ) + - 9 * + - 76 * 54 AS col1
----
36908

onlyif mysql # aggregate syntax: 
query II rowsort label-8184
SELECT ALL + - 35 col1, - 73 * - - 69 + + 22 * - - 60 - COUNT( * ) AS col0
----
-35
-3718

skipif mysql # not compatible
query II rowsort label-8184
SELECT ALL + - 35 col1, - 73 * - - 69 + + 22 * - - 60 - COUNT ( * ) AS col0
----
-35
-3718

query I rowsort
SELECT DISTINCT - 94 * + 67 * - - 91 + 96
----
-573022

query I rowsort
SELECT + + 89 * + 10
----
890

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT + + 83 * - COUNT( * ) * + 73
----
-6059

skipif mysql # not compatible
query I rowsort label-8187
SELECT + + 83 * - COUNT ( * ) * + 73
----
-6059

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8188
SELECT + 32 + + 47 DIV + SUM( 78 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8188
SELECT + 32 + + 47 / + SUM ( 78 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT DISTINCT 6 * COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT 6 * COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT + 90 * 44 * - COUNT( * ) + - 82 + - 29 * + 98 col2
----
-6884

skipif mysql # not compatible
query I rowsort label-8190
SELECT + 90 * 44 * - COUNT ( * ) + - 82 + - 29 * + 98 col2
----
-6884

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT - NULLIF ( COUNT( * ), - MAX( ALL 83 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8191
SELECT - NULLIF ( COUNT ( * ), - MAX ( ALL 83 ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 0 + + + 77 * 47 col1
----
3619

query I rowsort
SELECT ALL + 42 + - - 96 * + 22 col1
----
2154

onlyif mysql # DIV for integer division: 
query II rowsort label-8194
SELECT DISTINCT + + 23 DIV + - 98 * + 58 AS col0, 36 AS col1
----
0
36

skipif mysql # not compatible
query II rowsort label-8194
SELECT DISTINCT + + 23 / + - 98 * + 58 AS col0, 36 AS col1
----
0
36

query I rowsort
SELECT ALL - 67 + 80
----
13

query I rowsort
SELECT + 12 * + - 78 AS col2
----
-936

query I rowsort
SELECT 26 + + 28 * COALESCE ( 65, - 14 + 44 ) * - 12 + + 22 AS col0
----
-21792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8198
SELECT ALL 65 + - 28 DIV ( SUM( ALL + COALESCE ( 53, 54 ) ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL 65 + - 28 / ( SUM ( ALL + COALESCE ( 53, 54 ) ) ) AS col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8199
SELECT DISTINCT - 18 DIV - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT - 18 / - COUNT ( * )
----
18

query I rowsort
SELECT 18 + + 68
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ALL + NULLIF ( + 82, + ( - + 55 ) ) + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL + NULLIF ( + 82, + ( - + 55 ) ) + + COUNT ( * )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8202
SELECT 95 + + 47 DIV + 8
----
100

skipif mysql # not compatible
query I rowsort label-8202
SELECT 95 + + 47 / + 8
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT 5 + - 22 + + + COUNT( * ) + - + 31
----
-47

skipif mysql # not compatible
query I rowsort label-8203
SELECT 5 + - 22 + + + COUNT ( * ) + - + 31
----
-47

query II rowsort
SELECT ALL 17 AS col1, - 70
----
17
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-8205
SELECT ALL 19, + 49 + + MAX( - - 21 ) AS col2
----
19
70

skipif mysql # not compatible
query II rowsort label-8205
SELECT ALL 19, + 49 + + MAX ( - - 21 ) AS col2
----
19
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT ALL + 10 - + + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL + 10 - + + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT ( - NULLIF ( 62, - 85 ) ) + - - COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-8207
SELECT ( - NULLIF ( 62, - 85 ) ) + - - COUNT ( * ) AS col2
----
-61

query I rowsort
SELECT 11 * + 47 AS col1
----
517

query I rowsort
SELECT 26 + - - 19
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT - 62 * + 71 + 23 + SUM( ALL + + 24 ) * - 10 + 98 * 38
----
-895

skipif mysql # not compatible
query I rowsort label-8210
SELECT - 62 * + 71 + 23 + SUM ( ALL + + 24 ) * - 10 + 98 * 38
----
-895

query I rowsort
SELECT ALL 13 * 95 AS col0
----
1235

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8212
SELECT ALL - 10 AS col0, CAST( - - 3 AS SIGNED )
----
-10
3

skipif mysql # not compatible
query II rowsort label-8212
SELECT ALL - 10 AS col0, CAST ( - - 3 AS INTEGER )
----
-10
3

query II rowsort
SELECT + 49, - ( 89 ) AS col0
----
49
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT ALL - COUNT( 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL - COUNT ( 92 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8215
SELECT DISTINCT - COUNT( * ) * 75 DIV + 10 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT - COUNT ( * ) * 75 / + 10 AS col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8216
SELECT 55 DIV + - 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8216
SELECT 55 / + - 72 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8217
SELECT 57 * + COUNT( * ) AS col2, + 66 + - - 98 AS col0
----
57
164

skipif mysql # not compatible
query II rowsort label-8217
SELECT 57 * + COUNT ( * ) AS col2, + 66 + - - 98 AS col0
----
57
164

query I rowsort
SELECT ALL - 56 * - 52 * - + ( + + 53 ) * + 60 + + 48 AS col2
----
-9260112

query I rowsort
SELECT 46 + + + 83 * 10 AS col2
----
876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8220
SELECT - 93 DIV 34 AS col2, ( + CAST( + COUNT( * ) AS SIGNED ) )
----
-2
1

skipif mysql # not compatible
query II rowsort label-8220
SELECT - 93 / 34 AS col2, ( + CAST ( + COUNT ( * ) AS INTEGER ) )
----
-2
1

query I rowsort
SELECT ALL ( + 65 ) + 87
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT DISTINCT 51 + - - 64 - + NULLIF ( 19, - COUNT( * ) * + COUNT( * ) + - 96 / + 55 ) * 66 * 51 col2
----
-63839

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT 51 + - - 64 - + NULLIF ( 19, - COUNT ( * ) * + COUNT ( * ) + - 96 / + 55 ) * 66 * 51 col2
----
-63839

query II rowsort
SELECT ALL - 85 AS col2, 31 * 77 AS col2
----
-85
2387

query I rowsort
SELECT DISTINCT + 4 + + 0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT ALL + COUNT( * ) + - 92 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL + COUNT ( * ) + - 92 AS col1
----
-91

query I rowsort
SELECT DISTINCT - - 17 + + ( - 37 ) - - - 57 AS col0
----
-77

query I rowsort
SELECT ALL + 71 + - 54 * + 18
----
-901

query I rowsort
SELECT DISTINCT 17 + + + 42 - + + 99 col0
----
-40

query II rowsort
SELECT - 47 AS col2, - 50 - + CASE 28 WHEN - + 56 THEN + 29 ELSE NULL END - - 10 / 69 AS col1
----
-47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT DISTINCT + 38 + - - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT + 38 + - - COUNT ( * )
----
39

query I rowsort
SELECT ALL - 22 * + 20 AS col2
----
-440

query I rowsort
SELECT 41 * - ( 64 ) + 38 - - 5 * + 24
----
-2466

query II rowsort
SELECT 53 col2, 39 AS col0
----
53
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8234
SELECT DISTINCT + 89 * - CAST( NULL AS SIGNED ) * - NULLIF ( 95, - 67 ) + + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT + 89 * - CAST ( NULL AS INTEGER ) * - NULLIF ( 95, - 67 ) + + 31 AS col1
----
NULL

query I rowsort
SELECT 95 * - + 80
----
-7600

query I rowsort
SELECT DISTINCT 21 * - 50 AS col1
----
-1050

onlyif mysql # aggregate syntax: 
query II rowsort label-8237
SELECT DISTINCT COUNT( * ) - + 11, + 68 AS col1
----
-10
68

skipif mysql # not compatible
query II rowsort label-8237
SELECT DISTINCT COUNT ( * ) - + 11, + 68 AS col1
----
-10
68

onlyif mysql # DIV for integer division: 
query II rowsort label-8238
SELECT DISTINCT 9 DIV + 63, + 43 DIV 85 AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-8238
SELECT DISTINCT 9 / + 63, + 43 / 85 AS col0
----
0
0

query I rowsort
SELECT 11 * 21 AS col2
----
231

query II rowsort
SELECT 46 * 64 AS col2, + 89 AS col2
----
2944
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8241
SELECT ALL 44 DIV 48 col1
----
0

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL 44 / 48 col1
----
0

query I rowsort
SELECT ( + 88 ) * + - 28 AS col2
----
-2464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8243
SELECT COUNT( * ) + COALESCE ( + - 77, - - 50, + + 45 ) + 67 DIV + + 71
----
-76

skipif mysql # not compatible
query I rowsort label-8243
SELECT COUNT ( * ) + COALESCE ( + - 77, - - 50, + + 45 ) + 67 / + + 71
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8244
SELECT COUNT( * ) * + 40, - 33 DIV - 35 AS col2
----
40
0

skipif mysql # not compatible
query II rowsort label-8244
SELECT COUNT ( * ) * + 40, - 33 / - 35 AS col2
----
40
0

query I rowsort
SELECT 71 * - - 97 - + - 74
----
6961

query I rowsort
SELECT - 34 * + 82 + - + 90 - - 6
----
-2872

query I rowsort
SELECT DISTINCT - ( - + 42 )
----
42

query I rowsort
SELECT 48 - - 0 - - 45
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT + COALESCE ( 71, 70 + + COUNT( * ) + - 73 * 69 ) * - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-8249
SELECT + COALESCE ( 71, 70 + + COUNT ( * ) + - 73 * 69 ) * - COUNT ( * )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8250
SELECT DISTINCT - + 81 * + + 20, 61 * + MIN( 53 ) + + + 70 DIV - 94 * 43 AS col2
----
-1620
3233

skipif mysql # not compatible
query II rowsort label-8250
SELECT DISTINCT - + 81 * + + 20, 61 * + MIN ( 53 ) + + + 70 / - 94 * 43 AS col2
----
-1620
3233

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT DISTINCT + 84 * + 38 + + - ( + CASE 98 WHEN - - 94 / - COUNT( * ) + 40 THEN + 14 ELSE NULL END ) * 14 + 33 * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT + 84 * + 38 + + - ( + CASE 98 WHEN - - 94 / - COUNT ( * ) + 40 THEN + 14 ELSE NULL END ) * 14 + 33 * + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL + 48 * + + 10 - 82 * COUNT( * ) + COUNT( * ) AS col2
----
399

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL + 48 * + + 10 - 82 * COUNT ( * ) + COUNT ( * ) AS col2
----
399

query I rowsort
SELECT ALL - 11 * 73 col1
----
-803

onlyif mysql # aggregate syntax: 
query II rowsort label-8254
SELECT + COUNT( 74 ) AS col1, 27 AS col0
----
1
27

skipif mysql # not compatible
query II rowsort label-8254
SELECT + COUNT ( 74 ) AS col1, 27 AS col0
----
1
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8255
SELECT DISTINCT 52 * COUNT( * ) * - 99 + 23 * - + 0 DIV - COUNT( * ) + 72 + - 88 AS col2
----
-5164

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT 52 * COUNT ( * ) * - 99 + 23 * - + 0 / - COUNT ( * ) + 72 + - 88 AS col2
----
-5164

query I rowsort
SELECT DISTINCT - + 89 * + 7 + + 55 AS col1
----
-568

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT + 19 * + - COUNT( * ) + 99 + - - 16
----
96

skipif mysql # not compatible
query I rowsort label-8257
SELECT + 19 * + - COUNT ( * ) + 99 + - - 16
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8258
SELECT ALL - - 39 * COALESCE ( + - 90, - + CASE + + 5 WHEN - + 73 + + COUNT( * ) THEN - 88 * 65 - 24 END * + 33 + 32 ) DIV - 90 - 46 col1
----
-7

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL - - 39 * COALESCE ( + - 90, - + CASE + + 5 WHEN - + 73 + + COUNT ( * ) THEN - 88 * 65 - 24 END * + 33 + 32 ) / - 90 - 46 col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8259
SELECT + 63 DIV 38
----
1

skipif mysql # not compatible
query I rowsort label-8259
SELECT + 63 / 38
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8260
SELECT - - 29 * - 17 + + 34 DIV + - 99 * - COUNT( * ) * COUNT( * ) AS col0
----
-493

skipif mysql # not compatible
query I rowsort label-8260
SELECT - - 29 * - 17 + + 34 / + - 99 * - COUNT ( * ) * COUNT ( * ) AS col0
----
-493

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8261
SELECT ALL - - CAST( NULL AS DECIMAL ) * - 18 + + 58 AS col1, + COUNT( * ) + - 55 AS col0
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-8261
SELECT ALL - - CAST ( NULL AS REAL ) * - 18 + + 58 AS col1, + COUNT ( * ) + - 55 AS col0
----
NULL
-54

query I rowsort
SELECT - - 79 + 38
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8263
SELECT ALL 69 DIV - - 44 DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL 69 / - - 44 / + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8264
SELECT - 43 * - + 36 + - COALESCE ( - - 14, + CASE - 59 WHEN - COUNT( * ) THEN NULL WHEN 86 * 64 THEN SUM( ALL 86 ) ELSE NULL END + 92 DIV + 97 ) * - CAST( MAX( - 4 ) AS SIGNED )
----
1492

skipif mysql # not compatible
query I rowsort label-8264
SELECT - 43 * - + 36 + - COALESCE ( - - 14, + CASE - 59 WHEN - COUNT ( * ) THEN NULL WHEN 86 * 64 THEN SUM ( ALL 86 ) ELSE NULL END + 92 / + 97 ) * - CAST ( MAX ( - 4 ) AS INTEGER )
----
1492

query I rowsort
SELECT ALL - + 35 - 93 AS col1
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-8266
SELECT + 51 + - 50 + ( - + COALESCE ( - 28, + ( + 28 ) * 86 ) ) DIV 90 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8266
SELECT + 51 + - 50 + ( - + COALESCE ( - 28, + ( + 28 ) * 86 ) ) / 90 AS col1
----
1

query I rowsort
SELECT DISTINCT - 92 - - 76
----
-16

query I rowsort
SELECT ALL ( + 65 ) AS col1
----
65

query I rowsort
SELECT + 45 + + ( + 51 )
----
96

query I rowsort
SELECT - 56 * 92
----
-5152

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT DISTINCT 68 * + COUNT( * ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT 68 * + COUNT ( * ) AS col1
----
68

query II rowsort
SELECT 47 AS col2, + 56 * - 23 AS col1
----
47
-1288

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8273
SELECT ALL 3 * 78 DIV + COUNT( - 44 ), + 56 + + + 38 + COALESCE ( + COUNT( * ), - 97 ) - - COUNT( * ) DIV COUNT( * ) AS col2
----
234
96

skipif mysql # not compatible
query II rowsort label-8273
SELECT ALL 3 * 78 / + COUNT ( - 44 ), + 56 + + + 38 + COALESCE ( + COUNT ( * ), - 97 ) - - COUNT ( * ) / COUNT ( * ) AS col2
----
234
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8274
SELECT + 9 DIV + NULLIF ( - - CAST( - - 28 AS SIGNED ), - 59 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8274
SELECT + 9 / + NULLIF ( - - CAST ( - - 28 AS INTEGER ), - 59 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8275
SELECT ALL - 75 * - ( + + CAST( - + 36 AS SIGNED ) ) AS col0
----
-2700

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL - 75 * - ( + + CAST ( - + 36 AS INTEGER ) ) AS col0
----
-2700

query I rowsort
SELECT - NULLIF ( - - 81, 96 ) AS col0
----
-81

query I rowsort
SELECT ALL 67 * ( + 38 ) AS col1
----
2546

query I rowsort
SELECT + 78 * - + 69
----
-5382

query I rowsort
SELECT + 66 + - 83 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT + ( COUNT( * ) ) - 4 * 82
----
-327

skipif mysql # not compatible
query I rowsort label-8280
SELECT + ( COUNT ( * ) ) - 4 * 82
----
-327

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8281
SELECT + 43 DIV + - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-8281
SELECT + 43 / + - COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8282
SELECT ALL 84 DIV - 37 + + COUNT( * ) AS col1, 12 DIV - - 86
----
-1
0

skipif mysql # not compatible
query II rowsort label-8282
SELECT ALL 84 / - 37 + + COUNT ( * ) AS col1, 12 / - - 86
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8283
SELECT ( - COUNT( + 35 ) ), - 51 AS col2
----
-1
-51

skipif mysql # not compatible
query II rowsort label-8283
SELECT ( - COUNT ( + 35 ) ), - 51 AS col2
----
-1
-51

query I rowsort
SELECT - - 70 * + + 99
----
6930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8285
SELECT ALL - COUNT( * ) DIV ( - - 85 ) * - COALESCE ( 58, - + 82 ) + 52 DIV 16
----
3

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL - COUNT ( * ) / ( - - 85 ) * - COALESCE ( 58, - + 82 ) + 52 / 16
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8286
SELECT - COUNT( * ) DIV - + 43 + + 65 + - + 92 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8286
SELECT - COUNT ( * ) / - + 43 + + 65 + - + 92 AS col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8287
SELECT ALL + SUM( ALL 81 ) DIV - COUNT( - 99 ) - 21
----
-102

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL + SUM ( ALL 81 ) / - COUNT ( - 99 ) - 21
----
-102

query II rowsort
SELECT + + 78 AS col0, 46 * - 49 + + 72
----
78
-2182

query I rowsort
SELECT ALL - 15 * - 3 AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8290
SELECT - 71 * - 13 + + MAX( + 49 ) + + 96 + - 96 * + + COUNT( * ) + + - 28 + 50 DIV - 79 * + NULLIF ( 37, - 30 )
----
944

skipif mysql # not compatible
query I rowsort label-8290
SELECT - 71 * - 13 + + MAX ( + 49 ) + + 96 + - 96 * + + COUNT ( * ) + + - 28 + 50 / - 79 * + NULLIF ( 37, - 30 )
----
944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8291
SELECT ALL + 94 * 96 * + 10 + + CASE - - 16 WHEN + 2 THEN NULL ELSE + 59 * - - 91 + NULLIF ( 85, 63 * + CAST( + 25 AS SIGNED ) ) END * 88 + - 85 * + 66
----
564582

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL + 94 * 96 * + 10 + + CASE - - 16 WHEN + 2 THEN NULL ELSE + 59 * - - 91 + NULLIF ( 85, 63 * + CAST ( + 25 AS INTEGER ) ) END * 88 + - 85 * + 66
----
564582

query I rowsort
SELECT DISTINCT + + 46 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT ALL + - 94 * 23 * COUNT( * ) + + + 21 + + - ( - CASE - 34 WHEN - 93 THEN + 10 WHEN - 42 THEN NULL ELSE - COUNT( * ) END ) * 9 + 71
----
-2079

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL + - 94 * 23 * COUNT ( * ) + + + 21 + + - ( - CASE - 34 WHEN - 93 THEN + 10 WHEN - 42 THEN NULL ELSE - COUNT ( * ) END ) * 9 + 71
----
-2079

query I rowsort
SELECT + - 72 * + - 25 + 59
----
1859

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL MIN( DISTINCT - - 62 ) * COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL MIN ( DISTINCT - - 62 ) * COUNT ( * )
----
62

query I rowsort
SELECT + + ( - + 22 ) * + + 9 col0
----
-198

query I rowsort
SELECT - + 44 + + 74 * + 66 - + 41
----
4799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8298
SELECT ALL 74 * + 7 + 80 + 16 + 53 * CAST( + 87 AS SIGNED ) + + 52 * 65 * + 6 + 67 * + NULLIF ( 12, - ( - NULLIF ( 10, + 60 ) ) * 53 ) AS col2
----
26309

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL 74 * + 7 + 80 + 16 + 53 * CAST ( + 87 AS INTEGER ) + + 52 * 65 * + 6 + 67 * + NULLIF ( 12, - ( - NULLIF ( 10, + 60 ) ) * 53 ) AS col2
----
26309

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT - COUNT( ALL ( - - 57 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8299
SELECT - COUNT ( ALL ( - - 57 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT - ( COUNT( * ) ) * 68 * - + 68 + - 58 AS col0
----
4566

skipif mysql # not compatible
query I rowsort label-8300
SELECT - ( COUNT ( * ) ) * 68 * - + 68 + - 58 AS col0
----
4566

query I rowsort
SELECT ALL + + 31 col2
----
31

query I rowsort
SELECT - 0 * + 61
----
0

query II rowsort
SELECT ALL + - 97, 4 * - 81 AS col0
----
-97
-324

query I rowsort
SELECT DISTINCT + - 62 * 6 AS col2
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT ALL + 51 * COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL + 51 * COUNT ( * )
----
51

query I rowsort
SELECT - 56 * + 86
----
-4816

query I rowsort
SELECT ALL - 79 * - - 73 AS col0
----
-5767

query I rowsort
SELECT - 33 * + 90
----
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT + MIN( DISTINCT 41 ) * - 7 AS col1
----
-287

skipif mysql # not compatible
query I rowsort label-8309
SELECT + MIN ( DISTINCT 41 ) * - 7 AS col1
----
-287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8310
SELECT ALL CAST( + 55 AS SIGNED ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL CAST ( + 55 AS INTEGER ) AS col1
----
55

query I rowsort
SELECT ALL + 43 * 61
----
2623

query I rowsort
SELECT DISTINCT - CASE + 73 WHEN COALESCE ( + 11, 52 + + + 98 + - + 9 ) + + + 25 THEN NULL WHEN - - 49 THEN 87 - ( 62 ) END * 70 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 34 * - - 84 * - 62 AS col0
----
-177072

query I rowsort
SELECT - 3 * 74 * + + 55 * - 72
----
879120

query I rowsort
SELECT DISTINCT ( - + 34 )
----
-34

query I rowsort
SELECT DISTINCT 90 + 70 * - 91
----
-6280

query I rowsort
SELECT - 49 + + 85 AS col0
----
36

query I rowsort
SELECT - 67 * - ( - 61 )
----
-4087

query I rowsort
SELECT - 25 + + - 36 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT + ( + MAX( 3 ) ) - - 29 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8320
SELECT + ( + MAX ( 3 ) ) - - 29 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT DISTINCT 54 + + - COUNT( * ) + - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT 54 + + - COUNT ( * ) + - COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT ALL 13 + - + COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL 13 + - + COUNT ( * ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT ALL 89 + - 43 * + MIN( ALL 5 ) AS col0
----
-126

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL 89 + - 43 * + MIN ( ALL 5 ) AS col0
----
-126

query I rowsort
SELECT DISTINCT - + 10 + - 25 + - 48 AS col1
----
-83

query I rowsort
SELECT DISTINCT - 86 + + + 94
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8326
SELECT ALL + 53 + - 54 - + CAST( - - 48 AS SIGNED ) AS col0, 31 * 12
----
-49
372

skipif mysql # not compatible
query II rowsort label-8326
SELECT ALL + 53 + - 54 - + CAST ( - - 48 AS INTEGER ) AS col0, 31 * 12
----
-49
372

query I rowsort
SELECT + ( - 8 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT + - MIN( ALL + 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-8328
SELECT + - MIN ( ALL + 90 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8329
SELECT NULLIF ( - + 20, - CAST( NULL AS SIGNED ) * - - MIN( - 41 ) + COALESCE ( - 63, 86 ) ) DIV - 2
----
10

skipif mysql # not compatible
query I rowsort label-8329
SELECT NULLIF ( - + 20, - CAST ( NULL AS INTEGER ) * - - MIN ( - 41 ) + COALESCE ( - 63, 86 ) ) / - 2
----
10

query I rowsort
SELECT - 71 - + 43 AS col0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT COUNT( * ) * - COUNT( * ) + 71
----
70

skipif mysql # not compatible
query I rowsort label-8331
SELECT COUNT ( * ) * - COUNT ( * ) + 71
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT ALL 68 - - COALESCE ( - 21, - 36 * - - 47 * - 68 ) + + + MIN( - 8 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL 68 - - COALESCE ( - 21, - 36 * - - 47 * - 68 ) + + + MIN ( - 8 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT ALL + 57 * - + NULLIF ( + 13, - 26 ) - + ( - 0 ) + - - SUM( + 28 )
----
-713

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL + 57 * - + NULLIF ( + 13, - 26 ) - + ( - 0 ) + - - SUM ( + 28 )
----
-713

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT DISTINCT COUNT( DISTINCT - 68 ) - + 77
----
-76

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT COUNT ( DISTINCT - 68 ) - + 77
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT DISTINCT - NULLIF ( 21, + 26 ) * - COUNT( * ) * + COUNT( * ) + - 80 * 84 * ( - 83 ) * 2 col1
----
1115541

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT - NULLIF ( 21, + 26 ) * - COUNT ( * ) * + COUNT ( * ) + - 80 * 84 * ( - 83 ) * 2 col1
----
1115541

query I rowsort
SELECT ALL + 66 * + 48
----
3168

query I rowsort
SELECT ALL - NULLIF ( - ( 90 ), + - 56 + + 75 / + 9 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT ALL - MAX( - COALESCE ( - + 36, 87 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL - MAX ( - COALESCE ( - + 36, 87 ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT 20 + + MAX( ALL + 99 ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-8339
SELECT 20 + + MAX ( ALL + 99 ) AS col0
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8340
SELECT ALL 65 AS col0, CAST( CAST( - 34 AS SIGNED ) AS SIGNED ) AS col0
----
65
-34

skipif mysql # not compatible
query II rowsort label-8340
SELECT ALL 65 AS col0, CAST ( CAST ( - 34 AS INTEGER ) AS INTEGER ) AS col0
----
65
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8341
SELECT - CAST( NULL AS SIGNED ) * + COALESCE ( - 24, - 69, - 79, - - COUNT( * ) * 14 ) + + 3 + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT - CAST ( NULL AS INTEGER ) * + COALESCE ( - 24, - 69, - 79, - - COUNT ( * ) * 14 ) + + 3 + + 14
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8342
SELECT ALL 67 AS col1, 29 + - COUNT( * )
----
67
28

skipif mysql # not compatible
query II rowsort label-8342
SELECT ALL 67 AS col1, 29 + - COUNT ( * )
----
67
28

query I rowsort
SELECT 36 * 73
----
2628

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT 39 + - MAX( + + 34 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8344
SELECT 39 + - MAX ( + + 34 ) AS col1
----
5

query I rowsort
SELECT 49 + 83
----
132

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8346
SELECT CAST( NULL AS DECIMAL ) / - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8346
SELECT CAST ( NULL AS REAL ) / - 95 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8347
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - CASE - - 81 WHEN ( 97 ) THEN + 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - CASE - - 81 WHEN ( 97 ) THEN + 38 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8348
SELECT 39 DIV 1
----
39

skipif mysql # not compatible
query I rowsort label-8348
SELECT 39 / 1
----
39

query I rowsort
SELECT 64 * - - 36
----
2304

query II rowsort
SELECT ALL 99, + 0 AS col1
----
99
0

query I rowsort
SELECT DISTINCT + 57 + + 27 + + 1 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT MAX( + 55 ) - + 24
----
31

skipif mysql # not compatible
query I rowsort label-8352
SELECT MAX ( + 55 ) - + 24
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT - ( CASE - 50 WHEN + 91 + MIN( ALL + ( 32 ) ) + 79 THEN - + 33 * + 97 * - 90 ELSE 81 END ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-8353
SELECT - ( CASE - 50 WHEN + 91 + MIN ( ALL + ( 32 ) ) + 79 THEN - + 33 * + 97 * - 90 ELSE 81 END ) AS col1
----
-81

query I rowsort
SELECT 26 + - 42 + + - 68
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT ALL - - MAX( DISTINCT - 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL - - MAX ( DISTINCT - 34 ) AS col0
----
-34

query I rowsort
SELECT ALL - + ( 89 ) - - 16 * 93
----
1399

query I rowsort
SELECT DISTINCT - - 34 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT 64 * + - SUM( 6 ) + + 85
----
-299

skipif mysql # not compatible
query I rowsort label-8358
SELECT 64 * + - SUM ( 6 ) + + 85
----
-299

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT CASE WHEN 5 IS NOT NULL THEN + ( - - 27 ) END + + - COALESCE ( - 27, 18 + + + COUNT( * ) + + + 77 + - COALESCE ( + CASE 38 WHEN 14 THEN 42 * - 58 END, + 91 ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8359
SELECT CASE WHEN 5 IS NOT NULL THEN + ( - - 27 ) END + + - COALESCE ( - 27, 18 + + + COUNT ( * ) + + + 77 + - COALESCE ( + CASE 38 WHEN 14 THEN 42 * - 58 END, + 91 ) ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL + - COUNT( * ) * - 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL + - COUNT ( * ) * - 28 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT MAX( NULLIF ( 37, + 36 ) ) * 4 + + 58 + + - 83 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-8361
SELECT MAX ( NULLIF ( 37, + 36 ) ) * 4 + + 58 + + - 83 AS col0
----
123

query I rowsort
SELECT DISTINCT + - 53 * + 39
----
-2067

query II rowsort
SELECT + 0 AS col0, + 32
----
0
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT - 11 * 16 * COUNT( * ) + + + ( + ( COUNT( * ) ) ) + 23
----
-152

skipif mysql # not compatible
query I rowsort label-8364
SELECT - 11 * 16 * COUNT ( * ) + + + ( + ( COUNT ( * ) ) ) + 23
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT ALL - + MAX( + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL - + MAX ( + 69 )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8366
SELECT - 46 + CAST( + 39 AS SIGNED ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8366
SELECT - 46 + CAST ( + 39 AS INTEGER ) AS col2
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-8367
SELECT DISTINCT 45 DIV 39 AS col2, 70
----
1
70

skipif mysql # not compatible
query II rowsort label-8367
SELECT DISTINCT 45 / 39 AS col2, 70
----
1
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8368
SELECT DISTINCT - 53 AS col2, - COUNT( * )
----
-53
-1

skipif mysql # not compatible
query II rowsort label-8368
SELECT DISTINCT - 53 AS col2, - COUNT ( * )
----
-53
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8369
SELECT DISTINCT - 91, COUNT( * ) AS col2
----
-91
1

skipif mysql # not compatible
query II rowsort label-8369
SELECT DISTINCT - 91, COUNT ( * ) AS col2
----
-91
1

query I rowsort
SELECT 30 * + - ( + 3 )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-8371
SELECT ALL 92 DIV - 22 col2
----
-4

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL 92 / - 22 col2
----
-4

query II rowsort
SELECT DISTINCT - 68 AS col1, - 48 - 74 AS col1
----
-68
-122

query I rowsort
SELECT ALL + 16 + 38
----
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8374
SELECT 49 DIV 75 AS col2, + CAST( - + 6 AS SIGNED ) DIV + 59 + + - 95
----
0
-95

skipif mysql # not compatible
query II rowsort label-8374
SELECT 49 / 75 AS col2, + CAST ( - + 6 AS INTEGER ) / + 59 + + - 95
----
0
-95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8375
SELECT ALL 44 + ( + CAST( + - 60 AS SIGNED ) ) DIV - - 60 + + 76 DIV + 56
----
44

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL 44 + ( + CAST ( + - 60 AS INTEGER ) ) / - - 60 + + 76 / + 56
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8376
SELECT 20 - + + CAST( NULL AS SIGNED ) + + + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8376
SELECT 20 - + + CAST ( NULL AS INTEGER ) + + + 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT ALL ( 2 ) + + 54 + 57 + - COUNT( * ) * + + COUNT( - 20 ) AS col2
----
112

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL ( 2 ) + + 54 + 57 + - COUNT ( * ) * + + COUNT ( - 20 ) AS col2
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8378
SELECT NULLIF ( + ( + 69 ), ( - 4 ) ) * + 51 + + - 89 AS col2, CAST( - 66 AS SIGNED ) * ( 55 )
----
3430
-3630

skipif mysql # not compatible
query II rowsort label-8378
SELECT NULLIF ( + ( + 69 ), ( - 4 ) ) * + 51 + + - 89 AS col2, CAST ( - 66 AS INTEGER ) * ( 55 )
----
3430
-3630

query I rowsort
SELECT ALL 38 * 23
----
874

query II rowsort
SELECT - 79 AS col1, 88
----
-79
88

query I rowsort
SELECT ALL 14 + - 97 col0
----
-83

query II rowsort
SELECT DISTINCT 83, + 47 AS col0
----
83
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8383
SELECT ALL CAST( - 58 AS SIGNED ) + - - ( AVG ( ALL + 55 ) ) * + CASE + - 83 WHEN - NULLIF ( 70, - COUNT( * ) * + + CASE WHEN + 43 <= ( NULL ) THEN - 94 ELSE NULL END ) THEN NULL WHEN 7 THEN 41 * CAST( - 84 / + 39 AS DECIMAL ) END / - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL CAST ( - 58 AS INTEGER ) + - - ( AVG ( ALL + 55 ) ) * + CASE + - 83 WHEN - NULLIF ( 70, - COUNT ( * ) * + + CASE WHEN + 43 <= ( NULL ) THEN - 94 ELSE NULL END ) THEN NULL WHEN 7 THEN 41 * CAST ( - 84 / + 39 AS REAL ) END / - 71 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8384
SELECT ALL MAX( - - 97 ) col0, + 73 * + 27
----
97
1971

skipif mysql # not compatible
query II rowsort label-8384
SELECT ALL MAX ( - - 97 ) col0, + 73 * + 27
----
97
1971

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT - CASE - + 26 WHEN - ( + + CASE 24 WHEN 75 / - - COUNT( * ) THEN + - 5 END ) * 74 THEN NULL WHEN - 60 THEN NULL ELSE + + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-8385
SELECT - CASE - + 26 WHEN - ( + + CASE 24 WHEN 75 / - - COUNT ( * ) THEN + - 5 END ) * 74 THEN NULL WHEN - 60 THEN NULL ELSE + + COUNT ( * ) END
----
-1

query I rowsort
SELECT DISTINCT + 72 + + NULLIF ( - 24, - 89 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ALL + 54 * + CASE + 50 WHEN 22 - 77 THEN NULL WHEN 58 * + 9 / + + COUNT( * ) THEN + COALESCE ( + 36, + 38 ) * + 71 + 67 WHEN - 42 * + 93 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL + 54 * + CASE + 50 WHEN 22 - 77 THEN NULL WHEN 58 * + 9 / + + COUNT ( * ) THEN + COALESCE ( + 36, + 38 ) * + 71 + 67 WHEN - 42 * + 93 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + - 53 + + - 58
----
-111

query II rowsort
SELECT + 49 AS col1, ( + 27 )
----
49
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8390
SELECT + COUNT( * ) * + CASE + + 41 WHEN - 86 * + 41 / COUNT( * ) THEN NULL WHEN 89 THEN NULL ELSE + 81 * + - CASE - + 90 WHEN - - 79 THEN 76 WHEN - 4 * + CAST( NULL AS SIGNED ) + COUNT( * ) THEN NULL END + + COUNT( * ) * - 58 - 1 END * + NULLIF ( 14 * - 2 + + COUNT( * ), 73 ) + + ( - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8390
SELECT + COUNT ( * ) * + CASE + + 41 WHEN - 86 * + 41 / COUNT ( * ) THEN NULL WHEN 89 THEN NULL ELSE + 81 * + - CASE - + 90 WHEN - - 79 THEN 76 WHEN - 4 * + CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN NULL END + + COUNT ( * ) * - 58 - 1 END * + NULLIF ( 14 * - 2 + + COUNT ( * ), 73 ) + + ( - 21 )
----
NULL

query I rowsort
SELECT - COALESCE ( 40, + 79 ) AS col2
----
-40

query II rowsort
SELECT 59 AS col2, 46 AS col0
----
59
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT DISTINCT COUNT( * ) * 16
----
16

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT COUNT ( * ) * 16
----
16

query II rowsort
SELECT DISTINCT + 65 - 81, 8 AS col0
----
-16
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ALL - 90 * - + CASE + 43 WHEN 65 THEN - 32 WHEN 22 * - CASE - - SUM( DISTINCT 45 ) WHEN 56 THEN + ( 55 ) WHEN 66 THEN NULL WHEN 65 / 49 THEN 14 + + COUNT( * ) END THEN MIN( 34 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL - 90 * - + CASE + 43 WHEN 65 THEN - 32 WHEN 22 * - CASE - - SUM ( DISTINCT 45 ) WHEN 56 THEN + ( 55 ) WHEN 66 THEN NULL WHEN 65 / 49 THEN 14 + + COUNT ( * ) END THEN MIN ( 34 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + - 1 * + ( - + 5 )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8397
SELECT DISTINCT 78, 95 + - 91 + COALESCE ( + 30, ( 38 ), + 63 * + 24 + + 97 * + 17 + COUNT( * ) * COUNT( * ) ) col2
----
78
34

skipif mysql # not compatible
query II rowsort label-8397
SELECT DISTINCT 78, 95 + - 91 + COALESCE ( + 30, ( 38 ), + 63 * + 24 + + 97 * + 17 + COUNT ( * ) * COUNT ( * ) ) col2
----
78
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8398
SELECT ALL - 52 DIV - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL - 52 / - 86 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8399
SELECT - 94 / 80 * MIN( + + 15 ) + 16 * + ( + CAST( NULL AS SIGNED ) ) / - 81 * + - 99 - + + COUNT( * ) * + - 2 * CASE - ( MAX( ALL CASE + 54 WHEN + 96 * 71 THEN + 33 ELSE - 99 * 11 END ) ) WHEN + COUNT( * ) + 19 THEN NULL ELSE 16 END + - 14 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8399
SELECT - 94 / 80 * MIN ( + + 15 ) + 16 * + ( + CAST ( NULL AS INTEGER ) ) / - 81 * + - 99 - + + COUNT ( * ) * + - 2 * CASE - ( MAX ( ALL CASE + 54 WHEN + 96 * 71 THEN + 33 ELSE - 99 * 11 END ) ) WHEN + COUNT ( * ) + 19 THEN NULL ELSE 16 END + - 14 col1
----
NULL

query I rowsort
SELECT - 80 * 73 + + - 40 AS col2
----
-5880

query II rowsort
SELECT DISTINCT + 61 AS col1, 27 AS col0
----
61
27

query II rowsort
SELECT ALL + 76 AS col0, - 5
----
76
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT ALL + - COUNT( - 36 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL + - COUNT ( - 36 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT - + CASE + + ( + COUNT( * ) ) WHEN - SUM( ALL 20 ) + + - COUNT( * ) THEN NULL WHEN + 78 THEN NULL ELSE - COUNT( + 42 ) END - 62 - 95 + + NULLIF ( 44 + 96 * + 48, 51 / COUNT( * ) ) * 36
----
167316

skipif mysql # not compatible
query I rowsort label-8404
SELECT - + CASE + + ( + COUNT ( * ) ) WHEN - SUM ( ALL 20 ) + + - COUNT ( * ) THEN NULL WHEN + 78 THEN NULL ELSE - COUNT ( + 42 ) END - 62 - 95 + + NULLIF ( 44 + 96 * + 48, 51 / COUNT ( * ) ) * 36
----
167316

query I rowsort
SELECT - 74 * - 85
----
6290

query I rowsort
SELECT ALL 9 * - 47 + - 9 + + 56
----
-376

query I rowsort
SELECT ALL - 1 * + 27 + - 77 + - - 69
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT DISTINCT - COUNT( * ) * - 80
----
80

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT - COUNT ( * ) * - 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT DISTINCT - COUNT( * ) * 89 + + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT - COUNT ( * ) * 89 + + COUNT ( * )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT ALL ( 41 ) * + 24 + - ( ( + COUNT( * ) ) )
----
983

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL ( 41 ) * + 24 + - ( ( + COUNT ( * ) ) )
----
983

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT DISTINCT - ( - 78 ) * - ( COUNT( * ) ) col1
----
-78

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT - ( - 78 ) * - ( COUNT ( * ) ) col1
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-8412
SELECT + COUNT( + 20 ) - + 35 AS col1, - 15 col1
----
-34
-15

skipif mysql # not compatible
query II rowsort label-8412
SELECT + COUNT ( + 20 ) - + 35 AS col1, - 15 col1
----
-34
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8413
SELECT 57 * + COUNT( * ) * ( + MIN( 63 ) ) + + COUNT( * ) DIV + - COUNT( * )
----
3590

skipif mysql # not compatible
query I rowsort label-8413
SELECT 57 * + COUNT ( * ) * ( + MIN ( 63 ) ) + + COUNT ( * ) / + - COUNT ( * )
----
3590

query I rowsort
SELECT 21 * - 88 * - + 18 - 86 AS col2
----
33178

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT - COUNT( * ) + - 62 + - - 83 + + - 37 * 74
----
-2718

skipif mysql # not compatible
query I rowsort label-8415
SELECT - COUNT ( * ) + - 62 + - - 83 + + - 37 * 74
----
-2718

onlyif mysql # DIV for integer division: 
query I rowsort label-8416
SELECT DISTINCT 73 DIV - - 12 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT 73 / - - 12 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT + 96 + - MIN( - - 87 )
----
9

skipif mysql # not compatible
query I rowsort label-8417
SELECT + 96 + - MIN ( - - 87 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT ALL 99 * + COUNT( * ) - 71
----
28

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL 99 * + COUNT ( * ) - 71
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8419
SELECT DISTINCT 37 DIV + - COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT 37 / + - COUNT ( * ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL 60 - COUNT( * ) - - 62 AS col2
----
121

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL 60 - COUNT ( * ) - - 62 AS col2
----
121

onlyif mysql # DIV for integer division: 
query II rowsort label-8421
SELECT ALL 72 * 96 AS col1, 60 DIV - - 65
----
6912
0

skipif mysql # not compatible
query II rowsort label-8421
SELECT ALL 72 * 96 AS col1, 60 / - - 65
----
6912
0

query I rowsort
SELECT + ( 87 ) + + 24 col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT DISTINCT - 55 * - ( + + COUNT( * ) ) + CASE - ( + 46 ) WHEN - MAX( ALL 53 ) THEN SUM( DISTINCT - 37 ) * - 64 - + 89 - + 40 END + - ( 97 + + 87 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT - 55 * - ( + + COUNT ( * ) ) + CASE - ( + 46 ) WHEN - MAX ( ALL 53 ) THEN SUM ( DISTINCT - 37 ) * - 64 - + 89 - + 40 END + - ( 97 + + 87 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT - ( + CASE - 70 WHEN SUM( - 97 ) THEN 51 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8424
SELECT - ( + CASE - 70 WHEN SUM ( - 97 ) THEN 51 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8425
SELECT - CASE CASE - + 14 WHEN + MAX( ALL + + NULLIF ( - CASE WHEN 1 IS NOT NULL THEN NULL ELSE - - 69 END, - + 87 ) ) THEN NULL WHEN + 3 / - + 65 THEN NULLIF ( COUNT( * ), 64 + + 83 / ( + ( ( 87 ) ) + - CAST( 91 + + COUNT( * ) * 86 AS SIGNED ) ) ) ELSE NULL END WHEN 97 THEN 61 ELSE NULL END + 76 * + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT - CASE CASE - + 14 WHEN + MAX ( ALL + + NULLIF ( - CASE WHEN 1 IS NOT NULL THEN NULL ELSE - - 69 END, - + 87 ) ) THEN NULL WHEN + 3 / - + 65 THEN NULLIF ( COUNT ( * ), 64 + + 83 / ( + ( ( 87 ) ) + - CAST ( 91 + + COUNT ( * ) * 86 AS INTEGER ) ) ) ELSE NULL END WHEN 97 THEN 61 ELSE NULL END + 76 * + 39 AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 0, - 65 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT ALL + SUM( + + 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL + SUM ( + + 7 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT + - 64 + 10 + + COUNT( * ) * + 59
----
5

skipif mysql # not compatible
query I rowsort label-8428
SELECT + - 64 + 10 + + COUNT ( * ) * + 59
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8429
SELECT + + 89 * + - 72 + CASE ( + 21 ) WHEN - 3 * + COUNT( * ) * + 68 - + + CAST( NULLIF ( + 13, - - ( 44 ) + 66 ) AS SIGNED ) * 66 THEN NULL WHEN MAX( - 4 ) THEN + 3 / 26 WHEN + 57 - 14 THEN NULL END + - 27 * - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8429
SELECT + + 89 * + - 72 + CASE ( + 21 ) WHEN - 3 * + COUNT ( * ) * + 68 - + + CAST ( NULLIF ( + 13, - - ( 44 ) + 66 ) AS INTEGER ) * 66 THEN NULL WHEN MAX ( - 4 ) THEN + 3 / 26 WHEN + 57 - 14 THEN NULL END + - 27 * - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT - + 84 + COALESCE ( + - 96, COUNT( * ) ) AS col1
----
-180

skipif mysql # not compatible
query I rowsort label-8430
SELECT - + 84 + COALESCE ( + - 96, COUNT ( * ) ) AS col1
----
-180

query I rowsort
SELECT DISTINCT - ( - - 29 ) + + 59 * - 76
----
-4513

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8432
SELECT ALL - - COUNT( * ) / + SUM( + + 88 ) + 60 * + 22 * 84 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL - - COUNT ( * ) / + SUM ( + + 88 ) + 60 * + 22 * 84 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT - CAST( - - NULLIF ( 76, ( - 26 ) * - - 87 * + + 22 + + + 82 ) AS SIGNED ) + COALESCE ( 74, + 89 - 13 + + CAST( NULL AS SIGNED ) ) + 64 * - 46 AS col0
----
-2946

skipif mysql # not compatible
query I rowsort label-8433
SELECT - CAST ( - - NULLIF ( 76, ( - 26 ) * - - 87 * + + 22 + + + 82 ) AS INTEGER ) + COALESCE ( 74, + 89 - 13 + + CAST ( NULL AS INTEGER ) ) + 64 * - 46 AS col0
----
-2946

query I rowsort
SELECT ALL + + 41 col0
----
41

query I rowsort
SELECT - 81 + - + 24 AS col0
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8436
SELECT ALL 48 DIV + 74 * + 54 + - 97 * - 77 + COUNT( * )
----
7470

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL 48 / + 74 * + 54 + - 97 * - 77 + COUNT ( * )
----
7470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8437
SELECT ALL + COUNT( * ) DIV + 81 + + + 42 + + + COUNT( * ) * - 47 col1
----
-5

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL + COUNT ( * ) / + 81 + + + 42 + + + COUNT ( * ) * - 47 col1
----
-5

query I rowsort
SELECT - 80 * + 18
----
-1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8439
SELECT + 50 * + + CAST( NULL AS SIGNED ) * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT + 50 * + + CAST ( NULL AS INTEGER ) * + 23
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8440
SELECT SUM( DISTINCT - 56 ) DIV 95 + 6 - + - COALESCE ( + 65, SUM( + 33 ) + - 56 )
----
71

skipif mysql # not compatible
query I rowsort label-8440
SELECT SUM ( DISTINCT - 56 ) / 95 + 6 - + - COALESCE ( + 65, SUM ( + 33 ) + - 56 )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8441
SELECT DISTINCT + COALESCE ( - + 18, + CASE NULLIF ( + 76, + 89 * - + 89 DIV + 68 ) WHEN 43 + + 22 THEN - 98 + + 11 * - CAST( - 65 AS SIGNED ) DIV 77 ELSE 26 + - COUNT( * ) END )
----
-18

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT + COALESCE ( - + 18, + CASE NULLIF ( + 76, + 89 * - + 89 / + 68 ) WHEN 43 + + 22 THEN - 98 + + 11 * - CAST ( - 65 AS INTEGER ) / 77 ELSE 26 + - COUNT ( * ) END )
----
-18

query I rowsort
SELECT ALL 84 * - - 68
----
5712

query I rowsort
SELECT 71 * - + 74 AS col0
----
-5254

query I rowsort
SELECT DISTINCT - 81 * - 28
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT ALL - 63 * COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL - 63 * COUNT ( * )
----
-63

query I rowsort
SELECT 54 - - 38
----
92

query I rowsort
SELECT 90 * 66
----
5940

query I rowsort
SELECT ALL - 54 * - 98
----
5292

query I rowsort
SELECT 61 * - + 16
----
-976

query II rowsort
SELECT 63 AS col0, + 11
----
63
11

onlyif mysql # DIV for integer division: 
query I rowsort label-8451
SELECT - 13 DIV - 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8451
SELECT - 13 / - 60 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8452
SELECT ALL 52 DIV ( + - COUNT( * ) ) * + 55 + 24 DIV + 82 AS col2
----
-2860

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL 52 / ( + - COUNT ( * ) ) * + 55 + 24 / + 82 AS col2
----
-2860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8453
SELECT 70 - + COUNT( DISTINCT - + 23 ) AS col0, + SUM( ALL - + CAST( NULL AS SIGNED ) ) * 12
----
69
NULL

skipif mysql # not compatible
query II rowsort label-8453
SELECT 70 - + COUNT ( DISTINCT - + 23 ) AS col0, + SUM ( ALL - + CAST ( NULL AS INTEGER ) ) * 12
----
69
NULL

query I rowsort
SELECT - 40 - 30 col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8455
SELECT + COALESCE ( 92, - - 83 ) / - + 77 - + - 35 + CAST( NULL AS SIGNED ) / - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT + COALESCE ( 92, - - 83 ) / - + 77 - + - 35 + CAST ( NULL AS INTEGER ) / - 49
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8456
SELECT + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) / - 22 * - 43 + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8456
SELECT + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) / - 22 * - 43 + - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT ALL - COUNT( * ) * + 12 + 80 col2
----
68

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL - COUNT ( * ) * + 12 + 80 col2
----
68

query I rowsort
SELECT 70 + 0 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT DISTINCT + SUM( 44 ) + + ( COUNT( 3 ) ) + - 49 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT + SUM ( 44 ) + + ( COUNT ( 3 ) ) + - 49 AS col1
----
-4

query I rowsort
SELECT ALL 82 + - + 95 AS col1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8461
SELECT DISTINCT + 0 + 9 + 70 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT + 0 + 9 + 70 * + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT + 30 + + - 30 AS col0
----
0

query I rowsort
SELECT DISTINCT - 66 + - 73
----
-139

query II rowsort
SELECT DISTINCT 47 AS col2, - 38 + + - 89 AS col2
----
47
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT DISTINCT 53 + CASE - + 38 WHEN - 84 / 54 * - 48 THEN NULL WHEN + 53 * + MAX( + 71 ) THEN + 73 END + - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT 53 + CASE - + 38 WHEN - 84 / 54 * - 48 THEN NULL WHEN + 53 * + MAX ( + 71 ) THEN + 73 END + - 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8466
SELECT - MAX( ALL + ( 84 ) ) DIV + 78 - NULLIF ( COUNT( - - 12 ), + 40 * - + 32 ) + 84 + 96 + + - 86 + 0 + ( + 94 ) + 53 * - 4
----
-26

skipif mysql # not compatible
query I rowsort label-8466
SELECT - MAX ( ALL + ( 84 ) ) / + 78 - NULLIF ( COUNT ( - - 12 ), + 40 * - + 32 ) + 84 + 96 + + - 86 + 0 + ( + 94 ) + 53 * - 4
----
-26

query I rowsort
SELECT 55 * - 1
----
-55

query II rowsort
SELECT ALL + 57 - + + 72 AS col0, - 98 col1
----
-15
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT NULLIF ( - 5, + 13 * - + COUNT( DISTINCT 98 ) / - 44 * - - 40 - 52 + + 9 ) - 57 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-8469
SELECT NULLIF ( - 5, + 13 * - + COUNT ( DISTINCT 98 ) / - 44 * - - 40 - 52 + + 9 ) - 57 AS col2
----
-62

query I rowsort
SELECT ALL ( - 67 ) * 69 AS col1
----
-4623

query I rowsort
SELECT DISTINCT 96 * - 13 * ( + - 26 )
----
32448

onlyif mysql # DIV for integer division: 
query I rowsort label-8472
SELECT DISTINCT + 13 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT + 13 / 87
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8473
SELECT ALL + 22 DIV 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL + 22 / 27 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8474
SELECT 95 * - - CASE + ( + CAST( NULL AS SIGNED ) ) WHEN + CAST( NULL AS SIGNED ) THEN + 64 ELSE - 11 + COUNT( * ) END * + 25 - ( + - 68 ) AS col0
----
-23682

skipif mysql # not compatible
query I rowsort label-8474
SELECT 95 * - - CASE + ( + CAST ( NULL AS INTEGER ) ) WHEN + CAST ( NULL AS INTEGER ) THEN + 64 ELSE - 11 + COUNT ( * ) END * + 25 - ( + - 68 ) AS col0
----
-23682

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT 70 * - COALESCE ( + 44, - + CASE COUNT( * ) WHEN 38 THEN + 20 END )
----
-3080

skipif mysql # not compatible
query I rowsort label-8475
SELECT 70 * - COALESCE ( + 44, - + CASE COUNT ( * ) WHEN 38 THEN + 20 END )
----
-3080

onlyif mysql # DIV for integer division: 
query I rowsort label-8476
SELECT 6 * 66 DIV 57 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8476
SELECT 6 * 66 / 57 AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8477
SELECT - COUNT( * ) * - 29 DIV - 43 + + 42 + 83
----
125

skipif mysql # not compatible
query I rowsort label-8477
SELECT - COUNT ( * ) * - 29 / - 43 + + 42 + 83
----
125

query II rowsort
SELECT 80 + + 89, 41 * 71 + NULLIF ( - 75, + - 2 ) AS col1
----
169
2836

query I rowsort
SELECT ALL - NULLIF ( + 9, + 53 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ALL - COUNT( * ) * - 44 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL - COUNT ( * ) * - 44 AS col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8481
SELECT - 11 + - COUNT( * ) AS col0, 4
----
-12
4

skipif mysql # not compatible
query II rowsort label-8481
SELECT - 11 + - COUNT ( * ) AS col0, 4
----
-12
4

query I rowsort
SELECT + 20 * + - 28 AS col1
----
-560

query I rowsort
SELECT DISTINCT NULLIF ( + + 57, 97 ) AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8484
SELECT - 38 + - - 12 AS col0, MIN( DISTINCT - 46 ) + - 7 DIV - 55 * 61 + - - 25 AS col0
----
-26
-21

skipif mysql # not compatible
query II rowsort label-8484
SELECT - 38 + - - 12 AS col0, MIN ( DISTINCT - 46 ) + - 7 / - 55 * 61 + - - 25 AS col0
----
-26
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT - 86 + + 38 + - - 74 * - COUNT( * ) + - 35 AS col2
----
-157

skipif mysql # not compatible
query I rowsort label-8485
SELECT - 86 + + 38 + - - 74 * - COUNT ( * ) + - 35 AS col2
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT DISTINCT + 11 + + - COUNT( * ) + - 8 + + 54
----
56

skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT + 11 + + - COUNT ( * ) + - 8 + + 54
----
56

query I rowsort
SELECT + 4 * - 30 * - ( NULLIF ( - 87, 34 ) ) AS col2
----
-10440

onlyif mysql # DIV for integer division: 
query II rowsort label-8488
SELECT 84 DIV + + 13, + 97 col1
----
6
97

skipif mysql # not compatible
query II rowsort label-8488
SELECT 84 / + + 13, + 97 col1
----
6
97

query II rowsort
SELECT - 87 + - 97, - 25 AS col1
----
-184
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT + 36 + - - COUNT( * ) + + - COALESCE ( - 78, - 24 ) * 31 - - 58 * - COUNT( * ) * COUNT( * ) + 54
----
2451

skipif mysql # not compatible
query I rowsort label-8490
SELECT + 36 + - - COUNT ( * ) + + - COALESCE ( - 78, - 24 ) * 31 - - 58 * - COUNT ( * ) * COUNT ( * ) + 54
----
2451

query I rowsort
SELECT 33 * + 69 * - + 1
----
-2277

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT MIN( + - 95 ) + 21 col2
----
-74

skipif mysql # not compatible
query I rowsort label-8492
SELECT MIN ( + - 95 ) + 21 col2
----
-74

query I rowsort
SELECT ALL + - 77 + + 57 + - 47
----
-67

query I rowsort
SELECT ALL + ( - - 89 ) col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8495
SELECT COUNT( * ) * 61 col2, COUNT( * ) + + - ( COALESCE ( + 65, - + 41 DIV + 29 * + COUNT( * ) ) )
----
61
-64

skipif mysql # not compatible
query II rowsort label-8495
SELECT COUNT ( * ) * 61 col2, COUNT ( * ) + + - ( COALESCE ( + 65, - + 41 / + 29 * + COUNT ( * ) ) )
----
61
-64

query I rowsort
SELECT DISTINCT 55 + - 10
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8497
SELECT ALL 59 * - + 69 + - 31 DIV + 77 AS col1, + ( - MIN( ALL - 76 ) ) AS col2
----
-4071
76

skipif mysql # not compatible
query II rowsort label-8497
SELECT ALL 59 * - + 69 + - 31 / + 77 AS col1, + ( - MIN ( ALL - 76 ) ) AS col2
----
-4071
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT DISTINCT 80 * + 5 * COUNT( * )
----
400

skipif mysql # not compatible
query I rowsort label-8498
SELECT DISTINCT 80 * + 5 * COUNT ( * )
----
400

onlyif mysql # DIV for integer division: 
query I rowsort label-8499
SELECT 68 DIV + 59 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8499
SELECT 68 / + 59 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8500
SELECT + MAX( - 88 ) * + NULLIF ( 33, - COALESCE ( 24, CAST( + ( + 95 ) AS SIGNED ) ) * - 27 / + 43 ) AS col2
----
-2904

skipif mysql # not compatible
query I rowsort label-8500
SELECT + MAX ( - 88 ) * + NULLIF ( 33, - COALESCE ( 24, CAST ( + ( + 95 ) AS INTEGER ) ) * - 27 / + 43 ) AS col2
----
-2904

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT DISTINCT ( - ( + COUNT( * ) ) ) * + 19 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT ( - ( + COUNT ( * ) ) ) * + 19 AS col1
----
-19

query I rowsort
SELECT ALL + 26 * 67
----
1742

query I rowsort
SELECT + ( CASE 6 WHEN - 43 THEN - 43 END ) * + - 74 - 71 + - 47
----
NULL

query II rowsort
SELECT DISTINCT + 16 AS col0, - 81
----
16
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-8505
SELECT ALL 8 DIV + 72 * - 78 col0
----
0

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL 8 / + 72 * - 78 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT + COALESCE ( + 84, COUNT( * ) ) * + 35 * - - COUNT( - + 12 ) - COUNT( * ) AS col1
----
2939

skipif mysql # not compatible
query I rowsort label-8506
SELECT + COALESCE ( + 84, COUNT ( * ) ) * + 35 * - - COUNT ( - + 12 ) - COUNT ( * ) AS col1
----
2939

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8507
SELECT - CAST( NULL AS SIGNED ) + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8507
SELECT - CAST ( NULL AS INTEGER ) + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT + COALESCE ( - - 22, + COUNT( * ) + 95 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-8508
SELECT + COALESCE ( - - 22, + COUNT ( * ) + 95 ) AS col2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT ALL 72 DIV 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL 72 / 79 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT COUNT( DISTINCT + 4 )
----
1

skipif mysql # not compatible
query I rowsort label-8510
SELECT COUNT ( DISTINCT + 4 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT ALL + CASE WHEN NOT 18 BETWEEN + 66 AND - 25 + 93 THEN - 67 ELSE COUNT( * ) * + - 9 * 42 * - AVG ( DISTINCT - - 46 ) + 33 + + COUNT( * ) END AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL + CASE WHEN NOT 18 BETWEEN + 66 AND - 25 + 93 THEN - 67 ELSE COUNT ( * ) * + - 9 * 42 * - AVG ( DISTINCT - - 46 ) + 33 + + COUNT ( * ) END AS col2
----
-67

query I rowsort
SELECT ALL + 62 * 31 * + 0 + - - 23
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8513
SELECT - - 79 DIV - + 23 + - 19
----
-22

skipif mysql # not compatible
query I rowsort label-8513
SELECT - - 79 / - + 23 + - 19
----
-22

query I rowsort
SELECT ALL + - COALESCE ( + + 49, + 67 ) AS col1
----
-49

query I rowsort
SELECT DISTINCT - 24 + + + 5 AS col1
----
-19

query I rowsort
SELECT - 58 * + 89
----
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT - + MAX( - ( + - 29 ) ) + + + 18 - - 90 - 91 + - ( - 12 ) + - + NULLIF ( - ( - + 13 ), - + COUNT( * ) ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-8517
SELECT - + MAX ( - ( + - 29 ) ) + + + 18 - - 90 - 91 + - ( - 12 ) + - + NULLIF ( - ( - + 13 ), - + COUNT ( * ) ) AS col1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8518
SELECT ALL + 33 + - 11 * + 19 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL + 33 + - 11 * + 19 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8519
SELECT - + 52 - - ( + + 69 ) + - 64 * + 20 * 56 * - 18 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8519
SELECT - + 52 - - ( + + 69 ) + - 64 * + 20 * 56 * - 18 * - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 89 AS col2, + 18
----
-89
18

query I rowsort
SELECT DISTINCT + 83 * - - 91 * 58 col1
----
438074

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8522
SELECT - - 77 - CASE - CAST( - + 42 AS SIGNED ) WHEN COALESCE ( + - 21, - - COALESCE ( - AVG ( ALL 25 ), + - 96 + + ( 47 ) * + 22 + - 5 ), 95 ) THEN NULL ELSE 16 END DIV + 14
----
76

skipif mysql # not compatible
query I rowsort label-8522
SELECT - - 77 - CASE - CAST ( - + 42 AS INTEGER ) WHEN COALESCE ( + - 21, - - COALESCE ( - AVG ( ALL 25 ), + - 96 + + ( 47 ) * + 22 + - 5 ), 95 ) THEN NULL ELSE 16 END / + 14
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT ALL + 72 + + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL + 72 + + COUNT ( * )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8524
SELECT + - CAST( 78 AS SIGNED ) + - COUNT( ALL - 92 )
----
-79

skipif mysql # not compatible
query I rowsort label-8524
SELECT + - CAST ( 78 AS INTEGER ) + - COUNT ( ALL - 92 )
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-8525
SELECT - 15, 70 * 67 + + COUNT( * ) AS col2
----
-15
4691

skipif mysql # not compatible
query II rowsort label-8525
SELECT - 15, 70 * 67 + + COUNT ( * ) AS col2
----
-15
4691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8526
SELECT - 4 + + - CAST( NULL AS SIGNED ) + + 48 + - 96 / 94 + - + 61 / COALESCE ( + 14, - 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT - 4 + + - CAST ( NULL AS INTEGER ) + + 48 + - 96 / 94 + - + 61 / COALESCE ( + 14, - 22 )
----
NULL

query I rowsort
SELECT ALL + - 74 * 18 AS col0
----
-1332

query I rowsort
SELECT DISTINCT + 89 - + 1 * - 5 * + 4 col0
----
109

query II rowsort
SELECT 26 AS col1, - 12 AS col1
----
26
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT - 80 * + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-8530
SELECT - 80 * + COUNT ( * )
----
-80

query I rowsort
SELECT ALL COALESCE ( - ( - 58 ), 88 + + 51 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8532
SELECT DISTINCT CASE - 40 WHEN - 49 THEN + 17 - 0 * - 21 END AS col1, COUNT( * ) * 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-8532
SELECT DISTINCT CASE - 40 WHEN - 49 THEN + 17 - 0 * - 21 END AS col1, COUNT ( * ) * 23
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT - MAX( ALL - + 75 ) + - 3 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8533
SELECT - MAX ( ALL - + 75 ) + - 3 AS col2
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8534
SELECT ALL 59, 27 - - CAST( NULL AS DECIMAL ) - + + 15 AS col0, - - NULLIF ( - 49, - - ( + - 68 ) ) + 33 AS col0
----
59
NULL
-16

skipif mysql # not compatible
query III rowsort label-8534
SELECT ALL 59, 27 - - CAST ( NULL AS REAL ) - + + 15 AS col0, - - NULLIF ( - 49, - - ( + - 68 ) ) + 33 AS col0
----
59
NULL
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT - SUM( ALL + - 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8535
SELECT - SUM ( ALL + - 61 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT + 50 * - 69 * + - COUNT( * )
----
3450

skipif mysql # not compatible
query I rowsort label-8536
SELECT + 50 * - 69 * + - COUNT ( * )
----
3450

query I rowsort
SELECT - 61 + - 70 AS col0
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT - COUNT( * ) * 42
----
-42

skipif mysql # not compatible
query I rowsort label-8538
SELECT - COUNT ( * ) * 42
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT + CASE 51 WHEN - 19 + ( + 8 ) THEN - - 5 WHEN + 91 + - + 8 * 40 + COUNT( * ) * + + 34 THEN NULL ELSE - 2 - 60 END AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-8539
SELECT + CASE 51 WHEN - 19 + ( + 8 ) THEN - - 5 WHEN + 91 + - + 8 * 40 + COUNT ( * ) * + + 34 THEN NULL ELSE - 2 - 60 END AS col0
----
-62

query I rowsort
SELECT ALL + ( + + 76 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8541
SELECT CAST( 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-8541
SELECT CAST ( 39 AS INTEGER )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8542
SELECT + 2 DIV 32
----
0

skipif mysql # not compatible
query I rowsort label-8542
SELECT + 2 / 32
----
0

query I rowsort
SELECT ALL 8 * 22 AS col2
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT - ( - - 98 ) * + COALESCE ( 44, COUNT( * ) + + ( - - 67 ) * ( - 76 ), + 97 ) + - - 63 + - + COUNT( * )
----
-4250

skipif mysql # not compatible
query I rowsort label-8544
SELECT - ( - - 98 ) * + COALESCE ( 44, COUNT ( * ) + + ( - - 67 ) * ( - 76 ), + 97 ) + - - 63 + - + COUNT ( * )
----
-4250

onlyif mysql # aggregate syntax: 
query II rowsort label-8545
SELECT ALL + COUNT( * ) AS col1, - 65
----
1
-65

skipif mysql # not compatible
query II rowsort label-8545
SELECT ALL + COUNT ( * ) AS col1, - 65
----
1
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8546
SELECT ALL + 18 DIV - - 89 + - COUNT( * ) DIV - - 45 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL + 18 / - - 89 + - COUNT ( * ) / - - 45 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8547
SELECT + MAX( - ( - 22 ) ) DIV + 33 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8547
SELECT + MAX ( - ( - 22 ) ) / + 33 + - COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8548
SELECT ALL 8 DIV 71 + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL 8 / 71 + - 30
----
-30

query II rowsort
SELECT DISTINCT + 38, 86 AS col0
----
38
86

query I rowsort
SELECT + 36 + + + 15 AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8551
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) * - ( 41 ) * - AVG ( ALL CASE + - 81 WHEN - - 40 THEN NULL ELSE + 97 END ) + + - 15 + + - COUNT( * ) - + 86 + - + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - ( 41 ) * - AVG ( ALL CASE + - 81 WHEN - - 40 THEN NULL ELSE + 97 END ) + + - 15 + + - COUNT ( * ) - + 86 + - + 35
----
NULL

query I rowsort
SELECT NULLIF ( + + 74, + + 41 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT ALL - - 73 * COUNT( * ) + + 39
----
112

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL - - 73 * COUNT ( * ) + + 39
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT + COUNT( * ) - + 2 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8554
SELECT + COUNT ( * ) - + 2 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT + MAX( ALL + 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8555
SELECT + MAX ( ALL + 9 ) AS col1
----
9

query I rowsort
SELECT + 73 + - 0
----
73

query I rowsort
SELECT - - 66 * + + NULLIF ( 18, - 71 * + 73 + + - 66 ) - 99 + - 15 AS col0
----
1074

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8558
SELECT ALL - 9 * - COALESCE ( 30, 75 - 47 ) + - 64 DIV COUNT( * ) AS col1
----
206

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL - 9 * - COALESCE ( 30, 75 - 47 ) + - 64 / COUNT ( * ) AS col1
----
206

query II rowsort
SELECT 76, + 91 col2
----
76
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8560
SELECT - + 67 + + + 97 + + + 70 DIV + 57
----
31

skipif mysql # not compatible
query I rowsort label-8560
SELECT - + 67 + + + 97 + + + 70 / + 57
----
31

query I rowsort
SELECT + + 56 + - 84 AS col1
----
-28

query I rowsort
SELECT ALL 34 * - 76
----
-2584

onlyif mysql # aggregate syntax: 
query II rowsort label-8563
SELECT ALL + - COUNT( * ) AS col0, - 87 + - ( + - 35 ) * - + 2
----
-1
-157

skipif mysql # not compatible
query II rowsort label-8563
SELECT ALL + - COUNT ( * ) AS col0, - 87 + - ( + - 35 ) * - + 2
----
-1
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT COALESCE ( SUM( DISTINCT - 56 ), - COUNT( * ) )
----
-56

skipif mysql # not compatible
query I rowsort label-8564
SELECT COALESCE ( SUM ( DISTINCT - 56 ), - COUNT ( * ) )
----
-56

query I rowsort
SELECT - 43 * + 3 + - 73
----
-202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8566
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + 96
----
NULL

query I rowsort
SELECT - 58 + 80
----
22

query I rowsort
SELECT + - 29 * - 38 AS col1
----
1102

onlyif mysql # DIV for integer division: 
query I rowsort label-8569
SELECT DISTINCT - - 10 DIV + 57 * + 13
----
0

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT - - 10 / + 57 * + 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL + NULLIF ( - - 54, + MAX( - 27 ) * - 10 - - 57 + - + ( - 72 ) )
----
54

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL + NULLIF ( - - 54, + MAX ( - 27 ) * - 10 - - 57 + - + ( - 72 ) )
----
54

query I rowsort
SELECT ALL - 75 col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8572
SELECT DISTINCT - COUNT( * ) * 21 / - 16 * + + CASE - + CAST( - 12 AS SIGNED ) WHEN + + 53 * 62 * 44 - - 37 + + - 22 * - 5 THEN NULL WHEN - SUM( 32 ) * + COALESCE ( - SUM( DISTINCT + 95 ), + 29 * 34 + + NULLIF ( 76 + 20 * 53, - COUNT( * ) ), 68 ) - - 8 * ( ( ( 52 ) ) + 23 ) THEN - ( 60 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT - COUNT ( * ) * 21 / - 16 * + + CASE - + CAST ( - 12 AS INTEGER ) WHEN + + 53 * 62 * 44 - - 37 + + - 22 * - 5 THEN NULL WHEN - SUM ( 32 ) * + COALESCE ( - SUM ( DISTINCT + 95 ), + 29 * 34 + + NULLIF ( 76 + 20 * 53, - COUNT ( * ) ), 68 ) - - 8 * ( ( ( 52 ) ) + 23 ) THEN - ( 60 ) END
----
NULL

query I rowsort
SELECT 84 * - 54 AS col0
----
-4536

query I rowsort
SELECT ALL - 35 * + 70
----
-2450

query I rowsort
SELECT 54 * 28 * 56 * + - ( 96 ) * - 69
----
560867328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8576
SELECT 74 DIV + + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8576
SELECT 74 / + + COUNT ( * ) AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8577
SELECT 63 DIV 38 + + 70 col1, + COUNT( * )
----
71
1

skipif mysql # not compatible
query II rowsort label-8577
SELECT 63 / 38 + + 70 col1, + COUNT ( * )
----
71
1

query I rowsort
SELECT 89 + - 46 AS col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8579
SELECT ALL + 64 + - + COUNT( * ) + CAST( - 54 AS SIGNED ) - + 51 * - 91 AS col1
----
4650

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL + 64 + - + COUNT ( * ) + CAST ( - 54 AS INTEGER ) - + 51 * - 91 AS col1
----
4650

query I rowsort
SELECT ALL 54 + - 37
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT ALL 72 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL 72 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8582
SELECT DISTINCT - SUM( - 36 ) DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT - SUM ( - 36 ) / - 66
----
0

query I rowsort
SELECT ALL - 73 * - 14 * 20 * + - 49 AS col0
----
-1001560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8584
SELECT 89 DIV COUNT( DISTINCT - + 53 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-8584
SELECT 89 / COUNT ( DISTINCT - + 53 ) AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8585
SELECT 1 DIV - MIN( + - COALESCE ( + 35, + + 79 ) ) + + 37
----
37

skipif mysql # not compatible
query I rowsort label-8585
SELECT 1 / - MIN ( + - COALESCE ( + 35, + + 79 ) ) + + 37
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT + CASE - 36 WHEN 14 THEN - + 49 WHEN - + 8 / + 68 + - - 28 THEN - COUNT( * ) WHEN + 38 THEN - 19 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8586
SELECT + CASE - 36 WHEN 14 THEN - + 49 WHEN - + 8 / + 68 + - - 28 THEN - COUNT ( * ) WHEN + 38 THEN - 19 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT CASE - + 99 WHEN COUNT( * ) + + 15 * + + 78 THEN + SUM( ALL + 7 ) WHEN 63 THEN NULL END + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8587
SELECT CASE - + 99 WHEN COUNT ( * ) + + 15 * + + 78 THEN + SUM ( ALL + 7 ) WHEN 63 THEN NULL END + 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT ALL + 66 + + 83 - + - ( + 52 ) - + 28 * 84 * COUNT( * ) + + 66 AS col1
----
-2085

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL + 66 + + 83 - + - ( + 52 ) - + 28 * 84 * COUNT ( * ) + + 66 AS col1
----
-2085

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT DISTINCT + + COUNT( * ) - - - 43 col1
----
-42

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT + + COUNT ( * ) - - - 43 col1
----
-42

query I rowsort
SELECT ALL - COALESCE ( + 1, - - 1 ) - 34 AS col1
----
-35

query I rowsort
SELECT DISTINCT - 83 - - - 27 * - 99
----
2590

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT ALL - MIN( + ( + 74 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL - MIN ( + ( + 74 ) )
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-8593
SELECT SUM( - 77 ) AS col0, + COUNT( * )
----
-77
1

skipif mysql # not compatible
query II rowsort label-8593
SELECT SUM ( - 77 ) AS col0, + COUNT ( * )
----
-77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT ALL - ( - COUNT( DISTINCT ( + 87 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL - ( - COUNT ( DISTINCT ( + 87 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT 18 - + + MIN( DISTINCT 23 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8595
SELECT 18 - + + MIN ( DISTINCT 23 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT + - COALESCE ( 80, MAX( + 27 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-8596
SELECT + - COALESCE ( 80, MAX ( + 27 ) )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8597
SELECT ALL - 89 - - MIN( ALL - - 59 ) + + + 87 - - + CAST( NULL AS DECIMAL ) + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL - 89 - - MIN ( ALL - - 59 ) + + + 87 - - + CAST ( NULL AS REAL ) + 65
----
NULL

query I rowsort
SELECT 41 * + + 11 - + - ( - 61 )
----
390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8599
SELECT DISTINCT - 56 * + 12 / CAST( NULL AS SIGNED ) + - - COUNT( * ) + 2 AS col2, + 46 * 8 * + COUNT( 96 ) * + 56
----
NULL
20608

skipif mysql # not compatible
query II rowsort label-8599
SELECT DISTINCT - 56 * + 12 / CAST ( NULL AS INTEGER ) + - - COUNT ( * ) + 2 AS col2, + 46 * 8 * + COUNT ( 96 ) * + 56
----
NULL
20608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8600
SELECT - 23 - - + 80 + ( COALESCE ( 70, 74 + + - 26, - - 98 + + 90 + - MAX( - + 14 ), + 95 * + COUNT( * ) + + 95 + + 81 ) ) * - 99 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8600
SELECT - 23 - - + 80 + ( COALESCE ( 70, 74 + + - 26, - - 98 + + 90 + - MAX ( - + 14 ), + 95 * + COUNT ( * ) + + 95 + + 81 ) ) * - 99 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8601
SELECT + NULLIF ( 56, 9 + + - 51 * + 94 ) * + 37 + - - 85 * - + 38 * + CAST( + MIN( - 42 ) AS SIGNED ) * + 5
----
680372

skipif mysql # not compatible
query I rowsort label-8601
SELECT + NULLIF ( 56, 9 + + - 51 * + 94 ) * + 37 + - - 85 * - + 38 * + CAST ( + MIN ( - 42 ) AS INTEGER ) * + 5
----
680372

query I rowsort
SELECT DISTINCT 97 * + 34 AS col1
----
3298

query I rowsort
SELECT ALL 56 * + 35 AS col0
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT 64 * 10 * + COUNT( * ) * - 27 col1
----
-17280

skipif mysql # not compatible
query I rowsort label-8604
SELECT 64 * 10 * + COUNT ( * ) * - 27 col1
----
-17280

onlyif mysql # DIV for integer division: 
query I rowsort label-8605
SELECT ALL 85 DIV + ( 21 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL 85 / + ( 21 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT - SUM( ALL 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-8606
SELECT - SUM ( ALL 60 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8607
SELECT 9 / - - CAST( NULL AS DECIMAL ) / + + COALESCE ( COUNT( * ), 10 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT 9 / - - CAST ( NULL AS REAL ) / + + COALESCE ( COUNT ( * ), 10 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT DISTINCT 55 + - + COUNT( * ) * - - 19 + - 19 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8608
SELECT DISTINCT 55 + - + COUNT ( * ) * - - 19 + - 19 AS col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8609
SELECT - COUNT( * ) col0, 95
----
-1
95

skipif mysql # not compatible
query II rowsort label-8609
SELECT - COUNT ( * ) col0, 95
----
-1
95

query I rowsort
SELECT 89 * + 26
----
2314

query I rowsort
SELECT ALL 90 + 66 col0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8612
SELECT ALL 77, - NULLIF ( - - CAST( NULL AS SIGNED ), 13 * - - 4 + - + 5 + ( + + CASE - 10 WHEN + SUM( ALL - - 49 ) + ( - AVG ( + 12 ) ) * + COUNT( * ) * + 18 + - 67 THEN - COUNT( * ) ELSE NULL END ) ) AS col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-8612
SELECT ALL 77, - NULLIF ( - - CAST ( NULL AS INTEGER ), 13 * - - 4 + - + 5 + ( + + CASE - 10 WHEN + SUM ( ALL - - 49 ) + ( - AVG ( + 12 ) ) * + COUNT ( * ) * + 18 + - 67 THEN - COUNT ( * ) ELSE NULL END ) ) AS col2
----
77
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8613
SELECT ALL + COALESCE ( + 22, + 43 * + ( + ( - 8 ) ) ) + 45 DIV 57 + + + COUNT( * ) DIV + ( 56 )
----
22

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL + COALESCE ( + 22, + 43 * + ( + ( - 8 ) ) ) + 45 / 57 + + + COUNT ( * ) / + ( 56 )
----
22

query I rowsort
SELECT ALL - 78 * - 76 col1
----
5928

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT MIN( DISTINCT - 5 ) + - 24 + - - 33 * - - 37 * + - 73 AS col1
----
-89162

skipif mysql # not compatible
query I rowsort label-8615
SELECT MIN ( DISTINCT - 5 ) + - 24 + - - 33 * - - 37 * + - 73 AS col1
----
-89162

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT 15 * - - ( COUNT( + 44 ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8616
SELECT 15 * - - ( COUNT ( + 44 ) ) AS col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8617
SELECT + 87 DIV - COUNT( * ) + + + 40 * + + COUNT( * ) AS col1, 61
----
-47
61

skipif mysql # not compatible
query II rowsort label-8617
SELECT + 87 / - COUNT ( * ) + + + 40 * + + COUNT ( * ) AS col1, 61
----
-47
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8618
SELECT 34 DIV 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8618
SELECT 34 / 58 AS col2
----
0

query I rowsort
SELECT 15 * + - 25 * ( - 25 ) AS col0
----
9375

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT ALL + 72 * - NULLIF ( - 64, + 16 * + 45 + + MIN( ALL - + 48 ) - - NULLIF ( - 16, + - ( 19 ) ) ) - 68 AS col1
----
4540

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL + 72 * - NULLIF ( - 64, + 16 * + 45 + + MIN ( ALL - + 48 ) - - NULLIF ( - 16, + - ( 19 ) ) ) - 68 AS col1
----
4540

query I rowsort
SELECT ALL 47 * 73 - 41 * 45 AS col0
----
1586

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT DISTINCT 35 * + 71 + 96 + - - CASE COUNT( * ) WHEN + 47 THEN + COUNT( * ) WHEN - - 17 * COALESCE ( + - 26, 9 * SUM( ALL + - 91 ) + CASE 63 WHEN 85 THEN 43 WHEN - - 2 - - COUNT( * ) THEN - ( + 33 ) END + 64 * - 38 ) * ( 1 + 46 ) + 87 THEN - 72 END + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT DISTINCT 35 * + 71 + 96 + - - CASE COUNT ( * ) WHEN + 47 THEN + COUNT ( * ) WHEN - - 17 * COALESCE ( + - 26, 9 * SUM ( ALL + - 91 ) + CASE 63 WHEN 85 THEN 43 WHEN - - 2 - - COUNT ( * ) THEN - ( + 33 ) END + 64 * - 38 ) * ( 1 + 46 ) + 87 THEN - 72 END + + 82
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8623
SELECT ALL + - ( 94 ) DIV - COUNT( * ) AS col0, + 62 * + COUNT( ALL 44 ) + + - CASE + 58 WHEN 67 DIV 88 THEN NULL WHEN + 35 - + - ( - - 71 ) THEN - 67 END + - CAST( NULL AS SIGNED ) col2
----
94
NULL

skipif mysql # not compatible
query II rowsort label-8623
SELECT ALL + - ( 94 ) / - COUNT ( * ) AS col0, + 62 * + COUNT ( ALL 44 ) + + - CASE + 58 WHEN 67 / 88 THEN NULL WHEN + 35 - + - ( - - 71 ) THEN - 67 END + - CAST ( NULL AS INTEGER ) col2
----
94
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT - - COALESCE ( + - ( 74 ), - 3 * - 42 + - ( 39 ) + - - COUNT( * ) * + 0 * - COUNT( * ) ) * - MAX( DISTINCT 12 ) - - + 57 + + + COUNT( 98 ) AS col1
----
946

skipif mysql # not compatible
query I rowsort label-8624
SELECT - - COALESCE ( + - ( 74 ), - 3 * - 42 + - ( 39 ) + - - COUNT ( * ) * + 0 * - COUNT ( * ) ) * - MAX ( DISTINCT 12 ) - - + 57 + + + COUNT ( 98 ) AS col1
----
946

query I rowsort
SELECT - + COALESCE ( - - 12, + 40 ) * 1 * + 26
----
-312

onlyif mysql # DIV for integer division: 
query I rowsort label-8626
SELECT - 80 DIV - 4
----
20

skipif mysql # not compatible
query I rowsort label-8626
SELECT - 80 / - 4
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8627
SELECT + 49 DIV 36
----
1

skipif mysql # not compatible
query I rowsort label-8627
SELECT + 49 / 36
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT ALL + - COALESCE ( 24, - 77 * 45 * - + 41 - - 44 + COUNT( * ), 25 )
----
-24

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL + - COALESCE ( 24, - 77 * 45 * - + 41 - - 44 + COUNT ( * ), 25 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8629
SELECT + 84 * - COALESCE ( + + ( - 58 ), - CAST( + - COUNT( DISTINCT 55 ) AS SIGNED ), - 72 DIV + + 71 * + 1 + - CASE - 20 WHEN + COUNT( * ) THEN - - 81 END ) + - + NULLIF ( + - 8, - - 2 ) + + 34 + + 86 DIV + 68 AS col2
----
4915

skipif mysql # not compatible
query I rowsort label-8629
SELECT + 84 * - COALESCE ( + + ( - 58 ), - CAST ( + - COUNT ( DISTINCT 55 ) AS INTEGER ), - 72 / + + 71 * + 1 + - CASE - 20 WHEN + COUNT ( * ) THEN - - 81 END ) + - + NULLIF ( + - 8, - - 2 ) + + 34 + + 86 / + 68 AS col2
----
4915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8630
SELECT DISTINCT - NULLIF ( - CAST( + + COUNT( * ) AS SIGNED ), + - 30 ) * - 84 col1
----
-84

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT - NULLIF ( - CAST ( + + COUNT ( * ) AS INTEGER ), + - 30 ) * - 84 col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT - 39 + - - COUNT( * ) - + 23
----
-61

skipif mysql # not compatible
query I rowsort label-8631
SELECT - 39 + - - COUNT ( * ) - + 23
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT - COUNT( DISTINCT + 16 ) * + 58 + 35 + + + 70
----
47

skipif mysql # not compatible
query I rowsort label-8632
SELECT - COUNT ( DISTINCT + 16 ) * + 58 + 35 + + + 70
----
47

query I rowsort
SELECT + NULLIF ( - ( + - CASE 58 WHEN NULLIF ( + NULLIF ( - 21, + 99 ), - 79 * + 92 + 48 ) THEN + 31 WHEN + NULLIF ( + 26, - 52 ) THEN - - 46 * + 24 END ), 69 + - - 84 ) + - 22 * 54
----
NULL

query I rowsort
SELECT + 21 * 68 col2
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT + 79 + - COALESCE ( MIN( ALL + 86 ), + - 24 ) col2
----
-7

skipif mysql # not compatible
query I rowsort label-8635
SELECT + 79 + - COALESCE ( MIN ( ALL + 86 ), + - 24 ) col2
----
-7

query I rowsort
SELECT ALL 85 + + - 39 AS col2
----
46

query I rowsort
SELECT DISTINCT 44 * + 87 * + 43
----
164604

query I rowsort
SELECT ALL 3 + + - 21
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT ALL SUM( ALL - 14 ) * - 2 col1
----
28

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL SUM ( ALL - 14 ) * - 2 col1
----
28

query I rowsort
SELECT + ( - NULLIF ( 82, + 42 ) ) + + 40
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT - COALESCE ( 48, + + COUNT( * ) )
----
-48

skipif mysql # not compatible
query I rowsort label-8641
SELECT - COALESCE ( 48, + + COUNT ( * ) )
----
-48

query I rowsort
SELECT DISTINCT 8 * - 69
----
-552

onlyif mysql # DIV for integer division: 
query II rowsort label-8643
SELECT ALL 72 + - 44 AS col1, + 33 DIV - - 3
----
28
11

skipif mysql # not compatible
query II rowsort label-8643
SELECT ALL 72 + - 44 AS col1, + 33 / - - 3
----
28
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT ALL SUM( + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL SUM ( + 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT + 54 + - + 48 + + + NULLIF ( + 62, NULLIF ( - + 29, 80 / 25 * - 41 ) ) + + - 9 * - - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-8645
SELECT + 54 + - + 48 + + + NULLIF ( + 62, NULLIF ( - + 29, 80 / 25 * - 41 ) ) + + - 9 * - - COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-8646
SELECT + 31 + SUM( 80 ) + - - 59 AS col1, 18 AS col2
----
170
18

skipif mysql # not compatible
query II rowsort label-8646
SELECT + 31 + SUM ( 80 ) + - - 59 AS col1, 18 AS col2
----
170
18

query I rowsort
SELECT ALL 37 + - 4 + - + 66
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT - COUNT( * ) + + 2
----
1

skipif mysql # not compatible
query I rowsort label-8648
SELECT - COUNT ( * ) + + 2
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8649
SELECT + 19 DIV CAST( - 1 AS SIGNED ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-8649
SELECT + 19 / CAST ( - 1 AS INTEGER ) AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8650
SELECT + 95 * CAST( 68 AS SIGNED ) AS col1
----
6460

skipif mysql # not compatible
query I rowsort label-8650
SELECT + 95 * CAST ( 68 AS INTEGER ) AS col1
----
6460

query I rowsort
SELECT ALL + COALESCE ( - 19, 65, + 32 )
----
-19

query I rowsort
SELECT + - 17 * 99 + + + 93
----
-1590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8653
SELECT - CAST( + 13 AS SIGNED ) * - - 57
----
-741

skipif mysql # not compatible
query I rowsort label-8653
SELECT - CAST ( + 13 AS INTEGER ) * - - 57
----
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL 53 * + 62 + + - COUNT( * ) * - 87
----
3373

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL 53 * + 62 + + - COUNT ( * ) * - 87
----
3373

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8655
SELECT DISTINCT + COALESCE ( + - 68, - CAST( NULL AS SIGNED ) ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT + COALESCE ( + - 68, - CAST ( NULL AS INTEGER ) ) AS col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8656
SELECT DISTINCT NULLIF ( + 0, + 56 + + 55 * - COUNT( * ) + - + 91 / + + 91 ) * + COALESCE ( COUNT( * ), 70 ) + - + CAST( + 32 AS SIGNED ) - 88 - + 44 * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8656
SELECT DISTINCT NULLIF ( + 0, + 56 + + 55 * - COUNT ( * ) + - + 91 / + + 91 ) * + COALESCE ( COUNT ( * ), 70 ) + - + CAST ( + 32 AS INTEGER ) - 88 - + 44 * + 82
----
NULL

query I rowsort
SELECT - 66 * - 57 AS col2
----
3762

query I rowsort
SELECT ALL + 76 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT NULLIF ( COUNT( ALL - - ( + 84 ) ), + + 98 * + 32 + + 16 + ( SUM( DISTINCT + 47 ) ) * ( + 42 ) + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8659
SELECT NULLIF ( COUNT ( ALL - - ( + 84 ) ), + + 98 * + 32 + + 16 + ( SUM ( DISTINCT + 47 ) ) * ( + 42 ) + - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT 4 * + + MIN( + - 87 ) + - + 84
----
-432

skipif mysql # not compatible
query I rowsort label-8660
SELECT 4 * + + MIN ( + - 87 ) + - + 84
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT MIN( + - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-8661
SELECT MIN ( + - 85 ) AS col1
----
-85

query I rowsort
SELECT DISTINCT - 59 * + 6 AS col0
----
-354

query I rowsort
SELECT DISTINCT - NULLIF ( + ( - - 22 ), + 91 * + 31 ) * + 24 + 6 * + 83 * - 32 AS col0
----
-16464

query I rowsort
SELECT DISTINCT ( 37 ) col0
----
37

query I rowsort
SELECT ALL + 5 + 68 - + ( - + 37 ) - - 66 * 83 col1
----
5588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8666
SELECT ALL 19 AS col2, 61 * CASE + ( + ( - CAST( 37 AS DECIMAL ) ) ) WHEN ( + - 64 ) * 20 + CAST( + COUNT( * ) AS SIGNED ) THEN - 2 * + 59 - - + COUNT( * ) + + 27 END * - 52 - + COUNT( - 94 )
----
19
NULL

skipif mysql # not compatible
query II rowsort label-8666
SELECT ALL 19 AS col2, 61 * CASE + ( + ( - CAST ( 37 AS REAL ) ) ) WHEN ( + - 64 ) * 20 + CAST ( + COUNT ( * ) AS INTEGER ) THEN - 2 * + 59 - - + COUNT ( * ) + + 27 END * - 52 - + COUNT ( - 94 )
----
19
NULL

query I rowsort
SELECT DISTINCT + 87 - + 22
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT - ( + COUNT( * ) ) + + 92 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-8668
SELECT - ( + COUNT ( * ) ) + + 92 AS col0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8669
SELECT - 77 AS col1, COUNT( * )
----
-77
1

skipif mysql # not compatible
query II rowsort label-8669
SELECT - 77 AS col1, COUNT ( * )
----
-77
1

query I rowsort
SELECT - ( - ( - 6 ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT - ( - NULLIF ( - 53, + 10 + - 3 + + + COUNT( * ) * - + 44 * COUNT( * ) + + 38 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-8671
SELECT - ( - NULLIF ( - 53, + 10 + - 3 + + + COUNT ( * ) * - + 44 * COUNT ( * ) + + 38 ) )
----
-53

query I rowsort
SELECT - 78 * + 31
----
-2418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8673
SELECT ALL ( + + COUNT( * ) ) * - COUNT( * ) + - COUNT( * ) DIV + COUNT( * ) - - 92 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL ( + + COUNT ( * ) ) * - COUNT ( * ) + - COUNT ( * ) / + COUNT ( * ) - - 92 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT DISTINCT COUNT( * ) - - - 72 * + 87 AS col2
----
-6263

skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT COUNT ( * ) - - - 72 * + 87 AS col2
----
-6263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8675
SELECT - NULLIF ( 89, CAST( ( COUNT( * ) ) AS SIGNED ) ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-8675
SELECT - NULLIF ( 89, CAST ( ( COUNT ( * ) ) AS INTEGER ) ) AS col0
----
-89

query I rowsort
SELECT + 59 * + 27 AS col0
----
1593

query I rowsort
SELECT - 12 + - 96 AS col1
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-8678
SELECT 63 DIV + 61 DIV 15 * - 59 * 83 + + + 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-8678
SELECT 63 / + 61 / 15 * - 59 * 83 + + + 83 AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8679
SELECT + 45, COUNT( * ) + 74 - - 66 DIV - ( - + 55 ) AS col0
----
45
76

skipif mysql # not compatible
query II rowsort label-8679
SELECT + 45, COUNT ( * ) + 74 - - 66 / - ( - + 55 ) AS col0
----
45
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT ALL - - CASE 60 WHEN 10 + - + COUNT( * ) THEN 6 * + - 91 ELSE - 76 END
----
-76

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL - - CASE 60 WHEN 10 + - + COUNT ( * ) THEN 6 * + - 91 ELSE - 76 END
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT COUNT( * ) + + 85 - + 17 * - + 56 * - 94
----
-89402

skipif mysql # not compatible
query I rowsort label-8681
SELECT COUNT ( * ) + + 85 - + 17 * - + 56 * - 94
----
-89402

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT + 53 DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8682
SELECT + 53 / + 94 AS col2
----
0

query I rowsort
SELECT ALL + NULLIF ( + 4, 55 ) + + 87 AS col1
----
91

query I rowsort
SELECT + ( + 66 ) * - + 22 + - - 8
----
-1444

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL - + NULLIF ( COUNT( * ), + - 14 - - 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL - + NULLIF ( COUNT ( * ), + - 14 - - 4 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8686
SELECT + 5 * + COUNT( * ) + - 51 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT + 5 * + COUNT ( * ) + - 51 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT DISTINCT 54 + - - SUM( ALL - 19 ) + + 99 AS col0
----
134

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT 54 + - - SUM ( ALL - 19 ) + + 99 AS col0
----
134

query I rowsort
SELECT - 2 + + + 64 AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8689
SELECT DISTINCT - ( COUNT( ALL - - COALESCE ( + + 9, + 6, + 1, CAST( + - 60 AS SIGNED ) ) ) ) + - - 13
----
12

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT - ( COUNT ( ALL - - COALESCE ( + + 9, + 6, + 1, CAST ( + - 60 AS INTEGER ) ) ) ) + - - 13
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8690
SELECT + CASE - - 98 WHEN CAST( 35 AS SIGNED ) / - COUNT( * ) THEN - - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT + CASE - - 98 WHEN CAST ( 35 AS INTEGER ) / - COUNT ( * ) THEN - - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT + - MIN( ALL + + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-8691
SELECT + - MIN ( ALL + + 62 )
----
-62

query I rowsort
SELECT - 69 * 35 AS col2
----
-2415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8693
SELECT - 57 * + 41 + 98 + + NULLIF ( + - 10, + - 56 * 42 * - - ( - CAST( NULL AS SIGNED ) ) * 95 + - + 0 + + + 52 ) AS col2
----
-2249

skipif mysql # not compatible
query I rowsort label-8693
SELECT - 57 * + 41 + 98 + + NULLIF ( + - 10, + - 56 * 42 * - - ( - CAST ( NULL AS INTEGER ) ) * 95 + - + 0 + + + 52 ) AS col2
----
-2249

query II rowsort
SELECT 91 col1, 27
----
91
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8695
SELECT ALL + COUNT( * ) + CAST( - COUNT( * ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL + COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT COUNT( * ) * + - 47 + 23
----
-24

skipif mysql # not compatible
query I rowsort label-8696
SELECT COUNT ( * ) * + - 47 + 23
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT DISTINCT - CASE - + 0 WHEN + 60 THEN COUNT( * ) WHEN + 60 * - 66 THEN + NULLIF ( 15, + 80 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT - CASE - + 0 WHEN + 60 THEN COUNT ( * ) WHEN + 60 * - 66 THEN + NULLIF ( 15, + 80 ) ELSE NULL END
----
NULL

query I rowsort
SELECT 2 + + 88
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8699
SELECT ( + - 10 ) + + - 86 / + 1 * + 53 * - 62 * + 4 + - CAST( NULL AS SIGNED ) + + - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT ( + - 10 ) + + - 86 / + 1 * + 53 * - 62 * + 4 + - CAST ( NULL AS INTEGER ) + + - 56 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8700
SELECT 83 DIV + 8 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8700
SELECT 83 / + 8 AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8701
SELECT 89 + - 30 + + NULLIF ( COALESCE ( + 73, - 41 * CAST( NULL AS SIGNED ), + 34 ), - 14 * - 77 * - + 83 ) * + 7
----
570

skipif mysql # not compatible
query I rowsort label-8701
SELECT 89 + - 30 + + NULLIF ( COALESCE ( + 73, - 41 * CAST ( NULL AS INTEGER ), + 34 ), - 14 * - 77 * - + 83 ) * + 7
----
570

query II rowsort
SELECT - 72 AS col1, 57
----
-72
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT 28 + + + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8703
SELECT 28 + + + COUNT ( * ) AS col0
----
29

query II rowsort
SELECT - 75 AS col2, 30 AS col2
----
-75
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8705
SELECT 37 + + 57 * + 36 * - + 77 * - 89 * 48 / CASE COUNT( * ) WHEN + 45 THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT 37 + + 57 * + 36 * - + 77 * - 89 * 48 / CASE COUNT ( * ) WHEN + 45 THEN - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT 18 * - 79
----
-1422

onlyif mysql # aggregate syntax: 
query II rowsort label-8707
SELECT ALL 85 col2, MAX( - 62 ) + 37 + + 90 AS col2
----
85
65

skipif mysql # not compatible
query II rowsort label-8707
SELECT ALL 85 col2, MAX ( - 62 ) + 37 + + 90 AS col2
----
85
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8708
SELECT DISTINCT + CAST( NULL AS SIGNED ) - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT 34 + 67 + + COUNT( * ) + + 19 + 7 AS col0
----
128

skipif mysql # not compatible
query I rowsort label-8709
SELECT 34 + 67 + + COUNT ( * ) + + 19 + 7 AS col0
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8710
SELECT ALL + 56 * + ( + ( - 19 ) ), + CAST( - NULLIF ( - 19, + 74 ) AS SIGNED ) AS col1
----
-1064
19

skipif mysql # not compatible
query II rowsort label-8710
SELECT ALL + 56 * + ( + ( - 19 ) ), + CAST ( - NULLIF ( - 19, + 74 ) AS INTEGER ) AS col1
----
-1064
19

query I rowsort
SELECT 8 * + 59 AS col0
----
472

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT - 57 * + COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8712
SELECT - 57 * + COUNT ( * ) AS col1
----
-57

query I rowsort
SELECT + 66 + - NULLIF ( - + 33, + - 37 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT DISTINCT COUNT( - 78 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT COUNT ( - 78 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8715
SELECT 83 + + MIN( ALL + 47 ) DIV - - 85 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8715
SELECT 83 + + MIN ( ALL + 47 ) / - - 85 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT DISTINCT + AVG ( + ( 4 ) ) + - + 13 + - + CASE COUNT( * ) WHEN - + COUNT( * ) * + COUNT( * ) * - + COUNT( * ) THEN NULL WHEN 83 * - - COUNT( * ) THEN + 87 / 47 + - 27 * + - 36 + + + 40 END * + NULLIF ( 75, 67 / + 16 + - + 31 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8716
SELECT DISTINCT + AVG ( + ( 4 ) ) + - + 13 + - + CASE COUNT ( * ) WHEN - + COUNT ( * ) * + COUNT ( * ) * - + COUNT ( * ) THEN NULL WHEN 83 * - - COUNT ( * ) THEN + 87 / 47 + - 27 * + - 36 + + + 40 END * + NULLIF ( 75, 67 / + 16 + - + 31 ) col1
----
NULL

query II rowsort
SELECT DISTINCT 84 AS col0, 68 AS col1
----
84
68

query I rowsort
SELECT DISTINCT - 73 * + 20 AS col1
----
-1460

query I rowsort
SELECT ALL - NULLIF ( - 41, + - 2 )
----
41

query I rowsort
SELECT DISTINCT + - 19 + - 2 + 54 AS col2
----
33

query II rowsort
SELECT + 24 col2, - ( 94 ) + - - 58
----
24
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL + SUM( DISTINCT - - 99 ) + 21 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL + SUM ( DISTINCT - - 99 ) + 21 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT DISTINCT - - 6 * ( - - COUNT( + + 21 ) )
----
6

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT - - 6 * ( - - COUNT ( + + 21 ) )
----
6

query I rowsort
SELECT ( - + 24 ) * 48 + 74
----
-1078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8725
SELECT 31 * + CAST( - SUM( ALL - CAST( 21 AS SIGNED ) ) AS SIGNED ) * 8
----
5208

skipif mysql # not compatible
query I rowsort label-8725
SELECT 31 * + CAST ( - SUM ( ALL - CAST ( 21 AS INTEGER ) ) AS INTEGER ) * 8
----
5208

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT - SUM( + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-8726
SELECT - SUM ( + 91 )
----
-91

query I rowsort
SELECT + - ( - 25 ) AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8728
SELECT ALL - ( - - 84 ) + - 8 DIV 42 * + NULLIF ( 0, + + CAST( NULL AS SIGNED ) + + 90 + - + MIN( + 55 ) * + COUNT( * ) )
----
-84

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL - ( - - 84 ) + - 8 / 42 * + NULLIF ( 0, + + CAST ( NULL AS INTEGER ) + + 90 + - + MIN ( + 55 ) * + COUNT ( * ) )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT 10 * - COUNT( - 52 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-8729
SELECT 10 * - COUNT ( - 52 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-8730
SELECT DISTINCT 21 + - + COUNT( ALL + 42 ) AS col1, 27 col0
----
20
27

skipif mysql # not compatible
query II rowsort label-8730
SELECT DISTINCT 21 + - + COUNT ( ALL + 42 ) AS col1, 27 col0
----
20
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT ALL - COUNT( ALL + 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL - COUNT ( ALL + 25 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT DISTINCT 15 * - MIN( + 94 ) AS col2
----
-1410

skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT 15 * - MIN ( + 94 ) AS col2
----
-1410

onlyif mysql # aggregate syntax: 
query II rowsort label-8733
SELECT DISTINCT - SUM( - 10 ) AS col0, 98
----
10
98

skipif mysql # not compatible
query II rowsort label-8733
SELECT DISTINCT - SUM ( - 10 ) AS col0, 98
----
10
98

query I rowsort
SELECT 92 + - - 9 AS col1
----
101

query I rowsort
SELECT 28 * + 21
----
588

query I rowsort
SELECT DISTINCT 14 * ( 38 )
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT COUNT( * ) * + + 94 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8737
SELECT COUNT ( * ) * + + 94 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT DISTINCT 78 * + COUNT( - - 23 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT 78 * + COUNT ( - - 23 ) AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8739
SELECT DISTINCT - 97 DIV - 10
----
9

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT - 97 / - 10
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8740
SELECT 43 DIV ( + 13 ) * + NULLIF ( + 57, ( 44 ) ) col1
----
171

skipif mysql # not compatible
query I rowsort label-8740
SELECT 43 / ( + 13 ) * + NULLIF ( + 57, ( 44 ) ) col1
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8741
SELECT + 36 * + COUNT( * ) DIV + - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-8741
SELECT + 36 * + COUNT ( * ) / + - COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT + 95 + ( + 41 ) + SUM( + + 55 ) + + 98 AS col1
----
289

skipif mysql # not compatible
query I rowsort label-8742
SELECT + 95 + ( + 41 ) + SUM ( + + 55 ) + + 98 AS col1
----
289

query I rowsort
SELECT ALL + 35 + 2 AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8744
SELECT DISTINCT - 24 DIV - + CASE WHEN NOT + 56 BETWEEN - 85 AND + COUNT( * ) THEN + 50 ELSE NULL END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT - 24 / - + CASE WHEN NOT + 56 BETWEEN - 85 AND + COUNT ( * ) THEN + 50 ELSE NULL END AS col0
----
0

query I rowsort
SELECT ALL 91 + + ( + 14 )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT ALL + 85 + + COUNT( DISTINCT - 40 ) - - 71
----
157

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL + 85 + + COUNT ( DISTINCT - 40 ) - - 71
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8747
SELECT - - MAX( ALL - - 48 ) DIV ( 4 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8747
SELECT - - MAX ( ALL - - 48 ) / ( 4 ) AS col0
----
12

query I rowsort
SELECT ALL + 74 + - 77 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT ALL SUM( ALL + - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL SUM ( ALL + - 38 )
----
-38

query I rowsort
SELECT - + 5 * - 8
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8751
SELECT - + 19 + SUM( 40 ) + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT - + 19 + SUM ( 40 ) + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8752
SELECT - 80 - + + 64 + - ( - 19 ) + - 69 + + ( + CAST( NULL AS SIGNED ) ) / + 88 * CAST( + 11 AS SIGNED ) / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8752
SELECT - 80 - + + 64 + - ( - 19 ) + - 69 + + ( + CAST ( NULL AS INTEGER ) ) / + 88 * CAST ( + 11 AS INTEGER ) / - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + - COALESCE ( + 51, + 27, + 57, 39 ) col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT ALL + + CASE - AVG ( DISTINCT - + 18 ) WHEN 87 THEN + 59 WHEN + + 95 THEN + + 60 * + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL + + CASE - AVG ( DISTINCT - + 18 ) WHEN 87 THEN + 59 WHEN + + 95 THEN + + 60 * + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8755
SELECT - 37 + - COUNT( * ) * - + CAST( NULL AS SIGNED ) * + MAX( ALL - 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT - 37 + - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + MAX ( ALL - 50 )
----
NULL

query I rowsort
SELECT - ( 30 ) + - + 80 * + - 38 AS col2
----
3010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8757
SELECT ALL + NULLIF ( CAST( COUNT( * ) AS SIGNED ), 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL + NULLIF ( CAST ( COUNT ( * ) AS INTEGER ), 82 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT 78 * + ( + 58 ) + + 67 * 11 + + 43 * - + 55 * - - COUNT( DISTINCT - 68 ) col1
----
2896

skipif mysql # not compatible
query I rowsort label-8758
SELECT 78 * + ( + 58 ) + + 67 * 11 + + 43 * - + 55 * - - COUNT ( DISTINCT - 68 ) col1
----
2896

query II rowsort
SELECT ALL + 67 * 33, + 44 AS col0
----
2211
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT + COUNT( ALL + 43 )
----
1

skipif mysql # not compatible
query I rowsort label-8760
SELECT + COUNT ( ALL + 43 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT + 21 + - - 61 * + MAX( - + 0 )
----
21

skipif mysql # not compatible
query I rowsort label-8761
SELECT + 21 + - - 61 * + MAX ( - + 0 )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8762
SELECT - COUNT( * ) DIV 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8762
SELECT - COUNT ( * ) / 52 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT + 38 * + COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-8763
SELECT + 38 * + COUNT ( * ) AS col2
----
38

query I rowsort
SELECT ALL + 46 * 88 AS col0
----
4048

query I rowsort
SELECT + 14 + - 60
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8766
SELECT COALESCE ( + + 72, - 71 DIV + CAST( COUNT( * ) AS SIGNED ), - + 47 )
----
72

skipif mysql # not compatible
query I rowsort label-8766
SELECT COALESCE ( + + 72, - 71 / + CAST ( COUNT ( * ) AS INTEGER ), - + 47 )
----
72

query I rowsort
SELECT - ( + - 18 ) * 62 AS col0
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT 92 * + 14 + + 13 + + - COUNT( * ) * + - 68 AS col2
----
1369

skipif mysql # not compatible
query I rowsort label-8768
SELECT 92 * + 14 + + 13 + + - COUNT ( * ) * + - 68 AS col2
----
1369

query I rowsort
SELECT + 79 * 74 * - - 38
----
222148

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT ALL - MIN( ALL 11 ) * + 32 AS col2
----
-352

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL - MIN ( ALL 11 ) * + 32 AS col2
----
-352

query I rowsort
SELECT DISTINCT + ( 17 ) AS col1
----
17

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8772
SELECT + CASE - CASE + + CAST( + + 53 AS DECIMAL ) WHEN + 44 THEN - + ( 28 ) * + ( 43 ) ELSE NULL END WHEN CAST( NULL AS SIGNED ) * - ( + 72 ) + - - 5 / 63 THEN NULL WHEN - 36 * - - 6 THEN - + NULLIF ( + - 63, 77 * 5 * + - 74 ) END AS col2, 92 AS col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-8772
SELECT + CASE - CASE + + CAST ( + + 53 AS REAL ) WHEN + 44 THEN - + ( 28 ) * + ( 43 ) ELSE NULL END WHEN CAST ( NULL AS INTEGER ) * - ( + 72 ) + - - 5 / 63 THEN NULL WHEN - 36 * - - 6 THEN - + NULLIF ( + - 63, 77 * 5 * + - 74 ) END AS col2, 92 AS col0
----
NULL
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT ALL ( 3 ) DIV + 37 * 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL ( 3 ) / + 37 * 78 AS col2
----
0

query II rowsort
SELECT DISTINCT + 60 AS col1, 56
----
60
56

query II rowsort
SELECT ALL + 63, + 83 * 65 * COALESCE ( + - 0, + 81 ) AS col1
----
63
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8776
SELECT + 48 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT + 48 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT COUNT( - 59 )
----
1

skipif mysql # not compatible
query I rowsort label-8777
SELECT COUNT ( - 59 )
----
1

query I rowsort
SELECT + 36 + - - 35
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT MAX( ALL + + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-8779
SELECT MAX ( ALL + + 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT + 12 + COALESCE ( - 22, - - COUNT( * ) ) + - 60 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-8780
SELECT + 12 + COALESCE ( - 22, - - COUNT ( * ) ) + - 60 AS col2
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8781
SELECT + 18 + + CAST( 12 AS SIGNED ), CAST( NULL AS SIGNED ) - 11 col0
----
30
NULL

skipif mysql # not compatible
query II rowsort label-8781
SELECT + 18 + + CAST ( 12 AS INTEGER ), CAST ( NULL AS INTEGER ) - 11 col0
----
30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT DISTINCT COUNT( * ) + 26 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT COUNT ( * ) + 26 AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8783
SELECT - CASE + 4 WHEN 88 - + 18 * ( + - COUNT( * ) ) THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT - CASE + 4 WHEN 88 - + 18 * ( + - COUNT ( * ) ) THEN CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8784
SELECT - + 66 col1, - CAST( NULL AS SIGNED ) AS col2
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-8784
SELECT - + 66 col1, - CAST ( NULL AS INTEGER ) AS col2
----
-66
NULL

query I rowsort
SELECT ALL 36 + + + 20 AS col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8786
SELECT ALL 75 * + 35 * SUM( ALL + 67 ) DIV + + COUNT( * )
----
175875

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL 75 * + 35 * SUM ( ALL + 67 ) / + + COUNT ( * )
----
175875

query I rowsort
SELECT + + 9 + 87 col2
----
96

query I rowsort
SELECT ALL NULLIF ( - 57, + - 45 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT + - COUNT( * ) + CASE + - 64 WHEN + 4 + + 88 THEN NULL WHEN + + 38 THEN - COALESCE ( + 41, + NULLIF ( - 26, + 20 ) * 3 ) ELSE NULL END + - MAX( 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT + - COUNT ( * ) + CASE + - 64 WHEN + 4 + + 88 THEN NULL WHEN + + 38 THEN - COALESCE ( + 41, + NULLIF ( - 26, + 20 ) * 3 ) ELSE NULL END + - MAX ( 77 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8790
SELECT - CASE - + 93 WHEN + + 97 THEN + ( MAX( 70 ) ) END, + 80 AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-8790
SELECT - CASE - + 93 WHEN + + 97 THEN + ( MAX ( 70 ) ) END, + 80 AS col1
----
NULL
80

query I rowsort
SELECT - 64 + 38 * - 86 * - 10 * - 9
----
-294184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8792
SELECT - - ( + MIN( ALL - 47 ) ) * - + 33 * 51 * - COALESCE ( + NULLIF ( + 65, + ( CAST( NULL AS SIGNED ) ) ), - 61 * - COALESCE ( - + CAST( NULL AS SIGNED ), + 83 ) * 66 + - COUNT( * ) + ( - 19 ) ) AS col2, + 42
----
-5141565
42

skipif mysql # not compatible
query II rowsort label-8792
SELECT - - ( + MIN ( ALL - 47 ) ) * - + 33 * 51 * - COALESCE ( + NULLIF ( + 65, + ( CAST ( NULL AS INTEGER ) ) ), - 61 * - COALESCE ( - + CAST ( NULL AS INTEGER ), + 83 ) * 66 + - COUNT ( * ) + ( - 19 ) ) AS col2, + 42
----
-5141565
42

query I rowsort
SELECT DISTINCT - NULLIF ( - 67, + 94 * + 8 ) AS col0
----
67

query I rowsort
SELECT - 91 + - 73 AS col1
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT - COUNT( * ) * - 73 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8795
SELECT - COUNT ( * ) * - 73 AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8796
SELECT ALL 5 DIV 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL 5 / 93 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8797
SELECT - + COUNT( * ) DIV 26 DIV + 18, 53 * - 50 * - NULLIF ( ( - COUNT( * ) ), - NULLIF ( COUNT( * ), 69 ) ) * 66 * ( - 91 ) + + 4 col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8797
SELECT - + COUNT ( * ) / 26 / + 18, 53 * - 50 * - NULLIF ( ( - COUNT ( * ) ), - NULLIF ( COUNT ( * ), 69 ) ) * 66 * ( - 91 ) + + 4 col1
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8798
SELECT ALL - 41 / + CAST( NULL AS SIGNED ) - 66 / + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL - 41 / + CAST ( NULL AS INTEGER ) - 66 / + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + + 47 * 70
----
3290

query II rowsort
SELECT ALL + ( + + 59 ) AS col0, - 44
----
59
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-8801
SELECT DISTINCT + MAX( + 11 ) col0, ( - 75 ) AS col2
----
11
-75

skipif mysql # not compatible
query II rowsort label-8801
SELECT DISTINCT + MAX ( + 11 ) col0, ( - 75 ) AS col2
----
11
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8802
SELECT CAST( - 17 AS SIGNED ) AS col1, + 41
----
-17
41

skipif mysql # not compatible
query II rowsort label-8802
SELECT CAST ( - 17 AS INTEGER ) AS col1, + 41
----
-17
41

query I rowsort
SELECT ALL + ( 70 ) AS col2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8804
SELECT ALL + 24 DIV - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL + 24 / - 65 AS col0
----
0

query I rowsort
SELECT - 49 * - 75 * - 78 * 56 AS col1
----
-16052400

query I rowsort
SELECT 24 * 91 + 64
----
2248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8807
SELECT ALL + CAST( + 66 AS DECIMAL ) + - 18 + + - 40 * - 61 / - - CAST( NULL AS SIGNED ) * - - 95 * - SUM( DISTINCT 46 ) + + AVG ( ALL - + 81 ) - MAX( + 62 ) / - 96 - + + 95 * - + 14 * - 64 / - 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL + CAST ( + 66 AS REAL ) + - 18 + + - 40 * - 61 / - - CAST ( NULL AS INTEGER ) * - - 95 * - SUM ( DISTINCT 46 ) + + AVG ( ALL - + 81 ) - MAX ( + 62 ) / - 96 - + + 95 * - + 14 * - 64 / - 21 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8808
SELECT 24 DIV + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8808
SELECT 24 / + 96 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8809
SELECT + 62 * + + CAST( NULL AS SIGNED ) + - + 75 + - 59 AS col2, 5 AS col1
----
NULL
5

skipif mysql # not compatible
query II rowsort label-8809
SELECT + 62 * + + CAST ( NULL AS INTEGER ) + - + 75 + - 59 AS col2, 5 AS col1
----
NULL
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8810
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT CAST ( NULL AS REAL ) + 95 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT COUNT( DISTINCT 91 ) * + + 77
----
77

skipif mysql # not compatible
query I rowsort label-8811
SELECT COUNT ( DISTINCT 91 ) * + + 77
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT ALL + MAX( + 97 ) + - 92
----
5

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL + MAX ( + 97 ) + - 92
----
5

query I rowsort
SELECT ALL + 18 + - - 97 - - 33 AS col2
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8814
SELECT DISTINCT + 7 + + 61 + - - CASE - 75 WHEN 14 / - CAST( NULL AS SIGNED ) THEN + 81 END AS col2, - 51 * NULLIF ( - - CAST( + + 80 AS SIGNED ), - 62 ) + + - 31 col2
----
NULL
-4111

skipif mysql # not compatible
query II rowsort label-8814
SELECT DISTINCT + 7 + + 61 + - - CASE - 75 WHEN 14 / - CAST ( NULL AS INTEGER ) THEN + 81 END AS col2, - 51 * NULLIF ( - - CAST ( + + 80 AS INTEGER ), - 62 ) + + - 31 col2
----
NULL
-4111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8815
SELECT + 17 + - 84 - + COUNT( * ) DIV - 84
----
-67

skipif mysql # not compatible
query I rowsort label-8815
SELECT + 17 + - 84 - + COUNT ( * ) / - 84
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-8816
SELECT ALL - + ( - + 36 ) DIV - - 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL - + ( - + 36 ) / - - 42 AS col2
----
0

query I rowsort
SELECT - ( - 3 ) + + 7
----
10

query I rowsort
SELECT + NULLIF ( - 90, + ( - ( + + 78 ) ) ) AS col0
----
-90

query II rowsort
SELECT ALL + COALESCE ( 85, 73 + - 28 ) AS col2, + 83 AS col0
----
85
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT DISTINCT SUM( + 6 ) - - COALESCE ( + - 70, 38 * - 25 * + - 51 * - + 16, 39 )
----
-64

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT SUM ( + 6 ) - - COALESCE ( + - 70, 38 * - 25 * + - 51 * - + 16, 39 )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8821
SELECT DISTINCT 54 * 36 DIV ( COALESCE ( - CAST( 96 AS SIGNED ), + 30 DIV COUNT( * ) + - CAST( NULL AS SIGNED ) ) ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT 54 * 36 / ( COALESCE ( - CAST ( 96 AS INTEGER ), + 30 / COUNT ( * ) + - CAST ( NULL AS INTEGER ) ) ) AS col2
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8822
SELECT DISTINCT COUNT( 4 ) * - 60 DIV - 16 + - 86 + + 43 + + 35 * - 14 col2
----
-530

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT COUNT ( 4 ) * - 60 / - 16 + - 86 + + 43 + + 35 * - 14 col2
----
-530

query I rowsort
SELECT ALL 98 - - ( 0 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8824
SELECT ALL + CAST( + CASE + ( + MAX( CAST( NULL AS SIGNED ) ) ) WHEN + - 40 THEN NULL ELSE 62 + CASE + COUNT( * ) WHEN + 88 THEN - ( + CASE + 78 WHEN - - 36 / 27 THEN - 22 END ) END END AS SIGNED ) - + 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL + CAST ( + CASE + ( + MAX ( CAST ( NULL AS INTEGER ) ) ) WHEN + - 40 THEN NULL ELSE 62 + CASE + COUNT ( * ) WHEN + 88 THEN - ( + CASE + 78 WHEN - - 36 / 27 THEN - 22 END ) END END AS INTEGER ) - + 86 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT - SUM( ALL + 70 ) + - + 22 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-8825
SELECT - SUM ( ALL + 70 ) + - + 22 AS col0
----
-92

query I rowsort
SELECT - 8 + 58 AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8827
SELECT + 78 - - + 2 + - - 19 DIV - - 43 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8827
SELECT + 78 - - + 2 + - - 19 / - - 43 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT COUNT( - + 61 ) + - 59 + - - 48 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-8828
SELECT COUNT ( - + 61 ) + - 59 + - - 48 AS col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8829
SELECT 91 DIV + + 18 - ( 14 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-8829
SELECT 91 / + + 18 - ( 14 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT DISTINCT - COUNT( * ) * 69 * - 3 * 62 col0
----
12834

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT - COUNT ( * ) * 69 * - 3 * 62 col0
----
12834

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT 64 * - 65 + MAX( DISTINCT - 16 ) * - - 34
----
-4704

skipif mysql # not compatible
query I rowsort label-8831
SELECT 64 * - 65 + MAX ( DISTINCT - 16 ) * - - 34
----
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT 8 + - COUNT( * ) * + 31
----
-23

skipif mysql # not compatible
query I rowsort label-8832
SELECT 8 + - COUNT ( * ) * + 31
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8833
SELECT DISTINCT - CAST( - + ( + - 52 ) AS SIGNED ) * 20 AS col2
----
-1040

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT - CAST ( - + ( + - 52 ) AS INTEGER ) * 20 AS col2
----
-1040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8834
SELECT ALL + COUNT( * ) + - - CASE - 5 WHEN - 23 + 44 THEN + - 64 END + + 52 - + 8 / CAST( NULL AS SIGNED ) * NULLIF ( + AVG ( ALL - 14 ), + 76 + - 14 ) + + COUNT( * ) AS col1, + 23 AS col0
----
NULL
23

skipif mysql # not compatible
query II rowsort label-8834
SELECT ALL + COUNT ( * ) + - - CASE - 5 WHEN - 23 + 44 THEN + - 64 END + + 52 - + 8 / CAST ( NULL AS INTEGER ) * NULLIF ( + AVG ( ALL - 14 ), + 76 + - 14 ) + + COUNT ( * ) AS col1, + 23 AS col0
----
NULL
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8835
SELECT 28 DIV - 83 * 72 + + 48 - + 16 + + - 44 DIV + 33
----
31

skipif mysql # not compatible
query I rowsort label-8835
SELECT 28 / - 83 * 72 + + 48 - + 16 + + - 44 / + 33
----
31

query I rowsort
SELECT DISTINCT 55 + + 83 - + 2 * 20 AS col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8837
SELECT ALL - CAST( + 57 AS SIGNED ) + - 24 + - 58
----
-139

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL - CAST ( + 57 AS INTEGER ) + - 24 + - 58
----
-139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8838
SELECT DISTINCT + COUNT( * ) + + ( 72 ) DIV - - 22 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT + COUNT ( * ) + + ( 72 ) / - - 22 AS col1
----
4

query I rowsort
SELECT + 58 * 72 + - - 0 + 76
----
4252

query I rowsort
SELECT ALL - ( 36 ) AS col0
----
-36

query II rowsort
SELECT + 81, - 43 + 46 * 59 + + CASE + 19 WHEN ( + 53 ) THEN NULL ELSE + - 78 END + - - 1 AS col2
----
81
2594

query II rowsort
SELECT ALL ( 72 ) * + 69 * - 49 * - - 95 col1, 85 AS col0
----
-23126040
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT DISTINCT ( + 40 ) + + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-8843
SELECT DISTINCT ( + 40 ) + + COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT ALL + 66 + - COUNT( * ) * - - 34 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL + 66 + - COUNT ( * ) * - - 34 AS col2
----
32

query I rowsort
SELECT 52 * 87 * 14 AS col1
----
63336

query I rowsort
SELECT DISTINCT - 56 + - 37 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT ALL - COUNT( ALL - 78 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL - COUNT ( ALL - 78 ) AS col0
----
-1

query I rowsort
SELECT 31 * - 31
----
-961

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8849
SELECT - CAST( NULL AS SIGNED ) * 96 * + - 87 * + 71 - 13 + + + 92 AS col2, - 94 * + 11
----
NULL
-1034

skipif mysql # not compatible
query II rowsort label-8849
SELECT - CAST ( NULL AS INTEGER ) * 96 * + - 87 * + 71 - 13 + + + 92 AS col2, - 94 * + 11
----
NULL
-1034

query I rowsort
SELECT 62 + 93 + + + 18 AS col2
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT - + COALESCE ( NULLIF ( + 37, + 86 + + COUNT( ALL - 97 ) * + 37 + - - 25 ), + + 42, + 10 - - + NULLIF ( - 67, + 15 * + + 5 ) * - 9 * + 12 ) col2
----
-37

skipif mysql # not compatible
query I rowsort label-8851
SELECT - + COALESCE ( NULLIF ( + 37, + 86 + + COUNT ( ALL - 97 ) * + 37 + - - 25 ), + + 42, + 10 - - + NULLIF ( - 67, + 15 * + + 5 ) * - 9 * + 12 ) col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8852
SELECT CAST( - 25 AS SIGNED ) + + 70 + - 93 DIV 4 AS col0, NULLIF ( + + 20, 9 * + 6 )
----
22
20

skipif mysql # not compatible
query II rowsort label-8852
SELECT CAST ( - 25 AS INTEGER ) + + 70 + - 93 / 4 AS col0, NULLIF ( + + 20, 9 * + 6 )
----
22
20

query I rowsort
SELECT + 90 * - + 7 * 58 + 61 col2
----
-36479

onlyif mysql # aggregate syntax: 
query II rowsort label-8854
SELECT DISTINCT 49, COUNT( * ) AS col2
----
49
1

skipif mysql # not compatible
query II rowsort label-8854
SELECT DISTINCT 49, COUNT ( * ) AS col2
----
49
1

query I rowsort
SELECT DISTINCT - - 5 * 98 AS col2
----
490

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT 31 + + NULLIF ( + + 49, - COUNT( + ( + 35 ) ) ) + - - COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8856
SELECT 31 + + NULLIF ( + + 49, - COUNT ( + ( + 35 ) ) ) + - - COUNT ( * ) AS col0
----
81

query I rowsort
SELECT + 17 - + 23 AS col0
----
-6

query I rowsort
SELECT DISTINCT - 69 / 19 + - + CASE + - COALESCE ( - 38, 8, + + 3 ) WHEN - - 54 + 59 THEN + 5 END
----
NULL

query I rowsort
SELECT + 49 + + 16
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8860
SELECT 69 DIV - 91 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8860
SELECT 69 / - 91 + - COUNT ( * ) AS col1
----
-1

query II rowsort
SELECT DISTINCT - 28, 56 AS col2
----
-28
56

query I rowsort
SELECT - 67 * + 19 AS col1
----
-1273

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT + 76 + - + COALESCE ( + + COUNT( * ), - 77 )
----
75

skipif mysql # not compatible
query I rowsort label-8863
SELECT + 76 + - + COALESCE ( + + COUNT ( * ), - 77 )
----
75

query I rowsort
SELECT DISTINCT ( - 68 ) * 2 AS col2
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT DISTINCT CASE - 84 WHEN - ( + + 29 ) THEN - - 29 + COUNT( * ) ELSE + - 50 - - - 80 END col0
----
-130

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT CASE - 84 WHEN - ( + + 29 ) THEN - - 29 + COUNT ( * ) ELSE + - 50 - - - 80 END col0
----
-130

query II rowsort
SELECT ALL NULLIF ( + + 11, + ( - + 30 ) ), 99 AS col0
----
11
99

query I rowsort
SELECT ALL 50 + + 14 - 17 AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8868
SELECT + 96 - - MAX( DISTINCT - 92 ) + - CAST( NULL AS SIGNED ) * + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT + 96 - - MAX ( DISTINCT - 92 ) + - CAST ( NULL AS INTEGER ) * + + 40
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8869
SELECT + CASE + CAST( 99 AS SIGNED ) WHEN - COUNT( * ) / - + 23 THEN 7 WHEN - 44 * + AVG ( DISTINCT + 77 ) THEN NULL WHEN - - 78 * - 82 + + NULLIF ( + 58, 43 + + COALESCE ( - 99, + 96 ) * - 6 ) + - 46 + 13 + + - ( + ( + CAST( NULL AS DECIMAL ) ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT + CASE + CAST ( 99 AS INTEGER ) WHEN - COUNT ( * ) / - + 23 THEN 7 WHEN - 44 * + AVG ( DISTINCT + 77 ) THEN NULL WHEN - - 78 * - 82 + + NULLIF ( + 58, 43 + + COALESCE ( - 99, + 96 ) * - 6 ) + - 46 + 13 + + - ( + ( + CAST ( NULL AS REAL ) ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8870
SELECT + 72 DIV COUNT( * ) * 26
----
1872

skipif mysql # not compatible
query I rowsort label-8870
SELECT + 72 / COUNT ( * ) * 26
----
1872

query I rowsort
SELECT - 78 * + + 62
----
-4836

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT DISTINCT - CASE - 70 WHEN - + 52 + ( + NULLIF ( 39, 67 ) ) * - - 48 * + 27 THEN + + COUNT( * ) * 49 + + CASE - 41 WHEN - - 41 * + 56 / + - 22 THEN NULL WHEN 29 THEN NULL ELSE 23 END END * 18 + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT - CASE - 70 WHEN - + 52 + ( + NULLIF ( 39, 67 ) ) * - - 48 * + 27 THEN + + COUNT ( * ) * 49 + + CASE - 41 WHEN - - 41 * + 56 / + - 22 THEN NULL WHEN 29 THEN NULL ELSE 23 END END * 18 + + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT + 42 - MIN( 5 ) col1
----
37

skipif mysql # not compatible
query I rowsort label-8873
SELECT + 42 - MIN ( 5 ) col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT MAX( DISTINCT + 16 ) col1
----
16

skipif mysql # not compatible
query I rowsort label-8874
SELECT MAX ( DISTINCT + 16 ) col1
----
16

query I rowsort
SELECT ALL 41 * + - 98
----
-4018

onlyif mysql # aggregate syntax: 
query II rowsort label-8876
SELECT ALL + 66 * + 48 + + ( - COUNT( * ) ) + + 25 - - MAX( ALL + 36 ) AS col1, COALESCE ( - 31, + 13, + 10 )
----
3228
-31

skipif mysql # not compatible
query II rowsort label-8876
SELECT ALL + 66 * + 48 + + ( - COUNT ( * ) ) + + 25 - - MAX ( ALL + 36 ) AS col1, COALESCE ( - 31, + 13, + 10 )
----
3228
-31

query I rowsort
SELECT + - 52 + + 13
----
-39

query I rowsort
SELECT + + 77 + 56
----
133

query I rowsort
SELECT 72 * 64 - - + 20 AS col2
----
4628

onlyif mysql # aggregate syntax: 
query II rowsort label-8880
SELECT - 27 AS col2, - MAX( - 2 ) AS col2
----
-27
2

skipif mysql # not compatible
query II rowsort label-8880
SELECT - 27 AS col2, - MAX ( - 2 ) AS col2
----
-27
2

query I rowsort
SELECT - + 97 - 23 AS col1
----
-120

query I rowsort
SELECT DISTINCT ( + 6 ) AS col0
----
6

query I rowsort
SELECT - 1 + - 59
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8884
SELECT ALL MIN( ALL - - 15 ), COALESCE ( - 64, - MIN( - 18 ) * + COUNT( * ) DIV - 85 * + 84, + COUNT( * ) * MIN( - 63 ) + + - 12 + ( + 49 ), - 52 * - 68 * 4 * COUNT( * ) DIV + + 34 - + 28 ) + COUNT( * ) + + - 43 DIV - 82 + 78
----
15
15

skipif mysql # not compatible
query II rowsort label-8884
SELECT ALL MIN ( ALL - - 15 ), COALESCE ( - 64, - MIN ( - 18 ) * + COUNT ( * ) / - 85 * + 84, + COUNT ( * ) * MIN ( - 63 ) + + - 12 + ( + 49 ), - 52 * - 68 * 4 * COUNT ( * ) / + + 34 - + 28 ) + COUNT ( * ) + + - 43 / - 82 + 78
----
15
15

query II rowsort
SELECT - + 45 * 85, 86 * - 33 + 6 AS col1
----
-3825
-2832

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ALL - - COUNT( * ) * + COUNT( * ) + - 60
----
-59

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL - - COUNT ( * ) * + COUNT ( * ) + - 60
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8887
SELECT - - 94 AS col2, - CAST( NULL AS SIGNED )
----
94
NULL

skipif mysql # not compatible
query II rowsort label-8887
SELECT - - 94 AS col2, - CAST ( NULL AS INTEGER )
----
94
NULL

query I rowsort
SELECT - - 59 + 19 + - - 43 + - - 15 * - 25 * + 13
----
-4754

query I rowsort
SELECT - ( + 6 ) * - 90 AS col2
----
540

query I rowsort
SELECT + 60 * - 17 * - + 79
----
80580

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL + - COALESCE ( 19, + 31 - + 65 ) + - COALESCE ( - COUNT( * ), - 57 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL + - COALESCE ( 19, + 31 - + 65 ) + - COALESCE ( - COUNT ( * ), - 57 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT - COUNT( * ) - - 69 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-8892
SELECT - COUNT ( * ) - - 69 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT DISTINCT + MIN( DISTINCT 48 ) * 68 * + 20
----
65280

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT + MIN ( DISTINCT 48 ) * 68 * + 20
----
65280

onlyif mysql # aggregate syntax: 
query II rowsort label-8894
SELECT ALL - 1 + COUNT( * ), - 62 - - 36 AS col2
----
0
-26

skipif mysql # not compatible
query II rowsort label-8894
SELECT ALL - 1 + COUNT ( * ), - 62 - - 36 AS col2
----
0
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8895
SELECT - 56 - 21, COALESCE ( + ( + 33 ), + - 66 ) * 94 + - 29 + - CAST( NULL AS DECIMAL ) / + + 7 + - 25 AS col1
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-8895
SELECT - 56 - 21, COALESCE ( + ( + 33 ), + - 66 ) * 94 + - 29 + - CAST ( NULL AS REAL ) / + + 7 + - 25 AS col1
----
-77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8896
SELECT + 8 / - CAST( NULL AS SIGNED ) * - + CAST( 12 AS SIGNED ) * - + 69 - 29 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT + 8 / - CAST ( NULL AS INTEGER ) * - + CAST ( 12 AS INTEGER ) * - + 69 - 29 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8897
SELECT ALL + 65 + 35, CAST( 90 AS SIGNED ) + - 5 + - - 15 col2
----
100
100

skipif mysql # not compatible
query II rowsort label-8897
SELECT ALL + 65 + 35, CAST ( 90 AS INTEGER ) + - 5 + - - 15 col2
----
100
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8898
SELECT - 20 + 7 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT - 20 + 7 - + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 26 * - 94 AS col2
----
-2444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8900
SELECT - NULLIF ( + + CASE 95 WHEN + + 3 THEN NULL ELSE + + 79 END, - + SUM( - - CAST( NULL AS SIGNED ) ) ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-8900
SELECT - NULLIF ( + + CASE 95 WHEN + + 3 THEN NULL ELSE + + 79 END, - + SUM ( - - CAST ( NULL AS INTEGER ) ) ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-8901
SELECT - 96 + + 69 + + + 30 + - 42 * 59 * + + COUNT( * ) - - 80 AS col1, 67 * 21 + 8
----
-2395
1415

skipif mysql # not compatible
query II rowsort label-8901
SELECT - 96 + + 69 + + + 30 + - 42 * 59 * + + COUNT ( * ) - - 80 AS col1, 67 * 21 + 8
----
-2395
1415

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT + 2 - + COUNT( * ) + + + ( + 9 ) - + - 53 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8902
SELECT + 2 - + COUNT ( * ) + + + ( + 9 ) - + - 53 AS col2
----
63

query I rowsort
SELECT - 72 + + 41 col1
----
-31

query I rowsort
SELECT ALL + ( - 66 )
----
-66

query I rowsort
SELECT DISTINCT 7 * - + 8 AS col1
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8906
SELECT 3 / - 62 * - 59 + + COALESCE ( + + ( - CAST( + + COUNT( - 23 ) AS SIGNED ) ), - COALESCE ( + - MAX( - 48 ), + 73 * + + COUNT( * ) ), + COUNT( * ) + 5 / + 45 + + - 35 - + CAST( + - 52 AS SIGNED ) ) * - ( + ( + 14 ) ) * 73 - 45 + CAST( NULL AS SIGNED ) + - 25 * + - 79 * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8906
SELECT 3 / - 62 * - 59 + + COALESCE ( + + ( - CAST ( + + COUNT ( - 23 ) AS INTEGER ) ), - COALESCE ( + - MAX ( - 48 ), + 73 * + + COUNT ( * ) ), + COUNT ( * ) + 5 / + 45 + + - 35 - + CAST ( + - 52 AS INTEGER ) ) * - ( + ( + 14 ) ) * 73 - 45 + CAST ( NULL AS INTEGER ) + - 25 * + - 79 * COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT + 36 * + COUNT( * ) * + 76
----
2736

skipif mysql # not compatible
query I rowsort label-8907
SELECT + 36 * + COUNT ( * ) * + 76
----
2736

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT + MIN( + + NULLIF ( - 60, + - 50 - 77 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-8908
SELECT + MIN ( + + NULLIF ( - 60, + - 50 - 77 ) )
----
-60

query I rowsort
SELECT + 64 * - 76 + + 49
----
-4815

onlyif mysql # aggregate syntax: 
query II rowsort label-8910
SELECT + SUM( ALL - - 20 ) AS col1, COUNT( * ) + - ( 48 ) + - + 70
----
20
-117

skipif mysql # not compatible
query II rowsort label-8910
SELECT + SUM ( ALL - - 20 ) AS col1, COUNT ( * ) + - ( 48 ) + - + 70
----
20
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT ALL ( - 35 ) * - + COUNT( * ) + - 68 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL ( - 35 ) * - + COUNT ( * ) + - 68 AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8912
SELECT ALL + COUNT( * ) DIV - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL + COUNT ( * ) / - 74 AS col1
----
0

query I rowsort
SELECT + - NULLIF ( 68, + + 52 ) + 22
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8914
SELECT DISTINCT + 13 * CAST( NULL AS SIGNED ) + - COALESCE ( + 86, + - 36 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT + 13 * CAST ( NULL AS INTEGER ) + - COALESCE ( + 86, + - 36 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8915
SELECT + - 80 DIV - + COUNT( * ) + + - 86 * - 9 * 44 DIV - 33
----
-952

skipif mysql # not compatible
query I rowsort label-8915
SELECT + - 80 / - + COUNT ( * ) + + - 86 * - 9 * 44 / - 33
----
-952

onlyif mysql # DIV for integer division: 
query I rowsort label-8916
SELECT - - 74 DIV + + 32
----
2

skipif mysql # not compatible
query I rowsort label-8916
SELECT - - 74 / + + 32
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8917
SELECT + 48 + + 58 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8917
SELECT + 48 + + 58 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8918
SELECT + + COUNT( * ) - 21 + 35 AS col0, - ( - + COUNT( * ) ) * - 29
----
15
-29

skipif mysql # not compatible
query II rowsort label-8918
SELECT + + COUNT ( * ) - 21 + 35 AS col0, - ( - + COUNT ( * ) ) * - 29
----
15
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8919
SELECT ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8919
SELECT ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT - 31 + + CASE - 47 WHEN + 52 THEN + ( 29 ) * 29 WHEN COUNT( * ) * + 49 + - 84 THEN + ( 44 ) / + 79 * + + 21 ELSE NULL END - 37 * - + SUM( ALL - - 26 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8920
SELECT - 31 + + CASE - 47 WHEN + 52 THEN + ( 29 ) * 29 WHEN COUNT ( * ) * + 49 + - 84 THEN + ( 44 ) / + 79 * + + 21 ELSE NULL END - 37 * - + SUM ( ALL - - 26 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT DISTINCT ( NULLIF ( + 47, - 84 + COUNT( * ) ) )
----
47

skipif mysql # not compatible
query I rowsort label-8921
SELECT DISTINCT ( NULLIF ( + 47, - 84 + COUNT ( * ) ) )
----
47

query I rowsort
SELECT ALL + 24 * - 5 - - 35 - + 56 + - - 82
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT DISTINCT - SUM( + + 77 ) col2
----
-77

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT - SUM ( + + 77 ) col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL SUM( DISTINCT 76 )
----
76

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL SUM ( DISTINCT 76 )
----
76

query I rowsort
SELECT 27 + - - ( - 94 ) AS col0
----
-67

query I rowsort
SELECT ALL - 97 + + - 70 * + 98 AS col0
----
-6957

query II rowsort
SELECT DISTINCT 96 AS col1, 25 col0
----
96
25

query II rowsort
SELECT 89 AS col0, 88 col2
----
89
88

query I rowsort
SELECT 53 + + 58 AS col1
----
111

query II rowsort
SELECT ALL 8 AS col0, - 85
----
8
-85

query I rowsort
SELECT 62 + 80
----
142

query I rowsort
SELECT 43 * + 89
----
3827

query I rowsort
SELECT ALL - 7 * - 13 AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT 33 DIV + 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8934
SELECT 33 / + 69 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT MAX( ALL + + 32 ) * 83 * 10 AS col2
----
26560

skipif mysql # not compatible
query I rowsort label-8935
SELECT MAX ( ALL + + 32 ) * 83 * 10 AS col2
----
26560

query I rowsort
SELECT 42 - 65
----
-23

query I rowsort
SELECT 78 * 32 * 92
----
229632

onlyif mysql # aggregate syntax: 
query II rowsort label-8938
SELECT DISTINCT - COUNT( * ) AS col1, COUNT( * ) + - 5 AS col1
----
-1
-4

skipif mysql # not compatible
query II rowsort label-8938
SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) + - 5 AS col1
----
-1
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-8939
SELECT DISTINCT - 88, COUNT( * ) AS col1
----
-88
1

skipif mysql # not compatible
query II rowsort label-8939
SELECT DISTINCT - 88, COUNT ( * ) AS col1
----
-88
1

query I rowsort
SELECT ALL - + 87 AS col1
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8941
SELECT + COUNT( * ) DIV 36 - - 59 * 38 AS col1, + 58 * + + 84
----
2242
4872

skipif mysql # not compatible
query II rowsort label-8941
SELECT + COUNT ( * ) / 36 - - 59 * 38 AS col1, + 58 * + + 84
----
2242
4872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8942
SELECT DISTINCT + + 61 * + COUNT( * ) * - 71, - 9 - - 35 + + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1
----
-4331
NULL

skipif mysql # not compatible
query II rowsort label-8942
SELECT DISTINCT + + 61 * + COUNT ( * ) * - 71, - 9 - - 35 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1
----
-4331
NULL

query I rowsort
SELECT DISTINCT - - ( NULLIF ( + 40, ( 82 ) ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT - 79 * - + ( - COUNT( * ) )
----
-79

skipif mysql # not compatible
query I rowsort label-8944
SELECT - 79 * - + ( - COUNT ( * ) )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT DISTINCT + COUNT( DISTINCT + ( + ( + 92 ) ) ) * 86 * + 38 AS col0
----
3268

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT + COUNT ( DISTINCT + ( + ( + 92 ) ) ) * 86 * + 38 AS col0
----
3268

query I rowsort
SELECT - 36 + - - 5
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT + COUNT( * ) * + MAX( + 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-8947
SELECT + COUNT ( * ) * + MAX ( + 64 ) AS col0
----
64

query I rowsort
SELECT 78 + + NULLIF ( 65, 62 ) AS col2
----
143

query I rowsort
SELECT - 20 - 45
----
-65

query I rowsort
SELECT ALL + + 44 + - 73 + + 13
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-8951
SELECT ALL COUNT( * ), 94 AS col0
----
1
94

skipif mysql # not compatible
query II rowsort label-8951
SELECT ALL COUNT ( * ), 94 AS col0
----
1
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8952
SELECT DISTINCT - COUNT( * ) + + 0 DIV 24 * + 62
----
-1

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT - COUNT ( * ) + + 0 / 24 * + 62
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT ALL + - 60 * + 36 + + 75 DIV - + 49 AS col0
----
-2161

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL + - 60 * + 36 + + 75 / - + 49 AS col0
----
-2161

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT ALL 78 + + 52 * - + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL 78 + + 52 * - + COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT 8 + MAX( - 71 )
----
-63

skipif mysql # not compatible
query I rowsort label-8955
SELECT 8 + MAX ( - 71 )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8956
SELECT CAST( NULL AS SIGNED ) + + - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8956
SELECT CAST ( NULL AS INTEGER ) + + - 40 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8957
SELECT 53 DIV 12
----
4

skipif mysql # not compatible
query I rowsort label-8957
SELECT 53 / 12
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8958
SELECT ALL + CAST( - COUNT( 66 ) AS SIGNED ) - + CASE 9 WHEN COUNT( * ) THEN 76 * 42 WHEN 24 DIV - - 33 THEN NULL WHEN - COUNT( * ) + + + 15 THEN NULL ELSE + 57 * - 20 END * - - COALESCE ( 51, ( + - 68 ) ) + + + 23 + + - NULLIF ( 27, + - 13 + + CAST( NULL AS SIGNED ) ) + 71 + 73 DIV + COUNT( DISTINCT - 43 )
----
58279

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL + CAST ( - COUNT ( 66 ) AS INTEGER ) - + CASE 9 WHEN COUNT ( * ) THEN 76 * 42 WHEN 24 / - - 33 THEN NULL WHEN - COUNT ( * ) + + + 15 THEN NULL ELSE + 57 * - 20 END * - - COALESCE ( 51, ( + - 68 ) ) + + + 23 + + - NULLIF ( 27, + - 13 + + CAST ( NULL AS INTEGER ) ) + 71 + 73 / + COUNT ( DISTINCT - 43 )
----
58279

query I rowsort
SELECT COALESCE ( - CASE + - 35 WHEN - 24 + + 21 THEN + 69 ELSE NULL END, + - 82 ) * - + 80 AS col2
----
6560

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8960
SELECT DISTINCT COUNT( 48 ) * - + 69 * + ( + 91 ) AS col2, NULLIF ( SUM( ALL - 77 ), - + ( - - 81 ) ) - + - 14 - - + 59 + + + 38 DIV - - 47 col2
----
-6279
-4

skipif mysql # not compatible
query II rowsort label-8960
SELECT DISTINCT COUNT ( 48 ) * - + 69 * + ( + 91 ) AS col2, NULLIF ( SUM ( ALL - 77 ), - + ( - - 81 ) ) - + - 14 - - + 59 + + + 38 / - - 47 col2
----
-6279
-4

query II rowsort
SELECT 52 + + 64 AS col1, - 4 AS col1
----
116
-4

query I rowsort
SELECT ALL ( + + 73 ) - 6 AS col1
----
67

query II rowsort
SELECT 62 + + 49, 9 AS col1
----
111
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8964
SELECT 33 + - 12 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8964
SELECT 33 + - 12 + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8965
SELECT ( + 3 ) * - 74 * CAST( NULL AS SIGNED ) AS col1, + 74 + + 54 + COUNT( * ) DIV - + COALESCE ( + 39, - SUM( - 25 ) + 43, - 72 ) AS col1
----
NULL
128

skipif mysql # not compatible
query II rowsort label-8965
SELECT ( + 3 ) * - 74 * CAST ( NULL AS INTEGER ) AS col1, + 74 + + 54 + COUNT ( * ) / - + COALESCE ( + 39, - SUM ( - 25 ) + 43, - 72 ) AS col1
----
NULL
128

onlyif mysql # aggregate syntax: 
query II rowsort label-8966
SELECT ( - ( COUNT( * ) ) ) + + + 66 AS col1, COUNT( * ) AS col1
----
65
1

skipif mysql # not compatible
query II rowsort label-8966
SELECT ( - ( COUNT ( * ) ) ) + + + 66 AS col1, COUNT ( * ) AS col1
----
65
1

query I rowsort
SELECT 78 * - ( + 51 )
----
-3978

query I rowsort
SELECT 87 - + 21 - + 81 + + 98 + COALESCE ( 66, - + 94 * + - 54 - - 97 + 49 ) * 43 * - NULLIF ( - - 73, - - 29 * + - 28 ) * + 64 + + - 24
----
-13259077

query I rowsort
SELECT 61 + - + 82 * - 63
----
5227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8970
SELECT ALL + 3 * - - COUNT( * ) DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL + 3 * - - COUNT ( * ) / - 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8971
SELECT 68 / + + MIN( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT 68 / + + MIN ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8972
SELECT ALL + 35 * 94 + COUNT( * ) * - COUNT( * ) AS col1, - 90 AS col1
----
3289
-90

skipif mysql # not compatible
query II rowsort label-8972
SELECT ALL + 35 * 94 + COUNT ( * ) * - COUNT ( * ) AS col1, - 90 AS col1
----
3289
-90

query I rowsort
SELECT DISTINCT - - 19 AS col0
----
19

query I rowsort
SELECT - ( - - 43 ) + + 24 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL 84 * - 87 + MIN( - + 68 ) AS col2
----
-7376

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL 84 * - 87 + MIN ( - + 68 ) AS col2
----
-7376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8976
SELECT 0 * NULLIF ( + ( 28 ), CASE AVG ( ALL 49 ) WHEN - CAST( + 73 AS SIGNED ) THEN AVG ( - + ( - 91 ) ) END + + + 5 )
----
0

skipif mysql # not compatible
query I rowsort label-8976
SELECT 0 * NULLIF ( + ( 28 ), CASE AVG ( ALL 49 ) WHEN - CAST ( + 73 AS INTEGER ) THEN AVG ( - + ( - 91 ) ) END + + + 5 )
----
0

query II rowsort
SELECT - - 52 * 69 + + + 10 + + - 51, - 19 AS col1
----
3547
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT + + CASE 29 WHEN ( - COUNT( * ) ) THEN NULL WHEN + ( + 29 ) THEN - 55 ELSE NULL END AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-8978
SELECT + + CASE 29 WHEN ( - COUNT ( * ) ) THEN NULL WHEN + ( + 29 ) THEN - 55 ELSE NULL END AS col0
----
-55

query I rowsort
SELECT ( 22 ) * + + 16
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL - + 21 + COUNT( * ) - 70
----
-90

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL - + 21 + COUNT ( * ) - 70
----
-90

query I rowsort
SELECT DISTINCT + 33 + - 73 + - 25
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8982
SELECT ALL NULLIF ( - COUNT( * ), - CAST( NULL AS SIGNED ) ) * 94 / + 97 + - 1 * CAST( NULL AS SIGNED ) AS col1, - 37 col0
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-8982
SELECT ALL NULLIF ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) * 94 / + 97 + - 1 * CAST ( NULL AS INTEGER ) AS col1, - 37 col0
----
NULL
-37

query I rowsort
SELECT NULLIF ( ( 48 ), + - 2 ) * + 94 + 32 col2
----
4544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8984
SELECT ALL + - COALESCE ( 36, + - 91 * - COUNT( DISTINCT + 48 ) - + 0 + + 45 ) + + + 95 + - COALESCE ( - - 12, + + CAST( NULL AS SIGNED ), COUNT( * ) ), 0 * + 25 AS col0
----
47
0

skipif mysql # not compatible
query II rowsort label-8984
SELECT ALL + - COALESCE ( 36, + - 91 * - COUNT ( DISTINCT + 48 ) - + 0 + + 45 ) + + + 95 + - COALESCE ( - - 12, + + CAST ( NULL AS INTEGER ), COUNT ( * ) ), 0 * + 25 AS col0
----
47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT - - COUNT( * ) + + ( - 40 )
----
-39

skipif mysql # not compatible
query I rowsort label-8985
SELECT - - COUNT ( * ) + + ( - 40 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT MAX( 20 )
----
20

skipif mysql # not compatible
query I rowsort label-8986
SELECT MAX ( 20 )
----
20

query II rowsort
SELECT DISTINCT 92 AS col0, - 92
----
92
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-8988
SELECT + ( 8 ) + + + 47 DIV - + 41
----
7

skipif mysql # not compatible
query I rowsort label-8988
SELECT + ( 8 ) + + + 47 / - + 41
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT ALL 37 * COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL 37 * COUNT ( * )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT ALL 49 DIV 25
----
1

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL 49 / 25
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT - MAX( 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-8991
SELECT - MAX ( 60 )
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8992
SELECT + 90 / - 61 * - CAST( NULL AS DECIMAL ) * ( - 66 ) * - + 83 + - + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT + 90 / - 61 * - CAST ( NULL AS REAL ) * ( - 66 ) * - + 83 + - + 27 AS col2
----
NULL

query I rowsort
SELECT + 96 * + 87
----
8352

query I rowsort
SELECT ALL 1 * - 55 col2
----
-55

query I rowsort
SELECT + 13 + - 63
----
-50

query I rowsort
SELECT + ( - 31 ) * - 12 AS col0
----
372

query I rowsort
SELECT ALL 78 * + 58
----
4524

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT - ( + 4 ) + - SUM( 93 )
----
-97

skipif mysql # not compatible
query I rowsort label-8998
SELECT - ( + 4 ) + - SUM ( 93 )
----
-97

query I rowsort
SELECT + 60 * NULLIF ( + - 36, - - 47 ) AS col1
----
-2160

query I rowsort
SELECT ALL 42 + - - 52 * - - 20 * + - 72 AS col0
----
-74838

query I rowsort
SELECT - ( - - 56 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT ALL MIN( DISTINCT 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL MIN ( DISTINCT 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL - 45 + + 53 + - + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL - 45 + + 53 + - + COUNT ( * )
----
7

query II rowsort
SELECT - 1 AS col1, + 15
----
-1
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9005
SELECT + ( + 25 ) DIV - 83 - 26 + SUM( + 92 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9005
SELECT + ( + 25 ) / - 83 - 26 + SUM ( + 92 ) AS col0
----
66

query I rowsort
SELECT ALL 44 * - - 81 + - 56 - + 1 AS col1
----
3507

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9007
SELECT ALL + 12 * - 23 + - 99 DIV - COUNT( * ) + + 89 col0, + 20
----
-88
20

skipif mysql # not compatible
query II rowsort label-9007
SELECT ALL + 12 * - 23 + - 99 / - COUNT ( * ) + + 89 col0, + 20
----
-88
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9008
SELECT ALL + - 48 * - COUNT( * ) - - 10 + - + 98 + 7 DIV 11
----
-40

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL + - 48 * - COUNT ( * ) - - 10 + - + 98 + 7 / 11
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT DISTINCT - + COALESCE ( - 7, - CASE + MIN( DISTINCT 86 ) WHEN 3 THEN - - 42 WHEN - + 42 * + - 14 THEN NULL ELSE 57 - + COUNT( * ) END ) * + 31 * - - 58 * + 63
----
792918

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT - + COALESCE ( - 7, - CASE + MIN ( DISTINCT 86 ) WHEN 3 THEN - - 42 WHEN - + 42 * + - 14 THEN NULL ELSE 57 - + COUNT ( * ) END ) * + 31 * - - 58 * + 63
----
792918

query II rowsort
SELECT ALL - 83 * + ( - + 51 ) + - + 24 * 35, + 54 AS col0
----
3393
54

query I rowsort
SELECT + - 69 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9012
SELECT ALL + COUNT( * ), - 48 * + - 57 col2
----
1
2736

skipif mysql # not compatible
query II rowsort label-9012
SELECT ALL + COUNT ( * ), - 48 * + - 57 col2
----
1
2736

onlyif mysql # DIV for integer division: 
query I rowsort label-9013
SELECT ALL + COALESCE ( - 88, - - 69 DIV 28 * + - ( - ( - 96 ) ) + 32 + 63, - 61 - + 60 )
----
-88

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL + COALESCE ( - 88, - - 69 / 28 * + - ( - ( - 96 ) ) + 32 + 63, - 61 - + 60 )
----
-88

query I rowsort
SELECT - + 16 + + 97 col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9015
SELECT DISTINCT - NULLIF ( - 78, + COUNT( * ) * + 88 * - 41 + - 31 * - 63 * + - CAST( NULL AS DECIMAL ) * - COUNT( * ) * + 9 + - NULLIF ( - COUNT( * ), 40 ) ) / CASE - 27 WHEN + 29 THEN NULL WHEN MIN( ALL 61 ) THEN + - 77 END * + 4 col1, + 20 * - COUNT( * )
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-9015
SELECT DISTINCT - NULLIF ( - 78, + COUNT ( * ) * + 88 * - 41 + - 31 * - 63 * + - CAST ( NULL AS REAL ) * - COUNT ( * ) * + 9 + - NULLIF ( - COUNT ( * ), 40 ) ) / CASE - 27 WHEN + 29 THEN NULL WHEN MIN ( ALL 61 ) THEN + - 77 END * + 4 col1, + 20 * - COUNT ( * )
----
NULL
-20

query I rowsort
SELECT - - 41 + 50 + + 16 AS col2
----
107

query I rowsort
SELECT - - 36 - + 60 AS col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9018
SELECT + COALESCE ( 72, + + 32 DIV COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-9018
SELECT + COALESCE ( 72, + + 32 / COUNT ( * ) )
----
72

query I rowsort
SELECT ALL + ( - 46 )
----
-46

query II rowsort
SELECT ALL 51, ( 19 ) AS col2
----
51
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT - MIN( + - 62 )
----
62

skipif mysql # not compatible
query I rowsort label-9021
SELECT - MIN ( + - 62 )
----
62

query II rowsort
SELECT ALL ( 75 ) AS col1, 63
----
75
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT ALL - 48 * - 95 * COALESCE ( + COUNT( * ), + 24 )
----
4560

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL - 48 * - 95 * COALESCE ( + COUNT ( * ), + 24 )
----
4560

query I rowsort
SELECT - 31 + + - 35 + + 67 AS col0
----
1

query II rowsort
SELECT - 60, ( + - 63 ) AS col0
----
-60
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT SUM( DISTINCT ( - 46 ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-9026
SELECT SUM ( DISTINCT ( - 46 ) ) AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9027
SELECT ALL CAST( + MIN( DISTINCT + 63 ) AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL CAST ( + MIN ( DISTINCT + 63 ) AS INTEGER )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9028
SELECT - 8 + + + 17 * - - COUNT( 67 ) + - 14 + ( + 83 ) + + + 20 DIV + ( - - 55 ) * COUNT( * ) * - - 5 + + - 66 * - 37, + 87 AS col0
----
2520
87

skipif mysql # not compatible
query II rowsort label-9028
SELECT - 8 + + + 17 * - - COUNT ( 67 ) + - 14 + ( + 83 ) + + + 20 / + ( - - 55 ) * COUNT ( * ) * - - 5 + + - 66 * - 37, + 87 AS col0
----
2520
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT SUM( ALL + + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-9029
SELECT SUM ( ALL + + 11 )
----
11

query II rowsort
SELECT + 72 * 61 AS col1, 90
----
4392
90

query I rowsort
SELECT - 84 + + 18 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-9032
SELECT - ( - ( + ( + 1 ) ) ), MAX( DISTINCT - ( 94 ) ) col0
----
1
-94

skipif mysql # not compatible
query II rowsort label-9032
SELECT - ( - ( + ( + 1 ) ) ), MAX ( DISTINCT - ( 94 ) ) col0
----
1
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9033
SELECT - CASE + COUNT( * ) WHEN - 47 - - CAST( NULL AS SIGNED ) * + + 45 * 56 + + 30 THEN - COUNT( * ) / - 83 ELSE NULL END + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT - CASE + COUNT ( * ) WHEN - 47 - - CAST ( NULL AS INTEGER ) * + + 45 * 56 + + 30 THEN - COUNT ( * ) / - 83 ELSE NULL END + - 55
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9034
SELECT + 36 DIV - 12
----
-3

skipif mysql # not compatible
query I rowsort label-9034
SELECT + 36 / - 12
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9035
SELECT ALL - 13 + - CAST( - ( - 31 ) AS SIGNED ) + - - 50 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL - 13 + - CAST ( - ( - 31 ) AS INTEGER ) + - - 50 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT DISTINCT + 58 + + SUM( + - 67 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT + 58 + + SUM ( + - 67 ) AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9037
SELECT + CAST( NULL AS SIGNED ) + + 91 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9037
SELECT + CAST ( NULL AS INTEGER ) + + 91 * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9038
SELECT DISTINCT 94 DIV - - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT 94 / - - COUNT ( * )
----
94

query I rowsort
SELECT DISTINCT 53 + ( - 76 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT DISTINCT COUNT( * ) * - 58 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-9040
SELECT DISTINCT COUNT ( * ) * - 58 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL + 27 + ( COUNT( * ) )
----
28

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL + 27 + ( COUNT ( * ) )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT + + COUNT( * ) + + 8
----
9

skipif mysql # not compatible
query I rowsort label-9042
SELECT + + COUNT ( * ) + + 8
----
9

query I rowsort
SELECT + 3 + + 13 + - + 60
----
-44

query I rowsort
SELECT + 72 - 19
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9045
SELECT DISTINCT 0 DIV - - 33 * - - 39 + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT 0 / - - 33 * - - 39 + + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL - 0 - - 84 - 47 AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9047
SELECT DISTINCT - 12, ( - COUNT( * ) ) + COUNT( * ) AS col2
----
-12
0

skipif mysql # not compatible
query II rowsort label-9047
SELECT DISTINCT - 12, ( - COUNT ( * ) ) + COUNT ( * ) AS col2
----
-12
0

query II rowsort
SELECT 87 AS col0, 40 * 36
----
87
1440

query II rowsort
SELECT ALL - + 49 AS col1, + 94 AS col2
----
-49
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT COUNT( * ) * 90 * + 79 AS col1
----
7110

skipif mysql # not compatible
query I rowsort label-9050
SELECT COUNT ( * ) * 90 * + 79 AS col1
----
7110

query I rowsort
SELECT + 41 * 25 + + 88 AS col0
----
1113

query II rowsort
SELECT ALL - - 72 AS col0, + 65 * - 82
----
72
-5330

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT - SUM( DISTINCT - 29 ) * - 99
----
-2871

skipif mysql # not compatible
query I rowsort label-9053
SELECT - SUM ( DISTINCT - 29 ) * - 99
----
-2871

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9054
SELECT ALL - MAX( DISTINCT - 79 ) col2, - ( + 89 ) * COUNT( + 4 ) DIV NULLIF ( - 48, - 59 ) - - 98 + 80 AS col0
----
79
179

skipif mysql # not compatible
query II rowsort label-9054
SELECT ALL - MAX ( DISTINCT - 79 ) col2, - ( + 89 ) * COUNT ( + 4 ) / NULLIF ( - 48, - 59 ) - - 98 + 80 AS col0
----
79
179

onlyif mysql # aggregate syntax: 
query II rowsort label-9055
SELECT 53 + + COUNT( * ) AS col1, + 41 AS col1
----
54
41

skipif mysql # not compatible
query II rowsort label-9055
SELECT 53 + + COUNT ( * ) AS col1, + 41 AS col1
----
54
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9056
SELECT ALL NULLIF ( - + CAST( COALESCE ( COUNT( * ), - ( + COUNT( - 14 ) ), - COUNT( DISTINCT - - NULLIF ( 22, 29 ) ), + 97 * CASE - 89 WHEN - 28 - - NULLIF ( + + 22, - ( - CAST( NULL AS SIGNED ) ) - - - 40 ) THEN NULL WHEN - + 88 THEN + 70 * 20 * + 31 * - + CAST( NULL AS SIGNED ) + 27 ELSE - + 27 END + - MIN( + + 94 ) ) AS SIGNED ), - CAST( NULL AS SIGNED ) * + 11 * + MAX( 7 ) + - 63 ) * - 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL NULLIF ( - + CAST ( COALESCE ( COUNT ( * ), - ( + COUNT ( - 14 ) ), - COUNT ( DISTINCT - - NULLIF ( 22, 29 ) ), + 97 * CASE - 89 WHEN - 28 - - NULLIF ( + + 22, - ( - CAST ( NULL AS INTEGER ) ) - - - 40 ) THEN NULL WHEN - + 88 THEN + 70 * 20 * + 31 * - + CAST ( NULL AS INTEGER ) + 27 ELSE - + 27 END + - MIN ( + + 94 ) ) AS INTEGER ), - CAST ( NULL AS INTEGER ) * + 11 * + MAX ( 7 ) + - 63 ) * - 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT DISTINCT - CASE + 70 WHEN - MAX( ALL + 94 ) THEN - - 35 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT - CASE + 70 WHEN - MAX ( ALL + 94 ) THEN - - 35 END col1
----
NULL

query I rowsort
SELECT 71 * - 96 + + 74
----
-6742

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT 52 * - + COUNT( * ) * + - 72
----
3744

skipif mysql # not compatible
query I rowsort label-9059
SELECT 52 * - + COUNT ( * ) * + - 72
----
3744

query I rowsort
SELECT 87 + - 81
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9061
SELECT ALL + 71 DIV + - 22 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL + 71 / + - 22 AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9062
SELECT ALL 66 + - + CASE + 61 WHEN NULLIF ( CAST( NULL AS SIGNED ), - ( 51 ) + - + 79 - - - COUNT( ALL - CAST( NULL AS SIGNED ) ) + - 75 ) + + 49 THEN NULL ELSE 4 + - ( + + 15 ) END col1, COUNT( * ) + COUNT( * ) AS col2
----
77
2

skipif mysql # not compatible
query II rowsort label-9062
SELECT ALL 66 + - + CASE + 61 WHEN NULLIF ( CAST ( NULL AS INTEGER ), - ( 51 ) + - + 79 - - - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + - 75 ) + + 49 THEN NULL ELSE 4 + - ( + + 15 ) END col1, COUNT ( * ) + COUNT ( * ) AS col2
----
77
2

query I rowsort
SELECT DISTINCT + 90 + - + 66 AS col0
----
24

query I rowsort
SELECT ALL + 44 + + 32 * - 34 + + 26 AS col1
----
-1018

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT 77 + + - 88 - - COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9065
SELECT 77 + + - 88 - - COUNT ( * ) AS col0
----
-10

query I rowsort
SELECT ALL 42 * - + 57 col2
----
-2394

query II rowsort
SELECT ALL + 45 + 33 AS col2, 57 * 34 col0
----
78
1938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9068
SELECT 77 * - + 39, + SUM( + CAST( + 80 AS SIGNED ) ) AS col2
----
-3003
80

skipif mysql # not compatible
query II rowsort label-9068
SELECT 77 * - + 39, + SUM ( + CAST ( + 80 AS INTEGER ) ) AS col2
----
-3003
80

query II rowsort
SELECT 50 + + - 90 col1, + 74 * - COALESCE ( - 16, - 69 * + 67, + - ( + 70 ) ) AS col2
----
-40
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT ALL COUNT( + + ( + 80 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL COUNT ( + + ( + 80 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9071
SELECT ALL + 65 + + - MIN( - + 99 ) AS col0, 34 AS col0
----
164
34

skipif mysql # not compatible
query II rowsort label-9071
SELECT ALL + 65 + + - MIN ( - + 99 ) AS col0, 34 AS col0
----
164
34

query I rowsort
SELECT + COALESCE ( + 64, + 4 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT DISTINCT + + 48 + ( + - COUNT( * ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT + + 48 + ( + - COUNT ( * ) ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT - 46 * - CAST( NULL AS SIGNED ) - 91 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT - 46 * - CAST ( NULL AS INTEGER ) - 91 col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9075
SELECT DISTINCT + 13 DIV - - 31 col2, + 40 AS col1
----
0
40

skipif mysql # not compatible
query II rowsort label-9075
SELECT DISTINCT + 13 / - - 31 col2, + 40 AS col1
----
0
40

query I rowsort
SELECT ALL - - 20 AS col2
----
20

query I rowsort
SELECT ALL COALESCE ( 48, - + 39 ) * + COALESCE ( - 18, - + 86 ) + ( - 37 ) col1
----
-901

query I rowsort
SELECT - 3 + 66 + + - 15
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9079
SELECT 44 / + 58 * + ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9079
SELECT 44 / + 58 * + ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 42 * - 57 col0
----
-2394

onlyif mysql # aggregate syntax: 
query II rowsort label-9081
SELECT 99 * + 10 + + 81, - COUNT( * ) AS col0
----
1071
-1

skipif mysql # not compatible
query II rowsort label-9081
SELECT 99 * + 10 + + 81, - COUNT ( * ) AS col0
----
1071
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT + COUNT( DISTINCT - 24 )
----
1

skipif mysql # not compatible
query I rowsort label-9082
SELECT + COUNT ( DISTINCT - 24 )
----
1

query I rowsort
SELECT ALL + 88 * + 68 AS col2
----
5984

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT DISTINCT - - MAX( DISTINCT + + 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT - - MAX ( DISTINCT + + 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9085
SELECT ALL + 19 * 76 DIV MIN( DISTINCT - 54 )
----
-26

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL + 19 * 76 / MIN ( DISTINCT - 54 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT ALL - NULLIF ( - COALESCE ( + + 50, 60 ), - - 98 + COALESCE ( + + 18, - - 0 + 39 ) + - + MAX( 85 ) * - 15 / - - 44 + - MAX( ALL + 73 ) * + 60 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL - NULLIF ( - COALESCE ( + + 50, 60 ), - - 98 + COALESCE ( + + 18, - - 0 + 39 ) + - + MAX ( 85 ) * - 15 / - - 44 + - MAX ( ALL + 73 ) * + 60 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT COUNT( * ) * 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9087
SELECT COUNT ( * ) * 30 AS col2
----
30

query II rowsort
SELECT ALL - 17 AS col2, 17 - + + 10
----
-17
7

query II rowsort
SELECT + 5 col2, - ( 74 ) AS col2
----
5
-74

query I rowsort
SELECT 91 - - 66 AS col0
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT DISTINCT 84 * - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT 84 * - COUNT ( * )
----
-84

query I rowsort
SELECT ALL - 13 + - 86
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9093
SELECT DISTINCT + 58 + - CASE - - CAST( - 3 AS SIGNED ) WHEN - 85 THEN NULL WHEN - 0 * - - 82 THEN - ( + 23 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT + 58 + - CASE - - CAST ( - 3 AS INTEGER ) WHEN - 85 THEN NULL WHEN - 0 * - - 82 THEN - ( + 23 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL 19 * + - COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL 19 * + - COUNT ( * ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-9095
SELECT DISTINCT 75, 66 + - ( SUM( + + 37 ) ) AS col1
----
75
29

skipif mysql # not compatible
query II rowsort label-9095
SELECT DISTINCT 75, 66 + - ( SUM ( + + 37 ) ) AS col1
----
75
29

query I rowsort
SELECT 67 + 14
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9097
SELECT ( - 10 ) * + 97 AS col2, SUM( - ( + - 65 ) ) AS col2
----
-970
65

skipif mysql # not compatible
query II rowsort label-9097
SELECT ( - 10 ) * + 97 AS col2, SUM ( - ( + - 65 ) ) AS col2
----
-970
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9098
SELECT CAST( + CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) + - 72 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9098
SELECT CAST ( + CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) + - 72 AS col1
----
-73

query I rowsort
SELECT 22 * - + 89
----
-1958

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT + ( 89 ) + - COUNT( - 25 ) col2
----
88

skipif mysql # not compatible
query I rowsort label-9100
SELECT + ( 89 ) + - COUNT ( - 25 ) col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT - COUNT( * ) + - 43 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-9101
SELECT - COUNT ( * ) + - 43 AS col1
----
-44

query II rowsort
SELECT ALL 87 AS col1, ( 25 ) * 0 AS col2
----
87
0

query II rowsort
SELECT ALL 4, - 56 AS col2
----
4
-56

query I rowsort
SELECT - 21 + - 51 * - - 0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-9105
SELECT ALL COUNT( * ) AS col1, + ( + 83 )
----
1
83

skipif mysql # not compatible
query II rowsort label-9105
SELECT ALL COUNT ( * ) AS col1, + ( + 83 )
----
1
83

query II rowsort
SELECT DISTINCT 71 AS col1, 84
----
71
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9107
SELECT ALL + + 83 * - COUNT( * ) * + 59 AS col1, CAST( NULL AS DECIMAL ) / 19 / - + 54
----
-4897
NULL

skipif mysql # not compatible
query II rowsort label-9107
SELECT ALL + + 83 * - COUNT ( * ) * + 59 AS col1, CAST ( NULL AS REAL ) / 19 / - + 54
----
-4897
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9108
SELECT - 74 + + + 84 + + NULLIF ( 68, + - 68 + 98 / + COALESCE ( 71, + + 77 ) ) + + NULLIF ( + CAST( NULL AS SIGNED ), - - ( - 73 ) ) * + - 67 * ( MAX( DISTINCT + + 74 ) ) + - 93 * + MIN( 96 ) - - + 54, 20 col0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-9108
SELECT - 74 + + + 84 + + NULLIF ( 68, + - 68 + 98 / + COALESCE ( 71, + + 77 ) ) + + NULLIF ( + CAST ( NULL AS INTEGER ), - - ( - 73 ) ) * + - 67 * ( MAX ( DISTINCT + + 74 ) ) + - 93 * + MIN ( 96 ) - - + 54, 20 col0
----
NULL
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT - - SUM( - ( + 93 ) ) * + COUNT( * ) * + 18
----
-1674

skipif mysql # not compatible
query I rowsort label-9109
SELECT - - SUM ( - ( + 93 ) ) * + COUNT ( * ) * + 18
----
-1674

query I rowsort
SELECT - 48 + - 91 AS col0
----
-139

query I rowsort
SELECT - + 98 - - + 50 AS col0
----
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9112
SELECT - - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9112
SELECT - - CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT + - COUNT( * ) + - 31 + 3 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9113
SELECT + - COUNT ( * ) + - 31 + 3 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-9114
SELECT 98 AS col1, + SUM( + 71 ) * - 37
----
98
-2627

skipif mysql # not compatible
query II rowsort label-9114
SELECT 98 AS col1, + SUM ( + 71 ) * - 37
----
98
-2627

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT ALL + - MAX( ALL + - 36 ) col0
----
36

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL + - MAX ( ALL + - 36 ) col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9116
SELECT ALL - ( + - 35 ) DIV - + 25 col1, COUNT( + - 13 ) + + 52
----
-1
53

skipif mysql # not compatible
query II rowsort label-9116
SELECT ALL - ( + - 35 ) / - + 25 col1, COUNT ( + - 13 ) + + 52
----
-1
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9117
SELECT DISTINCT + + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT + + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9118
SELECT DISTINCT + 48 * - 10 * + COUNT( * ) + + 69 AS col0, 53 AS col1
----
-411
53

skipif mysql # not compatible
query II rowsort label-9118
SELECT DISTINCT + 48 * - 10 * + COUNT ( * ) + + 69 AS col0, 53 AS col1
----
-411
53

query II rowsort
SELECT 35, 73 AS col0
----
35
73

query II rowsort
SELECT ALL - 29 * - - 66 + - - 67 + + + 40 col0, + 2
----
-1807
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT COALESCE ( 72, + 4 * + 14 * + + 27 * MAX( DISTINCT + 26 ) * 94 * 69 - COUNT( * ) ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-9121
SELECT COALESCE ( 72, + 4 * + 14 * + + 27 * MAX ( DISTINCT + 26 ) * 94 * 69 - COUNT ( * ) ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT - COUNT( * ) + - 55 - - 67 * + 54 * + 71 col0
----
256822

skipif mysql # not compatible
query I rowsort label-9122
SELECT - COUNT ( * ) + - 55 - - 67 * + 54 * + 71 col0
----
256822

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT CASE COUNT( * ) WHEN 23 + - 13 * + + 66 * - ( + + 8 ) THEN 7 WHEN + ( - 40 ) THEN NULL WHEN 64 THEN + 98 * + COUNT( * ) * + - 98 - COALESCE ( - ( + 92 ), - ( + 48 ) * 0 ) END * + ( 50 ) + + 58 - + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9123
SELECT CASE COUNT ( * ) WHEN 23 + - 13 * + + 66 * - ( + + 8 ) THEN 7 WHEN + ( - 40 ) THEN NULL WHEN 64 THEN + 98 * + COUNT ( * ) * + - 98 - COALESCE ( - ( + 92 ), - ( + 48 ) * 0 ) END * + ( 50 ) + + 58 - + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT ALL COUNT( * ) * ( + 12 ) + + + 35 + - 41 + - COALESCE ( MAX( + 15 ), + 22 + + - COUNT( * ) * + - 0 ) + - SUM( + 59 ) * - + 70 * 74
----
305611

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL COUNT ( * ) * ( + 12 ) + + + 35 + - 41 + - COALESCE ( MAX ( + 15 ), + 22 + + - COUNT ( * ) * + - 0 ) + - SUM ( + 59 ) * - + 70 * 74
----
305611

query II rowsort
SELECT + COALESCE ( + + 40, - - 0 - - 58 ) AS col2, + 47
----
40
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT + 31 + + CAST( + 15 AS SIGNED ) + - 50
----
-4

skipif mysql # not compatible
query I rowsort label-9126
SELECT + 31 + + CAST ( + 15 AS INTEGER ) + - 50
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL 52 * 47 * - + 13 + COUNT( * ) AS col1
----
-31771

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL 52 * 47 * - + 13 + COUNT ( * ) AS col1
----
-31771

query I rowsort
SELECT + 46 * - + 60 + 5
----
-2755

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT ALL 58 * + - COUNT( * ) + + 18 * 58 + COUNT( * ) + + + 29 AS col0
----
1016

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL 58 * + - COUNT ( * ) + + 18 * 58 + COUNT ( * ) + + + 29 AS col0
----
1016

onlyif mysql # aggregate syntax: 
query II rowsort label-9130
SELECT + NULLIF ( ( 24 ), COUNT( DISTINCT + 89 ) + + + 86 + NULLIF ( + 76, 2 * + + 70 + 68 ) ) * + 93 + + 55 * 95 + - ( 89 ) + - + 47, 91 + - + 16 AS col0
----
7321
75

skipif mysql # not compatible
query II rowsort label-9130
SELECT + NULLIF ( ( 24 ), COUNT ( DISTINCT + 89 ) + + + 86 + NULLIF ( + 76, 2 * + + 70 + 68 ) ) * + 93 + + 55 * 95 + - ( 89 ) + - + 47, 91 + - + 16 AS col0
----
7321
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9131
SELECT MAX( DISTINCT ( + NULLIF ( + ( + 79 ), + + 18 + + 52 + - 73 + - 97 ) ) ), SUM( + 19 ) DIV + 89 + + 49 * + MAX( DISTINCT + 83 ) AS col2
----
79
4067

skipif mysql # not compatible
query II rowsort label-9131
SELECT MAX ( DISTINCT ( + NULLIF ( + ( + 79 ), + + 18 + + 52 + - 73 + - 97 ) ) ), SUM ( + 19 ) / + 89 + + 49 * + MAX ( DISTINCT + 83 ) AS col2
----
79
4067

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT 45 * + - 93 + - COUNT( * )
----
-4186

skipif mysql # not compatible
query I rowsort label-9132
SELECT 45 * + - 93 + - COUNT ( * )
----
-4186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9133
SELECT ALL MIN( DISTINCT - - CASE - - 40 WHEN + 25 * + 20 * + + ( + 97 ) * + 69 + + 50 / - 11 - - CAST( NULL AS SIGNED ) * - 98 + 44 THEN NULL WHEN - COALESCE ( - 68, + CAST( NULL AS SIGNED ) ) THEN + 95 * - + 86 * - 72 WHEN - + 2 / + ( - - 7 ) - 64 * - 49 + + 36 THEN + - 16 + 51 END ) * - 74 + + 86, 13 + + NULLIF ( + ( + 45 ), - COUNT( * ) + 48 ) * 34 AS col2
----
NULL
1543

skipif mysql # not compatible
query II rowsort label-9133
SELECT ALL MIN ( DISTINCT - - CASE - - 40 WHEN + 25 * + 20 * + + ( + 97 ) * + 69 + + 50 / - 11 - - CAST ( NULL AS INTEGER ) * - 98 + 44 THEN NULL WHEN - COALESCE ( - 68, + CAST ( NULL AS INTEGER ) ) THEN + 95 * - + 86 * - 72 WHEN - + 2 / + ( - - 7 ) - 64 * - 49 + + 36 THEN + - 16 + 51 END ) * - 74 + + 86, 13 + + NULLIF ( + ( + 45 ), - COUNT ( * ) + 48 ) * 34 AS col2
----
NULL
1543

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT - 77 + - COUNT( * ) / + - CASE - 13 WHEN + CASE 34 WHEN - - 74 THEN - 58 - - 48 END THEN NULL WHEN COUNT( * ) THEN 93 WHEN 66 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT - 77 + - COUNT ( * ) / + - CASE - 13 WHEN + CASE 34 WHEN - - 74 THEN - 58 - - 48 END THEN NULL WHEN COUNT ( * ) THEN 93 WHEN 66 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9135
SELECT - COALESCE ( + + 61, + + 24 * - + ( COUNT( * ) ) - + + COALESCE ( - 61, + 97 + - 95, COUNT( * ) ) * - ( - 97 ), - + 86 * - 18 + - 13 - - CAST( NULL AS SIGNED ) * - + 17 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-9135
SELECT - COALESCE ( + + 61, + + 24 * - + ( COUNT ( * ) ) - + + COALESCE ( - 61, + 97 + - 95, COUNT ( * ) ) * - ( - 97 ), - + 86 * - 18 + - 13 - - CAST ( NULL AS INTEGER ) * - + 17 ) AS col0
----
-61

query I rowsort
SELECT + + ( + 61 ) * - + 64 AS col0
----
-3904

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT DISTINCT - 15 - - COUNT( * ) * - 84 - + 32 * - + 62 AS col1
----
1885

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT - 15 - - COUNT ( * ) * - 84 - + 32 * - + 62 AS col1
----
1885

query I rowsort
SELECT + 49 * 57 * + - 98 + NULLIF ( - ( + 33 ), - + 97 ) * 91 AS col1
----
-276717

query II rowsort
SELECT - 19 * 5 AS col0, 80 AS col1
----
-95
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9140
SELECT ALL - 63 DIV + 63 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL - 63 / + 63 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT DISTINCT MIN( DISTINCT - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT MIN ( DISTINCT - 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT DISTINCT - 30 / + NULLIF ( + - CASE + + 32 WHEN - CASE - 81 WHEN + 37 * 73 THEN NULL WHEN - - 98 + - 13 THEN - - 83 - - + 45 + - 10 * 95 ELSE NULL END THEN - + 49 * - CASE + ( - + ( MIN( - 98 ) ) ) WHEN 95 THEN NULL WHEN 11 THEN + + COUNT( * ) WHEN - COALESCE ( + + 69, + 11 * - 73 * - 92 ) THEN NULL END * - COUNT( * ) + - - 97 * 21 * + COUNT( * ) + - + 71 WHEN + 21 THEN NULL END, - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT - 30 / + NULLIF ( + - CASE + + 32 WHEN - CASE - 81 WHEN + 37 * 73 THEN NULL WHEN - - 98 + - 13 THEN - - 83 - - + 45 + - 10 * 95 ELSE NULL END THEN - + 49 * - CASE + ( - + ( MIN ( - 98 ) ) ) WHEN 95 THEN NULL WHEN 11 THEN + + COUNT ( * ) WHEN - COALESCE ( + + 69, + 11 * - 73 * - 92 ) THEN NULL END * - COUNT ( * ) + - - 97 * 21 * + COUNT ( * ) + - + 71 WHEN + 21 THEN NULL END, - 57 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9143
SELECT DISTINCT - 14 * + 96 * + NULLIF ( SUM( DISTINCT - 64 ), + 61 ) * + 32 col2, 30
----
2752512
30

skipif mysql # not compatible
query II rowsort label-9143
SELECT DISTINCT - 14 * + 96 * + NULLIF ( SUM ( DISTINCT - 64 ), + 61 ) * + 32 col2, 30
----
2752512
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9144
SELECT ALL 82 DIV + 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL 82 / + 48 AS col1
----
1

query I rowsort
SELECT DISTINCT + + 5 * 5
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT - CASE - - 15 WHEN COUNT( * ) THEN + COALESCE ( 26, + 19 + 69 * + ( + 82 ) ) - 17 + + - 85 ELSE - - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-9146
SELECT - CASE - - 15 WHEN COUNT ( * ) THEN + COALESCE ( 26, + 19 + 69 * + ( + 82 ) ) - 17 + + - 85 ELSE - - COUNT ( * ) END
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9147
SELECT - + COUNT( * ) * 37 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-9147
SELECT - + COUNT ( * ) * 37 / - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT + + MIN( + 46 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9148
SELECT + + MIN ( + 46 ) AS col0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9149
SELECT ALL 75 DIV + 50 + + 68 * - - 43
----
2925

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL 75 / + 50 + + 68 * - - 43
----
2925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9150
SELECT ALL + MAX( - + CAST( NULL AS SIGNED ) ) AS col1, 90 * 65 AS col1
----
NULL
5850

skipif mysql # not compatible
query II rowsort label-9150
SELECT ALL + MAX ( - + CAST ( NULL AS INTEGER ) ) AS col1, 90 * 65 AS col1
----
NULL
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT - MIN( DISTINCT - - 31 ) + 39 col1
----
8

skipif mysql # not compatible
query I rowsort label-9151
SELECT - MIN ( DISTINCT - - 31 ) + 39 col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT + COUNT( ALL - 69 )
----
1

skipif mysql # not compatible
query I rowsort label-9152
SELECT + COUNT ( ALL - 69 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT 94 * - 35 / + CAST( NULL AS SIGNED ) + + - 54 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT 94 * - 35 / + CAST ( NULL AS INTEGER ) + + - 54 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9154
SELECT CAST( COALESCE ( + COUNT( * ), + 74 + + COUNT( * ) * + + 69 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9154
SELECT CAST ( COALESCE ( + COUNT ( * ), + 74 + + COUNT ( * ) * + + 69 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT DISTINCT + 3 * - + COUNT( * ) col1
----
-3

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT + 3 * - + COUNT ( * ) col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9156
SELECT ALL 11 DIV - - 70 * + - 64 * - 17 + - 17 * 79 AS col0
----
-1343

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL 11 / - - 70 * + - 64 * - 17 + - 17 * 79 AS col0
----
-1343

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9157
SELECT + 1 AS col0, - CAST( - - 81 AS SIGNED )
----
1
-81

skipif mysql # not compatible
query II rowsort label-9157
SELECT + 1 AS col0, - CAST ( - - 81 AS INTEGER )
----
1
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT + COUNT( + - 56 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9158
SELECT + COUNT ( + - 56 ) AS col2
----
1

query I rowsort
SELECT - 1 * ( + - 57 ) AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9160
SELECT - 19 DIV ( 94 )
----
0

skipif mysql # not compatible
query I rowsort label-9160
SELECT - 19 / ( 94 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9161
SELECT + 66 AS col2, COUNT( * ) AS col2
----
66
1

skipif mysql # not compatible
query II rowsort label-9161
SELECT + 66 AS col2, COUNT ( * ) AS col2
----
66
1

query I rowsort
SELECT ALL + ( + ( - 91 ) ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT + 1 * COUNT( * ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9163
SELECT + 1 * COUNT ( * ) * + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + 60 * + 43
----
2580

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL 65 * + COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL 65 * + COUNT ( * ) AS col0
----
65

query I rowsort
SELECT + ( - - 56 ) AS col2
----
56

query I rowsort
SELECT DISTINCT - 41 * + - 50
----
2050

query I rowsort
SELECT DISTINCT + 77 * - + 7 * + + 61 AS col1
----
-32879

query I rowsort
SELECT ALL - 23 * 53 AS col2
----
-1219

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT ALL SUM( ALL + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL SUM ( ALL + 86 )
----
86

query I rowsort
SELECT NULLIF ( - + 99, 81 ) + 22 AS col2
----
-77

query I rowsort
SELECT - + NULLIF ( + + 18, - 76 )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-9173
SELECT + 16 * - MIN( DISTINCT 83 ) + - - MAX( ALL - COALESCE ( - ( 75 ), + 70 ) ) AS col1, 16 AS col0
----
-1253
16

skipif mysql # not compatible
query II rowsort label-9173
SELECT + 16 * - MIN ( DISTINCT 83 ) + - - MAX ( ALL - COALESCE ( - ( 75 ), + 70 ) ) AS col1, 16 AS col0
----
-1253
16

query I rowsort
SELECT - 56 + - - 69 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT - COUNT( * ) - 25 * + 52
----
-1301

skipif mysql # not compatible
query I rowsort label-9175
SELECT - COUNT ( * ) - 25 * + 52
----
-1301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT - CAST( - - 65 AS SIGNED ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-9176
SELECT - CAST ( - - 65 AS INTEGER ) AS col1
----
-65

query II rowsort
SELECT 46, - 71 AS col2
----
46
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9178
SELECT ALL CAST( NULL AS SIGNED ) * 22 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL CAST ( NULL AS INTEGER ) * 22 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT DISTINCT 71 + ( + 60 ) * MIN( DISTINCT - 12 ) AS col2
----
-649

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT 71 + ( + 60 ) * MIN ( DISTINCT - 12 ) AS col2
----
-649

query I rowsort
SELECT ALL - + 40 + + - 86 AS col1
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-9181
SELECT ( + 65 ) + 33 + + 99 * + ( 98 ) AS col1, COUNT( - ( - 49 ) ) * + 77
----
9800
77

skipif mysql # not compatible
query II rowsort label-9181
SELECT ( + 65 ) + 33 + + 99 * + ( 98 ) AS col1, COUNT ( - ( - 49 ) ) * + 77
----
9800
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT + COUNT( * ) + - - COUNT( * ) + - + 1 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9182
SELECT + COUNT ( * ) + - - COUNT ( * ) + - + 1 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT - + ( + SUM( - 73 ) )
----
73

skipif mysql # not compatible
query I rowsort label-9183
SELECT - + ( + SUM ( - 73 ) )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-9184
SELECT + 80 AS col0, + COUNT( * ) AS col0
----
80
1

skipif mysql # not compatible
query II rowsort label-9184
SELECT + 80 AS col0, + COUNT ( * ) AS col0
----
80
1

query I rowsort
SELECT - 55 + + - 49 AS col2
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ALL + 89 + + 18 + COUNT( * )
----
108

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL + 89 + + 18 + COUNT ( * )
----
108

query I rowsort
SELECT ALL - 26 + + 95
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT CASE 19 WHEN - 23 * + 31 + + - COUNT( * ) - - 4 THEN NULL ELSE + COUNT( * ) END * + 6
----
6

skipif mysql # not compatible
query I rowsort label-9188
SELECT CASE 19 WHEN - 23 * + 31 + + - COUNT ( * ) - - 4 THEN NULL ELSE + COUNT ( * ) END * + 6
----
6

query I rowsort
SELECT DISTINCT 61 + + 40
----
101

query I rowsort
SELECT ALL - 54 * - 28 AS col1
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT DISTINCT - COUNT( DISTINCT + 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT - COUNT ( DISTINCT + 53 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT + ( - NULLIF ( 32, - + 48 * - + 33 * 22 + - + ( - + 88 ) + 96 ) ) DIV + 30 + + 25 * + ( - 85 ) + + + 43 AS col1
----
-2083

skipif mysql # not compatible
query I rowsort label-9192
SELECT + ( - NULLIF ( 32, - + 48 * - + 33 * 22 + - + ( - + 88 ) + 96 ) ) / + 30 + + 25 * + ( - 85 ) + + + 43 AS col1
----
-2083

query I rowsort
SELECT ALL 96 - + ( + 34 )
----
62

query II rowsort
SELECT 84 AS col2, 27
----
84
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9195
SELECT + 56 AS col0, COUNT( * )
----
56
1

skipif mysql # not compatible
query II rowsort label-9195
SELECT + 56 AS col0, COUNT ( * )
----
56
1

query I rowsort
SELECT 71 * - + 50 AS col2
----
-3550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9197
SELECT 77 + CASE 24 WHEN 43 THEN NULL WHEN - 68 + + - 22 + + 35 * + 31 + + ( CASE - CASE - COUNT( * ) WHEN - + COUNT( * ) * + 57 - + 37 THEN NULL WHEN + 48 * + 17 / + - 49 THEN NULL ELSE 1 + - ( + - CAST( + 49 AS SIGNED ) ) END WHEN + 41 THEN 59 END ) THEN NULL WHEN + 56 THEN NULL ELSE 51 - + 93 * + - COUNT( * ) - 24 END + - 33 - + + 70 + 49
----
143

skipif mysql # not compatible
query I rowsort label-9197
SELECT 77 + CASE 24 WHEN 43 THEN NULL WHEN - 68 + + - 22 + + 35 * + 31 + + ( CASE - CASE - COUNT ( * ) WHEN - + COUNT ( * ) * + 57 - + 37 THEN NULL WHEN + 48 * + 17 / + - 49 THEN NULL ELSE 1 + - ( + - CAST ( + 49 AS INTEGER ) ) END WHEN + 41 THEN 59 END ) THEN NULL WHEN + 56 THEN NULL ELSE 51 - + 93 * + - COUNT ( * ) - 24 END + - 33 - + + 70 + 49
----
143

query II rowsort
SELECT + 64 AS col0, - 86 AS col0
----
64
-86

query I rowsort
SELECT ALL + 64 - 79 + + 74 * + + 69 * - + 14 AS col0
----
-71499

onlyif mysql # aggregate syntax: 
query II rowsort label-9200
SELECT DISTINCT - 73 AS col0, COUNT( * ) AS col2
----
-73
1

skipif mysql # not compatible
query II rowsort label-9200
SELECT DISTINCT - 73 AS col0, COUNT ( * ) AS col2
----
-73
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9201
SELECT 12 + - COALESCE ( - + 78, - COUNT( * ) ) AS col0, + 36 + - 29 + + 56
----
90
63

skipif mysql # not compatible
query II rowsort label-9201
SELECT 12 + - COALESCE ( - + 78, - COUNT ( * ) ) AS col0, + 36 + - 29 + + 56
----
90
63

query I rowsort
SELECT DISTINCT - NULLIF ( + 79, 31 ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL - 91 * + 4 * COUNT( * ) AS col2
----
-364

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL - 91 * + 4 * COUNT ( * ) AS col2
----
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT 22 + + - 61 - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9204
SELECT 22 + + - 61 - COUNT ( * ) AS col1
----
-40

query II rowsort
SELECT + 33 AS col2, 4 + 20 AS col1
----
33
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT DISTINCT - COALESCE ( + 4, 79 * - 51 * + 65 * - 21 + + COUNT( * ) * + + 39 )
----
-4

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT - COALESCE ( + 4, 79 * - 51 * + 65 * - 21 + + COUNT ( * ) * + + 39 )
----
-4

query I rowsort
SELECT ALL - 96 * + - 82
----
7872

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT 19 + + - COUNT( * ) + 86 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-9208
SELECT 19 + + - COUNT ( * ) + 86 AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT DISTINCT - + NULLIF ( - COUNT( * ), - MAX( ALL - 38 ) * + 97 ) + + 77
----
78

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT - + NULLIF ( - COUNT ( * ), - MAX ( ALL - 38 ) * + 97 ) + + 77
----
78

query I rowsort
SELECT ALL - - 63 * - 24 + + + 72 + - 69 col1
----
-1509

query I rowsort
SELECT ALL 97 * 27 * 46
----
120474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9212
SELECT 67 DIV - - 32 - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9212
SELECT 67 / - - 32 - COUNT ( * )
----
1

query I rowsort
SELECT ALL + 36 + - 3 + + 20 col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9214
SELECT SUM( + 48 ) * COALESCE ( + + CAST( NULL AS SIGNED ), + 45 - - 1 + - 56 + + 70 + 96 - + + 66 ) AS col1
----
4320

skipif mysql # not compatible
query I rowsort label-9214
SELECT SUM ( + 48 ) * COALESCE ( + + CAST ( NULL AS INTEGER ), + 45 - - 1 + - 56 + + 70 + 96 - + + 66 ) AS col1
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT ALL - + MAX( + 39 ) + + - 15 + 89 + COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL - + MAX ( + 39 ) + + - 15 + 89 + COUNT ( * ) AS col0
----
36

query I rowsort
SELECT ALL + 55 + + + 32 + - 95 * - 76 AS col2
----
7307

onlyif mysql # aggregate syntax: 
query II rowsort label-9217
SELECT 86, - COUNT( * ) AS col1
----
86
-1

skipif mysql # not compatible
query II rowsort label-9217
SELECT 86, - COUNT ( * ) AS col1
----
86
-1

query I rowsort
SELECT ALL - COALESCE ( - 94, + + 52, - 13 ) + 99
----
193

query I rowsort
SELECT ALL - 81 + 67
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9220
SELECT + COALESCE ( + 61, - 78 - + 74 + + 50 + - 27 * + 96 * - 40 ) DIV 54 + 37 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-9220
SELECT + COALESCE ( + 61, - 78 - + 74 + + 50 + - 27 * + 96 * - 40 ) / 54 + 37 AS col2
----
38

query I rowsort
SELECT DISTINCT - ( + - ( 92 ) ) AS col0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9222
SELECT - 56 - - 97 DIV - - 12 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9222
SELECT - 56 - - 97 / - - 12 AS col1
----
-48

query II rowsort
SELECT - - 67, + 54 * - 14 AS col0
----
67
-756

query II rowsort
SELECT ALL 0 + 94, 65 AS col0
----
94
65

query I rowsort
SELECT DISTINCT + 62 + + 21 * - 26 AS col1
----
-484

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT + NULLIF ( - COUNT( * ), - 5 * + 21 + 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-9226
SELECT + NULLIF ( - COUNT ( * ), - 5 * + 21 + 23 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT 16 * - + NULLIF ( - COUNT( * ), 6 / 45 )
----
16

skipif mysql # not compatible
query I rowsort label-9227
SELECT 16 * - + NULLIF ( - COUNT ( * ), 6 / 45 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9228
SELECT ALL - 29 + + COUNT( - - ( + + 2 ) ) * + COUNT( * ) + - 22 + + COALESCE ( + + 41, COALESCE ( CAST( COUNT( * ) AS SIGNED ), - 43 + 92 ) ) + + + 56 - - 14 + COUNT( * ) * - 92 DIV 72 DIV ( - - COUNT( * ) ) * + - COUNT( * ) col0
----
62

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL - 29 + + COUNT ( - - ( + + 2 ) ) * + COUNT ( * ) + - 22 + + COALESCE ( + + 41, COALESCE ( CAST ( COUNT ( * ) AS INTEGER ), - 43 + 92 ) ) + + + 56 - - 14 + COUNT ( * ) * - 92 / 72 / ( - - COUNT ( * ) ) * + - COUNT ( * ) col0
----
62

query I rowsort
SELECT - - COALESCE ( + 65, - 13 )
----
65

query II rowsort
SELECT ALL + ( - - 4 ) AS col0, - 31 * + ( - 38 )
----
4
1178

query II rowsort
SELECT ALL 87, + 38 AS col0
----
87
38

query I rowsort
SELECT ALL 8 * 29 * - + 99
----
-22968

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT ALL 96 - MIN( - 58 )
----
154

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL 96 - MIN ( - 58 )
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT DISTINCT 55 * COALESCE ( + + 55, - + ( + MIN( ALL + + 0 ) ) + + 81 + - - CASE + + 69 WHEN + 19 / 30 + CASE COUNT( * ) WHEN ( 30 ) THEN - + COUNT( * ) END + - - 82 THEN + 40 END ) AS col0
----
3025

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT 55 * COALESCE ( + + 55, - + ( + MIN ( ALL + + 0 ) ) + + 81 + - - CASE + + 69 WHEN + 19 / 30 + CASE COUNT ( * ) WHEN ( 30 ) THEN - + COUNT ( * ) END + - - 82 THEN + 40 END ) AS col0
----
3025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9235
SELECT - AVG ( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9235
SELECT - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT SUM( ALL + 26 ) + + 43
----
69

skipif mysql # not compatible
query I rowsort label-9236
SELECT SUM ( ALL + 26 ) + + 43
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT COALESCE ( 57, + 42 * + 36 ) * MIN( DISTINCT - 14 ) col2
----
-798

skipif mysql # not compatible
query I rowsort label-9237
SELECT COALESCE ( 57, + 42 * + 36 ) * MIN ( DISTINCT - 14 ) col2
----
-798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9238
SELECT + SUM( DISTINCT + 58 ) AS col2, - CAST( NULL AS SIGNED ) + + + 62
----
58
NULL

skipif mysql # not compatible
query II rowsort label-9238
SELECT + SUM ( DISTINCT + 58 ) AS col2, - CAST ( NULL AS INTEGER ) + + + 62
----
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT NULLIF ( 51, + COUNT( * ) ) * ( + 46 ) * 24 + - - 20 - + 42 + + + 55 * - + MAX( 39 ) + + - 0 * + + 66 + - - ( + MIN( - + 54 ) ) AS col2
----
54083

skipif mysql # not compatible
query I rowsort label-9239
SELECT NULLIF ( 51, + COUNT ( * ) ) * ( + 46 ) * 24 + - - 20 - + 42 + + + 55 * - + MAX ( 39 ) + + - 0 * + + 66 + - - ( + MIN ( - + 54 ) ) AS col2
----
54083

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9240
SELECT ALL COUNT( * ) DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL COUNT ( * ) / + 71
----
0

query I rowsort
SELECT + ( 97 ) * - 97 AS col1
----
-9409

query I rowsort
SELECT + 1 + - 11
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9243
SELECT ALL COUNT( * ) DIV + 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL COUNT ( * ) / + 14 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT 69 * + 6 + ( SUM( DISTINCT 50 ) ) AS col2
----
464

skipif mysql # not compatible
query I rowsort label-9244
SELECT 69 * + 6 + ( SUM ( DISTINCT 50 ) ) AS col2
----
464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9245
SELECT + COUNT( 18 ) * + 65 DIV - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9245
SELECT + COUNT ( 18 ) * + 65 / - 95 AS col1
----
0

query II rowsort
SELECT - 94 * - 53 AS col2, + 68
----
4982
68

query I rowsort
SELECT ALL 0 * 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT DISTINCT - + NULLIF ( - + 38, + COUNT( * ) * 96 ) * + 77 + - ( - - 5 ) AS col0
----
2921

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT - + NULLIF ( - + 38, + COUNT ( * ) * 96 ) * + 77 + - ( - - 5 ) AS col0
----
2921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9249
SELECT + COALESCE ( + - 49, + 50 ) + - CASE + 23 WHEN - COALESCE ( + ( 6 ), NULLIF ( 2, + 77 ) * + + MAX( ALL - - 12 ) + 93 + + 55 ) THEN + 17 * + + CASE + MIN( 85 ) WHEN - 31 THEN 24 + + 18 - + 57 * + CASE + 4 WHEN + 80 + - 50 THEN NULL WHEN - + 81 THEN - 45 END WHEN 88 + + + ( - 92 ) THEN 41 + CAST( NULL AS SIGNED ) + + 82 ELSE + ( + - 73 ) + 77 * 91 END + 68 + CASE SUM( 29 ) WHEN 54 THEN NULL ELSE COALESCE ( 0, 16, 33 * - 12 + + CAST( NULL AS DECIMAL ) ) / 48 END * 61 WHEN 18 + + ( 6 + 90 ) THEN NULL ELSE NULL END - - 90 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9249
SELECT + COALESCE ( + - 49, + 50 ) + - CASE + 23 WHEN - COALESCE ( + ( 6 ), NULLIF ( 2, + 77 ) * + + MAX ( ALL - - 12 ) + 93 + + 55 ) THEN + 17 * + + CASE + MIN ( 85 ) WHEN - 31 THEN 24 + + 18 - + 57 * + CASE + 4 WHEN + 80 + - 50 THEN NULL WHEN - + 81 THEN - 45 END WHEN 88 + + + ( - 92 ) THEN 41 + CAST ( NULL AS INTEGER ) + + 82 ELSE + ( + - 73 ) + 77 * 91 END + 68 + CASE SUM ( 29 ) WHEN 54 THEN NULL ELSE COALESCE ( 0, 16, 33 * - 12 + + CAST ( NULL AS REAL ) ) / 48 END * 61 WHEN 18 + + ( 6 + 90 ) THEN NULL ELSE NULL END - - 90 / COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9250
SELECT ALL + - 59 * + SUM( - ( - 3 ) ) + - - 70 + 35 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL + - 59 * + SUM ( - ( - 3 ) ) + - - 70 + 35 / CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + ( 47 ) AS col1, 66 AS col2
----
47
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9252
SELECT ALL - SUM( ALL - ( - 94 ) ) * 84 + - - CAST( NULL AS SIGNED ) + - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL - SUM ( ALL - ( - 94 ) ) * 84 + - - CAST ( NULL AS INTEGER ) + - 30 AS col2
----
NULL

query I rowsort
SELECT ALL + 84 + - 95 + - + 88
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT - 74 * - - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-9254
SELECT - 74 * - - COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT ALL + + COUNT( * ) + - - 85 + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL + + COUNT ( * ) + - - 85 + COUNT ( * )
----
87

query I rowsort
SELECT + 27 + + 36 * + 14 col1
----
531

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT - + COUNT( * ) + 40 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-9257
SELECT - + COUNT ( * ) + 40 AS col0
----
39

query I rowsort
SELECT - + 13 - ( 32 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT 44 * - + 23 + + - SUM( + 15 ) + - 68 col0
----
-1095

skipif mysql # not compatible
query I rowsort label-9259
SELECT 44 * - + 23 + + - SUM ( + 15 ) + - 68 col0
----
-1095

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT - - 38 - 19 * + ( COUNT( * ) ) + + 80 * - - 52 * + - 88
----
-366061

skipif mysql # not compatible
query I rowsort label-9260
SELECT - - 38 - 19 * + ( COUNT ( * ) ) + + 80 * - - 52 * + - 88
----
-366061

query II rowsort
SELECT ALL + COALESCE ( - + 10, + - ( - 9 ), + 85 ), 77 - + 57 col0
----
-10
20

query I rowsort
SELECT - + ( + ( - 23 ) ) + + + 74 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT ALL + 58 - + 9 + + COUNT( ALL - COALESCE ( 47, - 21, + 98 + - 18, + 71 ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL + 58 - + 9 + + COUNT ( ALL - COALESCE ( 47, - 21, + 98 + - 18, + 71 ) ) AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9264
SELECT - 76 * - CAST( 70 AS SIGNED ) * 86
----
457520

skipif mysql # not compatible
query I rowsort label-9264
SELECT - 76 * - CAST ( 70 AS INTEGER ) * 86
----
457520

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT DISTINCT + + 14 - MAX( DISTINCT + + ( - + 57 ) ) - - 15 + - + 99 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT + + 14 - MAX ( DISTINCT + + ( - + 57 ) ) - - 15 + - + 99 AS col0
----
-13

query I rowsort
SELECT DISTINCT - 81 * - 84
----
6804

query I rowsort
SELECT DISTINCT 67 - - 46 col0
----
113

query I rowsort
SELECT DISTINCT - 72 * - 74
----
5328

query I rowsort
SELECT - 2 * 81
----
-162

onlyif mysql # aggregate syntax: 
query II rowsort label-9270
SELECT - COUNT( * ) AS col1, 10 * - 73 AS col1
----
-1
-730

skipif mysql # not compatible
query II rowsort label-9270
SELECT - COUNT ( * ) AS col1, 10 * - 73 AS col1
----
-1
-730

query I rowsort
SELECT ALL ( + 1 ) AS col1
----
1

query II rowsort
SELECT - 97 col1, - 65 AS col2
----
-97
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT + 61 + + + CASE - 68 WHEN - COUNT( * ) THEN NULL WHEN + 74 THEN NULL ELSE 36 END * + MAX( ALL 10 ) - - + 49
----
470

skipif mysql # not compatible
query I rowsort label-9273
SELECT + 61 + + + CASE - 68 WHEN - COUNT ( * ) THEN NULL WHEN + 74 THEN NULL ELSE 36 END * + MAX ( ALL 10 ) - - + 49
----
470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9274
SELECT DISTINCT ( - ( - ( - COALESCE ( + 90, CAST( NULL AS SIGNED ) + 55 ) ) ) ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT ( - ( - ( - COALESCE ( + 90, CAST ( NULL AS INTEGER ) + 55 ) ) ) ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9275
SELECT ALL 8 AS col2, COUNT( + 28 ) + 15
----
8
16

skipif mysql # not compatible
query II rowsort label-9275
SELECT ALL 8 AS col2, COUNT ( + 28 ) + 15
----
8
16

query II rowsort
SELECT DISTINCT 11 AS col0, 32
----
11
32

query II rowsort
SELECT DISTINCT + 38 AS col0, + 89 * 19 AS col0
----
38
1691

query II rowsort
SELECT ALL + 80 AS col1, - 17 + - ( 96 ) * 91
----
80
-8753

query I rowsort
SELECT ( 64 ) AS col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9280
SELECT + 94 DIV 86 * + + 72 col2
----
72

skipif mysql # not compatible
query I rowsort label-9280
SELECT + 94 / 86 * + + 72 col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9281
SELECT DISTINCT + 51 * - CAST( NULL AS SIGNED ) * + - 66 + + - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT + 51 * - CAST ( NULL AS INTEGER ) * + - 66 + + - 37 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9282
SELECT + + 74 DIV - 58
----
-1

skipif mysql # not compatible
query I rowsort label-9282
SELECT + + 74 / - 58
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9283
SELECT DISTINCT - COALESCE ( - ( - - 94 ), COUNT( * ) - - 93 ) DIV + + 29 + - 75 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT - COALESCE ( - ( - - 94 ), COUNT ( * ) - - 93 ) / + + 29 + - 75 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT ALL 9 * + + COUNT( * ) + - + 30
----
-21

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL 9 * + + COUNT ( * ) + - + 30
----
-21

query II rowsort
SELECT + 58 + 62 + + + 48 AS col2, 19 AS col2
----
168
19

query II rowsort
SELECT ALL - 49 * + 19 + + 18 AS col0, - 90 AS col2
----
-913
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9287
SELECT DISTINCT - ( - ( 91 ) ) * + 93 * + COALESCE ( - COUNT( * ), 46, CAST( NULL AS SIGNED ) * - 47 + 37 ) AS col1
----
-8463

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT - ( - ( 91 ) ) * + 93 * + COALESCE ( - COUNT ( * ), 46, CAST ( NULL AS INTEGER ) * - 47 + 37 ) AS col1
----
-8463

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT + 16 * - 25 * + - COUNT( * ) + + - 88 + - - 3 * + 56 col2
----
480

skipif mysql # not compatible
query I rowsort label-9288
SELECT + 16 * - 25 * + - COUNT ( * ) + + - 88 + - - 3 * + 56 col2
----
480

query II rowsort
SELECT ALL + 17 AS col1, 28 + + 63 AS col2
----
17
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL MIN( ALL 33 ) col1
----
33

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL MIN ( ALL 33 ) col1
----
33

query I rowsort
SELECT DISTINCT - CASE - NULLIF ( 40, - 20 / - - NULLIF ( + COALESCE ( + + 96, - 65 ), - 85 * - 91 * - + 89 ) + 94 ) WHEN 39 THEN - 11 ELSE + 37 END * - 57 - + + 39 AS col2
----
2070

query I rowsort
SELECT ALL 44 * - 30 AS col1
----
-1320

query II rowsort
SELECT DISTINCT 79 * + 3 - 57 * 79 AS col1, - 71 AS col0
----
-4266
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9294
SELECT - CAST( NULL AS SIGNED ) * + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-9294
SELECT - CAST ( NULL AS INTEGER ) * + + 79
----
NULL

query I rowsort
SELECT DISTINCT ( + - 40 )
----
-40

query I rowsort
SELECT ALL ( - 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT - 43 * COUNT( * ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-9297
SELECT - 43 * COUNT ( * ) col1
----
-43

query I rowsort
SELECT 96 * - 75 AS col0
----
-7200

query II rowsort
SELECT 6 - + 16 AS col2, 17 AS col0
----
-10
17

query I rowsort
SELECT ALL - 96 * ( 33 ) AS col1
----
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT ALL CASE 33 WHEN + 88 THEN 75 WHEN + COUNT( * ) * 78 + - 66 THEN NULL WHEN - ( - 90 ) - - 42 * - 73 / 73 / - ( + 42 ) THEN - + COUNT( * ) * + SUM( ALL - 77 ) ELSE - - 23 END + - 44 - 22
----
-43

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL CASE 33 WHEN + 88 THEN 75 WHEN + COUNT ( * ) * 78 + - 66 THEN NULL WHEN - ( - 90 ) - - 42 * - 73 / 73 / - ( + 42 ) THEN - + COUNT ( * ) * + SUM ( ALL - 77 ) ELSE - - 23 END + - 44 - 22
----
-43

query II rowsort
SELECT 15 - - 1, - 23 AS col2
----
16
-23

query I rowsort
SELECT 22 * 74
----
1628

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT DISTINCT + 23 + 58 * + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT + 23 + 58 * + COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT ALL - 60 + - - ( + SUM( ALL - + NULLIF ( 39, - - 63 ) ) )
----
-99

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL - 60 + - - ( + SUM ( ALL - + NULLIF ( 39, - - 63 ) ) )
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-9306
SELECT ALL + COUNT( * ) + + 83, COUNT( * ) AS col0
----
84
1

skipif mysql # not compatible
query II rowsort label-9306
SELECT ALL + COUNT ( * ) + + 83, COUNT ( * ) AS col0
----
84
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT 6 * - COUNT( * ) + + + 42
----
36

skipif mysql # not compatible
query I rowsort label-9307
SELECT 6 * - COUNT ( * ) + + + 42
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9308
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 97 + + COUNT( * ) * NULLIF ( + 79, - ( - 72 ) * - 64 ) * + COUNT( * ) * - + 24 * + NULLIF ( + - COUNT( * ), - 52 ) + CAST( - 6 AS SIGNED ) * + COUNT( ALL - 64 ) AS col0, 96 AS col1
----
NULL
96

skipif mysql # not compatible
query II rowsort label-9308
SELECT DISTINCT CAST ( NULL AS REAL ) + 97 + + COUNT ( * ) * NULLIF ( + 79, - ( - 72 ) * - 64 ) * + COUNT ( * ) * - + 24 * + NULLIF ( + - COUNT ( * ), - 52 ) + CAST ( - 6 AS INTEGER ) * + COUNT ( ALL - 64 ) AS col0, 96 AS col1
----
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT ALL 59 + + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL 59 + + COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-9310
SELECT ALL 64 + - + 50 - + COUNT( * ) * 0 * - 63 * - COUNT( 77 ), + 46 * - 20 AS col0
----
14
-920

skipif mysql # not compatible
query II rowsort label-9310
SELECT ALL 64 + - + 50 - + COUNT ( * ) * 0 * - 63 * - COUNT ( 77 ), + 46 * - 20 AS col0
----
14
-920

query I rowsort
SELECT ALL - 57 + - NULLIF ( + + 6, + ( + + 17 ) - - 39 ) * - 36
----
159

query I rowsort
SELECT ALL - + ( 66 ) col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9313
SELECT - 92 DIV + 78 + - 45 - + COALESCE ( - 90, 80 * - 66 - CASE - 76 WHEN + 52 THEN NULL ELSE 13 END DIV - - COALESCE ( 82, + 31 ) - - 27 + + 89, + - 28 * + 15 ) + COUNT( * ) * - - COALESCE ( + + 64, CAST( NULL AS SIGNED ) + 53, + 10 ) * - 93 * 23
----
-136852

skipif mysql # not compatible
query I rowsort label-9313
SELECT - 92 / + 78 + - 45 - + COALESCE ( - 90, 80 * - 66 - CASE - 76 WHEN + 52 THEN NULL ELSE 13 END / - - COALESCE ( 82, + 31 ) - - 27 + + 89, + - 28 * + 15 ) + COUNT ( * ) * - - COALESCE ( + + 64, CAST ( NULL AS INTEGER ) + 53, + 10 ) * - 93 * 23
----
-136852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9314
SELECT ALL - - ( - CAST( NULL AS SIGNED ) ) AS col2, + 78 - - COUNT( * ) AS col0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-9314
SELECT ALL - - ( - CAST ( NULL AS INTEGER ) ) AS col2, + 78 - - COUNT ( * ) AS col0
----
NULL
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT DISTINCT - 63 - 21 - - COUNT( * ) * 38
----
-46

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT - 63 - 21 - - COUNT ( * ) * 38
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT - MIN( 69 ) * 52 AS col2
----
-3588

skipif mysql # not compatible
query I rowsort label-9316
SELECT - MIN ( 69 ) * 52 AS col2
----
-3588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT + CAST( 62 AS SIGNED ) - + - 63 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT + CAST ( 62 AS INTEGER ) - + - 63 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9318
SELECT + CASE MAX( 83 ) WHEN - 75 * 51 + - 26 + 32 * - + COALESCE ( - 5, - + 95 ) * + - ( - - 25 ) + + + CAST( NULL AS SIGNED ) + 70 - + 97 - 1 THEN NULL WHEN + 77 * - 61 THEN 82 * - COUNT( * ) END * - 63 - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9318
SELECT + CASE MAX ( 83 ) WHEN - 75 * 51 + - 26 + 32 * - + COALESCE ( - 5, - + 95 ) * + - ( - - 25 ) + + + CAST ( NULL AS INTEGER ) + 70 - + 97 - 1 THEN NULL WHEN + 77 * - 61 THEN 82 * - COUNT ( * ) END * - 63 - 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9319
SELECT DISTINCT - NULLIF ( - - CASE - NULLIF ( 50, + - 38 ) WHEN + 97 * 72 * + 18 * + COUNT( * ) THEN 79 / - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) + 43 + - 72 + - + MIN( DISTINCT 33 ) + + 24 * - + MAX( DISTINCT - 64 ) * + - 90 + ( CAST( NULL AS SIGNED ) ) + COUNT( * ) * + - 93 * - COUNT( * ) + - COUNT( * ) THEN + 78 * - MAX( 66 ) + 66 WHEN - MIN( + 12 ) THEN NULL ELSE NULL END, - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9319
SELECT DISTINCT - NULLIF ( - - CASE - NULLIF ( 50, + - 38 ) WHEN + 97 * 72 * + 18 * + COUNT ( * ) THEN 79 / - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) + 43 + - 72 + - + MIN ( DISTINCT 33 ) + + 24 * - + MAX ( DISTINCT - 64 ) * + - 90 + ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * + - 93 * - COUNT ( * ) + - COUNT ( * ) THEN + 78 * - MAX ( 66 ) + 66 WHEN - MIN ( + 12 ) THEN NULL ELSE NULL END, - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9320
SELECT ALL + 81 / + 83 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL + 81 / + 83 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9321
SELECT + 25 + + 45 + 7 * CAST( - NULLIF ( + 65, + - 85 * - 9 ) AS SIGNED ) DIV - 39
----
81

skipif mysql # not compatible
query I rowsort label-9321
SELECT + 25 + + 45 + 7 * CAST ( - NULLIF ( + 65, + - 85 * - 9 ) AS INTEGER ) / - 39
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9322
SELECT ALL - SUM( 19 ) col2, + 47 AS col0
----
-19
47

skipif mysql # not compatible
query II rowsort label-9322
SELECT ALL - SUM ( 19 ) col2, + 47 AS col0
----
-19
47

query I rowsort
SELECT - 38 + - 39 + + 7 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL MAX( - + 60 ) * + 65 AS col2
----
-3900

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL MAX ( - + 60 ) * + 65 AS col2
----
-3900

query I rowsort
SELECT 16 - 36 col2
----
-20

query I rowsort
SELECT ALL + 9 * 12 * 2
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9327
SELECT CAST( + 25 AS SIGNED ) + + CAST( - 51 AS SIGNED ) * - - COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9327
SELECT CAST ( + 25 AS INTEGER ) + + CAST ( - 51 AS INTEGER ) * - - COUNT ( * ) AS col0
----
-26

query I rowsort
SELECT ALL 37 * 19
----
703

query I rowsort
SELECT NULLIF ( - + 73, - - 4 ) + - 69
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9330
SELECT ALL 90 + + 69 + + - COUNT( * ) DIV 96 * + 73 * + ( MAX( 76 ) )
----
159

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL 90 + + 69 + + - COUNT ( * ) / 96 * + 73 * + ( MAX ( 76 ) )
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9331
SELECT 15 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT 15 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 22 * 20 col0
----
440

query I rowsort
SELECT DISTINCT 25 + + 22 AS col2
----
47

query II rowsort
SELECT 85 col0, - 92 * + 2 * 93
----
85
-17112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9335
SELECT 34 + + - COALESCE ( + + NULLIF ( - CASE 12 WHEN + 96 - + NULLIF ( - 76, 25 * 82 + + - 14 ) THEN + + 0 * + - 90 - - ( COUNT( * ) ) - - 71 + - + COUNT( ALL - 53 ) WHEN + 82 THEN 53 ELSE NULL END, + CAST( - 53 AS SIGNED ) ), + ( + - 45 ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9335
SELECT 34 + + - COALESCE ( + + NULLIF ( - CASE 12 WHEN + 96 - + NULLIF ( - 76, 25 * 82 + + - 14 ) THEN + + 0 * + - 90 - - ( COUNT ( * ) ) - - 71 + - + COUNT ( ALL - 53 ) WHEN + 82 THEN 53 ELSE NULL END, + CAST ( - 53 AS INTEGER ) ), + ( + - 45 ) ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL - COUNT( DISTINCT + 94 ) + - 3 - MIN( + 95 ) + - 77 * + COUNT( * ) col2
----
-176

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL - COUNT ( DISTINCT + 94 ) + - 3 - MIN ( + 95 ) + - 77 * + COUNT ( * ) col2
----
-176

query I rowsort
SELECT 5 * - 80
----
-400

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT ALL - ( - 49 ) DIV 11 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL - ( - 49 ) / 11 AS col2
----
4

query I rowsort
SELECT 12 + NULLIF ( + CASE - 66 WHEN - - 86 THEN NULL ELSE - 96 END, - 13 + - + 46 )
----
-84

query I rowsort
SELECT 50 + ( 33 )
----
83

query I rowsort
SELECT DISTINCT - 47 * - ( 42 )
----
1974

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9342
SELECT 24 DIV + MAX( ALL + - 28 ) AS col0, - COUNT( - 63 ) - + 8
----
0
-9

skipif mysql # not compatible
query II rowsort label-9342
SELECT 24 / + MAX ( ALL + - 28 ) AS col0, - COUNT ( - 63 ) - + 8
----
0
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9343
SELECT ALL 24 + - 31 + + 4 * + - CASE + COUNT( * ) WHEN - + COUNT( DISTINCT 25 ) DIV NULLIF ( - 82, ( COUNT( * ) ) ) + COUNT( * ) THEN + 99 + - 71 + 15 + - 52 ELSE - COUNT( * ) END + + COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL 24 + - 31 + + 4 * + - CASE + COUNT ( * ) WHEN - + COUNT ( DISTINCT 25 ) / NULLIF ( - 82, ( COUNT ( * ) ) ) + COUNT ( * ) THEN + 99 + - 71 + 15 + - 52 ELSE - COUNT ( * ) END + + COUNT ( * ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL - 29 * + - COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL - 29 * + - COUNT ( * ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-9345
SELECT COUNT( * ) AS col1, - 1 + - 98
----
1
-99

skipif mysql # not compatible
query II rowsort label-9345
SELECT COUNT ( * ) AS col1, - 1 + - 98
----
1
-99

query II rowsort
SELECT DISTINCT - COALESCE ( + + 10, - 57 + + NULLIF ( + 88, + 56 * - 79 ) ) * + 43 AS col1, + 55 AS col1
----
-430
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9347
SELECT + 31 / - CAST( NULL AS SIGNED ) + + + 27 + - 51 * - + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9347
SELECT + 31 / - CAST ( NULL AS INTEGER ) + + + 27 + - 51 * - + 98
----
NULL

query I rowsort
SELECT ( - + 61 ) * - ( + 26 )
----
1586

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT ALL + 97 * + 29 - ( - - ( + COUNT( * ) ) )
----
2812

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL + 97 * + 29 - ( - - ( + COUNT ( * ) ) )
----
2812

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT 98 + + 57 - + + COUNT( * )
----
154

skipif mysql # not compatible
query I rowsort label-9350
SELECT 98 + + 57 - + + COUNT ( * )
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT - 41 * - - ( 44 ) + - ( + + ( 61 ) ) + + 57 + - 26 + + 89 + CAST( + 98 AS SIGNED ) AS col2
----
-1647

skipif mysql # not compatible
query I rowsort label-9351
SELECT - 41 * - - ( 44 ) + - ( + + ( 61 ) ) + + 57 + - 26 + + 89 + CAST ( + 98 AS INTEGER ) AS col2
----
-1647

query I rowsort
SELECT 88 + 72
----
160

query I rowsort
SELECT - 81 * + - 56 * + + 44
----
199584

query I rowsort
SELECT DISTINCT - + ( + + 1 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9355
SELECT MIN( ALL - + ( - 0 ) ) + - + ( + 26 ) * CASE - COUNT( * ) WHEN + ( 59 ) + + 42 THEN - ( - 97 ) * NULLIF ( + + MIN( DISTINCT - 90 ), 13 + + 47 + + CAST( - CAST( - 75 AS SIGNED ) AS SIGNED ) ) + + ( - SUM( DISTINCT - + 39 ) ) / - 66 WHEN - 37 / COUNT( * ) - 18 * + 46 THEN + 41 END + + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9355
SELECT MIN ( ALL - + ( - 0 ) ) + - + ( + 26 ) * CASE - COUNT ( * ) WHEN + ( 59 ) + + 42 THEN - ( - 97 ) * NULLIF ( + + MIN ( DISTINCT - 90 ), 13 + + 47 + + CAST ( - CAST ( - 75 AS INTEGER ) AS INTEGER ) ) + + ( - SUM ( DISTINCT - + 39 ) ) / - 66 WHEN - 37 / COUNT ( * ) - 18 * + 46 THEN + 41 END + + 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT DISTINCT - - MIN( + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT - - MIN ( + 38 )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9357
SELECT DISTINCT 96 * - SUM( - - 78 ), ( + 27 ) AS col1
----
-7488
27

skipif mysql # not compatible
query II rowsort label-9357
SELECT DISTINCT 96 * - SUM ( - - 78 ), ( + 27 ) AS col1
----
-7488
27

query I rowsort
SELECT + + 60 * - 60 + + ( 17 )
----
-3583

query I rowsort
SELECT DISTINCT - - 95 * + + 52
----
4940

query II rowsort
SELECT DISTINCT - 65 AS col1, 43 AS col2
----
-65
43

query II rowsort
SELECT DISTINCT - NULLIF ( + 32, - + 68 + - 49 * + 82 / - + 80 - + 80 ) * - 57, 65 + + 27 AS col2
----
1824
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT + NULLIF ( + 56, - 26 + - 22 * - MAX( ALL - 33 ) ) + 0 * + ( 61 ) * 24 - + - 63
----
119

skipif mysql # not compatible
query I rowsort label-9362
SELECT + NULLIF ( + 56, - 26 + - 22 * - MAX ( ALL - 33 ) ) + 0 * + ( 61 ) * 24 - + - 63
----
119

query II rowsort
SELECT ALL 36 AS col0, 68 - - 95 - 36 AS col1
----
36
127

query I rowsort
SELECT DISTINCT NULLIF ( 13, - 80 )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9365
SELECT 68 AS col2, SUM( ALL - 52 ) * COALESCE ( + - 73, 79, - CASE 61 WHEN 81 + - 80 THEN + 59 END + + 37 ) + + + 56 - 91
----
68
3761

skipif mysql # not compatible
query II rowsort label-9365
SELECT 68 AS col2, SUM ( ALL - 52 ) * COALESCE ( + - 73, 79, - CASE 61 WHEN 81 + - 80 THEN + 59 END + + 37 ) + + + 56 - 91
----
68
3761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9366
SELECT ALL 90 + 79 * SUM( ALL CAST( - - 42 AS SIGNED ) ) * 8 + + + 31 AS col0
----
26665

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL 90 + 79 * SUM ( ALL CAST ( - - 42 AS INTEGER ) ) * 8 + + + 31 AS col0
----
26665

query I rowsort
SELECT DISTINCT NULLIF ( + 80, + 89 / + - 50 * - 20 + + 5 - + + 61 - - - 15 ) + 85 + - 64 col1
----
101

query II rowsort
SELECT - 51 AS col0, 25 AS col2
----
-51
25

query I rowsort
SELECT + 78 * 67 * + - 95
----
-496470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9370
SELECT ALL 84 + CAST( NULL AS SIGNED ) - - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL 84 + CAST ( NULL AS INTEGER ) - - 82
----
NULL

query I rowsort
SELECT + 90 - 27 col1
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9372
SELECT + 54 DIV - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9372
SELECT + 54 / - 68 AS col2
----
0

query I rowsort
SELECT + 66 - + 28 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT + 72 * - + ( + COUNT( * ) )
----
-72

skipif mysql # not compatible
query I rowsort label-9374
SELECT + 72 * - + ( + COUNT ( * ) )
----
-72

query II rowsort
SELECT ALL 61 AS col1, + 57 - - 30 AS col0
----
61
87

query I rowsort
SELECT + 42 * - 7 AS col0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT - 48 * + MAX( ALL 90 )
----
-4320

skipif mysql # not compatible
query I rowsort label-9377
SELECT - 48 * + MAX ( ALL 90 )
----
-4320

query I rowsort
SELECT - CASE - 9 WHEN - 8 THEN + + 16 WHEN + 92 THEN - 14 END AS col2
----
NULL

query I rowsort
SELECT ALL ( 43 ) + - - 79 AS col2
----
122

query I rowsort
SELECT ALL - 42 + - 17 AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9381
SELECT + 12 - 59 col1, CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) + - 66 AS col2
----
-47
-65

skipif mysql # not compatible
query II rowsort label-9381
SELECT + 12 - 59 col1, CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) + - 66 AS col2
----
-47
-65

query I rowsort
SELECT DISTINCT 35 - - + 19 - - 74 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT - CASE COUNT( * ) WHEN + - 8 THEN 90 + + 80 + + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9383
SELECT - CASE COUNT ( * ) WHEN + - 8 THEN 90 + + 80 + + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT - + NULLIF ( + 83, + + 63 ) AS col2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9385
SELECT - ( - 13 ) * - + CAST( NULL AS SIGNED ) * - + 19 AS col2, + 5 * 20
----
NULL
100

skipif mysql # not compatible
query II rowsort label-9385
SELECT - ( - 13 ) * - + CAST ( NULL AS INTEGER ) * - + 19 AS col2, + 5 * 20
----
NULL
100

query I rowsort
SELECT + 82 + + - 30 + - 61 + - 27 * 20
----
-549

onlyif mysql # aggregate syntax: 
query II rowsort label-9387
SELECT ALL + + COUNT( * ) AS col1, 71 + - 65 AS col0
----
1
6

skipif mysql # not compatible
query II rowsort label-9387
SELECT ALL + + COUNT ( * ) AS col1, 71 + - 65 AS col0
----
1
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9388
SELECT DISTINCT - + 47 DIV - 70 - - 4
----
4

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT - + 47 / - 70 - - 4
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9389
SELECT - ( 90 ) - + 37 DIV - - 80 * - ( - 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-9389
SELECT - ( 90 ) - + 37 / - - 80 * - ( - 90 ) AS col0
----
-90

query I rowsort
SELECT - - 85 * + 4 * - 24
----
-8160

query I rowsort
SELECT ALL + 74 * + 18
----
1332

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT - - 36 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-9392
SELECT - - 36 / 32
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9393
SELECT - COUNT( * ) * COALESCE ( - COALESCE ( + 15, COUNT( * ) DIV MIN( DISTINCT 61 ) ), + COUNT( * ) - - 92 ) DIV 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9393
SELECT - COUNT ( * ) * COALESCE ( - COALESCE ( + 15, COUNT ( * ) / MIN ( DISTINCT 61 ) ), + COUNT ( * ) - - 92 ) / 45 AS col1
----
0

query I rowsort
SELECT ALL + - 5 * + - 45
----
225

query I rowsort
SELECT + ( + 80 ) * 2
----
160

query I rowsort
SELECT + - 33 - - 20 + 6
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-9397
SELECT - 98 DIV - 33
----
2

skipif mysql # not compatible
query I rowsort label-9397
SELECT - 98 / - 33
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9398
SELECT DISTINCT + - 5 DIV + - ( 22 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT + - 5 / + - ( 22 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9399
SELECT ALL + 64 AS col1, COUNT( * ) * + - 20 * + ( - ( ( + - 28 ) ) ) * 44 + + 6 + + - 22
----
64
-24656

skipif mysql # not compatible
query II rowsort label-9399
SELECT ALL + 64 AS col1, COUNT ( * ) * + - 20 * + ( - ( ( + - 28 ) ) ) * 44 + + 6 + + - 22
----
64
-24656

query I rowsort
SELECT - - 84 + - - 79
----
163

onlyif mysql # aggregate syntax: 
query II rowsort label-9401
SELECT + - 51 AS col0, + COUNT( * )
----
-51
1

skipif mysql # not compatible
query II rowsort label-9401
SELECT + - 51 AS col0, + COUNT ( * )
----
-51
1

query II rowsort
SELECT - 62 AS col1, + 11 AS col1
----
-62
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9403
SELECT ALL - + 54 * + CAST( NULL AS DECIMAL ) / - CAST( NULL AS DECIMAL ) + + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL - + 54 * + CAST ( NULL AS REAL ) / - CAST ( NULL AS REAL ) + + - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT DISTINCT + COALESCE ( - COUNT( * ), 79 - 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT + COALESCE ( - COUNT ( * ), 79 - 39 )
----
-1

query I rowsort
SELECT ALL 89 * 27 + - - 73 + + + 80 * - + 72 * - 63 + + 19 * 14 + + 61 AS col1
----
365683

query I rowsort
SELECT ALL + 85 * + 4 + 53 AS col2
----
393

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT + 78 * + COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9407
SELECT + 78 * + COUNT ( * ) AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9408
SELECT - CASE - ( - + 39 ) WHEN - + CASE + - 81 WHEN + 74 THEN NULL WHEN 51 THEN + COUNT( DISTINCT 42 ) + - - 73 / + 68 ELSE NULL END THEN - ( 39 ) / - + MAX( + 48 ) WHEN - 2 THEN + ( + 70 ) + - - CAST( NULL AS SIGNED ) + + 63 WHEN - ( - 87 ) THEN + 70 ELSE NULL END + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT - CASE - ( - + 39 ) WHEN - + CASE + - 81 WHEN + 74 THEN NULL WHEN 51 THEN + COUNT ( DISTINCT 42 ) + - - 73 / + 68 ELSE NULL END THEN - ( 39 ) / - + MAX ( + 48 ) WHEN - 2 THEN + ( + 70 ) + - - CAST ( NULL AS INTEGER ) + + 63 WHEN - ( - 87 ) THEN + 70 ELSE NULL END + 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT MIN( + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-9409
SELECT MIN ( + 67 )
----
67

query I rowsort
SELECT DISTINCT + 64 * + 78 col0
----
4992

query I rowsort
SELECT + 72 - - 32 AS col2
----
104

query I rowsort
SELECT - ( - 83 ) AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9413
SELECT - 42 + - CAST( + 59 AS SIGNED )
----
-101

skipif mysql # not compatible
query I rowsort label-9413
SELECT - 42 + - CAST ( + 59 AS INTEGER )
----
-101

query I rowsort
SELECT DISTINCT ( + 35 ) AS col1
----
35

query I rowsort
SELECT - 18 + 74
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT ALL 30 - 6 / + 76 + - 30 * + - CASE - + COUNT( * ) WHEN - 59 THEN - + 91 WHEN - 96 + COUNT( * ) - + - COALESCE ( - MAX( ALL - 21 ), - 44, + 88 - 32 / + + 51 ) + + 69 + - 21 THEN NULL WHEN 15 THEN - COUNT( * ) ELSE NULL END + 18 + + 65 + 35 * 82 * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL 30 - 6 / + 76 + - 30 * + - CASE - + COUNT ( * ) WHEN - 59 THEN - + 91 WHEN - 96 + COUNT ( * ) - + - COALESCE ( - MAX ( ALL - 21 ), - 44, + 88 - 32 / + + 51 ) + + 69 + - 21 THEN NULL WHEN 15 THEN - COUNT ( * ) ELSE NULL END + 18 + + 65 + 35 * 82 * 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9417
SELECT ALL CAST( CASE - 36 WHEN - 75 * - CAST( + - 2 AS SIGNED ) * + + 64 + - ( + 58 ) THEN + COUNT( * ) END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL CAST ( CASE - 36 WHEN - 75 * - CAST ( + - 2 AS INTEGER ) * + + 64 + - ( + 58 ) THEN + COUNT ( * ) END AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9418
SELECT ALL 24 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL 24 / 74
----
0

query II rowsort
SELECT + 88 + + + 16, 79 col1
----
104
79

query I rowsort
SELECT - ( - - 99 ) AS col1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9421
SELECT - 76 / - - CAST( NULL AS SIGNED ) * 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9421
SELECT - 76 / - - CAST ( NULL AS INTEGER ) * 30 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9422
SELECT + CASE + COUNT( * ) WHEN CAST( - 65 AS SIGNED ) * COUNT( * ) * - 32 * + 17 * - + 10 * COUNT( * ) THEN NULL WHEN + 60 THEN - 89 + - - 60 + - + 24 / + + 71 * - - 47 END * - ( - 67 ) - + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9422
SELECT + CASE + COUNT ( * ) WHEN CAST ( - 65 AS INTEGER ) * COUNT ( * ) * - 32 * + 17 * - + 10 * COUNT ( * ) THEN NULL WHEN + 60 THEN - 89 + - - 60 + - + 24 / + + 71 * - - 47 END * - ( - 67 ) - + 61 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9423
SELECT ALL 88 * COUNT( * ) DIV - - COUNT( 10 )
----
88

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL 88 * COUNT ( * ) / - - COUNT ( 10 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT + + COUNT( * ) * + - 26 * + 64 AS col1
----
-1664

skipif mysql # not compatible
query I rowsort label-9424
SELECT + + COUNT ( * ) * + - 26 * + 64 AS col1
----
-1664

query I rowsort
SELECT ALL + 95 * - - 34 + - + 55 + - 91 AS col2
----
3084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT + - ( + - 13 ) + + CAST( - - 3 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-9426
SELECT + - ( + - 13 ) + + CAST ( - - 3 AS INTEGER )
----
16

query I rowsort
SELECT DISTINCT 15 * - + 29 AS col0
----
-435

onlyif mysql # aggregate syntax: 
query II rowsort label-9428
SELECT - MAX( ALL - 70 ), + 2 col2
----
70
2

skipif mysql # not compatible
query II rowsort label-9428
SELECT - MAX ( ALL - 70 ), + 2 col2
----
70
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9429
SELECT ALL - 45 * + - ( - 3 ) + + 8 DIV - COUNT( * ) + - CAST( - - 44 AS SIGNED ) + 78
----
-109

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL - 45 * + - ( - 3 ) + + 8 / - COUNT ( * ) + - CAST ( - - 44 AS INTEGER ) + 78
----
-109

query I rowsort
SELECT + 2 * ( - 5 ) + 61
----
51

query I rowsort
SELECT ALL 72 * - ( - 63 ) + 18 * - + 73 * - 17 * + 28
----
630000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9432
SELECT DISTINCT + + ( + + 29 ) AS col0, ( ( + COALESCE ( 95, - - 93 DIV MIN( + + 77 ) ) ) ) * + + ( + 41 ) * + 61 AS col2
----
29
237595

skipif mysql # not compatible
query II rowsort label-9432
SELECT DISTINCT + + ( + + 29 ) AS col0, ( ( + COALESCE ( 95, - - 93 / MIN ( + + 77 ) ) ) ) * + + ( + 41 ) * + 61 AS col2
----
29
237595

query I rowsort
SELECT + 74 * - 2 + - 92 AS col2
----
-240

query I rowsort
SELECT DISTINCT + - ( + 48 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9435
SELECT ALL - CAST( - AVG ( - ( - + 91 ) ) AS SIGNED ) / + - CASE + MAX( ALL + 43 ) WHEN - 71 THEN + 80 WHEN 13 THEN NULL END + 82 + - 43 + + + 97 * - 21 / - 24 * + NULLIF ( COUNT( * ), + ( 26 ) * + + 73 ) * + 80 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL - CAST ( - AVG ( - ( - + 91 ) ) AS INTEGER ) / + - CASE + MAX ( ALL + 43 ) WHEN - 71 THEN + 80 WHEN 13 THEN NULL END + 82 + - 43 + + + 97 * - 21 / - 24 * + NULLIF ( COUNT ( * ), + ( 26 ) * + + 73 ) * + 80 col2
----
NULL

query I rowsort
SELECT + - 88 + - 49
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT + COUNT( * ) * - - 84 - + + 3 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-9437
SELECT + COUNT ( * ) * - - 84 - + + 3 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT ( - 55 ) * COUNT( * ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-9438
SELECT ( - 55 ) * COUNT ( * ) col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT 20 + + 12 + SUM( DISTINCT 87 ) AS col2
----
119

skipif mysql # not compatible
query I rowsort label-9439
SELECT 20 + + 12 + SUM ( DISTINCT 87 ) AS col2
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9440
SELECT DISTINCT + + 78 + + 40 + + 50 + - 74 * + ( 76 ) DIV 1 - CASE + 35 WHEN 81 + 88 THEN + + 14 * + CAST( CASE + 15 WHEN COUNT( DISTINCT + 4 ) THEN + 65 ELSE NULL END AS SIGNED ) * 97 WHEN + 43 THEN NULL WHEN + - ( - 67 ) * 39 THEN + COUNT( DISTINCT 67 ) ELSE + + 63 END * + ( + 40 )
----
-7976

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT + + 78 + + 40 + + 50 + - 74 * + ( 76 ) / 1 - CASE + 35 WHEN 81 + 88 THEN + + 14 * + CAST ( CASE + 15 WHEN COUNT ( DISTINCT + 4 ) THEN + 65 ELSE NULL END AS INTEGER ) * 97 WHEN + 43 THEN NULL WHEN + - ( - 67 ) * 39 THEN + COUNT ( DISTINCT 67 ) ELSE + + 63 END * + ( + 40 )
----
-7976

query I rowsort
SELECT DISTINCT - - 84 col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9442
SELECT ALL + - COALESCE ( - 58, - AVG ( + 10 ) DIV - 7 * - + 94 + COALESCE ( - COUNT( * ), - 67 * - 82 * + - 61, - 21, 78 + 97 - + 4 ) DIV - - 17 + - 84, 12, + 97 ) * - 17 - 71 col0
----
-1057

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL + - COALESCE ( - 58, - AVG ( + 10 ) / - 7 * - + 94 + COALESCE ( - COUNT ( * ), - 67 * - 82 * + - 61, - 21, 78 + 97 - + 4 ) / - - 17 + - 84, 12, + 97 ) * - 17 - 71 col0
----
-1057

query I rowsort
SELECT 16 + 17 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL - 5 + + 7 + COUNT( * ) * + 73 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL - 5 + + 7 + COUNT ( * ) * + 73 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT ALL + MAX( ALL + - 30 ) * - - 29 + + + 67 col2
----
-803

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL + MAX ( ALL + - 30 ) * - - 29 + + + 67 col2
----
-803

query II rowsort
SELECT 87 col0, - 79 * + 0
----
87
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT ALL - SUM( DISTINCT + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL - SUM ( DISTINCT + 73 )
----
-73

query I rowsort
SELECT 5 * - 48 AS col2
----
-240

onlyif mysql # aggregate syntax: 
query II rowsort label-9449
SELECT COUNT( * ) * + 23 + - + 76, 47 col0
----
-53
47

skipif mysql # not compatible
query II rowsort label-9449
SELECT COUNT ( * ) * + 23 + - + 76, 47 col0
----
-53
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT COUNT( * ) * - 71
----
-71

skipif mysql # not compatible
query I rowsort label-9450
SELECT COUNT ( * ) * - 71
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT ALL + COUNT( * ) - COUNT( * ) + + - 3 + - 7 col1
----
-10

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL + COUNT ( * ) - COUNT ( * ) + + - 3 + - 7 col1
----
-10

query I rowsort
SELECT ALL 83 * 31
----
2573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9453
SELECT ALL + CAST( NULL AS SIGNED ) - 85 * - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL + CAST ( NULL AS INTEGER ) - 85 * - 48 AS col1
----
NULL

query I rowsort
SELECT 21 * 85 AS col1
----
1785

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9455
SELECT AVG ( DISTINCT - 98 ) * 5 + - CAST( NULL AS DECIMAL ) + 29 + 67 * + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT AVG ( DISTINCT - 98 ) * 5 + - CAST ( NULL AS REAL ) + 29 + 67 * + - 92
----
NULL

query II rowsort
SELECT - 22 AS col1, - 26 + + 71
----
-22
45

query I rowsort
SELECT 30 - - 77 * - 14 - - - 79 AS col0
----
-1127

query I rowsort
SELECT ALL + 16 * - 25 AS col2
----
-400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9459
SELECT 40 - 52 * - + CAST( - 22 AS SIGNED ) - 87 AS col1
----
-1191

skipif mysql # not compatible
query I rowsort label-9459
SELECT 40 - 52 * - + CAST ( - 22 AS INTEGER ) - 87 AS col1
----
-1191

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9460
SELECT CASE - 4 WHEN - 28 * - 65 - COUNT( * ) + + 79 * - 83 THEN 75 DIV - + 83 * + 37 * - - 23 * - + 53 + 37 DIV - 20 WHEN - + 23 + + COUNT( * ) THEN NULL ELSE 26 END DIV + 5 AS col1, 36 * + 57
----
5
2052

skipif mysql # not compatible
query II rowsort label-9460
SELECT CASE - 4 WHEN - 28 * - 65 - COUNT ( * ) + + 79 * - 83 THEN 75 / - + 83 * + 37 * - - 23 * - + 53 + 37 / - 20 WHEN - + 23 + + COUNT ( * ) THEN NULL ELSE 26 END / + 5 AS col1, 36 * + 57
----
5
2052

query I rowsort
SELECT 46 * + 68
----
3128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT CAST( + 31 AS SIGNED ) + 87
----
118

skipif mysql # not compatible
query I rowsort label-9462
SELECT CAST ( + 31 AS INTEGER ) + 87
----
118

query II rowsort
SELECT ALL 5 AS col1, 47 AS col2
----
5
47

query II rowsort
SELECT - 17 AS col1, 56
----
-17
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT + 78 * + - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-9465
SELECT + 78 * + - COUNT ( * )
----
-78

query II rowsort
SELECT ALL 56 AS col1, - 13
----
56
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9467
SELECT 42 DIV + - 99 + - 35 * - 81 col2
----
2835

skipif mysql # not compatible
query I rowsort label-9467
SELECT 42 / + - 99 + - 35 * - 81 col2
----
2835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9468
SELECT COUNT( * ) - + SUM( ALL + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9468
SELECT COUNT ( * ) - + SUM ( ALL + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9469
SELECT DISTINCT 95 AS col0, ( + COUNT( * ) )
----
95
1

skipif mysql # not compatible
query II rowsort label-9469
SELECT DISTINCT 95 AS col0, ( + COUNT ( * ) )
----
95
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9470
SELECT - + 81, COUNT( * ) AS col2
----
-81
1

skipif mysql # not compatible
query II rowsort label-9470
SELECT - + 81, COUNT ( * ) AS col2
----
-81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT - + SUM( 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-9471
SELECT - + SUM ( 80 )
----
-80

query I rowsort
SELECT - - NULLIF ( - 72, + 49 - ( - + 90 ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT ALL COUNT( * ) + - 87
----
-86

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL COUNT ( * ) + - 87
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT CAST( NULL AS SIGNED ) + + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9474
SELECT CAST ( NULL AS INTEGER ) + + - 7
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9475
SELECT 45 DIV - + COUNT( - 19 ) + + 82 + - NULLIF ( + 77, + 42 * + 11 + + - 12 ) * 10
----
-733

skipif mysql # not compatible
query I rowsort label-9475
SELECT 45 / - + COUNT ( - 19 ) + + 82 + - NULLIF ( + 77, + 42 * + 11 + + - 12 ) * 10
----
-733

onlyif mysql # aggregate syntax: 
query II rowsort label-9476
SELECT ALL COUNT( * ) * + MIN( ALL 31 ) AS col1, + 11 * + 49 AS col0
----
31
539

skipif mysql # not compatible
query II rowsort label-9476
SELECT ALL COUNT ( * ) * + MIN ( ALL 31 ) AS col1, + 11 * + 49 AS col0
----
31
539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9477
SELECT ALL + - CASE + 16 WHEN - 56 - + + 40 * + 33 + - COUNT( * ) THEN COUNT( * ) WHEN + 68 THEN NULL ELSE - MAX( 1 ) DIV + 97 + + 31 DIV - 12 END + + 8 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL + - CASE + 16 WHEN - 56 - + + 40 * + 33 + - COUNT ( * ) THEN COUNT ( * ) WHEN + 68 THEN NULL ELSE - MAX ( 1 ) / + 97 + + 31 / - 12 END + + 8 AS col1
----
10

query I rowsort
SELECT ALL - 81 + - 16
----
-97

query II rowsort
SELECT DISTINCT + 70 + + - 64 - 74 AS col1, 4 + + 10 col0
----
-68
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9480
SELECT 14 * NULLIF ( - COUNT( * ), - 13 + - CASE 61 WHEN + - CAST( NULL AS SIGNED ) THEN COUNT( * ) * SUM( 65 ) ELSE NULL END + - - 49 + + 50 * + CAST( MIN( - + 24 ) AS SIGNED ) + 40 ) DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-9480
SELECT 14 * NULLIF ( - COUNT ( * ), - 13 + - CASE 61 WHEN + - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) * SUM ( 65 ) ELSE NULL END + - - 49 + + 50 * + CAST ( MIN ( - + 24 ) AS INTEGER ) + 40 ) / + 72
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9481
SELECT ALL - SUM( - 9 ), + 46 * 92 col0
----
9
4232

skipif mysql # not compatible
query II rowsort label-9481
SELECT ALL - SUM ( - 9 ), + 46 * 92 col0
----
9
4232

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT COUNT( * ) + - COUNT( + - 24 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9482
SELECT COUNT ( * ) + - COUNT ( + - 24 ) AS col2
----
0

query I rowsort
SELECT 31 - + - 44 AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9484
SELECT DISTINCT 60 DIV - COUNT( * ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT 60 / - COUNT ( * ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-9485
SELECT COALESCE ( 47, + - 0, + 10 ) * 17 + - - 89 * COUNT( * ), 91 AS col1
----
888
91

skipif mysql # not compatible
query II rowsort label-9485
SELECT COALESCE ( 47, + - 0, + 10 ) * 17 + - - 89 * COUNT ( * ), 91 AS col1
----
888
91

query I rowsort
SELECT 59 + + - 91 * + 33
----
-2944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9487
SELECT ( ( 36 ) ) + + 73 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT ( ( 36 ) ) + + 73 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9488
SELECT 66 * + - NULLIF ( + CAST( NULL AS SIGNED ), - 63 ) / + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9488
SELECT 66 * + - NULLIF ( + CAST ( NULL AS INTEGER ), - 63 ) / + 1
----
NULL

query II rowsort
SELECT 69 * + 45 AS col2, ( 77 )
----
3105
77

query I rowsort
SELECT 48 * 98 + 47 AS col0
----
4751

query II rowsort
SELECT 75 - + 76 AS col1, + 9 * 27
----
-1
243

query I rowsort
SELECT 49 + 2
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9493
SELECT 56 * - 21 * - ( 49 ) col2, COUNT( DISTINCT 60 )
----
57624
1

skipif mysql # not compatible
query II rowsort label-9493
SELECT 56 * - 21 * - ( 49 ) col2, COUNT ( DISTINCT 60 )
----
57624
1

query I rowsort
SELECT ALL + - 28 + 63
----
35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9495
SELECT CASE 5 WHEN + 15 * + NULLIF ( 64, 12 ) DIV + 68 + - + 80 - COALESCE ( - - 33, - + 67 ) * + 60 * 19 THEN NULL ELSE 86 DIV - - 29 + 86 DIV + 20 + CAST( 55 AS SIGNED ) END + + 60 AS col2
----
121

skipif mysql # not compatible
query I rowsort label-9495
SELECT CASE 5 WHEN + 15 * + NULLIF ( 64, 12 ) / + 68 + - + 80 - COALESCE ( - - 33, - + 67 ) * + 60 * 19 THEN NULL ELSE 86 / - - 29 + 86 / + 20 + CAST ( 55 AS INTEGER ) END + + 60 AS col2
----
121

query I rowsort
SELECT + 98 + - 99
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9497
SELECT DISTINCT + + ( 48 ) * 29 DIV - - COUNT( * ) + - 22 + - + COUNT( * ) col0
----
1369

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT + + ( 48 ) * 29 / - - COUNT ( * ) + - 22 + - + COUNT ( * ) col0
----
1369

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT - 73 + COUNT( 34 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-9498
SELECT - 73 + COUNT ( 34 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL - 91 * COUNT( DISTINCT 49 ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL - 91 * COUNT ( DISTINCT 49 ) col0
----
-91

query I rowsort
SELECT ALL + - 56 + + 16 col0
----
-40

query I rowsort
SELECT ALL ( - 25 ) AS col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-9502
SELECT - - 5 + 57 + - 95 + + 1 DIV + 27 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9502
SELECT - - 5 + 57 + - 95 + + 1 / + 27 AS col1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9503
SELECT DISTINCT + ( + + COUNT( ALL 52 ) ) + 73 + + COALESCE ( + ( COUNT( * ) ), 92 * + 9 ) + - 83 DIV - 31 + 42 * - - 10 * 26 + - + 2 AS col2
----
10995

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT + ( + + COUNT ( ALL 52 ) ) + 73 + + COALESCE ( + ( COUNT ( * ) ), 92 * + 9 ) + - 83 / - 31 + 42 * - - 10 * 26 + - + 2 AS col2
----
10995

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT ALL + + MIN( 68 )
----
68

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL + + MIN ( 68 )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9505
SELECT + 27 * - 93 + 2 - - ( NULLIF ( 97, + SUM( ALL 20 ) ) ) - + 79 DIV 10 AS col1
----
-2419

skipif mysql # not compatible
query I rowsort label-9505
SELECT + 27 * - 93 + 2 - - ( NULLIF ( 97, + SUM ( ALL 20 ) ) ) - + 79 / 10 AS col1
----
-2419

query I rowsort
SELECT + - ( + 50 )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9507
SELECT - 39 DIV SUM( - - 30 ) + - 60 * - 36 + - COALESCE ( - + 63, SUM( DISTINCT + 80 ) + - - 42, - 56 ) AS col0
----
2222

skipif mysql # not compatible
query I rowsort label-9507
SELECT - 39 / SUM ( - - 30 ) + - 60 * - 36 + - COALESCE ( - + 63, SUM ( DISTINCT + 80 ) + - - 42, - 56 ) AS col0
----
2222

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT - 76 + - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-9508
SELECT - 76 + - COUNT ( * )
----
-77

query I rowsort
SELECT + 55 * - 39 * 29 * 92 AS col2
----
-5722860

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT NULLIF ( + COUNT( * ), 37 )
----
1

skipif mysql # not compatible
query I rowsort label-9510
SELECT NULLIF ( + COUNT ( * ), 37 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9511
SELECT COUNT( * ) / + ( - - CAST( NULL AS SIGNED ) ) + + ( MAX( DISTINCT + 54 ) ) + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9511
SELECT COUNT ( * ) / + ( - - CAST ( NULL AS INTEGER ) ) + + ( MAX ( DISTINCT + 54 ) ) + + 70
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9512
SELECT DISTINCT 79 * - CASE + 75 WHEN - CAST( 26 AS SIGNED ) THEN - 92 WHEN + 60 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT 79 * - CASE + 75 WHEN - CAST ( 26 AS INTEGER ) THEN - 92 WHEN + 60 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9513
SELECT + 89 + 8 + + CAST( NULL AS SIGNED ) * - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT + 89 + 8 + + CAST ( NULL AS INTEGER ) * - - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT SUM( ALL + 17 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-9514
SELECT SUM ( ALL + 17 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT + 30 * - + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-9515
SELECT + 30 * - + COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-9516
SELECT + COALESCE ( - 90, - 34 ) AS col1, - CASE + COUNT( * ) WHEN - 64 THEN - 69 * + 29 WHEN - + COUNT( * ) THEN NULL END + + 27 AS col0
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-9516
SELECT + COALESCE ( - 90, - 34 ) AS col1, - CASE + COUNT ( * ) WHEN - 64 THEN - 69 * + 29 WHEN - + COUNT ( * ) THEN NULL END + + 27 AS col0
----
-90
NULL

query I rowsort
SELECT DISTINCT 27 col0
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-9518
SELECT ALL 65 + + - 60 DIV + 49 AS col2, - 61 col2
----
64
-61

skipif mysql # not compatible
query II rowsort label-9518
SELECT ALL 65 + + - 60 / + 49 AS col2, - 61 col2
----
64
-61

query III rowsort
SELECT - 13 AS col2, 47 - - 53 col0, + - 78 * + 12 + + 15
----
-13
100
-921

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9520
SELECT ALL + 38 AS col0, - 29 + + 47 * - COUNT( ALL - 18 ) * - 17 AS col1, 0 DIV - + 11 - 57 + + 84
----
38
770
27

skipif mysql # not compatible
query III rowsort label-9520
SELECT ALL + 38 AS col0, - 29 + + 47 * - COUNT ( ALL - 18 ) * - 17 AS col1, 0 / - + 11 - 57 + + 84
----
38
770
27

query I rowsort
SELECT DISTINCT - 95 + - 15 col2
----
-110

query I rowsort
SELECT DISTINCT + 14 + 78 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT DISTINCT 50 + MIN( ALL + 26 )
----
76

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT 50 + MIN ( ALL + 26 )
----
76

query I rowsort
SELECT - + 76 - + 77
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT - - 1 - + CASE - + AVG ( 14 ) WHEN - MIN( DISTINCT + 95 ) THEN 39 WHEN - - 79 + + - 13 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT - - 1 - + CASE - + AVG ( 14 ) WHEN - MIN ( DISTINCT + 95 ) THEN 39 WHEN - - 79 + + - 13 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9526
SELECT + COUNT( - 67 ) * + 10 DIV COALESCE ( - - 67, 63 + + 95 ) * + 89 + - 96 - + 56 * - 23
----
1192

skipif mysql # not compatible
query I rowsort label-9526
SELECT + COUNT ( - 67 ) * + 10 / COALESCE ( - - 67, 63 + + 95 ) * + 89 + - 96 - + 56 * - 23
----
1192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9527
SELECT ALL - - CAST( - - 72 AS SIGNED ) * CAST( + CAST( + 15 AS SIGNED ) AS SIGNED )
----
1080

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL - - CAST ( - - 72 AS INTEGER ) * CAST ( + CAST ( + 15 AS INTEGER ) AS INTEGER )
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT ALL + + 29 - 2 * + - COUNT( * ) col2
----
31

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL + + 29 - 2 * + - COUNT ( * ) col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT - ( + NULLIF ( + CAST( + 91 AS SIGNED ), 30 ) ) * - 96
----
8736

skipif mysql # not compatible
query I rowsort label-9529
SELECT - ( + NULLIF ( + CAST ( + 91 AS INTEGER ), 30 ) ) * - 96
----
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL - COUNT( * ) * + - 95
----
95

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL - COUNT ( * ) * + - 95
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT ALL - 46 * - - CASE - 78 WHEN - - 61 THEN NULL WHEN + 43 THEN NULL WHEN - - CAST( NULL AS SIGNED ) + - 68 / + + 40 + - - MIN( DISTINCT 40 ) THEN + 39 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL - 46 * - - CASE - 78 WHEN - - 61 THEN NULL WHEN + 43 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) + - 68 / + + 40 + - - MIN ( DISTINCT 40 ) THEN + 39 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT ALL + CAST( CASE - 82 WHEN + 2 THEN - + 22 * + 69 WHEN + COUNT( * ) * + 79 THEN - 60 + 52 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL + CAST ( CASE - 82 WHEN + 2 THEN - + 22 * + 69 WHEN + COUNT ( * ) * + 79 THEN - 60 + 52 END AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 8 AS col1, - 14
----
8
-14

query I rowsort
SELECT - 84 + - + 64 + - 4
----
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-9535
SELECT - 60 DIV - 49 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9535
SELECT - 60 / - 49 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT + MAX( 10 ) * 89
----
890

skipif mysql # not compatible
query I rowsort label-9536
SELECT + MAX ( 10 ) * 89
----
890

onlyif mysql # DIV for integer division: 
query I rowsort label-9537
SELECT ALL + ( 30 ) DIV - - 84
----
0

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL + ( 30 ) / - - 84
----
0

query I rowsort
SELECT + 42 * - 20 AS col1
----
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9539
SELECT 84 * - COUNT( * ) + 4 + 34 + + 37 * CASE - + CAST( + + COUNT( * ) AS SIGNED ) WHEN - ( - 42 ) THEN - ( + COUNT( * ) ) WHEN + 22 * ( 93 ) + + + 2 / + 31 THEN + + CAST( + ( + + 48 ) AS SIGNED ) + + 55 ELSE 93 END * - - 86
----
295880

skipif mysql # not compatible
query I rowsort label-9539
SELECT 84 * - COUNT ( * ) + 4 + 34 + + 37 * CASE - + CAST ( + + COUNT ( * ) AS INTEGER ) WHEN - ( - 42 ) THEN - ( + COUNT ( * ) ) WHEN + 22 * ( 93 ) + + + 2 / + 31 THEN + + CAST ( + ( + + 48 ) AS INTEGER ) + + 55 ELSE 93 END * - - 86
----
295880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9540
SELECT ALL 24 * + CASE COUNT( * ) WHEN 95 THEN + 43 / MIN( - CAST( 27 AS SIGNED ) ) / 59 ELSE NULL END col2, ( + 15 ) + + 21 * - - 92 + - + 7
----
NULL
1940

skipif mysql # not compatible
query II rowsort label-9540
SELECT ALL 24 * + CASE COUNT ( * ) WHEN 95 THEN + 43 / MIN ( - CAST ( 27 AS INTEGER ) ) / 59 ELSE NULL END col2, ( + 15 ) + + 21 * - - 92 + - + 7
----
NULL
1940

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT - COUNT( * ) + + + 17 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-9541
SELECT - COUNT ( * ) + + + 17 AS col2
----
16

query I rowsort
SELECT ALL 2 * - CASE 86 WHEN - 92 THEN + + 15 END + + ( + 14 ) * COALESCE ( - 30, 37 )
----
NULL

query I rowsort
SELECT + 24 - 87 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT + 20 * + NULLIF ( ( + + 98 ), + COUNT( - 98 ) + + 53 * + 6 - - + COUNT( * ) - + 4 - + 18 ) + 30
----
1990

skipif mysql # not compatible
query I rowsort label-9544
SELECT + 20 * + NULLIF ( ( + + 98 ), + COUNT ( - 98 ) + + 53 * + 6 - - + COUNT ( * ) - + 4 - + 18 ) + 30
----
1990

query I rowsort
SELECT ALL 64 * - - 98 AS col0
----
6272

query I rowsort
SELECT - 70 * - + 28 AS col1
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT + 76 + SUM( - + 41 )
----
35

skipif mysql # not compatible
query I rowsort label-9547
SELECT + 76 + SUM ( - + 41 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT + - CASE WHEN NOT + ( + 26 ) IN ( + 65 + + - 59 * - COUNT( * ), + 37, + + ( - 20 ), 97 + COALESCE ( - ( + - CASE - - 54 WHEN - 53 + + 8 * + ( + COUNT( * ) ) THEN NULL WHEN - 72 THEN 16 WHEN 23 THEN NULL END ), + 59 ) ) THEN 30 - - 1 * + - 86 END
----
56

skipif mysql # not compatible
query I rowsort label-9548
SELECT + - CASE WHEN NOT + ( + 26 ) IN ( + 65 + + - 59 * - COUNT ( * ), + 37, + + ( - 20 ), 97 + COALESCE ( - ( + - CASE - - 54 WHEN - 53 + + 8 * + ( + COUNT ( * ) ) THEN NULL WHEN - 72 THEN 16 WHEN 23 THEN NULL END ), + 59 ) ) THEN 30 - - 1 * + - 86 END
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9549
SELECT + NULLIF ( + + 21, CASE - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) WHEN - 3 THEN CAST( 15 AS SIGNED ) * ( + COUNT( * ) ) END * - MIN( ALL 49 ) ) - - 55 * - COUNT( ALL + + 21 ) * - 65 + + + COUNT( * ) + + - COUNT( * ) + - 13, 71 col1
----
3583
71

skipif mysql # not compatible
query II rowsort label-9549
SELECT + NULLIF ( + + 21, CASE - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN - 3 THEN CAST ( 15 AS INTEGER ) * ( + COUNT ( * ) ) END * - MIN ( ALL 49 ) ) - - 55 * - COUNT ( ALL + + 21 ) * - 65 + + + COUNT ( * ) + + - COUNT ( * ) + - 13, 71 col1
----
3583
71

query I rowsort
SELECT + 46 + + 73 * + 24 AS col0
----
1798

query I rowsort
SELECT ALL - 66 + + ( + ( 7 ) ) AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9552
SELECT ALL CAST( - MIN( ALL + 72 ) AS SIGNED ) - - 62 + - 21 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL CAST ( - MIN ( ALL + 72 ) AS INTEGER ) - - 62 + - 21 AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9553
SELECT ALL 3 AS col1, + COUNT( * ) - + + 72 * COUNT( ALL + CAST( NULL AS SIGNED ) )
----
3
1

skipif mysql # not compatible
query II rowsort label-9553
SELECT ALL 3 AS col1, + COUNT ( * ) - + + 72 * COUNT ( ALL + CAST ( NULL AS INTEGER ) )
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT 89 + + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-9554
SELECT 89 + + COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT - + MAX( DISTINCT 52 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-9555
SELECT - + MAX ( DISTINCT 52 ) AS col0
----
-52

query II rowsort
SELECT - 76, - 63 col1
----
-76
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9557
SELECT + 35 * - 75 / - + 97 + 87 * 6 + - 8 - + + 70 + - 65 + MIN( ALL - + 57 ) - + COUNT( * ) * - 65 * MIN( 14 ) + ( 25 ) / 17 * 35 + AVG ( 19 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT + 35 * - 75 / - + 97 + 87 * 6 + - 8 - + + 70 + - 65 + MIN ( ALL - + 57 ) - + COUNT ( * ) * - 65 * MIN ( 14 ) + ( 25 ) / 17 * 35 + AVG ( 19 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT - COUNT( * ) + NULLIF ( - 72, 20 ) * + NULLIF ( + - 14, + 99 ) AS col0
----
1007

skipif mysql # not compatible
query I rowsort label-9558
SELECT - COUNT ( * ) + NULLIF ( - 72, 20 ) * + NULLIF ( + - 14, + 99 ) AS col0
----
1007

query I rowsort
SELECT ALL 79 * + 56 AS col1
----
4424

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT - - MIN( 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9560
SELECT - - MIN ( 30 ) AS col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9561
SELECT 58 DIV 11 * 99 + + + 76 * - - 19 col1
----
1939

skipif mysql # not compatible
query I rowsort label-9561
SELECT 58 / 11 * 99 + + + 76 * - - 19 col1
----
1939

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9562
SELECT - 71 + - + 69 * + + COALESCE ( - + ( + COUNT( * ) ), - CAST( + 47 AS SIGNED ) * - COUNT( * ) + + + 97 ) * - + 84 - 91 + - - 41 + MAX( DISTINCT + 5 ) * + + CASE + - CAST( - - 30 AS SIGNED ) WHEN 4 THEN - - 47 / 17 * 30 WHEN - 53 - + COUNT( * ) - COUNT( * ) - MAX( 46 ) THEN NULL WHEN 75 THEN 47 / + 54 END + + 41 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT - 71 + - + 69 * + + COALESCE ( - + ( + COUNT ( * ) ), - CAST ( + 47 AS INTEGER ) * - COUNT ( * ) + + + 97 ) * - + 84 - 91 + - - 41 + MAX ( DISTINCT + 5 ) * + + CASE + - CAST ( - - 30 AS INTEGER ) WHEN 4 THEN - - 47 / 17 * 30 WHEN - 53 - + COUNT ( * ) - COUNT ( * ) - MAX ( 46 ) THEN NULL WHEN 75 THEN 47 / + 54 END + + 41 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT ALL NULLIF ( + + NULLIF ( NULLIF ( + ( - COUNT( * ) ), + MIN( + 53 ) ), 86 * - + ( + + ( 84 ) ) ), - + COUNT( * ) - + + 9 ) * - 9 + - - 9
----
18

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL NULLIF ( + + NULLIF ( NULLIF ( + ( - COUNT ( * ) ), + MIN ( + 53 ) ), 86 * - + ( + + ( 84 ) ) ), - + COUNT ( * ) - + + 9 ) * - 9 + - - 9
----
18

query I rowsort
SELECT ALL + 89 * + + 94
----
8366

query I rowsort
SELECT 41 + 5 + - 57 AS col1
----
-11

query I rowsort
SELECT DISTINCT - ( - 83 ) col2
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9567
SELECT COUNT( * ) * + 56 * + COUNT( * ) DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-9567
SELECT COUNT ( * ) * + 56 * + COUNT ( * ) / 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT CASE 84 WHEN 50 THEN + COUNT( * ) WHEN + ( + + 9 ) + COUNT( * ) - + 21 + - 19 THEN NULL END * + + 10 + + 61 - + - 58 * + + 80 + - 47 + - + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT CASE 84 WHEN 50 THEN + COUNT ( * ) WHEN + ( + + 9 ) + COUNT ( * ) - + 21 + - 19 THEN NULL END * + + 10 + + 61 - + - 58 * + + 80 + - 47 + - + 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9569
SELECT DISTINCT - MIN( - 5 ) * 8 DIV 84 + - CAST( 67 AS SIGNED ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT - MIN ( - 5 ) * 8 / 84 + - CAST ( 67 AS INTEGER ) AS col2
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-9570
SELECT 40 * + + 64 DIV 4 AS col2
----
640

skipif mysql # not compatible
query I rowsort label-9570
SELECT 40 * + + 64 / 4 AS col2
----
640

query I rowsort
SELECT 75 + + 47 col1
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9572
SELECT 59 DIV COUNT( * ) * + - 17
----
-1003

skipif mysql # not compatible
query I rowsort label-9572
SELECT 59 / COUNT ( * ) * + - 17
----
-1003

query I rowsort
SELECT ALL + 53 + + + 59 - 27 col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT + 80 * - 99 * + 12 * + + CASE - 1 WHEN + 8 THEN NULL WHEN + + ( - - MIN( 90 ) ) THEN NULL WHEN + - COUNT( DISTINCT + - 62 ) + - 42 * + 0 THEN NULL ELSE AVG ( + ( + 21 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT + 80 * - 99 * + 12 * + + CASE - 1 WHEN + 8 THEN NULL WHEN + + ( - - MIN ( 90 ) ) THEN NULL WHEN + - COUNT ( DISTINCT + - 62 ) + - 42 * + 0 THEN NULL ELSE AVG ( + ( + 21 ) ) END
----
NULL

query I rowsort
SELECT ALL + 53 + - ( - 35 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT + 79 * COUNT( * ) - ( + 56 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-9576
SELECT + 79 * COUNT ( * ) - ( + 56 ) AS col2
----
23

query I rowsort
SELECT - 87 + - - 13
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9578
SELECT ALL - + CASE + + 54 WHEN CASE 76 WHEN + ( - COUNT( * ) ) + - CAST( 15 AS SIGNED ) THEN COUNT( * ) ELSE + 81 END THEN - NULLIF ( + 84, 33 / + + 96 + - - 32 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL - + CASE + + 54 WHEN CASE 76 WHEN + ( - COUNT ( * ) ) + - CAST ( 15 AS INTEGER ) THEN COUNT ( * ) ELSE + 81 END THEN - NULLIF ( + 84, 33 / + + 96 + - - 32 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9579
SELECT DISTINCT + 47 + - - 54, 66 + + CAST( NULL AS DECIMAL ) AS col1
----
101
NULL

skipif mysql # not compatible
query II rowsort label-9579
SELECT DISTINCT + 47 + - - 54, 66 + + CAST ( NULL AS REAL ) AS col1
----
101
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT DISTINCT + + 62 / 55 + - + CASE - + 97 WHEN + 7 + - CASE + 12 WHEN + 72 * 23 - + - 9 + MIN( DISTINCT + + 76 ) THEN + - COALESCE ( + AVG ( - + 88 ), + - 12, + NULLIF ( + 74, - + 13 ) * 97 * ( + 79 ) ) WHEN + 64 THEN - + 99 / 66 ELSE NULL END + + 15 / 75 + 91 THEN + - 40 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT + + 62 / 55 + - + CASE - + 97 WHEN + 7 + - CASE + 12 WHEN + 72 * 23 - + - 9 + MIN ( DISTINCT + + 76 ) THEN + - COALESCE ( + AVG ( - + 88 ), + - 12, + NULLIF ( + 74, - + 13 ) * 97 * ( + 79 ) ) WHEN + 64 THEN - + 99 / 66 ELSE NULL END + + 15 / 75 + 91 THEN + - 40 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9581
SELECT ALL 84 - - 76 AS col1, ( 82 ) * - + ( - COUNT( * ) ) * - 59 * - 62 + COUNT( * ) * - 17 AS col1
----
160
299939

skipif mysql # not compatible
query II rowsort label-9581
SELECT ALL 84 - - 76 AS col1, ( 82 ) * - + ( - COUNT ( * ) ) * - 59 * - 62 + COUNT ( * ) * - 17 AS col1
----
160
299939

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9582
SELECT - 53 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9582
SELECT - 53 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT - ( COUNT( * ) ) * + 14 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-9583
SELECT - ( COUNT ( * ) ) * + 14 AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9584
SELECT 65 * + - MAX( DISTINCT + 0 ) DIV + 2 + - 43 + + 63
----
20

skipif mysql # not compatible
query I rowsort label-9584
SELECT 65 * + - MAX ( DISTINCT + 0 ) / + 2 + - 43 + + 63
----
20

query II rowsort
SELECT ALL - - 37 - - 93, 30 AS col0
----
130
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9586
SELECT - + CASE + - 49 WHEN - ( - COALESCE ( SUM( DISTINCT - 15 ), - CAST( NULL AS SIGNED ) / - + 44 ) ) THEN NULL WHEN + 54 + 43 * 60 THEN - 59 * + 1 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9586
SELECT - + CASE + - 49 WHEN - ( - COALESCE ( SUM ( DISTINCT - 15 ), - CAST ( NULL AS INTEGER ) / - + 44 ) ) THEN NULL WHEN + 54 + 43 * 60 THEN - 59 * + 1 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT + 60 + + + SUM( DISTINCT + 67 ) AS col0
----
127

skipif mysql # not compatible
query I rowsort label-9587
SELECT + 60 + + + SUM ( DISTINCT + 67 ) AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT DISTINCT + MAX( DISTINCT - ( - + 64 ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT + MAX ( DISTINCT - ( - + 64 ) ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT DISTINCT - 80 * - 41 * + COUNT( * ) * - 79
----
-259120

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT - 80 * - 41 * + COUNT ( * ) * - 79
----
-259120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9590
SELECT COALESCE ( 37, + COUNT( * ) + 63 ) DIV + - 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9590
SELECT COALESCE ( 37, + COUNT ( * ) + 63 ) / + - 47 AS col0
----
0

query I rowsort
SELECT ( 65 ) + + 4 * + + 14 col0
----
121

query I rowsort
SELECT 76 * + - 80
----
-6080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9593
SELECT MAX( ALL - - 73 ) * - + CASE + 3 WHEN + - 21 * CAST( NULL AS SIGNED ) THEN - + ( - 96 ) * - + 38 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT MAX ( ALL - - 73 ) * - + CASE + 3 WHEN + - 21 * CAST ( NULL AS INTEGER ) THEN - + ( - 96 ) * - + 38 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9594
SELECT ALL COUNT( ALL - ( + - ( - - 94 ) ) ) * + 11 + + CAST( - ( + 18 ) AS SIGNED ) * - + 36 + - COALESCE ( 16, - 3 * - - 49, SUM( 43 ), + 58 + + COUNT( * ) )
----
643

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL COUNT ( ALL - ( + - ( - - 94 ) ) ) * + 11 + + CAST ( - ( + 18 ) AS INTEGER ) * - + 36 + - COALESCE ( 16, - 3 * - - 49, SUM ( 43 ), + 58 + + COUNT ( * ) )
----
643

query I rowsort
SELECT 65 * 22 * + + 38 * - 76
----
-4129840

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT + CASE WHEN + ( AVG ( ALL - 83 ) ) BETWEEN + 32 + - + 76 + 94 * SUM( ALL + 94 ) AND 77 * + + COUNT( * ) THEN NULL ELSE + 54 END
----
54

skipif mysql # not compatible
query I rowsort label-9596
SELECT + CASE WHEN + ( AVG ( ALL - 83 ) ) BETWEEN + 32 + - + 76 + 94 * SUM ( ALL + 94 ) AND 77 * + + COUNT ( * ) THEN NULL ELSE + 54 END
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9597
SELECT ALL - 4 AS col2, 87 DIV 10 * COUNT( * ) DIV - 70 AS col0
----
-4
0

skipif mysql # not compatible
query II rowsort label-9597
SELECT ALL - 4 AS col2, 87 / 10 * COUNT ( * ) / - 70 AS col0
----
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT 78 + 77 * + 9 + - MAX( + 0 )
----
771

skipif mysql # not compatible
query I rowsort label-9598
SELECT 78 + 77 * + 9 + - MAX ( + 0 )
----
771

onlyif mysql # aggregate syntax: 
query II rowsort label-9599
SELECT COUNT( * ) col2, 13 - - MIN( DISTINCT + 21 ) AS col1
----
1
34

skipif mysql # not compatible
query II rowsort label-9599
SELECT COUNT ( * ) col2, 13 - - MIN ( DISTINCT + 21 ) AS col1
----
1
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT + 12 * + 52 * + COUNT( * ) + + 59 * - 38 AS col0
----
-1618

skipif mysql # not compatible
query I rowsort label-9600
SELECT + 12 * + 52 * + COUNT ( * ) + + 59 * - 38 AS col0
----
-1618

query I rowsort
SELECT - 70 - 14
----
-84

query I rowsort
SELECT DISTINCT + 49 * + 44
----
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT ALL - - COUNT( * ) * + 42 - - 20 * - 44 + - - 97 AS col1
----
-741

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL - - COUNT ( * ) * + 42 - - 20 * - 44 + - - 97 AS col1
----
-741

query I rowsort
SELECT - + 13 * + - 13 AS col2
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9605
SELECT DISTINCT + CAST( NULL AS SIGNED ) * MAX( - 86 ) * 58 + 84 + - - CAST( NULL AS SIGNED ) / - NULLIF ( + 59, - - 33 ) * COUNT( * ) / - MAX( + + 13 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * MAX ( - 86 ) * 58 + 84 + - - CAST ( NULL AS INTEGER ) / - NULLIF ( + 59, - - 33 ) * COUNT ( * ) / - MAX ( + + 13 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT - - COUNT( * ) + - 21 + + + 3 / 13 / + 62 + - 42 + + + CASE - SUM( DISTINCT + 2 ) WHEN ( - 86 ) THEN - 70 * - 12 * + ( 11 ) - + COUNT( * ) + + - 22 + + 18 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT - - COUNT ( * ) + - 21 + + + 3 / 13 / + 62 + - 42 + + + CASE - SUM ( DISTINCT + 2 ) WHEN ( - 86 ) THEN - 70 * - 12 * + ( 11 ) - + COUNT ( * ) + + - 22 + + 18 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT + + 52 * + - COALESCE ( - 14, ( + - ( + + 91 ) ) + + CASE 89 WHEN + + 67 / - + 32 / + ( 85 ) THEN + 7 + 64 ELSE - - 44 END, - 18 + + - 12 ) * + CASE - 62 WHEN - 88 + - 78 + - COUNT( * ) THEN 69 WHEN - 28 THEN NULL END - + 74 + - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9607
SELECT + + 52 * + - COALESCE ( - 14, ( + - ( + + 91 ) ) + + CASE 89 WHEN + + 67 / - + 32 / + ( 85 ) THEN + 7 + 64 ELSE - - 44 END, - 18 + + - 12 ) * + CASE - 62 WHEN - 88 + - 78 + - COUNT ( * ) THEN 69 WHEN - 28 THEN NULL END - + 74 + - 7 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9608
SELECT + 93, - 3 DIV - + 24 AS col1
----
93
0

skipif mysql # not compatible
query II rowsort label-9608
SELECT + 93, - 3 / - + 24 AS col1
----
93
0

query I rowsort
SELECT - - 19 * 81
----
1539

query I rowsort
SELECT - 17 + - 14
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9611
SELECT - CAST( NULL AS SIGNED ) * 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT - CAST ( NULL AS INTEGER ) * 68 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT ALL - CAST( NULL AS SIGNED ) * + 13 + - - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL - CAST ( NULL AS INTEGER ) * + 13 + - - 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9613
SELECT - - 36 DIV COUNT( * ) + 40 AS col1, - SUM( ALL 89 )
----
76
-89

skipif mysql # not compatible
query II rowsort label-9613
SELECT - - 36 / COUNT ( * ) + 40 AS col1, - SUM ( ALL 89 )
----
76
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-9614
SELECT ALL - 31 DIV - + ( - 65 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL - 31 / - + ( - 65 ) AS col0
----
0

query I rowsort
SELECT ( 38 )
----
38

query I rowsort
SELECT ALL + 51 * - + 17 + ( + - 74 ) * + - 92 col1
----
5941

query I rowsort
SELECT DISTINCT + 40 * - 52 AS col1
----
-2080

query I rowsort
SELECT DISTINCT ( - 65 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT - COUNT( * ) * - 92 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-9619
SELECT - COUNT ( * ) * - 92 AS col2
----
92

query I rowsort
SELECT ALL + 98 + - - 99
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT DISTINCT ( ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT ( ( COUNT ( * ) ) )
----
1

query I rowsort
SELECT DISTINCT 42 + 30 * + + 82 AS col2
----
2502

query I rowsort
SELECT DISTINCT ( + + 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT ALL ( + ( - COALESCE ( COUNT( * ), 16, + COUNT( * ) ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL ( + ( - COALESCE ( COUNT ( * ), 16, + COUNT ( * ) ) ) )
----
-1

query I rowsort
SELECT ALL 95 * - 37
----
-3515

query I rowsort
SELECT + 1 + - 29
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT DISTINCT 6 + - - 97 + + - 93 * + MAX( ALL 77 ) * - ( + 49 ) AS col2
----
350992

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT 6 + - - 97 + + - 93 * + MAX ( ALL 77 ) * - ( + 49 ) AS col2
----
350992

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT + 9 * 29 + - COUNT( * ) AS col2
----
260

skipif mysql # not compatible
query I rowsort label-9628
SELECT + 9 * 29 + - COUNT ( * ) AS col2
----
260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9629
SELECT ALL 90 DIV - COUNT( * ) + 3 + - 68 col1
----
-155

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL 90 / - COUNT ( * ) + 3 + - 68 col1
----
-155

query I rowsort
SELECT + 47 * - + 84
----
-3948

query I rowsort
SELECT + ( + 34 ) AS col0
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-9632
SELECT + 65 DIV - 47 AS col0, - 96 - - 59 + 87
----
-1
50

skipif mysql # not compatible
query II rowsort label-9632
SELECT + 65 / - 47 AS col0, - 96 - - 59 + 87
----
-1
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9633
SELECT + CASE + - 64 WHEN - 98 + + 58 THEN - + 0 + + 42 + CAST( NULL AS DECIMAL ) + - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT + CASE + - 64 WHEN - 98 + + 58 THEN - + 0 + + 42 + CAST ( NULL AS REAL ) + - - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ( 51 ) col2
----
51

query I rowsort
SELECT ALL 5 * 85 * 40
----
17000

onlyif mysql # aggregate syntax: 
query II rowsort label-9636
SELECT ALL - ( + + ( COUNT( * ) ) ) * - + 82 - + + COUNT( * ) AS col1, 74
----
81
74

skipif mysql # not compatible
query II rowsort label-9636
SELECT ALL - ( + + ( COUNT ( * ) ) ) * - + 82 - + + COUNT ( * ) AS col1, 74
----
81
74

query II rowsort
SELECT + ( 12 ) AS col2, 93 AS col0
----
12
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9638
SELECT + + 9 DIV + NULLIF ( + + 2, 20 * ( + ( - 22 ) ) + + ( + - CAST( NULL AS SIGNED ) ) + - 34 ) + + 18
----
22

skipif mysql # not compatible
query I rowsort label-9638
SELECT + + 9 / + NULLIF ( + + 2, 20 * ( + ( - 22 ) ) + + ( + - CAST ( NULL AS INTEGER ) ) + - 34 ) + + 18
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9639
SELECT + 49 * - 66 - + - MIN( ALL 6 ) AS col1, 69
----
-3228
69

skipif mysql # not compatible
query II rowsort label-9639
SELECT + 49 * - 66 - + - MIN ( ALL 6 ) AS col1, 69
----
-3228
69

query I rowsort
SELECT - 76 * + 61 * - 67 AS col2
----
310612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9641
SELECT ALL - + MIN( ALL - - 92 ) * + CAST( NULL AS SIGNED ) + + 27 * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL - + MIN ( ALL - - 92 ) * + CAST ( NULL AS INTEGER ) + + 27 * 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT ALL + CASE 94 WHEN + 31 THEN 1 + - 67 + 4 + + 83 * + + ( CASE - SUM( + ( 32 ) ) WHEN + 66 + - + COUNT( * ) THEN + 88 ELSE NULL END ) * - COUNT( DISTINCT 97 ) + - 41 WHEN - 87 + + 34 THEN - 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL + CASE 94 WHEN + 31 THEN 1 + - 67 + 4 + + 83 * + + ( CASE - SUM ( + ( 32 ) ) WHEN + 66 + - + COUNT ( * ) THEN + 88 ELSE NULL END ) * - COUNT ( DISTINCT 97 ) + - 41 WHEN - 87 + + 34 THEN - 75 ELSE NULL END
----
NULL

query I rowsort
SELECT + - 40 * 4 AS col1
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT ALL + CASE - - COUNT( * ) WHEN 15 THEN NULL ELSE + + 69 * - 77 + + - 79 END AS col0
----
-5392

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL + CASE - - COUNT ( * ) WHEN 15 THEN NULL ELSE + + 69 * - 77 + + - 79 END AS col0
----
-5392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9645
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col1, 5
----
1
5

skipif mysql # not compatible
query II rowsort label-9645
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1, 5
----
1
5

query I rowsort
SELECT - + 7 * + + 97 AS col2
----
-679

query I rowsort
SELECT 91 * - - 52 - 61 AS col2
----
4671

query I rowsort
SELECT ALL 94 * + 49 + + CASE + 0 WHEN 78 THEN - + 93 * - 25 * - 24 WHEN 19 + + ( - - 8 ) THEN - ( - + 11 ) END + - 46 + + 76 * 78
----
NULL

query I rowsort
SELECT - 78 * 88 - ( 37 ) AS col1
----
-6901

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9650
SELECT + SUM( ALL - 80 ) AS col2, ( - 21 ) DIV - 23 + 31
----
-80
31

skipif mysql # not compatible
query II rowsort label-9650
SELECT + SUM ( ALL - 80 ) AS col2, ( - 21 ) / - 23 + 31
----
-80
31

query I rowsort
SELECT - 37 + + + ( - + 39 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT - SUM( + + ( 72 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-9652
SELECT - SUM ( + + ( 72 ) )
----
-72

query I rowsort
SELECT ALL + 66 + ( + 74 ) - - + COALESCE ( 4, 9 * - 67 + 3, 5 ) col0
----
144

query I rowsort
SELECT DISTINCT - 11 * 11
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) + - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) + - 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT DISTINCT + 84 + - + MAX( ALL + + 83 ) + + 88
----
89

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT + 84 + - + MAX ( ALL + + 83 ) + + 88
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT - SUM( + 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-9657
SELECT - SUM ( + 10 )
----
-10

query I rowsort
SELECT DISTINCT + 21 + - 28 + - + 96
----
-103

query I rowsort
SELECT ALL - 66 * 52 AS col0
----
-3432

query II rowsort
SELECT 48, + 19 AS col2
----
48
19

query I rowsort
SELECT DISTINCT - 49 * - + 86
----
4214

query I rowsort
SELECT 68 + 27 col1
----
95

query I rowsort
SELECT 4 * 76
----
304

query II rowsort
SELECT DISTINCT 66, + 40 AS col0
----
66
40

query I rowsort
SELECT DISTINCT 53 - ( + 71 ) AS col0
----
-18

query I rowsort
SELECT DISTINCT - 49 * - ( + 61 ) AS col1
----
2989

query I rowsort
SELECT ALL - NULLIF ( - 95, 19 * - + 53 + - - 61 ) AS col2
----
95

query I rowsort
SELECT 59 * ( - 55 ) - + ( ( 61 ) ) AS col0
----
-3306

onlyif mysql # DIV for integer division: 
query I rowsort label-9669
SELECT ALL 52 DIV 22 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL 52 / 22 AS col2
----
2

query I rowsort
SELECT 84 * + 66 AS col0
----
5544

query I rowsort
SELECT 19 * - 10
----
-190

query I rowsort
SELECT 90 + + 46 * + 52 AS col0
----
2482

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT DISTINCT 87 * + NULLIF ( 52, - ( + COUNT( * ) ) / - 29 + 83 )
----
4524

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT 87 * + NULLIF ( 52, - ( + COUNT ( * ) ) / - 29 + 83 )
----
4524

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT + CASE - 49 WHEN - COUNT( * ) * 20 + 47 THEN - 26 * 66 ELSE NULL END * 14 + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9674
SELECT + CASE - 49 WHEN - COUNT ( * ) * 20 + 47 THEN - 26 * 66 ELSE NULL END * 14 + 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9675
SELECT CAST( NULL AS SIGNED ) - + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT CAST ( NULL AS INTEGER ) - + 82 AS col1
----
NULL

query I rowsort
SELECT ALL 10 + ( 93 ) AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT ALL SUM( DISTINCT + 11 ) + - COALESCE ( + 54 + 60, + 36 ) * + 22
----
-2497

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL SUM ( DISTINCT + 11 ) + - COALESCE ( + 54 + 60, + 36 ) * + 22
----
-2497

query I rowsort
SELECT DISTINCT 45 + - 88
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL - 69 + COUNT( + 32 )
----
-68

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL - 69 + COUNT ( + 32 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT COUNT( * ) * 49 + 58 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-9680
SELECT COUNT ( * ) * 49 + 58 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT ( CASE + COUNT( * ) WHEN - AVG ( 90 ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE ( 85 ) * 63 END ) + - 55 * - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9681
SELECT ( CASE + COUNT ( * ) WHEN - AVG ( 90 ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE ( 85 ) * 63 END ) + - 55 * - 51 AS col0
----
NULL

query I rowsort
SELECT 63 + 76 AS col1
----
139

query I rowsort
SELECT ALL 32 + ( 89 ) * 23 AS col0
----
2079

query I rowsort
SELECT 34 * 47
----
1598

query I rowsort
SELECT DISTINCT - 52 + + 23 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT COUNT( + 59 ) * - 79 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-9686
SELECT COUNT ( + 59 ) * - 79 AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT ALL SUM( DISTINCT 79 ) + + 35 * 29
----
1094

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL SUM ( DISTINCT 79 ) + + 35 * 29
----
1094

query I rowsort
SELECT DISTINCT 31 - 94 * 82 AS col2
----
-7677

query I rowsort
SELECT 78 * + 53 col0
----
4134

query I rowsort
SELECT 65 + + 66 AS col0
----
131

query I rowsort
SELECT 4 * 15 AS col2
----
60

query I rowsort
SELECT 75 + 54 AS col1
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-9693
SELECT ALL 82 DIV 68
----
1

skipif mysql # not compatible
query I rowsort label-9693
SELECT ALL 82 / 68
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT 94 DIV - 55 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9694
SELECT 94 / - 55 AS col2
----
-1

query I rowsort
SELECT ALL + 63 * 21
----
1323

query I rowsort
SELECT DISTINCT + 90 * + 20 col2
----
1800

query I rowsort
SELECT 10 + 74 * 86 AS col0
----
6374

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT ALL + + ( COUNT( DISTINCT 35 ) ) * 50 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9698
SELECT ALL + + ( COUNT ( DISTINCT 35 ) ) * 50 AS col2
----
50

query I rowsort
SELECT DISTINCT - - 41 * + 55 AS col2
----
2255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9700
SELECT + - CAST( - 47 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-9700
SELECT + - CAST ( - 47 AS INTEGER )
----
47

query I rowsort
SELECT + 61 * 18 AS col0
----
1098

query I rowsort
SELECT 24 * 99
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT MIN( - NULLIF ( + 64, 4 + 71 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-9703
SELECT MIN ( - NULLIF ( + 64, 4 + 71 ) )
----
-64

query I rowsort
SELECT 4 * - 88 col1
----
-352

query I rowsort
SELECT ALL - - 99 + 0 AS col2
----
99

query I rowsort
SELECT ALL 50 + 33
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT ( + CASE + 50 WHEN - 8 THEN NULL ELSE - MAX( - 38 ) END )
----
38

skipif mysql # not compatible
query I rowsort label-9707
SELECT ( + CASE + 50 WHEN - 8 THEN NULL ELSE - MAX ( - 38 ) END )
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9708
SELECT NULLIF ( NULLIF ( - CASE - 73 WHEN - 96 THEN NULL ELSE 98 DIV 65 END, + 70 ), 49 ) * 76
----
-76

skipif mysql # not compatible
query I rowsort label-9708
SELECT NULLIF ( NULLIF ( - CASE - 73 WHEN - 96 THEN NULL ELSE 98 / 65 END, + 70 ), 49 ) * 76
----
-76

query I rowsort
SELECT + - 14 col2
----
-14

query I rowsort
SELECT DISTINCT + 52 + + 86 * 99
----
8566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9711
SELECT + CAST( NULL AS SIGNED ) * 67 - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT + CAST ( NULL AS INTEGER ) * 67 - 70 AS col1
----
NULL

query I rowsort
SELECT + - ( 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT + CASE 39 WHEN - COUNT( * ) * - COUNT( * ) THEN 38 - - 45 ELSE 60 END
----
60

skipif mysql # not compatible
query I rowsort label-9713
SELECT + CASE 39 WHEN - COUNT ( * ) * - COUNT ( * ) THEN 38 - - 45 ELSE 60 END
----
60

query I rowsort
SELECT ALL + 19 + 76 col2
----
95

query I rowsort
SELECT 6 * 55
----
330

query I rowsort
SELECT - 69 * 27 AS col0
----
-1863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9717
SELECT DISTINCT - CAST( - 83 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-9717
SELECT DISTINCT - CAST ( - 83 AS INTEGER )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT DISTINCT - CASE - 39 WHEN - 21 THEN - COUNT( * ) WHEN - 37 THEN - NULLIF ( 25, AVG ( 74 ) ) END + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT - CASE - 39 WHEN - 21 THEN - COUNT ( * ) WHEN - 37 THEN - NULLIF ( 25, AVG ( 74 ) ) END + + 4
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9719
SELECT DISTINCT 20 DIV + + ( 72 )
----
0

skipif mysql # not compatible
query I rowsort label-9719
SELECT DISTINCT 20 / + + ( 72 )
----
0

query I rowsort
SELECT ALL 78 - - - 99 + - 55
----
-76

query I rowsort
SELECT 69 - 36 + 23
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT - COUNT( * ) * 80 + - 90 * 80
----
-7280

skipif mysql # not compatible
query I rowsort label-9722
SELECT - COUNT ( * ) * 80 + - 90 * 80
----
-7280

onlyif mysql # DIV for integer division: 
query I rowsort label-9723
SELECT + ( + 1 ) DIV - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9723
SELECT + ( + 1 ) / - 29 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9724
SELECT + CAST( - - COUNT( * ) AS SIGNED ) * + ( 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9724
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) * + ( 3 ) AS col0
----
3

query I rowsort
SELECT - COALESCE ( - - ( 96 ), 59, - 83 * + 14 - ( 56 + - 16 * - 11 ) * - 71 ) AS col1
----
-96

query I rowsort
SELECT + 48 * 89 AS col0
----
4272

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT + CASE WHEN AVG ( + 87 ) IN ( - COUNT( * ) * 58 ) THEN 2 ELSE NULL END * CASE 1 + + 17 WHEN + CASE 58 WHEN 38 * + 5 THEN COUNT( * ) END * 85 THEN + 75 + ( 68 ) * 76 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9727
SELECT + CASE WHEN AVG ( + 87 ) IN ( - COUNT ( * ) * 58 ) THEN 2 ELSE NULL END * CASE 1 + + 17 WHEN + CASE 58 WHEN 38 * + 5 THEN COUNT ( * ) END * 85 THEN + 75 + ( 68 ) * 76 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 12 * - 23 AS col2
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT + COALESCE ( 38, 98 * 46, - COUNT( * ) ) * 37 AS col2
----
1406

skipif mysql # not compatible
query I rowsort label-9729
SELECT + COALESCE ( 38, 98 * 46, - COUNT ( * ) ) * 37 AS col2
----
1406

query I rowsort
SELECT DISTINCT 41 * 15 AS col2
----
615

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9731
SELECT ALL SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS REAL ) ) col0
----
NULL

query I rowsort
SELECT - 88 * - 0 AS col2
----
0

query I rowsort
SELECT - COALESCE ( 96, + 23 ) AS col1
----
-96

query I rowsort
SELECT ALL 70 + + 80 + 21 * - 80
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT - MIN( + ( 17 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-9735
SELECT - MIN ( + ( 17 ) )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-9736
SELECT - + 30 DIV - 15 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9736
SELECT - + 30 / - 15 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9737
SELECT DISTINCT - 97 + - CAST( 60 AS SIGNED ) col2
----
-157

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT - 97 + - CAST ( 60 AS INTEGER ) col2
----
-157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9738
SELECT ALL NULLIF ( 2, ( + CAST( NULL AS SIGNED ) ) / + 95 + + 7 ) + - 23 * + 12 AS col1
----
-274

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL NULLIF ( 2, ( + CAST ( NULL AS INTEGER ) ) / + 95 + + 7 ) + - 23 * + 12 AS col1
----
-274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9739
SELECT ALL + - 76 DIV - 86 + - 53 * COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL + - 76 / - 86 + - 53 * COUNT ( * ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT ALL - + COUNT( * ) * 14 + 73
----
59

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL - + COUNT ( * ) * 14 + 73
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT DISTINCT + - 33 * MAX( 97 ) * 96 + + 31 AS col2
----
-307265

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT + - 33 * MAX ( 97 ) * 96 + + 31 AS col2
----
-307265

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9742
SELECT DISTINCT - COUNT( * ) DIV + MAX( - 2 ) + 49
----
49

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT - COUNT ( * ) / + MAX ( - 2 ) + 49
----
49

query I rowsort
SELECT - 55 * - 6 + + 35 - - 42 / CASE + 68 * + 2 WHEN - 89 + - 39 THEN NULL WHEN NULLIF ( 41, - 22 ) + + 90 THEN - 68 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT + COUNT( ALL ( + 1 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9744
SELECT + COUNT ( ALL ( + 1 ) ) AS col1
----
1

query I rowsort
SELECT - + 29 * - 47 + 27 AS col2
----
1390

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT - 63 * - ( COUNT( * ) ) + + 44 + - 11 * 82
----
-795

skipif mysql # not compatible
query I rowsort label-9746
SELECT - 63 * - ( COUNT ( * ) ) + + 44 + - 11 * 82
----
-795

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9747
SELECT - 54 - - 92 + 8 DIV + NULLIF ( CAST( 63 AS SIGNED ), ( 17 ) * 48 )
----
38

skipif mysql # not compatible
query I rowsort label-9747
SELECT - 54 - - 92 + 8 / + NULLIF ( CAST ( 63 AS INTEGER ), ( 17 ) * 48 )
----
38

query I rowsort
SELECT ALL + - NULLIF ( - - 19, ( 94 ) ) col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL - + SUM( ALL + 93 ) * + 5 - ( 24 ) AS col1
----
-489

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL - + SUM ( ALL + 93 ) * + 5 - ( 24 ) AS col1
----
-489

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9750
SELECT + ( + ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT + ( + ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT - COUNT( * ) + + - 80 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-9751
SELECT - COUNT ( * ) + + - 80 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT DISTINCT + - 85 * + - 12 * 25 - - MIN( ALL 79 )
----
25579

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT + - 85 * + - 12 * 25 - - MIN ( ALL 79 )
----
25579

query I rowsort
SELECT ALL 79 * ( - + 39 )
----
-3081

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT NULLIF ( MAX( 95 ), 86 )
----
95

skipif mysql # not compatible
query I rowsort label-9754
SELECT NULLIF ( MAX ( 95 ), 86 )
----
95

query I rowsort
SELECT NULLIF ( + + 7, + 75 * 53 ) col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9756
SELECT + CAST( NULL AS SIGNED ) + + - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT + CAST ( NULL AS INTEGER ) + + - 13 AS col1
----
NULL

query I rowsort
SELECT ALL + 7 * + 16
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9758
SELECT - COALESCE ( + + 14, + + COUNT( * ) ) DIV 11 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9758
SELECT - COALESCE ( + + 14, + + COUNT ( * ) ) / 11 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9759
SELECT + COUNT( * ) + + + 95 DIV - + 37 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9759
SELECT + COUNT ( * ) + + + 95 / - + 37 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9760
SELECT DISTINCT + 17 DIV - - 49
----
0

skipif mysql # not compatible
query I rowsort label-9760
SELECT DISTINCT + 17 / - - 49
----
0

query I rowsort
SELECT DISTINCT ( - - NULLIF ( - + 58, + 45 ) )
----
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9762
SELECT + 18 DIV + CAST( - - 19 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9762
SELECT + 18 / + CAST ( - - 19 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT MIN( DISTINCT 47 ) col0
----
47

skipif mysql # not compatible
query I rowsort label-9763
SELECT MIN ( DISTINCT 47 ) col0
----
47

query I rowsort
SELECT DISTINCT - 90 * + 26 AS col1
----
-2340

onlyif mysql # DIV for integer division: 
query I rowsort label-9765
SELECT ALL 65 DIV 47 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL 65 / 47 / - 77
----
0

query I rowsort
SELECT - NULLIF ( - + COALESCE ( 43, + 11, 6 ), - 77 )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9767
SELECT ALL 11, COUNT( * ) AS col1
----
11
1

skipif mysql # not compatible
query II rowsort label-9767
SELECT ALL 11, COUNT ( * ) AS col1
----
11
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9768
SELECT - 82 DIV 61
----
-1

skipif mysql # not compatible
query I rowsort label-9768
SELECT - 82 / 61
----
-1

query I rowsort
SELECT DISTINCT 94 + 97 AS col0
----
191

query I rowsort
SELECT + 64 * 52 AS col0
----
3328

query I rowsort
SELECT ALL 29 + + + 17 * 8
----
165

query I rowsort
SELECT + 52 + - 64
----
-12

query I rowsort
SELECT + 11 - + - 18 + 51
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT ALL MIN( DISTINCT - 9 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL MIN ( DISTINCT - 9 ) AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9775
SELECT + - CASE + 97 WHEN + + 7 + 1 * - 51 THEN CASE - COUNT( * ) WHEN + 95 THEN CAST( + COUNT( * ) AS SIGNED ) + 63 WHEN + 26 * - CAST( NULL AS SIGNED ) THEN NULL END * + 9 WHEN - 78 - COUNT( * ) * - 41 THEN NULL ELSE - 22 END + - 21 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9775
SELECT + - CASE + 97 WHEN + + 7 + 1 * - 51 THEN CASE - COUNT ( * ) WHEN + 95 THEN CAST ( + COUNT ( * ) AS INTEGER ) + 63 WHEN + 26 * - CAST ( NULL AS INTEGER ) THEN NULL END * + 9 WHEN - 78 - COUNT ( * ) * - 41 THEN NULL ELSE - 22 END + - 21 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT ALL - 68 + ( - SUM( ALL - 62 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL - 68 + ( - SUM ( ALL - 62 ) )
----
-6

query I rowsort
SELECT ALL 26 + + - ( - - 77 )
----
-51

query I rowsort
SELECT ALL + 88 + + 6
----
94

query I rowsort
SELECT ALL - 18 * 56
----
-1008

query I rowsort
SELECT ALL 72 + + 60
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-9781
SELECT ALL + + 93 DIV + 15 + + NULLIF ( 90, 31 ) DIV - ( + 47 )
----
5

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL + + 93 / + 15 + + NULLIF ( 90, 31 ) / - ( + 47 )
----
5

query I rowsort
SELECT + ( + 23 ) * - 16
----
-368

onlyif mysql # aggregate syntax: 
query II rowsort label-9783
SELECT DISTINCT + + 47 AS col1, COUNT( * ) AS col0
----
47
1

skipif mysql # not compatible
query II rowsort label-9783
SELECT DISTINCT + + 47 AS col1, COUNT ( * ) AS col0
----
47
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9784
SELECT ALL - + MIN( ALL - - ( 16 ) ) / CASE CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) WHEN 68 THEN 61 + 22 ELSE + COUNT( - ( 46 ) ) * + 12 END - CASE - ( + 3 ) - NULLIF ( 89 + + 20, 32 ) WHEN 34 THEN NULL WHEN - 19 / COUNT( * ) + + ( - 81 - 81 ) THEN + ( COUNT( * ) ) + + 56 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL - + MIN ( ALL - - ( 16 ) ) / CASE CAST ( CAST ( NULL AS INTEGER ) AS REAL ) WHEN 68 THEN 61 + 22 ELSE + COUNT ( - ( 46 ) ) * + 12 END - CASE - ( + 3 ) - NULLIF ( 89 + + 20, 32 ) WHEN 34 THEN NULL WHEN - 19 / COUNT ( * ) + + ( - 81 - 81 ) THEN + ( COUNT ( * ) ) + + 56 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9785
SELECT ALL + 42 DIV + 78 + - 23 + - COALESCE ( 80, 18, 6 ) * 2 AS col1
----
-183

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL + 42 / + 78 + - 23 + - COALESCE ( 80, 18, 6 ) * 2 AS col1
----
-183

onlyif mysql # aggregate syntax: 
query II rowsort label-9786
SELECT ALL - 72 col1, CASE - 18 WHEN - COUNT( * ) THEN - MIN( - 13 ) ELSE NULL END
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-9786
SELECT ALL - 72 col1, CASE - 18 WHEN - COUNT ( * ) THEN - MIN ( - 13 ) ELSE NULL END
----
-72
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 20
----
NULL

query I rowsort
SELECT ( 95 ) * + 80 * 88 + 31 col1
----
668831

query I rowsort
SELECT 53 * + 46 * - 74 AS col0
----
-180412

query I rowsort
SELECT 88 * ( 87 ) col0
----
7656

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT ALL - 76 * + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL - 76 * + COUNT ( * )
----
-76

query I rowsort
SELECT 68 - - 21
----
89

query I rowsort
SELECT DISTINCT + 22 * - 48 * + 55
----
-58080

query I rowsort
SELECT 87 * - 37
----
-3219

query I rowsort
SELECT ALL + 49 + 58
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9796
SELECT DISTINCT - 86 + - COUNT( * ) DIV - 87 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT - 86 + - COUNT ( * ) / - 87 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT COUNT( ALL - 37 ) * + 14 + + MIN( 93 ) col2
----
107

skipif mysql # not compatible
query I rowsort label-9797
SELECT COUNT ( ALL - 37 ) * + 14 + + MIN ( 93 ) col2
----
107

query II rowsort
SELECT 13 * + 7 AS col0, - 81 AS col0
----
91
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9799
SELECT ALL + 13 + + COUNT( * ) + - CAST( - 71 AS SIGNED ) * 89 AS col2
----
6333

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL + 13 + + COUNT ( * ) + - CAST ( - 71 AS INTEGER ) * 89 AS col2
----
6333

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT ALL + COUNT( * ) + + - 26 + - 27
----
-52

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL + COUNT ( * ) + + - 26 + - 27
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9801
SELECT 3 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9801
SELECT 3 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9802
SELECT ALL 23 * ( + NULLIF ( - SUM( DISTINCT - ( + CAST( + 34 AS SIGNED ) ) ), + 78 ) )
----
782

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL 23 * ( + NULLIF ( - SUM ( DISTINCT - ( + CAST ( + 34 AS INTEGER ) ) ), + 78 ) )
----
782

onlyif mysql # DIV for integer division: 
query I rowsort label-9803
SELECT 9 DIV - 73 * 82
----
0

skipif mysql # not compatible
query I rowsort label-9803
SELECT 9 / - 73 * 82
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9804
SELECT ALL - 68 + + 22 DIV + 64 + + - 79
----
-147

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL - 68 + + 22 / + 64 + + - 79
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT ALL + COALESCE ( 58, 68 ) + + + 55 * COUNT( * ) AS col0
----
113

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL + COALESCE ( 58, 68 ) + + + 55 * COUNT ( * ) AS col0
----
113

query II rowsort
SELECT DISTINCT - 60 * 73 AS col1, - 99 + + 74
----
-4380
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9807
SELECT ALL AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + - 19 + - 74 - - 83 * 90 / + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 19 + - 74 - - 83 * 90 / + 34 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9808
SELECT ALL + 58 + - + ( + CAST( 50 AS SIGNED ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL + 58 + - + ( + CAST ( 50 AS INTEGER ) ) AS col2
----
8

query I rowsort
SELECT - + ( - + 34 )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9810
SELECT ALL - + 92 * + 33 * - CAST( NULL AS SIGNED ) + ( + 14 ) + + 74 / - 70 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL - + 92 * + 33 * - CAST ( NULL AS INTEGER ) + ( + 14 ) + + 74 / - 70 col2
----
NULL

query I rowsort
SELECT - - 33 col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT - COUNT( * ) * - 8 * - - 65
----
520

skipif mysql # not compatible
query I rowsort label-9812
SELECT - COUNT ( * ) * - 8 * - - 65
----
520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9813
SELECT + 39 - + 49 * + + 40 + + - COUNT( * ) DIV + 6 col1
----
-1921

skipif mysql # not compatible
query I rowsort label-9813
SELECT + 39 - + 49 * + + 40 + + - COUNT ( * ) / + 6 col1
----
-1921

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT DISTINCT + SUM( DISTINCT + + 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT + SUM ( DISTINCT + + 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT + COALESCE ( + - COUNT( * ), COUNT( * ) * + 71 + 92 ) * + 30 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9815
SELECT + COALESCE ( + - COUNT ( * ), COUNT ( * ) * + 71 + 92 ) * + 30 AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9816
SELECT DISTINCT 1 * + - CAST( NULL AS SIGNED ) AS col1, CAST( + 43 AS SIGNED )
----
NULL
43

skipif mysql # not compatible
query II rowsort label-9816
SELECT DISTINCT 1 * + - CAST ( NULL AS INTEGER ) AS col1, CAST ( + 43 AS INTEGER )
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT ALL - 62 - + COUNT( * ) * + 11 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL - 62 - + COUNT ( * ) * + 11 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT DISTINCT MAX( - + CASE + 1 WHEN 87 + 30 THEN NULL WHEN ( + 30 ) THEN 7 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT MAX ( - + CASE + 1 WHEN 87 + 30 THEN NULL WHEN ( + 30 ) THEN 7 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT COUNT( * ) * - - 3 * - 58 + - - 77 * 47 - 14
----
3431

skipif mysql # not compatible
query I rowsort label-9819
SELECT COUNT ( * ) * - - 3 * - 58 + - - 77 * 47 - 14
----
3431

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT ALL - - SUM( 34 )
----
34

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL - - SUM ( 34 )
----
34

query I rowsort
SELECT DISTINCT - 13 * + 48
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT + ( + CASE 76 WHEN + 99 * 57 THEN 45 END ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT + ( + CASE 76 WHEN + 99 * 57 THEN 45 END ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9823
SELECT - CAST( NULL AS SIGNED ) + + - 0 + CASE + 78 WHEN CAST( NULL AS SIGNED ) THEN ( ( 8 ) ) ELSE NULL END * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9823
SELECT - CAST ( NULL AS INTEGER ) + + - 0 + CASE + 78 WHEN CAST ( NULL AS INTEGER ) THEN ( ( 8 ) ) ELSE NULL END * 68
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9824
SELECT 85 DIV + COUNT( * ) - 19 - - COUNT( * ) + + COALESCE ( 15 + + 87 * 46, - 16 * + 40 + SUM( DISTINCT - 12 ) ) AS col1
----
4084

skipif mysql # not compatible
query I rowsort label-9824
SELECT 85 / + COUNT ( * ) - 19 - - COUNT ( * ) + + COALESCE ( 15 + + 87 * 46, - 16 * + 40 + SUM ( DISTINCT - 12 ) ) AS col1
----
4084

query I rowsort
SELECT ALL 85 * - + 22
----
-1870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9826
SELECT + 55 DIV - - 74 * - COUNT( * ) * + 72 + - 96
----
-96

skipif mysql # not compatible
query I rowsort label-9826
SELECT + 55 / - - 74 * - COUNT ( * ) * + 72 + - 96
----
-96

query I rowsort
SELECT + 66 * + - 10 + - 85 + 34 AS col1
----
-711

onlyif mysql # aggregate syntax: 
query II rowsort label-9828
SELECT 2 col2, + COUNT( * )
----
2
1

skipif mysql # not compatible
query II rowsort label-9828
SELECT 2 col2, + COUNT ( * )
----
2
1

query I rowsort
SELECT 98 * 77 AS col0
----
7546

onlyif mysql # DIV for integer division: 
query I rowsort label-9830
SELECT 44 DIV - + 3 + + 77 * + ( + 93 ) - 4
----
7143

skipif mysql # not compatible
query I rowsort label-9830
SELECT 44 / - + 3 + + 77 * + ( + 93 ) - 4
----
7143

onlyif mysql # aggregate syntax: 
query II rowsort label-9831
SELECT 8 * - COUNT( * ) - - + 17, 17 AS col0
----
9
17

skipif mysql # not compatible
query II rowsort label-9831
SELECT 8 * - COUNT ( * ) - - + 17, 17 AS col0
----
9
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9832
SELECT CAST( + + 76 AS SIGNED ) + - 96 * + + 83 col0
----
-7892

skipif mysql # not compatible
query I rowsort label-9832
SELECT CAST ( + + 76 AS INTEGER ) + - 96 * + + 83 col0
----
-7892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9833
SELECT ( + 58 ) * - + 49 + - 78 + + CAST( - 69 AS SIGNED ) col1
----
-2989

skipif mysql # not compatible
query I rowsort label-9833
SELECT ( + 58 ) * - + 49 + - 78 + + CAST ( - 69 AS INTEGER ) col1
----
-2989

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT ALL - NULLIF ( - COUNT( * ), 12 ) * + + 85 col2
----
85

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL - NULLIF ( - COUNT ( * ), 12 ) * + + 85 col2
----
85

query II rowsort
SELECT 97, 29 AS col1
----
97
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9836
SELECT ALL 1 DIV - 10 * + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL 1 / - 10 * + 92 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT DISTINCT 18 + - - ( + 1 ) + COUNT( - 86 ) + + 95 * - 27
----
-2545

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT 18 + - - ( + 1 ) + COUNT ( - 86 ) + + 95 * - 27
----
-2545

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9838
SELECT MIN( - 92 ) DIV + + 49 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9838
SELECT MIN ( - 92 ) / + + 49 AS col2
----
-1

query I rowsort
SELECT ALL 53 + + 15
----
68

query II rowsort
SELECT 83 col0, 15 + + NULLIF ( - - 4, - 9 + 63 * 93 )
----
83
19

query I rowsort
SELECT 22 + + 28 AS col1
----
50

query I rowsort
SELECT DISTINCT + NULLIF ( + 47, - 28 ) * 98 + 54
----
4660

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT ALL - COUNT( ALL 90 ) * + - 76
----
76

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL - COUNT ( ALL 90 ) * + - 76
----
76

query I rowsort
SELECT ALL + 18 + + 61 * ( + 5 ) AS col2
----
323

query I rowsort
SELECT 12 * - + 83 AS col2
----
-996

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9846
SELECT ALL 94 + + - MIN( DISTINCT + - 68 ) + + 63 * 31 DIV 59 AS col2
----
195

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL 94 + + - MIN ( DISTINCT + - 68 ) + + 63 * 31 / 59 AS col2
----
195

query II rowsort
SELECT ALL + ( + 81 ) + 21 AS col0, 86
----
102
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT DISTINCT + + 27 - + CASE - - AVG ( + CASE + 66 WHEN ( 16 ) THEN 98 END ) WHEN 59 THEN + 53 * + SUM( ALL 47 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT + + 27 - + CASE - - AVG ( + CASE + 66 WHEN ( 16 ) THEN 98 END ) WHEN 59 THEN + 53 * + SUM ( ALL 47 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 85 - + 1 AS col2
----
-86

query I rowsort
SELECT + NULLIF ( - 1, + 32 ) * + 77 * - + 57 * + 52 + 91 * 15 col1
----
229593

query I rowsort
SELECT ALL - 36 * + 46 AS col0
----
-1656

query I rowsort
SELECT ALL ( 97 ) AS col2
----
97

query I rowsort
SELECT DISTINCT - + 14 * + 4 - 86 - - + 9 - 95
----
-228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9854
SELECT ALL + 92 - + + 26 * - NULLIF ( - 35, + + MAX( + 53 ) ) * - CAST( 16 AS SIGNED ) + 36 AS col1
----
14688

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL + 92 - + + 26 * - NULLIF ( - 35, + + MAX ( + 53 ) ) * - CAST ( 16 AS INTEGER ) + 36 AS col1
----
14688

query I rowsort
SELECT 73 * + NULLIF ( + 34, - 73 ) col2
----
2482

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT ALL + 75 * + 40 * - MAX( - 13 )
----
39000

skipif mysql # not compatible
query I rowsort label-9856
SELECT ALL + 75 * + 40 * - MAX ( - 13 )
----
39000

query I rowsort
SELECT ALL NULLIF ( 95, - 23 - - - 35 * - 70 ) - 16
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT DISTINCT CASE + + ( - 73 ) WHEN + 52 * CASE - 13 WHEN + MAX( + 74 ) + 78 THEN NULL ELSE 93 END + - 48 THEN NULL ELSE MIN( ( 23 ) ) END
----
23

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT CASE + + ( - 73 ) WHEN + 52 * CASE - 13 WHEN + MAX ( + 74 ) + 78 THEN NULL ELSE 93 END + - 48 THEN NULL ELSE MIN ( ( 23 ) ) END
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT DISTINCT + COUNT( * ) * + 39
----
39

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT + COUNT ( * ) * + 39
----
39

query I rowsort
SELECT - + 20 * + NULLIF ( - - 30, 65 ) * 79 * - 77
----
3649800

query I rowsort
SELECT + + 14 + + 26 + - 11 + + CASE + 1 WHEN 3 THEN 93 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9862
SELECT ALL + COALESCE ( 43, + - COUNT( * ), 80 DIV - - 22 * COUNT( * ) + + 71 * 87, + 91 )
----
43

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL + COALESCE ( 43, + - COUNT ( * ), 80 / - - 22 * COUNT ( * ) + + 71 * 87, + 91 )
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9863
SELECT + + 65 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-9863
SELECT + + 65 / 88
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9864
SELECT ALL + COUNT( DISTINCT 14 ) DIV CAST( - CASE + + 76 WHEN + 58 * + 20 THEN NULL ELSE + 29 END AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL + COUNT ( DISTINCT 14 ) / CAST ( - CASE + + 76 WHEN + 58 * + 20 THEN NULL ELSE + 29 END AS INTEGER ) AS col2
----
0

query I rowsort
SELECT ALL + ( + 10 )
----
10

query I rowsort
SELECT + 2 * - 2 AS col1
----
-4

query I rowsort
SELECT ALL 13 * - + 47 AS col1
----
-611

onlyif mysql # aggregate syntax: 
query II rowsort label-9868
SELECT + COUNT( * ) AS col1, + 62 AS col1
----
1
62

skipif mysql # not compatible
query II rowsort label-9868
SELECT + COUNT ( * ) AS col1, + 62 AS col1
----
1
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT ALL COUNT( * ) * - + 59 + + 76 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL COUNT ( * ) * - + 59 + + 76 AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9870
SELECT + COUNT( DISTINCT - + 22 ) AS col2, 54 - + + 13
----
1
41

skipif mysql # not compatible
query II rowsort label-9870
SELECT + COUNT ( DISTINCT - + 22 ) AS col2, 54 - + + 13
----
1
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT DISTINCT 99 * + - 17 * + COALESCE ( 27, MIN( DISTINCT + - 85 ), 64 ) + + 75
----
-45366

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT 99 * + - 17 * + COALESCE ( 27, MIN ( DISTINCT + - 85 ), 64 ) + + 75
----
-45366

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL 77 * + + SUM( 90 ) col0
----
6930

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL 77 * + + SUM ( 90 ) col0
----
6930

query I rowsort
SELECT + CASE 13 WHEN + 68 - 67 THEN NULL WHEN + 15 + + 5 + 96 * 80 * 21 THEN NULL WHEN - 58 THEN + 78 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 74 * - COALESCE ( - 16, + + 58 - 24 ) + 36
----
1220

query I rowsort
SELECT + 24 * + 19
----
456

query I rowsort
SELECT + NULLIF ( - 51, - 97 ) - 23 AS col1
----
-74

query I rowsort
SELECT + ( 9 ) AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9878
SELECT ALL - CAST( NULL AS SIGNED ) * - 92 + + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL - CAST ( NULL AS INTEGER ) * - 92 + + + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT ALL 11 * - 24 + + MIN( DISTINCT + + 0 )
----
-264

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL 11 * - 24 + + MIN ( DISTINCT + + 0 )
----
-264

query I rowsort
SELECT DISTINCT 76 * + + 89 AS col1
----
6764

query I rowsort
SELECT + 6 * - 64
----
-384

onlyif mysql # aggregate syntax: 
query II rowsort label-9882
SELECT ALL + 53 * 29 + - 84 + - 2 AS col1, - MAX( + + 50 ) AS col1
----
1451
-50

skipif mysql # not compatible
query II rowsort label-9882
SELECT ALL + 53 * 29 + - 84 + - 2 AS col1, - MAX ( + + 50 ) AS col1
----
1451
-50

query II rowsort
SELECT ALL + 99 AS col2, 13 + - - 29
----
99
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9884
SELECT DISTINCT - ( + - CAST( NULL AS SIGNED ) ) * ( + 7 ) - - CASE - - 49 WHEN 30 THEN - 79 + - 13 * + 61 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) * ( + 7 ) - - CASE - - 49 WHEN 30 THEN - 79 + - 13 * + 61 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 70 * + ( 53 ) AS col0
----
3710

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT MIN( DISTINCT ( + 17 ) )
----
17

skipif mysql # not compatible
query I rowsort label-9886
SELECT MIN ( DISTINCT ( + 17 ) )
----
17

query I rowsort
SELECT ALL + 56 - - ( - + 33 ) AS col2
----
23

query III rowsort
SELECT - 98 col0, + 93, + + 16 AS col0
----
-98
93
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT - SUM( + NULLIF ( + 76, 99 ) ) * + 89
----
-6764

skipif mysql # not compatible
query I rowsort label-9889
SELECT - SUM ( + NULLIF ( + 76, 99 ) ) * + 89
----
-6764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9890
SELECT ALL - - 62 * + 30 * - CAST( NULL AS SIGNED ) + + 6 - - 73 * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL - - 62 * + 30 * - CAST ( NULL AS INTEGER ) + + 6 - - 73 * - 11
----
NULL

query I rowsort
SELECT + + 1 + - + 51
----
-50

query I rowsort
SELECT - 39 + 40
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT ALL + CASE + + 51 WHEN + - COUNT( * ) * + 14 THEN NULL WHEN + - COUNT( * ) THEN + + ( + SUM( ALL + 41 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL + CASE + + 51 WHEN + - COUNT ( * ) * + 14 THEN NULL WHEN + - COUNT ( * ) THEN + + ( + SUM ( ALL + 41 ) ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9894
SELECT DISTINCT - CAST( - 83 AS SIGNED ) col0
----
83

skipif mysql # not compatible
query I rowsort label-9894
SELECT DISTINCT - CAST ( - 83 AS INTEGER ) col0
----
83

query I rowsort
SELECT ALL + ( 31 ) AS col1
----
31

query I rowsort
SELECT ALL ( - 14 ) AS col0
----
-14

query I rowsort
SELECT - + 74 * - - 99 AS col0
----
-7326

query I rowsort
SELECT - + 69 * + 56 AS col0
----
-3864

query I rowsort
SELECT ALL + + NULLIF ( + 29, + - 5 ) + - 0 - - 23 * - + 65
----
-1466

query I rowsort
SELECT ALL - 88 + 52 AS col0
----
-36

query I rowsort
SELECT - 51 + + - 73 * 95 - - ( + - 98 ) AS col1
----
-7084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9902
SELECT DISTINCT - - 15 + 56 AS col0, + COALESCE ( - COUNT( * ), + CAST( - + COALESCE ( - CAST( 42 AS SIGNED ), 13 ) AS SIGNED ) * + 41 + + 3 ) AS col2
----
71
-1

skipif mysql # not compatible
query II rowsort label-9902
SELECT DISTINCT - - 15 + 56 AS col0, + COALESCE ( - COUNT ( * ), + CAST ( - + COALESCE ( - CAST ( 42 AS INTEGER ), 13 ) AS INTEGER ) * + 41 + + 3 ) AS col2
----
71
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT DISTINCT + 72 * - SUM( - 69 ) AS col0
----
4968

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT + 72 * - SUM ( - 69 ) AS col0
----
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL 52 / + - 38 * + COUNT( * ) * + 50 + + 93 + - - COUNT( - + 9 ) * + ( 90 * - CASE - 51 * 62 WHEN COUNT( * ) THEN + 22 ELSE CASE - 94 WHEN ( + 49 ) * + MIN( 86 ) + - 2 THEN NULL WHEN 26 + 50 THEN + 82 * COUNT( * ) + 27 / + 10 WHEN SUM( 31 ) THEN NULL ELSE NULL END END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL 52 / + - 38 * + COUNT ( * ) * + 50 + + 93 + - - COUNT ( - + 9 ) * + ( 90 * - CASE - 51 * 62 WHEN COUNT ( * ) THEN + 22 ELSE CASE - 94 WHEN ( + 49 ) * + MIN ( 86 ) + - 2 THEN NULL WHEN 26 + 50 THEN + 82 * COUNT ( * ) + 27 / + 10 WHEN SUM ( 31 ) THEN NULL ELSE NULL END END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT + COUNT( DISTINCT - 36 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9905
SELECT + COUNT ( DISTINCT - 36 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9906
SELECT - ( + 23 ) DIV - COALESCE ( 31, + ( + 97 ) + - 4 + 66, 0 ) - + 27
----
-27

skipif mysql # not compatible
query I rowsort label-9906
SELECT - ( + 23 ) / - COALESCE ( 31, + ( + 97 ) + - 4 + 66, 0 ) - + 27
----
-27

query I rowsort
SELECT + 48 + + + 93 AS col0
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9908
SELECT DISTINCT + CAST( - COUNT( - 15 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT + CAST ( - COUNT ( - 15 ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9909
SELECT DISTINCT + SUM( ALL 20 ) AS col2, + 98 AS col0
----
20
98

skipif mysql # not compatible
query II rowsort label-9909
SELECT DISTINCT + SUM ( ALL 20 ) AS col2, + 98 AS col0
----
20
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9910
SELECT ALL - 36 DIV 55 DIV + 35 + CAST( 22 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL - 36 / 55 / + 35 + CAST ( 22 AS INTEGER )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT + COUNT( * ) * CASE + - AVG ( - 9 ) WHEN + 95 THEN + - 6 / 29 * 88 + - 53 WHEN COUNT( * ) THEN NULL ELSE NULL END * 10 + - CASE WHEN - 43 >= + 93 THEN 31 * + 16 WHEN 76 >= ( - 1 + + 69 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT + COUNT ( * ) * CASE + - AVG ( - 9 ) WHEN + 95 THEN + - 6 / 29 * 88 + - 53 WHEN COUNT ( * ) THEN NULL ELSE NULL END * 10 + - CASE WHEN - 43 >= + 93 THEN 31 * + 16 WHEN 76 >= ( - 1 + + 69 ) THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT + ( + - 42 ) AS col2, 72
----
-42
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9913
SELECT ALL 38 DIV - 27 + + 93 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL 38 / - 27 + + 93 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT - 88 + COUNT( * ) - - 63 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-9914
SELECT - 88 + COUNT ( * ) - - 63 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT + CASE - 6 WHEN 17 + + COUNT( * ) * - ( + + 0 ) THEN - - ( + 48 ) + NULLIF ( COALESCE ( CASE - 91 WHEN ( - 38 ) THEN 84 + + 38 * + CASE WHEN + 6 + + 6 / COUNT( * ) <= NULL THEN NULL ELSE 27 END ELSE + 6 * 71 END, 93 * 5 ), 88 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9915
SELECT + CASE - 6 WHEN 17 + + COUNT ( * ) * - ( + + 0 ) THEN - - ( + 48 ) + NULLIF ( COALESCE ( CASE - 91 WHEN ( - 38 ) THEN 84 + + 38 * + CASE WHEN + 6 + + 6 / COUNT ( * ) <= NULL THEN NULL ELSE 27 END ELSE + 6 * 71 END, 93 * 5 ), 88 ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + CASE + + 8 WHEN 70 + 70 THEN - - 70 END AS col2, - ( 81 ) col2
----
NULL
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT DISTINCT - 26 * + SUM( ALL - 73 ) - 53
----
1845

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT - 26 * + SUM ( ALL - 73 ) - 53
----
1845

query I rowsort
SELECT DISTINCT ( - - 98 ) * 9
----
882

query I rowsort
SELECT ( + - ( + 19 ) )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9920
SELECT DISTINCT NULLIF ( 89, + 50 * + + 95 + 21 ) * 53 - - + 98 * - COALESCE ( + CAST( NULL AS SIGNED ), 88 * - ( - COUNT( + 48 ) ), 54 * + 51 ) AS col0
----
-3907

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT NULLIF ( 89, + 50 * + + 95 + 21 ) * 53 - - + 98 * - COALESCE ( + CAST ( NULL AS INTEGER ), 88 * - ( - COUNT ( + 48 ) ), 54 * + 51 ) AS col0
----
-3907

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9921
SELECT ( - - COALESCE ( + + 2, + CAST( NULL AS SIGNED ) * 97 DIV 53 - 39 ) )
----
2

skipif mysql # not compatible
query I rowsort label-9921
SELECT ( - - COALESCE ( + + 2, + CAST ( NULL AS INTEGER ) * 97 / 53 - 39 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT + COUNT( * ) + + 52 * ( - - CASE + SUM( + 55 ) WHEN 11 THEN 40 * 79 + 55 * 12 WHEN - MAX( + 11 ) THEN - 50 ELSE NULL END ) * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT + COUNT ( * ) + + 52 * ( - - CASE + SUM ( + 55 ) WHEN 11 THEN 40 * 79 + 55 * 12 WHEN - MAX ( + 11 ) THEN - 50 ELSE NULL END ) * - 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9923
SELECT - 46 * - COUNT( * ) DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-9923
SELECT - 46 * - COUNT ( * ) / - 81
----
0

query I rowsort
SELECT DISTINCT 22 * + ( + 36 ) * - 25 - - - 9
----
-19809

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT + - 88 + + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-9925
SELECT + - 88 + + COUNT ( * )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9926
SELECT DISTINCT + NULLIF ( + 52, 49 * + COUNT( * ) / + 39 * - - SUM( - 36 ) + 34 + CAST( - 89 AS SIGNED ) * + CAST( NULL AS DECIMAL ) )
----
52

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT + NULLIF ( + 52, 49 * + COUNT ( * ) / + 39 * - - SUM ( - 36 ) + 34 + CAST ( - 89 AS INTEGER ) * + CAST ( NULL AS REAL ) )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9927
SELECT ALL MAX( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ( + 31 ) col0
----
31

query II rowsort
SELECT + ( + 16 ) col0, + 72 * - + 54 - 36 col0
----
16
-3924

query I rowsort
SELECT 87 + - 86 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT ALL - NULLIF ( - - 48, + + 94 + - CASE COUNT( * ) WHEN - 1 THEN - + 69 WHEN - NULLIF ( + 76, 84 * - 31 ) + 93 THEN NULL ELSE - 27 END - + 58 )
----
-48

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL - NULLIF ( - - 48, + + 94 + - CASE COUNT ( * ) WHEN - 1 THEN - + 69 WHEN - NULLIF ( + 76, 84 * - 31 ) + 93 THEN NULL ELSE - 27 END - + 58 )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-9932
SELECT DISTINCT + 25 DIV - - NULLIF ( - - NULLIF ( + 93, - 48 ), + - 61 ) * + 19
----
0

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT + 25 / - - NULLIF ( - - NULLIF ( + 93, - 48 ), + - 61 ) * + 19
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9933
SELECT + CASE - + CAST( + - NULLIF ( - - NULLIF ( - COUNT( * ), 22 * - + 6 ), 32 ) AS DECIMAL ) WHEN 98 * COUNT( DISTINCT + 72 ) - - ( 64 ) THEN + ( - ( AVG ( - COALESCE ( COALESCE ( 36, - 70 ), 98 - 59 * 21 ) ) ) ) * + 34 END * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9933
SELECT + CASE - + CAST ( + - NULLIF ( - - NULLIF ( - COUNT ( * ), 22 * - + 6 ), 32 ) AS REAL ) WHEN 98 * COUNT ( DISTINCT + 72 ) - - ( 64 ) THEN + ( - ( AVG ( - COALESCE ( COALESCE ( 36, - 70 ), 98 - 59 * 21 ) ) ) ) * + 34 END * 85
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9934
SELECT - 82 DIV - + 47, 43 AS col1
----
1
43

skipif mysql # not compatible
query II rowsort label-9934
SELECT - 82 / - + 47, 43 AS col1
----
1
43

query I rowsort
SELECT 66 + - 5 col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT NULLIF ( - + 11, - 75 * 55 * COUNT( * ) ) + - 19 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9936
SELECT NULLIF ( - + 11, - 75 * 55 * COUNT ( * ) ) + - 19 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-9937
SELECT - 39 - + - MAX( + 49 ) + 47 + - - 94 AS col0, + 43 AS col1
----
151
43

skipif mysql # not compatible
query II rowsort label-9937
SELECT - 39 - + - MAX ( + 49 ) + 47 + - - 94 AS col0, + 43 AS col1
----
151
43

query I rowsort
SELECT ALL 9 * 27
----
243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9939
SELECT DISTINCT COUNT( * ) + - 11 DIV + - 45 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT COUNT ( * ) + - 11 / + - 45 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9940
SELECT ALL + 32 + CAST( NULL AS SIGNED ) AS col2, + 66
----
NULL
66

skipif mysql # not compatible
query II rowsort label-9940
SELECT ALL + 32 + CAST ( NULL AS INTEGER ) AS col2, + 66
----
NULL
66

query I rowsort
SELECT ALL - 57 + + 32 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-9942
SELECT ALL + 51 + + 89 AS col2, + 31 * + - MAX( 22 )
----
140
-682

skipif mysql # not compatible
query II rowsort label-9942
SELECT ALL + 51 + + 89 AS col2, + 31 * + - MAX ( 22 )
----
140
-682

onlyif mysql # aggregate syntax: 
query II rowsort label-9943
SELECT 36 + 6, - CASE + 66 WHEN 59 + + 93 THEN - COUNT( * ) / + 39 WHEN - 52 + + 20 THEN - ( + 38 ) * - 2 ELSE NULL END + + 86 AS col1
----
42
NULL

skipif mysql # not compatible
query II rowsort label-9943
SELECT 36 + 6, - CASE + 66 WHEN 59 + + 93 THEN - COUNT ( * ) / + 39 WHEN - 52 + + 20 THEN - ( + 38 ) * - 2 ELSE NULL END + + 86 AS col1
----
42
NULL

query I rowsort
SELECT 4 + + - ( + + 88 ) * 27 + - 60
----
-2432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9945
SELECT CAST( 79 AS SIGNED ) * - MIN( - 16 ) + - 45 + 78 * - 84 * + 47
----
-306725

skipif mysql # not compatible
query I rowsort label-9945
SELECT CAST ( 79 AS INTEGER ) * - MIN ( - 16 ) + - 45 + 78 * - 84 * + 47
----
-306725

query I rowsort
SELECT ALL - 86 + - 92
----
-178

query I rowsort
SELECT 97 * + 54 * 75 AS col2
----
392850

query I rowsort
SELECT ALL + 14 * + + 31 AS col2
----
434

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT ALL - COUNT( ALL 65 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL - COUNT ( ALL 65 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9950
SELECT ALL - 48 col0, + 49 * COUNT( * ) AS col1
----
-48
49

skipif mysql # not compatible
query II rowsort label-9950
SELECT ALL - 48 col0, + 49 * COUNT ( * ) AS col1
----
-48
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT DISTINCT + 69 - 97 + - - 62 * - 83 * - SUM( ALL + 48 ) * - 58 AS col2
----
-14326492

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT + 69 - 97 + - - 62 * - 83 * - SUM ( ALL + 48 ) * - 58 AS col2
----
-14326492

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT ALL - NULLIF ( 91, - + 61 * - 64 * - COUNT( * ) * 78 ) * 27 AS col1
----
-2457

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL - NULLIF ( 91, - + 61 * - 64 * - COUNT ( * ) * 78 ) * 27 AS col1
----
-2457

onlyif mysql # DIV for integer division: 
query I rowsort label-9953
SELECT 18 DIV - 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9953
SELECT 18 / - 28 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT 54 * - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-9954
SELECT 54 * - COUNT ( * )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9955
SELECT 28 - 95 + + - CASE + - 43 WHEN + + 77 DIV - 91 + + COALESCE ( - 97, 76, ( CAST( NULL AS SIGNED ) ) + 35 ) THEN NULL ELSE COUNT( * ) * - ( + 50 DIV + 6 ) END AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9955
SELECT 28 - 95 + + - CASE + - 43 WHEN + + 77 / - 91 + + COALESCE ( - 97, 76, ( CAST ( NULL AS INTEGER ) ) + 35 ) THEN NULL ELSE COUNT ( * ) * - ( + 50 / + 6 ) END AS col0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-9956
SELECT 2 - + 9 * COUNT( * ) AS col0, - ( + - 90 ) * + 19
----
-7
1710

skipif mysql # not compatible
query II rowsort label-9956
SELECT 2 - + 9 * COUNT ( * ) AS col0, - ( + - 90 ) * + 19
----
-7
1710

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9957
SELECT COUNT( * ) DIV COUNT( * ) DIV + ( 47 ) AS col0, - 99 col1
----
0
-99

skipif mysql # not compatible
query II rowsort label-9957
SELECT COUNT ( * ) / COUNT ( * ) / + ( 47 ) AS col0, - 99 col1
----
0
-99

query I rowsort
SELECT DISTINCT - - CASE 64 WHEN COALESCE ( + 14, + 96 ) THEN - - 43 WHEN + COALESCE ( + 29, + 0 - 51 ) THEN 41 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT ALL - SUM( DISTINCT - - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL - SUM ( DISTINCT - - 20 )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-9960
SELECT ALL - - COUNT( * ) col2, + 24 - + + COUNT( * )
----
1
23

skipif mysql # not compatible
query II rowsort label-9960
SELECT ALL - - COUNT ( * ) col2, + 24 - + + COUNT ( * )
----
1
23

query I rowsort
SELECT + 74 + 42
----
116

query I rowsort
SELECT 71 - - - COALESCE ( 40, NULLIF ( - NULLIF ( - COALESCE ( - 7, + 90 * 89 ), - 92 + + 61 ), 37 * 76 ) + 87 ) col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL + 13 * + - 98 + - COUNT( - 43 ) + + 2 - 68 * + - 67
----
3283

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL + 13 * + - 98 + - COUNT ( - 43 ) + + 2 - 68 * + - 67
----
3283

query I rowsort
SELECT - 83 * 81 AS col0
----
-6723

query I rowsort
SELECT 2 * - - 72 + 46 AS col0
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT DISTINCT - 96 + + NULLIF ( ( + COUNT( * ) ), - 33 )
----
-95

skipif mysql # not compatible
query I rowsort label-9966
SELECT DISTINCT - 96 + + NULLIF ( ( + COUNT ( * ) ), - 33 )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9967
SELECT - COALESCE ( - SUM( ALL 32 ), - 19 * 13 - - 52 - - SUM( - 65 ) * 57, 98 DIV + 42, 37 )
----
32

skipif mysql # not compatible
query I rowsort label-9967
SELECT - COALESCE ( - SUM ( ALL 32 ), - 19 * 13 - - 52 - - SUM ( - 65 ) * 57, 98 / + 42, 37 )
----
32

query I rowsort
SELECT DISTINCT + 94 + 65
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT + ( 32 ) + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9969
SELECT + ( 32 ) + + COUNT ( * )
----
33

query I rowsort
SELECT ALL + ( + - 83 )
----
-83

query I rowsort
SELECT - NULLIF ( + 92, - + 39 ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL + 61 + + 30 + - + COUNT( * ) * - 13
----
104

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL + 61 + + 30 + - + COUNT ( * ) * - 13
----
104

query I rowsort
SELECT ALL - 3 + - 96 col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9974
SELECT ALL + ( + + 54 ) + - CASE - + 65 WHEN + 80 THEN 92 - 22 ELSE - SUM( + 22 ) DIV + COALESCE ( + 46 DIV + 11 - - ( - COUNT( * ) ), NULLIF ( CAST( NULL AS SIGNED ), + COALESCE ( + 39, - 71, - COUNT( * ) ) - 93 ), + 30 * + 26 ) END AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL + ( + + 54 ) + - CASE - + 65 WHEN + 80 THEN 92 - 22 ELSE - SUM ( + 22 ) / + COALESCE ( + 46 / + 11 - - ( - COUNT ( * ) ), NULLIF ( CAST ( NULL AS INTEGER ), + COALESCE ( + 39, - 71, - COUNT ( * ) ) - 93 ), + 30 * + 26 ) END AS col0
----
61

query I rowsort
SELECT - 99 + - 25
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT - MIN( 23 ) + + COUNT( * ) * - ( - + 70 ) + - 78 * - ( - + 62 ) * - 98 AS col2
----
473975

skipif mysql # not compatible
query I rowsort label-9976
SELECT - MIN ( 23 ) + + COUNT ( * ) * - ( - + 70 ) + - 78 * - ( - + 62 ) * - 98 AS col2
----
473975

onlyif mysql # DIV for integer division: 
query I rowsort label-9977
SELECT ALL 37 DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL 37 / 42
----
0

query II rowsort
SELECT ALL 55 + - 27 AS col0, - 90
----
28
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9979
SELECT CASE - 25 WHEN COALESCE ( COALESCE ( + 1, - - 82, - - NULLIF ( 7, - CAST( NULL AS SIGNED ) ) ), + COUNT( 8 ) + COUNT( * ) ) THEN COALESCE ( + COUNT( * ), + ( 63 ) ) * CASE 34 WHEN 80 * 21 + 23 THEN + 22 ELSE NULL END WHEN 75 THEN NULL ELSE NULL END + - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9979
SELECT CASE - 25 WHEN COALESCE ( COALESCE ( + 1, - - 82, - - NULLIF ( 7, - CAST ( NULL AS INTEGER ) ) ), + COUNT ( 8 ) + COUNT ( * ) ) THEN COALESCE ( + COUNT ( * ), + ( 63 ) ) * CASE 34 WHEN 80 * 21 + 23 THEN + 22 ELSE NULL END WHEN 75 THEN NULL ELSE NULL END + - 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT 97 * + - MIN( + 71 ) AS col2
----
-6887

skipif mysql # not compatible
query I rowsort label-9980
SELECT 97 * + - MIN ( + 71 ) AS col2
----
-6887

onlyif mysql # DIV for integer division: 
query I rowsort label-9981
SELECT 32 * 58 DIV - - 73 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-9981
SELECT 32 * 58 / - - 73 AS col1
----
25

query I rowsort
SELECT ALL ( + + 67 ) * - 12
----
-804

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9983
SELECT CAST( NULL AS DECIMAL ) + - + 86 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT CAST ( NULL AS REAL ) + - + 86 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT DISTINCT 54 - + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT 54 - + COUNT ( * )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9985
SELECT 19 * - COUNT( * ) DIV + 95 - + - 38 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9985
SELECT 19 * - COUNT ( * ) / + 95 - + - 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9986
SELECT 32 * - COUNT( * ), CASE 25 WHEN - 46 THEN 37 * + - ( + COUNT( * ) ) * - + 88 END AS col0
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-9986
SELECT 32 * - COUNT ( * ), CASE 25 WHEN - 46 THEN 37 * + - ( + COUNT ( * ) ) * - + 88 END AS col0
----
-32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT 3 + - COALESCE ( + - 36, + - CASE 64 WHEN + - AVG ( 9 ) THEN + - 96 WHEN + COUNT( * ) THEN NULL END ) * + ( 92 ) AS col2
----
3315

skipif mysql # not compatible
query I rowsort label-9987
SELECT 3 + - COALESCE ( + - 36, + - CASE 64 WHEN + - AVG ( 9 ) THEN + - 96 WHEN + COUNT ( * ) THEN NULL END ) * + ( 92 ) AS col2
----
3315

onlyif mysql # DIV for integer division: 
query II rowsort label-9988
SELECT 55 DIV 7 + - 60 DIV 12 AS col1, - 57 - - ( - + 67 ) * - 15 + + + 48 AS col0
----
2
996

skipif mysql # not compatible
query II rowsort label-9988
SELECT 55 / 7 + - 60 / 12 AS col1, - 57 - - ( - + 67 ) * - 15 + + + 48 AS col0
----
2
996

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9989
SELECT 9 * + 50, ( - + 98 ) + 26 + - - CAST( NULL AS SIGNED ) col2
----
450
NULL

skipif mysql # not compatible
query II rowsort label-9989
SELECT 9 * + 50, ( - + 98 ) + 26 + - - CAST ( NULL AS INTEGER ) col2
----
450
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9990
SELECT 22 * NULLIF ( - 82, - 16 + + - 53 * - 26 ) / + 83 * - NULLIF ( 80, - 2 * 75 ) + COUNT( ALL - 26 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT 22 * NULLIF ( - 82, - 16 + + - 53 * - 26 ) / + 83 * - NULLIF ( 80, - 2 * 75 ) + COUNT ( ALL - 26 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT 56 * - + 98 + - ( - COUNT( * ) ) * COUNT( ALL - - 14 ) + - 91 AS col1
----
-5578

skipif mysql # not compatible
query I rowsort label-9991
SELECT 56 * - + 98 + - ( - COUNT ( * ) ) * COUNT ( ALL - - 14 ) + - 91 AS col1
----
-5578

query I rowsort
SELECT ALL - NULLIF ( - + 91, - + 14 )
----
91

query I rowsort
SELECT ALL - 65 * - ( - 50 )
----
-3250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9994
SELECT ALL - COUNT( * ) DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL - COUNT ( * ) / 90
----
0

query I rowsort
SELECT + + ( + + 4 ) AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9996
SELECT ALL + - NULLIF ( - - 33, - COALESCE ( CAST( NULL AS SIGNED ), + - 20 + - 67 * - 65 ) * - 26 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL + - NULLIF ( - - 33, - COALESCE ( CAST ( NULL AS INTEGER ), + - 20 + - 67 * - 65 ) * - 26 ) AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9997
SELECT + - 0 * + 31 + + 86 + - ( + ( - 23 ) ) * + CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT + - 0 * + 31 + + 86 + - ( + ( - 23 ) ) * + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9998
SELECT + MIN( DISTINCT + 87 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9998
SELECT + MIN ( DISTINCT + 87 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT - 47 * - + COUNT( * ) + - 29
----
18

skipif mysql # not compatible
query I rowsort label-9999
SELECT - 47 * - + COUNT ( * ) + - 29
----
18

